Skip to content

Commit 218689c

Browse files
committed
expand getOrCreateFeedGroupRequest with ranking, aggregation config, activity_selectors, activity_processors
1 parent c141163 commit 218689c

File tree

2 files changed

+12
-28
lines changed

2 files changed

+12
-28
lines changed

src/gen/feeds/FeedsApi.ts

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,8 +1426,12 @@ export class FeedsApi {
14261426
};
14271427
const body = {
14281428
default_visibility: request?.default_visibility,
1429+
activity_processors: request?.activity_processors,
1430+
activity_selectors: request?.activity_selectors,
1431+
aggregation: request?.aggregation,
14291432
custom: request?.custom,
14301433
notification: request?.notification,
1434+
ranking: request?.ranking,
14311435
};
14321436

14331437
const response = await this.apiClient.sendRequest<
@@ -1832,34 +1836,6 @@ export class FeedsApi {
18321836
return { ...response.body, metadata: response.metadata };
18331837
}
18341838

1835-
async createMembershipLevel(
1836-
request: CreateMembershipLevelRequest,
1837-
): Promise<StreamResponse<CreateMembershipLevelResponse>> {
1838-
const body = {
1839-
id: request?.id,
1840-
name: request?.name,
1841-
description: request?.description,
1842-
priority: request?.priority,
1843-
tags: request?.tags,
1844-
custom: request?.custom,
1845-
};
1846-
1847-
const response = await this.apiClient.sendRequest<
1848-
StreamResponse<CreateMembershipLevelResponse>
1849-
>(
1850-
'POST',
1851-
'/api/v2/feeds/membership_levels',
1852-
undefined,
1853-
undefined,
1854-
body,
1855-
'application/json',
1856-
);
1857-
1858-
decoders.CreateMembershipLevelResponse?.(response.body);
1859-
1860-
return { ...response.body, metadata: response.metadata };
1861-
}
1862-
18631839
async unfollowBatch(
18641840
request: UnfollowBatchRequest,
18651841
): Promise<StreamResponse<UnfollowBatchResponse>> {

src/gen/models/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6169,9 +6169,17 @@ export interface GetOrCreateFeedGroupRequest {
61696169
| 'members'
61706170
| 'private';
61716171

6172+
activity_processors?: ActivityProcessorConfig[];
6173+
6174+
activity_selectors?: ActivitySelectorConfig[];
6175+
6176+
aggregation?: AggregationConfig;
6177+
61726178
custom?: Record<string, any>;
61736179

61746180
notification?: NotificationConfig;
6181+
6182+
ranking?: RankingConfig;
61756183
}
61766184

61776185
export interface GetOrCreateFeedGroupResponse {

0 commit comments

Comments
 (0)