Skip to content

Commit

Permalink
feat: remove DISASSOCIATION_NOT_ALLOWED_ERROR
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus committed Sep 12, 2023
1 parent c57a784 commit e110712
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 36 deletions.
13 changes: 4 additions & 9 deletions lib/build/recipe/multitenancy/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,10 @@ export default class Wrapper {
tenantId: string,
recipeUserId: RecipeUserId,
userContext?: any
): Promise<
| {
status: "OK";
wasAssociated: boolean;
}
| {
status: "DISASSOCIATION_NOT_ALLOWED_ERROR";
}
>;
): Promise<{
status: "OK";
wasAssociated: boolean;
}>;
}
export declare let init: typeof Recipe.init;
export declare let createOrUpdateTenant: typeof Wrapper.createOrUpdateTenant;
Expand Down
13 changes: 4 additions & 9 deletions lib/build/recipe/multitenancy/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,10 @@ export declare type RecipeInterface = {
tenantId: string;
recipeUserId: RecipeUserId;
userContext: any;
}) => Promise<
| {
status: "OK";
wasAssociated: boolean;
}
| {
status: "DISASSOCIATION_NOT_ALLOWED_ERROR";
}
>;
}) => Promise<{
status: "OK";
wasAssociated: boolean;
}>;
};
export declare type APIOptions = {
recipeImplementation: RecipeInterface;
Expand Down
13 changes: 4 additions & 9 deletions lib/ts/recipe/multitenancy/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,10 @@ export default class Wrapper {
tenantId: string,
recipeUserId: RecipeUserId,
userContext?: any
): Promise<
| {
status: "OK";
wasAssociated: boolean;
}
| {
status: "DISASSOCIATION_NOT_ALLOWED_ERROR";
}
> {
): Promise<{
status: "OK";
wasAssociated: boolean;
}> {
const recipeInstance = Recipe.getInstanceOrThrowError();
return recipeInstance.recipeInterfaceImpl.disassociateUserFromTenant({
tenantId,
Expand Down
13 changes: 4 additions & 9 deletions lib/ts/recipe/multitenancy/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,10 @@ export type RecipeInterface = {
tenantId: string;
recipeUserId: RecipeUserId;
userContext: any;
}) => Promise<
| {
status: "OK";
wasAssociated: boolean;
}
| {
status: "DISASSOCIATION_NOT_ALLOWED_ERROR";
}
>;
}) => Promise<{
status: "OK";
wasAssociated: boolean;
}>;
};

export type APIOptions = {
Expand Down

0 comments on commit e110712

Please sign in to comment.