@giosg/types 8.0.1 → 9.0.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/CHANGELOG.md +289 -0
- package/lib/cjs/GiosgTCApi.d.ts +3 -3
- package/lib/cjs/GiosgTCApi.d.ts.map +1 -1
- package/lib/cjs/GiosgTCApi.js +2 -2
- package/lib/cjs/actions.d.ts +4 -4
- package/lib/cjs/actions.d.ts.map +1 -1
- package/lib/cjs/apps.d.ts +1 -1
- package/lib/cjs/apps.d.ts.map +1 -1
- package/lib/cjs/bugReport.d.ts +7 -0
- package/lib/cjs/bugReport.d.ts.map +1 -0
- package/lib/cjs/call.d.ts +3 -3
- package/lib/cjs/call.d.ts.map +1 -1
- package/lib/cjs/chat.d.ts +10 -68
- package/lib/cjs/chat.d.ts.map +1 -1
- package/lib/cjs/common.d.ts +3 -3
- package/lib/cjs/common.d.ts.map +1 -1
- package/lib/cjs/conditions.d.ts +6 -4
- package/lib/cjs/conditions.d.ts.map +1 -1
- package/lib/cjs/conditions.js +2 -0
- package/lib/cjs/index.d.ts +3 -2
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js +1 -0
- package/lib/cjs/linkpreview.d.ts +1 -1
- package/lib/cjs/linkpreview.d.ts.map +1 -1
- package/lib/cjs/liveStream.d.ts +25 -0
- package/lib/cjs/liveStream.d.ts.map +1 -0
- package/lib/cjs/liveStream.js +2 -0
- package/lib/cjs/oath.d.ts +6 -6
- package/lib/cjs/oath.d.ts.map +1 -1
- package/lib/cjs/public.d.ts +5 -17
- package/lib/cjs/public.d.ts.map +1 -1
- package/lib/cjs/rooms.d.ts +1 -1
- package/lib/cjs/rooms.d.ts.map +1 -1
- package/lib/cjs/routers.d.ts +2 -2
- package/lib/cjs/routers.d.ts.map +1 -1
- package/lib/cjs/sharing.d.ts +2 -2
- package/lib/cjs/sharing.d.ts.map +1 -1
- package/lib/cjs/types.d.ts +73 -81
- package/lib/cjs/types.d.ts.map +1 -1
- package/lib/cjs/visitor.d.ts +2 -2
- package/lib/cjs/visitor.d.ts.map +1 -1
- package/lib/mjs/GiosgTCApi.d.ts +3 -3
- package/lib/mjs/GiosgTCApi.d.ts.map +1 -1
- package/lib/mjs/actions.d.ts +4 -4
- package/lib/mjs/actions.d.ts.map +1 -1
- package/lib/mjs/apps.d.ts +1 -1
- package/lib/mjs/apps.d.ts.map +1 -1
- package/lib/mjs/apps.js +1 -0
- package/lib/mjs/assets.js +1 -0
- package/lib/mjs/brands.js +1 -0
- package/lib/mjs/bugReport.d.ts +7 -0
- package/lib/mjs/bugReport.d.ts.map +1 -0
- package/lib/mjs/bugReport.js +1 -0
- package/lib/mjs/call.d.ts +3 -3
- package/lib/mjs/call.d.ts.map +1 -1
- package/lib/mjs/call.js +1 -0
- package/lib/mjs/canned_answers.js +1 -0
- package/lib/mjs/chat.d.ts +10 -68
- package/lib/mjs/chat.d.ts.map +1 -1
- package/lib/mjs/chat.js +1 -0
- package/lib/mjs/common.d.ts +3 -3
- package/lib/mjs/common.d.ts.map +1 -1
- package/lib/mjs/conditions.d.ts +6 -4
- package/lib/mjs/conditions.d.ts.map +1 -1
- package/lib/mjs/conditions.js +2 -0
- package/lib/mjs/customer.js +1 -0
- package/lib/mjs/customership.js +1 -0
- package/lib/mjs/email.js +1 -0
- package/lib/mjs/experiments.js +1 -0
- package/lib/mjs/goals.js +1 -0
- package/lib/mjs/index.d.ts +3 -2
- package/lib/mjs/index.d.ts.map +1 -1
- package/lib/mjs/leadforms.js +1 -0
- package/lib/mjs/linkpreview.d.ts +1 -1
- package/lib/mjs/linkpreview.d.ts.map +1 -1
- package/lib/mjs/linkpreview.js +1 -0
- package/lib/mjs/liveStream.d.ts +25 -0
- package/lib/mjs/liveStream.d.ts.map +1 -0
- package/lib/mjs/liveStream.js +1 -0
- package/lib/mjs/oath.d.ts +6 -6
- package/lib/mjs/oath.d.ts.map +1 -1
- package/lib/mjs/partnerships.js +1 -0
- package/lib/mjs/permissions.js +1 -0
- package/lib/mjs/public.d.ts +5 -17
- package/lib/mjs/public.d.ts.map +1 -1
- package/lib/mjs/rooms.d.ts +1 -1
- package/lib/mjs/rooms.d.ts.map +1 -1
- package/lib/mjs/rooms.js +1 -0
- package/lib/mjs/routers.d.ts +2 -2
- package/lib/mjs/routers.d.ts.map +1 -1
- package/lib/mjs/routers.js +1 -0
- package/lib/mjs/rules.js +1 -0
- package/lib/mjs/sharing.d.ts +2 -2
- package/lib/mjs/sharing.d.ts.map +1 -1
- package/lib/mjs/sharing.js +1 -0
- package/lib/mjs/shoppingcarts.js +1 -0
- package/lib/mjs/system.js +1 -0
- package/lib/mjs/teams.js +1 -0
- package/lib/mjs/types.d.ts +73 -81
- package/lib/mjs/types.d.ts.map +1 -1
- package/lib/mjs/uploads.js +1 -0
- package/lib/mjs/userclients.js +1 -0
- package/lib/mjs/variables.js +1 -0
- package/lib/mjs/visitor.d.ts +2 -2
- package/lib/mjs/visitor.d.ts.map +1 -1
- package/lib/mjs/visitor.js +1 -0
- package/lib/mjs/webhooks.js +1 -0
- package/package.json +4 -4
- package/lib/cjs/target.d.ts +0 -105
- package/lib/cjs/target.d.ts.map +0 -1
- package/lib/mjs/target.d.ts +0 -105
- package/lib/mjs/target.d.ts.map +0 -1
- package/lib/mjs/target.js +0 -0
- /package/lib/cjs/{target.js → bugReport.js} +0 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
Hint: use `git diff <commithash>..HEAD src/` to see changes
|
|
4
|
+
|
|
5
|
+
## x.x.x (Not published yet)
|
|
6
|
+
|
|
7
|
+
## 9.0.0
|
|
8
|
+
- Updated typescript dependency version
|
|
9
|
+
|
|
10
|
+
## 8.0.2
|
|
11
|
+
- Remove unused fields from BarChat interface.
|
|
12
|
+
|
|
13
|
+
## 8.0.1
|
|
14
|
+
- Add JitsiToken interface.
|
|
15
|
+
|
|
16
|
+
## 8.0.0
|
|
17
|
+
- Remove pipeline fields from RoomVisitor
|
|
18
|
+
|
|
19
|
+
## 7.3.1
|
|
20
|
+
|
|
21
|
+
- Add new `identified` chat type.
|
|
22
|
+
|
|
23
|
+
## 7.3.0
|
|
24
|
+
|
|
25
|
+
- Add new HIDE_INTERACTION rule action type.
|
|
26
|
+
|
|
27
|
+
## 7.2.0
|
|
28
|
+
|
|
29
|
+
- Add new message types to CHAT_DATA_MESSAGE_TYPES.
|
|
30
|
+
|
|
31
|
+
## 7.1.0
|
|
32
|
+
|
|
33
|
+
- Update GiosgBrand type with new fields.
|
|
34
|
+
|
|
35
|
+
## 7.0.1
|
|
36
|
+
|
|
37
|
+
- Added interfaces for the brand editor
|
|
38
|
+
|
|
39
|
+
## 7.0.0
|
|
40
|
+
|
|
41
|
+
- Added support for CommonJS
|
|
42
|
+
- Changed import paths by adding `cjs` and `esm` directories to the package - some imports in dependent projects may need to be updated.
|
|
43
|
+
|
|
44
|
+
## 6.10.0
|
|
45
|
+
|
|
46
|
+
- Added the `GiosgBrand` interface
|
|
47
|
+
|
|
48
|
+
## 6.9.0
|
|
49
|
+
|
|
50
|
+
- Removed Reporting Target
|
|
51
|
+
|
|
52
|
+
## 6.8.0
|
|
53
|
+
|
|
54
|
+
- Removed Cobrowse Reporting
|
|
55
|
+
|
|
56
|
+
## 6.7.0
|
|
57
|
+
|
|
58
|
+
- Added `is_user_deleted` field to `ChatMembershipUser` interface
|
|
59
|
+
|
|
60
|
+
## 6.6.0
|
|
61
|
+
|
|
62
|
+
- Added types for giosg Transparency&Consent API
|
|
63
|
+
|
|
64
|
+
## 6.5.0
|
|
65
|
+
|
|
66
|
+
- Renamed `screen_sharing_state` field to `cobrowser_state` at `InCallStatus` interface
|
|
67
|
+
|
|
68
|
+
## 6.4.0
|
|
69
|
+
|
|
70
|
+
- Modified types for call status
|
|
71
|
+
- Added `screen_sharing_state` field to `InCallStatus` interface
|
|
72
|
+
|
|
73
|
+
## 6.3.0
|
|
74
|
+
|
|
75
|
+
- Added type for call status
|
|
76
|
+
|
|
77
|
+
## 6.2.2
|
|
78
|
+
|
|
79
|
+
- Fixed type of `brand` field in `PublicRoom` types
|
|
80
|
+
- Chat button asset fields added to the `Brand` interface
|
|
81
|
+
|
|
82
|
+
## 6.2.1
|
|
83
|
+
|
|
84
|
+
- Changed typescript `module` option from `commonjs` to `es2015` to allow treeshaking
|
|
85
|
+
|
|
86
|
+
## 6.2.0
|
|
87
|
+
|
|
88
|
+
- Added `client_type` field to `UserClientPayload`
|
|
89
|
+
|
|
90
|
+
## 6.1.2
|
|
91
|
+
|
|
92
|
+
- Added `client_type` field to `UserClient`
|
|
93
|
+
|
|
94
|
+
## 6.1.1
|
|
95
|
+
|
|
96
|
+
- Changed Typescript version to `^4.0.3`.
|
|
97
|
+
|
|
98
|
+
## 6.0.1
|
|
99
|
+
|
|
100
|
+
- Added field `index` to `RuleActionPayload`
|
|
101
|
+
|
|
102
|
+
## 6.0.0
|
|
103
|
+
|
|
104
|
+
- Updated `WebhookRequestLogEntry` field `status` type with actual status choices instead of `string`.
|
|
105
|
+
|
|
106
|
+
## 5.0.0
|
|
107
|
+
|
|
108
|
+
- Rename `VISITOR_BELONGS_TO_AN_TARGET_EXPERIMENT_GROUP` to `VISITOR_BELONGS_TO_A_TARGET_EXPERIMENT_GROUP`.
|
|
109
|
+
- Add `ComposingStatus`, `ChatWithRoom`, `ChatMessageWithChat` and `RulePrediction`.
|
|
110
|
+
- Correctly mark the domain on `NestedRoom` as a potentially `null` value.
|
|
111
|
+
|
|
112
|
+
## 4.6.0
|
|
113
|
+
|
|
114
|
+
- Add `is_removed` field for `BarChats`.
|
|
115
|
+
- ConditionHasChattedSettings type was removed
|
|
116
|
+
|
|
117
|
+
## 4.5.0
|
|
118
|
+
|
|
119
|
+
- Add `is_available` field for `BarChats`.
|
|
120
|
+
|
|
121
|
+
## 4.4.5
|
|
122
|
+
|
|
123
|
+
- Fixed type of `PublicRoom` interface field `legacy_id` to be `RoomLegacyToken` instead of `RoomLegacyId`.
|
|
124
|
+
- Added is_email_confirmed to `User`interface.
|
|
125
|
+
|
|
126
|
+
## 4.4.4
|
|
127
|
+
|
|
128
|
+
- Add new rule condition
|
|
129
|
+
|
|
130
|
+
## 4.4.3
|
|
131
|
+
|
|
132
|
+
- Added `estimated_waiting_time` into public room
|
|
133
|
+
|
|
134
|
+
## 4.4.2
|
|
135
|
+
|
|
136
|
+
- Added `is_bot` field to `ChatMembershipUser` interface
|
|
137
|
+
- Removed deprecated `RoomCreate` interface
|
|
138
|
+
- Add visitor_avatar url
|
|
139
|
+
- Add new chat type=task
|
|
140
|
+
- Add new message types
|
|
141
|
+
|
|
142
|
+
## 4.3.1
|
|
143
|
+
|
|
144
|
+
- Fix nullability of accepted_by_user/accepted_by_user_id
|
|
145
|
+
|
|
146
|
+
## 4.3.0
|
|
147
|
+
|
|
148
|
+
- Added `OutgoingTeamShare`, `IncomingTeamShare` and `TeamSharePayload` interfaces.
|
|
149
|
+
|
|
150
|
+
## 4.2.0
|
|
151
|
+
|
|
152
|
+
- Added the email request interface
|
|
153
|
+
|
|
154
|
+
## 4.1.0
|
|
155
|
+
|
|
156
|
+
- Added `is_connected_to_room` field to `Team` interface.
|
|
157
|
+
- Added `is_staff` field to `NestedUser` interface.
|
|
158
|
+
- Added `chat_end_with_msgs` as a possible type to `GiosgAppTriggerCondition` interface.
|
|
159
|
+
- Added `is_bot` field to `UserPayload` interface.
|
|
160
|
+
|
|
161
|
+
## 4.0.0
|
|
162
|
+
|
|
163
|
+
### Breaking changes
|
|
164
|
+
|
|
165
|
+
- Removed `unread_message_count` from `BarChat` interface.
|
|
166
|
+
- Removed `is_participating` from `BarChat` interface.
|
|
167
|
+
|
|
168
|
+
## 3.4.0
|
|
169
|
+
|
|
170
|
+
- Added `minimal_bar_version` field to `OAuthResponseSuccess` interface.
|
|
171
|
+
|
|
172
|
+
## 3.3.0
|
|
173
|
+
|
|
174
|
+
- Added `group_chat_id` in `Team` interface.
|
|
175
|
+
|
|
176
|
+
## 3.2.3
|
|
177
|
+
|
|
178
|
+
- Renamed `Room.public_key` to `Room.public_key_id`.
|
|
179
|
+
- Removed `null` from `Room.is_chat_encryption_enabled`.
|
|
180
|
+
|
|
181
|
+
## 3.2.2
|
|
182
|
+
|
|
183
|
+
- Fixed `value` type in `VisitorVariable` interface. It can not be type of `string[]`.
|
|
184
|
+
|
|
185
|
+
## 3.2.1
|
|
186
|
+
|
|
187
|
+
- Deprecated `unread_message_count` in `BarChat` interface.
|
|
188
|
+
|
|
189
|
+
## 3.2.0
|
|
190
|
+
|
|
191
|
+
- Added `unread_message_count` to `ChatMembership`.
|
|
192
|
+
- Changed `Chat` `chat_session_latest_message` to `ChatMessage`.
|
|
193
|
+
|
|
194
|
+
## 3.1.0
|
|
195
|
+
|
|
196
|
+
- Added `router` and `legacy_chat_dialog_id` fields to `OrganizationRoomSettings`.
|
|
197
|
+
- Added `is_chat_encryption_enabled`, `public_key_id`, and `sensitive_data_purge_ttl` fields to `Room`.
|
|
198
|
+
- Added `LegacyChatDialogUid` and `PublicKeyUid`.
|
|
199
|
+
|
|
200
|
+
## 3.0.0
|
|
201
|
+
|
|
202
|
+
- Added `sla` field to `StaffCustomership` and `StaffCustomershipPayload`.
|
|
203
|
+
- Added `is_auto_tagging_enabled` boolean field to `OrganizationRoomSettings` and `OrganizationRoomSettingsPayload` interfaces.
|
|
204
|
+
|
|
205
|
+
### Breaking changes
|
|
206
|
+
|
|
207
|
+
- Merged `RoomVisitorVariable` and `ChatVisitorVariable` to `VisitorVariable`
|
|
208
|
+
- Merged `RoomVisitorVariablePayload` and `ChatVisitorVariablePayload` to `VisitorVariablePayload`
|
|
209
|
+
|
|
210
|
+
## 2.0.1
|
|
211
|
+
|
|
212
|
+
- Exported `ChatMembershipUser` and `ChatMembershipVisitor`.
|
|
213
|
+
|
|
214
|
+
## 2.0.0
|
|
215
|
+
|
|
216
|
+
- Added new interfaces `GiosgAppInstance`, `GiosgApp`, `GiosgAppPayload`, `InstalledGiosgApp`, `NestedGiosgApp`, `Brand`, `BrandPayload`, `PublicBrand`, `CannedAnswerIncrement`,`CannedAnswer`, `CannedAnswerPayload`, `ChatAssignment`, `LeadFormData`, `LeadFormDataPayload` `AppShare`, `AppSharePayload`, `ShoppingCartProduct`, `ShoppingCart`, `EndpointMethod` `Endpoint`, `Language`, `NestedTargetRule`, `NestedTargetConfig`, `TargetConfig`, `TargetExperiment`, `TargetedAction`, `TargetedActionPayload`, `VisitorPredictionList`, `VisitorPrediction`, `VisitorPredictionPayload`, `VisitorSessionPrediction`, `VisitorSessionPredictionPayload`, `RoomVisitorVariable`, `RoomVisitorVariablePayload`, `NestedWebhookChannelSubscription`, `NestedWebhookChannelSubscriptionPayload`, `WebhookRequestLogEntry`, `Webhook`, `WebhookPayload`
|
|
217
|
+
|
|
218
|
+
### Breaking changes
|
|
219
|
+
|
|
220
|
+
- Renamed `VisitorSessionId` to `VisitorSessionCid`.
|
|
221
|
+
- Renamed `VisitorGlobalSessionId` to `VisitorSessionGid`.
|
|
222
|
+
- Renamed `VisitorGlobalId` to `VisitorGid`.
|
|
223
|
+
- Removed `GiosgSessionId`, it was duplicate of `VisitorGlobalSessionId`.
|
|
224
|
+
|
|
225
|
+
## 1.3.2
|
|
226
|
+
|
|
227
|
+
- Added new chat_type option `group` to `Chat` interface.
|
|
228
|
+
- Standardized chat types, added `ChatType` type.
|
|
229
|
+
|
|
230
|
+
## 1.3.1
|
|
231
|
+
|
|
232
|
+
- Added new chat_type option `group` to `BarChat` interface.
|
|
233
|
+
- Added new interfaces `OutgoingRoomShare`, `IncomingRoomShare`, `NestedRouter`, and `RoomSharePayload`.
|
|
234
|
+
- Fixed `BarChat` interface, `chat_session_latest_message` can be null.
|
|
235
|
+
- Fixed `attachment_template` field type across all types. It can be null.
|
|
236
|
+
|
|
237
|
+
## 1.3.0
|
|
238
|
+
|
|
239
|
+
- Added new interfaces `Router`, `RouterPayload`, `RouterStep`, `RouterStepPayload`, and `RouterStepPrecondition`.
|
|
240
|
+
|
|
241
|
+
## 1.2.26
|
|
242
|
+
|
|
243
|
+
- Added new interfaces `Upload` and `UploadPayload`.
|
|
244
|
+
|
|
245
|
+
## 1.2.25
|
|
246
|
+
|
|
247
|
+
- Added new field for `LinkPreviewResponse`.
|
|
248
|
+
|
|
249
|
+
## 1.2.24
|
|
250
|
+
|
|
251
|
+
- Added `LinkPreviewResponse` type.
|
|
252
|
+
- Updated `DEVELOPMENT.md`.
|
|
253
|
+
|
|
254
|
+
## 1.2.23
|
|
255
|
+
|
|
256
|
+
- Vasilii add changes you made here!
|
|
257
|
+
|
|
258
|
+
## 1.2.22
|
|
259
|
+
|
|
260
|
+
- Nominal types are using uuids to make it easier to resolve versions conflicts.
|
|
261
|
+
|
|
262
|
+
## 1.2.17
|
|
263
|
+
|
|
264
|
+
- ChatMessage and DecryptedChatMessage interfaces are divided into DataMessages and StatusMessages.
|
|
265
|
+
|
|
266
|
+
## 1.2.11
|
|
267
|
+
|
|
268
|
+
- CHANGELOG added.
|
|
269
|
+
- Id`s a set to be nominal types.
|
|
270
|
+
- Actions standardized.
|
|
271
|
+
- Asset interfaces added.
|
|
272
|
+
- Chat interfaces added.
|
|
273
|
+
- Timezone, currency and Language standardization.
|
|
274
|
+
- Conditions standardized.
|
|
275
|
+
- Customer interfaces added.
|
|
276
|
+
- Customership interfaces added.
|
|
277
|
+
- Experiments interfaces added.
|
|
278
|
+
- Goal interfaces added.
|
|
279
|
+
- Authentication interfaces added.
|
|
280
|
+
- Partnership interfaces added.
|
|
281
|
+
- Permission interfaces added.
|
|
282
|
+
- Public interfaces added.
|
|
283
|
+
- Room interfaces added.
|
|
284
|
+
- Rules interfaces added.
|
|
285
|
+
- User client interfaces added.
|
|
286
|
+
- Visitor interfaces added.
|
|
287
|
+
- Index added.
|
|
288
|
+
- Auto generation of index file added.
|
|
289
|
+
- Package published as `@giosg/types`.
|
package/lib/cjs/GiosgTCApi.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const supportedEventTypes: readonly ["tcChange"];
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type EventType = (typeof supportedEventTypes)[number];
|
|
3
|
+
export type TCEventListener = (consent: TCPreferences) => void;
|
|
4
4
|
/**
|
|
5
5
|
* For further reading reagarding the different purposes https://iabeurope.eu/iab-europe-transparency-consent-framework-policies/#A_Purposes.
|
|
6
6
|
*/
|
|
@@ -20,7 +20,7 @@ export declare enum Service {
|
|
|
20
20
|
All = 0,
|
|
21
21
|
Chat = 1
|
|
22
22
|
}
|
|
23
|
-
export
|
|
23
|
+
export type ConsentManagementApiType = "auto" | "giosg" | "iab";
|
|
24
24
|
export interface TCPreferences {
|
|
25
25
|
purpose: {
|
|
26
26
|
consents: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GiosgTCApi.d.ts","sourceRoot":"","sources":["../../src/GiosgTCApi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,uBAAwB,CAAC;AACzD,
|
|
1
|
+
{"version":3,"file":"GiosgTCApi.d.ts","sourceRoot":"","sources":["../../src/GiosgTCApi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,uBAAwB,CAAC;AACzD,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAC7D,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;AAE/D;;GAEG;AACH,oBAAY,OAAO;IACjB,2BAA2B,IAAI;IAC/B,cAAc,IAAI;IAClB,2BAA2B,IAAI;IAC/B,qBAAqB,IAAI;IACzB,gCAAgC,IAAI;IACpC,yBAAyB,IAAI;IAC7B,oBAAoB,IAAI;IACxB,yBAAyB,IAAI;IAC7B,6CAA6C,IAAI;IACjD,yBAAyB,KAAK;CAC/B;AAED,oBAAY,OAAO;IACjB,GAAG,IAAA;IACH,IAAI,IAAA;CACL;AAED,MAAM,MAAM,wB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,MAAM,GAAG,KAAK,CAAC;IAE7F;;;;OAIG;IACH,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC;IAEjD;;;;OAIG;IACH,wBAAwB,CAAC,gBAAgB,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;CAChE"}
|
package/lib/cjs/GiosgTCApi.js
CHANGED
|
@@ -17,9 +17,9 @@ var Purpose;
|
|
|
17
17
|
Purpose[Purpose["MeasureContentPerformance"] = 8] = "MeasureContentPerformance";
|
|
18
18
|
Purpose[Purpose["ApplyMarketResearchToGenerateAudienceInsights"] = 9] = "ApplyMarketResearchToGenerateAudienceInsights";
|
|
19
19
|
Purpose[Purpose["DevelopAndImproveProducts"] = 10] = "DevelopAndImproveProducts";
|
|
20
|
-
})(Purpose
|
|
20
|
+
})(Purpose || (exports.Purpose = Purpose = {}));
|
|
21
21
|
var Service;
|
|
22
22
|
(function (Service) {
|
|
23
23
|
Service[Service["All"] = 0] = "All";
|
|
24
24
|
Service[Service["Chat"] = 1] = "Chat";
|
|
25
|
-
})(Service
|
|
25
|
+
})(Service || (exports.Service = Service = {}));
|
package/lib/cjs/actions.d.ts
CHANGED
|
@@ -48,8 +48,8 @@ export declare const ActionTypes: {
|
|
|
48
48
|
readonly SEND_INTERACTION_TO_CHAT: 27;
|
|
49
49
|
readonly HIDE_INTERACTION: 28;
|
|
50
50
|
};
|
|
51
|
-
export
|
|
52
|
-
export
|
|
51
|
+
export type ActionType = (typeof ActionTypes)[keyof typeof ActionTypes];
|
|
52
|
+
export type ActionTypeString = keyof typeof ActionTypes;
|
|
53
53
|
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" | "HIDE_INTERACTION")[];
|
|
54
54
|
export interface ActionShowAutosuggestSettings {
|
|
55
55
|
/** Unique identifier of the user from whom the message shall be sent */
|
|
@@ -67,7 +67,7 @@ export interface ActionSendInteractionToChatSettings {
|
|
|
67
67
|
/** Optional message to send alongside of the interaction */
|
|
68
68
|
message?: string;
|
|
69
69
|
}
|
|
70
|
-
export
|
|
70
|
+
export type ActionSettingsType = ActionShowAutosuggestSettings | ActionSendChatMessageSettings | ActionSendInteractionToChatSettings | {};
|
|
71
71
|
export declare const ACTION_STYLES: readonly ["primary", "secondary", "info", "success", "warning", "danger", "link", "brand_primary", "brand_secondary"];
|
|
72
|
-
export
|
|
72
|
+
export type ActionStyle = (typeof ACTION_STYLES)[number];
|
|
73
73
|
//# sourceMappingURL=actions.d.ts.map
|
package/lib/cjs/actions.d.ts.map
CHANGED
|
@@ -1 +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;;IA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ACnC,EAAE,CAAC;AAEP,eAAO,MAAM,aAAa,uHAUhB,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
package/lib/cjs/apps.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export interface GiosgAppInstance {
|
|
|
16
16
|
allowed_scopes: UserPermissionScope[];
|
|
17
17
|
is_disabled: boolean;
|
|
18
18
|
}
|
|
19
|
-
export
|
|
19
|
+
export 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
20
|
/** TODO: Add jsdocs and check nullability of fields */
|
|
21
21
|
export interface GiosgApp {
|
|
22
22
|
id: GiosgAppUid;
|
package/lib/cjs/apps.d.ts.map
CHANGED
|
@@ -1 +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,EAAE,mBAAmB,CAAC;IACxB,MAAM,EAAE,WAAW,CAAC;IACpB,GAAG,EAAE,cAAc,CAAC;IACpB,eAAe,EAAE,eAAe,CAAC;IACjC,YAAY,EAAE,kBAAkB,CAAC;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,OAAO,GAAG,IAAI,CAAC;IAC5B,QAAQ,EAAE,U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src/bugReport.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,GAAG,CAAC;CACX"}
|
package/lib/cjs/call.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CallStatusUid, ChatUid, UserUid, VisitorCid, OrganizationUid } from "./types";
|
|
2
|
-
export
|
|
2
|
+
export type CallStatusType = "idle" | "dialing" | "ringing" | "in-call";
|
|
3
3
|
interface BaseCallStatus {
|
|
4
4
|
/** Unique identifier of the call status */
|
|
5
5
|
id: CallStatusUid;
|
|
@@ -31,7 +31,7 @@ export interface DialingCallStatus extends BaseCallStatus {
|
|
|
31
31
|
export interface RingingCallStatus extends BaseCallStatus {
|
|
32
32
|
type: "ringing";
|
|
33
33
|
}
|
|
34
|
-
export
|
|
34
|
+
export type CobrowseState = "idle" | "requested" | "denied" | "sharing";
|
|
35
35
|
export interface InCallStatus extends BaseCallStatus {
|
|
36
36
|
type: "in-call";
|
|
37
37
|
cobrowse_state: CobrowseState;
|
|
@@ -41,6 +41,6 @@ export interface JitsiToken {
|
|
|
41
41
|
token_type: string;
|
|
42
42
|
expires_in: number;
|
|
43
43
|
}
|
|
44
|
-
export
|
|
44
|
+
export type CallStatus = IdleCallStatus | DialingCallStatus | RingingCallStatus | InCallStatus;
|
|
45
45
|
export {};
|
|
46
46
|
//# sourceMappingURL=call.d.ts.map
|
package/lib/cjs/call.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call.d.ts","sourceRoot":"","sources":["../../src/call.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAEvF,
|
|
1
|
+
{"version":3,"file":"call.d.ts","sourceRoot":"","sources":["../../src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G,cAAc,GAAG,iBAAiB,GAAG,iBAAiB,GAAG,YAAY,CAAC"}
|
package/lib/cjs/chat.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ export interface ChatInvitationAcceptPayload {
|
|
|
50
50
|
/** Defines whether the chat invitation has been accepted */
|
|
51
51
|
is_accepted: boolean;
|
|
52
52
|
}
|
|
53
|
-
export
|
|
53
|
+
export type ChatInvitationCreate = {
|
|
54
54
|
/** Unique identifier of the user who was invited */
|
|
55
55
|
invited_user_id: UserUid;
|
|
56
56
|
} | {
|
|
@@ -247,7 +247,7 @@ export interface ChatMembershipVisitor extends ChatMembershipCommon {
|
|
|
247
247
|
/** Unique identifier of the user/visitor being present at the chat */
|
|
248
248
|
member_id: VisitorCid;
|
|
249
249
|
}
|
|
250
|
-
export
|
|
250
|
+
export type ChatMembership = ChatMembershipUser | ChatMembershipVisitor;
|
|
251
251
|
export interface ChatMembershipPayload {
|
|
252
252
|
/**
|
|
253
253
|
* Defines whether the user/visitor has the chat “open”. In practice this reflects the state of the chat window.
|
|
@@ -367,9 +367,9 @@ interface ChatDataMessageRule extends ChatMessageRule {
|
|
|
367
367
|
/** Defines the type of the message. "msg" by default */
|
|
368
368
|
type: ChatDataMessageType;
|
|
369
369
|
}
|
|
370
|
-
export
|
|
371
|
-
export
|
|
372
|
-
export
|
|
370
|
+
export type ChatStatusMessage = ChatStatusMessageUser | ChatStatusMessageVisitor | ChatStatusMessageRule;
|
|
371
|
+
export type ChatDataMessage = ChatDataMessageUser | ChatDataMessageVisitor | ChatDataMessageRule;
|
|
372
|
+
export type ChatMessage = ChatStatusMessage | ChatDataMessage;
|
|
373
373
|
export interface ChatMessagePayload {
|
|
374
374
|
/**
|
|
375
375
|
* Content text of the message. The maximum length is 2000 characters.
|
|
@@ -420,7 +420,7 @@ export interface ChatReplySuggestionPayload {
|
|
|
420
420
|
/** Defines appropriateness level of the reply suggestion for the message. The value range is [0 - 1] or null */
|
|
421
421
|
relevancy_score?: number | null;
|
|
422
422
|
}
|
|
423
|
-
export
|
|
423
|
+
export type ChatType = "operator" | "visitor" | "identified" | "external" | "group" | "task";
|
|
424
424
|
export interface Chat {
|
|
425
425
|
/** Unique identifier of the chat */
|
|
426
426
|
id: ChatUid;
|
|
@@ -648,9 +648,9 @@ interface DecryptedChatDataMessageRule extends DecryptedChatMessageRule {
|
|
|
648
648
|
/** Defines the type of the message. "msg" by default */
|
|
649
649
|
type: ChatDataMessageType;
|
|
650
650
|
}
|
|
651
|
-
export
|
|
652
|
-
export
|
|
653
|
-
export
|
|
651
|
+
export type DecryptedChatDataMessage = DecryptedChatDataMessageUser | DecryptedChatDataMessageVisitor | DecryptedChatDataMessageRule;
|
|
652
|
+
export type DecryptedChatStatusMessage = DecryptedChatStatusMessageUser | DecryptedChatStatusMessageVisitor | DecryptedChatStatusMessageRule;
|
|
653
|
+
export type DecryptedChatMessage = DecryptedChatDataMessage | DecryptedChatStatusMessage;
|
|
654
654
|
export interface DecryptedChatMessagePayload {
|
|
655
655
|
/**
|
|
656
656
|
* Content text of the message. The maximum length is 2000 characters.
|
|
@@ -855,7 +855,7 @@ interface OrganizationChatMembershipVisitor extends OrganizationChatMembershipCo
|
|
|
855
855
|
/** Defines whether the user/visitor is present at the chat */
|
|
856
856
|
member_type: "visitor";
|
|
857
857
|
}
|
|
858
|
-
export
|
|
858
|
+
export type OrganizationChatMembership = OrganizationChatMembershipUser | OrganizationChatMembershipVisitor;
|
|
859
859
|
export interface OrganizationChatMembershipPayload {
|
|
860
860
|
/** Unique identifier of the user/visitor being present at the chat */
|
|
861
861
|
member_id: UserUid | VisitorCid;
|
|
@@ -950,77 +950,21 @@ export interface BarChat {
|
|
|
950
950
|
waiting_started_at: string;
|
|
951
951
|
/** Unique identifier of the room in which the chat occurred */
|
|
952
952
|
room_id: RoomUid;
|
|
953
|
-
/** Unique identifier of the organization which owns the room in which the chat occurred */
|
|
954
|
-
room_organization_id: OrganizationUid;
|
|
955
953
|
/** Name of the room in which the chat occurred */
|
|
956
954
|
room_name: string;
|
|
957
|
-
/** Number of tags associated with the chat */
|
|
958
|
-
tag_count: number;
|
|
959
|
-
/** Number of messages in the chat at the moment */
|
|
960
|
-
message_count: number;
|
|
961
|
-
/** Number of messages sent by operators in the chat */
|
|
962
|
-
user_message_count: number;
|
|
963
|
-
/** Number of messages sent by visitors in the chat */
|
|
964
|
-
visitor_message_count: number;
|
|
965
|
-
/** Defines whether there are any messages in chat */
|
|
966
|
-
has_messages: boolean;
|
|
967
|
-
/** Defines whether there are any user messages in chat */
|
|
968
|
-
has_user_messages: boolean;
|
|
969
|
-
/** Defines whether there are any visitor messages in chat */
|
|
970
|
-
has_visitor_messages: boolean;
|
|
971
|
-
/** Number of people (visitors and users) currently participating and present at the chat */
|
|
972
|
-
present_participant_count: number;
|
|
973
|
-
/** Number of users currently participating and present at the chat */
|
|
974
|
-
present_user_participant_count: number;
|
|
975
|
-
/** Number of visitors currently participating and present at the chat */
|
|
976
|
-
present_visitor_participant_count: number;
|
|
977
|
-
/** Number of people (visitors and users) attended or sent messages to the chat */
|
|
978
|
-
member_count: number;
|
|
979
|
-
/** Number of users sent at least one message to the chat */
|
|
980
|
-
user_member_count: number;
|
|
981
|
-
/** Number of visitors attended the chat */
|
|
982
|
-
visitor_member_count: number;
|
|
983
|
-
/** Defines whether the chat is marked as private for its operators */
|
|
984
|
-
is_private: boolean;
|
|
985
|
-
/** Defines whether the chat is an actual conversation */
|
|
986
|
-
is_real_conversation: boolean;
|
|
987
|
-
/** Defines whether the chat started with an automatic autosuggestion message */
|
|
988
|
-
is_autosuggested: boolean;
|
|
989
955
|
/** Defines whether the chats is new and was started by a visitor and response by a user is required */
|
|
990
956
|
is_waiting: boolean;
|
|
991
957
|
/** Defines whether the chat is waiting and the chat has no present user members */
|
|
992
958
|
is_pending: boolean;
|
|
993
959
|
/** Defines whether the chat has ended. Once ended the chat is locked and messages and members can't be altered */
|
|
994
960
|
is_ended: boolean;
|
|
995
|
-
/** Defines whether the messages of the chat are stored encrypted */
|
|
996
|
-
is_encrypted: boolean;
|
|
997
|
-
/** True if the message contents are available and False if they are encrypted and the encryption key is not available anymore */
|
|
998
|
-
is_available: boolean;
|
|
999
|
-
/** True if chat session was removed by manual request or by data retention policy */
|
|
1000
|
-
is_removed: boolean;
|
|
1001
961
|
/**
|
|
1002
962
|
* Encrypted symmetric key (AES) with which all the chat messages in the chat are encrypted.
|
|
1003
963
|
* This attribute is available only if "is_encrypted" is true
|
|
1004
964
|
*/
|
|
1005
965
|
encrypted_symmetric_key: string | null;
|
|
1006
|
-
/** Full URL of the page that the visitor was on when they received an autosuggest */
|
|
1007
|
-
autosuggest_url: string | null;
|
|
1008
|
-
/** Title of the page that the visitor was on when they received an autosuggest */
|
|
1009
|
-
autosuggest_url_title: string | null;
|
|
1010
|
-
/** Full URL of the page that the visitor was on when they sent their first message to te chat */
|
|
1011
|
-
first_visitor_message_url: string | null;
|
|
1012
966
|
/** Title of the page that the visitor was on when they sent their first message */
|
|
1013
967
|
first_visitor_message_url_title: string | null;
|
|
1014
|
-
/** Number of seconds the visitor had to wait for an answer to the first sent message */
|
|
1015
|
-
visitor_wait_time: number | null;
|
|
1016
|
-
/** Duration of the chat in seconds. This value is null until the chat has ended */
|
|
1017
|
-
duration: number | null;
|
|
1018
|
-
/**
|
|
1019
|
-
* Number of seconds of the chat duration was considered to be active time. This is calculated so
|
|
1020
|
-
* that after each message chat is assumed to be active for 60 seconds and idle after that if no new messages
|
|
1021
|
-
* are received. This value is null until the chat has ended
|
|
1022
|
-
*/
|
|
1023
|
-
active_duration: number | null;
|
|
1024
968
|
/** Chat session latest message if exists */
|
|
1025
969
|
chat_session_latest_message: ChatMessage | null;
|
|
1026
970
|
/**
|
|
@@ -1042,8 +986,6 @@ export interface BarChat {
|
|
|
1042
986
|
* Contains VisitorCid if chat type is "visitor"
|
|
1043
987
|
*/
|
|
1044
988
|
visitor_id: VisitorCid | null;
|
|
1045
|
-
/** Team ID if this chat is team chat channel type, null otherwise */
|
|
1046
|
-
team_id: TeamUid | null;
|
|
1047
989
|
}
|
|
1048
990
|
/** TODO: Add jsdocs and check nullability of fields */
|
|
1049
991
|
export interface ChatAssignment {
|