@giosg/types 7.1.0 → 7.3.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.
Files changed (143) hide show
  1. package/lib/cjs/GiosgTCApi.d.ts +1 -0
  2. package/lib/cjs/GiosgTCApi.d.ts.map +1 -1
  3. package/lib/cjs/actions.d.ts +2 -1
  4. package/lib/cjs/actions.d.ts.map +1 -1
  5. package/lib/cjs/actions.js +1 -0
  6. package/lib/cjs/conditions.d.ts +3 -1
  7. package/lib/cjs/conditions.d.ts.map +1 -1
  8. package/lib/cjs/conditions.js +2 -0
  9. package/lib/cjs/index.d.ts +2 -2
  10. package/lib/cjs/index.d.ts.map +1 -1
  11. package/lib/cjs/public.d.ts +10 -31
  12. package/lib/cjs/public.d.ts.map +1 -1
  13. package/lib/cjs/rooms.d.ts +3 -0
  14. package/lib/cjs/rooms.d.ts.map +1 -1
  15. package/lib/cjs/types.d.ts +1 -1
  16. package/lib/cjs/types.d.ts.map +1 -1
  17. package/lib/cjs/types.js +2 -0
  18. package/lib/mjs/GiosgTCApi.d.ts +1 -0
  19. package/lib/mjs/GiosgTCApi.d.ts.map +1 -1
  20. package/lib/mjs/actions.d.ts +2 -1
  21. package/lib/mjs/actions.d.ts.map +1 -1
  22. package/lib/mjs/actions.js +1 -0
  23. package/lib/mjs/conditions.d.ts +3 -1
  24. package/lib/mjs/conditions.d.ts.map +1 -1
  25. package/lib/mjs/conditions.js +2 -0
  26. package/lib/mjs/index.d.ts +2 -2
  27. package/lib/mjs/index.d.ts.map +1 -1
  28. package/lib/mjs/public.d.ts +10 -31
  29. package/lib/mjs/public.d.ts.map +1 -1
  30. package/lib/mjs/rooms.d.ts +3 -0
  31. package/lib/mjs/rooms.d.ts.map +1 -1
  32. package/lib/mjs/types.d.ts +1 -1
  33. package/lib/mjs/types.d.ts.map +1 -1
  34. package/lib/mjs/types.js +2 -0
  35. package/package.json +2 -2
  36. package/lib/GiosgTCApi.d.ts +0 -118
  37. package/lib/GiosgTCApi.d.ts.map +0 -1
  38. package/lib/GiosgTCApi.js +0 -22
  39. package/lib/actions.d.ts +0 -72
  40. package/lib/actions.d.ts.map +0 -1
  41. package/lib/actions.js +0 -60
  42. package/lib/apps.d.ts +0 -99
  43. package/lib/apps.d.ts.map +0 -1
  44. package/lib/apps.js +0 -1
  45. package/lib/assets.d.ts +0 -144
  46. package/lib/assets.d.ts.map +0 -1
  47. package/lib/assets.js +0 -1
  48. package/lib/brands.d.ts +0 -41
  49. package/lib/brands.d.ts.map +0 -1
  50. package/lib/brands.js +0 -1
  51. package/lib/call.d.ts +0 -41
  52. package/lib/call.d.ts.map +0 -1
  53. package/lib/call.js +0 -1
  54. package/lib/canned_answers.d.ts +0 -26
  55. package/lib/canned_answers.d.ts.map +0 -1
  56. package/lib/canned_answers.js +0 -1
  57. package/lib/chat.d.ts +0 -1071
  58. package/lib/chat.d.ts.map +0 -1
  59. package/lib/chat.js +0 -1
  60. package/lib/common.d.ts +0 -7
  61. package/lib/common.d.ts.map +0 -1
  62. package/lib/common.js +0 -625
  63. package/lib/conditions.d.ts +0 -98
  64. package/lib/conditions.d.ts.map +0 -1
  65. package/lib/conditions.js +0 -77
  66. package/lib/customer.d.ts +0 -519
  67. package/lib/customer.d.ts.map +0 -1
  68. package/lib/customer.js +0 -1
  69. package/lib/customership.d.ts +0 -79
  70. package/lib/customership.d.ts.map +0 -1
  71. package/lib/customership.js +0 -1
  72. package/lib/email.d.ts +0 -47
  73. package/lib/email.d.ts.map +0 -1
  74. package/lib/email.js +0 -1
  75. package/lib/experiments.d.ts +0 -168
  76. package/lib/experiments.d.ts.map +0 -1
  77. package/lib/experiments.js +0 -1
  78. package/lib/goals.d.ts +0 -126
  79. package/lib/goals.d.ts.map +0 -1
  80. package/lib/goals.js +0 -1
  81. package/lib/index.d.ts +0 -36
  82. package/lib/index.d.ts.map +0 -1
  83. package/lib/index.js +0 -7
  84. package/lib/leadforms.d.ts +0 -30
  85. package/lib/leadforms.d.ts.map +0 -1
  86. package/lib/leadforms.js +0 -1
  87. package/lib/linkpreview.d.ts +0 -16
  88. package/lib/linkpreview.d.ts.map +0 -1
  89. package/lib/linkpreview.js +0 -1
  90. package/lib/oath.d.ts +0 -75
  91. package/lib/oath.d.ts.map +0 -1
  92. package/lib/oath.js +0 -22
  93. package/lib/partnerships.d.ts +0 -54
  94. package/lib/partnerships.d.ts.map +0 -1
  95. package/lib/partnerships.js +0 -1
  96. package/lib/permissions.d.ts +0 -26
  97. package/lib/permissions.d.ts.map +0 -1
  98. package/lib/permissions.js +0 -1
  99. package/lib/public.d.ts +0 -397
  100. package/lib/public.d.ts.map +0 -1
  101. package/lib/public.js +0 -9
  102. package/lib/rooms.d.ts +0 -205
  103. package/lib/rooms.d.ts.map +0 -1
  104. package/lib/rooms.js +0 -1
  105. package/lib/routers.d.ts +0 -76
  106. package/lib/routers.d.ts.map +0 -1
  107. package/lib/routers.js +0 -1
  108. package/lib/rules.d.ts +0 -229
  109. package/lib/rules.d.ts.map +0 -1
  110. package/lib/rules.js +0 -1
  111. package/lib/sharing.d.ts +0 -111
  112. package/lib/sharing.d.ts.map +0 -1
  113. package/lib/sharing.js +0 -1
  114. package/lib/shoppingcarts.d.ts +0 -33
  115. package/lib/shoppingcarts.d.ts.map +0 -1
  116. package/lib/shoppingcarts.js +0 -1
  117. package/lib/system.d.ts +0 -21
  118. package/lib/system.d.ts.map +0 -1
  119. package/lib/system.js +0 -1
  120. package/lib/target.d.ts +0 -105
  121. package/lib/target.d.ts.map +0 -1
  122. package/lib/target.js +0 -1
  123. package/lib/teams.d.ts +0 -78
  124. package/lib/teams.d.ts.map +0 -1
  125. package/lib/teams.js +0 -1
  126. package/lib/types.d.ts +0 -226
  127. package/lib/types.d.ts.map +0 -1
  128. package/lib/types.js +0 -26
  129. package/lib/uploads.d.ts +0 -55
  130. package/lib/uploads.d.ts.map +0 -1
  131. package/lib/uploads.js +0 -1
  132. package/lib/userclients.d.ts +0 -79
  133. package/lib/userclients.d.ts.map +0 -1
  134. package/lib/userclients.js +0 -1
  135. package/lib/variables.d.ts +0 -41
  136. package/lib/variables.d.ts.map +0 -1
  137. package/lib/variables.js +0 -1
  138. package/lib/visitor.d.ts +0 -210
  139. package/lib/visitor.d.ts.map +0 -1
  140. package/lib/visitor.js +0 -1
  141. package/lib/webhooks.d.ts +0 -61
  142. package/lib/webhooks.d.ts.map +0 -1
  143. package/lib/webhooks.js +0 -1
package/lib/teams.d.ts DELETED
@@ -1,78 +0,0 @@
1
- import { TeamUid, OrganizationUid, UserUid, ChatUid } from "./types";
2
- import { NestedOrganization, NestedUser } from "./customer";
3
- export interface Team {
4
- /** The unique identifier of this team */
5
- id: TeamUid;
6
- /** ID of the organization who owns this team. */
7
- organization_id: OrganizationUid;
8
- /** The organization who owns this team. */
9
- organization: NestedOrganization;
10
- /** Name of the team. Must be a non-empty string. */
11
- name: string;
12
- /** Display name of the team. It may equal to the name attribute,
13
- * unless this team is [shared][outgoing team share] to your
14
- * organization with a custom share_name.
15
- * (Currently always equal to the name attribute) */
16
- display_name: string | null;
17
- /** When the team resource was created */
18
- created_at: string;
19
- /** When the team resource was updated last time */
20
- updated_at: string;
21
- /**
22
- * Number of members in this team.
23
- * @todo Validate: Available only to your own organization
24
- */
25
- member_count: number;
26
- /** Whether or not the team is currently online. */
27
- is_online: boolean;
28
- /** Whether or not the team is currently present. */
29
- is_present: boolean;
30
- /**
31
- * Number of present both members in this team.
32
- * @todo Validate: Available only to your own organization.
33
- * */
34
- present_member_count: number;
35
- created_by_user_id: UserUid | null;
36
- created_by_user: NestedUser | null;
37
- updated_by_user_id: UserUid | null;
38
- updated_by_user: NestedUser | null;
39
- /** Chat session id of the team's fixed group chat */
40
- group_chat_id: ChatUid | null;
41
- /** Whether the team is connected to a room */
42
- is_connected_to_room: boolean;
43
- }
44
- /** TODO: Add jsdocs and check nullability of fields */
45
- export interface NestedTeam {
46
- id: TeamUid;
47
- name: string;
48
- display_name: string | null;
49
- organization_id: OrganizationUid;
50
- }
51
- export interface NestedIncomingSharedTeam {
52
- id: TeamUid;
53
- display_name: string | null;
54
- organization_id: OrganizationUid;
55
- is_online: boolean;
56
- is_present: boolean;
57
- }
58
- export interface TeamPayload {
59
- name: string;
60
- display_name?: string | null;
61
- }
62
- /** TODO: Add jsdocs and check nullability of fields */
63
- export interface TeamMembership {
64
- team_id: TeamUid;
65
- team: NestedTeam;
66
- user_id: UserUid;
67
- user: NestedUser;
68
- created_by_user_id: UserUid | null;
69
- created_by_user: NestedUser | null;
70
- created_at: string;
71
- updated_by_user_id: UserUid | null;
72
- updated_by_user: NestedUser | null;
73
- updated_at: string;
74
- }
75
- export interface TeamMembershipPayload {
76
- user_id: UserUid;
77
- }
78
- //# sourceMappingURL=teams.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"teams.d.ts","sourceRoot":"","sources":["../src/teams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE5D,MAAM,WAAW,IAAI;IACnB,yCAAyC;IACzC,EAAE,EAAE,OAAO,CAAC;IACZ,iDAAiD;IACjD,eAAe,EAAE,eAAe,CAAC;IACjC,2CAA2C;IAC3C,YAAY,EAAE,kBAAkB,CAAC;IACjC,oDAAoD;IACpD,IAAI,EAAE,MAAM,CAAC;IACb;;;yDAGqD;IACrD,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,yCAAyC;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,mDAAmD;IACnD,SAAS,EAAE,OAAO,CAAC;IACnB,oDAAoD;IACpD,UAAU,EAAE,OAAO,CAAC;IACpB;;;UAGM;IACN,oBAAoB,EAAE,MAAM,CAAC;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ib/teams.js DELETED
@@ -1 +0,0 @@
1
- export {};
package/lib/types.d.ts DELETED
@@ -1,226 +0,0 @@
1
- export declare type ApplicationUid = string & {
2
- readonly __nominal: "aabaa60d-c2f6-4f77-b168-3d7b491be66c";
3
- };
4
- export declare type AppShareUid = string & {
5
- readonly __nominal: "5ad51c28-4369-41ae-ac49-3ce77df5bf69";
6
- };
7
- export declare type AssetUid = string & {
8
- readonly __nominal: "9f828b12-ea0c-4d03-a94d-6ea7d48f77fa";
9
- };
10
- export declare type AvatarUid = string & {
11
- readonly __nominal: "5ad51c27-4369-41ae-ac49-3ce77df5bf69";
12
- };
13
- export declare type BrandUid = string & {
14
- readonly __nominal: "89f2667b-aef0-42b2-b249-73ee60201718";
15
- };
16
- export declare type BusinessUid = string & {
17
- readonly __nominal: "9eee0846-2dba-401e-8699-2003939ca867";
18
- };
19
- export declare type CannedAnswerUid = string & {
20
- readonly __nominal: "9eee0847-2dba-401e-8699-2003939ca867";
21
- };
22
- export declare type ChatAssignmentUid = string & {
23
- readonly __nominal: "9d5bc251-0d68-44ad-8034-b9a065092cc3";
24
- };
25
- export declare type LegacyChatDialogUid = string & {
26
- readonly __nominal: "9d5bc987-0d68-44ad-8034-b9a065092cc3";
27
- };
28
- export declare type ChatInvitationUid = string & {
29
- readonly __nominal: "9d5bc25e-0d68-44ad-8034-b9a065092cc3";
30
- };
31
- export declare type ChatMessageAttachmentUid = string & {
32
- readonly __nominal: "00e79818-8862-4420-b8a2-691deeafe426";
33
- };
34
- export declare type ChatMessageAttachmentActionUid = string & {
35
- readonly __nominal: "228c394f-c768-44e3-a204-a2df84d64f30";
36
- };
37
- export declare type ChatMessageUid = string & {
38
- readonly __nominal: "449c2b60-e5cc-4349-a87d-a09f899218e3";
39
- };
40
- export declare type ChatReplySuggestionUid = string & {
41
- readonly __nominal: "ee2412cf-fd1d-458e-a80c-336fb6a1a8c1";
42
- };
43
- export declare type ChatSessionUid = string & {
44
- readonly __nominal: "13c28711-dc1c-46d9-acd9-cb5b7e80145e";
45
- };
46
- export declare type CallStatusUid = string & {
47
- readonly __nominal: "a5cf6ae1-63f1-4635-99c4-067ca7275a08";
48
- };
49
- export declare type ChatUid = string & {
50
- readonly __nominal: "ac6c792d-719f-4443-817a-8edaab4cf5fd";
51
- };
52
- export declare type ExperimentGroupUid = string & {
53
- readonly __nominal: "0caecde8-e9f8-436f-a640-4920b5293b0e";
54
- };
55
- export declare type ExperimentUid = string & {
56
- readonly __nominal: "0badd539-8fbf-4ad1-91ac-5db43108f8cf";
57
- };
58
- export declare type FeatureName = string & {
59
- readonly __nominal: "618ba5c9-40e5-4f55-a4f5-501fed320eab";
60
- };
61
- export declare type GiosgAppUid = string & {
62
- readonly __nominal: "f478f510-8157-47a5-afb1-095ab8d08f2e";
63
- };
64
- export declare type GiosgAppInstanceUid = string & {
65
- readonly __nominal: "f478f511-8157-47a5-afb1-095ab8d08f2e";
66
- };
67
- export declare type GoalUid = string & {
68
- readonly __nominal: "f478f5a9-8157-47a5-afb1-095ab8d08f2e";
69
- };
70
- export declare type InteractionUid = string & {
71
- readonly __nominal: "d8a45e8c-4391-4dec-ab87-54ea2f857b10";
72
- };
73
- export declare type LeadFormDataUid = string & {
74
- readonly __nominal: "5bccc5da-6ec9-475e-960f-e326cbc2d306";
75
- };
76
- export declare type LeadFormDefinitionUid = string & {
77
- readonly __nominal: "5bccc5db-6ec9-475e-960f-e326cbc2d306";
78
- };
79
- export declare type OrganizationUid = string & {
80
- readonly __nominal: "5bccc5dc-6ec9-475e-960f-e326cbc2d306";
81
- };
82
- export declare type OrganizationSettingsUid = string & {
83
- readonly __nominal: "ffc0920e-38bf-4f35-acc1-27f88b242189";
84
- };
85
- export declare type PublicKeyUid = string & {
86
- readonly __nominal: "ffc09aaa-38bf-4f35-acc1-27f88b242189";
87
- };
88
- export declare type QuotaUid = string & {
89
- readonly __nominal: "baf58b65-940f-4e2f-85d6-0d5758d82ee4";
90
- };
91
- export declare type RoomSettingsUid = string & {
92
- readonly __nominal: "f976c20c-ab4d-4285-afa7-c3430a7e70be";
93
- };
94
- export declare type RoomShareUid = string & {
95
- readonly __nominal: "9371cd04-57d6-11ea-8e2d-0242ac130003";
96
- };
97
- export declare type RoomUid = string & {
98
- readonly __nominal: "2df4f886-b13b-4ec4-8efd-3f57dcc7c78f";
99
- };
100
- export declare type RouterUid = string & {
101
- readonly __nominal: "700f3741-f88f-4317-9b0c-874600d41c7b";
102
- };
103
- export declare type RouterStepUid = string & {
104
- readonly __nominal: "33f040e4-524b-11ea-8d77-2e728ce88125";
105
- };
106
- export declare type RuleActionUid = string & {
107
- readonly __nominal: "5433a54d-4a3d-449e-82f5-6e4d510eaa7b";
108
- };
109
- export declare type RuleConditionUid = string & {
110
- readonly __nominal: "8d18368d-1aa4-4a23-9125-26df74aed75c";
111
- };
112
- export declare type RuleUid = string & {
113
- readonly __nominal: "96dc2143-a22e-4159-9ca5-f4ce94b43439";
114
- };
115
- export declare type ShoppingCartUid = string & {
116
- readonly __nominal: "1d183681-1aa4-4a23-9125-26df74aed75c";
117
- };
118
- export declare type ShoppingCartProductUid = string & {
119
- readonly __nominal: "2d183681-1aa4-4a23-9125-26df74aed75c";
120
- };
121
- export declare type TagUid = string & {
122
- readonly __nominal: "174b467a-4eb8-4a2e-8000-16f632a71278";
123
- };
124
- export declare type TargetConfigUid = string & {
125
- readonly __nominal: "174b467b-4eb8-4a2e-8000-16f632a71278";
126
- };
127
- export declare type TeamShareUid = string & {
128
- readonly __nominal: "5ad51c28-4369-41ae-ac49-3ce77df5b123";
129
- };
130
- export declare type TeamUid = string & {
131
- readonly __nominal: "4ee00c46-7dea-4aee-9055-72fac2cdb009";
132
- };
133
- export declare type TokenUid = string & {
134
- readonly __nominal: "8627e1be-04b7-4002-bf07-63452cdeb274";
135
- };
136
- export declare type UserUid = string & {
137
- readonly __nominal: "291adb6b-0f14-4d2d-8ca4-435de3d5224c";
138
- };
139
- export declare type UploadUid = string & {
140
- readonly __nominal: "a94cdd59-4493-42aa-9cfd-558501b9f39a";
141
- };
142
- export declare type VisitorPredictionUid = string & {
143
- readonly __nominal: "a94cdd69-4493-42aa-9cfd-558501b9f39a";
144
- };
145
- export declare type VisitorSessionPredictionUid = string & {
146
- readonly __nominal: "a94cdd70-4493-42aa-9cfd-558501b9f39a";
147
- };
148
- export declare type WebhookUid = string & {
149
- readonly __nominal: "a94cdd10-4493-42aa-9cfd-558501b9f39a";
150
- };
151
- /**
152
- * @deprecated
153
- *
154
- * This type is a TODO for all visitorId-related things.
155
- * It should be replaced with one of VisitorCid or PackedVisitorCid or VisitorGid */
156
- export declare type VisitorUid = string & {
157
- readonly __nominal: "9a7132fb-30c1-4353-a5cc-30159cd45ba1";
158
- };
159
- export declare type UserClientUid = string & {
160
- readonly __nominal: "8148d977-69f2-42f6-9024-379a13b81e9c";
161
- };
162
- export declare type BlackListUid = string & {
163
- readonly __nominal: "90ec633c-ee0d-4b5e-ac47-f96816292b3d";
164
- };
165
- /** VisitorId packed into a signed giosg id format. Used at least in operator console. */
166
- export declare type PackedVisitorCid = string & {
167
- readonly __nominal: "28f6b7d6-6678-41d7-baa8-3ef0b24bf5ad";
168
- };
169
- /** Unique identifier which is used to generate VisitorCid and VisitorGid.
170
- * Only used inside visitor side iframes and is passed to server.
171
- */
172
- export declare type VisitorSecretId = string & {
173
- readonly __nominal: "cc86fcd6-c232-4a05-977e-3e9d3b4b6b1d";
174
- };
175
- /** Unique identifier for a visitor session in the scope of an organization. Cid stands for "Company ID". */
176
- export declare type VisitorSessionCid = string & {
177
- readonly __nominal: "8ff88fe4-99d0-423e-807f-b778fa520b7e";
178
- };
179
- /** Globally unique identifier for a visitor session. Gid stands for "Global ID". */
180
- export declare type VisitorSessionGid = string & {
181
- readonly __nominal: "cfbe5d40-8d3c-4c29-9cd1-6a6db3ddebb8";
182
- };
183
- /** Unique identifier for a visitor in the scope of an organization. Cid stands for "Company ID". */
184
- export declare type VisitorCid = string & {
185
- readonly __nominal: "3a96b436-5af8-4c45-8438-c76369900bee";
186
- };
187
- /** Globally unique identifier for a visitor. Gid stands for "Global ID". */
188
- export declare type VisitorGid = string & {
189
- readonly __nominal: "6b3fc6d0-9230-4411-a717-0a033bc1a437";
190
- };
191
- export declare type UserLegacyId = number & {
192
- readonly __nominal: "85110dc1-c699-43ca-82fa-ad194ad35ea5";
193
- };
194
- export declare type ChatLegacyId = string & {
195
- readonly __nominal: "7ae3a7dc-1cbb-4a15-af3e-1f6827ba9f26";
196
- };
197
- export declare type ChatUserLegacyId = string & {
198
- readonly __nominal: "d51ae2cf-ac03-4883-9e87-1ad0c88405a2";
199
- };
200
- export declare type OrganizationLegacyId = number & {
201
- readonly __nominal: "f27d0c74-5869-4831-a891-249ca5d0f52b";
202
- };
203
- export declare type RoomLegacyId = string & {
204
- readonly __nominal: "ba9822d6-197a-429c-b572-3f7e550e4950";
205
- };
206
- export declare type RuleLegacyId = string & {
207
- readonly __nominal: "aaadddbb-8ff6-4169-b8be-0753515c86c4";
208
- };
209
- export declare type VisitorLegacyId = string & {
210
- readonly __nominal: "6ea4324a-b749-47ad-8339-9c3c4af97304";
211
- };
212
- export declare type RoomLegacyToken = string & {
213
- readonly __nominal: "f4c26e5f-1ba1-4b79-bcb7-53e4b0e63d14";
214
- };
215
- export declare const ASSET_TYPES: readonly ["image", "css", "javascript", "font"];
216
- export declare type AssetType = typeof ASSET_TYPES[number];
217
- export declare const EXPERIMENT_GROUP_TYPES: readonly ["target_algorithm", "target_algorithm_beta1", "target_algorithm_beta2", "target_algorithm_beta3", "target_random", "control", "user_defined"];
218
- export declare type ExperimentGroupType = typeof EXPERIMENT_GROUP_TYPES[number];
219
- export declare const CHAT_STATUS_MESSAGE_TYPES: readonly ["join", "leave", "shoppingcart_locked", "action", "call_ended"];
220
- export declare type ChatStatusMessageType = typeof CHAT_STATUS_MESSAGE_TYPES[number];
221
- export declare const CHAT_DATA_MESSAGE_TYPES: readonly ["msg", "autosuggest", "system", "interaction_submit", "call_request"];
222
- export declare type ChatDataMessageType = typeof CHAT_DATA_MESSAGE_TYPES[number];
223
- export declare type ChatMessageType = ChatStatusMessageType | ChatDataMessageType;
224
- export declare const USER_PERMISSION_SCOPES: readonly ["settings", "reports", "users"];
225
- export declare type UserPermissionScope = typeof USER_PERMISSION_SCOPES[number];
226
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AACA,oBAAY,cAAc,GAAG,MAAM,GAAG;IACpC,QAAQ,CAAC,SAAS,EAAE,sCAAsC,CAAC;CAC5D,CAAC;AACF,oBAAY,WAAW,GAAG,MAAM,GAAG;IAAE,QAAQ,CAAC,SAAS,EAAE,sCAAsC,CAAA;CAAE,CAAC;AAClG,oBAAY,QAAQ,GAAG,MAAM,GAAG;IAAE,QAAQ,CAAC,SAAS,EAAE,sCAAsC,CAAA;CAAE,CAAC;AAC/F,oBAAY,SAAS,GAAG,MAAM,GAAG;IAAE,QAAQ,CAAC,SAAS,EAAE,sCAAsC,CAAA;CAAE,CAAC;AAChG,oBAAY,QAAQ,GAAG,MAAM,GAAG;IAAE,QAAQ,CAAC,SAAS,EAAE,sCAAsC,CAAA;CAAE,CAAC;AAC/F,oBAAY,WAAW,GAAG,MAAM,GAAG;IAAE,QAAQ,CAAC,SAAS,EAAE,sCAAsC,CAAA;CAAE,CAAC;AAClG,oBAAY,eAAe,GAAG,MAAM,GAAG;IACrC,QAAQ,CAAC,SAAS,EAAE,sCAAsC,CAAC;CAC5D,CAAC;AACF,oBAAY,iBAAiB,GAAG,MAAM,GAAG;IACvC,QAAQ,CAAC,SAAS,EAAE,sCAAsC,CAAC;CAC5D,CAAC;AACF,oBAAY,mBAAmB,GAAG,MAAM,GAAG;IACzC,QAAQ,CAAC,SAAS,EAAE,sCAAsC,CAAC;CAC5D,CAAC;AACF,oBAAY,iBAAiB,GAAG,MAAM,GAAG;IACvC,QAAQ,CAAC,SAAS,EAAE,sCAAsC,CAAC;CAC5D,CAAC;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AC,CAAC"}
package/lib/types.js DELETED
@@ -1,26 +0,0 @@
1
- // Types
2
- export var ASSET_TYPES = ["image", "css", "javascript", "font"];
3
- export var EXPERIMENT_GROUP_TYPES = [
4
- "target_algorithm",
5
- "target_algorithm_beta1",
6
- "target_algorithm_beta2",
7
- "target_algorithm_beta3",
8
- "target_random",
9
- "control",
10
- "user_defined",
11
- ];
12
- export var CHAT_STATUS_MESSAGE_TYPES = [
13
- "join",
14
- "leave",
15
- "shoppingcart_locked",
16
- "action",
17
- "call_ended",
18
- ];
19
- export var CHAT_DATA_MESSAGE_TYPES = [
20
- "msg",
21
- "autosuggest",
22
- "system",
23
- "interaction_submit",
24
- "call_request",
25
- ];
26
- export var USER_PERMISSION_SCOPES = ["settings", "reports", "users"];
package/lib/uploads.d.ts DELETED
@@ -1,55 +0,0 @@
1
- import { NestedUser } from "./customer";
2
- import { UploadUid, OrganizationUid, UserUid } from "./types";
3
- export interface Upload {
4
- /** Unique identifier of the upload */
5
- id: UploadUid;
6
- /** The original file name of the uploaded file */
7
- original_file_name: string;
8
- /** File size in bytes */
9
- file_size: number;
10
- /** Content type of the uploaded file */
11
- content_type: string;
12
- /** Base64 encoded MD5 hash of file content */
13
- file_hash: string;
14
- /** Object containing upload url and other fields that needs to be added to S3 upload request. */
15
- upload_url: {
16
- /** Upload request url */
17
- url: string;
18
- /** Fields that needed to be added to upload POST request for S3 */
19
- fields: {
20
- acl: string;
21
- key: string;
22
- "Content-Type": string;
23
- "Content-MD5": string;
24
- "Content-Disposition": string;
25
- "x-amz-algorithm": string;
26
- "x-amz-credential": string;
27
- "x-amz-date": string;
28
- policy: string;
29
- "x-amz-signature": string;
30
- };
31
- };
32
- /** Url to download the uploaded file */
33
- download_url: string;
34
- /** Unique identifier of the organization that owns the asset */
35
- organization_id: OrganizationUid;
36
- /** Datetime when the upload was created */
37
- created_at: string;
38
- /** Datetime when the upload was changed for the last time */
39
- updated_at: string;
40
- /** Unique identifier of the user who created the upload */
41
- created_by_user_id: UserUid;
42
- /** User who created the upload */
43
- created_by_user: NestedUser;
44
- }
45
- export interface UploadPayload {
46
- /** The original file name of the uploaded file */
47
- original_file_name: string;
48
- /** File size in bytes */
49
- file_size: number;
50
- /** Content type of the uploaded file */
51
- content_type: string;
52
- /** Base64 encoded MD5 hash of file content */
53
- file_hash: string;
54
- }
55
- //# sourceMappingURL=uploads.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["../src/uploads.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAE9D,MAAM,WAAW,MAAM;IACrB,sCAAsC;IACtC,EAAE,EAAE,SAAS,CAAC;IAEd,kDAAkD;IAClD,kBAAkB,EAAE,MAAM,CAAC;IAE3B,yBAAyB;IACzB,SAAS,EAAE,MAAM,CAAC;IAElB,wCAAwC;IACxC,YAAY,EAAE,MAAM,CAAC;IAErB,8CAA8C;IAC9C,SAAS,EAAE,MAAM,CAAC;IAElB,iGAAiG;IACjG,UAAU,EAAE;QACV,yBAAyB;QACzB,GAAG,EAAE,MAAM,CAAC;QAEZ,mEAAmE;QACnE,MAAM,EAAE;YACN,GAAG,EAAE,MAAM,CAAC;YACZ,GAAG,EAAE,MAAM,CAAC;YACZ,cAAc,EAAE,MAAM,CAAC;YACvB,aAAa,EAAE,MAAM,CAAC;YACtB,qBAAqB,EAAE,MAAM,CAAC;YAC9B,iBAAiB,EAAE,MAAM,CAAC;YAC1B,kBAAkB,EAAE,MAAM,CAAC;YAC3B,YAAY,EAAE,MAAM,CAAC;YACrB,MAAM,EAAE,MAAM,CAAC;YACf,iBAAiB,EAAE,MAAM,CAAC;SAC3B,CAAC;KACH,CAAC;IACF,wCAAwC;IACxC,YAAY,EAAE,MAAM,CAAC;IAErB,gEAAgE;IAChE,eAAe,EAAE,eAAe,CAAC;IAEjC,2CAA2C;IAC3C,UAAU,EAAE,MAAM,CAAC;IAEnB,6DAA6D;IAC7D,UAAU,EAAE,MAAM,CAAC;IAEnB,2DAA2D;IAC3D,kBAAkB,EAAE,OAAO,CAAC;IAE5B,kCAAkC;IAClC,eAAe,EAAE,UAAU,CAAC;CAC7B;AAED,MAAM,WAAW,aAAa;IAC5B,kDAAkD;IAClD,kBAAkB,EAAE,MAAM,CAAC;IAE3B,yBAAyB;IACzB,SAAS,EAAE,MAAM,CAAC;IAElB,wCAAwC;IACxC,YAAY,EAAE,MAAM,CAAC;IAErB,8CAA8C;IAC9C,SAAS,EAAE,MAAM,CAAC;CACnB"}
package/lib/uploads.js DELETED
@@ -1 +0,0 @@
1
- export {};
@@ -1,79 +0,0 @@
1
- import { UserClientUid } from "./types";
2
- /**
3
- * Each single application instance that uses the giosg HTTP API
4
- * is considered a “user client”. Each user may have multiple clients.
5
- * For example, the same user may use giosg on their desktop computer
6
- * and/or on their mobile device. What is a “client” depends on the type of the app:
7
- * - For web browser (either mobile or desktop) each browser tab or window is
8
- * their own “client”. It is recommended that each page load is a new client,
9
- * so you only need to keep the client ID in memory while the page is running.
10
- * There is no need to persist the ID, e.g. in a web storage.
11
- * The client will be automatically forgotten when expired.
12
- * Therefore, you should keep the expiration time relatively short.
13
- * - For mobile apps each app installation is their own “client”.
14
- * You register the client when the user signs in and then persist the
15
- * client ID until uninstallation or sign-out. Mobile apps rarely get chances
16
- * to announce their presence so their expiration time should be relatively long.
17
- * - For a native software or a web browser extension/plugin, the installation
18
- * is a single client until uninstalled.
19
- *
20
- * User clients have two important functions:
21
- * - Refreshing the user’s presence
22
- * - Users have two special attributes that depends of whether or not the user
23
- * has announced his presence: is_online and is_present.
24
- * Their values may only be true if there is at least one user client
25
- * that the system considers “present”. The system remembers when the client
26
- * has last time announced about themselves and automatically determines if
27
- * the related user is present. Also, user may only be online if they are also present.
28
- */
29
- export interface UserClient {
30
- /** An unique identifier for the client, generated by the system. */
31
- id: UserClientUid;
32
- /** Client type */
33
- client_type: "bar" | "console" | "external" | "notification_service" | "unknown";
34
- /** The number of seconds the system should keep this client present.
35
- * Only the latest provided value applies for the client. */
36
- presence_expires_in: number;
37
- /**
38
- * When the client will expire (or has expired), calculated
39
- * from presence_expires_in. If this is in the past, then
40
- * the client is not considered present.
41
- *
42
- * The presence_expires_in defines how often you need to
43
- * refresh the client’s presence status. Longer timeout allows you
44
- * to make less refresh requests. On the other hand, with longer
45
- * timeouts it takes longer to notice that your client has been closed,
46
- * shut down, or disconnected from the network. We recommend shorter
47
- * timeouts for browsers (e.g. 60 seconds) and longer timeouts for mobile apps.
48
- */
49
- presence_expires_at: string;
50
- /**
51
- * Probably equals to `presence_expires_in > 0`
52
- */
53
- is_present: boolean | null;
54
- /** Whether or not this user client is about to expire soon.
55
- * This becomes false when creating/refreshing a user client,
56
- * and will later change to true. This can be used to implement
57
- * “server-side pinging”, see below. */
58
- is_about_to_expire: boolean;
59
- /** This attribute is deprecated and will be dropped soon. */
60
- gcm_token: string | null;
61
- /** @deprecated This attribute is deprecated and will be dropped soon. */
62
- subscribed_channels: string[];
63
- /** When the user client resource was created. */
64
- created_at: string;
65
- /** When the user client resource was updated last time. */
66
- updated_at: string;
67
- }
68
- export interface UserClientPayload {
69
- /** The number of seconds the system should keep this client present.
70
- * Only the latest provided value applies for the client. */
71
- presence_expires_in: number;
72
- /** This attribute is deprecated and will be dropped soon. */
73
- gcm_token?: string;
74
- /** @deprecated This attribute is deprecated and will be dropped soon. */
75
- subscribed_channels?: string[];
76
- /** Client type */
77
- client_type?: "bar" | "console" | "external" | "notification_service" | "unknown";
78
- }
79
- //# sourceMappingURL=userclients.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"userclients.d.ts","sourceRoot":"","sources":["../src/userclients.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,WAAW,UAAU;IACzB,oEAAoE;IACpE,EAAE,EAAE,aAAa,CAAC;IAElB,kBAAkB;IAClB,WAAW,EAAE,KAAK,GAAG,SAAS,GAAG,UAAU,GAAG,sBAAsB,GAAG,SAAS,CAAC;IAEjF;gEAC4D;IAC5D,mBAAmB,EAAE,MAAM,CAAC;IAE5B;;;;;;;;;;;OAWG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IAE3B;;;2CAGuC;IACvC,kBAAkB,EAAE,OAAO,CAAC;IAE5B,6DAA6D;IAC7D,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB,yEAAyE;IACzE,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAE9B,iDAAiD;IACjD,UAAU,EAAE,MAAM,CAAC;IAEnB,2DAA2D;IAC3D,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IAChC;gEAC4D;IAC5D,mBAAmB,EAAE,MAAM,CAAC;IAC5B,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yEAAyE;IACzE,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAE/B,kBAAkB;IAClB,WAAW,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,UAAU,GAAG,sBAAsB,GAAG,SAAS,CAAC;CACnF"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,41 +0,0 @@
1
- import { VisitorCid, RoomUid, VisitorSessionCid, ChatUid, OrganizationUid } from "./types";
2
- export interface VisitorVariable {
3
- /** Not mentioned in developers.giosg.com */
4
- chat_id?: ChatUid;
5
- /** ID of the visitor */
6
- visitor_id: VisitorCid;
7
- /** ID of the room that is the context of this variable */
8
- room_id: RoomUid;
9
- /** The name of the key of the variable */
10
- key: string;
11
- /** The current value of the variable.
12
- * This attribute is null if the value is encrypted and the encryption key is no longer
13
- * stored on the server. In this case, you need to use encrypted_value and decrypt the value yourself. */
14
- value: string | null;
15
- /** Identifier for the session on which the variable was saved for the visitor. */
16
- session_id: VisitorSessionCid | null;
17
- organization_id?: OrganizationUid | null;
18
- created_at: string;
19
- updated_at: string;
20
- /** Whether or not the variable was signed when saved. */
21
- is_signed: boolean;
22
- /** Whether or not the variable value is stored encrypted. */
23
- is_encrypted: boolean;
24
- /** The value encrypted with the AES key if the encryption was used for this variable. This attribute is only present if is_encrypted is true */
25
- encrypted_value?: string | null;
26
- /** The encrypted symmetric key (AES) with which the variable value is encrypted. This attribute is only present if is_encrypted is true. */
27
- encrypted_symmetric_key?: string | null;
28
- }
29
- /** TODO: Add jsdocs and check nullability of fields */
30
- export interface VisitorVariablePayload {
31
- chat_id?: ChatUid;
32
- visitor_id: VisitorCid;
33
- room_id: RoomUid;
34
- /** The name of the key of the variable */
35
- key: string;
36
- /** The current value of the variable. */
37
- value: string;
38
- session_id?: VisitorSessionCid | null;
39
- organization_id?: OrganizationUid | null;
40
- }
41
- //# sourceMappingURL=variables.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"variables.d.ts","sourceRoot":"","sources":["../src/variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE3F,MAAM,WAAW,eAAe;IAC9B,4CAA4C;IAC5C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,wBAAwB;IACxB,UAAU,EAAE,UAAU,CAAC;IACvB,0DAA0D;IAC1D,OAAO,EAAE,OAAO,CAAC;IACjB,0CAA0C;IAC1C,GAAG,EAAE,MAAM,CAAC;IACZ;;6GAEyG;IACzG,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,kFAAkF;IAClF,UAAU,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACrC,eAAe,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,SAAS,EAAE,OAAO,CAAC;IACnB,6DAA6D;IAC7D,YAAY,EAAE,OAAO,CAAC;IACtB,gJAAgJ;IAChJ,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,4IAA4I;IAC5I,uBAAuB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzC;AAED,uDAAuD;AACvD,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,0CAA0C;IAC1C,GAAG,EAAE,MAAM,CAAC;IACZ,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACtC,eAAe,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;CAC1C"}
package/lib/variables.js DELETED
@@ -1 +0,0 @@
1
- export {};