@twilio/conversations 2.0.1-rc.5 → 2.0.1-rc.9

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 (95) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/{dist → builds}/browser.js +1 -1
  3. package/{dist → builds}/browser.js.map +0 -0
  4. package/{dist → builds}/lib.d.ts +0 -0
  5. package/{dist → builds}/lib.js +1 -1
  6. package/{dist → builds}/lib.js.map +0 -0
  7. package/{dist → builds}/twilio-conversations.js +8 -188
  8. package/{dist → builds}/twilio-conversations.min.js +2 -2
  9. package/dist/aggregated-delivery-receipt.js +227 -0
  10. package/dist/aggregated-delivery-receipt.js.map +1 -0
  11. package/dist/client.js +872 -0
  12. package/dist/client.js.map +1 -0
  13. package/dist/command-executor.js +203 -0
  14. package/dist/command-executor.js.map +1 -0
  15. package/dist/configuration.js +196 -0
  16. package/dist/configuration.js.map +1 -0
  17. package/dist/conversation.js +973 -0
  18. package/dist/conversation.js.map +1 -0
  19. package/dist/data/conversations.js +443 -0
  20. package/dist/data/conversations.js.map +1 -0
  21. package/dist/data/messages.js +341 -0
  22. package/dist/data/messages.js.map +1 -0
  23. package/dist/data/participants.js +313 -0
  24. package/dist/data/participants.js.map +1 -0
  25. package/dist/data/users.js +228 -0
  26. package/dist/data/users.js.map +1 -0
  27. package/dist/detailed-delivery-receipt.js +154 -0
  28. package/dist/detailed-delivery-receipt.js.map +1 -0
  29. package/dist/index.js +167 -0
  30. package/dist/index.js.map +1 -0
  31. package/dist/interfaces/notification-types.js +143 -0
  32. package/dist/interfaces/notification-types.js.map +1 -0
  33. package/dist/logger.js +190 -0
  34. package/dist/logger.js.map +1 -0
  35. package/dist/media.js +213 -0
  36. package/dist/media.js.map +1 -0
  37. package/dist/message-builder.js +209 -0
  38. package/dist/message-builder.js.map +1 -0
  39. package/dist/message.js +450 -0
  40. package/dist/message.js.map +1 -0
  41. package/dist/node_modules/tslib/tslib.es6.js +161 -0
  42. package/dist/node_modules/tslib/tslib.es6.js.map +1 -0
  43. package/dist/packages/conversations/package.json.js +136 -0
  44. package/dist/packages/conversations/package.json.js.map +1 -0
  45. package/dist/participant.js +346 -0
  46. package/dist/participant.js.map +1 -0
  47. package/dist/push-notification.js +152 -0
  48. package/dist/push-notification.js.map +1 -0
  49. package/dist/rest-paginator.js +175 -0
  50. package/dist/rest-paginator.js.map +1 -0
  51. package/dist/services/network.js +205 -0
  52. package/dist/services/network.js.map +1 -0
  53. package/dist/services/typing-indicator.js +235 -0
  54. package/dist/services/typing-indicator.js.map +1 -0
  55. package/dist/unsent-message.js +159 -0
  56. package/dist/unsent-message.js.map +1 -0
  57. package/dist/user.js +392 -0
  58. package/dist/user.js.map +1 -0
  59. package/dist/util/deferred.js +154 -0
  60. package/dist/util/deferred.js.map +1 -0
  61. package/dist/util/index.js +206 -0
  62. package/dist/util/index.js.map +1 -0
  63. package/{dist/docs → docs}/assets/css/main.css +0 -0
  64. package/{dist/docs → docs}/assets/images/icons.png +0 -0
  65. package/{dist/docs → docs}/assets/images/icons@2x.png +0 -0
  66. package/{dist/docs → docs}/assets/images/widgets.png +0 -0
  67. package/{dist/docs → docs}/assets/images/widgets@2x.png +0 -0
  68. package/{dist/docs → docs}/assets/js/main.js +0 -0
  69. package/{dist/docs → docs}/assets/js/search.js +0 -0
  70. package/{dist/docs → docs}/classes/AggregatedDeliveryReceipt.html +0 -0
  71. package/{dist/docs → docs}/classes/Client.html +0 -0
  72. package/{dist/docs → docs}/classes/Conversation.html +0 -0
  73. package/{dist/docs → docs}/classes/DetailedDeliveryReceipt.html +0 -0
  74. package/{dist/docs → docs}/classes/Media.html +0 -0
  75. package/{dist/docs → docs}/classes/Message.html +0 -0
  76. package/{dist/docs → docs}/classes/MessageBuilder.html +0 -0
  77. package/{dist/docs → docs}/classes/Participant.html +0 -0
  78. package/{dist/docs → docs}/classes/PushNotification.html +0 -0
  79. package/{dist/docs → docs}/classes/RestPaginator.html +0 -0
  80. package/{dist/docs → docs}/classes/UnsentMessage.html +0 -0
  81. package/{dist/docs → docs}/classes/User.html +0 -0
  82. package/{dist/docs → docs}/index.html +0 -0
  83. package/{dist/docs → docs}/interfaces/ClientOptions.html +0 -0
  84. package/{dist/docs → docs}/interfaces/ConversationState.html +0 -0
  85. package/{dist/docs → docs}/interfaces/CreateConversationOptions.html +0 -0
  86. package/{dist/docs → docs}/interfaces/LastMessage.html +0 -0
  87. package/{dist/docs → docs}/interfaces/Paginator.html +0 -0
  88. package/{dist/docs → docs}/interfaces/PushNotificationData.html +0 -0
  89. package/{dist/docs → docs}/interfaces/SendEmailOptions.html +0 -0
  90. package/{dist/docs → docs}/interfaces/SendMediaOptions.html +0 -0
  91. package/{dist/docs → docs}/modules.html +0 -0
  92. package/package.json +23 -24
  93. package/dist/post-install.js +0 -29
  94. package/dist/react-native.js +0 -4035
  95. package/dist/react-native.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,39 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ### [2.0.1-rc.9](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.1-rc.8...@twilio/conversations@2.0.1-rc.9) (2021-11-12)
7
+
8
+ **Note:** Version bump only for package @twilio/conversations
9
+
10
+
11
+
12
+
13
+
14
+ ### [2.0.1-rc.8](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.1-rc.7...@twilio/conversations@2.0.1-rc.8) (2021-11-12)
15
+
16
+ **Note:** Version bump only for package @twilio/conversations
17
+
18
+
19
+
20
+
21
+
22
+ ### [2.0.1-rc.7](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.1-rc.6...@twilio/conversations@2.0.1-rc.7) (2021-11-12)
23
+
24
+ **Note:** Version bump only for package @twilio/conversations
25
+
26
+
27
+
28
+
29
+
30
+ ### [2.0.1-rc.6](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.1-rc.5...@twilio/conversations@2.0.1-rc.6) (2021-11-11)
31
+
32
+
33
+ ### Bug Fixes
34
+
35
+ * Remove the post-install script in favour of the "react-native" option ([0fe352d](https://github.com/twilio/rtd-sdk-monorepo-js/commit/0fe352d45e50cec78e880affee589009055d5338))
36
+
37
+
38
+
6
39
  ### [2.0.1-rc.5](https://github.com/twilio/rtd-sdk-monorepo-js/compare/@twilio/conversations@2.0.1-rc.4...@twilio/conversations@2.0.1-rc.5) (2021-11-10)
7
40
 
8
41
 
@@ -6599,7 +6599,7 @@ function PushNotification(data) {
6599
6599
  this.data = data.data || {};
6600
6600
  };
6601
6601
 
6602
- var version = "2.0.1-rc.5";
6602
+ var version = "2.0.1-rc.9";
6603
6603
 
6604
6604
  function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
6605
6605
 
File without changes
File without changes
@@ -6599,7 +6599,7 @@ function PushNotification(data) {
6599
6599
  this.data = data.data || {};
6600
6600
  };
6601
6601
 
6602
- var version = "2.0.1-rc.5";
6602
+ var version = "2.0.1-rc.9";
6603
6603
 
6604
6604
  function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
6605
6605
 
File without changes
@@ -16193,7 +16193,7 @@ this.Twilio.Conversations = (function (exports) {
16193
16193
  }();
16194
16194
 
16195
16195
  var logInstance = new Logger("");
16196
- var version = "0.12.1-rc.2";
16196
+ var version = "0.12.1-rc.6";
16197
16197
  /**
16198
16198
  * Settings container for the Twilsock client library
16199
16199
  */
@@ -20046,6 +20046,7 @@ this.Twilio.Conversations = (function (exports) {
20046
20046
  var _slicedToArray = slicedToArray.exports;
20047
20047
  var _toConsumableArray = toConsumableArray.exports;
20048
20048
  var logger = loglevel.exports;
20049
+ var uuid = uuid_1;
20049
20050
  var declarativeTypeValidator = browser$6;
20050
20051
 
20051
20052
  function _interopDefaultLegacy(e) {
@@ -20102,6 +20103,8 @@ this.Twilio.Conversations = (function (exports) {
20102
20103
 
20103
20104
  var logger__namespace = /*#__PURE__*/_interopNamespace(logger);
20104
20105
 
20106
+ var uuid__namespace = /*#__PURE__*/_interopNamespace(uuid);
20107
+
20105
20108
  function __decorate(decorators, target, key, desc) {
20106
20109
  var c = arguments.length,
20107
20110
  r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
@@ -21165,189 +21168,6 @@ this.Twilio.Conversations = (function (exports) {
21165
21168
  return RegistrarConnector;
21166
21169
  }(Connector);
21167
21170
 
21168
- var rngBrowser = {
21169
- exports: {}
21170
- }; // browser this is a little complicated due to unknown quality of Math.random()
21171
- // and inconsistent support for the `crypto` API. We do the best we can via
21172
- // feature-detection
21173
- // getRandomValues needs to be invoked in a context where "this" is a Crypto
21174
- // implementation. Also, find the complete implementation of crypto on IE11.
21175
-
21176
- var getRandomValues = typeof crypto != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto);
21177
-
21178
- if (getRandomValues) {
21179
- // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto
21180
- var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef
21181
-
21182
- rngBrowser.exports = function whatwgRNG() {
21183
- getRandomValues(rnds8);
21184
- return rnds8;
21185
- };
21186
- } else {
21187
- // Math.random()-based (RNG)
21188
- //
21189
- // If all else fails, use Math.random(). It's fast, but is of unspecified
21190
- // quality.
21191
- var rnds = new Array(16);
21192
-
21193
- rngBrowser.exports = function mathRNG() {
21194
- for (var i = 0, r; i < 16; i++) {
21195
- if ((i & 0x03) === 0) r = Math.random() * 0x100000000;
21196
- rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;
21197
- }
21198
-
21199
- return rnds;
21200
- };
21201
- }
21202
- /**
21203
- * Convert array of 16 byte values to UUID string format of the form:
21204
- * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
21205
- */
21206
-
21207
-
21208
- var byteToHex = [];
21209
-
21210
- for (var i = 0; i < 256; ++i) {
21211
- byteToHex[i] = (i + 0x100).toString(16).substr(1);
21212
- }
21213
-
21214
- function bytesToUuid$2(buf, offset) {
21215
- var i = offset || 0;
21216
- var bth = byteToHex; // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
21217
-
21218
- return [bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]]].join('');
21219
- }
21220
-
21221
- var bytesToUuid_1 = bytesToUuid$2;
21222
- var rng$1 = rngBrowser.exports;
21223
- var bytesToUuid$1 = bytesToUuid_1; // **`v1()` - Generate time-based UUID**
21224
- //
21225
- // Inspired by https://github.com/LiosK/UUID.js
21226
- // and http://docs.python.org/library/uuid.html
21227
-
21228
- var _nodeId;
21229
-
21230
- var _clockseq; // Previous uuid creation time
21231
-
21232
-
21233
- var _lastMSecs = 0;
21234
- var _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
21235
-
21236
- function v1$1(options, buf, offset) {
21237
- var i = buf && offset || 0;
21238
- var b = buf || [];
21239
- options = options || {};
21240
- var node = options.node || _nodeId;
21241
- var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not
21242
- // specified. We do this lazily to minimize issues related to insufficient
21243
- // system entropy. See #189
21244
-
21245
- if (node == null || clockseq == null) {
21246
- var seedBytes = rng$1();
21247
-
21248
- if (node == null) {
21249
- // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
21250
- node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
21251
- }
21252
-
21253
- if (clockseq == null) {
21254
- // Per 4.2.2, randomize (14 bit) clockseq
21255
- clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
21256
- }
21257
- } // UUID timestamps are 100 nano-second units since the Gregorian epoch,
21258
- // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
21259
- // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
21260
- // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
21261
-
21262
-
21263
- var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime(); // Per 4.2.1.2, use count of uuid's generated during the current clock
21264
- // cycle to simulate higher resolution clock
21265
-
21266
- var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)
21267
-
21268
- var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
21269
-
21270
- if (dt < 0 && options.clockseq === undefined) {
21271
- clockseq = clockseq + 1 & 0x3fff;
21272
- } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
21273
- // time interval
21274
-
21275
-
21276
- if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
21277
- nsecs = 0;
21278
- } // Per 4.2.1.2 Throw error if too many uuids are requested
21279
-
21280
-
21281
- if (nsecs >= 10000) {
21282
- throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');
21283
- }
21284
-
21285
- _lastMSecs = msecs;
21286
- _lastNSecs = nsecs;
21287
- _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
21288
-
21289
- msecs += 12219292800000; // `time_low`
21290
-
21291
- var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
21292
- b[i++] = tl >>> 24 & 0xff;
21293
- b[i++] = tl >>> 16 & 0xff;
21294
- b[i++] = tl >>> 8 & 0xff;
21295
- b[i++] = tl & 0xff; // `time_mid`
21296
-
21297
- var tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
21298
- b[i++] = tmh >>> 8 & 0xff;
21299
- b[i++] = tmh & 0xff; // `time_high_and_version`
21300
-
21301
- b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
21302
-
21303
- b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
21304
-
21305
- b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`
21306
-
21307
- b[i++] = clockseq & 0xff; // `node`
21308
-
21309
- for (var n = 0; n < 6; ++n) {
21310
- b[i + n] = node[n];
21311
- }
21312
-
21313
- return buf ? buf : bytesToUuid$1(b);
21314
- }
21315
-
21316
- var v1_1 = v1$1;
21317
- var rng = rngBrowser.exports;
21318
- var bytesToUuid = bytesToUuid_1;
21319
-
21320
- function v4$1(options, buf, offset) {
21321
- var i = buf && offset || 0;
21322
-
21323
- if (typeof options == 'string') {
21324
- buf = options === 'binary' ? new Array(16) : null;
21325
- options = null;
21326
- }
21327
-
21328
- options = options || {};
21329
- var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
21330
-
21331
- rnds[6] = rnds[6] & 0x0f | 0x40;
21332
- rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
21333
-
21334
- if (buf) {
21335
- for (var ii = 0; ii < 16; ++ii) {
21336
- buf[i + ii] = rnds[ii];
21337
- }
21338
- }
21339
-
21340
- return buf || bytesToUuid(rnds);
21341
- }
21342
-
21343
- var v4_1 = v4$1;
21344
- var v1 = v1_1;
21345
- var v4 = v4_1;
21346
- var uuid = v4;
21347
- uuid.v1 = v1;
21348
- uuid.v4 = v4;
21349
- var uuid_1 = uuid;
21350
-
21351
21171
  function _createSuper$1(Derived) {
21352
21172
  var hasNativeReflectConstruct = _isNativeReflectConstruct$1();
21353
21173
 
@@ -21403,7 +21223,7 @@ this.Twilio.Conversations = (function (exports) {
21403
21223
 
21404
21224
  _this = _super.call(this, "twilsock");
21405
21225
 
21406
- _defineProperty__default['default'](_assertThisInitialized__default['default'](_this), "contextId", uuid_1.v4());
21226
+ _defineProperty__default['default'](_assertThisInitialized__default['default'](_this), "contextId", uuid__namespace.v4());
21407
21227
 
21408
21228
  _this.productId = productId;
21409
21229
  _this.platform = platform;
@@ -30732,7 +30552,7 @@ this.Twilio.Conversations = (function (exports) {
30732
30552
 
30733
30553
  __decorate([declarativeTypeValidator.validateTypes(declarativeTypeValidator.nonEmptyString), __metadata("design:type", Function), __metadata("design:paramtypes", [String]), __metadata("design:returntype", void 0)], InstantQuery.prototype, "updateIndexName", null);
30734
30554
 
30735
- var version$1 = "3.0.6-rc.2";
30555
+ var version$1 = "3.0.6-rc.6";
30736
30556
 
30737
30557
  function _createSuper$9(Derived) {
30738
30558
  var hasNativeReflectConstruct = _isNativeReflectConstruct$a();
@@ -34720,7 +34540,7 @@ this.Twilio.Conversations = (function (exports) {
34720
34540
  return Network;
34721
34541
  }();
34722
34542
 
34723
- var version = "0.5.2-rc.2";
34543
+ var version = "0.5.2-rc.4";
34724
34544
 
34725
34545
  var _class, _temp;
34726
34546
 
@@ -40482,7 +40302,7 @@ this.Twilio.Conversations = (function (exports) {
40482
40302
  this.data = data.data || {};
40483
40303
  };
40484
40304
 
40485
- var version = "2.0.1-rc.5";
40305
+ var version = "2.0.1-rc.9";
40486
40306
 
40487
40307
  function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
40488
40308