@stream-io/node-sdk 0.7.3 → 0.7.5
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 +16 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +16 -1
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/models/index.d.ts +18 -1
- package/package.json +1 -1
- package/src/gen/feeds/FeedsApi.ts +3 -0
- package/src/gen/model-decoders/decoders.ts +16 -0
- package/src/gen/models/index.ts +31 -2
package/dist/index.cjs.js
CHANGED
|
@@ -2896,6 +2896,18 @@ decoders.StopLiveResponse = (input) => {
|
|
|
2896
2896
|
};
|
|
2897
2897
|
return decode(typeMappings, input);
|
|
2898
2898
|
};
|
|
2899
|
+
decoders.StoriesFeedUpdatedEvent = (input) => {
|
|
2900
|
+
const typeMappings = {
|
|
2901
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2902
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
2903
|
+
aggregated_activities: {
|
|
2904
|
+
type: 'AggregatedActivityResponse',
|
|
2905
|
+
isSingle: false,
|
|
2906
|
+
},
|
|
2907
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
2908
|
+
};
|
|
2909
|
+
return decode(typeMappings, input);
|
|
2910
|
+
};
|
|
2899
2911
|
decoders.SubmitActionResponse = (input) => {
|
|
2900
2912
|
const typeMappings = {
|
|
2901
2913
|
item: { type: 'ReviewQueueItemResponse', isSingle: true },
|
|
@@ -6656,7 +6668,7 @@ class ApiClient {
|
|
|
6656
6668
|
const headers = {
|
|
6657
6669
|
Authorization: this.apiConfig.token,
|
|
6658
6670
|
'stream-auth-type': 'jwt',
|
|
6659
|
-
'X-Stream-Client': 'stream-node-' + "0.7.
|
|
6671
|
+
'X-Stream-Client': 'stream-node-' + "0.7.5",
|
|
6660
6672
|
'Accept-Encoding': 'gzip',
|
|
6661
6673
|
'x-client-request-id': clientRequestId,
|
|
6662
6674
|
};
|
|
@@ -7196,6 +7208,7 @@ class FeedsApi {
|
|
|
7196
7208
|
notification: request?.notification,
|
|
7197
7209
|
push_notification: request?.push_notification,
|
|
7198
7210
|
ranking: request?.ranking,
|
|
7211
|
+
stories: request?.stories,
|
|
7199
7212
|
};
|
|
7200
7213
|
const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/feed_groups', undefined, undefined, body, 'application/json');
|
|
7201
7214
|
decoders.CreateFeedGroupResponse?.(response.body);
|
|
@@ -7399,6 +7412,7 @@ class FeedsApi {
|
|
|
7399
7412
|
notification: request?.notification,
|
|
7400
7413
|
push_notification: request?.push_notification,
|
|
7401
7414
|
ranking: request?.ranking,
|
|
7415
|
+
stories: request?.stories,
|
|
7402
7416
|
};
|
|
7403
7417
|
const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/feed_groups/{id}', pathParams, undefined, body, 'application/json');
|
|
7404
7418
|
decoders.GetOrCreateFeedGroupResponse?.(response.body);
|
|
@@ -7416,6 +7430,7 @@ class FeedsApi {
|
|
|
7416
7430
|
notification: request?.notification,
|
|
7417
7431
|
push_notification: request?.push_notification,
|
|
7418
7432
|
ranking: request?.ranking,
|
|
7433
|
+
stories: request?.stories,
|
|
7419
7434
|
};
|
|
7420
7435
|
const response = await this.apiClient.sendRequest('PUT', '/api/v2/feeds/feed_groups/{id}', pathParams, undefined, body, 'application/json');
|
|
7421
7436
|
decoders.UpdateFeedGroupResponse?.(response.body);
|