@onereach/types-hitl-api 0.0.14 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,10 +2,10 @@ export declare type JSONProperty = string | boolean | number | null;
|
|
|
2
2
|
export declare type JSONType = JSONType[] | {
|
|
3
3
|
[key: string]: JSONProperty | JSONType;
|
|
4
4
|
};
|
|
5
|
-
export interface IDefaultPrimaryKey {
|
|
6
|
-
readonly id: string;
|
|
7
|
-
}
|
|
8
5
|
export interface ITimestamps {
|
|
9
6
|
readonly createdAt: string;
|
|
10
7
|
readonly updatedAt: string;
|
|
11
8
|
}
|
|
9
|
+
export interface IDefaultPrimaryKey {
|
|
10
|
+
readonly id: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface IEventTemplatesModel {
|
|
2
|
+
readonly templateId: string;
|
|
3
|
+
readonly eventType: string;
|
|
4
|
+
readonly rule: string;
|
|
5
|
+
readonly template: IEventTemplateContent;
|
|
6
|
+
readonly isActive: boolean;
|
|
7
|
+
readonly isVisible: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface IEventTemplateContent {
|
|
10
|
+
readonly html?: string;
|
|
11
|
+
readonly js?: string;
|
|
12
|
+
readonly css?: string;
|
|
13
|
+
readonly sass?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface IGetEventTemplatesQuery {
|
|
16
|
+
readonly templateId?: string;
|
|
17
|
+
readonly accountId?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface IGetEventTemplatesResponse {
|
|
20
|
+
readonly data: IEventTemplatesModel[];
|
|
21
|
+
}
|
|
22
|
+
export interface ICreateEventTemplateQuery {
|
|
23
|
+
readonly accountId?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface ICreateEventTemplateBody {
|
|
26
|
+
readonly eventType: string;
|
|
27
|
+
readonly rule: string;
|
|
28
|
+
readonly template: IEventTemplateContent;
|
|
29
|
+
readonly isActive?: boolean;
|
|
30
|
+
readonly isVisible?: boolean;
|
|
31
|
+
}
|
|
32
|
+
export declare type IUpdateEventTemplateQuery = ICreateEventTemplateQuery;
|
|
33
|
+
export interface IUpdateEventTemplateBody extends Partial<ICreateEventTemplateBody> {
|
|
34
|
+
readonly templateId: string;
|
|
35
|
+
}
|
|
36
|
+
export interface IDeleteEventTemplateQuery extends ICreateEventTemplateQuery {
|
|
37
|
+
readonly templateId: string;
|
|
38
|
+
}
|
package/package.json
CHANGED