@supernova-studio/client 0.55.31 → 0.55.32
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.d.mts +1 -68
- package/dist/index.d.ts +1 -68
- package/dist/index.js +3 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -22
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/workspaces/invitations.ts +0 -10
- package/src/api/endpoints/workspaces/workspace-invites.ts +1 -17
package/package.json
CHANGED
|
@@ -15,16 +15,6 @@ export const DTOWorkspaceInvitationsResponse = z.object({
|
|
|
15
15
|
invitations: WorkspaceInvitation.array(),
|
|
16
16
|
});
|
|
17
17
|
|
|
18
|
-
export const DTOWorkspaceInviteUpdate = z.object({
|
|
19
|
-
role: WorkspaceRoleSchema,
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
export const DTOWorkspaceInvitationUpdateResponse = z.object({
|
|
23
|
-
invitation: WorkspaceInvitation,
|
|
24
|
-
});
|
|
25
|
-
|
|
26
18
|
export type DTOWorkspaceInvitationInput = z.infer<typeof DTOWorkspaceInvitationInput>;
|
|
27
19
|
export type DTOWorkspaceInvitationsListInput = z.infer<typeof DTOWorkspaceInvitationsListInput>;
|
|
28
20
|
export type DTOWorkspaceInvitationsResponse = z.infer<typeof DTOWorkspaceInvitationsResponse>;
|
|
29
|
-
export type DTOWorkspaceInviteUpdate = z.infer<typeof DTOWorkspaceInviteUpdate>;
|
|
30
|
-
export type DTOWorkspaceInvitationUpdateResponse = z.infer<typeof DTOWorkspaceInvitationUpdateResponse>;
|
|
@@ -1,25 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DTOWorkspaceInvitationsResponse,
|
|
3
|
-
DTOWorkspaceInvitationUpdateResponse,
|
|
4
|
-
DTOWorkspaceInviteUpdate,
|
|
5
|
-
DTOWorkspaceResponse,
|
|
6
|
-
} from "../../dto";
|
|
1
|
+
import { DTOWorkspaceInvitationsResponse, DTOWorkspaceResponse } from "../../dto";
|
|
7
2
|
import { RequestExecutor } from "../../transport";
|
|
8
3
|
|
|
9
4
|
export class WorkspaceInvitationsEndpoint {
|
|
10
5
|
constructor(private readonly requestExecutor: RequestExecutor) {}
|
|
11
6
|
|
|
12
|
-
update(workspaceId: string, invitationId: string, body: DTOWorkspaceInviteUpdate) {
|
|
13
|
-
return this.requestExecutor.json(
|
|
14
|
-
`/workspaces/${workspaceId}/invitations/${invitationId}/role`,
|
|
15
|
-
DTOWorkspaceInvitationUpdateResponse,
|
|
16
|
-
{
|
|
17
|
-
method: "PUT",
|
|
18
|
-
body,
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
7
|
list(workspaceId: string) {
|
|
24
8
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/invitations`, DTOWorkspaceInvitationsResponse, {
|
|
25
9
|
method: "GET",
|