@supernova-studio/client 0.58.19 → 1.0.0-alpha.2
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 +1349 -1323
- package/dist/index.d.ts +1349 -1323
- package/dist/index.js +463 -339
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +766 -642
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -3
- package/src/api/client.ts +0 -31
- package/src/api/conversion/documentation/documentation-group-v1-to-dto.ts +0 -114
- package/src/api/conversion/documentation/documentation-group-v2-to-dto.ts +0 -92
- package/src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts +0 -52
- package/src/api/conversion/documentation/documentation-item-configuration-v2-to-dto.ts +0 -34
- package/src/api/conversion/documentation/documentation-page-to-dto-utils.ts +0 -131
- package/src/api/conversion/documentation/documentation-page-v1-to-dto.ts +0 -69
- package/src/api/conversion/documentation/documentation-page-v2-to-dto.ts +0 -72
- package/src/api/conversion/documentation/index.ts +0 -7
- package/src/api/conversion/export/index.ts +0 -1
- package/src/api/conversion/export/pipeline.ts +0 -25
- package/src/api/conversion/index.ts +0 -3
- package/src/api/conversion/integrations/git.ts +0 -37
- package/src/api/conversion/integrations/index.ts +0 -2
- package/src/api/conversion/integrations/integration.ts +0 -37
- package/src/api/dto/aux/color.ts +0 -7
- package/src/api/dto/aux/index.ts +0 -3
- package/src/api/dto/aux/meta.ts +0 -8
- package/src/api/dto/aux/pagination.ts +0 -8
- package/src/api/dto/bff/app-bootstrap-data.ts +0 -20
- package/src/api/dto/bff/index.ts +0 -1
- package/src/api/dto/collections/index.ts +0 -1
- package/src/api/dto/collections/token-collection.ts +0 -24
- package/src/api/dto/design-systems/brand.ts +0 -44
- package/src/api/dto/design-systems/component.ts +0 -40
- package/src/api/dto/design-systems/contact.ts +0 -11
- package/src/api/dto/design-systems/data-source.ts +0 -141
- package/src/api/dto/design-systems/design-system.ts +0 -68
- package/src/api/dto/design-systems/elements-diff.ts +0 -14
- package/src/api/dto/design-systems/figma-variables.ts +0 -108
- package/src/api/dto/design-systems/import-job.ts +0 -61
- package/src/api/dto/design-systems/index.ts +0 -13
- package/src/api/dto/design-systems/members.ts +0 -50
- package/src/api/dto/design-systems/role.ts +0 -11
- package/src/api/dto/design-systems/stats.ts +0 -19
- package/src/api/dto/design-systems/version.ts +0 -56
- package/src/api/dto/design-systems/view.ts +0 -45
- package/src/api/dto/design-tokens/design-token.ts +0 -78
- package/src/api/dto/design-tokens/index.ts +0 -1
- package/src/api/dto/documentation/anchor.ts +0 -15
- package/src/api/dto/documentation/approvals.ts +0 -15
- package/src/api/dto/documentation/block-definition.ts +0 -28
- package/src/api/dto/documentation/block.ts +0 -6
- package/src/api/dto/documentation/documentation-page-snapshot.ts +0 -18
- package/src/api/dto/documentation/index.ts +0 -8
- package/src/api/dto/documentation/link-preview.ts +0 -23
- package/src/api/dto/documentation/publish.ts +0 -23
- package/src/api/dto/documentation/room.ts +0 -12
- package/src/api/dto/elements/components/figma-component-group.ts +0 -19
- package/src/api/dto/elements/components/figma-component.ts +0 -56
- package/src/api/dto/elements/components/index.ts +0 -2
- package/src/api/dto/elements/documentation/draft-state.ts +0 -37
- package/src/api/dto/elements/documentation/group-action.ts +0 -108
- package/src/api/dto/elements/documentation/group-v1.ts +0 -35
- package/src/api/dto/elements/documentation/group-v2.ts +0 -117
- package/src/api/dto/elements/documentation/hierarchy.ts +0 -22
- package/src/api/dto/elements/documentation/index.ts +0 -13
- package/src/api/dto/elements/documentation/item-configuration-v1.ts +0 -24
- package/src/api/dto/elements/documentation/item-configuration-v2.ts +0 -14
- package/src/api/dto/elements/documentation/metadata.ts +0 -8
- package/src/api/dto/elements/documentation/page-actions-v2.ts +0 -121
- package/src/api/dto/elements/documentation/page-content.ts +0 -15
- package/src/api/dto/elements/documentation/page-v1.ts +0 -21
- package/src/api/dto/elements/documentation/page-v2.ts +0 -120
- package/src/api/dto/elements/documentation/structure.ts +0 -37
- package/src/api/dto/elements/elements-action-v2.ts +0 -104
- package/src/api/dto/elements/figma-nodes/figma-node.ts +0 -106
- package/src/api/dto/elements/figma-nodes/index.ts +0 -2
- package/src/api/dto/elements/figma-nodes/node-actions-v2.ts +0 -24
- package/src/api/dto/elements/frame-node-structures/frame-node-structure.ts +0 -17
- package/src/api/dto/elements/frame-node-structures/index.ts +0 -1
- package/src/api/dto/elements/get-elements-v2.ts +0 -21
- package/src/api/dto/elements/index.ts +0 -7
- package/src/api/dto/elements/properties/index.ts +0 -2
- package/src/api/dto/elements/properties/property-definitions.ts +0 -75
- package/src/api/dto/elements/properties/property-values.ts +0 -38
- package/src/api/dto/export/exporter-property.ts +0 -95
- package/src/api/dto/export/exporter.ts +0 -87
- package/src/api/dto/export/filter.ts +0 -6
- package/src/api/dto/export/index.ts +0 -5
- package/src/api/dto/export/job.ts +0 -87
- package/src/api/dto/export/pipeline.ts +0 -43
- package/src/api/dto/figma-components/assets/download.ts +0 -30
- package/src/api/dto/figma-components/assets/index.ts +0 -1
- package/src/api/dto/figma-components/index.ts +0 -1
- package/src/api/dto/index.ts +0 -13
- package/src/api/dto/liveblocks/auth-response.ts +0 -7
- package/src/api/dto/liveblocks/index.ts +0 -1
- package/src/api/dto/themes/index.ts +0 -2
- package/src/api/dto/themes/override.ts +0 -27
- package/src/api/dto/themes/theme.ts +0 -45
- package/src/api/dto/users/authenticated-user.ts +0 -43
- package/src/api/dto/users/index.ts +0 -3
- package/src/api/dto/users/update.ts +0 -8
- package/src/api/dto/users/user.ts +0 -31
- package/src/api/dto/workspaces/git.ts +0 -32
- package/src/api/dto/workspaces/index.ts +0 -6
- package/src/api/dto/workspaces/integrations.ts +0 -34
- package/src/api/dto/workspaces/invitations.ts +0 -30
- package/src/api/dto/workspaces/membership.ts +0 -41
- package/src/api/dto/workspaces/npm-registry.ts +0 -35
- package/src/api/dto/workspaces/workspace.ts +0 -34
- package/src/api/endpoints/codegen/codegen.ts +0 -13
- package/src/api/endpoints/codegen/exporters.ts +0 -13
- package/src/api/endpoints/codegen/index.ts +0 -3
- package/src/api/endpoints/codegen/pipelines.ts +0 -37
- package/src/api/endpoints/design-system/bff.ts +0 -13
- package/src/api/endpoints/design-system/contact.ts +0 -12
- package/src/api/endpoints/design-system/design-systems.ts +0 -55
- package/src/api/endpoints/design-system/index.ts +0 -6
- package/src/api/endpoints/design-system/members.ts +0 -24
- package/src/api/endpoints/design-system/sources.ts +0 -35
- package/src/api/endpoints/design-system/versions/brands.ts +0 -45
- package/src/api/endpoints/design-system/versions/documentation.ts +0 -27
- package/src/api/endpoints/design-system/versions/ds-components.ts +0 -28
- package/src/api/endpoints/design-system/versions/elements-action.ts +0 -55
- package/src/api/endpoints/design-system/versions/elements.ts +0 -13
- package/src/api/endpoints/design-system/versions/figma-component-groups.ts +0 -13
- package/src/api/endpoints/design-system/versions/figma-components.ts +0 -13
- package/src/api/endpoints/design-system/versions/figma-frame-structures.ts +0 -13
- package/src/api/endpoints/design-system/versions/import-jobs.ts +0 -13
- package/src/api/endpoints/design-system/versions/index.ts +0 -18
- package/src/api/endpoints/design-system/versions/overrides.ts +0 -17
- package/src/api/endpoints/design-system/versions/property-definitions.ts +0 -43
- package/src/api/endpoints/design-system/versions/property-values.ts +0 -25
- package/src/api/endpoints/design-system/versions/stats.ts +0 -12
- package/src/api/endpoints/design-system/versions/themes.ts +0 -35
- package/src/api/endpoints/design-system/versions/token-collections.ts +0 -13
- package/src/api/endpoints/design-system/versions/token-groups.ts +0 -28
- package/src/api/endpoints/design-system/versions/tokens.ts +0 -27
- package/src/api/endpoints/design-system/versions/versions.ts +0 -79
- package/src/api/endpoints/index.ts +0 -5
- package/src/api/endpoints/liveblocks.ts +0 -14
- package/src/api/endpoints/users.ts +0 -26
- package/src/api/endpoints/workspaces/index.ts +0 -3
- package/src/api/endpoints/workspaces/workspace-invites.ts +0 -34
- package/src/api/endpoints/workspaces/workspace-members.ts +0 -31
- package/src/api/endpoints/workspaces/workspaces.ts +0 -47
- package/src/api/index.ts +0 -6
- package/src/api/payloads/design-systems/index.ts +0 -2
- package/src/api/payloads/design-systems/update-design-system.ts +0 -29
- package/src/api/payloads/design-systems/version.ts +0 -29
- package/src/api/payloads/documentation/block-definitions.ts +0 -12
- package/src/api/payloads/documentation/design-data-doc-diff.ts +0 -7
- package/src/api/payloads/documentation/index.ts +0 -2
- package/src/api/payloads/export/index.ts +0 -1
- package/src/api/payloads/export/pipeline.ts +0 -50
- package/src/api/payloads/index.ts +0 -6
- package/src/api/payloads/liveblocks/auth.ts +0 -7
- package/src/api/payloads/liveblocks/index.ts +0 -1
- package/src/api/payloads/users/index.ts +0 -2
- package/src/api/payloads/users/notifications/index.ts +0 -1
- package/src/api/payloads/users/notifications/notification-settings.ts +0 -17
- package/src/api/payloads/users/profile/index.ts +0 -1
- package/src/api/payloads/users/profile/update.ts +0 -4
- package/src/api/payloads/workspaces/index.ts +0 -3
- package/src/api/payloads/workspaces/transfer-ownership.ts +0 -7
- package/src/api/payloads/workspaces/workspace-configuration.ts +0 -50
- package/src/api/payloads/workspaces/workspace-integrations.ts +0 -26
- package/src/api/transport/index.ts +0 -2
- package/src/api/transport/request-executor-error.ts +0 -66
- package/src/api/transport/request-executor.ts +0 -87
- package/src/index.ts +0 -3
- package/src/utils/figma.ts +0 -53
- package/src/utils/hash.ts +0 -62
- package/src/utils/index.ts +0 -3
- package/src/utils/query.ts +0 -18
- package/src/yjs/design-system-content/documentation-hierarchy.ts +0 -35
- package/src/yjs/design-system-content/index.ts +0 -2
- package/src/yjs/design-system-content/item-configuration.ts +0 -93
- package/src/yjs/docs-editor/blocks-to-prosemirror.ts +0 -764
- package/src/yjs/docs-editor/index.ts +0 -7
- package/src/yjs/docs-editor/list-tree-builder.ts +0 -127
- package/src/yjs/docs-editor/mock.ts +0 -2104
- package/src/yjs/docs-editor/model/block.ts +0 -8
- package/src/yjs/docs-editor/model/index.ts +0 -2
- package/src/yjs/docs-editor/model/page.ts +0 -8
- package/src/yjs/docs-editor/prosemirror/index.ts +0 -3
- package/src/yjs/docs-editor/prosemirror/inner-editor-schema.ts +0 -145
- package/src/yjs/docs-editor/prosemirror/main-editor-schema.ts +0 -577
- package/src/yjs/docs-editor/prosemirror/types.ts +0 -19
- package/src/yjs/docs-editor/prosemirror-to-blocks.ts +0 -975
- package/src/yjs/docs-editor/utils.ts +0 -115
- package/src/yjs/index.ts +0 -3
- package/src/yjs/version-room/backend.ts +0 -78
- package/src/yjs/version-room/base.ts +0 -211
- package/src/yjs/version-room/frontend.ts +0 -461
- package/src/yjs/version-room/index.ts +0 -4
- package/src/yjs/version-room/utils.ts +0 -109
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { DocumentationGroupBehavior, ElementGroup } from "@supernova-studio/model";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import { DTODocumentationItemConfigurationV1 } from "./item-configuration-v1";
|
|
4
|
-
|
|
5
|
-
//
|
|
6
|
-
// Read
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Structure DTO is element properties minus element data (in other words data required
|
|
11
|
-
* to display the element in the left panel)
|
|
12
|
-
*/
|
|
13
|
-
export const DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
14
|
-
sortOrder: true,
|
|
15
|
-
parentPersistentId: true,
|
|
16
|
-
brandPersistentId: true,
|
|
17
|
-
meta: true,
|
|
18
|
-
childType: true,
|
|
19
|
-
data: true,
|
|
20
|
-
shortPersistentId: true,
|
|
21
|
-
}).extend({
|
|
22
|
-
title: z.string(),
|
|
23
|
-
isRoot: z.boolean(),
|
|
24
|
-
childrenIds: z.array(z.string()),
|
|
25
|
-
groupBehavior: DocumentationGroupBehavior,
|
|
26
|
-
shortPersistentId: z.string(),
|
|
27
|
-
type: z.literal("Group"),
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
export const DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
31
|
-
configuration: DTODocumentationItemConfigurationV1,
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
export type DTODocumentationGroupStructureV1 = z.infer<typeof DTODocumentationGroupStructureV1>;
|
|
35
|
-
export type DTODocumentationGroupV1 = z.infer<typeof DTODocumentationGroupV1>;
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { DocumentationGroupBehavior, ElementGroup } from "@supernova-studio/model";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import { DTODocumentationDraftState } from "./draft-state";
|
|
4
|
-
import { DTODocumentationItemConfigurationV2 } from "./item-configuration-v2";
|
|
5
|
-
import { DTODocumentationPublishMetadata } from "./metadata";
|
|
6
|
-
import { DTODocumentationGroupApprovalState } from "../../documentation";
|
|
7
|
-
|
|
8
|
-
//
|
|
9
|
-
// Read
|
|
10
|
-
//
|
|
11
|
-
|
|
12
|
-
export const DTODocumentationGroupV2 = ElementGroup.omit({
|
|
13
|
-
sortOrder: true,
|
|
14
|
-
parentPersistentId: true,
|
|
15
|
-
brandPersistentId: true,
|
|
16
|
-
meta: true,
|
|
17
|
-
childType: true,
|
|
18
|
-
data: true,
|
|
19
|
-
shortPersistentId: true,
|
|
20
|
-
}).extend({
|
|
21
|
-
title: z.string(),
|
|
22
|
-
isRoot: z.boolean(),
|
|
23
|
-
childrenIds: z.array(z.string()),
|
|
24
|
-
groupBehavior: DocumentationGroupBehavior,
|
|
25
|
-
shortPersistentId: z.string(),
|
|
26
|
-
configuration: DTODocumentationItemConfigurationV2,
|
|
27
|
-
type: z.literal("Group"),
|
|
28
|
-
|
|
29
|
-
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
30
|
-
draftState: DTODocumentationDraftState.optional(),
|
|
31
|
-
|
|
32
|
-
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
33
|
-
publishMetadata: DTODocumentationPublishMetadata.optional(),
|
|
34
|
-
|
|
35
|
-
//** An approval state for frontend to utilize. */
|
|
36
|
-
approvalState: DTODocumentationGroupApprovalState.optional(),
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
export type DTODocumentationGroupV2 = z.infer<typeof DTODocumentationGroupV2>;
|
|
40
|
-
|
|
41
|
-
//
|
|
42
|
-
// Write
|
|
43
|
-
//
|
|
44
|
-
|
|
45
|
-
export const DTOCreateDocumentationGroupInput = z.object({
|
|
46
|
-
// Identifier
|
|
47
|
-
persistentId: z.string(),
|
|
48
|
-
|
|
49
|
-
// Group properties
|
|
50
|
-
title: z.string(),
|
|
51
|
-
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
52
|
-
|
|
53
|
-
// Group placement properties
|
|
54
|
-
afterPersistentId: z.string().nullish(),
|
|
55
|
-
parentPersistentId: z.string(),
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
export const DTOUpdateDocumentationGroupInput = z.object({
|
|
59
|
-
// Identifier of the group to update
|
|
60
|
-
id: z.string(),
|
|
61
|
-
|
|
62
|
-
// Group properties
|
|
63
|
-
title: z.string().optional(),
|
|
64
|
-
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
export const DTOMoveDocumentationGroupInput = z.object({
|
|
68
|
-
// Identifier of the group to update
|
|
69
|
-
id: z.string(),
|
|
70
|
-
|
|
71
|
-
// Group placement properties
|
|
72
|
-
parentPersistentId: z.string(),
|
|
73
|
-
afterPersistentId: z.string().nullish(),
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
export const DTODuplicateDocumentationGroupInput = z.object({
|
|
77
|
-
// Identifier of the group to duplicate from
|
|
78
|
-
id: z.string(),
|
|
79
|
-
|
|
80
|
-
// New group persistent id
|
|
81
|
-
persistentId: z.string(),
|
|
82
|
-
|
|
83
|
-
// Group placement properties
|
|
84
|
-
afterPersistentId: z.string().nullish(),
|
|
85
|
-
parentPersistentId: z.string(),
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
export const DTOCreateDocumentationTabInput = z.object({
|
|
89
|
-
// New group persistent id
|
|
90
|
-
persistentId: z.string(),
|
|
91
|
-
|
|
92
|
-
// If this is page, we will attempt to convert it to tab
|
|
93
|
-
// If this is tab group, we will add a new tab to it
|
|
94
|
-
fromItemPersistentId: z.string(),
|
|
95
|
-
tabName: z.string(),
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
export const DTODeleteDocumentationTabGroupInput = z.object({
|
|
99
|
-
// Deleted group id
|
|
100
|
-
id: z.string(),
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
export const DTODeleteDocumentationGroupInput = z.object({
|
|
104
|
-
// Identifier
|
|
105
|
-
id: z.string(),
|
|
106
|
-
|
|
107
|
-
// Deletion options
|
|
108
|
-
deleteSubtree: z.boolean().default(false),
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
export type DTOCreateDocumentationGroupInput = z.infer<typeof DTOCreateDocumentationGroupInput>;
|
|
112
|
-
export type DTOUpdateDocumentationGroupInput = z.infer<typeof DTOUpdateDocumentationGroupInput>;
|
|
113
|
-
export type DTOMoveDocumentationGroupInput = z.infer<typeof DTOMoveDocumentationGroupInput>;
|
|
114
|
-
export type DTODuplicateDocumentationGroupInput = z.infer<typeof DTODuplicateDocumentationGroupInput>;
|
|
115
|
-
export type DTOCreateDocumentationTabInput = z.infer<typeof DTOCreateDocumentationTabInput>;
|
|
116
|
-
export type DTODeleteDocumentationTabGroupInput = z.infer<typeof DTODeleteDocumentationTabGroupInput>;
|
|
117
|
-
export type DTODeleteDocumentationGroupInput = z.infer<typeof DTODeleteDocumentationGroupInput>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { DTODocumentationDraftState } from "./draft-state";
|
|
3
|
-
import { DTODocumentationGroupV2 } from "./group-v2";
|
|
4
|
-
import { DTODocumentationPageV2 } from "./page-v2";
|
|
5
|
-
|
|
6
|
-
export const DTODocumentationHierarchyV2 = z.object({
|
|
7
|
-
pages: z.array(
|
|
8
|
-
DTODocumentationPageV2.extend({
|
|
9
|
-
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
10
|
-
draftState: DTODocumentationDraftState.optional(),
|
|
11
|
-
})
|
|
12
|
-
),
|
|
13
|
-
|
|
14
|
-
groups: z.array(
|
|
15
|
-
DTODocumentationGroupV2.extend({
|
|
16
|
-
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
17
|
-
draftState: DTODocumentationDraftState.optional(),
|
|
18
|
-
})
|
|
19
|
-
),
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
export type DTODocumentationHierarchyV2 = z.infer<typeof DTODocumentationHierarchyV2>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export * from "./draft-state";
|
|
2
|
-
export * from "./group-action";
|
|
3
|
-
export * from "./group-v1";
|
|
4
|
-
export * from "./group-v2";
|
|
5
|
-
export * from "./hierarchy";
|
|
6
|
-
export * from "./item-configuration-v1";
|
|
7
|
-
export * from "./item-configuration-v2";
|
|
8
|
-
export * from "./metadata";
|
|
9
|
-
export * from "./page-actions-v2";
|
|
10
|
-
export * from "./page-content";
|
|
11
|
-
export * from "./page-v1";
|
|
12
|
-
export * from "./page-v2";
|
|
13
|
-
export * from "./structure";
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { DocumentationItemHeaderV1 } from "@supernova-studio/model";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
|
|
4
|
-
const DocumentationColorV1 = z.object({
|
|
5
|
-
aliasTo: z.string().optional(),
|
|
6
|
-
value: z.string().optional(),
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
const DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
10
|
-
foregroundColor: true,
|
|
11
|
-
backgroundColor: true,
|
|
12
|
-
}).extend({
|
|
13
|
-
foregroundColor: DocumentationColorV1.optional(),
|
|
14
|
-
backgroundColor: DocumentationColorV1.optional(),
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
export const DTODocumentationItemConfigurationV1 = z.object({
|
|
18
|
-
showSidebar: z.boolean(),
|
|
19
|
-
isPrivate: z.boolean(),
|
|
20
|
-
isHidden: z.boolean(),
|
|
21
|
-
header: DTODocumentationItemHeaderV1,
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
export type DTODocumentationItemConfigurationV1 = z.infer<typeof DTODocumentationItemConfigurationV1>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { DocumentationItemHeaderV2 } from "@supernova-studio/model";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
|
|
4
|
-
export const DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
5
|
-
|
|
6
|
-
export const DTODocumentationItemConfigurationV2 = z.object({
|
|
7
|
-
showSidebar: z.boolean(),
|
|
8
|
-
isPrivate: z.boolean(),
|
|
9
|
-
isHidden: z.boolean(),
|
|
10
|
-
header: DTODocumentationItemHeaderV2,
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
export type DTODocumentationItemHeaderV2 = z.infer<typeof DTODocumentationItemHeaderV2>;
|
|
14
|
-
export type DTODocumentationItemConfigurationV2 = z.infer<typeof DTODocumentationItemConfigurationV2>;
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import {
|
|
3
|
-
DTOCreateDocumentationPageInputV2,
|
|
4
|
-
DTODeleteDocumentationPageInputV2,
|
|
5
|
-
DTODocumentationPageApprovalStateChangeInput,
|
|
6
|
-
DTODuplicateDocumentationPageInputV2,
|
|
7
|
-
DTOMoveDocumentationPageInputV2,
|
|
8
|
-
DTORestoreDocumentationGroupInput,
|
|
9
|
-
DTORestoreDocumentationPageInput,
|
|
10
|
-
DTOUpdateDocumentationPageInputV2,
|
|
11
|
-
} from "./page-v2";
|
|
12
|
-
|
|
13
|
-
//
|
|
14
|
-
// Read
|
|
15
|
-
//
|
|
16
|
-
|
|
17
|
-
const SuccessPayload = z.object({
|
|
18
|
-
success: z.literal(true),
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
export const DTODocumentationPageCreateActionOutputV2 = z.object({
|
|
22
|
-
type: z.literal("DocumentationPageCreate"),
|
|
23
|
-
output: SuccessPayload,
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
export const DTODocumentationPageUpdateActionOutputV2 = z.object({
|
|
27
|
-
type: z.literal("DocumentationPageUpdate"),
|
|
28
|
-
output: SuccessPayload,
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
export const DTODocumentationPageMoveActionOutputV2 = z.object({
|
|
32
|
-
type: z.literal("DocumentationPageMove"),
|
|
33
|
-
output: SuccessPayload,
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
export const DTODocumentationPageDuplicateActionOutputV2 = z.object({
|
|
37
|
-
type: z.literal("DocumentationPageDuplicate"),
|
|
38
|
-
output: SuccessPayload,
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
export const DTODocumentationPageDeleteActionOutputV2 = z.object({
|
|
42
|
-
type: z.literal("DocumentationPageDelete"),
|
|
43
|
-
output: SuccessPayload,
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
export const DTODocumentationPageRestoreActionOutput = z.object({
|
|
47
|
-
type: z.literal("DocumentationPageRestore"),
|
|
48
|
-
output: SuccessPayload,
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
export const DTODocumentationGroupRestoreActionOutput = z.object({
|
|
52
|
-
type: z.literal("DocumentationGroupRestore"),
|
|
53
|
-
output: SuccessPayload,
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
export const DTODocumentationPageApprovalStateChangeActionOutput = z.object({
|
|
57
|
-
type: z.literal("DocumentationPageApprovalStateChange"),
|
|
58
|
-
output: SuccessPayload,
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
export type DTODocumentationPageCreateActionOutputV2 = z.infer<typeof DTODocumentationPageCreateActionOutputV2>;
|
|
62
|
-
export type DTODocumentationPageUpdateActionOutputV2 = z.infer<typeof DTODocumentationPageUpdateActionOutputV2>;
|
|
63
|
-
export type DTODocumentationPageMoveActionOutputV2 = z.infer<typeof DTODocumentationPageMoveActionOutputV2>;
|
|
64
|
-
export type DTODocumentationPageDuplicateActionOutputV2 = z.infer<typeof DTODocumentationPageDuplicateActionOutputV2>;
|
|
65
|
-
export type DTODocumentationPageDeleteActionOutputV2 = z.infer<typeof DTODocumentationPageDeleteActionOutputV2>;
|
|
66
|
-
export type DTODocumentationPageRestoreActionOutput = z.infer<typeof DTODocumentationPageRestoreActionOutput>;
|
|
67
|
-
export type DTODocumentationGroupRestoreActionOutput = z.infer<typeof DTODocumentationGroupRestoreActionOutput>;
|
|
68
|
-
export type DTODocumentationPageApprovalStateChangeActionOutput = z.infer<
|
|
69
|
-
typeof DTODocumentationPageApprovalStateChangeActionOutput
|
|
70
|
-
>;
|
|
71
|
-
|
|
72
|
-
// Write
|
|
73
|
-
//
|
|
74
|
-
|
|
75
|
-
export const DTODocumentationPageCreateActionInputV2 = z.object({
|
|
76
|
-
type: z.literal("DocumentationPageCreate"),
|
|
77
|
-
input: DTOCreateDocumentationPageInputV2,
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
export const DTODocumentationPageUpdateActionInputV2 = z.object({
|
|
81
|
-
type: z.literal("DocumentationPageUpdate"),
|
|
82
|
-
input: DTOUpdateDocumentationPageInputV2,
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
export const DTODocumentationPageMoveActionInputV2 = z.object({
|
|
86
|
-
type: z.literal("DocumentationPageMove"),
|
|
87
|
-
input: DTOMoveDocumentationPageInputV2,
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
export const DTODocumentationPageDuplicateActionInputV2 = z.object({
|
|
91
|
-
type: z.literal("DocumentationPageDuplicate"),
|
|
92
|
-
input: DTODuplicateDocumentationPageInputV2,
|
|
93
|
-
});
|
|
94
|
-
|
|
95
|
-
export const DTODocumentationPageDeleteActionInputV2 = z.object({
|
|
96
|
-
type: z.literal("DocumentationPageDelete"),
|
|
97
|
-
input: DTODeleteDocumentationPageInputV2,
|
|
98
|
-
});
|
|
99
|
-
|
|
100
|
-
export const DTODocumentationPageRestoreActionInput = z.object({
|
|
101
|
-
type: z.literal("DocumentationPageRestore"),
|
|
102
|
-
input: DTORestoreDocumentationPageInput,
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
export const DTODocumentationGroupRestoreActionInput = z.object({
|
|
106
|
-
type: z.literal("DocumentationGroupRestore"),
|
|
107
|
-
input: DTORestoreDocumentationGroupInput,
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
export const DTODocumentationPageApprovalStateChangeActionInput = z.object({
|
|
111
|
-
type: z.literal("DocumentationPageApprovalStateChange"),
|
|
112
|
-
input: DTODocumentationPageApprovalStateChangeInput,
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
export type DTODocumentationPageCreateActionInputV2 = z.infer<typeof DTODocumentationPageCreateActionInputV2>;
|
|
116
|
-
export type DTODocumentationPageUpdateActionInputV2 = z.infer<typeof DTODocumentationPageUpdateActionInputV2>;
|
|
117
|
-
export type DTODocumentationPageMoveActionInputV2 = z.infer<typeof DTODocumentationPageMoveActionInputV2>;
|
|
118
|
-
export type DTODocumentationPageDuplicateActionInputV2 = z.infer<typeof DTODocumentationPageDuplicateActionInputV2>;
|
|
119
|
-
export type DTODocumentationPageDeleteActionInputV2 = z.infer<typeof DTODocumentationPageDeleteActionInputV2>;
|
|
120
|
-
export type DTODocumentationPageRestoreActionInput = z.infer<typeof DTODocumentationPageRestoreActionInput>;
|
|
121
|
-
export type DTODocumentationGroupRestoreActionInput = z.infer<typeof DTODocumentationGroupRestoreActionInput>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DocumentationPageContent } from "@supernova-studio/model";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
|
|
4
|
-
//
|
|
5
|
-
// Read
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
export const DTODocumentationPageContent = DocumentationPageContent;
|
|
9
|
-
|
|
10
|
-
export const DTODocumentationPageContentGetResponse = z.object({
|
|
11
|
-
pageContent: DTODocumentationPageContent,
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
export type DTODocumentationPageContent = z.infer<typeof DTODocumentationPageContent>;
|
|
15
|
-
export type DTODocumentationPageContentGetResponse = z.infer<typeof DTODocumentationPageContentGetResponse>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { DocumentationPageV1, PageBlockV1 } from "@supernova-studio/model";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import { DTODocumentationItemConfigurationV1 } from "./item-configuration-v1";
|
|
4
|
-
|
|
5
|
-
//
|
|
6
|
-
// Read
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
export const DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
10
|
-
data: true,
|
|
11
|
-
meta: true,
|
|
12
|
-
parentPersistentId: true,
|
|
13
|
-
sortOrder: true,
|
|
14
|
-
}).extend({
|
|
15
|
-
configuration: DTODocumentationItemConfigurationV1,
|
|
16
|
-
blocks: z.array(PageBlockV1),
|
|
17
|
-
title: z.string(),
|
|
18
|
-
path: z.string(),
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
export type DocumentationPageV1DTO = z.infer<typeof DocumentationPageV1DTO>;
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { DocumentationPageApprovalState } from "@supernova-studio/model";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import { DTODocumentationPageApprovalState } from "../../documentation";
|
|
4
|
-
import { DTODocumentationDraftState } from "./draft-state";
|
|
5
|
-
import { DTODocumentationItemConfigurationV2 } from "./item-configuration-v2";
|
|
6
|
-
import { DTODocumentationPublishMetadata } from "./metadata";
|
|
7
|
-
|
|
8
|
-
//
|
|
9
|
-
// Read
|
|
10
|
-
//
|
|
11
|
-
|
|
12
|
-
export const DTODocumentationPageV2 = z.object({
|
|
13
|
-
id: z.string(),
|
|
14
|
-
persistentId: z.string(),
|
|
15
|
-
|
|
16
|
-
designSystemVersionId: z.string(),
|
|
17
|
-
|
|
18
|
-
title: z.string(),
|
|
19
|
-
configuration: DTODocumentationItemConfigurationV2,
|
|
20
|
-
|
|
21
|
-
shortPersistentId: z.string(),
|
|
22
|
-
|
|
23
|
-
slug: z.string().optional(),
|
|
24
|
-
userSlug: z.string().optional(),
|
|
25
|
-
|
|
26
|
-
createdAt: z.coerce.date(),
|
|
27
|
-
updatedAt: z.coerce.date(),
|
|
28
|
-
|
|
29
|
-
path: z.string(),
|
|
30
|
-
|
|
31
|
-
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
32
|
-
draftState: DTODocumentationDraftState.optional(),
|
|
33
|
-
|
|
34
|
-
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
35
|
-
publishMetadata: DTODocumentationPublishMetadata.optional(),
|
|
36
|
-
|
|
37
|
-
/** Defines the approval state of the documentation page */
|
|
38
|
-
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
39
|
-
|
|
40
|
-
// Backward compatibility
|
|
41
|
-
type: z.literal("Page"),
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
export type DTODocumentationPageV2 = z.infer<typeof DTODocumentationPageV2>;
|
|
45
|
-
|
|
46
|
-
//
|
|
47
|
-
// Write
|
|
48
|
-
//
|
|
49
|
-
|
|
50
|
-
export const DTOCreateDocumentationPageInputV2 = z.object({
|
|
51
|
-
// Identifier
|
|
52
|
-
persistentId: z.string(),
|
|
53
|
-
|
|
54
|
-
// Page properties
|
|
55
|
-
title: z.string(),
|
|
56
|
-
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
57
|
-
|
|
58
|
-
// Page placement properties
|
|
59
|
-
parentPersistentId: z.string(),
|
|
60
|
-
afterPersistentId: z.string().nullish(),
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
export const DTOUpdateDocumentationPageInputV2 = z.object({
|
|
64
|
-
// Identifier of the group to update
|
|
65
|
-
id: z.string(),
|
|
66
|
-
|
|
67
|
-
// Page properties
|
|
68
|
-
title: z.string().optional(),
|
|
69
|
-
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
export const DTOMoveDocumentationPageInputV2 = z.object({
|
|
73
|
-
// Identifier of the group to update
|
|
74
|
-
id: z.string(),
|
|
75
|
-
|
|
76
|
-
// Page placement properties
|
|
77
|
-
parentPersistentId: z.string(),
|
|
78
|
-
afterPersistentId: z.string().nullish(),
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
export const DTODuplicateDocumentationPageInputV2 = z.object({
|
|
82
|
-
// Identifier of the page to duplicate from
|
|
83
|
-
id: z.string(),
|
|
84
|
-
|
|
85
|
-
// New page persistent id
|
|
86
|
-
persistentId: z.string(),
|
|
87
|
-
|
|
88
|
-
// Page placement properties
|
|
89
|
-
parentPersistentId: z.string(),
|
|
90
|
-
afterPersistentId: z.string().nullish(),
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
export const DTODeleteDocumentationPageInputV2 = z.object({
|
|
94
|
-
// Identifier
|
|
95
|
-
id: z.string(),
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
export const DTORestoreDocumentationPageInput = z.object({
|
|
99
|
-
persistentId: z.string(),
|
|
100
|
-
snapshotId: z.string().optional(),
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
export const DTORestoreDocumentationGroupInput = z.object({
|
|
104
|
-
persistentId: z.string(),
|
|
105
|
-
snapshotId: z.string().optional(),
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
export const DTODocumentationPageApprovalStateChangeInput = z.object({
|
|
109
|
-
persistentId: z.string(),
|
|
110
|
-
approvalState: DocumentationPageApprovalState.optional(),
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
export type DTOCreateDocumentationPageInputV2 = z.infer<typeof DTOCreateDocumentationPageInputV2>;
|
|
114
|
-
export type DTOUpdateDocumentationPageInputV2 = z.infer<typeof DTOUpdateDocumentationPageInputV2>;
|
|
115
|
-
export type DTOMoveDocumentationPageInputV2 = z.infer<typeof DTOMoveDocumentationPageInputV2>;
|
|
116
|
-
export type DTODuplicateDocumentationPageInputV2 = z.infer<typeof DTODuplicateDocumentationPageInputV2>;
|
|
117
|
-
export type DTODeleteDocumentationPageInputV2 = z.infer<typeof DTODeleteDocumentationPageInputV2>;
|
|
118
|
-
export type DTORestoreDocumentationPageInput = z.infer<typeof DTORestoreDocumentationPageInput>;
|
|
119
|
-
export type DTORestoreDocumentationGroupInput = z.infer<typeof DTORestoreDocumentationGroupInput>;
|
|
120
|
-
export type DTODocumentationPageApprovalStateChangeInput = z.infer<typeof DTODocumentationPageApprovalStateChangeInput>;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
|
|
3
|
-
const DTODocumentationStructureItemType = z.enum(["Group", "Page"]);
|
|
4
|
-
|
|
5
|
-
const DTODocumentationStructureItemBase = z.object({
|
|
6
|
-
type: DTODocumentationStructureItemType,
|
|
7
|
-
id: z.string(),
|
|
8
|
-
designSystemVersionId: z.string(),
|
|
9
|
-
shortPersistentId: z.string(),
|
|
10
|
-
persistentId: z.string(),
|
|
11
|
-
title: z.string(),
|
|
12
|
-
createdAt: z.coerce.date(),
|
|
13
|
-
updatedAt: z.coerce.date(),
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
export const DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
|
|
17
|
-
type: z.literal(DTODocumentationStructureItemType.enum.Group),
|
|
18
|
-
groupBehavior: z.string(),
|
|
19
|
-
childrenIds: z.string().array(),
|
|
20
|
-
isRoot: z.boolean(),
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
export const DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
|
|
24
|
-
type: z.literal(DTODocumentationStructureItemType.enum.Page),
|
|
25
|
-
path: z.string(),
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
export const DTODocumentationStructureItem = z.discriminatedUnion("type", [
|
|
29
|
-
DTODocumentationStructureGroupItem,
|
|
30
|
-
DTODocumentationStructurePageItem,
|
|
31
|
-
]);
|
|
32
|
-
export const DTODocumentationStructure = z.object({
|
|
33
|
-
items: z.array(DTODocumentationStructureItem),
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
export type DTODocumentationStructureItem = z.infer<typeof DTODocumentationStructureItem>;
|
|
37
|
-
export type DTODocumentationStructure = z.infer<typeof DTODocumentationStructure>;
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import {
|
|
3
|
-
DTODocumentationGroupCreateActionInputV2,
|
|
4
|
-
DTODocumentationGroupCreateActionOutputV2,
|
|
5
|
-
DTODocumentationGroupDeleteActionInputV2,
|
|
6
|
-
DTODocumentationGroupDeleteActionOutputV2,
|
|
7
|
-
DTODocumentationGroupDuplicateActionInputV2,
|
|
8
|
-
DTODocumentationGroupDuplicateActionOutputV2,
|
|
9
|
-
DTODocumentationGroupMoveActionInputV2,
|
|
10
|
-
DTODocumentationGroupMoveActionOutputV2,
|
|
11
|
-
DTODocumentationGroupUpdateActionInputV2,
|
|
12
|
-
DTODocumentationGroupUpdateActionOutputV2,
|
|
13
|
-
DTODocumentationTabCreateActionInputV2,
|
|
14
|
-
DTODocumentationTabCreateActionOutputV2,
|
|
15
|
-
DTODocumentationTabGroupDeleteActionInputV2,
|
|
16
|
-
DTODocumentationTabGroupDeleteActionOutputV2,
|
|
17
|
-
} from "./documentation/group-action";
|
|
18
|
-
import {
|
|
19
|
-
DTODocumentationGroupRestoreActionInput,
|
|
20
|
-
DTODocumentationGroupRestoreActionOutput,
|
|
21
|
-
DTODocumentationPageApprovalStateChangeActionInput,
|
|
22
|
-
DTODocumentationPageApprovalStateChangeActionOutput,
|
|
23
|
-
DTODocumentationPageCreateActionInputV2,
|
|
24
|
-
DTODocumentationPageCreateActionOutputV2,
|
|
25
|
-
DTODocumentationPageDeleteActionInputV2,
|
|
26
|
-
DTODocumentationPageDeleteActionOutputV2,
|
|
27
|
-
DTODocumentationPageDuplicateActionInputV2,
|
|
28
|
-
DTODocumentationPageDuplicateActionOutputV2,
|
|
29
|
-
DTODocumentationPageMoveActionInputV2,
|
|
30
|
-
DTODocumentationPageMoveActionOutputV2,
|
|
31
|
-
DTODocumentationPageRestoreActionInput,
|
|
32
|
-
DTODocumentationPageRestoreActionOutput,
|
|
33
|
-
DTODocumentationPageUpdateActionInputV2,
|
|
34
|
-
DTODocumentationPageUpdateActionOutputV2,
|
|
35
|
-
} from "./documentation/page-actions-v2";
|
|
36
|
-
import { DTOFigmaNodeRenderActionInput, DTOFigmaNodeRenderActionOutput } from "./figma-nodes/node-actions-v2";
|
|
37
|
-
|
|
38
|
-
//
|
|
39
|
-
// Read
|
|
40
|
-
//
|
|
41
|
-
|
|
42
|
-
export const DTOElementActionOutput = z.discriminatedUnion("type", [
|
|
43
|
-
// Documentation pages
|
|
44
|
-
DTODocumentationPageCreateActionOutputV2,
|
|
45
|
-
DTODocumentationPageUpdateActionOutputV2,
|
|
46
|
-
DTODocumentationPageMoveActionOutputV2,
|
|
47
|
-
DTODocumentationPageDuplicateActionOutputV2,
|
|
48
|
-
DTODocumentationPageDeleteActionOutputV2,
|
|
49
|
-
|
|
50
|
-
// Documentation groups
|
|
51
|
-
DTODocumentationGroupCreateActionOutputV2,
|
|
52
|
-
DTODocumentationTabCreateActionOutputV2,
|
|
53
|
-
DTODocumentationGroupUpdateActionOutputV2,
|
|
54
|
-
DTODocumentationGroupMoveActionOutputV2,
|
|
55
|
-
DTODocumentationGroupDuplicateActionOutputV2,
|
|
56
|
-
DTODocumentationGroupDeleteActionOutputV2,
|
|
57
|
-
DTODocumentationTabGroupDeleteActionOutputV2,
|
|
58
|
-
|
|
59
|
-
// Figma frames
|
|
60
|
-
DTOFigmaNodeRenderActionOutput,
|
|
61
|
-
|
|
62
|
-
// Restore
|
|
63
|
-
DTODocumentationPageRestoreActionOutput,
|
|
64
|
-
DTODocumentationGroupRestoreActionOutput,
|
|
65
|
-
|
|
66
|
-
// Approvals
|
|
67
|
-
DTODocumentationPageApprovalStateChangeActionOutput,
|
|
68
|
-
]);
|
|
69
|
-
|
|
70
|
-
export type DTOElementActionOutput = z.infer<typeof DTOElementActionOutput>;
|
|
71
|
-
|
|
72
|
-
//
|
|
73
|
-
// Write
|
|
74
|
-
//
|
|
75
|
-
|
|
76
|
-
export const DTOElementActionInput = z.discriminatedUnion("type", [
|
|
77
|
-
// Documentation pages
|
|
78
|
-
DTODocumentationPageCreateActionInputV2,
|
|
79
|
-
DTODocumentationPageUpdateActionInputV2,
|
|
80
|
-
DTODocumentationPageMoveActionInputV2,
|
|
81
|
-
DTODocumentationPageDuplicateActionInputV2,
|
|
82
|
-
DTODocumentationPageDeleteActionInputV2,
|
|
83
|
-
|
|
84
|
-
// Documentation groups
|
|
85
|
-
DTODocumentationGroupCreateActionInputV2,
|
|
86
|
-
DTODocumentationTabCreateActionInputV2,
|
|
87
|
-
DTODocumentationGroupUpdateActionInputV2,
|
|
88
|
-
DTODocumentationGroupMoveActionInputV2,
|
|
89
|
-
DTODocumentationGroupDuplicateActionInputV2,
|
|
90
|
-
DTODocumentationGroupDeleteActionInputV2,
|
|
91
|
-
DTODocumentationTabGroupDeleteActionInputV2,
|
|
92
|
-
|
|
93
|
-
// Figma frames
|
|
94
|
-
DTOFigmaNodeRenderActionInput,
|
|
95
|
-
|
|
96
|
-
// Restore
|
|
97
|
-
DTODocumentationPageRestoreActionInput,
|
|
98
|
-
DTODocumentationGroupRestoreActionInput,
|
|
99
|
-
|
|
100
|
-
// Approval
|
|
101
|
-
DTODocumentationPageApprovalStateChangeActionInput,
|
|
102
|
-
]);
|
|
103
|
-
|
|
104
|
-
export type DTOElementActionInput = z.infer<typeof DTOElementActionInput>;
|