Skip to content

Commit 378061d

Browse files
chore: remove create business method (#599)
1 parent 2a2d9dc commit 378061d

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

src/BusinessService.ts

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -858,40 +858,6 @@ class BusinessService extends Base {
858858
return json as unknown as Business;
859859
}
860860

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-
895861
/**
896862
* Update an existing business ("Lens Business ID").
897863
*/

0 commit comments

Comments
 (0)