@twilio/conversations 2.2.0-rc.13 → 2.2.0-rc.15

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.
@@ -34850,7 +34850,7 @@ this.Twilio.Conversations = (function (exports) {
34850
34850
  return Network;
34851
34851
  }();
34852
34852
 
34853
- var version = "0.6.0-rc.10";
34853
+ var version = "0.6.1";
34854
34854
 
34855
34855
  var _class;
34856
34856
 
@@ -36439,7 +36439,7 @@ this.Twilio.Conversations = (function (exports) {
36439
36439
  * Contains aggregated information about delivery statuses of a message across all participants
36440
36440
  * of a conversation.
36441
36441
  *
36442
- * At any moment during the message delivery to a participant, the message can have zero or more of following
36442
+ * At any moment during the message delivery to a participant, the message can have zero or more of the following
36443
36443
  * delivery statuses:
36444
36444
  * * Message is considered as **sent** to a participant if the nearest upstream carrier accepted the message.
36445
36445
  * * Message is considered as **delivered** to a participant if Twilio has received confirmation of message
@@ -36852,14 +36852,15 @@ this.Twilio.Conversations = (function (exports) {
36852
36852
  return this.state.dateUpdated;
36853
36853
  }
36854
36854
  /**
36855
- * Index of the message in the conversation's messages list.
36856
- * By design of the Conversations system, the message indices may have arbitrary gaps between them,
36855
+ * Index of this message in the conversation's list of messages.
36856
+ *
36857
+ * By design, the message indices may have arbitrary gaps between them,
36857
36858
  * that does not necessarily mean they were deleted or otherwise modified - just that
36858
36859
  * messages may have some non-contiguous indices even if they are being sent immediately one after another.
36859
36860
  *
36860
36861
  * Trying to use indices for some calculations is going to be unreliable.
36861
36862
  *
36862
- * To calculate the number of unread messages it is better to use the read horizon API.
36863
+ * To calculate the number of unread messages, it is better to use the Read Horizon API.
36863
36864
  * See {@link Conversation.getUnreadMessagesCount} for details.
36864
36865
  */
36865
36866
 
@@ -37174,32 +37175,27 @@ this.Twilio.Conversations = (function (exports) {
37174
37175
 
37175
37176
  case 2:
37176
37177
  paginator = _context2.sent;
37177
- detailedDeliveryReceipts = [];
37178
+ detailedDeliveryReceipts = paginator.items;
37178
37179
 
37179
37180
  case 4:
37180
-
37181
- detailedDeliveryReceipts = [].concat(_toConsumableArray(detailedDeliveryReceipts), _toConsumableArray(paginator.items));
37182
-
37183
- if (paginator.hasNextPage) {
37184
- _context2.next = 8;
37181
+ if (!paginator.hasNextPage) {
37182
+ _context2.next = 11;
37185
37183
  break;
37186
37184
  }
37187
37185
 
37188
- return _context2.abrupt("break", 13);
37189
-
37190
- case 8:
37191
- _context2.next = 10;
37186
+ _context2.next = 7;
37192
37187
  return paginator.nextPage();
37193
37188
 
37194
- case 10:
37189
+ case 7:
37195
37190
  paginator = _context2.sent;
37191
+ detailedDeliveryReceipts = [].concat(_toConsumableArray(detailedDeliveryReceipts), _toConsumableArray(paginator.items));
37196
37192
  _context2.next = 4;
37197
37193
  break;
37198
37194
 
37199
- case 13:
37195
+ case 11:
37200
37196
  return _context2.abrupt("return", detailedDeliveryReceipts);
37201
37197
 
37202
- case 14:
37198
+ case 12:
37203
37199
  case "end":
37204
37200
  return _context2.stop();
37205
37201
  }
@@ -39120,7 +39116,7 @@ this.Twilio.Conversations = (function (exports) {
39120
39116
  return getMessagesCount;
39121
39117
  }()
39122
39118
  /**
39123
- * Get unread messages count for the user if they are a participant of this
39119
+ * Get count of unread messages for the user if they are a participant of this
39124
39120
  * conversation. Rejects if the user is not a participant of the conversation.
39125
39121
  *
39126
39122
  * Use this method to obtain the number of unread messages together with
@@ -39128,12 +39124,19 @@ this.Twilio.Conversations = (function (exports) {
39128
39124
  * message indices which may have gaps. See {@link Message.index} for details.
39129
39125
  *
39130
39126
  * This method is semi-realtime. This means that this data will be eventually
39131
- * correct, but will also be possibly incorrect for a few seconds. The
39127
+ * correct, but it will also be possibly incorrect for a few seconds. The
39132
39128
  * Conversations system does not provide real time events for counter values
39133
39129
  * changes.
39134
39130
  *
39135
39131
  * This is useful for any UI badges, but it is not recommended to build any
39136
39132
  * core application logic based on these counters being accurate in real time.
39133
+ *
39134
+ * If the read horizon is not set, this function will return null. This could mean
39135
+ * that all messages in the conversation are unread, or that the read horizon system
39136
+ * is not being used. How to interpret this `null` value is up to the customer application.
39137
+ *
39138
+ * @return Number of unread messages based on the current read horizon set for
39139
+ * the user or `null` if the read horizon is not set.
39137
39140
  */
39138
39141
 
39139
39142
  }, {
@@ -39406,7 +39409,7 @@ this.Twilio.Conversations = (function (exports) {
39406
39409
  }()
39407
39410
  /**
39408
39411
  * Set all messages in the conversation unread.
39409
- * @return Resulting unread messages count in the conversation.
39412
+ * @returns New count of unread messages after this update.
39410
39413
  */
39411
39414
 
39412
39415
  }, {
@@ -39564,7 +39567,7 @@ this.Twilio.Conversations = (function (exports) {
39564
39567
  * Set the last read message index to the current read horizon.
39565
39568
  * @param index Message index to set as last read. If null is provided, then
39566
39569
  * the behavior is identical to {@link Conversation.setAllMessagesUnread}.
39567
- * @returns Resulting unread messages count in the conversation.
39570
+ * @returns New count of unread messages after this update.
39568
39571
  */
39569
39572
 
39570
39573
  }, {
@@ -41538,7 +41541,7 @@ this.Twilio.Conversations = (function (exports) {
41538
41541
  this.data = data.data || {};
41539
41542
  });
41540
41543
 
41541
- var version = "2.2.0-rc.13";
41544
+ var version = "2.2.0-rc.15";
41542
41545
 
41543
41546
  function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
41544
41547