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