Skip to content

Commit e662fb7

Browse files
authored
feat: Add enrichment options for getOrCreateFeed (#173)
🎫 Ticket: https://linear.app/stream/issue/FEEDS-1000 πŸ“‘ Docs: https://github.com/GetStream/docs-content/pull/<id> ### πŸ’‘ Overview ### πŸ“ Implementation notes
1 parent 4355730 commit e662fb7

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

β€Žpackages/feeds-client/src/gen/feeds/FeedsApi.tsβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,12 +1281,14 @@ export class FeedsApi {
12811281
feed_id: request?.feed_id,
12821282
};
12831283
const body = {
1284+
id_around: request?.id_around,
12841285
limit: request?.limit,
12851286
next: request?.next,
12861287
prev: request?.prev,
12871288
view: request?.view,
12881289
watch: request?.watch,
12891290
data: request?.data,
1291+
enrichment_options: request?.enrichment_options,
12901292
external_ranking: request?.external_ranking,
12911293
filter: request?.filter,
12921294
followers_pagination: request?.followers_pagination,

β€Žpackages/feeds-client/src/gen/models/index.tsβ€Ž

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2412,6 +2412,42 @@ export interface EnrichedReaction {
24122412
user?: Data;
24132413
}
24142414

2415+
export interface EnrichmentOptions {
2416+
skip_activity?: boolean;
2417+
2418+
skip_activity_collections?: boolean;
2419+
2420+
skip_activity_comments?: boolean;
2421+
2422+
skip_activity_current_feed?: boolean;
2423+
2424+
skip_activity_mentioned_users?: boolean;
2425+
2426+
skip_activity_own_bookmarks?: boolean;
2427+
2428+
skip_activity_parents?: boolean;
2429+
2430+
skip_activity_poll?: boolean;
2431+
2432+
skip_activity_reactions?: boolean;
2433+
2434+
skip_activity_refresh_image_urls?: boolean;
2435+
2436+
skip_all?: boolean;
2437+
2438+
skip_feed_member_user?: boolean;
2439+
2440+
skip_followers?: boolean;
2441+
2442+
skip_following?: boolean;
2443+
2444+
skip_own_capabilities?: boolean;
2445+
2446+
skip_own_follows?: boolean;
2447+
2448+
skip_pins?: boolean;
2449+
}
2450+
24152451
export interface EntityCreatorResponse {
24162452
ban_count: number;
24172453

@@ -3212,6 +3248,8 @@ export interface GetOGResponse {
32123248
}
32133249

32143250
export interface GetOrCreateFeedRequest {
3251+
id_around?: string;
3252+
32153253
limit?: number;
32163254

32173255
next?: string;
@@ -3224,6 +3262,8 @@ export interface GetOrCreateFeedRequest {
32243262

32253263
data?: FeedInput;
32263264

3265+
enrichment_options?: EnrichmentOptions;
3266+
32273267
external_ranking?: Record<string, any>;
32283268

32293269
filter?: Record<string, any>;

0 commit comments

Comments
Β (0)