document-model 1.3.0 → 1.5.0
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/browser/cjs/document-model.js +20 -1
- package/dist/browser/cjs/document-model.js.map +1 -0
- package/dist/browser/cjs/document.js +15 -1
- package/dist/browser/cjs/document.js.map +1 -0
- package/dist/browser/cjs/index.js +14 -1
- package/dist/browser/cjs/index.js.map +1 -0
- package/dist/browser/cjs/internal/index-BoiSedJ2.js +2336 -0
- package/dist/browser/cjs/internal/index-BoiSedJ2.js.map +1 -0
- package/dist/browser/cjs/internal/index-frw-qprx.js +49 -0
- package/dist/browser/cjs/internal/index-frw-qprx.js.map +1 -0
- package/dist/browser/cjs/internal/object-DldjPOTT.js +4336 -0
- package/dist/browser/cjs/internal/object-DldjPOTT.js.map +1 -0
- package/dist/browser/es/document-model.js +17 -17
- package/dist/browser/es/document-model.js.map +1 -0
- package/dist/browser/es/document.js +13 -14
- package/dist/browser/es/document.js.map +1 -0
- package/dist/browser/es/index.js +12 -14
- package/dist/browser/es/index.js.map +1 -0
- package/dist/browser/es/internal/index-B7idSyw8.js +2337 -0
- package/dist/browser/es/internal/index-B7idSyw8.js.map +1 -0
- package/dist/browser/es/internal/index-D2kKzCXD.js +50 -0
- package/dist/browser/es/internal/index-D2kKzCXD.js.map +1 -0
- package/dist/browser/es/internal/object-I6vKsK3r.js +4337 -0
- package/dist/browser/es/internal/object-I6vKsK3r.js.map +1 -0
- package/dist/browser/src/document/actions/creators.d.ts +2 -1
- package/dist/browser/src/document/actions/index.d.ts +1 -0
- package/dist/browser/src/document/actions/types.d.ts +3 -2
- package/dist/browser/src/document/object.d.ts +9 -1128
- package/dist/browser/src/document/reducer.d.ts +16 -13
- package/dist/browser/src/document/schema/types.d.ts +1 -0
- package/dist/browser/src/document/schema/zod.d.ts +12 -8
- package/dist/browser/src/document/signal.d.ts +1 -0
- package/dist/browser/src/document/types.d.ts +9 -6
- package/dist/browser/src/document/utils/base.d.ts +7 -5
- package/dist/browser/src/document/utils/document-helpers.d.ts +1 -0
- package/dist/browser/src/document/utils/file.d.ts +3 -2
- package/dist/browser/src/document/utils/validation.d.ts +1 -0
- package/dist/browser/src/document-model/custom/reducers/header.d.ts +1 -0
- package/dist/browser/src/document-model/custom/reducers/module.d.ts +1 -0
- package/dist/browser/src/document-model/custom/reducers/operation-error.d.ts +1 -0
- package/dist/browser/src/document-model/custom/reducers/operation-example.d.ts +1 -0
- package/dist/browser/src/document-model/custom/reducers/operation.d.ts +1 -0
- package/dist/browser/src/document-model/custom/reducers/state.d.ts +1 -0
- package/dist/browser/src/document-model/custom/reducers/versioning.d.ts +1 -5
- package/dist/browser/src/document-model/custom/utils.d.ts +1 -0
- package/dist/browser/src/document-model/gen/actions.d.ts +1 -0
- package/dist/browser/src/document-model/gen/document-model.d.ts +2 -1
- package/dist/browser/src/document-model/gen/header/actions.d.ts +1 -0
- package/dist/browser/src/document-model/gen/header/creators.d.ts +1 -0
- package/dist/browser/src/document-model/gen/header/object.d.ts +1 -0
- package/dist/browser/src/document-model/gen/header/operations.d.ts +1 -0
- package/dist/browser/src/document-model/gen/module/actions.d.ts +1 -0
- package/dist/browser/src/document-model/gen/module/creators.d.ts +1 -0
- package/dist/browser/src/document-model/gen/module/object.d.ts +1 -0
- package/dist/browser/src/document-model/gen/module/operations.d.ts +1 -0
- package/dist/browser/src/document-model/gen/object.d.ts +8 -7
- package/dist/browser/src/document-model/gen/operation/actions.d.ts +1 -0
- package/dist/browser/src/document-model/gen/operation/creators.d.ts +1 -0
- package/dist/browser/src/document-model/gen/operation/object.d.ts +1 -0
- package/dist/browser/src/document-model/gen/operation/operations.d.ts +1 -0
- package/dist/browser/src/document-model/gen/operation-error/actions.d.ts +1 -0
- package/dist/browser/src/document-model/gen/operation-error/creators.d.ts +1 -0
- package/dist/browser/src/document-model/gen/operation-error/object.d.ts +1 -0
- package/dist/browser/src/document-model/gen/operation-error/operations.d.ts +1 -0
- package/dist/browser/src/document-model/gen/operation-example/actions.d.ts +1 -0
- package/dist/browser/src/document-model/gen/operation-example/creators.d.ts +1 -0
- package/dist/browser/src/document-model/gen/operation-example/object.d.ts +1 -0
- package/dist/browser/src/document-model/gen/operation-example/operations.d.ts +1 -0
- package/dist/browser/src/document-model/gen/reducer.d.ts +2 -1
- package/dist/browser/src/document-model/gen/schema/index.d.ts +2 -2
- package/dist/browser/src/document-model/gen/schema/types.d.ts +1 -0
- package/dist/browser/src/document-model/gen/schema/zod.d.ts +70 -69
- package/dist/browser/src/document-model/gen/state/actions.d.ts +1 -0
- package/dist/browser/src/document-model/gen/state/creators.d.ts +1 -0
- package/dist/browser/src/document-model/gen/state/object.d.ts +1 -0
- package/dist/browser/src/document-model/gen/state/operations.d.ts +1 -0
- package/dist/browser/src/document-model/gen/types.d.ts +4 -3
- package/dist/browser/src/document-model/gen/utils.d.ts +1 -0
- package/dist/browser/src/document-model/gen/versioning/actions.d.ts +1 -0
- package/dist/browser/src/document-model/gen/versioning/creators.d.ts +1 -0
- package/dist/browser/src/document-model/gen/versioning/object.d.ts +1 -0
- package/dist/browser/src/document-model/gen/versioning/operations.d.ts +1 -0
- package/dist/browser/src/document-model/index.d.ts +62 -65
- package/dist/browser/vite.config.d.ts +1 -1
- package/dist/browser/vitest.config.d.ts +1 -1
- package/dist/node/cjs/document-model.js +24 -1
- package/dist/node/cjs/document-model.js.map +1 -0
- package/dist/node/cjs/document.js +15 -1
- package/dist/node/cjs/document.js.map +1 -0
- package/dist/node/cjs/index.js +14 -1
- package/dist/node/cjs/index.js.map +1 -0
- package/dist/node/cjs/internal/index-RX6RcsNg.js +49 -0
- package/dist/node/cjs/internal/index-RX6RcsNg.js.map +1 -0
- package/dist/node/cjs/internal/index-WVYoLyly.js +2340 -0
- package/dist/node/cjs/internal/index-WVYoLyly.js.map +1 -0
- package/dist/node/cjs/internal/object-7GplcYr4.js +2338 -0
- package/dist/node/cjs/internal/object-7GplcYr4.js.map +1 -0
- package/dist/node/es/document-model.js +16 -16
- package/dist/node/es/document-model.js.map +1 -0
- package/dist/node/es/document.js +13 -18
- package/dist/node/es/document.js.map +1 -0
- package/dist/node/es/index.js +12 -18
- package/dist/node/es/index.js.map +1 -0
- package/dist/node/es/internal/index-BFRJ-0Rp.js +2341 -0
- package/dist/node/es/internal/index-BFRJ-0Rp.js.map +1 -0
- package/dist/node/es/internal/index-NWZKlhKu.js +50 -0
- package/dist/node/es/internal/index-NWZKlhKu.js.map +1 -0
- package/dist/node/es/internal/object-Cu2Dz-iF.js +2339 -0
- package/dist/node/es/internal/object-Cu2Dz-iF.js.map +1 -0
- package/dist/node/src/document/actions/creators.d.ts +2 -1
- package/dist/node/src/document/actions/index.d.ts +1 -0
- package/dist/node/src/document/actions/types.d.ts +3 -2
- package/dist/node/src/document/object.d.ts +9 -1128
- package/dist/node/src/document/reducer.d.ts +16 -13
- package/dist/node/src/document/schema/types.d.ts +1 -0
- package/dist/node/src/document/schema/zod.d.ts +12 -8
- package/dist/node/src/document/signal.d.ts +1 -0
- package/dist/node/src/document/types.d.ts +9 -6
- package/dist/node/src/document/utils/base.d.ts +7 -5
- package/dist/node/src/document/utils/document-helpers.d.ts +1 -0
- package/dist/node/src/document/utils/file.d.ts +3 -2
- package/dist/node/src/document/utils/validation.d.ts +1 -0
- package/dist/node/src/document-model/custom/reducers/header.d.ts +1 -0
- package/dist/node/src/document-model/custom/reducers/module.d.ts +1 -0
- package/dist/node/src/document-model/custom/reducers/operation-error.d.ts +1 -0
- package/dist/node/src/document-model/custom/reducers/operation-example.d.ts +1 -0
- package/dist/node/src/document-model/custom/reducers/operation.d.ts +1 -0
- package/dist/node/src/document-model/custom/reducers/state.d.ts +1 -0
- package/dist/node/src/document-model/custom/reducers/versioning.d.ts +1 -5
- package/dist/node/src/document-model/custom/utils.d.ts +1 -0
- package/dist/node/src/document-model/gen/actions.d.ts +1 -0
- package/dist/node/src/document-model/gen/document-model.d.ts +2 -1
- package/dist/node/src/document-model/gen/header/actions.d.ts +1 -0
- package/dist/node/src/document-model/gen/header/creators.d.ts +1 -0
- package/dist/node/src/document-model/gen/header/object.d.ts +1 -0
- package/dist/node/src/document-model/gen/header/operations.d.ts +1 -0
- package/dist/node/src/document-model/gen/module/actions.d.ts +1 -0
- package/dist/node/src/document-model/gen/module/creators.d.ts +1 -0
- package/dist/node/src/document-model/gen/module/object.d.ts +1 -0
- package/dist/node/src/document-model/gen/module/operations.d.ts +1 -0
- package/dist/node/src/document-model/gen/object.d.ts +8 -7
- package/dist/node/src/document-model/gen/operation/actions.d.ts +1 -0
- package/dist/node/src/document-model/gen/operation/creators.d.ts +1 -0
- package/dist/node/src/document-model/gen/operation/object.d.ts +1 -0
- package/dist/node/src/document-model/gen/operation/operations.d.ts +1 -0
- package/dist/node/src/document-model/gen/operation-error/actions.d.ts +1 -0
- package/dist/node/src/document-model/gen/operation-error/creators.d.ts +1 -0
- package/dist/node/src/document-model/gen/operation-error/object.d.ts +1 -0
- package/dist/node/src/document-model/gen/operation-error/operations.d.ts +1 -0
- package/dist/node/src/document-model/gen/operation-example/actions.d.ts +1 -0
- package/dist/node/src/document-model/gen/operation-example/creators.d.ts +1 -0
- package/dist/node/src/document-model/gen/operation-example/object.d.ts +1 -0
- package/dist/node/src/document-model/gen/operation-example/operations.d.ts +1 -0
- package/dist/node/src/document-model/gen/reducer.d.ts +2 -1
- package/dist/node/src/document-model/gen/schema/index.d.ts +2 -2
- package/dist/node/src/document-model/gen/schema/types.d.ts +1 -0
- package/dist/node/src/document-model/gen/schema/zod.d.ts +70 -69
- package/dist/node/src/document-model/gen/state/actions.d.ts +1 -0
- package/dist/node/src/document-model/gen/state/creators.d.ts +1 -0
- package/dist/node/src/document-model/gen/state/object.d.ts +1 -0
- package/dist/node/src/document-model/gen/state/operations.d.ts +1 -0
- package/dist/node/src/document-model/gen/types.d.ts +4 -3
- package/dist/node/src/document-model/gen/utils.d.ts +1 -0
- package/dist/node/src/document-model/gen/versioning/actions.d.ts +1 -0
- package/dist/node/src/document-model/gen/versioning/creators.d.ts +1 -0
- package/dist/node/src/document-model/gen/versioning/object.d.ts +1 -0
- package/dist/node/src/document-model/gen/versioning/operations.d.ts +1 -0
- package/dist/node/src/document-model/index.d.ts +62 -65
- package/dist/node/vite.config.d.ts +1 -1
- package/dist/node/vitest.config.d.ts +1 -1
- package/package.json +5 -4
- package/dist/browser/cjs/internal/index-BtACFrMg.js +0 -22
- package/dist/browser/cjs/internal/index-BtOQeyI_.js +0 -1
- package/dist/browser/cjs/internal/object-eLa06mce.js +0 -25
- package/dist/browser/es/internal/index-CZutz9-u.js +0 -2104
- package/dist/browser/es/internal/index-DPuk-_bv.js +0 -46
- package/dist/browser/es/internal/object-Cxp6e1kN.js +0 -2838
- package/dist/node/cjs/internal/index-C2-dv_r8.js +0 -1
- package/dist/node/cjs/internal/index-DPBQS8BC.js +0 -22
- package/dist/node/cjs/internal/object-_P8Ctu09.js +0 -20
- package/dist/node/es/internal/index-CpzdJD_a.js +0 -2108
- package/dist/node/es/internal/index-O3hyddph.js +0 -46
- package/dist/node/es/internal/object-BegIqJta.js +0 -1736
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { AddChangeLogItemInput, AddModuleInput, AddOperationErrorInput, AddOperationExampleInput, AddOperationInput, AddStateExampleInput, Author, CodeExample, DeleteChangeLogItemInput, DeleteModuleInput, DeleteOperationErrorInput, DeleteOperationExampleInput, DeleteOperationInput, DeleteStateExampleInput, DocumentModelState, DocumentSpecification, Module, MoveOperationInput, Operation, OperationError, ReorderChangeLogItemsInput, ReorderModuleOperationsInput, ReorderModulesInput, ReorderOperationErrorsInput, ReorderOperationExamplesInput, ReorderStateExamplesInput, ScopeState, SetAuthorNameInput, SetAuthorWebsiteInput, SetInitialStateInput, SetModelDescriptionInput, SetModelExtensionInput, SetModelIdInput, SetModelNameInput, SetModuleDescriptionInput, SetModuleNameInput, SetOperationDescriptionInput, SetOperationErrorCodeInput, SetOperationErrorDescriptionInput, SetOperationErrorNameInput, SetOperationErrorTemplateInput, SetOperationNameInput, SetOperationReducerInput, SetOperationSchemaInput, SetOperationScopeInput, SetOperationTemplateInput, SetStateSchemaInput, State, UpdateChangeLogItemInput, UpdateOperationExampleInput, UpdateStateExampleInput } from '.';
|
|
3
3
|
import { OperationScope } from '../../../document';
|
|
4
|
+
|
|
4
5
|
type Properties<T> = Required<{
|
|
5
6
|
[K in keyof T]: z.ZodType<T[K], any, T[K]>;
|
|
6
7
|
}>;
|
|
@@ -26,50 +27,50 @@ export declare function DocumentModelInputSchema(): z.ZodUnion<[z.ZodObject<Requ
|
|
|
26
27
|
__typename?: z.ZodType<"AddChangeLogItemInput" | undefined, any, "AddChangeLogItemInput" | undefined> | undefined;
|
|
27
28
|
content: z.ZodType<string, any, string>;
|
|
28
29
|
id: z.ZodType<string, any, string>;
|
|
29
|
-
insertBefore: z.ZodType<import(
|
|
30
|
+
insertBefore: z.ZodType<import('./types').Maybe<string>, any, import('./types').Maybe<string>>;
|
|
30
31
|
}>, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
31
32
|
content: string;
|
|
32
33
|
id: string;
|
|
33
|
-
insertBefore: string
|
|
34
|
+
insertBefore: import('./types').Maybe<string>;
|
|
34
35
|
__typename?: "AddChangeLogItemInput" | undefined;
|
|
35
36
|
}, {
|
|
36
37
|
content: string;
|
|
37
38
|
id: string;
|
|
38
|
-
insertBefore: string
|
|
39
|
+
insertBefore: import('./types').Maybe<string>;
|
|
39
40
|
__typename?: "AddChangeLogItemInput" | undefined;
|
|
40
41
|
}>, z.ZodObject<Required<{
|
|
41
|
-
description?: z.ZodType<import(
|
|
42
|
+
description?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
|
|
42
43
|
id: z.ZodType<string, any, string>;
|
|
43
44
|
name: z.ZodType<string, any, string>;
|
|
44
45
|
}>, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
45
46
|
id: string;
|
|
46
47
|
name: string;
|
|
47
|
-
description?: import(
|
|
48
|
+
description?: import('./types').InputMaybe<string>;
|
|
48
49
|
}, {
|
|
49
50
|
id: string;
|
|
50
51
|
name: string;
|
|
51
|
-
description?: import(
|
|
52
|
+
description?: import('./types').InputMaybe<string>;
|
|
52
53
|
}>, z.ZodObject<Required<{
|
|
53
|
-
errorCode?: z.ZodType<import(
|
|
54
|
-
errorDescription?: z.ZodType<import(
|
|
55
|
-
errorName?: z.ZodType<import(
|
|
56
|
-
errorTemplate?: z.ZodType<import(
|
|
54
|
+
errorCode?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
|
|
55
|
+
errorDescription?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
|
|
56
|
+
errorName?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
|
|
57
|
+
errorTemplate?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
|
|
57
58
|
id: z.ZodType<string, any, string>;
|
|
58
59
|
operationId: z.ZodType<string, any, string>;
|
|
59
60
|
}>, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
60
61
|
id: string;
|
|
61
62
|
operationId: string;
|
|
62
|
-
errorCode?: import(
|
|
63
|
-
errorDescription?: import(
|
|
64
|
-
errorName?: import(
|
|
65
|
-
errorTemplate?: import(
|
|
63
|
+
errorCode?: import('./types').InputMaybe<string>;
|
|
64
|
+
errorDescription?: import('./types').InputMaybe<string>;
|
|
65
|
+
errorName?: import('./types').InputMaybe<string>;
|
|
66
|
+
errorTemplate?: import('./types').InputMaybe<string>;
|
|
66
67
|
}, {
|
|
67
68
|
id: string;
|
|
68
69
|
operationId: string;
|
|
69
|
-
errorCode?: import(
|
|
70
|
-
errorDescription?: import(
|
|
71
|
-
errorName?: import(
|
|
72
|
-
errorTemplate?: import(
|
|
70
|
+
errorCode?: import('./types').InputMaybe<string>;
|
|
71
|
+
errorDescription?: import('./types').InputMaybe<string>;
|
|
72
|
+
errorName?: import('./types').InputMaybe<string>;
|
|
73
|
+
errorTemplate?: import('./types').InputMaybe<string>;
|
|
73
74
|
}>, z.ZodObject<Required<{
|
|
74
75
|
example: z.ZodType<string, any, string>;
|
|
75
76
|
id: z.ZodType<string, any, string>;
|
|
@@ -83,47 +84,47 @@ export declare function DocumentModelInputSchema(): z.ZodUnion<[z.ZodObject<Requ
|
|
|
83
84
|
operationId: string;
|
|
84
85
|
example: string;
|
|
85
86
|
}>, z.ZodObject<Required<{
|
|
86
|
-
description?: z.ZodType<import(
|
|
87
|
+
description?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
|
|
87
88
|
id: z.ZodType<string, any, string>;
|
|
88
89
|
moduleId: z.ZodType<string, any, string>;
|
|
89
90
|
name: z.ZodType<string, any, string>;
|
|
90
|
-
reducer?: z.ZodType<import(
|
|
91
|
-
schema?: z.ZodType<import(
|
|
92
|
-
template?: z.ZodType<import(
|
|
93
|
-
scope?: z.ZodType<import(
|
|
91
|
+
reducer?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
|
|
92
|
+
schema?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
|
|
93
|
+
template?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
|
|
94
|
+
scope?: z.ZodType<import('./types').InputMaybe<OperationScope>, any, import('./types').InputMaybe<OperationScope>> | undefined;
|
|
94
95
|
}>, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
95
96
|
id: string;
|
|
96
97
|
name: string;
|
|
97
98
|
moduleId: string;
|
|
98
|
-
description?: import(
|
|
99
|
-
reducer?: import(
|
|
100
|
-
schema?: import(
|
|
101
|
-
template?: import(
|
|
102
|
-
scope?: import(
|
|
99
|
+
description?: import('./types').InputMaybe<string>;
|
|
100
|
+
reducer?: import('./types').InputMaybe<string>;
|
|
101
|
+
schema?: import('./types').InputMaybe<string>;
|
|
102
|
+
template?: import('./types').InputMaybe<string>;
|
|
103
|
+
scope?: import('./types').InputMaybe<OperationScope>;
|
|
103
104
|
}, {
|
|
104
105
|
id: string;
|
|
105
106
|
name: string;
|
|
106
107
|
moduleId: string;
|
|
107
|
-
description?: import(
|
|
108
|
-
reducer?: import(
|
|
109
|
-
schema?: import(
|
|
110
|
-
template?: import(
|
|
111
|
-
scope?: import(
|
|
108
|
+
description?: import('./types').InputMaybe<string>;
|
|
109
|
+
reducer?: import('./types').InputMaybe<string>;
|
|
110
|
+
schema?: import('./types').InputMaybe<string>;
|
|
111
|
+
template?: import('./types').InputMaybe<string>;
|
|
112
|
+
scope?: import('./types').InputMaybe<OperationScope>;
|
|
112
113
|
}>, z.ZodObject<Required<{
|
|
113
114
|
scope: z.ZodType<string, any, string>;
|
|
114
115
|
example: z.ZodType<string, any, string>;
|
|
115
116
|
id: z.ZodType<string, any, string>;
|
|
116
|
-
insertBefore?: z.ZodType<import(
|
|
117
|
+
insertBefore?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
|
|
117
118
|
}>, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
118
119
|
id: string;
|
|
119
120
|
example: string;
|
|
120
121
|
scope: string;
|
|
121
|
-
insertBefore?: import(
|
|
122
|
+
insertBefore?: import('./types').InputMaybe<string>;
|
|
122
123
|
}, {
|
|
123
124
|
id: string;
|
|
124
125
|
example: string;
|
|
125
126
|
scope: string;
|
|
126
|
-
insertBefore?: import(
|
|
127
|
+
insertBefore?: import('./types').InputMaybe<string>;
|
|
127
128
|
}>, z.ZodObject<Required<{
|
|
128
129
|
__typename?: z.ZodType<"DeleteChangeLogItemInput" | undefined, any, "DeleteChangeLogItemInput" | undefined> | undefined;
|
|
129
130
|
id: z.ZodType<string, any, string>;
|
|
@@ -272,104 +273,104 @@ export declare function DocumentModelInputSchema(): z.ZodUnion<[z.ZodObject<Requ
|
|
|
272
273
|
}, {
|
|
273
274
|
name: string;
|
|
274
275
|
}>, z.ZodObject<Required<{
|
|
275
|
-
description?: z.ZodType<import(
|
|
276
|
+
description?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
|
|
276
277
|
id: z.ZodType<string, any, string>;
|
|
277
278
|
}>, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
278
279
|
id: string;
|
|
279
|
-
description?: import(
|
|
280
|
+
description?: import('./types').InputMaybe<string>;
|
|
280
281
|
}, {
|
|
281
282
|
id: string;
|
|
282
|
-
description?: import(
|
|
283
|
+
description?: import('./types').InputMaybe<string>;
|
|
283
284
|
}>, z.ZodObject<Required<{
|
|
284
285
|
id: z.ZodType<string, any, string>;
|
|
285
|
-
name?: z.ZodType<import(
|
|
286
|
+
name?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
|
|
286
287
|
}>, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
287
288
|
id: string;
|
|
288
|
-
name?: import(
|
|
289
|
+
name?: import('./types').InputMaybe<string>;
|
|
289
290
|
}, {
|
|
290
291
|
id: string;
|
|
291
|
-
name?: import(
|
|
292
|
+
name?: import('./types').InputMaybe<string>;
|
|
292
293
|
}>, z.ZodObject<Required<{
|
|
293
|
-
description?: z.ZodType<import(
|
|
294
|
+
description?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
|
|
294
295
|
id: z.ZodType<string, any, string>;
|
|
295
296
|
}>, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
296
297
|
id: string;
|
|
297
|
-
description?: import(
|
|
298
|
+
description?: import('./types').InputMaybe<string>;
|
|
298
299
|
}, {
|
|
299
300
|
id: string;
|
|
300
|
-
description?: import(
|
|
301
|
+
description?: import('./types').InputMaybe<string>;
|
|
301
302
|
}>, z.ZodObject<Required<{
|
|
302
|
-
errorCode?: z.ZodType<import(
|
|
303
|
+
errorCode?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
|
|
303
304
|
id: z.ZodType<string, any, string>;
|
|
304
305
|
}>, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
305
306
|
id: string;
|
|
306
|
-
errorCode?: import(
|
|
307
|
+
errorCode?: import('./types').InputMaybe<string>;
|
|
307
308
|
}, {
|
|
308
309
|
id: string;
|
|
309
|
-
errorCode?: import(
|
|
310
|
+
errorCode?: import('./types').InputMaybe<string>;
|
|
310
311
|
}>, z.ZodObject<Required<{
|
|
311
|
-
errorDescription?: z.ZodType<import(
|
|
312
|
+
errorDescription?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
|
|
312
313
|
id: z.ZodType<string, any, string>;
|
|
313
314
|
}>, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
314
315
|
id: string;
|
|
315
|
-
errorDescription?: import(
|
|
316
|
+
errorDescription?: import('./types').InputMaybe<string>;
|
|
316
317
|
}, {
|
|
317
318
|
id: string;
|
|
318
|
-
errorDescription?: import(
|
|
319
|
+
errorDescription?: import('./types').InputMaybe<string>;
|
|
319
320
|
}>, z.ZodObject<Required<{
|
|
320
|
-
errorName?: z.ZodType<import(
|
|
321
|
+
errorName?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
|
|
321
322
|
id: z.ZodType<string, any, string>;
|
|
322
323
|
}>, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
323
324
|
id: string;
|
|
324
|
-
errorName?: import(
|
|
325
|
+
errorName?: import('./types').InputMaybe<string>;
|
|
325
326
|
}, {
|
|
326
327
|
id: string;
|
|
327
|
-
errorName?: import(
|
|
328
|
+
errorName?: import('./types').InputMaybe<string>;
|
|
328
329
|
}>, z.ZodObject<Required<{
|
|
329
|
-
errorTemplate?: z.ZodType<import(
|
|
330
|
+
errorTemplate?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
|
|
330
331
|
id: z.ZodType<string, any, string>;
|
|
331
332
|
}>, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
332
333
|
id: string;
|
|
333
|
-
errorTemplate?: import(
|
|
334
|
+
errorTemplate?: import('./types').InputMaybe<string>;
|
|
334
335
|
}, {
|
|
335
336
|
id: string;
|
|
336
|
-
errorTemplate?: import(
|
|
337
|
+
errorTemplate?: import('./types').InputMaybe<string>;
|
|
337
338
|
}>, z.ZodObject<Required<{
|
|
338
339
|
id: z.ZodType<string, any, string>;
|
|
339
|
-
name?: z.ZodType<import(
|
|
340
|
+
name?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
|
|
340
341
|
}>, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
341
342
|
id: string;
|
|
342
|
-
name?: import(
|
|
343
|
+
name?: import('./types').InputMaybe<string>;
|
|
343
344
|
}, {
|
|
344
345
|
id: string;
|
|
345
|
-
name?: import(
|
|
346
|
+
name?: import('./types').InputMaybe<string>;
|
|
346
347
|
}>, z.ZodObject<Required<{
|
|
347
348
|
id: z.ZodType<string, any, string>;
|
|
348
|
-
reducer?: z.ZodType<import(
|
|
349
|
+
reducer?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
|
|
349
350
|
}>, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
350
351
|
id: string;
|
|
351
|
-
reducer?: import(
|
|
352
|
+
reducer?: import('./types').InputMaybe<string>;
|
|
352
353
|
}, {
|
|
353
354
|
id: string;
|
|
354
|
-
reducer?: import(
|
|
355
|
+
reducer?: import('./types').InputMaybe<string>;
|
|
355
356
|
}>, z.ZodObject<Required<{
|
|
356
357
|
id: z.ZodType<string, any, string>;
|
|
357
|
-
schema?: z.ZodType<import(
|
|
358
|
+
schema?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
|
|
358
359
|
}>, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
359
360
|
id: string;
|
|
360
|
-
schema?: import(
|
|
361
|
+
schema?: import('./types').InputMaybe<string>;
|
|
361
362
|
}, {
|
|
362
363
|
id: string;
|
|
363
|
-
schema?: import(
|
|
364
|
+
schema?: import('./types').InputMaybe<string>;
|
|
364
365
|
}>, z.ZodObject<Required<{
|
|
365
366
|
id: z.ZodType<string, any, string>;
|
|
366
|
-
template?: z.ZodType<import(
|
|
367
|
+
template?: z.ZodType<import('./types').InputMaybe<string>, any, import('./types').InputMaybe<string>> | undefined;
|
|
367
368
|
}>, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
368
369
|
id: string;
|
|
369
|
-
template?: import(
|
|
370
|
+
template?: import('./types').InputMaybe<string>;
|
|
370
371
|
}, {
|
|
371
372
|
id: string;
|
|
372
|
-
template?: import(
|
|
373
|
+
template?: import('./types').InputMaybe<string>;
|
|
373
374
|
}>, z.ZodObject<Required<{
|
|
374
375
|
scope: z.ZodType<string, any, string>;
|
|
375
376
|
schema: z.ZodType<string, any, string>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Action } from '../../../document';
|
|
2
2
|
import { SetStateSchemaInput, SetInitialStateInput, AddStateExampleInput, UpdateStateExampleInput, DeleteStateExampleInput, ReorderStateExamplesInput } from '../types';
|
|
3
|
+
|
|
3
4
|
export type SetStateSchemaAction = Action<'SET_STATE_SCHEMA', SetStateSchemaInput>;
|
|
4
5
|
export type SetInitialStateAction = Action<'SET_INITIAL_STATE', SetInitialStateInput>;
|
|
5
6
|
export type AddStateExampleAction = Action<'ADD_STATE_EXAMPLE', AddStateExampleInput>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SetStateSchemaInput, SetInitialStateInput, AddStateExampleInput, UpdateStateExampleInput, DeleteStateExampleInput, ReorderStateExamplesInput } from '../types';
|
|
2
2
|
import { SetStateSchemaAction, SetInitialStateAction, AddStateExampleAction, UpdateStateExampleAction, DeleteStateExampleAction, ReorderStateExamplesAction } from './actions';
|
|
3
|
+
|
|
3
4
|
export declare const setStateSchema: (input: SetStateSchemaInput) => SetStateSchemaAction;
|
|
4
5
|
export declare const setInitialState: (input: SetInitialStateInput) => SetInitialStateAction;
|
|
5
6
|
export declare const addStateExample: (input: AddStateExampleInput) => AddStateExampleAction;
|
|
@@ -2,6 +2,7 @@ import { BaseDocument } from '../../../document/object';
|
|
|
2
2
|
import { SetStateSchemaInput, SetInitialStateInput, AddStateExampleInput, UpdateStateExampleInput, DeleteStateExampleInput, ReorderStateExamplesInput, DocumentModelState, DocumentModelLocalState } from '../types';
|
|
3
3
|
import { DocumentModelAction } from '../actions';
|
|
4
4
|
import { ReducerOptions } from '../../../document';
|
|
5
|
+
|
|
5
6
|
export default class DocumentModel_State extends BaseDocument<DocumentModelState, DocumentModelAction, DocumentModelLocalState> {
|
|
6
7
|
setStateSchema(input: SetStateSchemaInput, options?: ReducerOptions): this;
|
|
7
8
|
setInitialState(input: SetInitialStateInput, options?: ReducerOptions): this;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SetStateSchemaAction, SetInitialStateAction, AddStateExampleAction, UpdateStateExampleAction, DeleteStateExampleAction, ReorderStateExamplesAction } from './actions';
|
|
2
2
|
import { DocumentModelState } from '../types';
|
|
3
|
+
|
|
3
4
|
export interface DocumentModelStateOperations {
|
|
4
5
|
setStateSchemaOperation: (state: DocumentModelState, action: SetStateSchemaAction) => void;
|
|
5
6
|
setInitialStateOperation: (state: DocumentModelState, action: SetInitialStateAction) => void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { Document, ExtendedState } from '../../document/types';
|
|
2
|
+
import { DocumentModelState, DocumentModelLocalState } from './schema/types';
|
|
3
|
+
import { DocumentModelAction } from './actions';
|
|
4
|
+
|
|
4
5
|
export { z } from './schema';
|
|
5
6
|
export type * from './schema/types';
|
|
6
7
|
export type ExtendedDocumentModelState = ExtendedState<DocumentModelState>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DocumentModelUtils } from '../../document';
|
|
2
2
|
import { DocumentModelAction, DocumentModelLocalState, DocumentModelState } from './types';
|
|
3
|
+
|
|
3
4
|
export declare const initialGlobalState: DocumentModelState;
|
|
4
5
|
export declare const initialLocalState: DocumentModelLocalState;
|
|
5
6
|
declare const utils: DocumentModelUtils<DocumentModelState, DocumentModelAction, DocumentModelLocalState>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Action } from '../../../document';
|
|
2
2
|
import { AddChangeLogItemInput, UpdateChangeLogItemInput, DeleteChangeLogItemInput, ReorderChangeLogItemsInput } from '../types';
|
|
3
|
+
|
|
3
4
|
export type AddChangeLogItemAction = Action<'ADD_CHANGE_LOG_ITEM', AddChangeLogItemInput>;
|
|
4
5
|
export type UpdateChangeLogItemAction = Action<'UPDATE_CHANGE_LOG_ITEM', UpdateChangeLogItemInput>;
|
|
5
6
|
export type DeleteChangeLogItemAction = Action<'DELETE_CHANGE_LOG_ITEM', DeleteChangeLogItemInput>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AddChangeLogItemInput, UpdateChangeLogItemInput, DeleteChangeLogItemInput, ReorderChangeLogItemsInput } from '../types';
|
|
2
2
|
import { AddChangeLogItemAction, UpdateChangeLogItemAction, DeleteChangeLogItemAction, ReorderChangeLogItemsAction, ReleaseNewVersionAction } from './actions';
|
|
3
|
+
|
|
3
4
|
export declare const addChangeLogItem: (input: AddChangeLogItemInput) => AddChangeLogItemAction;
|
|
4
5
|
export declare const updateChangeLogItem: (input: UpdateChangeLogItemInput) => UpdateChangeLogItemAction;
|
|
5
6
|
export declare const deleteChangeLogItem: (input: DeleteChangeLogItemInput) => DeleteChangeLogItemAction;
|
|
@@ -2,6 +2,7 @@ import { BaseDocument } from '../../../document/object';
|
|
|
2
2
|
import { AddChangeLogItemInput, UpdateChangeLogItemInput, DeleteChangeLogItemInput, ReorderChangeLogItemsInput, DocumentModelState, DocumentModelLocalState } from '../types';
|
|
3
3
|
import { DocumentModelAction } from '../actions';
|
|
4
4
|
import { ReducerOptions } from '../../../document';
|
|
5
|
+
|
|
5
6
|
export default class DocumentModel_Versioning extends BaseDocument<DocumentModelState, DocumentModelAction, DocumentModelLocalState> {
|
|
6
7
|
addChangeLogItem(input: AddChangeLogItemInput, options?: ReducerOptions): this;
|
|
7
8
|
updateChangeLogItem(input: UpdateChangeLogItemInput, options?: ReducerOptions): this;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AddChangeLogItemAction, UpdateChangeLogItemAction, DeleteChangeLogItemAction, ReorderChangeLogItemsAction, ReleaseNewVersionAction } from './actions';
|
|
2
2
|
import { DocumentModelState } from '../types';
|
|
3
|
+
|
|
3
4
|
export interface DocumentModelVersioningOperations {
|
|
4
5
|
addChangeLogItemOperation: (state: DocumentModelState, action: AddChangeLogItemAction) => void;
|
|
5
6
|
updateChangeLogItemOperation: (state: DocumentModelState, action: UpdateChangeLogItemAction) => void;
|
|
@@ -1,78 +1,75 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is a scaffold file meant for customization.
|
|
3
|
-
* Delete the file and run the code generator again to have it reset
|
|
4
|
-
*/
|
|
5
1
|
import { DocumentModel as _DocumentModel } from '../document';
|
|
6
2
|
import { DocumentModel } from './gen';
|
|
7
3
|
import { documentModel } from './gen/document-model';
|
|
8
4
|
import { reducer } from './gen/reducer';
|
|
9
5
|
import { DocumentModelAction, DocumentModelLocalState, DocumentModelState } from './gen/types';
|
|
6
|
+
|
|
10
7
|
declare const Document: typeof DocumentModel;
|
|
11
8
|
declare const utils: {
|
|
12
|
-
validateInitialState(initialState: string, allowEmptyState?: boolean): import(
|
|
13
|
-
validateStateSchemaName(schema: string, documentName: string, scope?: string, allowEmptySchema?: boolean): import(
|
|
14
|
-
validateModules(modules: import(
|
|
15
|
-
validateModule(mod: import(
|
|
16
|
-
validateModuleOperation(operation: import(
|
|
9
|
+
validateInitialState(initialState: string, allowEmptyState?: boolean): import('../document').ValidationError[];
|
|
10
|
+
validateStateSchemaName(schema: string, documentName: string, scope?: string, allowEmptySchema?: boolean): import('../document').ValidationError[];
|
|
11
|
+
validateModules(modules: import('./gen').Module[]): import('../document').ValidationError[];
|
|
12
|
+
validateModule(mod: import('./gen').Module): import('../document').ValidationError[];
|
|
13
|
+
validateModuleOperation(operation: import('./gen').Operation): import('../document').ValidationError[];
|
|
17
14
|
fileExtension: string;
|
|
18
|
-
createState: import(
|
|
19
|
-
createExtendedState: (extendedState?: Partial<import(
|
|
20
|
-
createDocument: (document?: Partial<import(
|
|
21
|
-
loadFromFile: (path: string) => Promise<import(
|
|
22
|
-
loadFromInput: (input: import(
|
|
23
|
-
saveToFile: (document: import(
|
|
24
|
-
saveToFileHandle: (document: import(
|
|
15
|
+
createState: import('../document').CreateState<DocumentModelState, DocumentModelLocalState>;
|
|
16
|
+
createExtendedState: (extendedState?: Partial<import('../document').ExtendedState<import('../document').PartialState<DocumentModelState>, import('../document').PartialState<DocumentModelLocalState>>> | undefined, createState?: import('../document').CreateState<DocumentModelState, DocumentModelLocalState> | undefined) => import('../document').ExtendedState<DocumentModelState, DocumentModelLocalState>;
|
|
17
|
+
createDocument: (document?: Partial<import('../document').ExtendedState<import('../document').PartialState<DocumentModelState>, import('../document').PartialState<DocumentModelLocalState>>> | undefined, createState?: import('../document').CreateState<DocumentModelState, DocumentModelLocalState> | undefined) => import('../document').Document<DocumentModelState, DocumentModelAction, DocumentModelLocalState>;
|
|
18
|
+
loadFromFile: (path: string) => Promise<import('../document').Document<DocumentModelState, DocumentModelAction, DocumentModelLocalState>>;
|
|
19
|
+
loadFromInput: (input: import('../document').FileInput) => Promise<import('../document').Document<DocumentModelState, DocumentModelAction, DocumentModelLocalState>>;
|
|
20
|
+
saveToFile: (document: import('../document').Document<DocumentModelState, DocumentModelAction, DocumentModelLocalState>, path: string, name?: string | undefined) => Promise<string>;
|
|
21
|
+
saveToFileHandle: (document: import('../document').Document<DocumentModelState, DocumentModelAction, DocumentModelLocalState>, input: FileSystemFileHandle) => Promise<void>;
|
|
25
22
|
};
|
|
26
23
|
declare const actions: {
|
|
27
|
-
setModelName: (input: import(
|
|
28
|
-
setModelId: (input: import(
|
|
29
|
-
setModelExtension: (input: import(
|
|
30
|
-
setModelDescription: (input: import(
|
|
31
|
-
setAuthorName: (input: import(
|
|
32
|
-
setAuthorWebsite: (input: import(
|
|
33
|
-
addChangeLogItem: (input: import(
|
|
34
|
-
updateChangeLogItem: (input: import(
|
|
35
|
-
deleteChangeLogItem: (input: import(
|
|
36
|
-
reorderChangeLogItems: (input: import(
|
|
37
|
-
releaseNewVersion: () => import(
|
|
38
|
-
addModule: (input: import(
|
|
39
|
-
setModuleName: (input: import(
|
|
40
|
-
setModuleDescription: (input: import(
|
|
41
|
-
deleteModule: (input: import(
|
|
42
|
-
reorderModules: (input: import(
|
|
43
|
-
addOperationError: (input: import(
|
|
44
|
-
setOperationErrorCode: (input: import(
|
|
45
|
-
setOperationErrorName: (input: import(
|
|
46
|
-
setOperationErrorDescription: (input: import(
|
|
47
|
-
setOperationErrorTemplate: (input: import(
|
|
48
|
-
deleteOperationError: (input: import(
|
|
49
|
-
reorderOperationErrors: (input: import(
|
|
50
|
-
addOperationExample: (input: import(
|
|
51
|
-
updateOperationExample: (input: import(
|
|
52
|
-
deleteOperationExample: (input: import(
|
|
53
|
-
reorderOperationExamples: (input: import(
|
|
54
|
-
addOperation: (input: import(
|
|
55
|
-
setOperationName: (input: import(
|
|
56
|
-
setOperationScope: (input: import(
|
|
57
|
-
setOperationSchema: (input: import(
|
|
58
|
-
setOperationDescription: (input: import(
|
|
59
|
-
setOperationTemplate: (input: import(
|
|
60
|
-
setOperationReducer: (input: import(
|
|
61
|
-
moveOperation: (input: import(
|
|
62
|
-
deleteOperation: (input: import(
|
|
63
|
-
reorderModuleOperations: (input: import(
|
|
64
|
-
setStateSchema: (input: import(
|
|
65
|
-
setInitialState: (input: import(
|
|
66
|
-
addStateExample: (input: import(
|
|
67
|
-
updateStateExample: (input: import(
|
|
68
|
-
deleteStateExample: (input: import(
|
|
69
|
-
reorderStateExamples: (input: import(
|
|
70
|
-
setName: (name: string) => import(
|
|
71
|
-
undo: (skip?: number, scope?: import(
|
|
72
|
-
redo: (count?: number, scope?: import(
|
|
73
|
-
prune: (start?: number | undefined, end?: number | undefined, scope?: import(
|
|
74
|
-
loadState: <S, T>(state: Pick<import(
|
|
75
|
-
noop: (scope?: import(
|
|
24
|
+
setModelName: (input: import('./gen').SetModelNameInput) => import('./gen').SetModelNameAction;
|
|
25
|
+
setModelId: (input: import('./gen').SetModelIdInput) => import('./gen').SetModelIdAction;
|
|
26
|
+
setModelExtension: (input: import('./gen').SetModelExtensionInput) => import('./gen').SetModelExtensionAction;
|
|
27
|
+
setModelDescription: (input: import('./gen').SetModelDescriptionInput) => import('./gen').SetModelDescriptionAction;
|
|
28
|
+
setAuthorName: (input: import('./gen').SetAuthorNameInput) => import('./gen').SetAuthorNameAction;
|
|
29
|
+
setAuthorWebsite: (input: import('./gen').SetAuthorWebsiteInput) => import('./gen').SetAuthorWebsiteAction;
|
|
30
|
+
addChangeLogItem: (input: import('./gen').AddChangeLogItemInput) => import('./gen').AddChangeLogItemAction;
|
|
31
|
+
updateChangeLogItem: (input: import('./gen').UpdateChangeLogItemInput) => import('./gen').UpdateChangeLogItemAction;
|
|
32
|
+
deleteChangeLogItem: (input: import('./gen').DeleteChangeLogItemInput) => import('./gen').DeleteChangeLogItemAction;
|
|
33
|
+
reorderChangeLogItems: (input: import('./gen').ReorderChangeLogItemsInput) => import('./gen').ReorderChangeLogItemsAction;
|
|
34
|
+
releaseNewVersion: () => import('./gen').ReleaseNewVersionAction;
|
|
35
|
+
addModule: (input: import('./gen').AddModuleInput) => import('./gen').AddModuleAction;
|
|
36
|
+
setModuleName: (input: import('./gen').SetModuleNameInput) => import('./gen').SetModuleNameAction;
|
|
37
|
+
setModuleDescription: (input: import('./gen').SetModuleDescriptionInput) => import('./gen').SetModuleDescriptionAction;
|
|
38
|
+
deleteModule: (input: import('./gen').DeleteModuleInput) => import('./gen').DeleteModuleAction;
|
|
39
|
+
reorderModules: (input: import('./gen').ReorderModulesInput) => import('./gen').ReorderModulesAction;
|
|
40
|
+
addOperationError: (input: import('./gen').AddOperationErrorInput) => import('./gen').AddOperationErrorAction;
|
|
41
|
+
setOperationErrorCode: (input: import('./gen').SetOperationErrorCodeInput) => import('./gen').SetOperationErrorCodeAction;
|
|
42
|
+
setOperationErrorName: (input: import('./gen').SetOperationErrorNameInput) => import('./gen').SetOperationErrorNameAction;
|
|
43
|
+
setOperationErrorDescription: (input: import('./gen').SetOperationErrorDescriptionInput) => import('./gen').SetOperationErrorDescriptionAction;
|
|
44
|
+
setOperationErrorTemplate: (input: import('./gen').SetOperationErrorTemplateInput) => import('./gen').SetOperationErrorTemplateAction;
|
|
45
|
+
deleteOperationError: (input: import('./gen').DeleteOperationErrorInput) => import('./gen').DeleteOperationErrorAction;
|
|
46
|
+
reorderOperationErrors: (input: import('./gen').ReorderOperationErrorsInput) => import('./gen').ReorderOperationErrorsAction;
|
|
47
|
+
addOperationExample: (input: import('./gen').AddOperationExampleInput) => import('./gen').AddOperationExampleAction;
|
|
48
|
+
updateOperationExample: (input: import('./gen').UpdateOperationExampleInput) => import('./gen').UpdateOperationExampleAction;
|
|
49
|
+
deleteOperationExample: (input: import('./gen').DeleteOperationExampleInput) => import('./gen').DeleteOperationExampleAction;
|
|
50
|
+
reorderOperationExamples: (input: import('./gen').ReorderOperationExamplesInput) => import('./gen').ReorderOperationExamplesAction;
|
|
51
|
+
addOperation: (input: import('./gen').AddOperationInput) => import('./gen').AddOperationAction;
|
|
52
|
+
setOperationName: (input: import('./gen').SetOperationNameInput) => import('./gen').SetOperationNameAction;
|
|
53
|
+
setOperationScope: (input: import('./gen').SetOperationScopeInput) => import('./gen').SetOperationScopeAction;
|
|
54
|
+
setOperationSchema: (input: import('./gen').SetOperationSchemaInput) => import('./gen').SetOperationSchemaAction;
|
|
55
|
+
setOperationDescription: (input: import('./gen').SetOperationDescriptionInput) => import('./gen').SetOperationDescriptionAction;
|
|
56
|
+
setOperationTemplate: (input: import('./gen').SetOperationTemplateInput) => import('./gen').SetOperationTemplateAction;
|
|
57
|
+
setOperationReducer: (input: import('./gen').SetOperationReducerInput) => import('./gen').SetOperationReducerAction;
|
|
58
|
+
moveOperation: (input: import('./gen').MoveOperationInput) => import('./gen').MoveOperationAction;
|
|
59
|
+
deleteOperation: (input: import('./gen').DeleteOperationInput) => import('./gen').DeleteOperationAction;
|
|
60
|
+
reorderModuleOperations: (input: import('./gen').ReorderModuleOperationsInput) => import('./gen').ReorderModuleOperationsAction;
|
|
61
|
+
setStateSchema: (input: import('./gen').SetStateSchemaInput) => import('./gen').SetStateSchemaAction;
|
|
62
|
+
setInitialState: (input: import('./gen').SetInitialStateInput) => import('./gen').SetInitialStateAction;
|
|
63
|
+
addStateExample: (input: import('./gen').AddStateExampleInput) => import('./gen').AddStateExampleAction;
|
|
64
|
+
updateStateExample: (input: import('./gen').UpdateStateExampleInput) => import('./gen').UpdateStateExampleAction;
|
|
65
|
+
deleteStateExample: (input: import('./gen').DeleteStateExampleInput) => import('./gen').DeleteStateExampleAction;
|
|
66
|
+
reorderStateExamples: (input: import('./gen').ReorderStateExamplesInput) => import('./gen').ReorderStateExamplesAction;
|
|
67
|
+
setName: (name: string) => import('../document/actions/types').SetNameAction;
|
|
68
|
+
undo: (skip?: number, scope?: import('../document').OperationScope) => import('../document/actions/types').UndoAction;
|
|
69
|
+
redo: (count?: number, scope?: import('../document').OperationScope) => import('../document/actions/types').RedoAction;
|
|
70
|
+
prune: (start?: number | undefined, end?: number | undefined, scope?: import('../document').OperationScope) => import('../document/actions/types').PruneAction;
|
|
71
|
+
loadState: <S, T>(state: Pick<import('../document').ExtendedState<S, T>, "name" | "state">, operations: number) => import('../document/actions/types').LoadStateAction;
|
|
72
|
+
noop: (scope?: import('../document').OperationScope) => import('../document/actions/types').NOOPAction;
|
|
76
73
|
};
|
|
77
74
|
export declare const module: _DocumentModel<DocumentModelState, DocumentModelAction, DocumentModelLocalState, DocumentModel>;
|
|
78
75
|
export * from './custom/utils';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import(
|
|
1
|
+
declare const _default: import('vite').UserConfigFnObject;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import(
|
|
1
|
+
declare const _default: import('vite').UserConfig;
|
|
2
2
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "document-model",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"private": false,
|
|
6
6
|
"files": [
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"check-types": "tsc",
|
|
16
16
|
"lint": "eslint . && npm run check-types",
|
|
17
17
|
"lint:fix": "eslint --fix . && npm run check-types",
|
|
18
|
-
"build": "npm run build:browser && npm run build:node",
|
|
18
|
+
"build": "NODE_ENV=production npm run build:browser && npm run build:node",
|
|
19
19
|
"build:browser": "vite build --mode browser",
|
|
20
20
|
"build:node": "vite build --mode node",
|
|
21
21
|
"test": "vitest run",
|
|
@@ -87,11 +87,12 @@
|
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
89
|
"change-case": "^5.4.3",
|
|
90
|
-
"immer": "^10.0.3",
|
|
91
90
|
"jszip": "^3.10.1",
|
|
92
91
|
"mime": "^4.0.1",
|
|
92
|
+
"mutative": "^1.0.5",
|
|
93
93
|
"safe-stable-stringify": "^2.4.3",
|
|
94
94
|
"uuid": "^9.0.1",
|
|
95
95
|
"zod": "^3.22.4"
|
|
96
|
-
}
|
|
96
|
+
},
|
|
97
|
+
"packageManager": "pnpm@9.1.4+sha256.30a1801ac4e723779efed13a21f4c39f9eb6c9fbb4ced101bce06b422593d7c9"
|
|
97
98
|
}
|