-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathactivity.types.ts
68 lines (65 loc) · 1.19 KB
/
activity.types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import type { BaseResponse } from "~/types/request";
export interface ListActivityParams extends Record<string, any> {
/**
* Timestamp is assumed to be UTC.
*
* Must be lower than date_to.
*/
date_from?: number;
/**
* Timestamp is assumed to be UTC.
*
* Must be higher than date_from.
*/
date_to?: number;
domainId: string;
event?: Array<Event>;
/**
* Min: **10**
*
* Max: **100**
*
* @default 25
*/
limit?: number;
page?: number;
}
export interface Activity {
id: string;
created_at: string;
updated_at: string;
type: string;
email: {
created_at: string;
from: string;
html: string;
id: string;
recipient: {
created_at: string;
deleted_at: string;
email: string;
id: string;
updated_at: string;
};
status: string;
subject: string;
tags: unknown;
text: string;
updated_at: string;
};
}
export interface ListActivityResponse extends BaseResponse<Array<Activity>> {
links?: {
first: string;
last: string;
prev: unknown;
next: unknown;
};
meta?: {
current_page: number;
from: number;
path: string;
per_page: number;
to: number;
};
}