@giosg/types 6.7.0 → 7.1.0
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/lib/GiosgTCApi.d.ts +7 -2
- package/lib/GiosgTCApi.d.ts.map +1 -1
- package/lib/GiosgTCApi.js +5 -0
- 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 +420 -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/index.d.ts +3 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -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 +420 -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/public.d.ts +10 -0
- package/lib/public.d.ts.map +1 -1
- package/lib/rooms.d.ts +6 -0
- package/lib/rooms.d.ts.map +1 -1
- package/package.json +12 -3
- package/CHANGELOG.md +0 -234
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { UserUid } from "./types";
|
|
2
|
+
export declare const ActionTypes: {
|
|
3
|
+
/** value: autosuggest message as a string, settings: ActionShowAutosuggestSettings*/
|
|
4
|
+
readonly SEND_AUTOSUGGEST: 1;
|
|
5
|
+
/** value: array of room unique identifiers, settings: none */
|
|
6
|
+
readonly JOIN_ROOMS: 2;
|
|
7
|
+
/** value: none, settings: none */
|
|
8
|
+
readonly NO_CHATBUTTON: 5;
|
|
9
|
+
/** value: none, settings: none */
|
|
10
|
+
readonly NO_AUTOSUGGEST: 6;
|
|
11
|
+
/** value: JavaScript expression as a string, settings:none */
|
|
12
|
+
readonly RUN_JAVASCRIPT: 7;
|
|
13
|
+
/** value: none, settings: none */
|
|
14
|
+
readonly ENABLE_CHATBUTTON: 8;
|
|
15
|
+
/** value: CSS selector as a string, settings: none */
|
|
16
|
+
readonly SHOW_ELEMENTS: 9;
|
|
17
|
+
/** value: CSS selector as a string, settings: none */
|
|
18
|
+
readonly HIDE_ELEMENTS: 10;
|
|
19
|
+
/** value: URL as a string, settings: none */
|
|
20
|
+
readonly REDIRECT: 11;
|
|
21
|
+
/** value: lead form unique identifier, settings: none */
|
|
22
|
+
readonly LOAD_LEAD_FORM: 13;
|
|
23
|
+
/** value: button text as a string, settings: none */
|
|
24
|
+
readonly CHANGE_CB_TEXT: 14;
|
|
25
|
+
/** value: room unique identifier, settings: none */
|
|
26
|
+
readonly CHANGE_CB_TARGET: 15;
|
|
27
|
+
/** value: language as a RFC 3066 code, settings: none */
|
|
28
|
+
readonly CHANGE_LANGUAGE: 16;
|
|
29
|
+
/** value: lead form unique identifier, settings: none */
|
|
30
|
+
readonly SHOW_LEAD_FORM: 17;
|
|
31
|
+
/** value: lead form processor unique identifier, settings: none */
|
|
32
|
+
readonly SET_LEAD_FORM_PROCESSOR: 18;
|
|
33
|
+
/** value: button unique identifier, settings: none */
|
|
34
|
+
readonly SHOW_BUTTON: 19;
|
|
35
|
+
/** value: unique identifier of the parent room of the window, settings: none */
|
|
36
|
+
readonly SHOW_CHAT_DIALOG: 20;
|
|
37
|
+
/** value: priority as an integer [1 - 10], settings: none */
|
|
38
|
+
readonly SET_VISITOR_PRIORITY: 21;
|
|
39
|
+
/** value: none , settings: none */
|
|
40
|
+
readonly DISABLE_CAPACITY_CHECK: 22;
|
|
41
|
+
/** value: CSS code as a string, settings: none */
|
|
42
|
+
readonly INJECT_CSS: 23;
|
|
43
|
+
/** value: message as a string, settings: ActionSendChatMessageSettings */
|
|
44
|
+
readonly SEND_SYSTEM_MESSAGE: 25;
|
|
45
|
+
/** value: interactionUuid, settings: none */
|
|
46
|
+
readonly LOAD_INTERACTION: 26;
|
|
47
|
+
/** value: asset unique identifier, settings: ActionSendInteractionToChatSettings */
|
|
48
|
+
readonly SEND_INTERACTION_TO_CHAT: 27;
|
|
49
|
+
};
|
|
50
|
+
export declare type ActionType = typeof ActionTypes[keyof typeof ActionTypes];
|
|
51
|
+
export declare type ActionTypeString = keyof typeof ActionTypes;
|
|
52
|
+
export declare const ACTION_TYPES: ("SEND_AUTOSUGGEST" | "JOIN_ROOMS" | "NO_CHATBUTTON" | "NO_AUTOSUGGEST" | "RUN_JAVASCRIPT" | "ENABLE_CHATBUTTON" | "SHOW_ELEMENTS" | "HIDE_ELEMENTS" | "REDIRECT" | "LOAD_LEAD_FORM" | "CHANGE_CB_TEXT" | "CHANGE_CB_TARGET" | "CHANGE_LANGUAGE" | "SHOW_LEAD_FORM" | "SET_LEAD_FORM_PROCESSOR" | "SHOW_BUTTON" | "SHOW_CHAT_DIALOG" | "SET_VISITOR_PRIORITY" | "DISABLE_CAPACITY_CHECK" | "INJECT_CSS" | "SEND_SYSTEM_MESSAGE" | "LOAD_INTERACTION" | "SEND_INTERACTION_TO_CHAT")[];
|
|
53
|
+
export interface ActionShowAutosuggestSettings {
|
|
54
|
+
/** Unique identifier of the user from whom the message shall be sent */
|
|
55
|
+
autosuggest_user_id: UserUid;
|
|
56
|
+
/** Delay before the chat window will be closed in seconds */
|
|
57
|
+
close_delay: number;
|
|
58
|
+
}
|
|
59
|
+
export interface ActionSendChatMessageSettings {
|
|
60
|
+
/** Name of the sender */
|
|
61
|
+
sender_public_name: string;
|
|
62
|
+
}
|
|
63
|
+
export interface ActionSendInteractionToChatSettings {
|
|
64
|
+
/** Name of the sender */
|
|
65
|
+
sender_public_name: string;
|
|
66
|
+
/** Optional message to send alongside of the interaction */
|
|
67
|
+
message?: string;
|
|
68
|
+
}
|
|
69
|
+
export declare type ActionSettingsType = ActionShowAutosuggestSettings | ActionSendChatMessageSettings | ActionSendInteractionToChatSettings | {};
|
|
70
|
+
export declare const ACTION_STYLES: readonly ["primary", "secondary", "info", "success", "warning", "danger", "link", "brand_primary", "brand_secondary"];
|
|
71
|
+
export declare type ActionStyle = typeof ACTION_STYLES[number];
|
|
72
|
+
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,eAAO,MAAM,WAAW;IACtB,qFAAqF;;IAGrF,8DAA8D;;IAG9D,kCAAkC;;IAGlC,kCAAkC;;IAGlC,8DAA8D;;IAG9D,kCAAkC;;IAGlC,sDAAsD;;IAGtD,sDAAsD;;IAGtD,6CAA6C;;IAG7C,yDAAyD;;IAGzD,qDAAqD;;IAGrD,oDAAoD;;IAGpD,yDAAyD;;IAGzD,yDAAyD;;IAGzD,mEAAmE;;IAGnE,sDAAsD;;IAGtD,gFAAgF;;IAGhF,6DAA6D;;IAG7D,mCAAmC;;IAGnC,kDAAkD;;IAGlD,0EAA0E;;IAG1E,6CAA6C;;IAG7C,oFAAoF;;CAE5E,CAAC;AACX,oBAAY,UAAU,GAAG,OAAO,WAAW,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AACtE,oBAAY,gBAAgB,GAAG,MAAM,OAAO,WAAW,CAAC;AACxD,eAAO,MAAM,YAAY,sdAAiD,CAAC;AAE3E,MAAM,WAAW,6BAA6B;IAC5C,wEAAwE;IACxE,mBAAmB,EAAE,OAAO,CAAC;IAE7B,6DAA6D;IAC7D,WAAW,EAAE,MAAM,CAAC;CACrB;AACD,MAAM,WAAW,6BAA6B;IAC5C,yBAAyB;IACzB,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,mCAAmC;IAClD,yBAAyB;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,oBAAY,kBAAkB,GAC1B,6BAA6B,GAC7B,6BAA6B,GAC7B,mCAAmC,GACnC,EAAE,CAAC;AAEP,eAAO,MAAM,aAAa,uHAUhB,CAAC;AACX,oBAAY,WAAW,GAAG,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export const ActionTypes = {
|
|
2
|
+
/** value: autosuggest message as a string, settings: ActionShowAutosuggestSettings*/
|
|
3
|
+
SEND_AUTOSUGGEST: 1,
|
|
4
|
+
/** value: array of room unique identifiers, settings: none */
|
|
5
|
+
JOIN_ROOMS: 2,
|
|
6
|
+
/** value: none, settings: none */
|
|
7
|
+
NO_CHATBUTTON: 5,
|
|
8
|
+
/** value: none, settings: none */
|
|
9
|
+
NO_AUTOSUGGEST: 6,
|
|
10
|
+
/** value: JavaScript expression as a string, settings:none */
|
|
11
|
+
RUN_JAVASCRIPT: 7,
|
|
12
|
+
/** value: none, settings: none */
|
|
13
|
+
ENABLE_CHATBUTTON: 8,
|
|
14
|
+
/** value: CSS selector as a string, settings: none */
|
|
15
|
+
SHOW_ELEMENTS: 9,
|
|
16
|
+
/** value: CSS selector as a string, settings: none */
|
|
17
|
+
HIDE_ELEMENTS: 10,
|
|
18
|
+
/** value: URL as a string, settings: none */
|
|
19
|
+
REDIRECT: 11,
|
|
20
|
+
/** value: lead form unique identifier, settings: none */
|
|
21
|
+
LOAD_LEAD_FORM: 13,
|
|
22
|
+
/** value: button text as a string, settings: none */
|
|
23
|
+
CHANGE_CB_TEXT: 14,
|
|
24
|
+
/** value: room unique identifier, settings: none */
|
|
25
|
+
CHANGE_CB_TARGET: 15,
|
|
26
|
+
/** value: language as a RFC 3066 code, settings: none */
|
|
27
|
+
CHANGE_LANGUAGE: 16,
|
|
28
|
+
/** value: lead form unique identifier, settings: none */
|
|
29
|
+
SHOW_LEAD_FORM: 17,
|
|
30
|
+
/** value: lead form processor unique identifier, settings: none */
|
|
31
|
+
SET_LEAD_FORM_PROCESSOR: 18,
|
|
32
|
+
/** value: button unique identifier, settings: none */
|
|
33
|
+
SHOW_BUTTON: 19,
|
|
34
|
+
/** value: unique identifier of the parent room of the window, settings: none */
|
|
35
|
+
SHOW_CHAT_DIALOG: 20,
|
|
36
|
+
/** value: priority as an integer [1 - 10], settings: none */
|
|
37
|
+
SET_VISITOR_PRIORITY: 21,
|
|
38
|
+
/** value: none , settings: none */
|
|
39
|
+
DISABLE_CAPACITY_CHECK: 22,
|
|
40
|
+
/** value: CSS code as a string, settings: none */
|
|
41
|
+
INJECT_CSS: 23,
|
|
42
|
+
/** value: message as a string, settings: ActionSendChatMessageSettings */
|
|
43
|
+
SEND_SYSTEM_MESSAGE: 25,
|
|
44
|
+
/** value: interactionUuid, settings: none */
|
|
45
|
+
LOAD_INTERACTION: 26,
|
|
46
|
+
/** value: asset unique identifier, settings: ActionSendInteractionToChatSettings */
|
|
47
|
+
SEND_INTERACTION_TO_CHAT: 27,
|
|
48
|
+
};
|
|
49
|
+
export const ACTION_TYPES = Object.keys(ActionTypes);
|
|
50
|
+
export const ACTION_STYLES = [
|
|
51
|
+
"primary",
|
|
52
|
+
"secondary",
|
|
53
|
+
"info",
|
|
54
|
+
"success",
|
|
55
|
+
"warning",
|
|
56
|
+
"danger",
|
|
57
|
+
"link",
|
|
58
|
+
"brand_primary",
|
|
59
|
+
"brand_secondary",
|
|
60
|
+
];
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { NestedOrganization } from "./customer";
|
|
2
|
+
import { NestedUser } from "./customer";
|
|
3
|
+
import { PublicNestedAsset } from "./assets";
|
|
4
|
+
import { GiosgAppUid, OrganizationUid, UserUid, AssetUid, GiosgAppInstanceUid, UserPermissionScope } from "./types";
|
|
5
|
+
/** TODO: Add jsdocs and check nullability of fields */
|
|
6
|
+
export interface GiosgAppInstance {
|
|
7
|
+
id: GiosgAppInstanceUid;
|
|
8
|
+
app_id: GiosgAppUid;
|
|
9
|
+
app: NestedGiosgApp;
|
|
10
|
+
organization_id: OrganizationUid;
|
|
11
|
+
organization: NestedOrganization;
|
|
12
|
+
created_at: string;
|
|
13
|
+
updated_at: string;
|
|
14
|
+
app_user_id: UserUid | null;
|
|
15
|
+
app_user: NestedUser | null;
|
|
16
|
+
allowed_scopes: UserPermissionScope[];
|
|
17
|
+
is_disabled: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare type GiosgAppTriggerCondition = "chat_start" | "chat_end" | "chat_end_with_msgs" | "chat_open" | "chat_close" | "chat_focus" | "console_load" | "setup" | "install" | "uninstall" | "manual_dialog" | "manual_nav";
|
|
20
|
+
/** TODO: Add jsdocs and check nullability of fields */
|
|
21
|
+
export interface GiosgApp {
|
|
22
|
+
id: GiosgAppUid;
|
|
23
|
+
name: string;
|
|
24
|
+
description: string;
|
|
25
|
+
icon_asset_id: AssetUid | null;
|
|
26
|
+
icon_asset: PublicNestedAsset | null;
|
|
27
|
+
owned_by_organization_id: OrganizationUid;
|
|
28
|
+
owned_by_organization: NestedOrganization;
|
|
29
|
+
secret: string;
|
|
30
|
+
is_available_to_anyone: boolean;
|
|
31
|
+
is_available_to_partners: boolean;
|
|
32
|
+
is_app_user_required: boolean;
|
|
33
|
+
app_user_default_first_name: string | null;
|
|
34
|
+
app_user_default_last_name: string | null;
|
|
35
|
+
app_user_default_alias: string | null;
|
|
36
|
+
terms_of_service_url: string;
|
|
37
|
+
privacy_policy_url: string;
|
|
38
|
+
trigger_url: string | null;
|
|
39
|
+
trigger_conditions: GiosgAppTriggerCondition[];
|
|
40
|
+
required_scopes: UserPermissionScope[];
|
|
41
|
+
allowed_redirect_uris: string[];
|
|
42
|
+
installation_count: number;
|
|
43
|
+
created_at: string;
|
|
44
|
+
updated_at: string;
|
|
45
|
+
created_by_user_id: UserUid;
|
|
46
|
+
created_by_user: NestedUser;
|
|
47
|
+
updated_by_user_id: UserUid;
|
|
48
|
+
updated_by_user: NestedUser;
|
|
49
|
+
}
|
|
50
|
+
/** TODO: Add jsdocs and check nullability of fields */
|
|
51
|
+
export interface GiosgAppPayload {
|
|
52
|
+
name: string;
|
|
53
|
+
description: string;
|
|
54
|
+
icon_asset_id?: AssetUid | null;
|
|
55
|
+
is_available_to_anyone?: boolean;
|
|
56
|
+
is_available_to_partners?: boolean;
|
|
57
|
+
is_app_user_required: boolean;
|
|
58
|
+
app_user_default_first_name?: string | null;
|
|
59
|
+
app_user_default_last_name?: string | null;
|
|
60
|
+
app_user_default_alias?: string | null;
|
|
61
|
+
terms_of_service_url: string;
|
|
62
|
+
privacy_policy_url: string;
|
|
63
|
+
trigger_url?: string | null;
|
|
64
|
+
trigger_conditions?: GiosgAppTriggerCondition[];
|
|
65
|
+
required_scopes?: UserPermissionScope[];
|
|
66
|
+
allowed_redirect_uris?: string[];
|
|
67
|
+
}
|
|
68
|
+
/** TODO: Add jsdocs and check nullability of fields */
|
|
69
|
+
export interface InstalledGiosgApp {
|
|
70
|
+
id: GiosgAppUid;
|
|
71
|
+
name: string;
|
|
72
|
+
description: string;
|
|
73
|
+
icon_asset_id: AssetUid;
|
|
74
|
+
icon_asset: PublicNestedAsset;
|
|
75
|
+
owned_by_organization_id: OrganizationUid;
|
|
76
|
+
owned_by_organization: NestedOrganization;
|
|
77
|
+
is_app_user_required: boolean;
|
|
78
|
+
installation_count: number;
|
|
79
|
+
created_at: string;
|
|
80
|
+
updated_at: string;
|
|
81
|
+
trigger_conditions: GiosgAppTriggerCondition[];
|
|
82
|
+
is_disabled: boolean;
|
|
83
|
+
}
|
|
84
|
+
/** TODO: Add jsdocs and check nullability of fields */
|
|
85
|
+
export interface NestedGiosgApp {
|
|
86
|
+
id: GiosgAppUid;
|
|
87
|
+
name: string;
|
|
88
|
+
description: string;
|
|
89
|
+
icon_asset_id: AssetUid;
|
|
90
|
+
icon_asset: PublicNestedAsset;
|
|
91
|
+
owned_by_organization_id: OrganizationUid;
|
|
92
|
+
owned_by_organization: NestedOrganization;
|
|
93
|
+
is_app_user_required: boolean;
|
|
94
|
+
required_scopes: UserPermissionScope[];
|
|
95
|
+
installation_count: number;
|
|
96
|
+
created_at: string;
|
|
97
|
+
updated_at: string;
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=apps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../src/apps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EACL,WAAW,EACX,eAAe,EACf,OAAO,EACP,QAAQ,EACR,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAEjB,uDAAuD;AACvD,MAAM,WAAW,gBAAgB;IAC/B,EAAE,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AkB,CAAC;IAC1C,oBAAoB,EAAE,OAAO,CAAC;IAC9B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,wBAAwB,EAAE,CAAC;IAC/C,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,uDAAuD;AACvD,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,WAAW,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,QAAQ,CAAC;IACxB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,wBAAwB,EAAE,eAAe,CAAC;IAC1C,qBAAqB,EAAE,kBAAkB,CAAC;IAC1C,oBAAoB,EAAE,OAAO,CAAC;IAC9B,eAAe,EAAE,mBAAmB,EAAE,CAAC;IACvC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
package/lib/mjs/apps.js
ADDED
|
File without changes
|
|
@@ -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,SAAS,CAAC;AAExE,MAAM,WAAW,KAAK;IACpB,qCAAqC;IACrC,EAAE,EAAE,QAAQ,CAAC;IAEb,kDAAkD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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"}
|
|
File without changes
|
|
@@ -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,UAAU,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,SAAS,CAA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
+
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,"file":"call.d.ts","sourceRoot":"","sources":["../../src/call.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE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/** 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"}
|
|
File without changes
|