@stream-io/node-sdk 0.7.0 → 0.7.1
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.
|
@@ -332,6 +332,13 @@ export interface ActivityResponse {
|
|
|
332
332
|
poll?: PollResponseData;
|
|
333
333
|
}
|
|
334
334
|
export interface ActivitySelectorConfig {
|
|
335
|
+
cutoff_time?: string;
|
|
336
|
+
min_popularity?: number;
|
|
337
|
+
type?: string;
|
|
338
|
+
sort?: SortParam[];
|
|
339
|
+
filter?: Record<string, any>;
|
|
340
|
+
}
|
|
341
|
+
export interface ActivitySelectorConfigResponse {
|
|
335
342
|
cutoff_time?: Date;
|
|
336
343
|
min_popularity?: number;
|
|
337
344
|
type?: string;
|
|
@@ -2991,7 +2998,7 @@ export interface FeedGroupResponse {
|
|
|
2991
2998
|
updated_at: Date;
|
|
2992
2999
|
default_visibility?: string;
|
|
2993
3000
|
activity_processors?: ActivityProcessorConfig[];
|
|
2994
|
-
activity_selectors?:
|
|
3001
|
+
activity_selectors?: ActivitySelectorConfigResponse[];
|
|
2995
3002
|
aggregation?: AggregationConfig;
|
|
2996
3003
|
custom?: Record<string, any>;
|
|
2997
3004
|
notification?: NotificationConfig;
|
|
@@ -3133,7 +3140,7 @@ export interface FeedViewResponse {
|
|
|
3133
3140
|
id: string;
|
|
3134
3141
|
last_used_at?: Date;
|
|
3135
3142
|
activity_processors?: ActivityProcessorConfig[];
|
|
3136
|
-
activity_selectors?:
|
|
3143
|
+
activity_selectors?: ActivitySelectorConfigResponse[];
|
|
3137
3144
|
aggregation?: AggregationConfig;
|
|
3138
3145
|
ranking?: RankingConfig;
|
|
3139
3146
|
}
|
package/package.json
CHANGED
|
@@ -225,6 +225,13 @@ decoders.ActivityResponse = (input?: Record<string, any>) => {
|
|
|
225
225
|
};
|
|
226
226
|
|
|
227
227
|
decoders.ActivitySelectorConfig = (input?: Record<string, any>) => {
|
|
228
|
+
const typeMappings: TypeMapping = {
|
|
229
|
+
cutoff_time: { type: 'StringType', isSingle: true },
|
|
230
|
+
};
|
|
231
|
+
return decode(typeMappings, input);
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
decoders.ActivitySelectorConfigResponse = (input?: Record<string, any>) => {
|
|
228
235
|
const typeMappings: TypeMapping = {
|
|
229
236
|
cutoff_time: { type: 'DatetimeType', isSingle: true },
|
|
230
237
|
};
|
|
@@ -1903,7 +1910,10 @@ decoders.FeedGroupResponse = (input?: Record<string, any>) => {
|
|
|
1903
1910
|
|
|
1904
1911
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1905
1912
|
|
|
1906
|
-
activity_selectors: {
|
|
1913
|
+
activity_selectors: {
|
|
1914
|
+
type: 'ActivitySelectorConfigResponse',
|
|
1915
|
+
isSingle: false,
|
|
1916
|
+
},
|
|
1907
1917
|
};
|
|
1908
1918
|
return decode(typeMappings, input);
|
|
1909
1919
|
};
|
|
@@ -1996,7 +2006,10 @@ decoders.FeedViewResponse = (input?: Record<string, any>) => {
|
|
|
1996
2006
|
const typeMappings: TypeMapping = {
|
|
1997
2007
|
last_used_at: { type: 'DatetimeType', isSingle: true },
|
|
1998
2008
|
|
|
1999
|
-
activity_selectors: {
|
|
2009
|
+
activity_selectors: {
|
|
2010
|
+
type: 'ActivitySelectorConfigResponse',
|
|
2011
|
+
isSingle: false,
|
|
2012
|
+
},
|
|
2000
2013
|
};
|
|
2001
2014
|
return decode(typeMappings, input);
|
|
2002
2015
|
};
|
package/src/gen/models/index.ts
CHANGED
|
@@ -595,6 +595,18 @@ export interface ActivityResponse {
|
|
|
595
595
|
}
|
|
596
596
|
|
|
597
597
|
export interface ActivitySelectorConfig {
|
|
598
|
+
cutoff_time?: string;
|
|
599
|
+
|
|
600
|
+
min_popularity?: number;
|
|
601
|
+
|
|
602
|
+
type?: string;
|
|
603
|
+
|
|
604
|
+
sort?: SortParam[];
|
|
605
|
+
|
|
606
|
+
filter?: Record<string, any>;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
export interface ActivitySelectorConfigResponse {
|
|
598
610
|
cutoff_time?: Date;
|
|
599
611
|
|
|
600
612
|
min_popularity?: number;
|
|
@@ -5257,7 +5269,7 @@ export interface FeedGroupResponse {
|
|
|
5257
5269
|
|
|
5258
5270
|
activity_processors?: ActivityProcessorConfig[];
|
|
5259
5271
|
|
|
5260
|
-
activity_selectors?:
|
|
5272
|
+
activity_selectors?: ActivitySelectorConfigResponse[];
|
|
5261
5273
|
|
|
5262
5274
|
aggregation?: AggregationConfig;
|
|
5263
5275
|
|
|
@@ -5493,7 +5505,7 @@ export interface FeedViewResponse {
|
|
|
5493
5505
|
|
|
5494
5506
|
activity_processors?: ActivityProcessorConfig[];
|
|
5495
5507
|
|
|
5496
|
-
activity_selectors?:
|
|
5508
|
+
activity_selectors?: ActivitySelectorConfigResponse[];
|
|
5497
5509
|
|
|
5498
5510
|
aggregation?: AggregationConfig;
|
|
5499
5511
|
|