document-model 1.0.51 → 1.0.53

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.
Files changed (98) hide show
  1. package/dist/browser/cjs/document-model.js +1 -1
  2. package/dist/browser/cjs/document.js +1 -1
  3. package/dist/browser/cjs/index.js +1 -1
  4. package/dist/{node/cjs/internal/index-CRjFLQNR.js → browser/cjs/internal/index-BAk-LH-1.js} +1 -1
  5. package/dist/browser/cjs/internal/{index-CPJM383s.js → index-Cb6Xq42D.js} +1 -1
  6. package/dist/browser/cjs/internal/object-D1n8rS0m.js +25 -0
  7. package/dist/browser/es/document-model.js +2 -2
  8. package/dist/browser/es/document.js +2 -2
  9. package/dist/browser/es/index.js +3 -3
  10. package/dist/browser/es/internal/{index-BzIVYv7p.js → index-DeOZH3b_.js} +1 -1
  11. package/dist/browser/es/internal/{index-tEH7iGUj.js → index-DwxnEmzI.js} +1 -1
  12. package/dist/browser/es/internal/{object-Dev4WFVH.js → object-DsqsdDFj.js} +767 -771
  13. package/dist/browser/src/document/object.d.ts +35 -0
  14. package/dist/browser/src/document/types.d.ts +2 -0
  15. package/dist/node/cjs/document-model.js +1 -1
  16. package/dist/node/cjs/document.js +1 -1
  17. package/dist/node/cjs/index.js +1 -1
  18. package/dist/{browser/cjs/internal/index-REU04m7f.js → node/cjs/internal/index-CpjKrifV.js} +1 -1
  19. package/dist/node/cjs/internal/{index-BX95XaQ_.js → index-DzXcygIJ.js} +1 -1
  20. package/dist/node/cjs/internal/object-Cx_c54j_.js +20 -0
  21. package/dist/node/es/document-model.js +2 -2
  22. package/dist/node/es/document.js +2 -2
  23. package/dist/node/es/index.js +3 -3
  24. package/dist/node/es/internal/{index-BzNCX_-9.js → index-CUitPgxf.js} +1 -1
  25. package/dist/node/es/internal/{index-DpH4_29z.js → index-V-nmqbyU.js} +1 -1
  26. package/dist/node/es/internal/{object-BFkXGmt6.js → object-C0WcyLCx.js} +500 -504
  27. package/dist/node/src/document/object.d.ts +35 -0
  28. package/dist/node/src/document/types.d.ts +2 -0
  29. package/package.json +1 -1
  30. package/dist/browser/cjs/internal/object-DkoS83BB.js +0 -25
  31. package/dist/node/cjs/internal/object-CGt7Qacd.js +0 -20
  32. package/dist/src/document/actions/creators.d.ts +0 -47
  33. package/dist/src/document/actions/index.d.ts +0 -14
  34. package/dist/src/document/actions/types.d.ts +0 -15
  35. package/dist/src/document/index.d.ts +0 -6
  36. package/dist/src/document/object.d.ts +0 -1140
  37. package/dist/src/document/reducer.d.ts +0 -32
  38. package/dist/src/document/schema/index.d.ts +0 -2
  39. package/dist/src/document/schema/types.d.ts +0 -176
  40. package/dist/src/document/schema/zod.d.ts +0 -113
  41. package/dist/src/document/signal.d.ts +0 -29
  42. package/dist/src/document/types.d.ts +0 -247
  43. package/dist/src/document/utils/base.d.ts +0 -85
  44. package/dist/src/document/utils/file.d.ts +0 -48
  45. package/dist/src/document/utils/index.d.ts +0 -4
  46. package/dist/src/document/utils/node.d.ts +0 -9
  47. package/dist/src/document/utils/validation.d.ts +0 -2
  48. package/dist/src/document-model/custom/reducers/header.d.ts +0 -2
  49. package/dist/src/document-model/custom/reducers/module.d.ts +0 -2
  50. package/dist/src/document-model/custom/reducers/operation-error.d.ts +0 -2
  51. package/dist/src/document-model/custom/reducers/operation-example.d.ts +0 -2
  52. package/dist/src/document-model/custom/reducers/operation.d.ts +0 -2
  53. package/dist/src/document-model/custom/reducers/state.d.ts +0 -2
  54. package/dist/src/document-model/custom/reducers/versioning.d.ts +0 -7
  55. package/dist/src/document-model/custom/utils.d.ts +0 -7
  56. package/dist/src/document-model/gen/actions.d.ts +0 -15
  57. package/dist/src/document-model/gen/creators.d.ts +0 -7
  58. package/dist/src/document-model/gen/document-model.d.ts +0 -2
  59. package/dist/src/document-model/gen/header/actions.d.ts +0 -9
  60. package/dist/src/document-model/gen/header/creators.d.ts +0 -8
  61. package/dist/src/document-model/gen/header/object.d.ts +0 -12
  62. package/dist/src/document-model/gen/header/operations.d.ts +0 -10
  63. package/dist/src/document-model/gen/index.d.ts +0 -5
  64. package/dist/src/document-model/gen/module/actions.d.ts +0 -8
  65. package/dist/src/document-model/gen/module/creators.d.ts +0 -7
  66. package/dist/src/document-model/gen/module/object.d.ts +0 -11
  67. package/dist/src/document-model/gen/module/operations.d.ts +0 -9
  68. package/dist/src/document-model/gen/object.d.ts +0 -28
  69. package/dist/src/document-model/gen/operation/actions.d.ts +0 -13
  70. package/dist/src/document-model/gen/operation/creators.d.ts +0 -12
  71. package/dist/src/document-model/gen/operation/object.d.ts +0 -16
  72. package/dist/src/document-model/gen/operation/operations.d.ts +0 -14
  73. package/dist/src/document-model/gen/operation-error/actions.d.ts +0 -10
  74. package/dist/src/document-model/gen/operation-error/creators.d.ts +0 -9
  75. package/dist/src/document-model/gen/operation-error/object.d.ts +0 -13
  76. package/dist/src/document-model/gen/operation-error/operations.d.ts +0 -11
  77. package/dist/src/document-model/gen/operation-example/actions.d.ts +0 -7
  78. package/dist/src/document-model/gen/operation-example/creators.d.ts +0 -6
  79. package/dist/src/document-model/gen/operation-example/object.d.ts +0 -10
  80. package/dist/src/document-model/gen/operation-example/operations.d.ts +0 -8
  81. package/dist/src/document-model/gen/reducer.d.ts +0 -5
  82. package/dist/src/document-model/gen/schema/index.d.ts +0 -2
  83. package/dist/src/document-model/gen/schema/types.d.ts +0 -453
  84. package/dist/src/document-model/gen/schema/zod.d.ts +0 -453
  85. package/dist/src/document-model/gen/state/actions.d.ts +0 -9
  86. package/dist/src/document-model/gen/state/creators.d.ts +0 -8
  87. package/dist/src/document-model/gen/state/object.d.ts +0 -12
  88. package/dist/src/document-model/gen/state/operations.d.ts +0 -10
  89. package/dist/src/document-model/gen/types.d.ts +0 -8
  90. package/dist/src/document-model/gen/utils.d.ts +0 -6
  91. package/dist/src/document-model/gen/versioning/actions.d.ts +0 -8
  92. package/dist/src/document-model/gen/versioning/creators.d.ts +0 -7
  93. package/dist/src/document-model/gen/versioning/object.d.ts +0 -11
  94. package/dist/src/document-model/gen/versioning/operations.d.ts +0 -9
  95. package/dist/src/document-model/index.d.ts +0 -80
  96. package/dist/src/index.d.ts +0 -25
  97. package/dist/vite.config.d.ts +0 -2
  98. package/dist/vitest.config.d.ts +0 -2
@@ -1,453 +0,0 @@
1
- import { z } from 'zod';
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
- import { OperationScope } from '../../../document';
4
- type Properties<T> = Required<{
5
- [K in keyof T]: z.ZodType<T[K], any, T[K]>;
6
- }>;
7
- type definedNonNullAny = {};
8
- export declare const isDefinedNonNullAny: (v: any) => v is definedNonNullAny;
9
- export declare const definedNonNullAnySchema: z.ZodEffects<z.ZodAny, any, any>;
10
- export declare function AddChangeLogItemInputSchema(): z.ZodObject<Properties<AddChangeLogItemInput>>;
11
- export declare function AddModuleInputSchema(): z.ZodObject<Properties<AddModuleInput>>;
12
- export declare function AddOperationErrorInputSchema(): z.ZodObject<Properties<AddOperationErrorInput>>;
13
- export declare function AddOperationExampleInputSchema(): z.ZodObject<Properties<AddOperationExampleInput>>;
14
- export declare function AddOperationInputSchema(): z.ZodObject<Properties<AddOperationInput>>;
15
- export declare function AddStateExampleInputSchema(): z.ZodObject<Properties<AddStateExampleInput>>;
16
- export declare function AuthorSchema(): z.ZodObject<Properties<Author>>;
17
- export declare function CodeExampleSchema(): z.ZodObject<Properties<CodeExample>>;
18
- export declare function DeleteChangeLogItemInputSchema(): z.ZodObject<Properties<DeleteChangeLogItemInput>>;
19
- export declare function DeleteModuleInputSchema(): z.ZodObject<Properties<DeleteModuleInput>>;
20
- export declare function DeleteOperationErrorInputSchema(): z.ZodObject<Properties<DeleteOperationErrorInput>>;
21
- export declare function DeleteOperationExampleInputSchema(): z.ZodObject<Properties<DeleteOperationExampleInput>>;
22
- export declare function DeleteOperationInputSchema(): z.ZodObject<Properties<DeleteOperationInput>>;
23
- export declare function DeleteStateExampleInputSchema(): z.ZodObject<Properties<DeleteStateExampleInput>>;
24
- export declare function OperationScopeSchema(): z.ZodType<OperationScope>;
25
- export declare function DocumentModelInputSchema(): z.ZodUnion<[z.ZodObject<Required<{
26
- __typename?: z.ZodType<"AddChangeLogItemInput" | undefined, any, "AddChangeLogItemInput" | undefined> | undefined;
27
- content: z.ZodType<string, any, string>;
28
- id: z.ZodType<string, any, string>;
29
- insertBefore: z.ZodType<import("./types").Maybe<string>, any, import("./types").Maybe<string>>;
30
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
31
- content: string;
32
- id: string;
33
- insertBefore: string | null;
34
- __typename?: "AddChangeLogItemInput" | undefined;
35
- }, {
36
- content: string;
37
- id: string;
38
- insertBefore: string | null;
39
- __typename?: "AddChangeLogItemInput" | undefined;
40
- }>, z.ZodObject<Required<{
41
- description?: z.ZodType<import("./types").InputMaybe<string>, any, import("./types").InputMaybe<string>> | undefined;
42
- id: z.ZodType<string, any, string>;
43
- name: z.ZodType<string, any, string>;
44
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
45
- id: string;
46
- name: string;
47
- description?: import("./types").InputMaybe<string>;
48
- }, {
49
- id: string;
50
- name: string;
51
- description?: import("./types").InputMaybe<string>;
52
- }>, z.ZodObject<Required<{
53
- errorCode?: z.ZodType<import("./types").InputMaybe<string>, any, import("./types").InputMaybe<string>> | undefined;
54
- errorDescription?: z.ZodType<import("./types").InputMaybe<string>, any, import("./types").InputMaybe<string>> | undefined;
55
- errorName?: z.ZodType<import("./types").InputMaybe<string>, any, import("./types").InputMaybe<string>> | undefined;
56
- errorTemplate?: z.ZodType<import("./types").InputMaybe<string>, any, import("./types").InputMaybe<string>> | undefined;
57
- id: z.ZodType<string, any, string>;
58
- operationId: z.ZodType<string, any, string>;
59
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
60
- id: string;
61
- operationId: string;
62
- errorCode?: import("./types").InputMaybe<string>;
63
- errorDescription?: import("./types").InputMaybe<string>;
64
- errorName?: import("./types").InputMaybe<string>;
65
- errorTemplate?: import("./types").InputMaybe<string>;
66
- }, {
67
- id: string;
68
- operationId: string;
69
- errorCode?: import("./types").InputMaybe<string>;
70
- errorDescription?: import("./types").InputMaybe<string>;
71
- errorName?: import("./types").InputMaybe<string>;
72
- errorTemplate?: import("./types").InputMaybe<string>;
73
- }>, z.ZodObject<Required<{
74
- example: z.ZodType<string, any, string>;
75
- id: z.ZodType<string, any, string>;
76
- operationId: z.ZodType<string, any, string>;
77
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
78
- id: string;
79
- operationId: string;
80
- example: string;
81
- }, {
82
- id: string;
83
- operationId: string;
84
- example: string;
85
- }>, z.ZodObject<Required<{
86
- description?: z.ZodType<import("./types").InputMaybe<string>, any, import("./types").InputMaybe<string>> | undefined;
87
- id: z.ZodType<string, any, string>;
88
- moduleId: z.ZodType<string, any, string>;
89
- name: z.ZodType<string, any, string>;
90
- reducer?: z.ZodType<import("./types").InputMaybe<string>, any, import("./types").InputMaybe<string>> | undefined;
91
- schema?: z.ZodType<import("./types").InputMaybe<string>, any, import("./types").InputMaybe<string>> | undefined;
92
- template?: z.ZodType<import("./types").InputMaybe<string>, any, import("./types").InputMaybe<string>> | undefined;
93
- scope?: z.ZodType<import("./types").InputMaybe<OperationScope>, any, import("./types").InputMaybe<OperationScope>> | undefined;
94
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
95
- id: string;
96
- name: string;
97
- moduleId: string;
98
- description?: import("./types").InputMaybe<string>;
99
- reducer?: import("./types").InputMaybe<string>;
100
- schema?: import("./types").InputMaybe<string>;
101
- template?: import("./types").InputMaybe<string>;
102
- scope?: import("./types").InputMaybe<OperationScope>;
103
- }, {
104
- id: string;
105
- name: string;
106
- moduleId: string;
107
- description?: import("./types").InputMaybe<string>;
108
- reducer?: import("./types").InputMaybe<string>;
109
- schema?: import("./types").InputMaybe<string>;
110
- template?: import("./types").InputMaybe<string>;
111
- scope?: import("./types").InputMaybe<OperationScope>;
112
- }>, z.ZodObject<Required<{
113
- scope: z.ZodType<string, any, string>;
114
- example: z.ZodType<string, any, string>;
115
- id: z.ZodType<string, any, string>;
116
- insertBefore?: z.ZodType<import("./types").InputMaybe<string>, any, import("./types").InputMaybe<string>> | undefined;
117
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
118
- id: string;
119
- example: string;
120
- scope: string;
121
- insertBefore?: import("./types").InputMaybe<string>;
122
- }, {
123
- id: string;
124
- example: string;
125
- scope: string;
126
- insertBefore?: import("./types").InputMaybe<string>;
127
- }>, z.ZodObject<Required<{
128
- __typename?: z.ZodType<"DeleteChangeLogItemInput" | undefined, any, "DeleteChangeLogItemInput" | undefined> | undefined;
129
- id: z.ZodType<string, any, string>;
130
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
131
- id: string;
132
- __typename?: "DeleteChangeLogItemInput" | undefined;
133
- }, {
134
- id: string;
135
- __typename?: "DeleteChangeLogItemInput" | undefined;
136
- }>, z.ZodObject<Required<{
137
- id: z.ZodType<string, any, string>;
138
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
139
- id: string;
140
- }, {
141
- id: string;
142
- }>, z.ZodObject<Required<{
143
- id: z.ZodType<string, any, string>;
144
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
145
- id: string;
146
- }, {
147
- id: string;
148
- }>, z.ZodObject<Required<{
149
- id: z.ZodType<string, any, string>;
150
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
151
- id: string;
152
- }, {
153
- id: string;
154
- }>, z.ZodObject<Required<{
155
- id: z.ZodType<string, any, string>;
156
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
157
- id: string;
158
- }, {
159
- id: string;
160
- }>, z.ZodObject<Required<{
161
- scope: z.ZodType<string, any, string>;
162
- id: z.ZodType<string, any, string>;
163
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
164
- id: string;
165
- scope: string;
166
- }, {
167
- id: string;
168
- scope: string;
169
- }>, z.ZodObject<Required<{
170
- newModuleId: z.ZodType<string, any, string>;
171
- operationId: z.ZodType<string, any, string>;
172
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
173
- operationId: string;
174
- newModuleId: string;
175
- }, {
176
- operationId: string;
177
- newModuleId: string;
178
- }>, z.ZodObject<Required<{
179
- __typename?: z.ZodType<"ReorderChangeLogItemsInput" | undefined, any, "ReorderChangeLogItemsInput" | undefined> | undefined;
180
- order: z.ZodType<string[], any, string[]>;
181
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
182
- order: string[];
183
- __typename?: "ReorderChangeLogItemsInput" | undefined;
184
- }, {
185
- order: string[];
186
- __typename?: "ReorderChangeLogItemsInput" | undefined;
187
- }>, z.ZodObject<Required<{
188
- moduleId: z.ZodType<string, any, string>;
189
- order: z.ZodType<string[], any, string[]>;
190
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
191
- moduleId: string;
192
- order: string[];
193
- }, {
194
- moduleId: string;
195
- order: string[];
196
- }>, z.ZodObject<Required<{
197
- order: z.ZodType<string[], any, string[]>;
198
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
199
- order: string[];
200
- }, {
201
- order: string[];
202
- }>, z.ZodObject<Required<{
203
- operationId: z.ZodType<string, any, string>;
204
- order: z.ZodType<string[], any, string[]>;
205
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
206
- operationId: string;
207
- order: string[];
208
- }, {
209
- operationId: string;
210
- order: string[];
211
- }>, z.ZodObject<Required<{
212
- operationId: z.ZodType<string, any, string>;
213
- order: z.ZodType<string[], any, string[]>;
214
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
215
- operationId: string;
216
- order: string[];
217
- }, {
218
- operationId: string;
219
- order: string[];
220
- }>, z.ZodObject<Required<{
221
- scope: z.ZodType<string, any, string>;
222
- order: z.ZodType<string[], any, string[]>;
223
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
224
- scope: string;
225
- order: string[];
226
- }, {
227
- scope: string;
228
- order: string[];
229
- }>, z.ZodObject<Required<{
230
- authorName: z.ZodType<string, any, string>;
231
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
232
- authorName: string;
233
- }, {
234
- authorName: string;
235
- }>, z.ZodObject<Required<{
236
- authorWebsite: z.ZodType<string, any, string>;
237
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
238
- authorWebsite: string;
239
- }, {
240
- authorWebsite: string;
241
- }>, z.ZodObject<Required<{
242
- scope: z.ZodType<string, any, string>;
243
- initialValue: z.ZodType<string, any, string>;
244
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
245
- scope: string;
246
- initialValue: string;
247
- }, {
248
- scope: string;
249
- initialValue: string;
250
- }>, z.ZodObject<Required<{
251
- description: z.ZodType<string, any, string>;
252
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
253
- description: string;
254
- }, {
255
- description: string;
256
- }>, z.ZodObject<Required<{
257
- extension: z.ZodType<string, any, string>;
258
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
259
- extension: string;
260
- }, {
261
- extension: string;
262
- }>, z.ZodObject<Required<{
263
- id: z.ZodType<string, any, string>;
264
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
265
- id: string;
266
- }, {
267
- id: string;
268
- }>, z.ZodObject<Required<{
269
- name: z.ZodType<string, any, string>;
270
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
271
- name: string;
272
- }, {
273
- name: string;
274
- }>, z.ZodObject<Required<{
275
- description?: z.ZodType<import("./types").InputMaybe<string>, any, import("./types").InputMaybe<string>> | undefined;
276
- id: z.ZodType<string, any, string>;
277
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
278
- id: string;
279
- description?: import("./types").InputMaybe<string>;
280
- }, {
281
- id: string;
282
- description?: import("./types").InputMaybe<string>;
283
- }>, z.ZodObject<Required<{
284
- id: z.ZodType<string, any, string>;
285
- name?: z.ZodType<import("./types").InputMaybe<string>, any, import("./types").InputMaybe<string>> | undefined;
286
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
287
- id: string;
288
- name?: import("./types").InputMaybe<string>;
289
- }, {
290
- id: string;
291
- name?: import("./types").InputMaybe<string>;
292
- }>, z.ZodObject<Required<{
293
- description?: z.ZodType<import("./types").InputMaybe<string>, any, import("./types").InputMaybe<string>> | undefined;
294
- id: z.ZodType<string, any, string>;
295
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
296
- id: string;
297
- description?: import("./types").InputMaybe<string>;
298
- }, {
299
- id: string;
300
- description?: import("./types").InputMaybe<string>;
301
- }>, z.ZodObject<Required<{
302
- errorCode?: z.ZodType<import("./types").InputMaybe<string>, any, import("./types").InputMaybe<string>> | undefined;
303
- id: z.ZodType<string, any, string>;
304
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
305
- id: string;
306
- errorCode?: import("./types").InputMaybe<string>;
307
- }, {
308
- id: string;
309
- errorCode?: import("./types").InputMaybe<string>;
310
- }>, z.ZodObject<Required<{
311
- errorDescription?: z.ZodType<import("./types").InputMaybe<string>, any, import("./types").InputMaybe<string>> | undefined;
312
- id: z.ZodType<string, any, string>;
313
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
314
- id: string;
315
- errorDescription?: import("./types").InputMaybe<string>;
316
- }, {
317
- id: string;
318
- errorDescription?: import("./types").InputMaybe<string>;
319
- }>, z.ZodObject<Required<{
320
- errorName?: z.ZodType<import("./types").InputMaybe<string>, any, import("./types").InputMaybe<string>> | undefined;
321
- id: z.ZodType<string, any, string>;
322
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
323
- id: string;
324
- errorName?: import("./types").InputMaybe<string>;
325
- }, {
326
- id: string;
327
- errorName?: import("./types").InputMaybe<string>;
328
- }>, z.ZodObject<Required<{
329
- errorTemplate?: z.ZodType<import("./types").InputMaybe<string>, any, import("./types").InputMaybe<string>> | undefined;
330
- id: z.ZodType<string, any, string>;
331
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
332
- id: string;
333
- errorTemplate?: import("./types").InputMaybe<string>;
334
- }, {
335
- id: string;
336
- errorTemplate?: import("./types").InputMaybe<string>;
337
- }>, z.ZodObject<Required<{
338
- id: z.ZodType<string, any, string>;
339
- name?: z.ZodType<import("./types").InputMaybe<string>, any, import("./types").InputMaybe<string>> | undefined;
340
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
341
- id: string;
342
- name?: import("./types").InputMaybe<string>;
343
- }, {
344
- id: string;
345
- name?: import("./types").InputMaybe<string>;
346
- }>, z.ZodObject<Required<{
347
- id: z.ZodType<string, any, string>;
348
- reducer?: z.ZodType<import("./types").InputMaybe<string>, any, import("./types").InputMaybe<string>> | undefined;
349
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
350
- id: string;
351
- reducer?: import("./types").InputMaybe<string>;
352
- }, {
353
- id: string;
354
- reducer?: import("./types").InputMaybe<string>;
355
- }>, z.ZodObject<Required<{
356
- id: z.ZodType<string, any, string>;
357
- schema?: z.ZodType<import("./types").InputMaybe<string>, any, import("./types").InputMaybe<string>> | undefined;
358
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
359
- id: string;
360
- schema?: import("./types").InputMaybe<string>;
361
- }, {
362
- id: string;
363
- schema?: import("./types").InputMaybe<string>;
364
- }>, z.ZodObject<Required<{
365
- id: z.ZodType<string, any, string>;
366
- template?: z.ZodType<import("./types").InputMaybe<string>, any, import("./types").InputMaybe<string>> | undefined;
367
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
368
- id: string;
369
- template?: import("./types").InputMaybe<string>;
370
- }, {
371
- id: string;
372
- template?: import("./types").InputMaybe<string>;
373
- }>, z.ZodObject<Required<{
374
- scope: z.ZodType<string, any, string>;
375
- schema: z.ZodType<string, any, string>;
376
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
377
- schema: string;
378
- scope: string;
379
- }, {
380
- schema: string;
381
- scope: string;
382
- }>, z.ZodObject<Required<{
383
- __typename?: z.ZodType<"UpdateChangeLogItemInput" | undefined, any, "UpdateChangeLogItemInput" | undefined> | undefined;
384
- id: z.ZodType<string, any, string>;
385
- newContent: z.ZodType<string, any, string>;
386
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
387
- id: string;
388
- newContent: string;
389
- __typename?: "UpdateChangeLogItemInput" | undefined;
390
- }, {
391
- id: string;
392
- newContent: string;
393
- __typename?: "UpdateChangeLogItemInput" | undefined;
394
- }>, z.ZodObject<Required<{
395
- example: z.ZodType<string, any, string>;
396
- id: z.ZodType<string, any, string>;
397
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
398
- id: string;
399
- example: string;
400
- }, {
401
- id: string;
402
- example: string;
403
- }>, z.ZodObject<Required<{
404
- scope: z.ZodType<string, any, string>;
405
- id: z.ZodType<string, any, string>;
406
- newExample: z.ZodType<string, any, string>;
407
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
408
- id: string;
409
- scope: string;
410
- newExample: string;
411
- }, {
412
- id: string;
413
- scope: string;
414
- newExample: string;
415
- }>]>;
416
- export declare function DocumentModelStateSchema(): z.ZodObject<Properties<DocumentModelState>>;
417
- export declare function DocumentSpecificationSchema(): z.ZodObject<Properties<DocumentSpecification>>;
418
- export declare function ModuleSchema(): z.ZodObject<Properties<Module>>;
419
- export declare function MoveOperationInputSchema(): z.ZodObject<Properties<MoveOperationInput>>;
420
- export declare function OperationSchema(): z.ZodObject<Properties<Operation>>;
421
- export declare function OperationErrorSchema(): z.ZodObject<Properties<OperationError>>;
422
- export declare function ReorderChangeLogItemsInputSchema(): z.ZodObject<Properties<ReorderChangeLogItemsInput>>;
423
- export declare function ReorderModuleOperationsInputSchema(): z.ZodObject<Properties<ReorderModuleOperationsInput>>;
424
- export declare function ReorderModulesInputSchema(): z.ZodObject<Properties<ReorderModulesInput>>;
425
- export declare function ReorderOperationErrorsInputSchema(): z.ZodObject<Properties<ReorderOperationErrorsInput>>;
426
- export declare function ReorderOperationExamplesInputSchema(): z.ZodObject<Properties<ReorderOperationExamplesInput>>;
427
- export declare function ReorderStateExamplesInputSchema(): z.ZodObject<Properties<ReorderStateExamplesInput>>;
428
- export declare function SetAuthorNameInputSchema(): z.ZodObject<Properties<SetAuthorNameInput>>;
429
- export declare function SetAuthorWebsiteInputSchema(): z.ZodObject<Properties<SetAuthorWebsiteInput>>;
430
- export declare function SetInitialStateInputSchema(): z.ZodObject<Properties<SetInitialStateInput>>;
431
- export declare function SetModelDescriptionInputSchema(): z.ZodObject<Properties<SetModelDescriptionInput>>;
432
- export declare function SetModelExtensionInputSchema(): z.ZodObject<Properties<SetModelExtensionInput>>;
433
- export declare function SetModelIdInputSchema(): z.ZodObject<Properties<SetModelIdInput>>;
434
- export declare function SetModelNameInputSchema(): z.ZodObject<Properties<SetModelNameInput>>;
435
- export declare function SetModuleDescriptionInputSchema(): z.ZodObject<Properties<SetModuleDescriptionInput>>;
436
- export declare function SetModuleNameInputSchema(): z.ZodObject<Properties<SetModuleNameInput>>;
437
- export declare function SetOperationDescriptionInputSchema(): z.ZodObject<Properties<SetOperationDescriptionInput>>;
438
- export declare function SetOperationErrorCodeInputSchema(): z.ZodObject<Properties<SetOperationErrorCodeInput>>;
439
- export declare function SetOperationErrorDescriptionInputSchema(): z.ZodObject<Properties<SetOperationErrorDescriptionInput>>;
440
- export declare function SetOperationErrorNameInputSchema(): z.ZodObject<Properties<SetOperationErrorNameInput>>;
441
- export declare function SetOperationErrorTemplateInputSchema(): z.ZodObject<Properties<SetOperationErrorTemplateInput>>;
442
- export declare function SetOperationNameInputSchema(): z.ZodObject<Properties<SetOperationNameInput>>;
443
- export declare function SetOperationScopeInputSchema(): z.ZodObject<Properties<SetOperationScopeInput>>;
444
- export declare function SetOperationReducerInputSchema(): z.ZodObject<Properties<SetOperationReducerInput>>;
445
- export declare function SetOperationSchemaInputSchema(): z.ZodObject<Properties<SetOperationSchemaInput>>;
446
- export declare function SetOperationTemplateInputSchema(): z.ZodObject<Properties<SetOperationTemplateInput>>;
447
- export declare function SetStateSchemaInputSchema(): z.ZodObject<Properties<SetStateSchemaInput>>;
448
- export declare function StateSchema(): z.ZodObject<Properties<State>>;
449
- export declare function ScopeStateSchema(): z.ZodObject<Properties<ScopeState>>;
450
- export declare function UpdateChangeLogItemInputSchema(): z.ZodObject<Properties<UpdateChangeLogItemInput>>;
451
- export declare function UpdateOperationExampleInputSchema(): z.ZodObject<Properties<UpdateOperationExampleInput>>;
452
- export declare function UpdateStateExampleInputSchema(): z.ZodObject<Properties<UpdateStateExampleInput>>;
453
- export {};
@@ -1,9 +0,0 @@
1
- import { Action } from '../../../document';
2
- import { SetStateSchemaInput, SetInitialStateInput, AddStateExampleInput, UpdateStateExampleInput, DeleteStateExampleInput, ReorderStateExamplesInput } from '../types';
3
- export type SetStateSchemaAction = Action<'SET_STATE_SCHEMA', SetStateSchemaInput>;
4
- export type SetInitialStateAction = Action<'SET_INITIAL_STATE', SetInitialStateInput>;
5
- export type AddStateExampleAction = Action<'ADD_STATE_EXAMPLE', AddStateExampleInput>;
6
- export type UpdateStateExampleAction = Action<'UPDATE_STATE_EXAMPLE', UpdateStateExampleInput>;
7
- export type DeleteStateExampleAction = Action<'DELETE_STATE_EXAMPLE', DeleteStateExampleInput>;
8
- export type ReorderStateExamplesAction = Action<'REORDER_STATE_EXAMPLES', ReorderStateExamplesInput>;
9
- export type DocumentModelStateAction = SetStateSchemaAction | SetInitialStateAction | AddStateExampleAction | UpdateStateExampleAction | DeleteStateExampleAction | ReorderStateExamplesAction;
@@ -1,8 +0,0 @@
1
- import { SetStateSchemaInput, SetInitialStateInput, AddStateExampleInput, UpdateStateExampleInput, DeleteStateExampleInput, ReorderStateExamplesInput } from '../types';
2
- import { SetStateSchemaAction, SetInitialStateAction, AddStateExampleAction, UpdateStateExampleAction, DeleteStateExampleAction, ReorderStateExamplesAction } from './actions';
3
- export declare const setStateSchema: (input: SetStateSchemaInput) => SetStateSchemaAction;
4
- export declare const setInitialState: (input: SetInitialStateInput) => SetInitialStateAction;
5
- export declare const addStateExample: (input: AddStateExampleInput) => AddStateExampleAction;
6
- export declare const updateStateExample: (input: UpdateStateExampleInput) => UpdateStateExampleAction;
7
- export declare const deleteStateExample: (input: DeleteStateExampleInput) => DeleteStateExampleAction;
8
- export declare const reorderStateExamples: (input: ReorderStateExamplesInput) => ReorderStateExamplesAction;
@@ -1,12 +0,0 @@
1
- import { BaseDocument } from '../../../document/object';
2
- import { SetStateSchemaInput, SetInitialStateInput, AddStateExampleInput, UpdateStateExampleInput, DeleteStateExampleInput, ReorderStateExamplesInput, DocumentModelState, DocumentModelLocalState } from '../types';
3
- import { DocumentModelAction } from '../actions';
4
- import { ReducerOptions } from '../../../document';
5
- export default class DocumentModel_State extends BaseDocument<DocumentModelState, DocumentModelAction, DocumentModelLocalState> {
6
- setStateSchema(input: SetStateSchemaInput, options?: ReducerOptions): this;
7
- setInitialState(input: SetInitialStateInput, options?: ReducerOptions): this;
8
- addStateExample(input: AddStateExampleInput, options?: ReducerOptions): this;
9
- updateStateExample(input: UpdateStateExampleInput, options?: ReducerOptions): this;
10
- deleteStateExample(input: DeleteStateExampleInput, options?: ReducerOptions): this;
11
- reorderStateExamples(input: ReorderStateExamplesInput, options?: ReducerOptions): this;
12
- }
@@ -1,10 +0,0 @@
1
- import { SetStateSchemaAction, SetInitialStateAction, AddStateExampleAction, UpdateStateExampleAction, DeleteStateExampleAction, ReorderStateExamplesAction } from './actions';
2
- import { DocumentModelState } from '../types';
3
- export interface DocumentModelStateOperations {
4
- setStateSchemaOperation: (state: DocumentModelState, action: SetStateSchemaAction) => void;
5
- setInitialStateOperation: (state: DocumentModelState, action: SetInitialStateAction) => void;
6
- addStateExampleOperation: (state: DocumentModelState, action: AddStateExampleAction) => void;
7
- updateStateExampleOperation: (state: DocumentModelState, action: UpdateStateExampleAction) => void;
8
- deleteStateExampleOperation: (state: DocumentModelState, action: DeleteStateExampleAction) => void;
9
- reorderStateExamplesOperation: (state: DocumentModelState, action: ReorderStateExamplesAction) => void;
10
- }
@@ -1,8 +0,0 @@
1
- import type { Document, ExtendedState } from '../../document/types';
2
- import type { DocumentModelState, DocumentModelLocalState } from './schema/types';
3
- import type { DocumentModelAction } from './actions';
4
- export { z } from './schema';
5
- export type * from './schema/types';
6
- export type ExtendedDocumentModelState = ExtendedState<DocumentModelState>;
7
- export type DocumentModelDocument = Document<DocumentModelState, DocumentModelAction, DocumentModelLocalState>;
8
- export { DocumentModelState, DocumentModelAction, DocumentModelLocalState };
@@ -1,6 +0,0 @@
1
- import { DocumentModelUtils } from '../../document';
2
- import { DocumentModelAction, DocumentModelLocalState, DocumentModelState } from './types';
3
- export declare const initialGlobalState: DocumentModelState;
4
- export declare const initialLocalState: DocumentModelLocalState;
5
- declare const utils: DocumentModelUtils<DocumentModelState, DocumentModelAction, DocumentModelLocalState>;
6
- export default utils;
@@ -1,8 +0,0 @@
1
- import { Action } from '../../../document';
2
- import { AddChangeLogItemInput, UpdateChangeLogItemInput, DeleteChangeLogItemInput, ReorderChangeLogItemsInput } from '../types';
3
- export type AddChangeLogItemAction = Action<'ADD_CHANGE_LOG_ITEM', AddChangeLogItemInput>;
4
- export type UpdateChangeLogItemAction = Action<'UPDATE_CHANGE_LOG_ITEM', UpdateChangeLogItemInput>;
5
- export type DeleteChangeLogItemAction = Action<'DELETE_CHANGE_LOG_ITEM', DeleteChangeLogItemInput>;
6
- export type ReorderChangeLogItemsAction = Action<'REORDER_CHANGE_LOG_ITEMS', ReorderChangeLogItemsInput>;
7
- export type ReleaseNewVersionAction = Action<'RELEASE_NEW_VERSION', never>;
8
- export type DocumentModelVersioningAction = AddChangeLogItemAction | UpdateChangeLogItemAction | DeleteChangeLogItemAction | ReorderChangeLogItemsAction | ReleaseNewVersionAction;
@@ -1,7 +0,0 @@
1
- import { AddChangeLogItemInput, UpdateChangeLogItemInput, DeleteChangeLogItemInput, ReorderChangeLogItemsInput } from '../types';
2
- import { AddChangeLogItemAction, UpdateChangeLogItemAction, DeleteChangeLogItemAction, ReorderChangeLogItemsAction, ReleaseNewVersionAction } from './actions';
3
- export declare const addChangeLogItem: (input: AddChangeLogItemInput) => AddChangeLogItemAction;
4
- export declare const updateChangeLogItem: (input: UpdateChangeLogItemInput) => UpdateChangeLogItemAction;
5
- export declare const deleteChangeLogItem: (input: DeleteChangeLogItemInput) => DeleteChangeLogItemAction;
6
- export declare const reorderChangeLogItems: (input: ReorderChangeLogItemsInput) => ReorderChangeLogItemsAction;
7
- export declare const releaseNewVersion: () => ReleaseNewVersionAction;
@@ -1,11 +0,0 @@
1
- import { BaseDocument } from '../../../document/object';
2
- import { AddChangeLogItemInput, UpdateChangeLogItemInput, DeleteChangeLogItemInput, ReorderChangeLogItemsInput, DocumentModelState, DocumentModelLocalState } from '../types';
3
- import { DocumentModelAction } from '../actions';
4
- import { ReducerOptions } from '../../../document';
5
- export default class DocumentModel_Versioning extends BaseDocument<DocumentModelState, DocumentModelAction, DocumentModelLocalState> {
6
- addChangeLogItem(input: AddChangeLogItemInput, options?: ReducerOptions): this;
7
- updateChangeLogItem(input: UpdateChangeLogItemInput, options?: ReducerOptions): this;
8
- deleteChangeLogItem(input: DeleteChangeLogItemInput, options?: ReducerOptions): this;
9
- reorderChangeLogItems(input: ReorderChangeLogItemsInput, options?: ReducerOptions): this;
10
- releaseNewVersion(options?: ReducerOptions): this;
11
- }
@@ -1,9 +0,0 @@
1
- import { AddChangeLogItemAction, UpdateChangeLogItemAction, DeleteChangeLogItemAction, ReorderChangeLogItemsAction, ReleaseNewVersionAction } from './actions';
2
- import { DocumentModelState } from '../types';
3
- export interface DocumentModelVersioningOperations {
4
- addChangeLogItemOperation: (state: DocumentModelState, action: AddChangeLogItemAction) => void;
5
- updateChangeLogItemOperation: (state: DocumentModelState, action: UpdateChangeLogItemAction) => void;
6
- deleteChangeLogItemOperation: (state: DocumentModelState, action: DeleteChangeLogItemAction) => void;
7
- reorderChangeLogItemsOperation: (state: DocumentModelState, action: ReorderChangeLogItemsAction) => void;
8
- releaseNewVersionOperation: (state: DocumentModelState, action: ReleaseNewVersionAction) => void;
9
- }
@@ -1,80 +0,0 @@
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
- import { DocumentModel as _DocumentModel } from '../document';
6
- import { DocumentModel } from './gen';
7
- import { documentModel } from './gen/document-model';
8
- import { reducer } from './gen/reducer';
9
- import { DocumentModelAction, DocumentModelLocalState, DocumentModelState } from './gen/types';
10
- declare const Document: typeof DocumentModel;
11
- declare const utils: {
12
- validateInitialState(initialState: string, allowEmptyState?: boolean): import("../document").ValidationError[];
13
- validateStateSchemaName(schema: string, documentName: string, scope?: string, allowEmptySchema?: boolean): import("../document").ValidationError[];
14
- validateModules(modules: import("./gen").Module[]): import("../document").ValidationError[];
15
- validateModule(mod: import("./gen").Module): import("../document").ValidationError[];
16
- validateModuleOperation(operation: import("./gen").Operation): import("../document").ValidationError[];
17
- fileExtension: string;
18
- createState: import("../document").CreateState<DocumentModelState, DocumentModelLocalState>;
19
- 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>;
20
- 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>;
21
- loadFromFile: (path: string) => Promise<import("../document").Document<DocumentModelState, DocumentModelAction, DocumentModelLocalState>>;
22
- loadFromInput: (input: import("../document").FileInput) => Promise<import("../document").Document<DocumentModelState, DocumentModelAction, DocumentModelLocalState>>;
23
- saveToFile: (document: import("../document").Document<DocumentModelState, DocumentModelAction, DocumentModelLocalState>, path: string, name?: string | undefined) => Promise<string>;
24
- saveToFileHandle: (document: import("../document").Document<DocumentModelState, DocumentModelAction, DocumentModelLocalState>, input: FileSystemFileHandle) => Promise<void>;
25
- };
26
- declare const actions: {
27
- setModelName: (input: import("./gen").SetModelNameInput) => import("./gen").SetModelNameAction;
28
- setModelId: (input: import("./gen").SetModelIdInput) => import("./gen").SetModelIdAction;
29
- setModelExtension: (input: import("./gen").SetModelExtensionInput) => import("./gen").SetModelExtensionAction;
30
- setModelDescription: (input: import("./gen").SetModelDescriptionInput) => import("./gen").SetModelDescriptionAction;
31
- setAuthorName: (input: import("./gen").SetAuthorNameInput) => import("./gen").SetAuthorNameAction;
32
- setAuthorWebsite: (input: import("./gen").SetAuthorWebsiteInput) => import("./gen").SetAuthorWebsiteAction;
33
- addChangeLogItem: (input: import("./gen").AddChangeLogItemInput) => import("./gen").AddChangeLogItemAction;
34
- updateChangeLogItem: (input: import("./gen").UpdateChangeLogItemInput) => import("./gen").UpdateChangeLogItemAction;
35
- deleteChangeLogItem: (input: import("./gen").DeleteChangeLogItemInput) => import("./gen").DeleteChangeLogItemAction;
36
- reorderChangeLogItems: (input: import("./gen").ReorderChangeLogItemsInput) => import("./gen").ReorderChangeLogItemsAction;
37
- releaseNewVersion: () => import("./gen").ReleaseNewVersionAction;
38
- addModule: (input: import("./gen").AddModuleInput) => import("./gen").AddModuleAction;
39
- setModuleName: (input: import("./gen").SetModuleNameInput) => import("./gen").SetModuleNameAction;
40
- setModuleDescription: (input: import("./gen").SetModuleDescriptionInput) => import("./gen").SetModuleDescriptionAction;
41
- deleteModule: (input: import("./gen").DeleteModuleInput) => import("./gen").DeleteModuleAction;
42
- reorderModules: (input: import("./gen").ReorderModulesInput) => import("./gen").ReorderModulesAction;
43
- addOperationError: (input: import("./gen").AddOperationErrorInput) => import("./gen").AddOperationErrorAction;
44
- setOperationErrorCode: (input: import("./gen").SetOperationErrorCodeInput) => import("./gen").SetOperationErrorCodeAction;
45
- setOperationErrorName: (input: import("./gen").SetOperationErrorNameInput) => import("./gen").SetOperationErrorNameAction;
46
- setOperationErrorDescription: (input: import("./gen").SetOperationErrorDescriptionInput) => import("./gen").SetOperationErrorDescriptionAction;
47
- setOperationErrorTemplate: (input: import("./gen").SetOperationErrorTemplateInput) => import("./gen").SetOperationErrorTemplateAction;
48
- deleteOperationError: (input: import("./gen").DeleteOperationErrorInput) => import("./gen").DeleteOperationErrorAction;
49
- reorderOperationErrors: (input: import("./gen").ReorderOperationErrorsInput) => import("./gen").ReorderOperationErrorsAction;
50
- addOperationExample: (input: import("./gen").AddOperationExampleInput) => import("./gen").AddOperationExampleAction;
51
- updateOperationExample: (input: import("./gen").UpdateOperationExampleInput) => import("./gen").UpdateOperationExampleAction;
52
- deleteOperationExample: (input: import("./gen").DeleteOperationExampleInput) => import("./gen").DeleteOperationExampleAction;
53
- reorderOperationExamples: (input: import("./gen").ReorderOperationExamplesInput) => import("./gen").ReorderOperationExamplesAction;
54
- addOperation: (input: import("./gen").AddOperationInput) => import("./gen").AddOperationAction;
55
- setOperationName: (input: import("./gen").SetOperationNameInput) => import("./gen").SetOperationNameAction;
56
- setOperationScope: (input: import("./gen").SetOperationScopeInput) => import("./gen").SetOperationScopeAction;
57
- setOperationSchema: (input: import("./gen").SetOperationSchemaInput) => import("./gen").SetOperationSchemaAction;
58
- setOperationDescription: (input: import("./gen").SetOperationDescriptionInput) => import("./gen").SetOperationDescriptionAction;
59
- setOperationTemplate: (input: import("./gen").SetOperationTemplateInput) => import("./gen").SetOperationTemplateAction;
60
- setOperationReducer: (input: import("./gen").SetOperationReducerInput) => import("./gen").SetOperationReducerAction;
61
- moveOperation: (input: import("./gen").MoveOperationInput) => import("./gen").MoveOperationAction;
62
- deleteOperation: (input: import("./gen").DeleteOperationInput) => import("./gen").DeleteOperationAction;
63
- reorderModuleOperations: (input: import("./gen").ReorderModuleOperationsInput) => import("./gen").ReorderModuleOperationsAction;
64
- setStateSchema: (input: import("./gen").SetStateSchemaInput) => import("./gen").SetStateSchemaAction;
65
- setInitialState: (input: import("./gen").SetInitialStateInput) => import("./gen").SetInitialStateAction;
66
- addStateExample: (input: import("./gen").AddStateExampleInput) => import("./gen").AddStateExampleAction;
67
- updateStateExample: (input: import("./gen").UpdateStateExampleInput) => import("./gen").UpdateStateExampleAction;
68
- deleteStateExample: (input: import("./gen").DeleteStateExampleInput) => import("./gen").DeleteStateExampleAction;
69
- reorderStateExamples: (input: import("./gen").ReorderStateExamplesInput) => import("./gen").ReorderStateExamplesAction;
70
- setName: (name: string) => import("../document/actions/types").SetNameAction;
71
- undo: (skip?: number, scope?: import("../document").OperationScope) => import("../document/actions/types").UndoAction;
72
- redo: (count?: number, scope?: import("../document").OperationScope) => import("../document/actions/types").RedoAction;
73
- prune: (start?: number | undefined, end?: number | undefined, scope?: import("../document").OperationScope) => import("../document/actions/types").PruneAction;
74
- loadState: <S, T>(state: Pick<import("../document").ExtendedState<S, T>, "name" | "state">, operations: number) => import("../document/actions/types").LoadStateAction;
75
- noop: (scope?: import("../document").OperationScope) => import("../document/actions/types").NOOPAction;
76
- };
77
- export declare const module: _DocumentModel<DocumentModelState, DocumentModelAction, DocumentModelLocalState, DocumentModel>;
78
- export * from './custom/utils';
79
- export * from './gen/types';
80
- export { DocumentModel, Document, reducer, actions, utils, documentModel };