@webex/internal-plugin-conversation 2.59.2 → 2.59.3-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/.eslintrc.js +6 -6
  2. package/README.md +47 -47
  3. package/babel.config.js +3 -3
  4. package/dist/activities.js +4 -4
  5. package/dist/activities.js.map +1 -1
  6. package/dist/activity-thread-ordering.js +34 -34
  7. package/dist/activity-thread-ordering.js.map +1 -1
  8. package/dist/config.js +12 -12
  9. package/dist/config.js.map +1 -1
  10. package/dist/constants.js.map +1 -1
  11. package/dist/conversation.js +474 -474
  12. package/dist/conversation.js.map +1 -1
  13. package/dist/convo-error.js +4 -4
  14. package/dist/convo-error.js.map +1 -1
  15. package/dist/decryption-transforms.js +155 -155
  16. package/dist/decryption-transforms.js.map +1 -1
  17. package/dist/encryption-transforms.js.map +1 -1
  18. package/dist/index.js +2 -2
  19. package/dist/index.js.map +1 -1
  20. package/dist/share-activity.js +57 -57
  21. package/dist/share-activity.js.map +1 -1
  22. package/dist/to-array.js +7 -7
  23. package/dist/to-array.js.map +1 -1
  24. package/jest.config.js +3 -3
  25. package/package.json +21 -20
  26. package/process +1 -1
  27. package/src/activities.js +157 -157
  28. package/src/activity-thread-ordering.js +283 -283
  29. package/src/activity-threading.md +282 -282
  30. package/src/config.js +37 -37
  31. package/src/constants.js +3 -3
  32. package/src/conversation.js +2535 -2535
  33. package/src/convo-error.js +15 -15
  34. package/src/decryption-transforms.js +541 -541
  35. package/src/encryption-transforms.js +345 -345
  36. package/src/index.js +327 -327
  37. package/src/share-activity.js +436 -436
  38. package/src/to-array.js +29 -29
  39. package/test/integration/spec/create.js +290 -290
  40. package/test/integration/spec/encryption.js +333 -333
  41. package/test/integration/spec/get.js +1255 -1255
  42. package/test/integration/spec/mercury.js +94 -94
  43. package/test/integration/spec/share.js +537 -537
  44. package/test/integration/spec/verbs.js +1041 -1041
  45. package/test/unit/spec/conversation.js +823 -823
  46. package/test/unit/spec/decrypt-transforms.js +460 -460
  47. package/test/unit/spec/encryption-transforms.js +93 -93
  48. package/test/unit/spec/share-activity.js +178 -178
@@ -71,11 +71,11 @@ var getConvoLimit = function getConvoLimit() {
71
71
  };
72
72
  var Conversation = _webexCore.WebexPlugin.extend({
73
73
  namespace: 'Conversation',
74
- /**
75
- * @param {String} cluster the cluster containing the id
76
- * @param {UUID} [id] the id of the conversation.
77
- * If empty, just return the base URL.
78
- * @returns {String} url of the conversation
74
+ /**
75
+ * @param {String} cluster the cluster containing the id
76
+ * @param {UUID} [id] the id of the conversation.
77
+ * If empty, just return the base URL.
78
+ * @returns {String} url of the conversation
79
79
  */
80
80
  getUrlFromClusterId: function getUrlFromClusterId() {
81
81
  var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
@@ -87,11 +87,11 @@ var Conversation = _webexCore.WebexPlugin.extend({
87
87
  }, this.webex);
88
88
  return id ? "".concat(url, "/conversations/").concat(id) : url;
89
89
  },
90
- /**
91
- * @param {Object} conversation
92
- * @param {Object} object
93
- * @param {Object} activity
94
- * @returns {Promise}
90
+ /**
91
+ * @param {Object} conversation
92
+ * @param {Object} object
93
+ * @param {Object} activity
94
+ * @returns {Promise}
95
95
  */
96
96
  acknowledge: function acknowledge(conversation, object, activity) {
97
97
  var _this2 = this;
@@ -114,14 +114,14 @@ var Conversation = _webexCore.WebexPlugin.extend({
114
114
  return _this2.submit(a);
115
115
  });
116
116
  },
117
- /**
118
- * Adds a participant to a conversation
119
- * @param {Object} conversation
120
- * @param {Object|string} participant
121
- * @param {Object} activity Reference to the activity that will eventually be
122
- * posted. Use this to (a) pass in e.g. clientTempId and (b) render a
123
- * provisional activity
124
- * @returns {Promise<Activity>}
117
+ /**
118
+ * Adds a participant to a conversation
119
+ * @param {Object} conversation
120
+ * @param {Object|string} participant
121
+ * @param {Object} activity Reference to the activity that will eventually be
122
+ * posted. Use this to (a) pass in e.g. clientTempId and (b) render a
123
+ * provisional activity
124
+ * @returns {Promise<Activity>}
125
125
  */
126
126
  add: function add(conversation, participant, activity) {
127
127
  var _this3 = this;
@@ -150,24 +150,24 @@ var Conversation = _webexCore.WebexPlugin.extend({
150
150
  });
151
151
  });
152
152
  },
153
- /**
154
- * Creates a conversation
155
- * @param {Object} params
156
- * @param {Array<Participant>} params.participants
157
- * @param {Array<File>} params.files
158
- * @param {string} params.comment
159
- * @param {string} params.html
160
- * @param {Object} params.displayName
161
- * @param {string} params.classificationId
162
- * @param {string} params.effectiveDate
163
- * @param {Boolean} params.isDefaultClassification
164
- * @param {Array<string>} params.tags
165
- * @param {Boolean} params.favorite
166
- * @param {Object} options
167
- * @param {Boolean} options.allowPartialCreation
168
- * @param {Boolean} options.forceGrouped
169
- * @param {Boolean} options.skipOneOnOneFetch skips checking 1:1 exists before creating conversation
170
- * @returns {Promise<Conversation>}
153
+ /**
154
+ * Creates a conversation
155
+ * @param {Object} params
156
+ * @param {Array<Participant>} params.participants
157
+ * @param {Array<File>} params.files
158
+ * @param {string} params.comment
159
+ * @param {string} params.html
160
+ * @param {Object} params.displayName
161
+ * @param {string} params.classificationId
162
+ * @param {string} params.effectiveDate
163
+ * @param {Boolean} params.isDefaultClassification
164
+ * @param {Array<string>} params.tags
165
+ * @param {Boolean} params.favorite
166
+ * @param {Object} options
167
+ * @param {Boolean} options.allowPartialCreation
168
+ * @param {Boolean} options.forceGrouped
169
+ * @param {Boolean} options.skipOneOnOneFetch skips checking 1:1 exists before creating conversation
170
+ * @returns {Promise<Conversation>}
171
171
  */
172
172
  create: function create(params) {
173
173
  var _this4 = this;
@@ -213,12 +213,12 @@ var Conversation = _webexCore.WebexPlugin.extend({
213
213
  });
214
214
  });
215
215
  },
216
- /**
217
- * @private
218
- * generate a deterministic HMAC for a reaction
219
- * @param {Object} displayName displayName of reaction we are sending
220
- * @param {Object} parent parent activity of reaction
221
- * @returns {Promise<HMAC>}
216
+ /**
217
+ * @private
218
+ * generate a deterministic HMAC for a reaction
219
+ * @param {Object} displayName displayName of reaction we are sending
220
+ * @param {Object} parent parent activity of reaction
221
+ * @returns {Promise<HMAC>}
222
222
  */
223
223
  createReactionHmac: function createReactionHmac(displayName, parent) {
224
224
  // not using webex.internal.encryption.getKey() because the JWK it returns does not have a 'k'
@@ -238,29 +238,29 @@ var Conversation = _webexCore.WebexPlugin.extend({
238
238
  return _promise.default.resolve(hmac);
239
239
  });
240
240
  },
241
- /**
242
- * @typedef {Object} ReactionPayload
243
- * @property {Object} actor
244
- * @property {string} actor.objectType
245
- * @property {string} actor.id
246
- * @property {string} objectType
247
- * @property {string} verb will be either add' or 'delete'
248
- * @property {Object} target
249
- * @property {string} target.id
250
- * @property {string} target.objectType
251
- * @property {Object} object this will change on delete vs. add
252
- * @property {string} object.id present in delete case
253
- * @property {string} object.objectType 'activity' in delete case, 'reaction2' in add case
254
- * @property {string} object.displayName must be 'celebrate', 'heart', 'thumbsup', 'smiley', 'haha', 'confused', 'sad'
255
- * @property {string} object.hmac
256
- */
257
- /**
258
- * @private
259
- * send add or delete reaction to convo service
260
- * @param {Object} conversation
261
- * The payload to send a reaction
262
- * @param {ReactionPayload} reactionPayload
263
- * @returns {Promise<Activity>}
241
+ /**
242
+ * @typedef {Object} ReactionPayload
243
+ * @property {Object} actor
244
+ * @property {string} actor.objectType
245
+ * @property {string} actor.id
246
+ * @property {string} objectType
247
+ * @property {string} verb will be either add' or 'delete'
248
+ * @property {Object} target
249
+ * @property {string} target.id
250
+ * @property {string} target.objectType
251
+ * @property {Object} object this will change on delete vs. add
252
+ * @property {string} object.id present in delete case
253
+ * @property {string} object.objectType 'activity' in delete case, 'reaction2' in add case
254
+ * @property {string} object.displayName must be 'celebrate', 'heart', 'thumbsup', 'smiley', 'haha', 'confused', 'sad'
255
+ * @property {string} object.hmac
256
+ */
257
+ /**
258
+ * @private
259
+ * send add or delete reaction to convo service
260
+ * @param {Object} conversation
261
+ * The payload to send a reaction
262
+ * @param {ReactionPayload} reactionPayload
263
+ * @returns {Promise<Activity>}
264
264
  */
265
265
  sendReaction: function sendReaction(conversation, reactionPayload) {
266
266
  var _this5 = this;
@@ -278,11 +278,11 @@ var Conversation = _webexCore.WebexPlugin.extend({
278
278
  return _this5.submit(act);
279
279
  });
280
280
  },
281
- /**
282
- * delete a reaction
283
- * @param {Object} conversation
284
- * @param {Object} reactionId
285
- * @returns {Promise<Activity>}
281
+ /**
282
+ * delete a reaction
283
+ * @param {Object} conversation
284
+ * @param {Object} reactionId
285
+ * @returns {Promise<Activity>}
286
286
  */
287
287
  deleteReaction: function deleteReaction(conversation, reactionId) {
288
288
  var deleteReactionPayload = {
@@ -303,12 +303,12 @@ var Conversation = _webexCore.WebexPlugin.extend({
303
303
  };
304
304
  return this.sendReaction(conversation, deleteReactionPayload);
305
305
  },
306
- /**
307
- * create a reaction
308
- * @param {Object} conversation
309
- * @param {Object} displayName must be 'celebrate', 'heart', 'thumbsup', 'smiley', 'haha', 'confused', 'sad'
310
- * @param {Object} activity activity object from convo we are reacting to
311
- * @returns {Promise<Activity>}
306
+ /**
307
+ * create a reaction
308
+ * @param {Object} conversation
309
+ * @param {Object} displayName must be 'celebrate', 'heart', 'thumbsup', 'smiley', 'haha', 'confused', 'sad'
310
+ * @param {Object} activity activity object from convo we are reacting to
311
+ * @returns {Promise<Activity>}
312
312
  */
313
313
  addReaction: function addReaction(conversation, displayName, activity) {
314
314
  var _this6 = this;
@@ -337,12 +337,12 @@ var Conversation = _webexCore.WebexPlugin.extend({
337
337
  return _this6.sendReaction(conversation, addReactionPayload);
338
338
  });
339
339
  },
340
- /**
341
- * delete content
342
- * @param {Object} conversation
343
- * @param {Object} object
344
- * @param {Object} activity
345
- * @returns {Promise}
340
+ /**
341
+ * delete content
342
+ * @param {Object} conversation
343
+ * @param {Object} object
344
+ * @param {Object} activity
345
+ * @returns {Promise}
346
346
  */
347
347
  delete: function _delete(conversation, object, activity) {
348
348
  var _this7 = this;
@@ -374,15 +374,15 @@ var Conversation = _webexCore.WebexPlugin.extend({
374
374
  return _this7.submit(a);
375
375
  });
376
376
  },
377
- /**
378
- * Downloads the file specified in item.scr or item.url
379
- * @param {Object} item
380
- * @param {Object} item.scr
381
- * @param {string} item.url
382
- * @param {Object} options
383
- * @param {Object} options.headers
384
- * @param {boolean} options.shouldNotAddExifData
385
- * @returns {Promise<File>}
377
+ /**
378
+ * Downloads the file specified in item.scr or item.url
379
+ * @param {Object} item
380
+ * @param {Object} item.scr
381
+ * @param {string} item.url
382
+ * @param {Object} options
383
+ * @param {Object} options.headers
384
+ * @param {boolean} options.shouldNotAddExifData
385
+ * @returns {Promise<File>}
386
386
  */
387
387
  download: function download(item) {
388
388
  var _this8 = this;
@@ -420,12 +420,12 @@ var Conversation = _webexCore.WebexPlugin.extend({
420
420
  (0, _common.proxyEvents)(shunt, promise);
421
421
  return promise;
422
422
  },
423
- /**
424
- * Downloads an unencrypted file
425
- * @param {string} uri
426
- * @param {Object} options
427
- * @param {Object} options.headers
428
- * @returns {Promise<File>}
423
+ /**
424
+ * Downloads an unencrypted file
425
+ * @param {string} uri
426
+ * @param {Object} options
427
+ * @param {Object} options.headers
428
+ * @returns {Promise<File>}
429
429
  */
430
430
  _downloadUnencryptedFile: function _downloadUnencryptedFile(uri) {
431
431
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -439,13 +439,13 @@ var Conversation = _webexCore.WebexPlugin.extend({
439
439
  (0, _common.proxyEvents)(options.download, promise);
440
440
  return promise;
441
441
  },
442
- /**
443
- * Helper method that expands a set of parameters into an activty object
444
- * @param {string} verb
445
- * @param {Object} object
446
- * @param {Object} target
447
- * @param {Object|string} actor
448
- * @returns {Object}
442
+ /**
443
+ * Helper method that expands a set of parameters into an activty object
444
+ * @param {string} verb
445
+ * @param {Object} object
446
+ * @param {Object} target
447
+ * @param {Object|string} actor
448
+ * @returns {Object}
449
449
  */
450
450
  expand: function expand(verb, object, target, actor) {
451
451
  var activity = {
@@ -470,13 +470,13 @@ var Conversation = _webexCore.WebexPlugin.extend({
470
470
  }
471
471
  return activity;
472
472
  },
473
- /**
474
- * Gets an array of activities with an array of activity URLS
475
- * @param {Array} activityUrls
476
- * @param {Object} options
477
- * @param {String} options.cluster cluster where the activities are located
478
- * @param {String} options.url base convo url where the activities are located
479
- * @returns {Promise<Object>} Resolves with the activities
473
+ /**
474
+ * Gets an array of activities with an array of activity URLS
475
+ * @param {Array} activityUrls
476
+ * @param {Object} options
477
+ * @param {String} options.cluster cluster where the activities are located
478
+ * @param {String} options.url base convo url where the activities are located
479
+ * @returns {Promise<Object>} Resolves with the activities
480
480
  */
481
481
  bulkActivitiesFetch: function bulkActivitiesFetch(activityUrls) {
482
482
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -525,14 +525,14 @@ var Conversation = _webexCore.WebexPlugin.extend({
525
525
  return activitiesArr;
526
526
  });
527
527
  },
528
- /**
529
- * Fetches a single conversation
530
- * @param {Object} conversation
531
- * @param {String} [conversation.url] The URL where the conversation is located.
532
- * @param {String|UUID} [conversation.user] The user to look up in the conversation service
533
- * If specified, the user lookup will take precedence over the url lookup
534
- * @param {Object} options
535
- * @returns {Promise<Conversation>}
528
+ /**
529
+ * Fetches a single conversation
530
+ * @param {Object} conversation
531
+ * @param {String} [conversation.url] The URL where the conversation is located.
532
+ * @param {String|UUID} [conversation.user] The user to look up in the conversation service
533
+ * If specified, the user lookup will take precedence over the url lookup
534
+ * @param {Object} options
535
+ * @returns {Promise<Conversation>}
536
536
  */
537
537
  get: function get(conversation) {
538
538
  var _this9 = this;
@@ -582,16 +582,16 @@ var Conversation = _webexCore.WebexPlugin.extend({
582
582
  return res.body;
583
583
  });
584
584
  },
585
- /**
586
- * Leaves the conversation or removes the specified user from the specified
587
- * conversation
588
- * @param {Object} conversation
589
- * @param {Object|string} participant If not specified, defaults to current
590
- * user
591
- * @param {Object} activity Reference to the activity that will eventually be
592
- * posted. Use this to (a) pass in e.g. clientTempId and (b) render a
593
- * provisional activity
594
- * @returns {Promise<Activity>}
585
+ /**
586
+ * Leaves the conversation or removes the specified user from the specified
587
+ * conversation
588
+ * @param {Object} conversation
589
+ * @param {Object|string} participant If not specified, defaults to current
590
+ * user
591
+ * @param {Object} activity Reference to the activity that will eventually be
592
+ * posted. Use this to (a) pass in e.g. clientTempId and (b) render a
593
+ * provisional activity
594
+ * @returns {Promise<Activity>}
595
595
  */
596
596
  leave: function leave(conversation, participant, activity) {
597
597
  var _this10 = this;
@@ -622,17 +622,17 @@ var Conversation = _webexCore.WebexPlugin.extend({
622
622
  return _this10.submit(a);
623
623
  });
624
624
  },
625
- /**
626
- * Lists a set of conversations. By default does not fetch activities or
627
- * participants
628
- * @param {Object} options
629
- * @param {boolean} options.summary - when true, use conversationSummary resource
630
- * @param {Number} options.conversationsLimit - limit the number of conversations fetched
631
- * @param {boolean} options.deferDecrypt - when true, deferDecrypt tells the
632
- * payload transformer to normalize (but not decrypt) each received
633
- * conversation. Instead, the received conversations will each have a bound
634
- * decrypt method that can be executed at the consumer's leisure
635
- * @returns {Promise<Array<Conversation>>}
625
+ /**
626
+ * Lists a set of conversations. By default does not fetch activities or
627
+ * participants
628
+ * @param {Object} options
629
+ * @param {boolean} options.summary - when true, use conversationSummary resource
630
+ * @param {Number} options.conversationsLimit - limit the number of conversations fetched
631
+ * @param {boolean} options.deferDecrypt - when true, deferDecrypt tells the
632
+ * payload transformer to normalize (but not decrypt) each received
633
+ * conversation. Instead, the received conversations will each have a bound
634
+ * decrypt method that can be executed at the consumer's leisure
635
+ * @returns {Promise<Array<Conversation>>}
636
636
  */
637
637
  list: function list() {
638
638
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -658,17 +658,17 @@ var Conversation = _webexCore.WebexPlugin.extend({
658
658
  return results;
659
659
  });
660
660
  },
661
- /**
662
- * Paginates through a set of conversations. By default does not fetch activities or
663
- * participants
664
- * @param {Object} options
665
- * @param {boolean} options.deferDecrypt - when true, deferDecrypt tells the
666
- * payload transformer to normalize (but not decrypt) each received
667
- * conversation. Instead, the received conversations will each have a bound
668
- * decrypt method that can be executed at the consumer's leisure
669
- * @param {Page} options.page - After the first result has been returned to a consumer,
670
- * you can pass the Page back to the sdk to get the next list of results.
671
- * @returns {Promise<Array<Conversation>>}
661
+ /**
662
+ * Paginates through a set of conversations. By default does not fetch activities or
663
+ * participants
664
+ * @param {Object} options
665
+ * @param {boolean} options.deferDecrypt - when true, deferDecrypt tells the
666
+ * payload transformer to normalize (but not decrypt) each received
667
+ * conversation. Instead, the received conversations will each have a bound
668
+ * decrypt method that can be executed at the consumer's leisure
669
+ * @param {Page} options.page - After the first result has been returned to a consumer,
670
+ * you can pass the Page back to the sdk to get the next list of results.
671
+ * @returns {Promise<Array<Conversation>>}
672
672
  */
673
673
  paginate: function paginate() {
674
674
  var _arguments = arguments,
@@ -733,11 +733,11 @@ var Conversation = _webexCore.WebexPlugin.extend({
733
733
  }, _callee);
734
734
  }))();
735
735
  },
736
- /**
737
- * Lists the conversations the current user has left. By default does not
738
- * fetch activities or participants
739
- * @param {Object} options
740
- * @returns {Promise<Array<Conversation>>}
736
+ /**
737
+ * Lists the conversations the current user has left. By default does not
738
+ * fetch activities or participants
739
+ * @param {Object} options
740
+ * @returns {Promise<Array<Conversation>>}
741
741
  */
742
742
  listLeft: function listLeft(options) {
743
743
  return this._list({
@@ -761,33 +761,33 @@ var Conversation = _webexCore.WebexPlugin.extend({
761
761
  return results;
762
762
  });
763
763
  },
764
- /**
765
- * List activities for the specified conversation
766
- * @param {Object} options
767
- * @param {String} options.conversationUrl URL to the conversation
768
- * @returns {Promise<Array<Activity>>}
764
+ /**
765
+ * List activities for the specified conversation
766
+ * @param {Object} options
767
+ * @param {String} options.conversationUrl URL to the conversation
768
+ * @returns {Promise<Array<Activity>>}
769
769
  */
770
770
  listActivities: function listActivities(options) {
771
771
  return this._listActivities((0, _assign.default)(options, {
772
772
  resource: 'activities'
773
773
  }));
774
774
  },
775
- /**
776
- * @typedef QueryOptions
777
- * @param {number} [limit] The limit of child activities that can be returned per request
778
- * @param {boolean} [latestActivityFirst] Sort order for the child activities
779
- * @param {boolean} [includeParentActivity] Enables the parent activity to be returned in the activity list
780
- * @param {string} [sinceDate] Get all child activities after this date
781
- * @param {string} [maxDate] Get all child activities before this date
782
- * @param {boolean} [latestActivityFirst] Sort order for the child activities
783
- * @param {string} [activityType] The type of children to return the parents of, a null value here returns parents of all types of children.
784
- * The value is one of 'reply', 'edit', 'cardAction', 'reaction', 'reactionSummary', 'reactionSelfSummary'
785
- */
786
- /**
787
- * Get all parent ids for a conversation.
788
- * @param {string} conversationUrl conversation URL.
789
- * @param {QueryOptions} [query] object containing query string values to be appended to the url
790
- * @returns {Promise<Array<String>>}
775
+ /**
776
+ * @typedef QueryOptions
777
+ * @param {number} [limit] The limit of child activities that can be returned per request
778
+ * @param {boolean} [latestActivityFirst] Sort order for the child activities
779
+ * @param {boolean} [includeParentActivity] Enables the parent activity to be returned in the activity list
780
+ * @param {string} [sinceDate] Get all child activities after this date
781
+ * @param {string} [maxDate] Get all child activities before this date
782
+ * @param {boolean} [latestActivityFirst] Sort order for the child activities
783
+ * @param {string} [activityType] The type of children to return the parents of, a null value here returns parents of all types of children.
784
+ * The value is one of 'reply', 'edit', 'cardAction', 'reaction', 'reactionSummary', 'reactionSelfSummary'
785
+ */
786
+ /**
787
+ * Get all parent ids for a conversation.
788
+ * @param {string} conversationUrl conversation URL.
789
+ * @param {QueryOptions} [query] object containing query string values to be appended to the url
790
+ * @returns {Promise<Array<String>>}
791
791
  */
792
792
  listParentActivityIds: function listParentActivityIds(conversationUrl, query) {
793
793
  var _this12 = this;
@@ -813,13 +813,13 @@ var Conversation = _webexCore.WebexPlugin.extend({
813
813
  }, _callee2);
814
814
  }))();
815
815
  },
816
- /**
817
- * Returns a list of _all_ child activities for a given parentId within a given conversation
818
- * @param {object} [options = {}]
819
- * @param {string} [options.conversationUrl] targeted conversation URL
820
- * @param {string} [options.activityParentId] parent id of edit activities or thread activities
821
- * @param {QueryOptions} [options.query] object containing query string values to be appended to the url
822
- * @returns {Promise<Array>}
816
+ /**
817
+ * Returns a list of _all_ child activities for a given parentId within a given conversation
818
+ * @param {object} [options = {}]
819
+ * @param {string} [options.conversationUrl] targeted conversation URL
820
+ * @param {string} [options.activityParentId] parent id of edit activities or thread activities
821
+ * @param {QueryOptions} [options.query] object containing query string values to be appended to the url
822
+ * @returns {Promise<Array>}
823
823
  */
824
824
  listAllChildActivitiesByParentId: function listAllChildActivitiesByParentId() {
825
825
  var _arguments2 = arguments,
@@ -873,14 +873,14 @@ var Conversation = _webexCore.WebexPlugin.extend({
873
873
  }, _callee3);
874
874
  }))();
875
875
  },
876
- /**
877
- * Return a list of child activities with a given conversation, parentId and other constraints.
878
- * @param {string} conversationUrl targeted conversation URL
879
- * @param {string} activityParentId parent id of edit activities or thread activities
880
- * @param {string} activityType type of child activity to return
881
- * The value is one of 'reply', 'edit', 'cardAction', 'reaction', 'reactionSummary', 'reactionSelfSummary'
882
- * @param {QueryOptions} [query = {}] object containing query string values to be appended to the url
883
- * @returns {Promise<Array>}
876
+ /**
877
+ * Return a list of child activities with a given conversation, parentId and other constraints.
878
+ * @param {string} conversationUrl targeted conversation URL
879
+ * @param {string} activityParentId parent id of edit activities or thread activities
880
+ * @param {string} activityType type of child activity to return
881
+ * The value is one of 'reply', 'edit', 'cardAction', 'reaction', 'reactionSummary', 'reactionSelfSummary'
882
+ * @param {QueryOptions} [query = {}] object containing query string values to be appended to the url
883
+ * @returns {Promise<Array>}
884
884
  */
885
885
  listChildActivitiesByParentId: function listChildActivitiesByParentId(conversationUrl, activityParentId, activityType) {
886
886
  var _arguments3 = arguments,
@@ -907,12 +907,12 @@ var Conversation = _webexCore.WebexPlugin.extend({
907
907
  }, _callee4);
908
908
  }))();
909
909
  },
910
- /**
911
- * Return an array of reactionSummary and reactionSelfSummary objects
912
- * @param {string} conversationUrl targeted conversation URL
913
- * @param {string} activityParentId parent id of reaction activities
914
- * @param {QueryOptions} query object representing query parameters to pass to convo endpoint
915
- * @returns {Promise<Array>}
910
+ /**
911
+ * Return an array of reactionSummary and reactionSelfSummary objects
912
+ * @param {string} conversationUrl targeted conversation URL
913
+ * @param {string} activityParentId parent id of reaction activities
914
+ * @param {QueryOptions} query object representing query parameters to pass to convo endpoint
915
+ * @returns {Promise<Array>}
916
916
  */
917
917
  getReactionSummaryByParentId: function getReactionSummaryByParentId(conversationUrl, activityParentId, query) {
918
918
  var _this15 = this;
@@ -941,10 +941,10 @@ var Conversation = _webexCore.WebexPlugin.extend({
941
941
  }, _callee5);
942
942
  }))();
943
943
  },
944
- /**
945
- * Lists activities in which the current user was mentioned
946
- * @param {Object} options
947
- * @returns {Promise<Array<Activity>>}
944
+ /**
945
+ * Lists activities in which the current user was mentioned
946
+ * @param {Object} options
947
+ * @returns {Promise<Array<Activity>>}
948
948
  */
949
949
  listMentions: function listMentions(options) {
950
950
  return this._list({
@@ -953,45 +953,45 @@ var Conversation = _webexCore.WebexPlugin.extend({
953
953
  qs: (0, _omit2.default)(options, 'mentions')
954
954
  });
955
955
  },
956
- /**
957
- * Mutes the mentions of a conversation
958
- * @param {Conversation~ConversationObject} conversation
959
- * @param {Conversation~ActivityObject} activity
960
- * @returns {Promise} Resolves with the created activity
956
+ /**
957
+ * Mutes the mentions of a conversation
958
+ * @param {Conversation~ConversationObject} conversation
959
+ * @param {Conversation~ActivityObject} activity
960
+ * @returns {Promise} Resolves with the created activity
961
961
  */
962
962
  muteMentions: function muteMentions(conversation, activity) {
963
963
  return this.tag(conversation, {
964
964
  tags: ['MENTION_NOTIFICATIONS_OFF']
965
965
  }, activity);
966
966
  },
967
- /**
968
- * Mutes the messages of a conversation
969
- * @param {Conversation~ConversationObject} conversation
970
- * @param {Conversation~ActivityObject} activity
971
- * @returns {Promise} Resolves with the created activity
967
+ /**
968
+ * Mutes the messages of a conversation
969
+ * @param {Conversation~ConversationObject} conversation
970
+ * @param {Conversation~ActivityObject} activity
971
+ * @returns {Promise} Resolves with the created activity
972
972
  */
973
973
  muteMessages: function muteMessages(conversation, activity) {
974
974
  return this.tag(conversation, {
975
975
  tags: ['MESSAGE_NOTIFICATIONS_OFF']
976
976
  }, activity);
977
977
  },
978
- /**
979
- * Starts ignoring conversation
980
- * @param {Conversation~ConversationObject} conversation
981
- * @param {Conversation~ActivityObject} activity
982
- * @returns {Promise} Resolves with the created activity
978
+ /**
979
+ * Starts ignoring conversation
980
+ * @param {Conversation~ConversationObject} conversation
981
+ * @param {Conversation~ActivityObject} activity
982
+ * @returns {Promise} Resolves with the created activity
983
983
  */
984
984
  ignore: function ignore(conversation, activity) {
985
985
  return this.tag(conversation, {
986
986
  tags: ['IGNORED']
987
987
  }, activity);
988
988
  },
989
- /**
990
- * @param {Object} conversation
991
- * @param {Object} inputs
992
- * @param {Object} parentActivity
993
- * @param {Object} activity
994
- * @returns {Promise}
989
+ /**
990
+ * @param {Object} conversation
991
+ * @param {Object} inputs
992
+ * @param {Object} parentActivity
993
+ * @param {Object} activity
994
+ * @returns {Promise}
995
995
  */
996
996
  cardAction: function cardAction(conversation, inputs, parentActivity) {
997
997
  var _this16 = this;
@@ -1013,15 +1013,15 @@ var Conversation = _webexCore.WebexPlugin.extend({
1013
1013
  return _this16.submit(a);
1014
1014
  });
1015
1015
  },
1016
- /**
1017
- * Posts a message to a conversation
1018
- * @param {Object} conversation
1019
- * @param {Object|string} message if string, treated as plaintext; if object,
1020
- * assumed to be object property of `post` activity
1021
- * @param {Object} activity Reference to the activity that will eventually be
1022
- * posted. Use this to (a) pass in e.g. clientTempId and (b) render a
1023
- * provisional activity
1024
- * @returns {Promise<Activity>}
1016
+ /**
1017
+ * Posts a message to a conversation
1018
+ * @param {Object} conversation
1019
+ * @param {Object|string} message if string, treated as plaintext; if object,
1020
+ * assumed to be object property of `post` activity
1021
+ * @param {Object} activity Reference to the activity that will eventually be
1022
+ * posted. Use this to (a) pass in e.g. clientTempId and (b) render a
1023
+ * provisional activity
1024
+ * @returns {Promise<Activity>}
1025
1025
  */
1026
1026
  post: function post(conversation, message, activity) {
1027
1027
  var _this17 = this;
@@ -1103,10 +1103,10 @@ var Conversation = _webexCore.WebexPlugin.extend({
1103
1103
  return act;
1104
1104
  });
1105
1105
  },
1106
- /**
1107
- * Get a subset of threads for a user.
1108
- * @param {Object} options
1109
- * @returns {Promise<Array<Activity>>}
1106
+ /**
1107
+ * Get a subset of threads for a user.
1108
+ * @param {Object} options
1109
+ * @returns {Promise<Array<Activity>>}
1110
1110
  */
1111
1111
  listThreads: function listThreads(options) {
1112
1112
  var _this19 = this;
@@ -1126,42 +1126,42 @@ var Conversation = _webexCore.WebexPlugin.extend({
1126
1126
  }, _callee6);
1127
1127
  }))();
1128
1128
  },
1129
- /**
1130
- * Handles incoming conversation.activity mercury messages
1131
- * @param {Event} event
1132
- * @returns {Promise}
1129
+ /**
1130
+ * Handles incoming conversation.activity mercury messages
1131
+ * @param {Event} event
1132
+ * @returns {Promise}
1133
1133
  */
1134
1134
  processActivityEvent: function processActivityEvent(event) {
1135
1135
  return this.webex.transform('inbound', event).then(function () {
1136
1136
  return event;
1137
1137
  });
1138
1138
  },
1139
- /**
1140
- * Handles incoming conversation.inmeetingchat.activity mercury messages
1141
- * @param {Event} event
1142
- * @returns {Promise}
1139
+ /**
1140
+ * Handles incoming conversation.inmeetingchat.activity mercury messages
1141
+ * @param {Event} event
1142
+ * @returns {Promise}
1143
1143
  */
1144
1144
  processInmeetingchatEvent: function processInmeetingchatEvent(event) {
1145
1145
  return this.webex.transform('inbound', event).then(function () {
1146
1146
  return event;
1147
1147
  });
1148
1148
  },
1149
- /**
1150
- * Removes all mute-related tags
1151
- * @param {Conversation~ConversationObject} conversation
1152
- * @param {Conversation~ActivityObject} activity
1153
- * @returns {Promise} Resolves with the created activity
1149
+ /**
1150
+ * Removes all mute-related tags
1151
+ * @param {Conversation~ConversationObject} conversation
1152
+ * @param {Conversation~ActivityObject} activity
1153
+ * @returns {Promise} Resolves with the created activity
1154
1154
  */
1155
1155
  removeAllMuteTags: function removeAllMuteTags(conversation, activity) {
1156
1156
  return this.untag(conversation, {
1157
1157
  tags: ['MENTION_NOTIFICATIONS_OFF', 'MENTION_NOTIFICATIONS_ON', 'MESSAGE_NOTIFICATIONS_OFF', 'MESSAGE_NOTIFICATIONS_ON']
1158
1158
  }, activity);
1159
1159
  },
1160
- /**
1161
- * Creates a ShareActivty for the specified conversation
1162
- * @param {Object} conversation
1163
- * @param {Object} activity
1164
- * @returns {ShareActivty}
1160
+ /**
1161
+ * Creates a ShareActivty for the specified conversation
1162
+ * @param {Object} conversation
1163
+ * @param {Object} activity
1164
+ * @returns {ShareActivty}
1165
1165
  */
1166
1166
  makeShare: function makeShare(conversation, activity) {
1167
1167
  // if we pass activity as null then it does not take care of the
@@ -1171,11 +1171,11 @@ var Conversation = _webexCore.WebexPlugin.extend({
1171
1171
  // back properly oriented from the server since the clientTempId is missing
1172
1172
  return _shareActivity.default.create(conversation, activity, this.webex);
1173
1173
  },
1174
- /**
1175
- * Assigns an avatar to a room
1176
- * @param {Object} conversation
1177
- * @param {File} avatar
1178
- * @returns {Promise<Activity>}
1174
+ /**
1175
+ * Assigns an avatar to a room
1176
+ * @param {Object} conversation
1177
+ * @param {File} avatar
1178
+ * @returns {Promise<Activity>}
1179
1179
  */
1180
1180
  assign: function assign(conversation, avatar) {
1181
1181
  var _this20 = this;
@@ -1202,15 +1202,15 @@ var Conversation = _webexCore.WebexPlugin.extend({
1202
1202
  return _this20.submit(a);
1203
1203
  });
1204
1204
  },
1205
- /**
1206
- * Get url from convo object. If there isn't one, get it from the cache
1207
- *
1208
- * @param {String} url The location of the conversation
1209
- * @param {UUID} id If there is no url, fall back to id to lookup in cache or with cluster
1210
- * @param {String} cluster Used with id to lookup url
1211
- * @param {UUID} generalConversationUuid If this is a team, the id of the general conversation
1212
- * @param {Object} conversations If this is a team, the list of conversations in the team
1213
- * @returns {String} url for the specific convo
1205
+ /**
1206
+ * Get url from convo object. If there isn't one, get it from the cache
1207
+ *
1208
+ * @param {String} url The location of the conversation
1209
+ * @param {UUID} id If there is no url, fall back to id to lookup in cache or with cluster
1210
+ * @param {String} cluster Used with id to lookup url
1211
+ * @param {UUID} generalConversationUuid If this is a team, the id of the general conversation
1212
+ * @param {Object} conversations If this is a team, the list of conversations in the team
1213
+ * @returns {String} url for the specific convo
1214
1214
  */
1215
1215
  getConvoUrl: function getConvoUrl(_ref3) {
1216
1216
  var id = _ref3.id,
@@ -1246,13 +1246,13 @@ var Conversation = _webexCore.WebexPlugin.extend({
1246
1246
  }
1247
1247
  throw Error('The space needs a `url` property');
1248
1248
  },
1249
- /**
1250
- * Sets the typing status of the current user in a conversation
1251
- *
1252
- * @param {Object} conversation
1253
- * @param {Object} options
1254
- * @param {boolean} options.typing
1255
- * @returns {Promise}
1249
+ /**
1250
+ * Sets the typing status of the current user in a conversation
1251
+ *
1252
+ * @param {Object} conversation
1253
+ * @param {Object} options
1254
+ * @param {boolean} options.typing
1255
+ * @returns {Promise}
1256
1256
  */
1257
1257
  updateTypingStatus: function updateTypingStatus(conversation, options) {
1258
1258
  if (!conversation.id) {
@@ -1280,11 +1280,11 @@ var Conversation = _webexCore.WebexPlugin.extend({
1280
1280
  };
1281
1281
  return this.request(params);
1282
1282
  },
1283
- /**
1284
- * Shares files to the specified conversation
1285
- * @param {Object} conversation
1286
- * @param {ShareActivity|Array<File>} activity
1287
- * @returns {Promise<Activity>}
1283
+ /**
1284
+ * Shares files to the specified conversation
1285
+ * @param {Object} conversation
1286
+ * @param {ShareActivity|Array<File>} activity
1287
+ * @returns {Promise<Activity>}
1288
1288
  */
1289
1289
  share: function share(conversation, activity) {
1290
1290
  var _this21 = this;
@@ -1307,11 +1307,11 @@ var Conversation = _webexCore.WebexPlugin.extend({
1307
1307
  return _this21.submit(a);
1308
1308
  });
1309
1309
  },
1310
- /**
1311
- * Submits an activity to the conversation service
1312
- * @param {Object} activity
1313
- * @param {String} [endpoint] endpoint to submit activity. If empty, find in activity
1314
- * @returns {Promise<Activity>}
1310
+ /**
1311
+ * Submits an activity to the conversation service
1312
+ * @param {Object} activity
1313
+ * @param {String} [endpoint] endpoint to submit activity. If empty, find in activity
1314
+ * @returns {Promise<Activity>}
1315
1315
  */
1316
1316
  submit: function submit(activity, endpoint) {
1317
1317
  var _this22 = this;
@@ -1331,10 +1331,10 @@ var Conversation = _webexCore.WebexPlugin.extend({
1331
1331
  async: false
1332
1332
  });
1333
1333
  }
1334
- /**
1335
- * helper to cloneDeepWith for copying instance function
1336
- * @param {Object|String|Symbol|Array|Date} value (recursive value to clone from params)
1337
- * @returns {Object|null}
1334
+ /**
1335
+ * helper to cloneDeepWith for copying instance function
1336
+ * @param {Object|String|Symbol|Array|Date} value (recursive value to clone from params)
1337
+ * @returns {Object|null}
1338
1338
  */
1339
1339
  // eslint-disable-next-line consistent-return
1340
1340
  var customActivityCopy = function customActivityCopy(value) {
@@ -1372,11 +1372,11 @@ var Conversation = _webexCore.WebexPlugin.extend({
1372
1372
  }
1373
1373
  });
1374
1374
  },
1375
- /**
1376
- * Remove the avatar from a room
1377
- * @param {Conversation~ConversationObject} conversation
1378
- * @param {Conversation~ActivityObject} activity
1379
- * @returns {Promise}
1375
+ /**
1376
+ * Remove the avatar from a room
1377
+ * @param {Conversation~ConversationObject} conversation
1378
+ * @param {Conversation~ActivityObject} activity
1379
+ * @returns {Promise}
1380
1380
  */
1381
1381
  unassign: function unassign(conversation, activity) {
1382
1382
  var _this23 = this;
@@ -1396,45 +1396,45 @@ var Conversation = _webexCore.WebexPlugin.extend({
1396
1396
  return _this23.submit(a);
1397
1397
  });
1398
1398
  },
1399
- /**
1400
- * Mutes the mentions of a conversation
1401
- * @param {Conversation~ConversationObject} conversation
1402
- * @param {Conversation~ActivityObject} activity
1403
- * @returns {Promise} Resolves with the created activity
1399
+ /**
1400
+ * Mutes the mentions of a conversation
1401
+ * @param {Conversation~ConversationObject} conversation
1402
+ * @param {Conversation~ActivityObject} activity
1403
+ * @returns {Promise} Resolves with the created activity
1404
1404
  */
1405
1405
  unmuteMentions: function unmuteMentions(conversation, activity) {
1406
1406
  return this.tag(conversation, {
1407
1407
  tags: ['MENTION_NOTIFICATIONS_ON']
1408
1408
  }, activity);
1409
1409
  },
1410
- /**
1411
- * Mutes the messages of a conversation
1412
- * @param {Conversation~ConversationObject} conversation
1413
- * @param {Conversation~ActivityObject} activity
1414
- * @returns {Promise} Resolves with the created activity
1410
+ /**
1411
+ * Mutes the messages of a conversation
1412
+ * @param {Conversation~ConversationObject} conversation
1413
+ * @param {Conversation~ActivityObject} activity
1414
+ * @returns {Promise} Resolves with the created activity
1415
1415
  */
1416
1416
  unmuteMessages: function unmuteMessages(conversation, activity) {
1417
1417
  return this.tag(conversation, {
1418
1418
  tags: ['MESSAGE_NOTIFICATIONS_ON']
1419
1419
  }, activity);
1420
1420
  },
1421
- /**
1422
- * Stops ignoring conversation
1423
- * @param {Conversation~ConversationObject} conversation
1424
- * @param {Conversation~ActivityObject} activity
1425
- * @returns {Promise} Resolves with the created activity
1421
+ /**
1422
+ * Stops ignoring conversation
1423
+ * @param {Conversation~ConversationObject} conversation
1424
+ * @param {Conversation~ActivityObject} activity
1425
+ * @returns {Promise} Resolves with the created activity
1426
1426
  */
1427
1427
  unignore: function unignore(conversation, activity) {
1428
1428
  return this.untag(conversation, {
1429
1429
  tags: ['IGNORED']
1430
1430
  }, activity);
1431
1431
  },
1432
- /**
1433
- * Update an existing activity
1434
- * @param {Object} conversation
1435
- * @param {Object} object
1436
- * @param {Object} activity
1437
- * @returns {Promise}
1432
+ /**
1433
+ * Update an existing activity
1434
+ * @param {Object} conversation
1435
+ * @param {Object} object
1436
+ * @param {Object} activity
1437
+ * @returns {Promise}
1438
1438
  */
1439
1439
  update: function update(conversation, object, activity) {
1440
1440
  var _this24 = this;
@@ -1452,14 +1452,14 @@ var Conversation = _webexCore.WebexPlugin.extend({
1452
1452
  return _this24.submit(a);
1453
1453
  });
1454
1454
  },
1455
- /**
1456
- * Sets a new key for the conversation
1457
- * @param {Object} conversation
1458
- * @param {Key|string} key (optional)
1459
- * @param {Object} activity Reference to the activity that will eventually be
1460
- * posted. Use this to (a) pass in e.g. clientTempId and (b) render a
1461
- * provisional activity
1462
- * @returns {Promise<Activity>}
1455
+ /**
1456
+ * Sets a new key for the conversation
1457
+ * @param {Object} conversation
1458
+ * @param {Key|string} key (optional)
1459
+ * @param {Object} activity Reference to the activity that will eventually be
1460
+ * posted. Use this to (a) pass in e.g. clientTempId and (b) render a
1461
+ * provisional activity
1462
+ * @returns {Promise<Activity>}
1463
1463
  */
1464
1464
  updateKey: function updateKey(conversation, key, activity) {
1465
1465
  var _this25 = this;
@@ -1473,15 +1473,15 @@ var Conversation = _webexCore.WebexPlugin.extend({
1473
1473
  return _this25._updateKey(c, key, activity);
1474
1474
  });
1475
1475
  },
1476
- /**
1477
- * Sets a new key for the conversation
1478
- * @param {Object} conversation
1479
- * @param {Key|string} key (optional)
1480
- * @param {Object} activity Reference to the activity that will eventually be
1481
- * posted. Use this to (a) pass in e.g. clientTempId and (b) render a
1482
- * provisional activity
1483
- * @private
1484
- * @returns {Promise<Activity>}
1476
+ /**
1477
+ * Sets a new key for the conversation
1478
+ * @param {Object} conversation
1479
+ * @param {Key|string} key (optional)
1480
+ * @param {Object} activity Reference to the activity that will eventually be
1481
+ * posted. Use this to (a) pass in e.g. clientTempId and (b) render a
1482
+ * provisional activity
1483
+ * @private
1484
+ * @returns {Promise<Activity>}
1485
1485
  */
1486
1486
  _updateKey: function _updateKey(conversation, key, activity) {
1487
1487
  var _this26 = this;
@@ -1523,11 +1523,11 @@ var Conversation = _webexCore.WebexPlugin.extend({
1523
1523
  });
1524
1524
  });
1525
1525
  },
1526
- /**
1527
- * @param {Object} payload
1528
- * @param {Object} options
1529
- * @private
1530
- * @returns {Promise<Activity>}
1526
+ /**
1527
+ * @param {Object} payload
1528
+ * @param {Object} options
1529
+ * @private
1530
+ * @returns {Promise<Activity>}
1531
1531
  */
1532
1532
  _create: function _create(payload) {
1533
1533
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -1543,30 +1543,30 @@ var Conversation = _webexCore.WebexPlugin.extend({
1543
1543
  return res.body;
1544
1544
  });
1545
1545
  },
1546
- /**
1547
- * @param {Object} params
1548
- * @param {Object} options
1549
- * @private
1550
- * @returns {Promise}
1546
+ /**
1547
+ * @param {Object} params
1548
+ * @param {Object} options
1549
+ * @private
1550
+ * @returns {Promise}
1551
1551
  */
1552
1552
  _createGrouped: function _createGrouped(params, options) {
1553
1553
  return this._create(this._prepareConversationForCreation(params), options);
1554
1554
  },
1555
- /**
1556
- * @param {Object} params
1557
- * @param {Object} options
1558
- * @private
1559
- * @returns {Promise}
1555
+ /**
1556
+ * @param {Object} params
1557
+ * @param {Object} options
1558
+ * @private
1559
+ * @returns {Promise}
1560
1560
  */
1561
1561
  _createOneOnOne: function _createOneOnOne(params) {
1562
1562
  var payload = this._prepareConversationForCreation(params);
1563
1563
  payload.tags = ['ONE_ON_ONE'];
1564
1564
  return this._create(payload);
1565
1565
  },
1566
- /**
1567
- * Get the current conversation url.
1568
- *
1569
- * @returns {Promise<string>} - conversation url
1566
+ /**
1567
+ * Get the current conversation url.
1568
+ *
1569
+ * @returns {Promise<string>} - conversation url
1570
1570
  */
1571
1571
  getConversationUrl: function getConversationUrl() {
1572
1572
  var _this27 = this;
@@ -1588,10 +1588,10 @@ var Conversation = _webexCore.WebexPlugin.extend({
1588
1588
  return _promise.default.reject(error);
1589
1589
  });
1590
1590
  },
1591
- /**
1592
- * @param {Object} conversation
1593
- * @private
1594
- * @returns {Promise}
1591
+ /**
1592
+ * @param {Object} conversation
1593
+ * @private
1594
+ * @returns {Promise}
1595
1595
  */
1596
1596
  _inferConversationUrl: function _inferConversationUrl(conversation) {
1597
1597
  var _this28 = this;
@@ -1620,12 +1620,12 @@ var Conversation = _webexCore.WebexPlugin.extend({
1620
1620
  }
1621
1621
  return _promise.default.resolve(conversation);
1622
1622
  },
1623
- /**
1624
- * @param {Object} options
1625
- * @param {String} options.conversationUrl URL to the conversation
1626
- * @param {String} options.resource The URL resource to hit for a list of objects
1627
- * @private
1628
- * @returns {Promise<Array<Activity>>}
1623
+ /**
1624
+ * @param {Object} options
1625
+ * @param {String} options.conversationUrl URL to the conversation
1626
+ * @param {String} options.resource The URL resource to hit for a list of objects
1627
+ * @private
1628
+ * @returns {Promise<Array<Activity>>}
1629
1629
  */
1630
1630
  _listActivities: function _listActivities(options) {
1631
1631
  var id = options.conversationId;
@@ -1639,29 +1639,29 @@ var Conversation = _webexCore.WebexPlugin.extend({
1639
1639
  url: "".concat(url, "/").concat(resource)
1640
1640
  });
1641
1641
  },
1642
- /**
1643
- * common interface for facade of generator functions
1644
- * @typedef {object} IGeneratorResponse
1645
- * @param {boolean} done whether there is more to fetch
1646
- * @param {any} value the value yielded or returned by generator
1647
- */
1648
- /**
1649
- * @param {object} options
1650
- * @param {string} options.conversationId
1651
- * @param {string} options.conversationUrl,
1652
- * @param {boolean} options.includeChildren, If set to true, parent activities will be enhanced with child objects
1653
- * @param {number} options.minActivities how many activities to return in first batch
1654
- * @param {?string} [options.queryType] one of older, newer, mid. defines which direction to fetch
1655
- * @param {?object} [options.search] server activity to use as search middle date
1656
- *
1657
- * @returns {object}
1658
- * returns three functions:
1659
- *
1660
- * getOlder - gets older activities than oldest fetched
1661
- *
1662
- * getNewer - gets newer activities than newest fetched
1663
- *
1664
- * jumpToActivity - gets searched-for activity and surrounding activities
1642
+ /**
1643
+ * common interface for facade of generator functions
1644
+ * @typedef {object} IGeneratorResponse
1645
+ * @param {boolean} done whether there is more to fetch
1646
+ * @param {any} value the value yielded or returned by generator
1647
+ */
1648
+ /**
1649
+ * @param {object} options
1650
+ * @param {string} options.conversationId
1651
+ * @param {string} options.conversationUrl,
1652
+ * @param {boolean} options.includeChildren, If set to true, parent activities will be enhanced with child objects
1653
+ * @param {number} options.minActivities how many activities to return in first batch
1654
+ * @param {?string} [options.queryType] one of older, newer, mid. defines which direction to fetch
1655
+ * @param {?object} [options.search] server activity to use as search middle date
1656
+ *
1657
+ * @returns {object}
1658
+ * returns three functions:
1659
+ *
1660
+ * getOlder - gets older activities than oldest fetched
1661
+ *
1662
+ * getNewer - gets newer activities than newest fetched
1663
+ *
1664
+ * jumpToActivity - gets searched-for activity and surrounding activities
1665
1665
  */
1666
1666
  listActivitiesThreadOrdered: function listActivitiesThreadOrdered(options) {
1667
1667
  var _this29 = this;
@@ -1682,12 +1682,12 @@ var Conversation = _webexCore.WebexPlugin.extend({
1682
1682
  });
1683
1683
  var threadOrderer = this._listActivitiesThreadOrdered(baseOptions);
1684
1684
 
1685
- /**
1686
- * gets queried activity and surrounding activities
1687
- * calling this function creates a new generator instance, losing the previous instance's internal state
1688
- * this ensures that jumping to older and newer activities is relative to a single set of timestamps, not many
1689
- * @param {object} searchObject activity object from convo
1690
- * @returns {IGeneratorResponse}
1685
+ /**
1686
+ * gets queried activity and surrounding activities
1687
+ * calling this function creates a new generator instance, losing the previous instance's internal state
1688
+ * this ensures that jumping to older and newer activities is relative to a single set of timestamps, not many
1689
+ * @param {object} searchObject activity object from convo
1690
+ * @returns {IGeneratorResponse}
1691
1691
  */
1692
1692
  var jumpToActivity = /*#__PURE__*/function () {
1693
1693
  var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7(searchObject) {
@@ -1734,9 +1734,9 @@ var Conversation = _webexCore.WebexPlugin.extend({
1734
1734
  };
1735
1735
  }();
1736
1736
 
1737
- /**
1738
- * gets older activities than oldest fetched
1739
- * @returns {IGeneratorResponse}
1737
+ /**
1738
+ * gets older activities than oldest fetched
1739
+ * @returns {IGeneratorResponse}
1740
1740
  */
1741
1741
  var getOlder = /*#__PURE__*/function () {
1742
1742
  var _ref5 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
@@ -1767,9 +1767,9 @@ var Conversation = _webexCore.WebexPlugin.extend({
1767
1767
  };
1768
1768
  }();
1769
1769
 
1770
- /**
1771
- * gets newer activities than newest fetched
1772
- * @returns {IGeneratorResponse}
1770
+ /**
1771
+ * gets newer activities than newest fetched
1772
+ * @returns {IGeneratorResponse}
1773
1773
  */
1774
1774
  var getNewer = /*#__PURE__*/function () {
1775
1775
  var _ref6 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9() {
@@ -1805,33 +1805,33 @@ var Conversation = _webexCore.WebexPlugin.extend({
1805
1805
  getOlder: getOlder
1806
1806
  };
1807
1807
  },
1808
- /**
1809
- * Represents reactions to messages
1810
- * @typedef {object} Reaction
1811
- * @property {object} activity reaction2summary server activity object
1812
- */
1813
- /**
1814
- * Represents a root (parent, with or without children) activity, along with any replies and reactions
1815
- * @typedef {object} Activity
1816
- * @property {object} activity server activity object
1817
- * @property {Reaction} reactions
1818
- * @property {Reaction} reactionSelf
1819
- */
1820
- /**
1821
- * @generator
1822
- * @method
1823
- * @async
1824
- * @private
1825
- * @param {object} options
1826
- * @param {string} options.url
1827
- * @param {boolean} options.includeChildren, If set to true, parent activities will be enhanced with child objects
1828
- * @param {string} [options.minActivities] how many activities to return in first batch
1829
- * @param {string} [options.queryType] one of older, newer, mid. defines which direction to fetch
1830
- * @param {object} [options.search] server activity to use as search middle date
1831
- *
1832
- * @yields {Activity[]}
1833
- *
1834
- * @returns {void}
1808
+ /**
1809
+ * Represents reactions to messages
1810
+ * @typedef {object} Reaction
1811
+ * @property {object} activity reaction2summary server activity object
1812
+ */
1813
+ /**
1814
+ * Represents a root (parent, with or without children) activity, along with any replies and reactions
1815
+ * @typedef {object} Activity
1816
+ * @property {object} activity server activity object
1817
+ * @property {Reaction} reactions
1818
+ * @property {Reaction} reactionSelf
1819
+ */
1820
+ /**
1821
+ * @generator
1822
+ * @method
1823
+ * @async
1824
+ * @private
1825
+ * @param {object} options
1826
+ * @param {string} options.url
1827
+ * @param {boolean} options.includeChildren, If set to true, parent activities will be enhanced with child objects
1828
+ * @param {string} [options.minActivities] how many activities to return in first batch
1829
+ * @param {string} [options.queryType] one of older, newer, mid. defines which direction to fetch
1830
+ * @param {object} [options.search] server activity to use as search middle date
1831
+ *
1832
+ * @yields {Activity[]}
1833
+ *
1834
+ * @returns {void}
1835
1835
  */
1836
1836
  _listActivitiesThreadOrdered: function _listActivitiesThreadOrdered() {
1837
1837
  var _this = this;
@@ -1958,10 +1958,10 @@ var Conversation = _webexCore.WebexPlugin.extend({
1958
1958
  handler = getQueryResponseHandler(queryType);
1959
1959
  handler(allBatchActivities);
1960
1960
 
1961
- /*
1962
- next we must selectively fetch the children of each of the parents to ensure completeness
1963
- do this by checking the hash for each of the above parent IDs
1964
- fetch children when we have a parent whose ID is represented in the parent ID lists
1961
+ /*
1962
+ next we must selectively fetch the children of each of the parents to ensure completeness
1963
+ do this by checking the hash for each of the above parent IDs
1964
+ fetch children when we have a parent whose ID is represented in the parent ID lists
1965
1965
  */
1966
1966
  _parents$reply = parents.reply, replyIds = _parents$reply === void 0 ? [] : _parents$reply, _parents$edit = parents.edit, editIds = _parents$edit === void 0 ? [] : _parents$edit, _parents$reaction = parents.reaction, reactionIds = _parents$reaction === void 0 ? [] : _parents$reaction; // if no parent IDs returned, do nothing
1967
1967
  if (!(replyIds.length || editIds.length || reactionIds.length)) {
@@ -2223,29 +2223,29 @@ var Conversation = _webexCore.WebexPlugin.extend({
2223
2223
  }, _callee10);
2224
2224
  }))();
2225
2225
  },
2226
- /**
2227
- * @typedef {object} EditActivity
2228
- * @property {object} editParent
2229
- *
2230
- * @typedef {object} ReplyActivity
2231
- * @property {object} replyParent
2232
- *
2233
- * @typedef {object} EditedReplyActivity
2234
- * @property {object} replyParent
2235
- * @property {object} editParent
2236
- *
2237
- * @typedef {EditActivity | ReplyActivity | EditedReplyActivity} ParsedServerActivity
2238
- */
2239
- /**
2240
- * hashmap of server activities, keyed by id
2241
- * @typedef {object} ActivityHash
2242
- * @property {Object}
2243
- */
2244
- /**
2245
- * extends a given server object with fields that point to their parent activities from the hashmap passed in
2246
- * @param {object} activity server activity
2247
- * @param {ActivityHash} allActivitiesHash hashmap of all server activities caller would like to pass in
2248
- * @returns {ParsedServerActivity} server activity extended with edit and reply parent fields
2226
+ /**
2227
+ * @typedef {object} EditActivity
2228
+ * @property {object} editParent
2229
+ *
2230
+ * @typedef {object} ReplyActivity
2231
+ * @property {object} replyParent
2232
+ *
2233
+ * @typedef {object} EditedReplyActivity
2234
+ * @property {object} replyParent
2235
+ * @property {object} editParent
2236
+ *
2237
+ * @typedef {EditActivity | ReplyActivity | EditedReplyActivity} ParsedServerActivity
2238
+ */
2239
+ /**
2240
+ * hashmap of server activities, keyed by id
2241
+ * @typedef {object} ActivityHash
2242
+ * @property {Object}
2243
+ */
2244
+ /**
2245
+ * extends a given server object with fields that point to their parent activities from the hashmap passed in
2246
+ * @param {object} activity server activity
2247
+ * @param {ActivityHash} allActivitiesHash hashmap of all server activities caller would like to pass in
2248
+ * @returns {ParsedServerActivity} server activity extended with edit and reply parent fields
2249
2249
  */
2250
2250
  _createParsedServerActivity: function _createParsedServerActivity(activity) {
2251
2251
  var allActivitiesHash = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -2279,10 +2279,10 @@ var Conversation = _webexCore.WebexPlugin.extend({
2279
2279
  }
2280
2280
  }
2281
2281
  },
2282
- /**
2283
- * @param {Object} options
2284
- * @private
2285
- * @returns {Promise<Array<Conversation>>}
2282
+ /**
2283
+ * @param {Object} options
2284
+ * @private
2285
+ * @returns {Promise<Array<Conversation>>}
2286
2286
  */
2287
2287
  _list: function _list(options) {
2288
2288
  var _this30 = this;
@@ -2377,11 +2377,11 @@ var Conversation = _webexCore.WebexPlugin.extend({
2377
2377
  }, _callee11);
2378
2378
  }))();
2379
2379
  },
2380
- /**
2381
- * @param {Object} params
2382
- * @param {Object} options
2383
- * @private
2384
- * @returns {Promise<Conversation>}
2380
+ /**
2381
+ * @param {Object} params
2382
+ * @param {Object} options
2383
+ * @private
2384
+ * @returns {Promise<Conversation>}
2385
2385
  */
2386
2386
  _maybeCreateOneOnOneThenPost: function _maybeCreateOneOnOneThenPost(params, options) {
2387
2387
  var _this31 = this;
@@ -2410,10 +2410,10 @@ var Conversation = _webexCore.WebexPlugin.extend({
2410
2410
  return _this31._createOneOnOne(params);
2411
2411
  });
2412
2412
  },
2413
- /**
2414
- * @param {Object} params
2415
- * @private
2416
- * @returns {Object}
2413
+ /**
2414
+ * @param {Object} params
2415
+ * @private
2416
+ * @returns {Object}
2417
2417
  */
2418
2418
  _prepareConversationForCreation: function _prepareConversationForCreation(params) {
2419
2419
  var _this32 = this;
@@ -2462,10 +2462,10 @@ var Conversation = _webexCore.WebexPlugin.extend({
2462
2462
  }
2463
2463
  return payload;
2464
2464
  },
2465
- /**
2466
- * @param {Object} conversation
2467
- * @private
2468
- * @returns {Promise}
2465
+ /**
2466
+ * @param {Object} conversation
2467
+ * @private
2468
+ * @returns {Promise}
2469
2469
  */
2470
2470
  _recordUUIDs: function _recordUUIDs(conversation) {
2471
2471
  var _this33 = this;
@@ -2483,7 +2483,7 @@ var Conversation = _webexCore.WebexPlugin.extend({
2483
2483
  });
2484
2484
  }));
2485
2485
  },
2486
- version: "2.59.2"
2486
+ version: "2.59.0"
2487
2487
  });
2488
2488
  ['favorite', 'hide', 'lock', 'mute', 'unfavorite', 'unhide', 'unlock', 'unmute'].forEach(function (verb) {
2489
2489
  Conversation.prototype[verb] = function submitSimpleActivity(conversation, activity) {
@@ -2524,12 +2524,12 @@ var Conversation = _webexCore.WebexPlugin.extend({
2524
2524
  };
2525
2525
  });
2526
2526
 
2527
- /**
2528
- * Sets/unsets space property for convo
2529
- * @param {Object} conversation
2530
- * @param {string} tag
2531
- * @param {Activity} activity
2532
- * @returns {Promise<Activity>}
2527
+ /**
2528
+ * Sets/unsets space property for convo
2529
+ * @param {Object} conversation
2530
+ * @param {string} tag
2531
+ * @param {Activity} activity
2532
+ * @returns {Promise<Activity>}
2533
2533
  */
2534
2534
  ['setSpaceProperty', 'unsetSpaceProperty'].forEach(function (fnName) {
2535
2535
  var verb = fnName.startsWith('set') ? 'set' : 'unset';