File tree Expand file tree Collapse file tree 1 file changed +0
-34
lines changed Expand file tree Collapse file tree 1 file changed +0
-34
lines changed Original file line number Diff line number Diff line change @@ -858,40 +858,6 @@ class BusinessService extends Base {
858
858
return json as unknown as Business ;
859
859
}
860
860
861
- /**
862
- * Create a new business ("Lens Business ID").
863
- */
864
- async createOne (
865
- business : Omit <
866
- Business ,
867
- | "id"
868
- | "createdAt"
869
- | "updatedAt"
870
- | "businessUsers"
871
- | "external"
872
- | "ssoAutoJoin"
873
- | "businessIdLiteSubscriptionId"
874
- | "verifiedDomains"
875
- | "createdById"
876
- > & {
877
- id ?: string ;
878
- verifiedDomains : Array < {
879
- domain : string ;
880
- } > ;
881
- } ,
882
- ) : Promise < Business > {
883
- const { apiEndpointAddress, fetch } = this . lensPlatformClient ;
884
- const url = `${ apiEndpointAddress } /businesses` ;
885
- const json = await throwExpected ( async ( ) => fetch . post ( url , business ) , {
886
- 400 : ( error ) => new BadRequestException ( error ?. body . message ) ,
887
- 422 : ( error ) => new UnprocessableEntityException ( error ?. body . message ) ,
888
- 403 : ( error ) => new ForbiddenException ( error ?. body . message ) ,
889
- 409 : ( error ) => new ForbiddenException ( error ?. body . message ) ,
890
- } ) ;
891
-
892
- return json as unknown as Business ;
893
- }
894
-
895
861
/**
896
862
* Update an existing business ("Lens Business ID").
897
863
*/
You can’t perform that action at this time.
0 commit comments