@wacht/jsx 0.0.1-alpha.43 → 0.0.1-alpha.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -970,7 +970,7 @@ export declare const useActiveWorkspace: () => {
|
|
|
970
970
|
getRoles: () => Promise<WorkspaceRole[]>;
|
|
971
971
|
createRole: (name: string, permissions: string[]) => Promise<WorkspaceRole | undefined>;
|
|
972
972
|
deleteRole: (role: WorkspaceRole) => Promise<unknown>;
|
|
973
|
-
inviteMember: (email: string, workspaceRoleId
|
|
973
|
+
inviteMember: (email: string, workspaceRoleId?: string) => Promise<unknown>;
|
|
974
974
|
removeMember: (memberId: string) => Promise<unknown>;
|
|
975
975
|
addMemberRole: (membershipId: string, roleId: string) => Promise<unknown>;
|
|
976
976
|
removeMemberRole: (membershipId: string, roleId: string) => Promise<unknown>;
|
|
@@ -1406,7 +1406,7 @@ export declare const useWorkspaceList: () => {
|
|
|
1406
1406
|
addWorkspaceMemberRole: (workspace: Workspace, membershipId: string, roleId: string) => Promise<unknown>;
|
|
1407
1407
|
removeWorkspaceMemberRole: (workspace: Workspace, membershipId: string, roleId: string) => Promise<unknown>;
|
|
1408
1408
|
getWorkspaceInvitations: (workspace: WorkspaceWithOrganization) => Promise<any[]>;
|
|
1409
|
-
createWorkspaceInvitation: (workspace: WorkspaceWithOrganization, email: string, workspaceRoleId
|
|
1409
|
+
createWorkspaceInvitation: (workspace: WorkspaceWithOrganization, email: string, workspaceRoleId?: string) => Promise<unknown>;
|
|
1410
1410
|
discardWorkspaceInvitation: (workspace: WorkspaceWithOrganization, invitationId: string) => Promise<unknown>;
|
|
1411
1411
|
resendWorkspaceInvitation: (workspace: WorkspaceWithOrganization, invitationId: string) => Promise<unknown>;
|
|
1412
1412
|
};
|
package/dist/index.es.js
CHANGED
|
@@ -2050,7 +2050,7 @@ const Pi = () => {
|
|
|
2050
2050
|
), C = W(
|
|
2051
2051
|
async (w, b, f) => {
|
|
2052
2052
|
const $ = new FormData();
|
|
2053
|
-
return $.append("email", b), $.append("workspace_id", w.id), $.append("workspace_role_id", f), (await q(
|
|
2053
|
+
return $.append("email", b), $.append("workspace_id", w.id), f && $.append("workspace_role_id", f), (await q(
|
|
2054
2054
|
await a(`/organizations/${w.organization.id}/invitations`, {
|
|
2055
2055
|
method: "POST",
|
|
2056
2056
|
body: $
|