@stream-io/node-sdk 0.7.55 → 0.7.56
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 +25 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +25 -4
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/feeds/FeedsApi.d.ts +2 -1
- package/dist/src/gen/models/index.d.ts +39 -4
- package/package.json +1 -1
- package/src/gen/feeds/FeedsApi.ts +29 -3
- package/src/gen/model-decoders/decoders.ts +14 -0
- package/src/gen/models/index.ts +57 -8
package/dist/index.es.mjs
CHANGED
|
@@ -3034,6 +3034,12 @@ decoders.QueryReviewQueueResponse = (input) => {
|
|
|
3034
3034
|
};
|
|
3035
3035
|
return decode(typeMappings, input);
|
|
3036
3036
|
};
|
|
3037
|
+
decoders.QueryRevisionHistoryResponse = (input) => {
|
|
3038
|
+
const typeMappings = {
|
|
3039
|
+
revisions: { type: 'RevisionHistoryResponse', isSingle: false },
|
|
3040
|
+
};
|
|
3041
|
+
return decode(typeMappings, input);
|
|
3042
|
+
};
|
|
3037
3043
|
decoders.QuerySegmentTargetsResponse = (input) => {
|
|
3038
3044
|
const typeMappings = {
|
|
3039
3045
|
targets: { type: 'SegmentTargetResponse', isSingle: false },
|
|
@@ -3286,6 +3292,12 @@ decoders.ReviewQueueItemUpdatedEvent = (input) => {
|
|
|
3286
3292
|
};
|
|
3287
3293
|
return decode(typeMappings, input);
|
|
3288
3294
|
};
|
|
3295
|
+
decoders.RevisionHistoryResponse = (input) => {
|
|
3296
|
+
const typeMappings = {
|
|
3297
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
3298
|
+
};
|
|
3299
|
+
return decode(typeMappings, input);
|
|
3300
|
+
};
|
|
3289
3301
|
decoders.Role = (input) => {
|
|
3290
3302
|
const typeMappings = {
|
|
3291
3303
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -7936,7 +7948,7 @@ class ApiClient {
|
|
|
7936
7948
|
const headers = {
|
|
7937
7949
|
Authorization: this.apiConfig.token,
|
|
7938
7950
|
'stream-auth-type': 'jwt',
|
|
7939
|
-
'X-Stream-Client': 'stream-node-' + "0.7.
|
|
7951
|
+
'X-Stream-Client': 'stream-node-' + "0.7.56",
|
|
7940
7952
|
'Accept-Encoding': 'gzip',
|
|
7941
7953
|
'x-client-request-id': clientRequestId,
|
|
7942
7954
|
};
|
|
@@ -8990,7 +9002,6 @@ class FeedsApi {
|
|
|
8990
9002
|
const body = {
|
|
8991
9003
|
id: request?.id,
|
|
8992
9004
|
activity_selectors: request?.activity_selectors,
|
|
8993
|
-
activity_filter: request?.activity_filter,
|
|
8994
9005
|
aggregation: request?.aggregation,
|
|
8995
9006
|
ranking: request?.ranking,
|
|
8996
9007
|
};
|
|
@@ -9020,7 +9031,6 @@ class FeedsApi {
|
|
|
9020
9031
|
};
|
|
9021
9032
|
const body = {
|
|
9022
9033
|
activity_selectors: request?.activity_selectors,
|
|
9023
|
-
activity_filter: request?.activity_filter,
|
|
9024
9034
|
aggregation: request?.aggregation,
|
|
9025
9035
|
ranking: request?.ranking,
|
|
9026
9036
|
};
|
|
@@ -9034,7 +9044,6 @@ class FeedsApi {
|
|
|
9034
9044
|
};
|
|
9035
9045
|
const body = {
|
|
9036
9046
|
activity_selectors: request?.activity_selectors,
|
|
9037
|
-
activity_filter: request?.activity_filter,
|
|
9038
9047
|
aggregation: request?.aggregation,
|
|
9039
9048
|
ranking: request?.ranking,
|
|
9040
9049
|
};
|
|
@@ -9271,6 +9280,18 @@ class FeedsApi {
|
|
|
9271
9280
|
decoders.UpdateMembershipLevelResponse?.(response.body);
|
|
9272
9281
|
return { ...response.body, metadata: response.metadata };
|
|
9273
9282
|
}
|
|
9283
|
+
async queryRevisionHistory(request) {
|
|
9284
|
+
const body = {
|
|
9285
|
+
filter: request?.filter,
|
|
9286
|
+
limit: request?.limit,
|
|
9287
|
+
next: request?.next,
|
|
9288
|
+
prev: request?.prev,
|
|
9289
|
+
sort: request?.sort,
|
|
9290
|
+
};
|
|
9291
|
+
const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/revisions/query', undefined, undefined, body, 'application/json');
|
|
9292
|
+
decoders.QueryRevisionHistoryResponse?.(response.body);
|
|
9293
|
+
return { ...response.body, metadata: response.metadata };
|
|
9294
|
+
}
|
|
9274
9295
|
async queryFeedsUsageStats(request) {
|
|
9275
9296
|
const body = {
|
|
9276
9297
|
from: request?.from,
|