@giosg/types 6.5.0 → 7.0.1
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.
- package/CHANGELOG.md +38 -5
- package/lib/GiosgTCApi.d.ts +113 -0
- package/lib/GiosgTCApi.d.ts.map +1 -0
- package/lib/GiosgTCApi.js +17 -0
- package/lib/apps.js +0 -1
- package/lib/assets.js +0 -1
- package/lib/brands.js +0 -1
- package/lib/call.js +0 -1
- package/lib/canned_answers.js +0 -1
- package/lib/chat.js +0 -1
- package/lib/cjs/GiosgTCApi.d.ts +118 -0
- package/lib/cjs/GiosgTCApi.d.ts.map +1 -0
- package/lib/cjs/GiosgTCApi.js +25 -0
- package/lib/cjs/actions.d.ts +72 -0
- package/lib/cjs/actions.d.ts.map +1 -0
- package/lib/cjs/actions.js +63 -0
- package/lib/cjs/apps.d.ts +99 -0
- package/lib/cjs/apps.d.ts.map +1 -0
- package/lib/cjs/apps.js +2 -0
- package/lib/cjs/assets.d.ts +144 -0
- package/lib/cjs/assets.d.ts.map +1 -0
- package/lib/cjs/assets.js +2 -0
- package/lib/cjs/brands.d.ts +41 -0
- package/lib/cjs/brands.d.ts.map +1 -0
- package/lib/cjs/brands.js +2 -0
- package/lib/cjs/call.d.ts +41 -0
- package/lib/cjs/call.d.ts.map +1 -0
- package/lib/cjs/call.js +2 -0
- package/lib/cjs/canned_answers.d.ts +26 -0
- package/lib/cjs/canned_answers.d.ts.map +1 -0
- package/lib/cjs/canned_answers.js +2 -0
- package/lib/cjs/chat.d.ts +1071 -0
- package/lib/cjs/chat.d.ts.map +1 -0
- package/lib/cjs/chat.js +2 -0
- package/lib/cjs/common.d.ts +7 -0
- package/lib/cjs/common.d.ts.map +1 -0
- package/lib/cjs/common.js +628 -0
- package/lib/cjs/conditions.d.ts +98 -0
- package/lib/cjs/conditions.d.ts.map +1 -0
- package/lib/cjs/conditions.js +80 -0
- package/lib/cjs/customer.d.ts +519 -0
- package/lib/cjs/customer.d.ts.map +1 -0
- package/lib/cjs/customer.js +2 -0
- package/lib/cjs/customership.d.ts +79 -0
- package/lib/cjs/customership.d.ts.map +1 -0
- package/lib/cjs/customership.js +2 -0
- package/lib/cjs/email.d.ts +47 -0
- package/lib/cjs/email.d.ts.map +1 -0
- package/lib/cjs/email.js +2 -0
- package/lib/cjs/experiments.d.ts +168 -0
- package/lib/cjs/experiments.d.ts.map +1 -0
- package/lib/cjs/experiments.js +2 -0
- package/lib/cjs/goals.d.ts +126 -0
- package/lib/cjs/goals.d.ts.map +1 -0
- package/lib/cjs/goals.js +2 -0
- package/lib/cjs/index.d.ts +36 -0
- package/lib/cjs/index.d.ts.map +1 -0
- package/lib/cjs/index.js +32 -0
- package/lib/cjs/leadforms.d.ts +30 -0
- package/lib/cjs/leadforms.d.ts.map +1 -0
- package/lib/cjs/leadforms.js +2 -0
- package/lib/cjs/linkpreview.d.ts +16 -0
- package/lib/cjs/linkpreview.d.ts.map +1 -0
- package/lib/cjs/linkpreview.js +2 -0
- package/lib/cjs/oath.d.ts +75 -0
- package/lib/cjs/oath.d.ts.map +1 -0
- package/lib/cjs/oath.js +25 -0
- package/lib/cjs/partnerships.d.ts +54 -0
- package/lib/cjs/partnerships.d.ts.map +1 -0
- package/lib/cjs/partnerships.js +2 -0
- package/lib/cjs/permissions.d.ts +26 -0
- package/lib/cjs/permissions.d.ts.map +1 -0
- package/lib/cjs/permissions.js +2 -0
- package/lib/cjs/public.d.ts +418 -0
- package/lib/cjs/public.d.ts.map +1 -0
- package/lib/cjs/public.js +12 -0
- package/lib/cjs/rooms.d.ts +205 -0
- package/lib/cjs/rooms.d.ts.map +1 -0
- package/lib/cjs/rooms.js +2 -0
- package/lib/cjs/routers.d.ts +76 -0
- package/lib/cjs/routers.d.ts.map +1 -0
- package/lib/cjs/routers.js +2 -0
- package/lib/cjs/rules.d.ts +229 -0
- package/lib/cjs/rules.d.ts.map +1 -0
- package/lib/cjs/rules.js +2 -0
- package/lib/cjs/sharing.d.ts +111 -0
- package/lib/cjs/sharing.d.ts.map +1 -0
- package/lib/cjs/sharing.js +2 -0
- package/lib/cjs/shoppingcarts.d.ts +33 -0
- package/lib/cjs/shoppingcarts.d.ts.map +1 -0
- package/lib/cjs/shoppingcarts.js +2 -0
- package/lib/cjs/system.d.ts +21 -0
- package/lib/cjs/system.d.ts.map +1 -0
- package/lib/cjs/system.js +2 -0
- package/lib/cjs/target.d.ts +105 -0
- package/lib/cjs/target.d.ts.map +1 -0
- package/lib/cjs/target.js +2 -0
- package/lib/cjs/teams.d.ts +78 -0
- package/lib/cjs/teams.d.ts.map +1 -0
- package/lib/cjs/teams.js +2 -0
- package/lib/cjs/types.d.ts +226 -0
- package/lib/cjs/types.d.ts.map +1 -0
- package/lib/cjs/types.js +29 -0
- package/lib/cjs/uploads.d.ts +55 -0
- package/lib/cjs/uploads.d.ts.map +1 -0
- package/lib/cjs/uploads.js +2 -0
- package/lib/cjs/userclients.d.ts +79 -0
- package/lib/cjs/userclients.d.ts.map +1 -0
- package/lib/cjs/userclients.js +2 -0
- package/lib/cjs/variables.d.ts +41 -0
- package/lib/cjs/variables.d.ts.map +1 -0
- package/lib/cjs/variables.js +2 -0
- package/lib/cjs/visitor.d.ts +210 -0
- package/lib/cjs/visitor.d.ts.map +1 -0
- package/lib/cjs/visitor.js +2 -0
- package/lib/cjs/webhooks.d.ts +61 -0
- package/lib/cjs/webhooks.d.ts.map +1 -0
- package/lib/cjs/webhooks.js +2 -0
- package/lib/customer.js +0 -1
- package/lib/customership.js +0 -1
- package/lib/email.js +0 -1
- package/lib/experiments.js +0 -1
- package/lib/goals.js +0 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/leadforms.js +0 -1
- package/lib/linkpreview.js +0 -1
- package/lib/mjs/GiosgTCApi.d.ts +118 -0
- package/lib/mjs/GiosgTCApi.d.ts.map +1 -0
- package/lib/mjs/GiosgTCApi.js +22 -0
- package/lib/mjs/actions.d.ts +72 -0
- package/lib/mjs/actions.d.ts.map +1 -0
- package/lib/mjs/actions.js +60 -0
- package/lib/mjs/apps.d.ts +99 -0
- package/lib/mjs/apps.d.ts.map +1 -0
- package/lib/mjs/apps.js +0 -0
- package/lib/mjs/assets.d.ts +144 -0
- package/lib/mjs/assets.d.ts.map +1 -0
- package/lib/mjs/assets.js +0 -0
- package/lib/mjs/brands.d.ts +41 -0
- package/lib/mjs/brands.d.ts.map +1 -0
- package/lib/mjs/brands.js +0 -0
- package/lib/mjs/call.d.ts +41 -0
- package/lib/mjs/call.d.ts.map +1 -0
- package/lib/mjs/call.js +0 -0
- package/lib/mjs/canned_answers.d.ts +26 -0
- package/lib/mjs/canned_answers.d.ts.map +1 -0
- package/lib/mjs/canned_answers.js +0 -0
- package/lib/mjs/chat.d.ts +1071 -0
- package/lib/mjs/chat.d.ts.map +1 -0
- package/lib/mjs/chat.js +0 -0
- package/lib/mjs/common.d.ts +7 -0
- package/lib/mjs/common.d.ts.map +1 -0
- package/lib/mjs/common.js +625 -0
- package/lib/mjs/conditions.d.ts +98 -0
- package/lib/mjs/conditions.d.ts.map +1 -0
- package/lib/mjs/conditions.js +77 -0
- package/lib/mjs/customer.d.ts +519 -0
- package/lib/mjs/customer.d.ts.map +1 -0
- package/lib/mjs/customer.js +0 -0
- package/lib/mjs/customership.d.ts +79 -0
- package/lib/mjs/customership.d.ts.map +1 -0
- package/lib/mjs/customership.js +0 -0
- package/lib/mjs/email.d.ts +47 -0
- package/lib/mjs/email.d.ts.map +1 -0
- package/lib/mjs/email.js +0 -0
- package/lib/mjs/experiments.d.ts +168 -0
- package/lib/mjs/experiments.d.ts.map +1 -0
- package/lib/mjs/experiments.js +0 -0
- package/lib/mjs/goals.d.ts +126 -0
- package/lib/mjs/goals.d.ts.map +1 -0
- package/lib/mjs/goals.js +0 -0
- package/lib/mjs/index.d.ts +36 -0
- package/lib/mjs/index.d.ts.map +1 -0
- package/lib/mjs/index.js +7 -0
- package/lib/mjs/leadforms.d.ts +30 -0
- package/lib/mjs/leadforms.d.ts.map +1 -0
- package/lib/mjs/leadforms.js +0 -0
- package/lib/mjs/linkpreview.d.ts +16 -0
- package/lib/mjs/linkpreview.d.ts.map +1 -0
- package/lib/mjs/linkpreview.js +0 -0
- package/lib/mjs/oath.d.ts +75 -0
- package/lib/mjs/oath.d.ts.map +1 -0
- package/lib/mjs/oath.js +22 -0
- package/lib/mjs/partnerships.d.ts +54 -0
- package/lib/mjs/partnerships.d.ts.map +1 -0
- package/lib/mjs/partnerships.js +0 -0
- package/lib/mjs/permissions.d.ts +26 -0
- package/lib/mjs/permissions.d.ts.map +1 -0
- package/lib/mjs/permissions.js +0 -0
- package/lib/mjs/public.d.ts +418 -0
- package/lib/mjs/public.d.ts.map +1 -0
- package/lib/mjs/public.js +9 -0
- package/lib/mjs/rooms.d.ts +205 -0
- package/lib/mjs/rooms.d.ts.map +1 -0
- package/lib/mjs/rooms.js +0 -0
- package/lib/mjs/routers.d.ts +76 -0
- package/lib/mjs/routers.d.ts.map +1 -0
- package/lib/mjs/routers.js +0 -0
- package/lib/mjs/rules.d.ts +229 -0
- package/lib/mjs/rules.d.ts.map +1 -0
- package/lib/mjs/rules.js +0 -0
- package/lib/mjs/sharing.d.ts +111 -0
- package/lib/mjs/sharing.d.ts.map +1 -0
- package/lib/mjs/sharing.js +0 -0
- package/lib/mjs/shoppingcarts.d.ts +33 -0
- package/lib/mjs/shoppingcarts.d.ts.map +1 -0
- package/lib/mjs/shoppingcarts.js +0 -0
- package/lib/mjs/system.d.ts +21 -0
- package/lib/mjs/system.d.ts.map +1 -0
- package/lib/mjs/system.js +0 -0
- package/lib/mjs/target.d.ts +105 -0
- package/lib/mjs/target.d.ts.map +1 -0
- package/lib/mjs/target.js +0 -0
- package/lib/mjs/teams.d.ts +78 -0
- package/lib/mjs/teams.d.ts.map +1 -0
- package/lib/mjs/teams.js +0 -0
- package/lib/mjs/types.d.ts +226 -0
- package/lib/mjs/types.d.ts.map +1 -0
- package/lib/mjs/types.js +26 -0
- package/lib/mjs/uploads.d.ts +55 -0
- package/lib/mjs/uploads.d.ts.map +1 -0
- package/lib/mjs/uploads.js +0 -0
- package/lib/mjs/userclients.d.ts +79 -0
- package/lib/mjs/userclients.d.ts.map +1 -0
- package/lib/mjs/userclients.js +0 -0
- package/lib/mjs/variables.d.ts +41 -0
- package/lib/mjs/variables.d.ts.map +1 -0
- package/lib/mjs/variables.js +0 -0
- package/lib/mjs/visitor.d.ts +210 -0
- package/lib/mjs/visitor.d.ts.map +1 -0
- package/lib/mjs/visitor.js +0 -0
- package/lib/mjs/webhooks.d.ts +61 -0
- package/lib/mjs/webhooks.d.ts.map +1 -0
- package/lib/mjs/webhooks.js +0 -0
- package/lib/partnerships.js +0 -1
- package/lib/permissions.js +0 -1
- package/lib/public.d.ts.map +1 -1
- package/lib/rooms.js +0 -1
- package/lib/routers.js +0 -1
- package/lib/rules.js +0 -1
- package/lib/sharing.js +0 -1
- package/lib/shoppingcarts.js +0 -1
- package/lib/system.js +0 -1
- package/lib/target.js +0 -1
- package/lib/teams.js +0 -1
- package/lib/uploads.js +0 -1
- package/lib/userclients.js +0 -1
- package/lib/variables.js +0 -1
- package/lib/visitor.js +0 -1
- package/lib/webhooks.js +0 -1
- package/package.json +12 -3
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { NestedUser } from "./customer";
|
|
2
|
+
import { AssetUid, OrganizationUid, UserUid, AssetType } from "./types";
|
|
3
|
+
export interface Asset {
|
|
4
|
+
/** Unique identifier of the asset */
|
|
5
|
+
id: AssetUid;
|
|
6
|
+
/** The original file name of the uploaded file */
|
|
7
|
+
file_name: string;
|
|
8
|
+
/** Content type of the uploaded file */
|
|
9
|
+
content_type: string | null;
|
|
10
|
+
/** Kind of file the asset is */
|
|
11
|
+
kind: AssetType | null;
|
|
12
|
+
/** Name of the asset */
|
|
13
|
+
name: string;
|
|
14
|
+
/** Description of the asset */
|
|
15
|
+
description: string | null;
|
|
16
|
+
/** The full URL for original, uploaded file. Use this URL to link to your asset */
|
|
17
|
+
url: string;
|
|
18
|
+
/** Unique identifier of the organization that owns the asset */
|
|
19
|
+
organization_id: OrganizationUid;
|
|
20
|
+
/** Size of the uploaded file in bytes */
|
|
21
|
+
size: number;
|
|
22
|
+
/** Character encoding for a text file */
|
|
23
|
+
charset: string | null;
|
|
24
|
+
/** Date when the asset was created */
|
|
25
|
+
created_at: string;
|
|
26
|
+
/** Date when the asset was changed for the last time */
|
|
27
|
+
updated_at: string;
|
|
28
|
+
/** Unique identifier of the user who created the asset */
|
|
29
|
+
created_by_user_id: UserUid;
|
|
30
|
+
/** Unique identifier of the user who changed the asset for the last time */
|
|
31
|
+
updated_by_user_id: UserUid;
|
|
32
|
+
/** User who created the asset */
|
|
33
|
+
created_by_user: NestedUser;
|
|
34
|
+
/** User who changed the asset for the last time */
|
|
35
|
+
updated_by_user: NestedUser;
|
|
36
|
+
/** The width of an image in pixels. Available for images only. It is null for other types of assets */
|
|
37
|
+
width: number | null;
|
|
38
|
+
/** The height of an image in pixels. Available for images only. It is null for other types of assets */
|
|
39
|
+
height: number | null;
|
|
40
|
+
}
|
|
41
|
+
export interface AssetPayload {
|
|
42
|
+
/** Name for the newly created asset. If omitted, defaults to the file name. Otherwise, it must be a non-empty string value */
|
|
43
|
+
name?: string;
|
|
44
|
+
/** Description of the asset */
|
|
45
|
+
description?: string | null;
|
|
46
|
+
/** Character encoding for a text file */
|
|
47
|
+
charset?: string | null;
|
|
48
|
+
/** The asset file to be uploaded. File name is required */
|
|
49
|
+
upload: File;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated
|
|
53
|
+
*/
|
|
54
|
+
export interface AssetUpdate {
|
|
55
|
+
/** Unique identifier of the asset */
|
|
56
|
+
id: AssetUid;
|
|
57
|
+
/** The original file name of the uploaded file */
|
|
58
|
+
file_name: string;
|
|
59
|
+
/** Content type of the uploaded file */
|
|
60
|
+
content_type: string | null;
|
|
61
|
+
/** Kind of file the asset is */
|
|
62
|
+
kind: AssetType | null;
|
|
63
|
+
/** Name of the asset */
|
|
64
|
+
name: string;
|
|
65
|
+
/** Description of the asset */
|
|
66
|
+
description: string | null;
|
|
67
|
+
/** The full URL for original, uploaded file. Use this URL to link to your asset */
|
|
68
|
+
url: string;
|
|
69
|
+
/** Unique identifier of the organization that owns the asset */
|
|
70
|
+
organization_id: OrganizationUid;
|
|
71
|
+
/** Size of the uploaded file in bytes */
|
|
72
|
+
size: number;
|
|
73
|
+
/** Character encoding for a text file */
|
|
74
|
+
charset: string | null;
|
|
75
|
+
/** Date when the asset was created */
|
|
76
|
+
created_at: string;
|
|
77
|
+
/** Date when the asset was changed for the last time */
|
|
78
|
+
updated_at: string;
|
|
79
|
+
/** Unique identifier of the user who created the asset */
|
|
80
|
+
created_by_user_id: UserUid;
|
|
81
|
+
/** Unique identifier of the user who changed the asset for the last time */
|
|
82
|
+
updated_by_user_id: UserUid;
|
|
83
|
+
/** User who created the asset */
|
|
84
|
+
created_by_user: NestedUser;
|
|
85
|
+
/** User who changed the asset for the last time */
|
|
86
|
+
updated_by_user: NestedUser;
|
|
87
|
+
/** The width of an image in pixels. Available for images only. It is null for other types of assets */
|
|
88
|
+
width: number | null;
|
|
89
|
+
/** The height of an image in pixels. Available for images only. It is null for other types of assets */
|
|
90
|
+
height: number | null;
|
|
91
|
+
/** The asset file to be uploaded. File name is required */
|
|
92
|
+
upload?: File;
|
|
93
|
+
}
|
|
94
|
+
export interface AssetUpdatePayload {
|
|
95
|
+
/** Name of the asset */
|
|
96
|
+
name?: string;
|
|
97
|
+
/** Description of the asset */
|
|
98
|
+
description?: string | null;
|
|
99
|
+
/** Character encoding for a text file */
|
|
100
|
+
charset?: string | null;
|
|
101
|
+
/** The asset file to be uploaded. File name is required */
|
|
102
|
+
upload?: File;
|
|
103
|
+
}
|
|
104
|
+
export interface NestedAsset {
|
|
105
|
+
/** Unique identifier of the asset*/
|
|
106
|
+
id: AssetUid;
|
|
107
|
+
/** The full URL for original, uploaded file. Use this URL to link to your asset */
|
|
108
|
+
url: string;
|
|
109
|
+
/** Name of the asset */
|
|
110
|
+
name: string;
|
|
111
|
+
/** Description of the asset */
|
|
112
|
+
description: string | null;
|
|
113
|
+
/** Kind of file the asset is */
|
|
114
|
+
kind: AssetType | null;
|
|
115
|
+
/** Content type of the uploaded file */
|
|
116
|
+
content_type: string | null;
|
|
117
|
+
/** Size of the uploaded file in bytes */
|
|
118
|
+
size: number;
|
|
119
|
+
/** Character encoding for a text file */
|
|
120
|
+
charset: string | null;
|
|
121
|
+
/** The width of an image in pixels. Available for images only. It is null for other types of assets */
|
|
122
|
+
width: number | null;
|
|
123
|
+
/** The height of an image in pixels. Available for images only. It is null for other types of assets */
|
|
124
|
+
height: number | null;
|
|
125
|
+
}
|
|
126
|
+
export interface PublicNestedAsset {
|
|
127
|
+
/** Unique identifier of the asset */
|
|
128
|
+
id: AssetUid;
|
|
129
|
+
/** The full URL for original, uploaded file. Use this URL to link to your asset */
|
|
130
|
+
url: string;
|
|
131
|
+
/** Kind of file the asset is */
|
|
132
|
+
kind: AssetType | null;
|
|
133
|
+
/** Content type of the uploaded file */
|
|
134
|
+
content_type: string | null;
|
|
135
|
+
/** Size of the uploaded file in bytes */
|
|
136
|
+
size: number;
|
|
137
|
+
/** Character encoding for a text file */
|
|
138
|
+
charset: string | null;
|
|
139
|
+
/** The width of an image in pixels. Available for images only. It is null for other types of assets */
|
|
140
|
+
width: number | null;
|
|
141
|
+
/** The height of an image in pixels. Available for images only. It is null for other types of assets */
|
|
142
|
+
height: number | null;
|
|
143
|
+
}
|
|
144
|
+
//# sourceMappingURL=assets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../src/assets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,SA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;IAC1B,oCAAoC;IACpC,EAAE,EAAE,QAAQ,CAAC;IAEb,mFAAmF;IACnF,GAAG,EAAE,MAAM,CAAC;IAEZ,wBAAwB;IACxB,IAAI,EAAE,MAAM,CAAC;IAEb,+BAA+B;IAC/B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,gCAAgC;IAChC,IAAI,EAAE,SAAS,GAAG,IAAI,CAAC;IAEvB,wCAAwC;IACxC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IAEb,yCAAyC;IACzC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,uGAAuG;IACvG,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB,wGAAwG;IACxG,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,iBAAiB;IAChC,qCAAqC;IACrC,EAAE,EAAE,QAAQ,CAAC;IAEb,mFAAmF;IACnF,GAAG,EAAE,MAAM,CAAC;IAEZ,gCAAgC;IAChC,IAAI,EAAE,SAAS,GAAG,IAAI,CAAC;IAEvB,wCAAwC;IACxC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IAEb,yCAAyC;IACzC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,uGAAuG;IACvG,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB,wGAAwG;IACxG,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { NestedAsset } from "./assets";
|
|
2
|
+
import { NestedOrganization } from "./customer";
|
|
3
|
+
import { NestedUser } from "./customer";
|
|
4
|
+
import { PublicNestedAsset } from "./assets";
|
|
5
|
+
import { BrandUid, OrganizationUid, AssetUid } from "./types";
|
|
6
|
+
/** TODO: Add jsdocs and check nullability of fields */
|
|
7
|
+
export interface Brand {
|
|
8
|
+
id: BrandUid;
|
|
9
|
+
organization: NestedOrganization;
|
|
10
|
+
organization_id: OrganizationUid;
|
|
11
|
+
name: string;
|
|
12
|
+
primary_color_code: string | null;
|
|
13
|
+
secondary_color_code: string | null;
|
|
14
|
+
logo_asset_id: AssetUid | null;
|
|
15
|
+
logo_asset: NestedAsset | null;
|
|
16
|
+
chat_button_asset_id: AssetUid | null;
|
|
17
|
+
chat_button_asset: NestedAsset | null;
|
|
18
|
+
created_at: string;
|
|
19
|
+
updated_at: string;
|
|
20
|
+
created_by_user_id: string;
|
|
21
|
+
updated_by_user_id: string;
|
|
22
|
+
created_by_user: NestedUser;
|
|
23
|
+
updated_by_user: NestedUser;
|
|
24
|
+
}
|
|
25
|
+
/** TODO: Add jsdocs and check nullability of fields */
|
|
26
|
+
export interface BrandPayload {
|
|
27
|
+
name: string;
|
|
28
|
+
primary_color_code: string | null;
|
|
29
|
+
secondary_color_code: string | null;
|
|
30
|
+
logo_asset_id?: AssetUid | null;
|
|
31
|
+
}
|
|
32
|
+
/** TODO: Add jsdocs and check nullability of fields */
|
|
33
|
+
export interface PublicBrand {
|
|
34
|
+
id: BrandUid;
|
|
35
|
+
organization_id: OrganizationUid;
|
|
36
|
+
primary_color_code: string | null;
|
|
37
|
+
secondary_color_code: string | null;
|
|
38
|
+
logo_asset_id: AssetUid | null;
|
|
39
|
+
logo_asset: PublicNestedAsset | null;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=brands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brands.d.ts","sourceRoot":"","sources":["../../src/brands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAA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|
|
1
|
+
import { CallStatusUid, ChatUid, UserUid, VisitorCid, OrganizationUid } from "./types";
|
|
2
|
+
export declare type CallStatusType = "idle" | "dialing" | "ringing" | "in-call";
|
|
3
|
+
interface BaseCallStatus {
|
|
4
|
+
/** Unique identifier of the call status */
|
|
5
|
+
id: CallStatusUid;
|
|
6
|
+
/** Call state type */
|
|
7
|
+
type: CallStatusType;
|
|
8
|
+
/** Call state, for backward compatibility */
|
|
9
|
+
state: any;
|
|
10
|
+
/** Unique identifier of the related chat */
|
|
11
|
+
chat_id: ChatUid;
|
|
12
|
+
/** Unique identifier of the user/visitor being present at the call */
|
|
13
|
+
member_id: UserUid | VisitorCid;
|
|
14
|
+
/** Unique identifier of the organization of the call */
|
|
15
|
+
organization_id: OrganizationUid;
|
|
16
|
+
/** State of audio preference */
|
|
17
|
+
audio_enabled: boolean;
|
|
18
|
+
/** State of video preference */
|
|
19
|
+
video_enabled: boolean;
|
|
20
|
+
/** The text on ringing state */
|
|
21
|
+
call_name: string;
|
|
22
|
+
/** The avatar on ringing state */
|
|
23
|
+
call_avatar: string;
|
|
24
|
+
}
|
|
25
|
+
export interface IdleCallStatus extends BaseCallStatus {
|
|
26
|
+
type: "idle";
|
|
27
|
+
}
|
|
28
|
+
export interface DialingCallStatus extends BaseCallStatus {
|
|
29
|
+
type: "dialing";
|
|
30
|
+
}
|
|
31
|
+
export interface RingingCallStatus extends BaseCallStatus {
|
|
32
|
+
type: "ringing";
|
|
33
|
+
}
|
|
34
|
+
export declare type CobrowseState = "idle" | "requested" | "denied" | "sharing";
|
|
35
|
+
export interface InCallStatus extends BaseCallStatus {
|
|
36
|
+
type: "in-call";
|
|
37
|
+
cobrowse_state: CobrowseState;
|
|
38
|
+
}
|
|
39
|
+
export declare type CallStatus = IdleCallStatus | DialingCallStatus | RingingCallStatus | InCallStatus;
|
|
40
|
+
export {};
|
|
41
|
+
//# sourceMappingURL=call.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,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@
|
|
|
1
|
+
import { OrganizationUid, CannedAnswerUid } from "./types";
|
|
2
|
+
/** TODO: Add jsdocs and check nullability of fields */
|
|
3
|
+
export interface CannedAnswerIncrement {
|
|
4
|
+
id: CannedAnswerUid;
|
|
5
|
+
organization_id: OrganizationUid;
|
|
6
|
+
message: string;
|
|
7
|
+
organization_count: number;
|
|
8
|
+
room_count: number;
|
|
9
|
+
created_at: string;
|
|
10
|
+
updated_at: string;
|
|
11
|
+
}
|
|
12
|
+
/** TODO: Add jsdocs and check nullability of fields */
|
|
13
|
+
export interface CannedAnswer {
|
|
14
|
+
id: CannedAnswerUid;
|
|
15
|
+
organization_id: OrganizationUid;
|
|
16
|
+
message: string;
|
|
17
|
+
organization_count: number;
|
|
18
|
+
room_count: number;
|
|
19
|
+
created_at: string;
|
|
20
|
+
updated_at: string;
|
|
21
|
+
}
|
|
22
|
+
/** TODO: Add jsdocs and check nullability of fields */
|
|
23
|
+
export interface CannedAnswerPayload {
|
|
24
|
+
message: string;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=canned_answers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"canned_answers.d.ts","sourceRoot":"","sources":["../../src/canned_answers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE3D,uDAAuD;AACvD,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,eAAe,CAAC;IACpB,eAAe,EAAE,eAAe,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,uDAAuD;AACvD,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,eAAe,CAAC;IACpB,eAAe,EAAE,eAAe,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,uDAAuD;AACvD,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAC;CACjB"}
|