@supernova-studio/client 0.55.29 → 0.55.31
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 +68 -1
- package/dist/index.d.ts +68 -1
- package/dist/index.js +25 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/workspaces/invitations.ts +10 -0
- package/src/api/endpoints/workspaces/workspace-invites.ts +17 -1
- package/src/yjs/docs-editor/mock.ts +2 -2
package/package.json
CHANGED
|
@@ -15,6 +15,16 @@ 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
|
+
|
|
18
26
|
export type DTOWorkspaceInvitationInput = z.infer<typeof DTOWorkspaceInvitationInput>;
|
|
19
27
|
export type DTOWorkspaceInvitationsListInput = z.infer<typeof DTOWorkspaceInvitationsListInput>;
|
|
20
28
|
export type DTOWorkspaceInvitationsResponse = z.infer<typeof DTOWorkspaceInvitationsResponse>;
|
|
29
|
+
export type DTOWorkspaceInviteUpdate = z.infer<typeof DTOWorkspaceInviteUpdate>;
|
|
30
|
+
export type DTOWorkspaceInvitationUpdateResponse = z.infer<typeof DTOWorkspaceInvitationUpdateResponse>;
|
|
@@ -1,9 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
DTOWorkspaceInvitationsResponse,
|
|
3
|
+
DTOWorkspaceInvitationUpdateResponse,
|
|
4
|
+
DTOWorkspaceInviteUpdate,
|
|
5
|
+
DTOWorkspaceResponse,
|
|
6
|
+
} from "../../dto";
|
|
2
7
|
import { RequestExecutor } from "../../transport";
|
|
3
8
|
|
|
4
9
|
export class WorkspaceInvitationsEndpoint {
|
|
5
10
|
constructor(private readonly requestExecutor: RequestExecutor) {}
|
|
6
11
|
|
|
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
|
+
|
|
7
23
|
list(workspaceId: string) {
|
|
8
24
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/invitations`, DTOWorkspaceInvitationsResponse, {
|
|
9
25
|
method: "GET",
|
|
@@ -1987,7 +1987,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
1987
1987
|
{
|
|
1988
1988
|
id: "grid",
|
|
1989
1989
|
name: "Grid",
|
|
1990
|
-
image: "
|
|
1990
|
+
image: "https://cdn-assets.supernova.io/blocks/variants/figma-component-grid.svg",
|
|
1991
1991
|
description: "Components or variants will be rendered individually in a grid layout",
|
|
1992
1992
|
layout: {
|
|
1993
1993
|
type: "Column",
|
|
@@ -2003,7 +2003,7 @@ const blocks: PageBlockDefinition[] = [
|
|
|
2003
2003
|
{
|
|
2004
2004
|
id: "canvas",
|
|
2005
2005
|
name: "Canvas",
|
|
2006
|
-
image: "
|
|
2006
|
+
image: "https://cdn-assets.supernova.io/blocks/variants/figma-component-canvas.svg",
|
|
2007
2007
|
description: "Components or variants will be rendered on a single canvas",
|
|
2008
2008
|
layout: {
|
|
2009
2009
|
type: "Column",
|