@stream-io/feeds-client 0.2.3 → 0.2.4
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/CHANGELOG.md +12 -0
- package/dist/index-react-bindings.browser.cjs +3 -1
- package/dist/index-react-bindings.browser.cjs.map +1 -1
- package/dist/index-react-bindings.browser.js +3 -1
- package/dist/index-react-bindings.browser.js.map +1 -1
- package/dist/index-react-bindings.node.cjs +3 -1
- package/dist/index-react-bindings.node.cjs.map +1 -1
- package/dist/index-react-bindings.node.js +3 -1
- package/dist/index-react-bindings.node.js.map +1 -1
- package/dist/index.browser.cjs +2 -2
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.js +2 -2
- package/dist/index.browser.js.map +1 -1
- package/dist/index.node.cjs +2 -2
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.js +2 -2
- package/dist/index.node.js.map +1 -1
- package/dist/src/common/search/FeedSearchSource.d.ts +2 -2
- package/dist/src/gen/models/index.d.ts +18 -8
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/common/search/BaseSearchSource.ts +1 -1
- package/src/common/search/FeedSearchSource.ts +3 -2
- package/src/gen/models/index.ts +26 -8
package/package.json
CHANGED
|
@@ -188,7 +188,7 @@ abstract class BaseSearchSourceBase<T> implements ISearchSource<T> {
|
|
|
188
188
|
const { items, next } = result;
|
|
189
189
|
|
|
190
190
|
const stateUpdate: Partial<SearchSourceState<T>> = {};
|
|
191
|
-
if (
|
|
191
|
+
if (Object.prototype.hasOwnProperty.call(result, 'next')) {
|
|
192
192
|
stateUpdate.next = next;
|
|
193
193
|
stateUpdate.hasNext = !!next;
|
|
194
194
|
} else {
|
|
@@ -9,14 +9,15 @@ export type FeedSearchSourceOptions = SearchSourceOptions & {
|
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export class FeedSearchSource extends BaseSearchSource<Feed> {
|
|
12
|
-
readonly type
|
|
12
|
+
readonly type: string;
|
|
13
|
+
readonly feedGroupId?: string | undefined;
|
|
13
14
|
private readonly client: FeedsClient;
|
|
14
|
-
private readonly feedGroupId?: string | undefined;
|
|
15
15
|
|
|
16
16
|
constructor(client: FeedsClient, options?: FeedSearchSourceOptions) {
|
|
17
17
|
super(options);
|
|
18
18
|
this.client = client;
|
|
19
19
|
this.feedGroupId = options?.groupId;
|
|
20
|
+
this.type = `${this.feedGroupId}-feed`;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
protected async query(searchQuery: string) {
|
package/src/gen/models/index.ts
CHANGED
|
@@ -2265,6 +2265,8 @@ export interface DeleteCommentResponse {
|
|
|
2265
2265
|
|
|
2266
2266
|
export interface DeleteFeedResponse {
|
|
2267
2267
|
duration: string;
|
|
2268
|
+
|
|
2269
|
+
task_id: string;
|
|
2268
2270
|
}
|
|
2269
2271
|
|
|
2270
2272
|
export interface DeleteMessageRequest {
|
|
@@ -2909,14 +2911,18 @@ export interface FeedUpdatedEvent {
|
|
|
2909
2911
|
user?: UserResponseCommonFields;
|
|
2910
2912
|
}
|
|
2911
2913
|
|
|
2912
|
-
export interface
|
|
2913
|
-
|
|
2914
|
+
export interface FeedsPreferences {
|
|
2915
|
+
comment?: string;
|
|
2916
|
+
|
|
2917
|
+
comment_reaction?: string;
|
|
2918
|
+
|
|
2919
|
+
follow?: string;
|
|
2914
2920
|
|
|
2915
|
-
|
|
2921
|
+
mention?: string;
|
|
2916
2922
|
|
|
2917
|
-
|
|
2923
|
+
reaction?: string;
|
|
2918
2924
|
|
|
2919
|
-
|
|
2925
|
+
custom_activity_types?: Record<string, string>;
|
|
2920
2926
|
}
|
|
2921
2927
|
|
|
2922
2928
|
export interface FeedsReactionResponse {
|
|
@@ -4551,9 +4557,9 @@ export interface PrivacySettingsResponse {
|
|
|
4551
4557
|
}
|
|
4552
4558
|
|
|
4553
4559
|
export interface PushNotificationConfig {
|
|
4554
|
-
|
|
4560
|
+
enable_push?: boolean;
|
|
4555
4561
|
|
|
4556
|
-
|
|
4562
|
+
push_types?: string[];
|
|
4557
4563
|
}
|
|
4558
4564
|
|
|
4559
4565
|
export interface PushPreferences {
|
|
@@ -4565,7 +4571,7 @@ export interface PushPreferences {
|
|
|
4565
4571
|
|
|
4566
4572
|
feeds_level?: string;
|
|
4567
4573
|
|
|
4568
|
-
|
|
4574
|
+
feeds_preferences?: FeedsPreferences;
|
|
4569
4575
|
}
|
|
4570
4576
|
|
|
4571
4577
|
export interface Quality {
|
|
@@ -5324,6 +5330,8 @@ export interface STTEgressConfig {
|
|
|
5324
5330
|
translation_languages?: string[];
|
|
5325
5331
|
|
|
5326
5332
|
external_storage?: ExternalStorage;
|
|
5333
|
+
|
|
5334
|
+
speech_segment_config?: SpeechSegmentConfig;
|
|
5327
5335
|
}
|
|
5328
5336
|
|
|
5329
5337
|
export interface ScreensharingSettings {
|
|
@@ -5450,6 +5458,12 @@ export interface SortParamRequest {
|
|
|
5450
5458
|
field?: string;
|
|
5451
5459
|
}
|
|
5452
5460
|
|
|
5461
|
+
export interface SpeechSegmentConfig {
|
|
5462
|
+
max_speech_caption_ms?: number;
|
|
5463
|
+
|
|
5464
|
+
silence_duration_ms?: number;
|
|
5465
|
+
}
|
|
5466
|
+
|
|
5453
5467
|
export interface StoriesConfig {
|
|
5454
5468
|
expiration_behaviour?: 'hide_for_everyone' | 'visible_for_author';
|
|
5455
5469
|
|
|
@@ -5653,6 +5667,8 @@ export interface TranscriptionSettings {
|
|
|
5653
5667
|
| 'sk';
|
|
5654
5668
|
|
|
5655
5669
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
5670
|
+
|
|
5671
|
+
speech_segment_config?: SpeechSegmentConfig;
|
|
5656
5672
|
}
|
|
5657
5673
|
|
|
5658
5674
|
export interface TranscriptionSettingsResponse {
|
|
@@ -5698,6 +5714,8 @@ export interface TranscriptionSettingsResponse {
|
|
|
5698
5714
|
| 'sk';
|
|
5699
5715
|
|
|
5700
5716
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
5717
|
+
|
|
5718
|
+
speech_segment_config?: SpeechSegmentConfig;
|
|
5701
5719
|
}
|
|
5702
5720
|
|
|
5703
5721
|
export interface TypingIndicators {
|