document-model 4.1.0-dev.4 → 4.1.0-dev.7

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 (40) hide show
  1. package/dist/src/document-model/gen/document-model.d.ts.map +1 -1
  2. package/dist/src/document-model/gen/document-model.js +137 -137
  3. package/dist/src/document-model/gen/document-model.js.map +1 -1
  4. package/dist/src/document-model/gen/header/creators.d.ts +1 -1
  5. package/dist/src/document-model/gen/header/creators.d.ts.map +1 -1
  6. package/dist/src/document-model/gen/header/creators.js +7 -8
  7. package/dist/src/document-model/gen/header/creators.js.map +1 -1
  8. package/dist/src/document-model/gen/module/creators.d.ts +1 -1
  9. package/dist/src/document-model/gen/module/creators.d.ts.map +1 -1
  10. package/dist/src/document-model/gen/module/creators.js +6 -7
  11. package/dist/src/document-model/gen/module/creators.js.map +1 -1
  12. package/dist/src/document-model/gen/operation/creators.d.ts +1 -1
  13. package/dist/src/document-model/gen/operation/creators.d.ts.map +1 -1
  14. package/dist/src/document-model/gen/operation/creators.js +11 -18
  15. package/dist/src/document-model/gen/operation/creators.js.map +1 -1
  16. package/dist/src/document-model/gen/operation-error/creators.d.ts +1 -1
  17. package/dist/src/document-model/gen/operation-error/creators.d.ts.map +1 -1
  18. package/dist/src/document-model/gen/operation-error/creators.js +8 -15
  19. package/dist/src/document-model/gen/operation-error/creators.js.map +1 -1
  20. package/dist/src/document-model/gen/operation-example/creators.d.ts +1 -1
  21. package/dist/src/document-model/gen/operation-example/creators.d.ts.map +1 -1
  22. package/dist/src/document-model/gen/operation-example/creators.js +5 -12
  23. package/dist/src/document-model/gen/operation-example/creators.js.map +1 -1
  24. package/dist/src/document-model/gen/schema/index.d.ts +3 -0
  25. package/dist/src/document-model/gen/schema/index.d.ts.map +1 -0
  26. package/dist/src/document-model/gen/schema/index.js +3 -0
  27. package/dist/src/document-model/gen/schema/index.js.map +1 -0
  28. package/dist/src/document-model/gen/schema/types.d.ts +1 -1
  29. package/dist/src/document-model/gen/schema/types.d.ts.map +1 -1
  30. package/dist/src/document-model/gen/schema/zod.d.ts.map +1 -1
  31. package/dist/src/document-model/gen/state/creators.d.ts +1 -1
  32. package/dist/src/document-model/gen/state/creators.d.ts.map +1 -1
  33. package/dist/src/document-model/gen/state/creators.js +8 -9
  34. package/dist/src/document-model/gen/state/creators.js.map +1 -1
  35. package/dist/src/document-model/gen/versioning/creators.d.ts +1 -1
  36. package/dist/src/document-model/gen/versioning/creators.d.ts.map +1 -1
  37. package/dist/src/document-model/gen/versioning/creators.js +6 -11
  38. package/dist/src/document-model/gen/versioning/creators.js.map +1 -1
  39. package/dist/tsconfig.tsbuildinfo +1 -1
  40. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"document-model.d.ts","sourceRoot":"","sources":["../../../../src/document-model/gen/document-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,eAAO,MAAM,kBAAkB,EAAE,kBA8hBhC,CAAC"}
1
+ {"version":3,"file":"document-model.d.ts","sourceRoot":"","sources":["../../../../src/document-model/gen/document-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,eAAO,MAAM,kBAAkB,EAAE,kBAkiBhC,CAAC"}
@@ -11,15 +11,27 @@ export const documentModelState = {
11
11
  {
12
12
  version: 1,
13
13
  changeLog: [],
14
+ state: {
15
+ global: {
16
+ schema: "type CodeExample {\n id: ID!\n value: String!\n}\n\ntype OperationError {\n id: ID!\n code: String\n name: String\n description: String\n template: String\n}\n\ntype Operation {\n id: ID!\n name: String\n schema: String\n description: String\n template: String\n errors: [OperationError!]!\n examples: [CodeExample!]!\n reducer: String\n scope: String\n}\n\ntype Module {\n id: ID!\n name: String!\n description: String\n operations: [Operation!]!\n}\n\ntype State {\n schema: String!\n initialValue: String!\n examples: [CodeExample!]!\n}\n\ntype ScopeState {\n global: State!\n local: State!\n}\n\ntype Author {\n name: String!\n website: String\n}\n\ntype DocumentSpecification {\n version: Int!\n state: ScopeState!\n modules: [Module!]!\n changeLog: [String!]!\n}\n\ntype DocumentModelState {\n name: String!\n id: String!\n extension: String!\n description: String!\n author: Author!\n specifications: [DocumentSpecification!]!\n}",
17
+ initialValue: '{\n "id": "",\n "name": "",\n "extension": "",\n "description": "",\n "author": {\n "name": "",\n "website": ""\n },\n "specifications": [\n {\n "version": 1,\n "changeLog": [],\n "state": {\n "schema": "",\n "initialValue": "",\n "examples": []\n },\n "modules": []\n }\n ]\n}',
18
+ examples: [],
19
+ },
20
+ local: {
21
+ schema: "",
22
+ initialValue: "",
23
+ examples: [],
24
+ },
25
+ },
14
26
  modules: [
15
27
  {
16
28
  name: "header",
17
29
  operations: [
18
30
  {
19
- name: "SetModelName",
31
+ name: "SET_MODEL_NAME",
20
32
  id: "",
21
- description: "",
22
- schema: "",
33
+ description: "Sets the name of the document model",
34
+ schema: "input SetModelNameInput {\n name: String!\n}",
23
35
  template: "",
24
36
  reducer: "",
25
37
  examples: [],
@@ -27,10 +39,10 @@ export const documentModelState = {
27
39
  scope: "global",
28
40
  },
29
41
  {
30
- name: "SetModelId",
42
+ name: "SET_MODEL_ID",
31
43
  id: "",
32
- description: "",
33
- schema: "",
44
+ description: "Sets the unique identifier for the document model",
45
+ schema: "input SetModelIdInput {\n id: String!\n}",
34
46
  template: "",
35
47
  reducer: "",
36
48
  examples: [],
@@ -38,10 +50,10 @@ export const documentModelState = {
38
50
  scope: "global",
39
51
  },
40
52
  {
41
- name: "SetModelExtension",
53
+ name: "SET_MODEL_EXTENSION",
42
54
  id: "",
43
- description: "",
44
- schema: "",
55
+ description: "Sets the file extension associated with this document model",
56
+ schema: "input SetModelExtensionInput {\n extension: String!\n}",
45
57
  template: "",
46
58
  reducer: "",
47
59
  examples: [],
@@ -49,10 +61,10 @@ export const documentModelState = {
49
61
  scope: "global",
50
62
  },
51
63
  {
52
- name: "SetModelDescription",
64
+ name: "SET_MODEL_DESCRIPTION",
53
65
  id: "",
54
- description: "",
55
- schema: "",
66
+ description: "Sets the description text for the document model",
67
+ schema: "input SetModelDescriptionInput {\n description: String!\n}",
56
68
  template: "",
57
69
  reducer: "",
58
70
  examples: [],
@@ -60,10 +72,10 @@ export const documentModelState = {
60
72
  scope: "global",
61
73
  },
62
74
  {
63
- name: "SetAuthorName",
75
+ name: "SET_AUTHOR_NAME",
64
76
  id: "",
65
- description: "",
66
- schema: "",
77
+ description: "Sets the name of the document model author",
78
+ schema: "input SetAuthorNameInput {\n authorName: String!\n}",
67
79
  template: "",
68
80
  reducer: "",
69
81
  examples: [],
@@ -71,10 +83,10 @@ export const documentModelState = {
71
83
  scope: "global",
72
84
  },
73
85
  {
74
- name: "SetAuthorWebsite",
86
+ name: "SET_AUTHOR_WEBSITE",
75
87
  id: "",
76
- description: "",
77
- schema: "",
88
+ description: "Sets the website URL of the document model author",
89
+ schema: "input SetAuthorWebsiteInput {\n authorWebsite: String!\n}",
78
90
  template: "",
79
91
  reducer: "",
80
92
  examples: [],
@@ -89,10 +101,10 @@ export const documentModelState = {
89
101
  name: "versioning",
90
102
  operations: [
91
103
  {
92
- name: "AddChangeLogItem",
104
+ name: "ADD_CHANGE_LOG_ITEM",
93
105
  id: "",
94
- description: "",
95
- schema: "",
106
+ description: "Adds a new item to the document model changelog",
107
+ schema: "input AddChangeLogItemInput {\n id: ID!\n insertBefore: ID\n content: String!\n}",
96
108
  template: "",
97
109
  reducer: "",
98
110
  examples: [],
@@ -100,10 +112,10 @@ export const documentModelState = {
100
112
  scope: "global",
101
113
  },
102
114
  {
103
- name: "UpdateChangeLogItem",
115
+ name: "UPDATE_CHANGE_LOG_ITEM",
104
116
  id: "",
105
- description: "",
106
- schema: "",
117
+ description: "Updates an existing changelog item",
118
+ schema: "input UpdateChangeLogItemInput {\n id: ID!\n newContent: String!\n}",
107
119
  template: "",
108
120
  reducer: "",
109
121
  examples: [],
@@ -111,10 +123,10 @@ export const documentModelState = {
111
123
  scope: "global",
112
124
  },
113
125
  {
114
- name: "DeleteChangeLogItem",
126
+ name: "DELETE_CHANGE_LOG_ITEM",
115
127
  id: "",
116
- description: "",
117
- schema: "",
128
+ description: "Removes an item from the document model changelog",
129
+ schema: "input DeleteChangeLogItemInput {\n id: ID!\n}",
118
130
  template: "",
119
131
  reducer: "",
120
132
  examples: [],
@@ -122,10 +134,10 @@ export const documentModelState = {
122
134
  scope: "global",
123
135
  },
124
136
  {
125
- name: "ReorderChangeLogItems",
137
+ name: "REORDER_CHANGE_LOG_ITEMS",
126
138
  id: "",
127
- description: "",
128
- schema: "",
139
+ description: "Changes the order of changelog items",
140
+ schema: "input ReorderChangeLogItemsInput {\n order: [ID!]!\n}",
129
141
  template: "",
130
142
  reducer: "",
131
143
  examples: [],
@@ -133,10 +145,10 @@ export const documentModelState = {
133
145
  scope: "global",
134
146
  },
135
147
  {
136
- name: "ReleaseNewVersion",
148
+ name: "RELEASE_NEW_VERSION",
137
149
  schema: null,
138
150
  id: "",
139
- description: "",
151
+ description: "Creates a new version of the document model specification",
140
152
  template: "",
141
153
  reducer: "",
142
154
  examples: [],
@@ -151,10 +163,10 @@ export const documentModelState = {
151
163
  name: "module",
152
164
  operations: [
153
165
  {
154
- name: "AddModule",
166
+ name: "ADD_MODULE",
155
167
  id: "",
156
- description: "",
157
- schema: "",
168
+ description: "Adds a new module to the document model specification",
169
+ schema: "input AddModuleInput {\n id: ID!\n name: String!\n description: String\n}",
158
170
  template: "",
159
171
  reducer: "",
160
172
  examples: [],
@@ -162,10 +174,10 @@ export const documentModelState = {
162
174
  scope: "global",
163
175
  },
164
176
  {
165
- name: "SetModuleName",
177
+ name: "SET_MODULE_NAME",
166
178
  id: "",
167
- description: "",
168
- schema: "",
179
+ description: "Sets the name of an existing module",
180
+ schema: "input SetModuleNameInput {\n id: ID!\n name: String\n}",
169
181
  template: "",
170
182
  reducer: "",
171
183
  examples: [],
@@ -173,10 +185,10 @@ export const documentModelState = {
173
185
  scope: "global",
174
186
  },
175
187
  {
176
- name: "SetModuleDescription",
188
+ name: "SET_MODULE_DESCRIPTION",
177
189
  id: "",
178
- description: "",
179
- schema: "",
190
+ description: "Sets the description of an existing module",
191
+ schema: "input SetModuleDescriptionInput {\n id: ID!\n description: String\n}",
180
192
  template: "",
181
193
  reducer: "",
182
194
  examples: [],
@@ -184,10 +196,10 @@ export const documentModelState = {
184
196
  scope: "global",
185
197
  },
186
198
  {
187
- name: "DeleteModule",
199
+ name: "DELETE_MODULE",
188
200
  id: "",
189
- description: "",
190
- schema: "",
201
+ description: "Removes a module from the document model specification",
202
+ schema: "input DeleteModuleInput {\n id: ID!\n}",
191
203
  template: "",
192
204
  reducer: "",
193
205
  examples: [],
@@ -195,10 +207,10 @@ export const documentModelState = {
195
207
  scope: "global",
196
208
  },
197
209
  {
198
- name: "ReorderModules",
210
+ name: "REORDER_MODULES",
199
211
  id: "",
200
- description: "",
201
- schema: "",
212
+ description: "Changes the order of modules in the document model specification",
213
+ schema: "input ReorderModulesInput {\n order: [ID!]!\n}",
202
214
  template: "",
203
215
  reducer: "",
204
216
  examples: [],
@@ -213,10 +225,10 @@ export const documentModelState = {
213
225
  name: "operation-error",
214
226
  operations: [
215
227
  {
216
- name: "AddOperationError",
228
+ name: "ADD_OPERATION_ERROR",
217
229
  id: "",
218
- description: "",
219
- schema: "",
230
+ description: "Adds a new error definition to an operation",
231
+ schema: "input AddOperationErrorInput {\n operationId: ID!\n id: ID!\n errorCode: String\n errorName: String\n errorDescription: String\n errorTemplate: String\n}",
220
232
  template: "",
221
233
  reducer: "",
222
234
  examples: [],
@@ -224,10 +236,10 @@ export const documentModelState = {
224
236
  scope: "global",
225
237
  },
226
238
  {
227
- name: "SetOperationErrorCode",
239
+ name: "SET_OPERATION_ERROR_CODE",
228
240
  id: "",
229
- description: "",
230
- schema: "",
241
+ description: "Sets the error code for an operation error",
242
+ schema: "input SetOperationErrorCodeInput {\n id: ID!\n errorCode: String\n}",
231
243
  template: "",
232
244
  reducer: "",
233
245
  examples: [],
@@ -235,10 +247,10 @@ export const documentModelState = {
235
247
  scope: "global",
236
248
  },
237
249
  {
238
- name: "SetOperationErrorName",
250
+ name: "SET_OPERATION_ERROR_NAME",
239
251
  id: "",
240
- description: "",
241
- schema: "",
252
+ description: "Sets the name of an operation error",
253
+ schema: "input SetOperationErrorNameInput {\n id: ID!\n errorName: String\n}",
242
254
  template: "",
243
255
  reducer: "",
244
256
  examples: [],
@@ -246,10 +258,10 @@ export const documentModelState = {
246
258
  scope: "global",
247
259
  },
248
260
  {
249
- name: "SetOperationErrorDescription",
261
+ name: "SET_OPERATION_ERROR_DESCRIPTION",
250
262
  id: "",
251
- description: "",
252
- schema: "",
263
+ description: "Sets the description of an operation error",
264
+ schema: "input SetOperationErrorDescriptionInput {\n id: ID!\n errorDescription: String\n}",
253
265
  template: "",
254
266
  reducer: "",
255
267
  examples: [],
@@ -257,10 +269,10 @@ export const documentModelState = {
257
269
  scope: "global",
258
270
  },
259
271
  {
260
- name: "SetOperationErrorTemplate",
272
+ name: "SET_OPERATION_ERROR_TEMPLATE",
261
273
  id: "",
262
- description: "",
263
- schema: "",
274
+ description: "Sets the template for an operation error",
275
+ schema: "input SetOperationErrorTemplateInput {\n id: ID!\n errorTemplate: String\n}",
264
276
  template: "",
265
277
  reducer: "",
266
278
  examples: [],
@@ -268,10 +280,10 @@ export const documentModelState = {
268
280
  scope: "global",
269
281
  },
270
282
  {
271
- name: "DeleteOperationError",
283
+ name: "DELETE_OPERATION_ERROR",
272
284
  id: "",
273
- description: "",
274
- schema: "",
285
+ description: "Removes an error definition from an operation",
286
+ schema: "input DeleteOperationErrorInput {\n id: ID!\n}",
275
287
  template: "",
276
288
  reducer: "",
277
289
  examples: [],
@@ -279,10 +291,10 @@ export const documentModelState = {
279
291
  scope: "global",
280
292
  },
281
293
  {
282
- name: "ReorderOperationErrors",
294
+ name: "REORDER_OPERATION_ERRORS",
283
295
  id: "",
284
- description: "",
285
- schema: "",
296
+ description: "Changes the order of error definitions for an operation",
297
+ schema: "input ReorderOperationErrorsInput {\n operationId: ID!\n order: [ID!]!\n}",
286
298
  template: "",
287
299
  reducer: "",
288
300
  examples: [],
@@ -297,10 +309,10 @@ export const documentModelState = {
297
309
  name: "operation-example",
298
310
  operations: [
299
311
  {
300
- name: "AddOperationExample",
312
+ name: "ADD_OPERATION_EXAMPLE",
301
313
  id: "",
302
- description: "",
303
- schema: "",
314
+ description: "Adds a new code example to an operation",
315
+ schema: "input AddOperationExampleInput {\n operationId: ID!\n id: ID!\n example: String!\n}",
304
316
  template: "",
305
317
  reducer: "",
306
318
  examples: [],
@@ -308,10 +320,10 @@ export const documentModelState = {
308
320
  scope: "global",
309
321
  },
310
322
  {
311
- name: "UpdateOperationExample",
323
+ name: "UPDATE_OPERATION_EXAMPLE",
312
324
  id: "",
313
- description: "",
314
- schema: "",
325
+ description: "Updates an existing code example for an operation",
326
+ schema: "input UpdateOperationExampleInput {\n id: ID!\n example: String!\n}",
315
327
  template: "",
316
328
  reducer: "",
317
329
  examples: [],
@@ -319,10 +331,10 @@ export const documentModelState = {
319
331
  scope: "global",
320
332
  },
321
333
  {
322
- name: "DeleteOperationExample",
334
+ name: "DELETE_OPERATION_EXAMPLE",
323
335
  id: "",
324
- description: "",
325
- schema: "",
336
+ description: "Removes a code example from an operation",
337
+ schema: "input DeleteOperationExampleInput {\n id: ID!\n}",
326
338
  template: "",
327
339
  reducer: "",
328
340
  examples: [],
@@ -330,10 +342,10 @@ export const documentModelState = {
330
342
  scope: "global",
331
343
  },
332
344
  {
333
- name: "ReorderOperationExamples",
345
+ name: "REORDER_OPERATION_EXAMPLES",
334
346
  id: "",
335
- description: "",
336
- schema: "",
347
+ description: "Changes the order of code examples for an operation",
348
+ schema: "input ReorderOperationExamplesInput {\n operationId: ID!\n order: [ID!]!\n}",
337
349
  template: "",
338
350
  reducer: "",
339
351
  examples: [],
@@ -348,10 +360,10 @@ export const documentModelState = {
348
360
  name: "operation",
349
361
  operations: [
350
362
  {
351
- name: "AddOperation",
363
+ name: "ADD_OPERATION",
352
364
  id: "",
353
- description: "",
354
- schema: "",
365
+ description: "Adds a new operation to a module",
366
+ schema: "input AddOperationInput {\n moduleId: ID!\n id: ID!\n name: String!\n schema: String\n description: String\n template: String\n reducer: String\n}",
355
367
  template: "",
356
368
  reducer: "",
357
369
  examples: [],
@@ -359,10 +371,10 @@ export const documentModelState = {
359
371
  scope: "global",
360
372
  },
361
373
  {
362
- name: "SetOperationName",
374
+ name: "SET_OPERATION_NAME",
363
375
  id: "",
364
- description: "",
365
- schema: "",
376
+ description: "Sets the name of an operation",
377
+ schema: "input SetOperationNameInput {\n id: ID!\n name: String\n}",
366
378
  template: "",
367
379
  reducer: "",
368
380
  examples: [],
@@ -370,10 +382,10 @@ export const documentModelState = {
370
382
  scope: "global",
371
383
  },
372
384
  {
373
- name: "SetOperationSchema",
385
+ name: "SET_OPERATION_SCHEMA",
374
386
  id: "",
375
- description: "",
376
- schema: "",
387
+ description: "Sets the GraphQL schema definition for an operation's input",
388
+ schema: "input SetOperationSchemaInput {\n id: ID!\n schema: String\n}",
377
389
  template: "",
378
390
  reducer: "",
379
391
  examples: [],
@@ -381,10 +393,10 @@ export const documentModelState = {
381
393
  scope: "global",
382
394
  },
383
395
  {
384
- name: "SetOperationDescription",
396
+ name: "SET_OPERATION_DESCRIPTION",
385
397
  id: "",
386
- description: "",
387
- schema: "",
398
+ description: "Sets the description of an operation",
399
+ schema: "input SetOperationDescriptionInput {\n id: ID!\n description: String\n}",
388
400
  template: "",
389
401
  reducer: "",
390
402
  examples: [],
@@ -392,10 +404,10 @@ export const documentModelState = {
392
404
  scope: "global",
393
405
  },
394
406
  {
395
- name: "SetOperationTemplate",
407
+ name: "SET_OPERATION_TEMPLATE",
396
408
  id: "",
397
- description: "",
398
- schema: "",
409
+ description: "Sets the template code for an operation",
410
+ schema: "input SetOperationTemplateInput {\n id: ID!\n template: String\n}",
399
411
  template: "",
400
412
  reducer: "",
401
413
  examples: [],
@@ -403,10 +415,10 @@ export const documentModelState = {
403
415
  scope: "global",
404
416
  },
405
417
  {
406
- name: "SetOperationReducer",
418
+ name: "SET_OPERATION_REDUCER",
407
419
  id: "",
408
- description: "",
409
- schema: "",
420
+ description: "Sets the reducer function code for an operation",
421
+ schema: "input SetOperationReducerInput {\n id: ID!\n reducer: String\n}",
410
422
  template: "",
411
423
  reducer: "",
412
424
  examples: [],
@@ -414,10 +426,10 @@ export const documentModelState = {
414
426
  scope: "global",
415
427
  },
416
428
  {
417
- name: "MoveOperation",
429
+ name: "MOVE_OPERATION",
418
430
  id: "",
419
- description: "",
420
- schema: "",
431
+ description: "Moves an operation from one module to another",
432
+ schema: "input MoveOperationInput {\n operationId: ID!\n newModuleId: ID!\n}",
421
433
  template: "",
422
434
  reducer: "",
423
435
  examples: [],
@@ -425,10 +437,10 @@ export const documentModelState = {
425
437
  scope: "global",
426
438
  },
427
439
  {
428
- name: "DeleteOperation",
440
+ name: "DELETE_OPERATION",
429
441
  id: "",
430
- description: "",
431
- schema: "",
442
+ description: "Removes an operation from a module",
443
+ schema: "input DeleteOperationInput {\n id: ID!\n}",
432
444
  template: "",
433
445
  reducer: "",
434
446
  examples: [],
@@ -436,10 +448,10 @@ export const documentModelState = {
436
448
  scope: "global",
437
449
  },
438
450
  {
439
- name: "ReorderModuleOperations",
451
+ name: "REORDER_MODULE_OPERATIONS",
440
452
  id: "",
441
- description: "",
442
- schema: "",
453
+ description: "Changes the order of operations within a module",
454
+ schema: "input ReorderModuleOperationsInput {\n moduleId: ID!\n order: [ID!]!\n}",
443
455
  template: "",
444
456
  reducer: "",
445
457
  examples: [],
@@ -454,10 +466,10 @@ export const documentModelState = {
454
466
  name: "state",
455
467
  operations: [
456
468
  {
457
- name: "SetStateSchema",
469
+ name: "SET_STATE_SCHEMA",
458
470
  id: "",
459
- description: "",
460
- schema: "",
471
+ description: "Sets the GraphQL schema definition for document state",
472
+ schema: "input SetStateSchemaInput {\n scope: String!\n schema: String!\n}",
461
473
  template: "",
462
474
  reducer: "",
463
475
  examples: [],
@@ -465,10 +477,10 @@ export const documentModelState = {
465
477
  scope: "global",
466
478
  },
467
479
  {
468
- name: "SetInitialState",
480
+ name: "SET_INITIAL_STATE",
469
481
  id: "",
470
- description: "",
471
- schema: "",
482
+ description: "Sets the initial state value for a document scope",
483
+ schema: "input SetInitialStateInput {\n scope: String!\n initialValue: String!\n}",
472
484
  template: "",
473
485
  reducer: "",
474
486
  examples: [],
@@ -476,10 +488,10 @@ export const documentModelState = {
476
488
  scope: "global",
477
489
  },
478
490
  {
479
- name: "AddStateExample",
491
+ name: "ADD_STATE_EXAMPLE",
480
492
  id: "",
481
- description: "",
482
- schema: "",
493
+ description: "Adds a new state example to a document scope",
494
+ schema: "input AddStateExampleInput {\n scope: String!\n id: ID!\n insertBefore: ID\n example: String!\n}",
483
495
  template: "",
484
496
  reducer: "",
485
497
  examples: [],
@@ -487,10 +499,10 @@ export const documentModelState = {
487
499
  scope: "global",
488
500
  },
489
501
  {
490
- name: "UpdateStateExample",
502
+ name: "UPDATE_STATE_EXAMPLE",
491
503
  id: "",
492
- description: "",
493
- schema: "",
504
+ description: "Updates an existing state example for a document scope",
505
+ schema: "input UpdateStateExampleInput {\n scope: String!\n id: ID!\n newExample: String!\n}",
494
506
  template: "",
495
507
  reducer: "",
496
508
  examples: [],
@@ -498,10 +510,10 @@ export const documentModelState = {
498
510
  scope: "global",
499
511
  },
500
512
  {
501
- name: "DeleteStateExample",
513
+ name: "DELETE_STATE_EXAMPLE",
502
514
  id: "",
503
- description: "",
504
- schema: "",
515
+ description: "Removes a state example from a document scope",
516
+ schema: "input DeleteStateExampleInput {\n scope: String!\n id: ID!\n}",
505
517
  template: "",
506
518
  reducer: "",
507
519
  examples: [],
@@ -509,10 +521,10 @@ export const documentModelState = {
509
521
  scope: "global",
510
522
  },
511
523
  {
512
- name: "ReorderStateExamples",
524
+ name: "REORDER_STATE_EXAMPLES",
513
525
  id: "",
514
- description: "",
515
- schema: "",
526
+ description: "Changes the order of state examples for a document scope",
527
+ schema: "input ReorderStateExamplesInput {\n scope: String!\n order: [ID!]!\n}",
516
528
  template: "",
517
529
  reducer: "",
518
530
  examples: [],
@@ -524,18 +536,6 @@ export const documentModelState = {
524
536
  description: "",
525
537
  },
526
538
  ],
527
- state: {
528
- global: {
529
- schema: "",
530
- initialValue: '{\n "id": "",\n "name": "",\n "extension": "",\n "description": "",\n "author": {\n "name": "",\n "website": ""\n },\n "specifications": [\n {\n "version": 1,\n "changeLog": [],\n "state": {\n "schema": "",\n "initialValue": "",\n "examples": []\n },\n "modules": []\n }\n ]\n}',
531
- examples: [],
532
- },
533
- local: {
534
- schema: "",
535
- initialValue: `{}`,
536
- examples: [],
537
- },
538
- },
539
539
  },
540
540
  ],
541
541
  };