-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
45 lines (42 loc) · 1.12 KB
/
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
export enum EEvents {
LIBRARY_PUBLISH = 'LIBRARY_PUBLISH',
FILE_DELETE = 'FILE_DELETE',
}
export interface IFileDete {
event_type: EEvents,
file_key: string,
file_name: string,
passcode: string,
timestamp: string,
triggered_by: {
id: string;
handle: string;
};
webhook_id: number
}
export interface ILibraryPublish {
event_type: EEvents,
retries: number;
file_key: string;
passcode: string;
file_name: string;
timestamp: string;
webhook_id: string;
description: string;
triggered_by: {
id: string;
handle: string;
};
created_styles: { key: string; name: string }[];
deleted_styles: { key: string; name: string }[];
modified_styles: { key: string; name: string }[];
created_variables: { key: string; name: string }[];
deleted_variables: { key: string; name: string }[];
modified_variables: { key: string; name: string }[];
created_components: { key: string; name: string }[];
deleted_components: { key: string; name: string }[];
modifed_components: { key: string; name: string }[];
sent_at: string;
endpoint: string;
}
export type TEvent = ILibraryPublish | IFileDete;