crisp-api 7.2.0 → 7.4.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 +16 -0
- package/EXAMPLES.md +10 -0
- package/LICENSE +1 -1
- package/README.md +17 -3
- package/lib/crisp.js +153 -36
- package/lib/resources/BucketURL.js +3 -1
- package/lib/resources/MediaAnimation.js +5 -1
- package/lib/resources/PluginConnect.js +11 -4
- package/lib/resources/PluginSubscription.js +41 -10
- package/lib/resources/WebsiteAnalytics.js +28 -4
- package/lib/resources/WebsiteAvailability.js +6 -2
- package/lib/resources/WebsiteBase.js +13 -4
- package/lib/resources/WebsiteBatch.js +16 -4
- package/lib/resources/WebsiteCampaign.js +92 -21
- package/lib/resources/WebsiteConversation.js +257 -49
- package/lib/resources/WebsiteOperator.js +33 -8
- package/lib/resources/WebsitePeople.js +112 -25
- package/lib/resources/WebsiteSettings.js +7 -2
- package/lib/resources/WebsiteVerify.js +13 -4
- package/lib/resources/WebsiteVisitors.js +28 -7
- package/package.json +5 -5
- package/tsconfig.json +1 -1
- package/types/crisp.d.ts +98 -40
|
@@ -18,8 +18,11 @@ function WebsiteConversation(service, crisp) {
|
|
|
18
18
|
/**
|
|
19
19
|
* List Conversations
|
|
20
20
|
* @memberof WebsiteConversation
|
|
21
|
+
* @public
|
|
21
22
|
* @method listConversations
|
|
22
|
-
* @
|
|
23
|
+
* @param {string} websiteID
|
|
24
|
+
* @param {number} pageNumber
|
|
25
|
+
* @return {Promise}
|
|
23
26
|
*/
|
|
24
27
|
service.listConversations = function(websiteID, pageNumber) {
|
|
25
28
|
return crisp.get(
|
|
@@ -30,8 +33,11 @@ function WebsiteConversation(service, crisp) {
|
|
|
30
33
|
/**
|
|
31
34
|
* List Suggested Conversation Segments
|
|
32
35
|
* @memberof WebsiteConversation
|
|
36
|
+
* @public
|
|
33
37
|
* @method listSuggestedConversationSegments
|
|
34
|
-
* @
|
|
38
|
+
* @param {string} websiteID
|
|
39
|
+
* @param {number} pageNumber
|
|
40
|
+
* @return {Promise}
|
|
35
41
|
*/
|
|
36
42
|
service.listSuggestedConversationSegments = function(websiteID, pageNumber) {
|
|
37
43
|
return crisp.get(
|
|
@@ -44,8 +50,11 @@ function WebsiteConversation(service, crisp) {
|
|
|
44
50
|
/**
|
|
45
51
|
* Delete Suggested Conversation Segment
|
|
46
52
|
* @memberof WebsiteConversation
|
|
53
|
+
* @public
|
|
47
54
|
* @method deleteSuggestedConversationSegment
|
|
48
|
-
* @
|
|
55
|
+
* @param {string} websiteID
|
|
56
|
+
* @param {string} segment
|
|
57
|
+
* @return {Promise}
|
|
49
58
|
*/
|
|
50
59
|
service.deleteSuggestedConversationSegment = function(websiteID, segment) {
|
|
51
60
|
return crisp.delete(
|
|
@@ -64,8 +73,11 @@ function WebsiteConversation(service, crisp) {
|
|
|
64
73
|
/**
|
|
65
74
|
* List Suggested Conversation Data Keys
|
|
66
75
|
* @memberof WebsiteConversation
|
|
76
|
+
* @public
|
|
67
77
|
* @method listSuggestedConversationDataKeys
|
|
68
|
-
* @
|
|
78
|
+
* @param {string} websiteID
|
|
79
|
+
* @param {number} pageNumber
|
|
80
|
+
* @return {Promise}
|
|
69
81
|
*/
|
|
70
82
|
service.listSuggestedConversationDataKeys = function(websiteID, pageNumber) {
|
|
71
83
|
return crisp.get(
|
|
@@ -78,8 +90,11 @@ function WebsiteConversation(service, crisp) {
|
|
|
78
90
|
/**
|
|
79
91
|
* Delete Suggested Conversation Data Key
|
|
80
92
|
* @memberof WebsiteConversation
|
|
93
|
+
* @public
|
|
81
94
|
* @method deleteSuggestedConversationDataKey
|
|
82
|
-
* @
|
|
95
|
+
* @param {string} websiteID
|
|
96
|
+
* @param {string} key
|
|
97
|
+
* @return {Promise}
|
|
83
98
|
*/
|
|
84
99
|
service.deleteSuggestedConversationDataKey = function(websiteID, key) {
|
|
85
100
|
return crisp.delete(
|
|
@@ -98,8 +113,10 @@ function WebsiteConversation(service, crisp) {
|
|
|
98
113
|
/**
|
|
99
114
|
* Create A New Conversation
|
|
100
115
|
* @memberof WebsiteConversation
|
|
116
|
+
* @public
|
|
101
117
|
* @method createNewConversation
|
|
102
|
-
* @
|
|
118
|
+
* @param {string} websiteID
|
|
119
|
+
* @return {Promise}
|
|
103
120
|
*/
|
|
104
121
|
service.createNewConversation = function(websiteID) {
|
|
105
122
|
return crisp.post(
|
|
@@ -110,8 +127,11 @@ function WebsiteConversation(service, crisp) {
|
|
|
110
127
|
/**
|
|
111
128
|
* Check If Conversation Exists
|
|
112
129
|
* @memberof WebsiteConversation
|
|
130
|
+
* @public
|
|
113
131
|
* @method checkConversationExists
|
|
114
|
-
* @
|
|
132
|
+
* @param {string} websiteID
|
|
133
|
+
* @param {string} sessionID
|
|
134
|
+
* @return {Promise}
|
|
115
135
|
*/
|
|
116
136
|
service.checkConversationExists = function(websiteID, sessionID) {
|
|
117
137
|
return crisp.head(
|
|
@@ -122,8 +142,11 @@ function WebsiteConversation(service, crisp) {
|
|
|
122
142
|
/**
|
|
123
143
|
* Get A Conversation
|
|
124
144
|
* @memberof WebsiteConversation
|
|
145
|
+
* @public
|
|
125
146
|
* @method getConversation
|
|
126
|
-
* @
|
|
147
|
+
* @param {string} websiteID
|
|
148
|
+
* @param {string} sessionID
|
|
149
|
+
* @return {Promise}
|
|
127
150
|
*/
|
|
128
151
|
service.getConversation = function(websiteID, sessionID) {
|
|
129
152
|
return crisp.get(
|
|
@@ -134,8 +157,11 @@ function WebsiteConversation(service, crisp) {
|
|
|
134
157
|
/**
|
|
135
158
|
* Remove A Conversation
|
|
136
159
|
* @memberof WebsiteConversation
|
|
160
|
+
* @public
|
|
137
161
|
* @method removeConversation
|
|
138
|
-
* @
|
|
162
|
+
* @param {string} websiteID
|
|
163
|
+
* @param {string} sessionID
|
|
164
|
+
* @return {Promise}
|
|
139
165
|
*/
|
|
140
166
|
service.removeConversation = function(websiteID, sessionID) {
|
|
141
167
|
return crisp.delete(
|
|
@@ -146,8 +172,11 @@ function WebsiteConversation(service, crisp) {
|
|
|
146
172
|
/**
|
|
147
173
|
* Initiate A Conversation With Existing Session
|
|
148
174
|
* @memberof WebsiteConversation
|
|
175
|
+
* @public
|
|
149
176
|
* @method initiateConversationWithExistingSession
|
|
150
|
-
* @
|
|
177
|
+
* @param {string} websiteID
|
|
178
|
+
* @param {string} sessionID
|
|
179
|
+
* @return {Promise}
|
|
151
180
|
*/
|
|
152
181
|
service.initiateConversationWithExistingSession = function(
|
|
153
182
|
websiteID, sessionID
|
|
@@ -162,8 +191,12 @@ function WebsiteConversation(service, crisp) {
|
|
|
162
191
|
/**
|
|
163
192
|
* Get Messages In Conversation
|
|
164
193
|
* @memberof WebsiteConversation
|
|
194
|
+
* @public
|
|
165
195
|
* @method getMessagesInConversation
|
|
166
|
-
* @
|
|
196
|
+
* @param {string} websiteID
|
|
197
|
+
* @param {string} sessionID
|
|
198
|
+
* @param {string} [timestampBefore]
|
|
199
|
+
* @return {Promise}
|
|
167
200
|
*/
|
|
168
201
|
service.getMessagesInConversation = function(
|
|
169
202
|
websiteID, sessionID, timestampBefore
|
|
@@ -187,8 +220,12 @@ function WebsiteConversation(service, crisp) {
|
|
|
187
220
|
/**
|
|
188
221
|
* Send A Message In Conversation
|
|
189
222
|
* @memberof WebsiteConversation
|
|
223
|
+
* @public
|
|
190
224
|
* @method sendMessageInConversation
|
|
191
|
-
* @
|
|
225
|
+
* @param {string} websiteID
|
|
226
|
+
* @param {string} sessionID
|
|
227
|
+
* @param {object} message
|
|
228
|
+
* @return {Promise}
|
|
192
229
|
*/
|
|
193
230
|
service.sendMessageInConversation = function(websiteID, sessionID, message) {
|
|
194
231
|
return crisp.post(
|
|
@@ -203,8 +240,12 @@ function WebsiteConversation(service, crisp) {
|
|
|
203
240
|
/**
|
|
204
241
|
* Get A Message In Conversation
|
|
205
242
|
* @memberof WebsiteConversation
|
|
243
|
+
* @public
|
|
206
244
|
* @method getMessageInConversation
|
|
207
|
-
* @
|
|
245
|
+
* @param {string} websiteID
|
|
246
|
+
* @param {string} sessionID
|
|
247
|
+
* @param {number} fingerprint
|
|
248
|
+
* @return {Promise}
|
|
208
249
|
*/
|
|
209
250
|
service.getMessageInConversation = function(
|
|
210
251
|
websiteID, sessionID, fingerprint
|
|
@@ -219,8 +260,13 @@ function WebsiteConversation(service, crisp) {
|
|
|
219
260
|
/**
|
|
220
261
|
* Update A Message In Conversation
|
|
221
262
|
* @memberof WebsiteConversation
|
|
263
|
+
* @public
|
|
222
264
|
* @method updateMessageInConversation
|
|
223
|
-
* @
|
|
265
|
+
* @param {string} websiteID
|
|
266
|
+
* @param {string} sessionID
|
|
267
|
+
* @param {number} fingerprint
|
|
268
|
+
* @param {object} content
|
|
269
|
+
* @return {Promise}
|
|
224
270
|
*/
|
|
225
271
|
service.updateMessageInConversation = function(
|
|
226
272
|
websiteID, sessionID, fingerprint, content
|
|
@@ -241,8 +287,12 @@ function WebsiteConversation(service, crisp) {
|
|
|
241
287
|
/**
|
|
242
288
|
* Remove A Message In Conversation
|
|
243
289
|
* @memberof WebsiteConversation
|
|
290
|
+
* @public
|
|
244
291
|
* @method removeMessageInConversation
|
|
245
|
-
* @
|
|
292
|
+
* @param {string} websiteID
|
|
293
|
+
* @param {string} sessionID
|
|
294
|
+
* @param {number} fingerprint
|
|
295
|
+
* @return {Promise}
|
|
246
296
|
*/
|
|
247
297
|
service.removeMessageInConversation = function(
|
|
248
298
|
websiteID, sessionID, fingerprint
|
|
@@ -257,8 +307,12 @@ function WebsiteConversation(service, crisp) {
|
|
|
257
307
|
/**
|
|
258
308
|
* Compose A Message In Conversation
|
|
259
309
|
* @memberof WebsiteConversation
|
|
310
|
+
* @public
|
|
260
311
|
* @method composeMessageInConversation
|
|
261
|
-
* @
|
|
312
|
+
* @param {string} websiteID
|
|
313
|
+
* @param {string} sessionID
|
|
314
|
+
* @param {object} compose
|
|
315
|
+
* @return {Promise}
|
|
262
316
|
*/
|
|
263
317
|
service.composeMessageInConversation = function(
|
|
264
318
|
websiteID, sessionID, compose
|
|
@@ -275,8 +329,12 @@ function WebsiteConversation(service, crisp) {
|
|
|
275
329
|
/**
|
|
276
330
|
* Mark Messages As Read In Conversation
|
|
277
331
|
* @memberof WebsiteConversation
|
|
332
|
+
* @public
|
|
278
333
|
* @method markMessagesReadInConversation
|
|
279
|
-
* @
|
|
334
|
+
* @param {string} websiteID
|
|
335
|
+
* @param {string} sessionID
|
|
336
|
+
* @param {object} read
|
|
337
|
+
* @return {Promise}
|
|
280
338
|
*/
|
|
281
339
|
service.markMessagesReadInConversation = function(
|
|
282
340
|
websiteID, sessionID, read
|
|
@@ -293,8 +351,12 @@ function WebsiteConversation(service, crisp) {
|
|
|
293
351
|
/**
|
|
294
352
|
* Mark Messages As Delivered In Conversation
|
|
295
353
|
* @memberof WebsiteConversation
|
|
354
|
+
* @public
|
|
296
355
|
* @method markMessagesDeliveredInConversation
|
|
297
|
-
* @
|
|
356
|
+
* @param {string} websiteID
|
|
357
|
+
* @param {string} sessionID
|
|
358
|
+
* @param {object} delivered
|
|
359
|
+
* @return {Promise}
|
|
298
360
|
*/
|
|
299
361
|
service.markMessagesDeliveredInConversation = function(
|
|
300
362
|
websiteID, sessionID, delivered
|
|
@@ -311,8 +373,12 @@ function WebsiteConversation(service, crisp) {
|
|
|
311
373
|
/**
|
|
312
374
|
* Update Conversation Open State
|
|
313
375
|
* @memberof WebsiteConversation
|
|
376
|
+
* @public
|
|
314
377
|
* @method updateConversationOpenState
|
|
315
|
-
* @
|
|
378
|
+
* @param {string} websiteID
|
|
379
|
+
* @param {string} sessionID
|
|
380
|
+
* @param {boolean} [opened]
|
|
381
|
+
* @return {Promise}
|
|
316
382
|
*/
|
|
317
383
|
service.updateConversationOpenState = function(websiteID, sessionID, opened) {
|
|
318
384
|
return crisp.patch(
|
|
@@ -331,8 +397,11 @@ function WebsiteConversation(service, crisp) {
|
|
|
331
397
|
/**
|
|
332
398
|
* Get Conversation Routing Assign
|
|
333
399
|
* @memberof WebsiteConversation
|
|
400
|
+
* @public
|
|
334
401
|
* @method getConversationRoutingAssign
|
|
335
|
-
* @
|
|
402
|
+
* @param {string} websiteID
|
|
403
|
+
* @param {string} sessionID
|
|
404
|
+
* @return {Promise}
|
|
336
405
|
*/
|
|
337
406
|
service.getConversationRoutingAssign = function(websiteID, sessionID) {
|
|
338
407
|
return crisp.get(
|
|
@@ -345,8 +414,12 @@ function WebsiteConversation(service, crisp) {
|
|
|
345
414
|
/**
|
|
346
415
|
* Assign Conversation Routing
|
|
347
416
|
* @memberof WebsiteConversation
|
|
417
|
+
* @public
|
|
348
418
|
* @method assignConversationRouting
|
|
349
|
-
* @
|
|
419
|
+
* @param {string} websiteID
|
|
420
|
+
* @param {string} sessionID
|
|
421
|
+
* @param {object} assign
|
|
422
|
+
* @return {Promise}
|
|
350
423
|
*/
|
|
351
424
|
service.assignConversationRouting = function(websiteID, sessionID, assign) {
|
|
352
425
|
return crisp.patch(
|
|
@@ -361,8 +434,11 @@ function WebsiteConversation(service, crisp) {
|
|
|
361
434
|
/**
|
|
362
435
|
* Get Conversation Metas
|
|
363
436
|
* @memberof WebsiteConversation
|
|
437
|
+
* @public
|
|
364
438
|
* @method getConversationMetas
|
|
365
|
-
* @
|
|
439
|
+
* @param {string} websiteID
|
|
440
|
+
* @param {string} sessionID
|
|
441
|
+
* @return {Promise}
|
|
366
442
|
*/
|
|
367
443
|
service.getConversationMetas = function(websiteID, sessionID) {
|
|
368
444
|
return crisp.get(
|
|
@@ -375,8 +451,12 @@ function WebsiteConversation(service, crisp) {
|
|
|
375
451
|
/**
|
|
376
452
|
* Update Conversation Metas
|
|
377
453
|
* @memberof WebsiteConversation
|
|
454
|
+
* @public
|
|
378
455
|
* @method updateConversationMetas
|
|
379
|
-
* @
|
|
456
|
+
* @param {string} websiteID
|
|
457
|
+
* @param {string} sessionID
|
|
458
|
+
* @param {object} metas
|
|
459
|
+
* @return {Promise}
|
|
380
460
|
*/
|
|
381
461
|
service.updateConversationMetas = function(websiteID, sessionID, metas) {
|
|
382
462
|
return crisp.patch(
|
|
@@ -391,8 +471,12 @@ function WebsiteConversation(service, crisp) {
|
|
|
391
471
|
/**
|
|
392
472
|
* Get An Original Message In Conversation
|
|
393
473
|
* @memberof WebsiteConversation
|
|
474
|
+
* @public
|
|
394
475
|
* @method getOriginalMessageInConversation
|
|
395
|
-
* @
|
|
476
|
+
* @param {string} websiteID
|
|
477
|
+
* @param {string} sessionID
|
|
478
|
+
* @param {string} originalID
|
|
479
|
+
* @return {Promise}
|
|
396
480
|
*/
|
|
397
481
|
service.getOriginalMessageInConversation = function(
|
|
398
482
|
websiteID, sessionID, originalID
|
|
@@ -407,8 +491,12 @@ function WebsiteConversation(service, crisp) {
|
|
|
407
491
|
/**
|
|
408
492
|
* List Conversation Pages
|
|
409
493
|
* @memberof WebsiteConversation
|
|
494
|
+
* @public
|
|
410
495
|
* @method listConversationPages
|
|
411
|
-
* @
|
|
496
|
+
* @param {string} websiteID
|
|
497
|
+
* @param {string} sessionID
|
|
498
|
+
* @param {number} pageNumber
|
|
499
|
+
* @return {Promise}
|
|
412
500
|
*/
|
|
413
501
|
service.listConversationPages = function(websiteID, sessionID, pageNumber) {
|
|
414
502
|
return crisp.get(
|
|
@@ -421,8 +509,12 @@ function WebsiteConversation(service, crisp) {
|
|
|
421
509
|
/**
|
|
422
510
|
* List Conversation Events
|
|
423
511
|
* @memberof WebsiteConversation
|
|
512
|
+
* @public
|
|
424
513
|
* @method listConversationEvents
|
|
425
|
-
* @
|
|
514
|
+
* @param {string} websiteID
|
|
515
|
+
* @param {string} sessionID
|
|
516
|
+
* @param {number} pageNumber
|
|
517
|
+
* @return {Promise}
|
|
426
518
|
*/
|
|
427
519
|
service.listConversationEvents = function(websiteID, sessionID, pageNumber) {
|
|
428
520
|
return crisp.get(
|
|
@@ -432,11 +524,32 @@ function WebsiteConversation(service, crisp) {
|
|
|
432
524
|
);
|
|
433
525
|
};
|
|
434
526
|
|
|
527
|
+
/**
|
|
528
|
+
* List Conversation Files
|
|
529
|
+
* @memberof WebsiteConversation
|
|
530
|
+
* @public
|
|
531
|
+
* @method listConversationFiles
|
|
532
|
+
* @param {string} websiteID
|
|
533
|
+
* @param {string} sessionID
|
|
534
|
+
* @param {number} pageNumber
|
|
535
|
+
* @return {Promise}
|
|
536
|
+
*/
|
|
537
|
+
service.listConversationFiles = function(websiteID, sessionID, pageNumber) {
|
|
538
|
+
return crisp.get(
|
|
539
|
+
crisp._prepareRestUrl([
|
|
540
|
+
"website", websiteID, "conversation", sessionID, "files", pageNumber
|
|
541
|
+
])
|
|
542
|
+
);
|
|
543
|
+
};
|
|
544
|
+
|
|
435
545
|
/**
|
|
436
546
|
* Get Conversation State
|
|
437
547
|
* @memberof WebsiteConversation
|
|
548
|
+
* @public
|
|
438
549
|
* @method getConversationState
|
|
439
|
-
* @
|
|
550
|
+
* @param {string} websiteID
|
|
551
|
+
* @param {string} sessionID
|
|
552
|
+
* @return {Promise}
|
|
440
553
|
*/
|
|
441
554
|
service.getConversationState = function(websiteID, sessionID) {
|
|
442
555
|
return crisp.get(
|
|
@@ -449,8 +562,12 @@ function WebsiteConversation(service, crisp) {
|
|
|
449
562
|
/**
|
|
450
563
|
* Change Conversation State
|
|
451
564
|
* @memberof WebsiteConversation
|
|
565
|
+
* @public
|
|
452
566
|
* @method changeConversationState
|
|
453
|
-
* @
|
|
567
|
+
* @param {string} websiteID
|
|
568
|
+
* @param {string} sessionID
|
|
569
|
+
* @param {string} state
|
|
570
|
+
* @return {Promise}
|
|
454
571
|
*/
|
|
455
572
|
service.changeConversationState = function(websiteID, sessionID, state) {
|
|
456
573
|
return crisp.patch(
|
|
@@ -469,8 +586,11 @@ function WebsiteConversation(service, crisp) {
|
|
|
469
586
|
/**
|
|
470
587
|
* Get Conversation Participants
|
|
471
588
|
* @memberof WebsiteConversation
|
|
589
|
+
* @public
|
|
472
590
|
* @method getConversationParticipants
|
|
473
|
-
* @
|
|
591
|
+
* @param {string} websiteID
|
|
592
|
+
* @param {string} sessionID
|
|
593
|
+
* @return {Promise}
|
|
474
594
|
*/
|
|
475
595
|
service.getConversationParticipants = function(websiteID, sessionID) {
|
|
476
596
|
return crisp.get(
|
|
@@ -483,8 +603,12 @@ function WebsiteConversation(service, crisp) {
|
|
|
483
603
|
/**
|
|
484
604
|
* Save Conversation Participants
|
|
485
605
|
* @memberof WebsiteConversation
|
|
606
|
+
* @public
|
|
486
607
|
* @method saveConversationParticipants
|
|
487
|
-
* @
|
|
608
|
+
* @param {string} websiteID
|
|
609
|
+
* @param {string} sessionID
|
|
610
|
+
* @param {object} participants
|
|
611
|
+
* @return {Promise}
|
|
488
612
|
*/
|
|
489
613
|
service.saveConversationParticipants = function(
|
|
490
614
|
websiteID, sessionID, participants
|
|
@@ -501,8 +625,11 @@ function WebsiteConversation(service, crisp) {
|
|
|
501
625
|
/**
|
|
502
626
|
* Get Block Status For Conversation
|
|
503
627
|
* @memberof WebsiteConversation
|
|
628
|
+
* @public
|
|
504
629
|
* @method getBlockStatusForConversation
|
|
505
|
-
* @
|
|
630
|
+
* @param {string} websiteID
|
|
631
|
+
* @param {string} sessionID
|
|
632
|
+
* @return {Promise}
|
|
506
633
|
*/
|
|
507
634
|
service.getBlockStatusForConversation = function(websiteID, sessionID) {
|
|
508
635
|
return crisp.get(
|
|
@@ -515,8 +642,12 @@ function WebsiteConversation(service, crisp) {
|
|
|
515
642
|
/**
|
|
516
643
|
* Block Incoming Messages For Conversation
|
|
517
644
|
* @memberof WebsiteConversation
|
|
645
|
+
* @public
|
|
518
646
|
* @method blockIncomingMessagesForConversation
|
|
519
|
-
* @
|
|
647
|
+
* @param {string} websiteID
|
|
648
|
+
* @param {string} sessionID
|
|
649
|
+
* @param {boolean} [blocked]
|
|
650
|
+
* @return {Promise}
|
|
520
651
|
*/
|
|
521
652
|
service.blockIncomingMessagesForConversation = function(
|
|
522
653
|
websiteID, sessionID, blocked
|
|
@@ -537,8 +668,11 @@ function WebsiteConversation(service, crisp) {
|
|
|
537
668
|
/**
|
|
538
669
|
* Get Verify Status For Conversation
|
|
539
670
|
* @memberof WebsiteConversation
|
|
671
|
+
* @public
|
|
540
672
|
* @method getVerifyStatusForConversation
|
|
541
|
-
* @
|
|
673
|
+
* @param {string} websiteID
|
|
674
|
+
* @param {string} sessionID
|
|
675
|
+
* @return {Promise}
|
|
542
676
|
*/
|
|
543
677
|
service.getVerifyStatusForConversation = function(websiteID, sessionID) {
|
|
544
678
|
return crisp.get(
|
|
@@ -551,8 +685,12 @@ function WebsiteConversation(service, crisp) {
|
|
|
551
685
|
/**
|
|
552
686
|
* Update Verify Status For Conversation
|
|
553
687
|
* @memberof WebsiteConversation
|
|
688
|
+
* @public
|
|
554
689
|
* @method updateVerifyStatusForConversation
|
|
555
|
-
* @
|
|
690
|
+
* @param {string} websiteID
|
|
691
|
+
* @param {string} sessionID
|
|
692
|
+
* @param {boolean} [verified]
|
|
693
|
+
* @return {Promise}
|
|
556
694
|
*/
|
|
557
695
|
service.updateVerifyStatusForConversation = function(
|
|
558
696
|
websiteID, sessionID, verified
|
|
@@ -573,8 +711,13 @@ function WebsiteConversation(service, crisp) {
|
|
|
573
711
|
/**
|
|
574
712
|
* Request Email Transcript For Conversation
|
|
575
713
|
* @memberof WebsiteConversation
|
|
714
|
+
* @public
|
|
576
715
|
* @method requestEmailTranscriptForConversation
|
|
577
|
-
* @
|
|
716
|
+
* @param {string} websiteID
|
|
717
|
+
* @param {string} sessionID
|
|
718
|
+
* @param {string} to
|
|
719
|
+
* @param {string} [email]
|
|
720
|
+
* @return {Promise}
|
|
578
721
|
*/
|
|
579
722
|
service.requestEmailTranscriptForConversation = function(
|
|
580
723
|
websiteID, sessionID, to, email
|
|
@@ -600,8 +743,11 @@ function WebsiteConversation(service, crisp) {
|
|
|
600
743
|
/**
|
|
601
744
|
* Request Chatbox Binding Purge For Conversation
|
|
602
745
|
* @memberof WebsiteConversation
|
|
746
|
+
* @public
|
|
603
747
|
* @method requestChatboxBindingPurgeForConversation
|
|
604
|
-
* @
|
|
748
|
+
* @param {string} websiteID
|
|
749
|
+
* @param {string} sessionID
|
|
750
|
+
* @return {Promise}
|
|
605
751
|
*/
|
|
606
752
|
service.requestChatboxBindingPurgeForConversation = function(
|
|
607
753
|
websiteID, sessionID
|
|
@@ -616,8 +762,11 @@ function WebsiteConversation(service, crisp) {
|
|
|
616
762
|
/**
|
|
617
763
|
* Request User Feedback For Conversation
|
|
618
764
|
* @memberof WebsiteConversation
|
|
765
|
+
* @public
|
|
619
766
|
* @method requestUserFeedbackForConversation
|
|
620
|
-
* @
|
|
767
|
+
* @param {string} websiteID
|
|
768
|
+
* @param {string} sessionID
|
|
769
|
+
* @return {Promise}
|
|
621
770
|
*/
|
|
622
771
|
service.requestUserFeedbackForConversation = function(
|
|
623
772
|
websiteID, sessionID
|
|
@@ -632,8 +781,11 @@ function WebsiteConversation(service, crisp) {
|
|
|
632
781
|
/**
|
|
633
782
|
* List Browsing Sessions For Conversation
|
|
634
783
|
* @memberof WebsiteConversation
|
|
784
|
+
* @public
|
|
635
785
|
* @method listBrowsingSessionsForConversation
|
|
636
|
-
* @
|
|
786
|
+
* @param {string} websiteID
|
|
787
|
+
* @param {string} sessionID
|
|
788
|
+
* @return {Promise}
|
|
637
789
|
*/
|
|
638
790
|
service.listBrowsingSessionsForConversation = function(websiteID, sessionID) {
|
|
639
791
|
return crisp.get(
|
|
@@ -646,8 +798,11 @@ function WebsiteConversation(service, crisp) {
|
|
|
646
798
|
/**
|
|
647
799
|
* Initiate Browsing Session For Conversation
|
|
648
800
|
* @memberof WebsiteConversation
|
|
801
|
+
* @public
|
|
649
802
|
* @method initiateBrowsingSessionForConversation
|
|
650
|
-
* @
|
|
803
|
+
* @param {string} websiteID
|
|
804
|
+
* @param {string} sessionID
|
|
805
|
+
* @return {Promise}
|
|
651
806
|
*/
|
|
652
807
|
service.initiateBrowsingSessionForConversation = function(
|
|
653
808
|
websiteID, sessionID
|
|
@@ -662,8 +817,13 @@ function WebsiteConversation(service, crisp) {
|
|
|
662
817
|
/**
|
|
663
818
|
* Send Action To An Existing Browsing Session
|
|
664
819
|
* @memberof WebsiteConversation
|
|
820
|
+
* @public
|
|
665
821
|
* @method sendActionToExistingBrowsingSession
|
|
666
|
-
* @
|
|
822
|
+
* @param {string} websiteID
|
|
823
|
+
* @param {string} sessionID
|
|
824
|
+
* @param {object} browsingID
|
|
825
|
+
* @param {string} action
|
|
826
|
+
* @return {Promise}
|
|
667
827
|
*/
|
|
668
828
|
service.sendActionToExistingBrowsingSession = function(
|
|
669
829
|
websiteID, sessionID, browsingID, action
|
|
@@ -684,8 +844,13 @@ function WebsiteConversation(service, crisp) {
|
|
|
684
844
|
/**
|
|
685
845
|
* Assist Existing Browsing Session
|
|
686
846
|
* @memberof WebsiteConversation
|
|
847
|
+
* @public
|
|
687
848
|
* @method assistExistingBrowsingSession
|
|
688
|
-
* @
|
|
849
|
+
* @param {string} websiteID
|
|
850
|
+
* @param {string} sessionID
|
|
851
|
+
* @param {object} browsingID
|
|
852
|
+
* @param {object} assist
|
|
853
|
+
* @return {Promise}
|
|
689
854
|
*/
|
|
690
855
|
service.assistExistingBrowsingSession = function(
|
|
691
856
|
websiteID, sessionID, browsingID, assist
|
|
@@ -703,8 +868,12 @@ function WebsiteConversation(service, crisp) {
|
|
|
703
868
|
/**
|
|
704
869
|
* Initiate New Call Session For Conversation
|
|
705
870
|
* @memberof WebsiteConversation
|
|
871
|
+
* @public
|
|
706
872
|
* @method initiateNewCallSessionForConversation
|
|
707
|
-
* @
|
|
873
|
+
* @param {string} websiteID
|
|
874
|
+
* @param {string} sessionID
|
|
875
|
+
* @param {string} mode
|
|
876
|
+
* @return {Promise}
|
|
708
877
|
*/
|
|
709
878
|
service.initiateNewCallSessionForConversation = function(
|
|
710
879
|
websiteID, sessionID, mode
|
|
@@ -725,8 +894,11 @@ function WebsiteConversation(service, crisp) {
|
|
|
725
894
|
/**
|
|
726
895
|
* Get Ongoing Call Session For Conversation
|
|
727
896
|
* @memberof WebsiteConversation
|
|
897
|
+
* @public
|
|
728
898
|
* @method getOngoingCallSessionForConversation
|
|
729
|
-
* @
|
|
899
|
+
* @param {string} websiteID
|
|
900
|
+
* @param {string} sessionID
|
|
901
|
+
* @return {Promise}
|
|
730
902
|
*/
|
|
731
903
|
service.getOngoingCallSessionForConversation = function(
|
|
732
904
|
websiteID, sessionID
|
|
@@ -741,8 +913,12 @@ function WebsiteConversation(service, crisp) {
|
|
|
741
913
|
/**
|
|
742
914
|
* Abort Ongoing Call Session For Conversation
|
|
743
915
|
* @memberof WebsiteConversation
|
|
916
|
+
* @public
|
|
744
917
|
* @method abortOngoingCallSessionForConversation
|
|
745
|
-
* @
|
|
918
|
+
* @param {string} websiteID
|
|
919
|
+
* @param {string} sessionID
|
|
920
|
+
* @param {string} callID
|
|
921
|
+
* @return {Promise}
|
|
746
922
|
*/
|
|
747
923
|
service.abortOngoingCallSessionForConversation = function(
|
|
748
924
|
websiteID, sessionID, callID
|
|
@@ -757,8 +933,13 @@ function WebsiteConversation(service, crisp) {
|
|
|
757
933
|
/**
|
|
758
934
|
* Transmit Signaling On Ongoing Call Session
|
|
759
935
|
* @memberof WebsiteConversation
|
|
936
|
+
* @public
|
|
760
937
|
* @method transmitSignalingOnOngoingCallSession
|
|
761
|
-
* @
|
|
938
|
+
* @param {string} websiteID
|
|
939
|
+
* @param {string} sessionID
|
|
940
|
+
* @param {string} callID
|
|
941
|
+
* @param {object} payload
|
|
942
|
+
* @return {Promise}
|
|
762
943
|
*/
|
|
763
944
|
service.transmitSignalingOnOngoingCallSession = function(
|
|
764
945
|
websiteID, sessionID, callID, payload
|
|
@@ -775,8 +956,16 @@ function WebsiteConversation(service, crisp) {
|
|
|
775
956
|
/**
|
|
776
957
|
* Deliver Widget Button Action For Conversation
|
|
777
958
|
* @memberof WebsiteConversation
|
|
959
|
+
* @public
|
|
778
960
|
* @method deliverWidgetButtonActionForConversation
|
|
779
|
-
* @
|
|
961
|
+
* @param {string} websiteID
|
|
962
|
+
* @param {string} sessionID
|
|
963
|
+
* @param {string} pluginID
|
|
964
|
+
* @param {string} sectionID
|
|
965
|
+
* @param {string} itemID
|
|
966
|
+
* @param {object} data
|
|
967
|
+
* @param {object} value
|
|
968
|
+
* @return {Promise}
|
|
780
969
|
*/
|
|
781
970
|
service.deliverWidgetButtonActionForConversation = function(
|
|
782
971
|
websiteID, sessionID, pluginID, sectionID, itemID, data, value
|
|
@@ -805,8 +994,15 @@ function WebsiteConversation(service, crisp) {
|
|
|
805
994
|
/**
|
|
806
995
|
* Deliver Widget Data Fetch Action For Conversation
|
|
807
996
|
* @memberof WebsiteConversation
|
|
997
|
+
* @public
|
|
808
998
|
* @method deliverWidgetDataFetchActionForConversation
|
|
809
|
-
* @
|
|
999
|
+
* @param {string} websiteID
|
|
1000
|
+
* @param {string} sessionID
|
|
1001
|
+
* @param {string} pluginID
|
|
1002
|
+
* @param {string} sectionID
|
|
1003
|
+
* @param {string} itemID
|
|
1004
|
+
* @param {object} data
|
|
1005
|
+
* @return {Promise}
|
|
810
1006
|
*/
|
|
811
1007
|
service.deliverWidgetDataFetchActionForConversation = function(
|
|
812
1008
|
websiteID, sessionID, pluginID, sectionID, itemID, data
|
|
@@ -830,8 +1026,15 @@ function WebsiteConversation(service, crisp) {
|
|
|
830
1026
|
/**
|
|
831
1027
|
* Deliver Widget Data Edit Action For Conversation
|
|
832
1028
|
* @memberof WebsiteConversation
|
|
1029
|
+
* @public
|
|
833
1030
|
* @method deliverWidgetDataEditActionForConversation
|
|
834
|
-
* @
|
|
1031
|
+
* @param {string} websiteID
|
|
1032
|
+
* @param {string} sessionID
|
|
1033
|
+
* @param {string} pluginID
|
|
1034
|
+
* @param {string} sectionID
|
|
1035
|
+
* @param {string} itemID
|
|
1036
|
+
* @param {string} value
|
|
1037
|
+
* @return {Promise}
|
|
835
1038
|
*/
|
|
836
1039
|
service.deliverWidgetDataEditActionForConversation = function(
|
|
837
1040
|
websiteID, sessionID, pluginID, sectionID, itemID, value
|
|
@@ -855,8 +1058,13 @@ function WebsiteConversation(service, crisp) {
|
|
|
855
1058
|
/**
|
|
856
1059
|
* Schedule A Reminder For Conversation
|
|
857
1060
|
* @memberof WebsiteConversation
|
|
1061
|
+
* @public
|
|
858
1062
|
* @method scheduleReminderForConversation
|
|
859
|
-
* @
|
|
1063
|
+
* @param {string} websiteID
|
|
1064
|
+
* @param {string} sessionID
|
|
1065
|
+
* @param {string} date
|
|
1066
|
+
* @param {string} note
|
|
1067
|
+
* @return {Promise}
|
|
860
1068
|
*/
|
|
861
1069
|
service.scheduleReminderForConversation = function(
|
|
862
1070
|
websiteID, sessionID, date, note
|