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

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/builds/lib.d.ts CHANGED
@@ -1965,7 +1965,7 @@ type ClientEvents = {
1965
1965
  updateReasons: UserUpdateReason[];
1966
1966
  }) => void;
1967
1967
  stateChanged: (state: State) => void;
1968
- initialized: (props: Record<string, unknown>) => void;
1968
+ initialized: () => void;
1969
1969
  initFailed: ({ error }: {
1970
1970
  error?: ConnectionError;
1971
1971
  }) => void;
@@ -2236,9 +2236,6 @@ declare class Client extends ReplayEventEmitter<ClientEvents> {
2236
2236
  static readonly stateChanged = "stateChanged";
2237
2237
  /**
2238
2238
  * Fired when the client has completed initialization successfully.
2239
- *
2240
- * Parameters:
2241
- * 1. object `data` - Optional info object provided with the event
2242
2239
  * @event
2243
2240
  */
2244
2241
  static readonly initialized = "initialized";
@@ -2421,7 +2418,7 @@ declare class Client extends ReplayEventEmitter<ClientEvents> {
2421
2418
  * @param conversationSid Conversation sid
2422
2419
  * @internal
2423
2420
  */
2424
- peekConversationBySid(conversationSid: string): Promise<Conversation>;
2421
+ private peekConversationBySid;
2425
2422
  /**
2426
2423
  * Get a known conversation by its unique identifier name.
2427
2424
  * @param uniqueName The unique identifier name of the conversation.
package/builds/lib.js CHANGED
@@ -7326,7 +7326,7 @@ function PushNotification(data) {
7326
7326
  this.data = data.data || {};
7327
7327
  });
7328
7328
 
7329
- var version = "2.2.0-rc.10";
7329
+ var version = "2.2.0-rc.13";
7330
7330
 
7331
7331
  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; }
7332
7332
 
@@ -7738,9 +7738,6 @@ exports.Client = Client_1 = (_class = /*#__PURE__*/function (_ReplayEventEmitter
7738
7738
 
7739
7739
  /**
7740
7740
  * Fired when the client has completed initialization successfully.
7741
- *
7742
- * Parameters:
7743
- * 1. object `data` - Optional info object provided with the event
7744
7741
  * @event
7745
7742
  */
7746
7743
 
@@ -7939,11 +7936,11 @@ exports.Client = Client_1 = (_class = /*#__PURE__*/function (_ReplayEventEmitter
7939
7936
  });
7940
7937
  };
7941
7938
 
7942
- _this._services.twilsockClient.on("connectionError", emitFailed);
7939
+ _this._services.twilsockClient.once("connectionError", emitFailed);
7943
7940
 
7944
- _this._services.twilsockClient.on("disconnected", emitDisconnected);
7941
+ _this._services.twilsockClient.once("disconnected", emitDisconnected);
7945
7942
 
7946
- _this._services.twilsockClient.on("connected", /*#__PURE__*/_asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee() {
7943
+ _this._services.twilsockClient.once("connected", /*#__PURE__*/_asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee() {
7947
7944
  var startupEvent, connectionError;
7948
7945
  return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
7949
7946
  while (1) {
@@ -8806,7 +8803,7 @@ exports.Client = Client_1 = (_class = /*#__PURE__*/function (_ReplayEventEmitter
8806
8803
  this._resolveEnsureReady();
8807
8804
 
8808
8805
  this.emit("stateChanged", "initialized");
8809
- this.emit("initialized", {});
8806
+ this.emit("initialized");
8810
8807
 
8811
8808
  case 34:
8812
8809
  case "end":