From 218689cfe5e34533cb4ca1a919b0a36073f0932a Mon Sep 17 00:00:00 2001 From: zoranmiladinoski Date: Mon, 11 Aug 2025 16:05:21 +0200 Subject: [PATCH 1/2] expand getOrCreateFeedGroupRequest with ranking, aggregation config, activity_selectors, activity_processors --- src/gen/feeds/FeedsApi.ts | 32 ++++---------------------------- src/gen/models/index.ts | 8 ++++++++ 2 files changed, 12 insertions(+), 28 deletions(-) diff --git a/src/gen/feeds/FeedsApi.ts b/src/gen/feeds/FeedsApi.ts index 60ab1e3..7583395 100644 --- a/src/gen/feeds/FeedsApi.ts +++ b/src/gen/feeds/FeedsApi.ts @@ -1426,8 +1426,12 @@ export class FeedsApi { }; const body = { default_visibility: request?.default_visibility, + activity_processors: request?.activity_processors, + activity_selectors: request?.activity_selectors, + aggregation: request?.aggregation, custom: request?.custom, notification: request?.notification, + ranking: request?.ranking, }; const response = await this.apiClient.sendRequest< @@ -1832,34 +1836,6 @@ export class FeedsApi { return { ...response.body, metadata: response.metadata }; } - async createMembershipLevel( - request: CreateMembershipLevelRequest, - ): Promise> { - const body = { - id: request?.id, - name: request?.name, - description: request?.description, - priority: request?.priority, - tags: request?.tags, - custom: request?.custom, - }; - - const response = await this.apiClient.sendRequest< - StreamResponse - >( - 'POST', - '/api/v2/feeds/membership_levels', - undefined, - undefined, - body, - 'application/json', - ); - - decoders.CreateMembershipLevelResponse?.(response.body); - - return { ...response.body, metadata: response.metadata }; - } - async unfollowBatch( request: UnfollowBatchRequest, ): Promise> { diff --git a/src/gen/models/index.ts b/src/gen/models/index.ts index 87efd08..d58930d 100644 --- a/src/gen/models/index.ts +++ b/src/gen/models/index.ts @@ -6169,9 +6169,17 @@ export interface GetOrCreateFeedGroupRequest { | 'members' | 'private'; + activity_processors?: ActivityProcessorConfig[]; + + activity_selectors?: ActivitySelectorConfig[]; + + aggregation?: AggregationConfig; + custom?: Record; notification?: NotificationConfig; + + ranking?: RankingConfig; } export interface GetOrCreateFeedGroupResponse { From 31e53dd5d5ca84f1fdc5f1d76cd8f40a359d9bfa Mon Sep 17 00:00:00 2001 From: zoranmiladinoski Date: Mon, 11 Aug 2025 16:12:36 +0200 Subject: [PATCH 2/2] revert deleted code --- src/gen/feeds/FeedsApi.ts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/gen/feeds/FeedsApi.ts b/src/gen/feeds/FeedsApi.ts index 7583395..3b0a3af 100644 --- a/src/gen/feeds/FeedsApi.ts +++ b/src/gen/feeds/FeedsApi.ts @@ -1836,6 +1836,34 @@ export class FeedsApi { return { ...response.body, metadata: response.metadata }; } + async createMembershipLevel( + request: CreateMembershipLevelRequest, + ): Promise> { + const body = { + id: request?.id, + name: request?.name, + description: request?.description, + priority: request?.priority, + tags: request?.tags, + custom: request?.custom, + }; + + const response = await this.apiClient.sendRequest< + StreamResponse + >( + 'POST', + '/api/v2/feeds/membership_levels', + undefined, + undefined, + body, + 'application/json', + ); + + decoders.CreateMembershipLevelResponse?.(response.body); + + return { ...response.body, metadata: response.metadata }; + } + async unfollowBatch( request: UnfollowBatchRequest, ): Promise> {