@twilio/conversations 2.5.0 → 2.6.0-rc.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/README.md +2 -2
- package/builds/browser.esm.js +10713 -0
- package/builds/browser.esm.js.map +1 -0
- package/builds/browser.js +158 -1
- package/builds/browser.js.map +1 -1
- package/builds/lib.esm.d.ts +3166 -0
- package/builds/lib.esm.js +10712 -0
- package/builds/lib.js +167 -1
- package/builds/lib.js.map +1 -1
- package/builds/twilio-conversations.js +309 -322
- package/builds/twilio-conversations.min.js +1 -1
- package/dist/aggregated-delivery-receipt.js +3 -5
- package/dist/aggregated-delivery-receipt.js.map +1 -1
- package/dist/channel-metadata-client.js +7 -9
- package/dist/channel-metadata-client.js.map +1 -1
- package/dist/client.js +189 -154
- package/dist/client.js.map +1 -1
- package/dist/command-executor.js +8 -8
- package/dist/command-executor.js.map +1 -1
- package/dist/configuration.js +12 -9
- package/dist/configuration.js.map +1 -1
- package/dist/content-client.js +11 -8
- package/dist/content-client.js.map +1 -1
- package/dist/content-template.js +3 -5
- package/dist/content-template.js.map +1 -1
- package/dist/conversation.js +113 -87
- package/dist/conversation.js.map +1 -1
- package/dist/data/conversations.js +34 -42
- package/dist/data/conversations.js.map +1 -1
- package/dist/data/messages.js +23 -21
- package/dist/data/messages.js.map +1 -1
- package/dist/data/participants.js +25 -23
- package/dist/data/participants.js.map +1 -1
- package/dist/data/users.js +15 -13
- package/dist/data/users.js.map +1 -1
- package/dist/detailed-delivery-receipt.js +3 -5
- package/dist/detailed-delivery-receipt.js.map +1 -1
- package/dist/index.js +17 -49
- package/dist/index.js.map +1 -1
- package/dist/interfaces/notification-types.js +1 -5
- package/dist/interfaces/notification-types.js.map +1 -1
- package/dist/interfaces/rules.js +13 -10
- package/dist/interfaces/rules.js.map +1 -1
- package/dist/logger.js +25 -26
- package/dist/logger.js.map +1 -1
- package/dist/media.js +11 -8
- package/dist/media.js.map +1 -1
- package/dist/message-builder.js +48 -40
- package/dist/message-builder.js.map +1 -1
- package/dist/message-recipients-client.js +10 -12
- package/dist/message-recipients-client.js.map +1 -1
- package/dist/message.js +88 -75
- package/dist/message.js.map +1 -1
- package/dist/node_modules/quick-lru/index.js +1 -5
- package/dist/node_modules/quick-lru/index.js.map +1 -1
- package/dist/node_modules/tslib/tslib.es6.js +1 -7
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -1
- package/dist/packages/conversations/package.json.js +2 -6
- package/dist/packages/conversations/package.json.js.map +1 -1
- package/dist/participant.js +34 -29
- package/dist/participant.js.map +1 -1
- package/dist/push-notification.js +5 -4
- package/dist/push-notification.js.map +1 -1
- package/dist/rest-paginator.js +6 -4
- package/dist/rest-paginator.js.map +1 -1
- package/dist/services/network.js +3 -7
- package/dist/services/network.js.map +1 -1
- package/dist/services/typing-indicator.js +11 -8
- package/dist/services/typing-indicator.js.map +1 -1
- package/dist/unsent-message.js +9 -8
- package/dist/unsent-message.js.map +1 -1
- package/dist/user.js +27 -24
- package/dist/user.js.map +1 -1
- package/dist/util/deferred.js +6 -4
- package/dist/util/deferred.js.map +1 -1
- package/dist/util/index.js +1 -9
- package/dist/util/index.js.map +1 -1
- package/docs/index.html +3 -3
- package/docs/modules.html +2 -2
- package/package.json +7 -7
@@ -5403,139 +5403,6 @@ this.Twilio.Conversations = (function (exports) {
|
|
5403
5403
|
|
5404
5404
|
var browser$7 = {};
|
5405
5405
|
|
5406
|
-
var $$i = _export;
|
5407
|
-
var isObject$b = isObject$q;
|
5408
|
-
var isArray = isArray$4;
|
5409
|
-
var toAbsoluteIndex$4 = toAbsoluteIndex$6;
|
5410
|
-
var toLength$h = toLength$o;
|
5411
|
-
var toIndexedObject$2 = toIndexedObject$c;
|
5412
|
-
var createProperty$1 = createProperty$5;
|
5413
|
-
var wellKnownSymbol$6 = wellKnownSymbol$s;
|
5414
|
-
var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$5;
|
5415
|
-
|
5416
|
-
var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$1('slice');
|
5417
|
-
|
5418
|
-
var SPECIES = wellKnownSymbol$6('species');
|
5419
|
-
var nativeSlice = [].slice;
|
5420
|
-
var max$1 = Math.max;
|
5421
|
-
|
5422
|
-
// `Array.prototype.slice` method
|
5423
|
-
// https://tc39.es/ecma262/#sec-array.prototype.slice
|
5424
|
-
// fallback for not array-like ES3 strings and DOM objects
|
5425
|
-
$$i({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
|
5426
|
-
slice: function slice(start, end) {
|
5427
|
-
var O = toIndexedObject$2(this);
|
5428
|
-
var length = toLength$h(O.length);
|
5429
|
-
var k = toAbsoluteIndex$4(start, length);
|
5430
|
-
var fin = toAbsoluteIndex$4(end === undefined ? length : end, length);
|
5431
|
-
// inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
|
5432
|
-
var Constructor, result, n;
|
5433
|
-
if (isArray(O)) {
|
5434
|
-
Constructor = O.constructor;
|
5435
|
-
// cross-realm fallback
|
5436
|
-
if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {
|
5437
|
-
Constructor = undefined;
|
5438
|
-
} else if (isObject$b(Constructor)) {
|
5439
|
-
Constructor = Constructor[SPECIES];
|
5440
|
-
if (Constructor === null) Constructor = undefined;
|
5441
|
-
}
|
5442
|
-
if (Constructor === Array || Constructor === undefined) {
|
5443
|
-
return nativeSlice.call(O, k, fin);
|
5444
|
-
}
|
5445
|
-
}
|
5446
|
-
result = new (Constructor === undefined ? Array : Constructor)(max$1(fin - k, 0));
|
5447
|
-
for (n = 0; k < fin; k++, n++) if (k in O) createProperty$1(result, n, O[k]);
|
5448
|
-
result.length = n;
|
5449
|
-
return result;
|
5450
|
-
}
|
5451
|
-
});
|
5452
|
-
|
5453
|
-
// TODO: Remove from `core-js@4` since it's moved to entry points
|
5454
|
-
|
5455
|
-
var $$h = _export;
|
5456
|
-
var isObject$a = isObject$q;
|
5457
|
-
|
5458
|
-
var DELEGATES_TO_EXEC = function () {
|
5459
|
-
var execCalled = false;
|
5460
|
-
var re = /[ac]/;
|
5461
|
-
re.exec = function () {
|
5462
|
-
execCalled = true;
|
5463
|
-
return /./.exec.apply(this, arguments);
|
5464
|
-
};
|
5465
|
-
return re.test('abc') === true && execCalled;
|
5466
|
-
}();
|
5467
|
-
|
5468
|
-
var nativeTest = /./.test;
|
5469
|
-
|
5470
|
-
// `RegExp.prototype.test` method
|
5471
|
-
// https://tc39.es/ecma262/#sec-regexp.prototype.test
|
5472
|
-
$$h({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
|
5473
|
-
test: function (str) {
|
5474
|
-
if (typeof this.exec !== 'function') {
|
5475
|
-
return nativeTest.call(this, str);
|
5476
|
-
}
|
5477
|
-
var result = this.exec(str);
|
5478
|
-
if (result !== null && !isObject$a(result)) {
|
5479
|
-
throw new Error('RegExp exec method returned something other than an Object or null');
|
5480
|
-
}
|
5481
|
-
return !!result;
|
5482
|
-
}
|
5483
|
-
});
|
5484
|
-
|
5485
|
-
var $$g = _export;
|
5486
|
-
var DESCRIPTORS$8 = descriptors;
|
5487
|
-
var global$c = global$D;
|
5488
|
-
var has$4 = has$g;
|
5489
|
-
var isObject$9 = isObject$q;
|
5490
|
-
var defineProperty$7 = objectDefineProperty.f;
|
5491
|
-
var copyConstructorProperties = copyConstructorProperties$2;
|
5492
|
-
|
5493
|
-
var NativeSymbol = global$c.Symbol;
|
5494
|
-
|
5495
|
-
if (DESCRIPTORS$8 && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
|
5496
|
-
// Safari 12 bug
|
5497
|
-
NativeSymbol().description !== undefined
|
5498
|
-
)) {
|
5499
|
-
var EmptyStringDescriptionStore = {};
|
5500
|
-
// wrap Symbol constructor for correct work with undefined description
|
5501
|
-
var SymbolWrapper = function Symbol() {
|
5502
|
-
var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);
|
5503
|
-
var result = this instanceof SymbolWrapper
|
5504
|
-
? new NativeSymbol(description)
|
5505
|
-
// in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
|
5506
|
-
: description === undefined ? NativeSymbol() : NativeSymbol(description);
|
5507
|
-
if (description === '') EmptyStringDescriptionStore[result] = true;
|
5508
|
-
return result;
|
5509
|
-
};
|
5510
|
-
copyConstructorProperties(SymbolWrapper, NativeSymbol);
|
5511
|
-
var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;
|
5512
|
-
symbolPrototype.constructor = SymbolWrapper;
|
5513
|
-
|
5514
|
-
var symbolToString = symbolPrototype.toString;
|
5515
|
-
var nativeSymbol = String(NativeSymbol('test')) == 'Symbol(test)';
|
5516
|
-
var regexp = /^Symbol\((.*)\)[^)]+$/;
|
5517
|
-
defineProperty$7(symbolPrototype, 'description', {
|
5518
|
-
configurable: true,
|
5519
|
-
get: function description() {
|
5520
|
-
var symbol = isObject$9(this) ? this.valueOf() : this;
|
5521
|
-
var string = symbolToString.call(symbol);
|
5522
|
-
if (has$4(EmptyStringDescriptionStore, symbol)) return '';
|
5523
|
-
var desc = nativeSymbol ? string.slice(7, -1) : string.replace(regexp, '$1');
|
5524
|
-
return desc === '' ? undefined : desc;
|
5525
|
-
}
|
5526
|
-
});
|
5527
|
-
|
5528
|
-
$$g({ global: true, forced: true }, {
|
5529
|
-
Symbol: SymbolWrapper
|
5530
|
-
});
|
5531
|
-
}
|
5532
|
-
|
5533
|
-
var defineWellKnownSymbol = defineWellKnownSymbol$2;
|
5534
|
-
|
5535
|
-
// `Symbol.iterator` well-known symbol
|
5536
|
-
// https://tc39.es/ecma262/#sec-symbol.iterator
|
5537
|
-
defineWellKnownSymbol('iterator');
|
5538
|
-
|
5539
5406
|
var _typeof$2 = {exports: {}};
|
5540
5407
|
|
5541
5408
|
(function (module) {
|
@@ -5552,8 +5419,8 @@ this.Twilio.Conversations = (function (exports) {
|
|
5552
5419
|
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
5553
5420
|
})(_typeof$2);
|
5554
5421
|
|
5555
|
-
var DESCRIPTORS$
|
5556
|
-
var defineProperty$
|
5422
|
+
var DESCRIPTORS$8 = descriptors;
|
5423
|
+
var defineProperty$7 = objectDefineProperty.f;
|
5557
5424
|
|
5558
5425
|
var FunctionPrototype = Function.prototype;
|
5559
5426
|
var FunctionPrototypeToString = FunctionPrototype.toString;
|
@@ -5562,8 +5429,8 @@ this.Twilio.Conversations = (function (exports) {
|
|
5562
5429
|
|
5563
5430
|
// Function instances `.name` property
|
5564
5431
|
// https://tc39.es/ecma262/#sec-function-instances-name
|
5565
|
-
if (DESCRIPTORS$
|
5566
|
-
defineProperty$
|
5432
|
+
if (DESCRIPTORS$8 && !(NAME$1 in FunctionPrototype)) {
|
5433
|
+
defineProperty$7(FunctionPrototype, NAME$1, {
|
5567
5434
|
configurable: true,
|
5568
5435
|
get: function () {
|
5569
5436
|
try {
|
@@ -5679,6 +5546,139 @@ this.Twilio.Conversations = (function (exports) {
|
|
5679
5546
|
module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
5680
5547
|
})(slicedToArray);
|
5681
5548
|
|
5549
|
+
var $$i = _export;
|
5550
|
+
var isObject$b = isObject$q;
|
5551
|
+
var isArray = isArray$4;
|
5552
|
+
var toAbsoluteIndex$4 = toAbsoluteIndex$6;
|
5553
|
+
var toLength$h = toLength$o;
|
5554
|
+
var toIndexedObject$2 = toIndexedObject$c;
|
5555
|
+
var createProperty$1 = createProperty$5;
|
5556
|
+
var wellKnownSymbol$6 = wellKnownSymbol$s;
|
5557
|
+
var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$5;
|
5558
|
+
|
5559
|
+
var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$1('slice');
|
5560
|
+
|
5561
|
+
var SPECIES = wellKnownSymbol$6('species');
|
5562
|
+
var nativeSlice = [].slice;
|
5563
|
+
var max$1 = Math.max;
|
5564
|
+
|
5565
|
+
// `Array.prototype.slice` method
|
5566
|
+
// https://tc39.es/ecma262/#sec-array.prototype.slice
|
5567
|
+
// fallback for not array-like ES3 strings and DOM objects
|
5568
|
+
$$i({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
|
5569
|
+
slice: function slice(start, end) {
|
5570
|
+
var O = toIndexedObject$2(this);
|
5571
|
+
var length = toLength$h(O.length);
|
5572
|
+
var k = toAbsoluteIndex$4(start, length);
|
5573
|
+
var fin = toAbsoluteIndex$4(end === undefined ? length : end, length);
|
5574
|
+
// inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
|
5575
|
+
var Constructor, result, n;
|
5576
|
+
if (isArray(O)) {
|
5577
|
+
Constructor = O.constructor;
|
5578
|
+
// cross-realm fallback
|
5579
|
+
if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {
|
5580
|
+
Constructor = undefined;
|
5581
|
+
} else if (isObject$b(Constructor)) {
|
5582
|
+
Constructor = Constructor[SPECIES];
|
5583
|
+
if (Constructor === null) Constructor = undefined;
|
5584
|
+
}
|
5585
|
+
if (Constructor === Array || Constructor === undefined) {
|
5586
|
+
return nativeSlice.call(O, k, fin);
|
5587
|
+
}
|
5588
|
+
}
|
5589
|
+
result = new (Constructor === undefined ? Array : Constructor)(max$1(fin - k, 0));
|
5590
|
+
for (n = 0; k < fin; k++, n++) if (k in O) createProperty$1(result, n, O[k]);
|
5591
|
+
result.length = n;
|
5592
|
+
return result;
|
5593
|
+
}
|
5594
|
+
});
|
5595
|
+
|
5596
|
+
// TODO: Remove from `core-js@4` since it's moved to entry points
|
5597
|
+
|
5598
|
+
var $$h = _export;
|
5599
|
+
var isObject$a = isObject$q;
|
5600
|
+
|
5601
|
+
var DELEGATES_TO_EXEC = function () {
|
5602
|
+
var execCalled = false;
|
5603
|
+
var re = /[ac]/;
|
5604
|
+
re.exec = function () {
|
5605
|
+
execCalled = true;
|
5606
|
+
return /./.exec.apply(this, arguments);
|
5607
|
+
};
|
5608
|
+
return re.test('abc') === true && execCalled;
|
5609
|
+
}();
|
5610
|
+
|
5611
|
+
var nativeTest = /./.test;
|
5612
|
+
|
5613
|
+
// `RegExp.prototype.test` method
|
5614
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.test
|
5615
|
+
$$h({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
|
5616
|
+
test: function (str) {
|
5617
|
+
if (typeof this.exec !== 'function') {
|
5618
|
+
return nativeTest.call(this, str);
|
5619
|
+
}
|
5620
|
+
var result = this.exec(str);
|
5621
|
+
if (result !== null && !isObject$a(result)) {
|
5622
|
+
throw new Error('RegExp exec method returned something other than an Object or null');
|
5623
|
+
}
|
5624
|
+
return !!result;
|
5625
|
+
}
|
5626
|
+
});
|
5627
|
+
|
5628
|
+
var $$g = _export;
|
5629
|
+
var DESCRIPTORS$7 = descriptors;
|
5630
|
+
var global$c = global$D;
|
5631
|
+
var has$4 = has$g;
|
5632
|
+
var isObject$9 = isObject$q;
|
5633
|
+
var defineProperty$6 = objectDefineProperty.f;
|
5634
|
+
var copyConstructorProperties = copyConstructorProperties$2;
|
5635
|
+
|
5636
|
+
var NativeSymbol = global$c.Symbol;
|
5637
|
+
|
5638
|
+
if (DESCRIPTORS$7 && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
|
5639
|
+
// Safari 12 bug
|
5640
|
+
NativeSymbol().description !== undefined
|
5641
|
+
)) {
|
5642
|
+
var EmptyStringDescriptionStore = {};
|
5643
|
+
// wrap Symbol constructor for correct work with undefined description
|
5644
|
+
var SymbolWrapper = function Symbol() {
|
5645
|
+
var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);
|
5646
|
+
var result = this instanceof SymbolWrapper
|
5647
|
+
? new NativeSymbol(description)
|
5648
|
+
// in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
|
5649
|
+
: description === undefined ? NativeSymbol() : NativeSymbol(description);
|
5650
|
+
if (description === '') EmptyStringDescriptionStore[result] = true;
|
5651
|
+
return result;
|
5652
|
+
};
|
5653
|
+
copyConstructorProperties(SymbolWrapper, NativeSymbol);
|
5654
|
+
var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;
|
5655
|
+
symbolPrototype.constructor = SymbolWrapper;
|
5656
|
+
|
5657
|
+
var symbolToString = symbolPrototype.toString;
|
5658
|
+
var nativeSymbol = String(NativeSymbol('test')) == 'Symbol(test)';
|
5659
|
+
var regexp = /^Symbol\((.*)\)[^)]+$/;
|
5660
|
+
defineProperty$6(symbolPrototype, 'description', {
|
5661
|
+
configurable: true,
|
5662
|
+
get: function description() {
|
5663
|
+
var symbol = isObject$9(this) ? this.valueOf() : this;
|
5664
|
+
var string = symbolToString.call(symbol);
|
5665
|
+
if (has$4(EmptyStringDescriptionStore, symbol)) return '';
|
5666
|
+
var desc = nativeSymbol ? string.slice(7, -1) : string.replace(regexp, '$1');
|
5667
|
+
return desc === '' ? undefined : desc;
|
5668
|
+
}
|
5669
|
+
});
|
5670
|
+
|
5671
|
+
$$g({ global: true, forced: true }, {
|
5672
|
+
Symbol: SymbolWrapper
|
5673
|
+
});
|
5674
|
+
}
|
5675
|
+
|
5676
|
+
var defineWellKnownSymbol = defineWellKnownSymbol$2;
|
5677
|
+
|
5678
|
+
// `Symbol.iterator` well-known symbol
|
5679
|
+
// https://tc39.es/ecma262/#sec-symbol.iterator
|
5680
|
+
defineWellKnownSymbol('iterator');
|
5681
|
+
|
5682
5682
|
var toConsumableArray = {exports: {}};
|
5683
5683
|
|
5684
5684
|
var arrayWithoutHoles = {exports: {}};
|
@@ -5971,82 +5971,6 @@ this.Twilio.Conversations = (function (exports) {
|
|
5971
5971
|
};
|
5972
5972
|
};
|
5973
5973
|
|
5974
|
-
function _createForOfIteratorHelper$4$1(o, allowArrayLike) {
|
5975
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
5976
|
-
|
5977
|
-
if (!it) {
|
5978
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray$4$1(o)) || allowArrayLike && o && typeof o.length === "number") {
|
5979
|
-
if (it) o = it;
|
5980
|
-
var i = 0;
|
5981
|
-
|
5982
|
-
var F = function F() {};
|
5983
|
-
|
5984
|
-
return {
|
5985
|
-
s: F,
|
5986
|
-
n: function n() {
|
5987
|
-
if (i >= o.length) return {
|
5988
|
-
done: true
|
5989
|
-
};
|
5990
|
-
return {
|
5991
|
-
done: false,
|
5992
|
-
value: o[i++]
|
5993
|
-
};
|
5994
|
-
},
|
5995
|
-
e: function e(_e) {
|
5996
|
-
throw _e;
|
5997
|
-
},
|
5998
|
-
f: F
|
5999
|
-
};
|
6000
|
-
}
|
6001
|
-
|
6002
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
6003
|
-
}
|
6004
|
-
|
6005
|
-
var normalCompletion = true,
|
6006
|
-
didErr = false,
|
6007
|
-
err;
|
6008
|
-
return {
|
6009
|
-
s: function s() {
|
6010
|
-
it = it.call(o);
|
6011
|
-
},
|
6012
|
-
n: function n() {
|
6013
|
-
var step = it.next();
|
6014
|
-
normalCompletion = step.done;
|
6015
|
-
return step;
|
6016
|
-
},
|
6017
|
-
e: function e(_e2) {
|
6018
|
-
didErr = true;
|
6019
|
-
err = _e2;
|
6020
|
-
},
|
6021
|
-
f: function f() {
|
6022
|
-
try {
|
6023
|
-
if (!normalCompletion && it.return != null) it.return();
|
6024
|
-
} finally {
|
6025
|
-
if (didErr) throw err;
|
6026
|
-
}
|
6027
|
-
}
|
6028
|
-
};
|
6029
|
-
}
|
6030
|
-
|
6031
|
-
function _unsupportedIterableToArray$4$1(o, minLen) {
|
6032
|
-
if (!o) return;
|
6033
|
-
if (typeof o === "string") return _arrayLikeToArray$4$1(o, minLen);
|
6034
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
6035
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
6036
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
6037
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$4$1(o, minLen);
|
6038
|
-
}
|
6039
|
-
|
6040
|
-
function _arrayLikeToArray$4$1(arr, len) {
|
6041
|
-
if (len == null || len > arr.length) len = arr.length;
|
6042
|
-
|
6043
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
6044
|
-
arr2[i] = arr[i];
|
6045
|
-
}
|
6046
|
-
|
6047
|
-
return arr2;
|
6048
|
-
}
|
6049
|
-
|
6050
5974
|
var type = function type() {
|
6051
5975
|
for (var _len = arguments.length, checks = new Array(_len), _key = 0; _key < _len; _key++) {
|
6052
5976
|
checks[_key] = arguments[_key];
|
@@ -6056,108 +5980,23 @@ this.Twilio.Conversations = (function (exports) {
|
|
6056
5980
|
var isValid = false;
|
6057
5981
|
var expectedTypes = [];
|
6058
5982
|
|
6059
|
-
var
|
6060
|
-
|
6061
|
-
|
6062
|
-
try {
|
6063
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
6064
|
-
var _type = _step.value;
|
5983
|
+
for (var _i = 0, _checks = checks; _i < _checks.length; _i++) {
|
5984
|
+
var _type = _checks[_i];
|
6065
5985
|
|
6066
|
-
|
6067
|
-
|
6068
|
-
|
6069
|
-
|
6070
|
-
}
|
6071
|
-
|
6072
|
-
isValid = isValid || value instanceof _type;
|
6073
|
-
expectedTypes.push("an instance of ".concat(_type.name));
|
5986
|
+
if (typeof _type === "string") {
|
5987
|
+
isValid = isValid || _typeof__default$1["default"](value) === _type;
|
5988
|
+
expectedTypes.push("of type ".concat(_type));
|
5989
|
+
continue;
|
6074
5990
|
}
|
6075
|
-
|
6076
|
-
|
6077
|
-
|
6078
|
-
_iterator.f();
|
5991
|
+
|
5992
|
+
isValid = isValid || value instanceof _type;
|
5993
|
+
expectedTypes.push("an instance of ".concat(_type.name));
|
6079
5994
|
}
|
6080
5995
|
|
6081
5996
|
return [isValid, expectedTypes];
|
6082
5997
|
});
|
6083
5998
|
};
|
6084
5999
|
|
6085
|
-
function _createForOfIteratorHelper$3$2(o, allowArrayLike) {
|
6086
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
6087
|
-
|
6088
|
-
if (!it) {
|
6089
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray$3$2(o)) || allowArrayLike && o && typeof o.length === "number") {
|
6090
|
-
if (it) o = it;
|
6091
|
-
var i = 0;
|
6092
|
-
|
6093
|
-
var F = function F() {};
|
6094
|
-
|
6095
|
-
return {
|
6096
|
-
s: F,
|
6097
|
-
n: function n() {
|
6098
|
-
if (i >= o.length) return {
|
6099
|
-
done: true
|
6100
|
-
};
|
6101
|
-
return {
|
6102
|
-
done: false,
|
6103
|
-
value: o[i++]
|
6104
|
-
};
|
6105
|
-
},
|
6106
|
-
e: function e(_e) {
|
6107
|
-
throw _e;
|
6108
|
-
},
|
6109
|
-
f: F
|
6110
|
-
};
|
6111
|
-
}
|
6112
|
-
|
6113
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
6114
|
-
}
|
6115
|
-
|
6116
|
-
var normalCompletion = true,
|
6117
|
-
didErr = false,
|
6118
|
-
err;
|
6119
|
-
return {
|
6120
|
-
s: function s() {
|
6121
|
-
it = it.call(o);
|
6122
|
-
},
|
6123
|
-
n: function n() {
|
6124
|
-
var step = it.next();
|
6125
|
-
normalCompletion = step.done;
|
6126
|
-
return step;
|
6127
|
-
},
|
6128
|
-
e: function e(_e2) {
|
6129
|
-
didErr = true;
|
6130
|
-
err = _e2;
|
6131
|
-
},
|
6132
|
-
f: function f() {
|
6133
|
-
try {
|
6134
|
-
if (!normalCompletion && it.return != null) it.return();
|
6135
|
-
} finally {
|
6136
|
-
if (didErr) throw err;
|
6137
|
-
}
|
6138
|
-
}
|
6139
|
-
};
|
6140
|
-
}
|
6141
|
-
|
6142
|
-
function _unsupportedIterableToArray$3$2(o, minLen) {
|
6143
|
-
if (!o) return;
|
6144
|
-
if (typeof o === "string") return _arrayLikeToArray$3$2(o, minLen);
|
6145
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
6146
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
6147
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
6148
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3$2(o, minLen);
|
6149
|
-
}
|
6150
|
-
|
6151
|
-
function _arrayLikeToArray$3$2(arr, len) {
|
6152
|
-
if (len == null || len > arr.length) len = arr.length;
|
6153
|
-
|
6154
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
6155
|
-
arr2[i] = arr[i];
|
6156
|
-
}
|
6157
|
-
|
6158
|
-
return arr2;
|
6159
|
-
}
|
6160
|
-
|
6161
6000
|
var literal = function literal() {
|
6162
6001
|
for (var _len = arguments.length, checks = new Array(_len), _key = 0; _key < _len; _key++) {
|
6163
6002
|
checks[_key] = arguments[_key];
|
@@ -6167,19 +6006,10 @@ this.Twilio.Conversations = (function (exports) {
|
|
6167
6006
|
var isValid = false;
|
6168
6007
|
var expectedTypes = [];
|
6169
6008
|
|
6170
|
-
var
|
6171
|
-
|
6172
|
-
|
6173
|
-
|
6174
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
6175
|
-
var type = _step.value;
|
6176
|
-
isValid = isValid || value === type;
|
6177
|
-
expectedTypes.push(typeof type === "string" ? "\"".concat(type, "\"") : "".concat(type));
|
6178
|
-
}
|
6179
|
-
} catch (err) {
|
6180
|
-
_iterator.e(err);
|
6181
|
-
} finally {
|
6182
|
-
_iterator.f();
|
6009
|
+
for (var _i = 0, _checks = checks; _i < _checks.length; _i++) {
|
6010
|
+
var type = _checks[_i];
|
6011
|
+
isValid = isValid || value === type;
|
6012
|
+
expectedTypes.push(typeof type === "string" ? "\"".concat(type, "\"") : "".concat(type));
|
6183
6013
|
}
|
6184
6014
|
|
6185
6015
|
return [isValid, expectedTypes];
|
@@ -9528,6 +9358,22 @@ this.Twilio.Conversations = (function (exports) {
|
|
9528
9358
|
* @event
|
9529
9359
|
*/
|
9530
9360
|
|
9361
|
+
/**
|
9362
|
+
* Fired when the client has subscribed to the user.
|
9363
|
+
*
|
9364
|
+
* Parameters:
|
9365
|
+
* 1. {@link User} `user` - the user in question
|
9366
|
+
* @event
|
9367
|
+
*/
|
9368
|
+
|
9369
|
+
/**
|
9370
|
+
* Fired when the client has unsubscribed from the user.
|
9371
|
+
*
|
9372
|
+
* Parameters:
|
9373
|
+
* 1. {@link User} `user` - the user in question
|
9374
|
+
* @event
|
9375
|
+
*/
|
9376
|
+
|
9531
9377
|
|
9532
9378
|
_createClass$4(User, [{
|
9533
9379
|
key: "identity",
|
@@ -34898,7 +34744,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
34898
34744
|
return Network;
|
34899
34745
|
}();
|
34900
34746
|
|
34901
|
-
var version = "0.6.
|
34747
|
+
var version = "0.6.8-rc.0";
|
34902
34748
|
|
34903
34749
|
var _class;
|
34904
34750
|
|
@@ -35346,6 +35192,24 @@ this.Twilio.Conversations = (function (exports) {
|
|
35346
35192
|
* @event
|
35347
35193
|
*/
|
35348
35194
|
|
35195
|
+
/**
|
35196
|
+
* Fired when the participant has stopped typing.
|
35197
|
+
*
|
35198
|
+
* Parameters:
|
35199
|
+
* 1. {@link Participant} `participant` - the participant in question
|
35200
|
+
* @event
|
35201
|
+
*/
|
35202
|
+
|
35203
|
+
/**
|
35204
|
+
* Fired when the fields of the participant have been updated.
|
35205
|
+
*
|
35206
|
+
* Parameters:
|
35207
|
+
* 1. object `data` - info object provided with the event. It has the following properties:
|
35208
|
+
* * {@link Participant} participant - the participant in question
|
35209
|
+
* * {@link ParticipantUpdateReason}[] updateReasons - array of reasons for the update
|
35210
|
+
* @event
|
35211
|
+
*/
|
35212
|
+
|
35349
35213
|
|
35350
35214
|
_createClass$4(Participant, [{
|
35351
35215
|
key: "sid",
|
@@ -37231,6 +37095,15 @@ this.Twilio.Conversations = (function (exports) {
|
|
37231
37095
|
|
37232
37096
|
return _this;
|
37233
37097
|
}
|
37098
|
+
/**
|
37099
|
+
* Fired when the properties or the body of the message has been updated.
|
37100
|
+
*
|
37101
|
+
* Parameters:
|
37102
|
+
* 1. object `data` - info object provided with the event. It has the following properties:
|
37103
|
+
* * {@link Message} message - the message in question
|
37104
|
+
* * {@link MessageUpdateReason}[] updateReasons - array of reasons for the update
|
37105
|
+
*/
|
37106
|
+
|
37234
37107
|
|
37235
37108
|
_createClass$4(Message, [{
|
37236
37109
|
key: "sid",
|
@@ -39227,6 +39100,64 @@ this.Twilio.Conversations = (function (exports) {
|
|
39227
39100
|
* Logger instance.
|
39228
39101
|
*/
|
39229
39102
|
|
39103
|
+
/**
|
39104
|
+
* Unique system identifier of the conversation.
|
39105
|
+
*/
|
39106
|
+
|
39107
|
+
/**
|
39108
|
+
* Conversation links for REST requests.
|
39109
|
+
* @internal
|
39110
|
+
*/
|
39111
|
+
|
39112
|
+
/**
|
39113
|
+
* Configuration of the client that the conversation belongs to.
|
39114
|
+
*/
|
39115
|
+
|
39116
|
+
/**
|
39117
|
+
* Conversation service objects.
|
39118
|
+
*/
|
39119
|
+
|
39120
|
+
/**
|
39121
|
+
* Internal state of the conversation.
|
39122
|
+
*/
|
39123
|
+
|
39124
|
+
/**
|
39125
|
+
* Name of the conversation entity document.
|
39126
|
+
*/
|
39127
|
+
|
39128
|
+
/**
|
39129
|
+
* Messages entity.
|
39130
|
+
*/
|
39131
|
+
|
39132
|
+
/**
|
39133
|
+
* Sync list containing messages.
|
39134
|
+
*/
|
39135
|
+
|
39136
|
+
/**
|
39137
|
+
* Map of participants.
|
39138
|
+
* @internal
|
39139
|
+
*/
|
39140
|
+
|
39141
|
+
/**
|
39142
|
+
* Participants entity.
|
39143
|
+
*/
|
39144
|
+
|
39145
|
+
/**
|
39146
|
+
* Sync map containing participants.
|
39147
|
+
*/
|
39148
|
+
|
39149
|
+
/**
|
39150
|
+
* Source of the most recent update.
|
39151
|
+
*/
|
39152
|
+
|
39153
|
+
/**
|
39154
|
+
* Promise for the conversation entity document.
|
39155
|
+
*/
|
39156
|
+
|
39157
|
+
/**
|
39158
|
+
* Conversation entity document.
|
39159
|
+
*/
|
39160
|
+
|
39230
39161
|
/**
|
39231
39162
|
* @param descriptor Conversation descriptor.
|
39232
39163
|
* @param sid Conversation SID.
|
@@ -42311,7 +42242,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
42311
42242
|
this.data = data.data || {};
|
42312
42243
|
});
|
42313
42244
|
|
42314
|
-
var version = "2.
|
42245
|
+
var version = "2.6.0-rc.0";
|
42315
42246
|
|
42316
42247
|
function _isNativeFunction(fn) {
|
42317
42248
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
@@ -43270,6 +43201,22 @@ this.Twilio.Conversations = (function (exports) {
|
|
43270
43201
|
* Type of recipient.
|
43271
43202
|
*/
|
43272
43203
|
|
43204
|
+
/**
|
43205
|
+
* Sid of the message that this recipient belongs to.
|
43206
|
+
*/
|
43207
|
+
|
43208
|
+
/**
|
43209
|
+
* Email recipient level.
|
43210
|
+
*/
|
43211
|
+
|
43212
|
+
/**
|
43213
|
+
* Name of the recipient.
|
43214
|
+
*/
|
43215
|
+
|
43216
|
+
/**
|
43217
|
+
* Address of the recipient.
|
43218
|
+
*/
|
43219
|
+
|
43273
43220
|
/**
|
43274
43221
|
* @internal
|
43275
43222
|
*/
|
@@ -43723,6 +43670,46 @@ this.Twilio.Conversations = (function (exports) {
|
|
43723
43670
|
* Client connection state.
|
43724
43671
|
*/
|
43725
43672
|
|
43673
|
+
/**
|
43674
|
+
* Promise that resolves on successful initialization.
|
43675
|
+
*/
|
43676
|
+
|
43677
|
+
/**
|
43678
|
+
* Options passed to the client.
|
43679
|
+
*/
|
43680
|
+
|
43681
|
+
/**
|
43682
|
+
* Client service objects.
|
43683
|
+
*/
|
43684
|
+
|
43685
|
+
/**
|
43686
|
+
* The user of the client.
|
43687
|
+
*/
|
43688
|
+
|
43689
|
+
/**
|
43690
|
+
* Resolves the {@link Client._ensureReady} promise.
|
43691
|
+
*/
|
43692
|
+
|
43693
|
+
/**
|
43694
|
+
* Rejects the {@link Client._ensureReady} promise.
|
43695
|
+
*/
|
43696
|
+
|
43697
|
+
/**
|
43698
|
+
* The current token of the client.
|
43699
|
+
*/
|
43700
|
+
|
43701
|
+
/**
|
43702
|
+
* The constructed configuration object.
|
43703
|
+
*/
|
43704
|
+
|
43705
|
+
/**
|
43706
|
+
* The Conversations entity.
|
43707
|
+
*/
|
43708
|
+
|
43709
|
+
/**
|
43710
|
+
* Promise that resolves when initial conversations are fetched.
|
43711
|
+
*/
|
43712
|
+
|
43726
43713
|
/**
|
43727
43714
|
* Returned Conversations Client instance is not yet fully initialized. Calling any
|
43728
43715
|
* operations will block until it is. Use connection events to monitor when
|