@stream-io/node-sdk 0.1.10 → 0.1.11

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/dist/index.es.js CHANGED
@@ -6029,11 +6029,11 @@ class StreamChannel {
6029
6029
  return this.eventsApi.sendEvent(Object.assign(Object.assign({}, this.baseRequest), { sendEventRequest: { event } }));
6030
6030
  };
6031
6031
  const configuration = this.streamClient.getConfiguration();
6032
- // @ts-expect-error typing problem
6032
+ /** @ts-expect-error */
6033
6033
  this.channelsApi = new ChannelsApi(configuration);
6034
- // @ts-expect-error typing problem
6034
+ /** @ts-expect-error */
6035
6035
  this.messagesApi = new MessagesApi(configuration);
6036
- // @ts-expect-error typing problem
6036
+ /** @ts-expect-error */
6037
6037
  this.eventsApi = new EventsApi(configuration);
6038
6038
  }
6039
6039
  get cid() {
@@ -6121,13 +6121,13 @@ class StreamChatClient {
6121
6121
  return this.commandsApi.deleteCommand(request);
6122
6122
  };
6123
6123
  const configuration = this.streamClient.getConfiguration();
6124
- // @ts-expect-error typing problem
6124
+ /** @ts-expect-error */
6125
6125
  this.settingsApi = new SettingsApi$1(configuration);
6126
- // @ts-expect-error typing problem
6126
+ /** @ts-expect-error */
6127
6127
  this.channelTypesApi = new ChannelTypesApi(configuration);
6128
- // @ts-expect-error typing problem
6128
+ /** @ts-expect-error */
6129
6129
  this.channelsApi = new ChannelsApi(configuration);
6130
- // @ts-expect-error typing problem
6130
+ /** @ts-expect-error */
6131
6131
  this.commandsApi = new CustomCommandsApi(configuration);
6132
6132
  }
6133
6133
  }
@@ -8399,7 +8399,7 @@ class StreamClient {
8399
8399
  this.queryUsers = (payload) => __awaiter(this, void 0, void 0, function* () {
8400
8400
  payload.user = this.mapCustomDataBeforeSend(payload.user);
8401
8401
  const response = yield this.usersApi.queryUsers({ payload });
8402
- // @ts-expect-error typing problem
8402
+ /** @ts-expect-error */
8403
8403
  response.users = response.users.map((u) => this.mapCustomDataAfterReceive(u));
8404
8404
  return response;
8405
8405
  });
@@ -8439,7 +8439,7 @@ class StreamClient {
8439
8439
  });
8440
8440
  this.updateUsersPartial = (request) => __awaiter(this, void 0, void 0, function* () {
8441
8441
  const response = yield this.usersApi.updateUsersPartial({
8442
- // @ts-expect-error typing error
8442
+ /** @ts-expect-error */
8443
8443
  updateUserPartialRequest: request,
8444
8444
  });
8445
8445
  Object.keys(response.users).forEach((key) => {
@@ -8526,7 +8526,7 @@ class StreamClient {
8526
8526
  ? 'https://chat.stream-io-api.com'
8527
8527
  : 'https://video.stream-io-api.com'),
8528
8528
  headers: {
8529
- 'X-Stream-Client': 'stream-node-' + "0.1.10",
8529
+ 'X-Stream-Client': 'stream-node-' + "0.1.11",
8530
8530
  },
8531
8531
  middleware: [
8532
8532
  {
@@ -8620,23 +8620,23 @@ class StreamClient {
8620
8620
  this.options.timeout = (_a = config === null || config === void 0 ? void 0 : config.timeout) !== null && _a !== void 0 ? _a : StreamClient.DEFAULT_TIMEOUT;
8621
8621
  }
8622
8622
  const chatConfiguration = this.getConfiguration();
8623
- // @ts-expect-error typing problem
8623
+ /** @ts-expect-error */
8624
8624
  this.usersApi = new UsersApi(chatConfiguration);
8625
- // @ts-expect-error typing problem
8625
+ /** @ts-expect-error */
8626
8626
  this.devicesApi = new DevicesApi(chatConfiguration);
8627
- // @ts-expect-error typing problem
8627
+ /** @ts-expect-error */
8628
8628
  this.pushApi = new PushApi(chatConfiguration);
8629
- // @ts-expect-error typing problem
8629
+ /** @ts-expect-error */
8630
8630
  this.serversideApi = new ServerSideApi$1(chatConfiguration);
8631
- // @ts-expect-error typing problem
8631
+ /** @ts-expect-error */
8632
8632
  this.testingApi = new TestingApi(chatConfiguration);
8633
- // @ts-expect-error typing problem
8633
+ /** @ts-expect-error */
8634
8634
  this.permissionsApi = new PermissionsV2Api(chatConfiguration);
8635
- // @ts-expect-error typing problem
8635
+ /** @ts-expect-error */
8636
8636
  this.settingsApi = new SettingsApi$1(chatConfiguration);
8637
- // @ts-expect-error typing problem
8637
+ /** @ts-expect-error */
8638
8638
  this.eventsApi = new EventsApi(chatConfiguration);
8639
- // @ts-expect-error typing problem
8639
+ /** @ts-expect-error */
8640
8640
  this.tasksApi = new TasksApi(chatConfiguration);
8641
8641
  }
8642
8642
  /**
@@ -8684,7 +8684,7 @@ class StreamClient {
8684
8684
  if (!user) {
8685
8685
  return undefined;
8686
8686
  }
8687
- // @ts-expect-error typing problem
8687
+ /** @ts-expect-error */
8688
8688
  const result = {};
8689
8689
  Object.keys(user).forEach((key) => {
8690
8690
  if (!this.reservedKeywords.includes(key)) {