Skip to content

Commit 31e53dd

Browse files
committed
revert deleted code
1 parent 218689c commit 31e53dd

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/gen/feeds/FeedsApi.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1836,6 +1836,34 @@ export class FeedsApi {
18361836
return { ...response.body, metadata: response.metadata };
18371837
}
18381838

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

0 commit comments

Comments
 (0)