File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff 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 > > {
You can’t perform that action at this time.
0 commit comments