document-model 5.0.0-staging.9 → 5.0.1-staging.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -24
- package/dist/src/core/actions.d.ts +79 -0
- package/dist/src/core/actions.d.ts.map +1 -0
- package/dist/src/core/actions.js +183 -0
- package/dist/src/core/actions.js.map +1 -0
- package/dist/src/core/crypto.d.ts +17 -0
- package/dist/src/core/crypto.d.ts.map +1 -0
- package/dist/src/core/crypto.js +87 -0
- package/dist/src/core/crypto.js.map +1 -0
- package/dist/src/{document/utils/document-helpers.d.ts → core/documents.d.ts} +51 -11
- package/dist/src/core/documents.d.ts.map +1 -0
- package/dist/src/{document/utils/document-helpers.js → core/documents.js} +320 -12
- package/dist/src/core/documents.js.map +1 -0
- package/dist/src/core/errors.d.ts +21 -0
- package/dist/src/core/errors.d.ts.map +1 -0
- package/dist/src/core/errors.js +47 -0
- package/dist/src/core/errors.js.map +1 -0
- package/dist/src/core/files.d.ts +14 -0
- package/dist/src/core/files.d.ts.map +1 -0
- package/dist/src/core/files.js +74 -0
- package/dist/src/core/files.js.map +1 -0
- package/dist/src/{document/utils → core}/header.d.ts +3 -35
- package/dist/src/core/header.d.ts.map +1 -0
- package/dist/src/{document/utils → core}/header.js +6 -19
- package/dist/src/core/header.js.map +1 -0
- package/dist/src/core/index.d.ts +12 -0
- package/dist/src/core/index.d.ts.map +1 -0
- package/dist/src/core/index.js +12 -0
- package/dist/src/core/index.js.map +1 -0
- package/dist/src/{document/utils/file.d.ts → core/node.d.ts} +40 -30
- package/dist/src/core/node.d.ts.map +1 -0
- package/dist/src/core/node.js +149 -0
- package/dist/src/core/node.js.map +1 -0
- package/dist/src/{document/actions → core}/operations.d.ts +4 -6
- package/dist/src/core/operations.d.ts.map +1 -0
- package/dist/src/{document/actions → core}/operations.js +2 -51
- package/dist/src/core/operations.js.map +1 -0
- package/dist/src/core/ph-types.d.ts +259 -0
- package/dist/src/core/ph-types.d.ts.map +1 -0
- package/dist/src/core/ph-types.js +15 -0
- package/dist/src/core/ph-types.js.map +1 -0
- package/dist/src/{document → core}/reducer.d.ts +23 -12
- package/dist/src/core/reducer.d.ts.map +1 -0
- package/dist/src/{document → core}/reducer.js +138 -74
- package/dist/src/core/reducer.js.map +1 -0
- package/dist/src/{document/schema/zod.d.ts → core/schemas.d.ts} +37 -39
- package/dist/src/core/schemas.d.ts.map +1 -0
- package/dist/src/{document/schema/zod.js → core/schemas.js} +1 -16
- package/dist/src/core/schemas.js.map +1 -0
- package/dist/src/core/state.d.ts +26 -0
- package/dist/src/core/state.d.ts.map +1 -0
- package/dist/src/core/state.js +56 -0
- package/dist/src/core/state.js.map +1 -0
- package/dist/src/core/types.d.ts +481 -0
- package/dist/src/core/types.d.ts.map +1 -0
- package/dist/src/{document → core}/types.js.map +1 -1
- package/dist/src/core/validation.d.ts +4 -0
- package/dist/src/core/validation.d.ts.map +1 -0
- package/dist/src/{document/utils → core}/validation.js +5 -1
- package/dist/src/core/validation.js.map +1 -0
- package/dist/src/document-model/actions.d.ts +158 -0
- package/dist/src/document-model/actions.d.ts.map +1 -0
- package/dist/src/document-model/actions.js +109 -0
- package/dist/src/document-model/actions.js.map +1 -0
- package/dist/src/document-model/constants.d.ts +7 -0
- package/dist/src/document-model/constants.d.ts.map +1 -0
- package/dist/src/document-model/{gen/document-model.js → constants.js} +35 -3
- package/dist/src/document-model/constants.js.map +1 -0
- package/dist/src/document-model/files.d.ts +5 -0
- package/dist/src/document-model/files.d.ts.map +1 -0
- package/dist/src/document-model/files.js +9 -0
- package/dist/src/document-model/files.js.map +1 -0
- package/dist/src/document-model/index.d.ts +9 -0
- package/dist/src/document-model/index.d.ts.map +1 -0
- package/dist/src/document-model/index.js +9 -0
- package/dist/src/document-model/index.js.map +1 -0
- package/dist/src/document-model/module.d.ts +1 -1
- package/dist/src/document-model/module.d.ts.map +1 -1
- package/dist/src/document-model/module.js +17 -10
- package/dist/src/document-model/module.js.map +1 -1
- package/dist/src/document-model/reducers.d.ts +11 -0
- package/dist/src/document-model/reducers.d.ts.map +1 -0
- package/dist/src/document-model/reducers.js +588 -0
- package/dist/src/document-model/reducers.js.map +1 -0
- package/dist/src/document-model/schemas.d.ts +449 -0
- package/dist/src/document-model/schemas.d.ts.map +1 -0
- package/dist/src/document-model/{gen/schema/zod.js → schemas.js} +9 -15
- package/dist/src/document-model/schemas.js.map +1 -0
- package/dist/src/document-model/state.d.ts +11 -0
- package/dist/src/document-model/state.d.ts.map +1 -0
- package/dist/src/document-model/{gen/ph-factories.js → state.js} +16 -15
- package/dist/src/document-model/state.js.map +1 -0
- package/dist/src/document-model/types.d.ts +670 -2
- package/dist/src/document-model/types.d.ts.map +1 -1
- package/dist/src/document-model/validation.d.ts +7 -0
- package/dist/src/document-model/validation.d.ts.map +1 -0
- package/dist/src/document-model/{custom/utils.js → validation.js} +1 -1
- package/dist/src/document-model/validation.js.map +1 -0
- package/dist/src/index.d.ts +5 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +2 -0
- package/dist/src/index.js.map +1 -0
- package/dist/test/document/crypto.test.js +4 -8
- package/dist/test/document/crypto.test.js.map +1 -1
- package/dist/test/document/event-vs-command.test.js +2 -2
- package/dist/test/document/event-vs-command.test.js.map +1 -1
- package/dist/test/document/local.test.js +2 -3
- package/dist/test/document/local.test.js.map +1 -1
- package/dist/test/document/operation-id.test.js +3 -4
- package/dist/test/document/operation-id.test.js.map +1 -1
- package/dist/test/document/prune.test.js +12 -12
- package/dist/test/document/prune.test.js.map +1 -1
- package/dist/test/document/reducer.test.js +8 -10
- package/dist/test/document/reducer.test.js.map +1 -1
- package/dist/test/document/skip-operations.test.js +10 -10
- package/dist/test/document/skip-operations.test.js.map +1 -1
- package/dist/test/document/undo-redo.test.js +5 -7
- package/dist/test/document/undo-redo.test.js.map +1 -1
- package/dist/test/document/utils.test.js +5 -8
- package/dist/test/document/utils.test.js.map +1 -1
- package/dist/test/document-helpers/addUndo.test.js +1 -1
- package/dist/test/document-helpers/addUndo.test.js.map +1 -1
- package/dist/test/document-helpers/attachBranch.test.js +1 -1
- package/dist/test/document-helpers/attachBranch.test.js.map +1 -1
- package/dist/test/document-helpers/checkCleanedOperationsIntegrity.test.js +1 -1
- package/dist/test/document-helpers/checkCleanedOperationsIntegrity.test.js.map +1 -1
- package/dist/test/document-helpers/conflictResolution.test.js +1 -1
- package/dist/test/document-helpers/conflictResolution.test.js.map +1 -1
- package/dist/test/document-helpers/filterDuplicatedOperations.test.js +1 -1
- package/dist/test/document-helpers/filterDuplicatedOperations.test.js.map +1 -1
- package/dist/test/document-helpers/garbageCollect.test.js +1 -1
- package/dist/test/document-helpers/garbageCollect.test.js.map +1 -1
- package/dist/test/document-helpers/groupOperationsByScope.test.js +2 -2
- package/dist/test/document-helpers/groupOperationsByScope.test.js.map +1 -1
- package/dist/test/document-helpers/merge.test.js +1 -1
- package/dist/test/document-helpers/merge.test.js.map +1 -1
- package/dist/test/document-helpers/nextSkipNumber.test.js +1 -1
- package/dist/test/document-helpers/nextSkipNumber.test.js.map +1 -1
- package/dist/test/document-helpers/prepareOperations.test.js +1 -1
- package/dist/test/document-helpers/prepareOperations.test.js.map +1 -1
- package/dist/test/document-helpers/removeExistingOperations.test.js +2 -3
- package/dist/test/document-helpers/removeExistingOperations.test.js.map +1 -1
- package/dist/test/document-helpers/reshuffleByTimestamp.test.js +1 -1
- package/dist/test/document-helpers/reshuffleByTimestamp.test.js.map +1 -1
- package/dist/test/document-helpers/reshuffleByTimestampAndIndex.test.js +1 -1
- package/dist/test/document-helpers/reshuffleByTimestampAndIndex.test.js.map +1 -1
- package/dist/test/document-helpers/skipHeaderOperations.test.js +1 -1
- package/dist/test/document-helpers/skipHeaderOperations.test.js.map +1 -1
- package/dist/test/document-helpers/sortOperations.test.js +1 -1
- package/dist/test/document-helpers/sortOperations.test.js.map +1 -1
- package/dist/test/document-helpers/split.test.js +1 -1
- package/dist/test/document-helpers/split.test.js.map +1 -1
- package/dist/test/document-helpers/utils.d.ts +1 -1
- package/dist/test/document-helpers/utils.d.ts.map +1 -1
- package/dist/test/document-helpers/utils.js +1 -1
- package/dist/test/document-helpers/utils.js.map +1 -1
- package/dist/test/document-model/replay.test.js +19 -6
- package/dist/test/document-model/replay.test.js.map +1 -1
- package/dist/test/document-model/skip-operations.test.js +93 -95
- package/dist/test/document-model/skip-operations.test.js.map +1 -1
- package/dist/test/document-model/validation.test.js +16 -28
- package/dist/test/document-model/validation.test.js.map +1 -1
- package/dist/test/document-model/zip.test.js +19 -20
- package/dist/test/document-model/zip.test.js.map +1 -1
- package/dist/test/helpers.d.ts +9 -9
- package/dist/test/helpers.d.ts.map +1 -1
- package/dist/test/helpers.js +3 -5
- package/dist/test/helpers.js.map +1 -1
- package/dist/test/index.d.ts +4 -0
- package/dist/test/index.d.ts.map +1 -0
- package/dist/test/index.js +3 -0
- package/dist/test/index.js.map +1 -0
- package/dist/test/types.d.ts +6 -0
- package/dist/test/types.d.ts.map +1 -0
- package/dist/{src/document/schema → test}/types.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/vitest.config.d.ts +1 -1
- package/dist/vitest.config.d.ts.map +1 -1
- package/dist/vitest.config.js +2 -8
- package/dist/vitest.config.js.map +1 -1
- package/package.json +25 -24
- package/dist/index.d.ts +0 -21
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -15
- package/dist/index.js.map +0 -1
- package/dist/src/document/actions/creators.d.ts +0 -52
- package/dist/src/document/actions/creators.d.ts.map +0 -1
- package/dist/src/document/actions/creators.js +0 -57
- package/dist/src/document/actions/creators.js.map +0 -1
- package/dist/src/document/actions/operations.d.ts.map +0 -1
- package/dist/src/document/actions/operations.js.map +0 -1
- package/dist/src/document/actions/types.d.ts +0 -34
- package/dist/src/document/actions/types.d.ts.map +0 -1
- package/dist/src/document/actions/types.js +0 -7
- package/dist/src/document/actions/types.js.map +0 -1
- package/dist/src/document/object.d.ts +0 -125
- package/dist/src/document/object.d.ts.map +0 -1
- package/dist/src/document/object.js +0 -183
- package/dist/src/document/object.js.map +0 -1
- package/dist/src/document/ph-factories.d.ts +0 -37
- package/dist/src/document/ph-factories.d.ts.map +0 -1
- package/dist/src/document/ph-factories.js +0 -93
- package/dist/src/document/ph-factories.js.map +0 -1
- package/dist/src/document/ph-types.d.ts +0 -76
- package/dist/src/document/ph-types.d.ts.map +0 -1
- package/dist/src/document/ph-types.js +0 -2
- package/dist/src/document/ph-types.js.map +0 -1
- package/dist/src/document/reducer.d.ts.map +0 -1
- package/dist/src/document/reducer.js.map +0 -1
- package/dist/src/document/schema/types.d.ts +0 -188
- package/dist/src/document/schema/types.d.ts.map +0 -1
- package/dist/src/document/schema/types.js +0 -2
- package/dist/src/document/schema/zod.d.ts.map +0 -1
- package/dist/src/document/schema/zod.js.map +0 -1
- package/dist/src/document/signal.d.ts +0 -36
- package/dist/src/document/signal.d.ts.map +0 -1
- package/dist/src/document/signal.js +0 -2
- package/dist/src/document/signal.js.map +0 -1
- package/dist/src/document/types.d.ts +0 -314
- package/dist/src/document/types.d.ts.map +0 -1
- package/dist/src/document/types.js +0 -2
- package/dist/src/document/utils/base.d.ts +0 -87
- package/dist/src/document/utils/base.d.ts.map +0 -1
- package/dist/src/document/utils/base.js +0 -336
- package/dist/src/document/utils/base.js.map +0 -1
- package/dist/src/document/utils/browser.d.ts +0 -18
- package/dist/src/document/utils/browser.d.ts.map +0 -1
- package/dist/src/document/utils/browser.js +0 -54
- package/dist/src/document/utils/browser.js.map +0 -1
- package/dist/src/document/utils/crypto.d.ts +0 -12
- package/dist/src/document/utils/crypto.d.ts.map +0 -1
- package/dist/src/document/utils/crypto.js +0 -81
- package/dist/src/document/utils/crypto.js.map +0 -1
- package/dist/src/document/utils/document-helpers.d.ts.map +0 -1
- package/dist/src/document/utils/document-helpers.js.map +0 -1
- package/dist/src/document/utils/errors.d.ts +0 -10
- package/dist/src/document/utils/errors.d.ts.map +0 -1
- package/dist/src/document/utils/errors.js +0 -19
- package/dist/src/document/utils/errors.js.map +0 -1
- package/dist/src/document/utils/file.d.ts.map +0 -1
- package/dist/src/document/utils/file.js +0 -152
- package/dist/src/document/utils/file.js.map +0 -1
- package/dist/src/document/utils/header.d.ts.map +0 -1
- package/dist/src/document/utils/header.js.map +0 -1
- package/dist/src/document/utils/node.d.ts +0 -18
- package/dist/src/document/utils/node.d.ts.map +0 -1
- package/dist/src/document/utils/node.js +0 -62
- package/dist/src/document/utils/node.js.map +0 -1
- package/dist/src/document/utils/validation.d.ts +0 -3
- package/dist/src/document/utils/validation.d.ts.map +0 -1
- package/dist/src/document/utils/validation.js.map +0 -1
- package/dist/src/document-model/custom/reducers/header.d.ts +0 -3
- package/dist/src/document-model/custom/reducers/header.d.ts.map +0 -1
- package/dist/src/document-model/custom/reducers/header.js +0 -23
- package/dist/src/document-model/custom/reducers/header.js.map +0 -1
- package/dist/src/document-model/custom/reducers/module.d.ts +0 -3
- package/dist/src/document-model/custom/reducers/module.d.ts.map +0 -1
- package/dist/src/document-model/custom/reducers/module.js +0 -41
- package/dist/src/document-model/custom/reducers/module.js.map +0 -1
- package/dist/src/document-model/custom/reducers/operation-error.d.ts +0 -3
- package/dist/src/document-model/custom/reducers/operation-error.d.ts.map +0 -1
- package/dist/src/document-model/custom/reducers/operation-error.js +0 -94
- package/dist/src/document-model/custom/reducers/operation-error.js.map +0 -1
- package/dist/src/document-model/custom/reducers/operation-example.d.ts +0 -3
- package/dist/src/document-model/custom/reducers/operation-example.d.ts.map +0 -1
- package/dist/src/document-model/custom/reducers/operation-example.js +0 -53
- package/dist/src/document-model/custom/reducers/operation-example.js.map +0 -1
- package/dist/src/document-model/custom/reducers/operation.d.ts +0 -3
- package/dist/src/document-model/custom/reducers/operation.d.ts.map +0 -1
- package/dist/src/document-model/custom/reducers/operation.js +0 -125
- package/dist/src/document-model/custom/reducers/operation.js.map +0 -1
- package/dist/src/document-model/custom/reducers/state.d.ts +0 -3
- package/dist/src/document-model/custom/reducers/state.d.ts.map +0 -1
- package/dist/src/document-model/custom/reducers/state.js +0 -71
- package/dist/src/document-model/custom/reducers/state.js.map +0 -1
- package/dist/src/document-model/custom/reducers/versioning.d.ts +0 -8
- package/dist/src/document-model/custom/reducers/versioning.d.ts.map +0 -1
- package/dist/src/document-model/custom/reducers/versioning.js +0 -23
- package/dist/src/document-model/custom/reducers/versioning.js.map +0 -1
- package/dist/src/document-model/custom/utils.d.ts +0 -8
- package/dist/src/document-model/custom/utils.d.ts.map +0 -1
- package/dist/src/document-model/custom/utils.js.map +0 -1
- package/dist/src/document-model/gen/actions.d.ts +0 -16
- package/dist/src/document-model/gen/actions.d.ts.map +0 -1
- package/dist/src/document-model/gen/actions.js +0 -8
- package/dist/src/document-model/gen/actions.js.map +0 -1
- package/dist/src/document-model/gen/constants.d.ts +0 -7
- package/dist/src/document-model/gen/constants.d.ts.map +0 -1
- package/dist/src/document-model/gen/constants.js +0 -34
- package/dist/src/document-model/gen/constants.js.map +0 -1
- package/dist/src/document-model/gen/creators.d.ts +0 -8
- package/dist/src/document-model/gen/creators.d.ts.map +0 -1
- package/dist/src/document-model/gen/creators.js +0 -8
- package/dist/src/document-model/gen/creators.js.map +0 -1
- package/dist/src/document-model/gen/document-model.d.ts +0 -3
- package/dist/src/document-model/gen/document-model.d.ts.map +0 -1
- package/dist/src/document-model/gen/document-model.js.map +0 -1
- package/dist/src/document-model/gen/header/actions.d.ts +0 -28
- package/dist/src/document-model/gen/header/actions.d.ts.map +0 -1
- package/dist/src/document-model/gen/header/actions.js +0 -2
- package/dist/src/document-model/gen/header/actions.js.map +0 -1
- package/dist/src/document-model/gen/header/creators.d.ts +0 -9
- package/dist/src/document-model/gen/header/creators.d.ts.map +0 -1
- package/dist/src/document-model/gen/header/creators.js +0 -9
- package/dist/src/document-model/gen/header/creators.js.map +0 -1
- package/dist/src/document-model/gen/header/object.d.ts +0 -13
- package/dist/src/document-model/gen/header/object.d.ts.map +0 -1
- package/dist/src/document-model/gen/header/object.js +0 -23
- package/dist/src/document-model/gen/header/object.js.map +0 -1
- package/dist/src/document-model/gen/header/operations.d.ts +0 -11
- package/dist/src/document-model/gen/header/operations.d.ts.map +0 -1
- package/dist/src/document-model/gen/header/operations.js +0 -2
- package/dist/src/document-model/gen/header/operations.js.map +0 -1
- package/dist/src/document-model/gen/module/actions.d.ts +0 -24
- package/dist/src/document-model/gen/module/actions.d.ts.map +0 -1
- package/dist/src/document-model/gen/module/actions.js +0 -2
- package/dist/src/document-model/gen/module/actions.js.map +0 -1
- package/dist/src/document-model/gen/module/creators.d.ts +0 -8
- package/dist/src/document-model/gen/module/creators.d.ts.map +0 -1
- package/dist/src/document-model/gen/module/creators.js +0 -8
- package/dist/src/document-model/gen/module/creators.js.map +0 -1
- package/dist/src/document-model/gen/module/object.d.ts +0 -12
- package/dist/src/document-model/gen/module/object.d.ts.map +0 -1
- package/dist/src/document-model/gen/module/object.js +0 -20
- package/dist/src/document-model/gen/module/object.js.map +0 -1
- package/dist/src/document-model/gen/module/operations.d.ts +0 -10
- package/dist/src/document-model/gen/module/operations.d.ts.map +0 -1
- package/dist/src/document-model/gen/module/operations.js +0 -2
- package/dist/src/document-model/gen/module/operations.js.map +0 -1
- package/dist/src/document-model/gen/object.d.ts +0 -28
- package/dist/src/document-model/gen/object.d.ts.map +0 -1
- package/dist/src/document-model/gen/object.js +0 -46
- package/dist/src/document-model/gen/object.js.map +0 -1
- package/dist/src/document-model/gen/operation/actions.d.ts +0 -44
- package/dist/src/document-model/gen/operation/actions.d.ts.map +0 -1
- package/dist/src/document-model/gen/operation/actions.js +0 -2
- package/dist/src/document-model/gen/operation/actions.js.map +0 -1
- package/dist/src/document-model/gen/operation/creators.d.ts +0 -13
- package/dist/src/document-model/gen/operation/creators.d.ts.map +0 -1
- package/dist/src/document-model/gen/operation/creators.js +0 -13
- package/dist/src/document-model/gen/operation/creators.js.map +0 -1
- package/dist/src/document-model/gen/operation/object.d.ts +0 -17
- package/dist/src/document-model/gen/operation/object.d.ts.map +0 -1
- package/dist/src/document-model/gen/operation/object.js +0 -35
- package/dist/src/document-model/gen/operation/object.js.map +0 -1
- package/dist/src/document-model/gen/operation/operations.d.ts +0 -15
- package/dist/src/document-model/gen/operation/operations.d.ts.map +0 -1
- package/dist/src/document-model/gen/operation/operations.js +0 -2
- package/dist/src/document-model/gen/operation/operations.js.map +0 -1
- package/dist/src/document-model/gen/operation-error/actions.d.ts +0 -32
- package/dist/src/document-model/gen/operation-error/actions.d.ts.map +0 -1
- package/dist/src/document-model/gen/operation-error/actions.js +0 -2
- package/dist/src/document-model/gen/operation-error/actions.js.map +0 -1
- package/dist/src/document-model/gen/operation-error/creators.d.ts +0 -10
- package/dist/src/document-model/gen/operation-error/creators.d.ts.map +0 -1
- package/dist/src/document-model/gen/operation-error/creators.js +0 -10
- package/dist/src/document-model/gen/operation-error/creators.js.map +0 -1
- package/dist/src/document-model/gen/operation-error/object.d.ts +0 -14
- package/dist/src/document-model/gen/operation-error/object.d.ts.map +0 -1
- package/dist/src/document-model/gen/operation-error/object.js +0 -26
- package/dist/src/document-model/gen/operation-error/object.js.map +0 -1
- package/dist/src/document-model/gen/operation-error/operations.d.ts +0 -12
- package/dist/src/document-model/gen/operation-error/operations.d.ts.map +0 -1
- package/dist/src/document-model/gen/operation-error/operations.js +0 -2
- package/dist/src/document-model/gen/operation-error/operations.js.map +0 -1
- package/dist/src/document-model/gen/operation-example/actions.d.ts +0 -20
- package/dist/src/document-model/gen/operation-example/actions.d.ts.map +0 -1
- package/dist/src/document-model/gen/operation-example/actions.js +0 -2
- package/dist/src/document-model/gen/operation-example/actions.js.map +0 -1
- package/dist/src/document-model/gen/operation-example/creators.d.ts +0 -7
- package/dist/src/document-model/gen/operation-example/creators.d.ts.map +0 -1
- package/dist/src/document-model/gen/operation-example/creators.js +0 -7
- package/dist/src/document-model/gen/operation-example/creators.js.map +0 -1
- package/dist/src/document-model/gen/operation-example/object.d.ts +0 -11
- package/dist/src/document-model/gen/operation-example/object.d.ts.map +0 -1
- package/dist/src/document-model/gen/operation-example/object.js +0 -17
- package/dist/src/document-model/gen/operation-example/object.js.map +0 -1
- package/dist/src/document-model/gen/operation-example/operations.d.ts +0 -9
- package/dist/src/document-model/gen/operation-example/operations.d.ts.map +0 -1
- package/dist/src/document-model/gen/operation-example/operations.js +0 -2
- package/dist/src/document-model/gen/operation-example/operations.js.map +0 -1
- package/dist/src/document-model/gen/ph-factories.d.ts +0 -27
- package/dist/src/document-model/gen/ph-factories.d.ts.map +0 -1
- package/dist/src/document-model/gen/ph-factories.js.map +0 -1
- package/dist/src/document-model/gen/reducer.d.ts +0 -5
- package/dist/src/document-model/gen/reducer.d.ts.map +0 -1
- package/dist/src/document-model/gen/reducer.js +0 -193
- package/dist/src/document-model/gen/reducer.js.map +0 -1
- package/dist/src/document-model/gen/schema/index.d.ts +0 -3
- package/dist/src/document-model/gen/schema/index.d.ts.map +0 -1
- package/dist/src/document-model/gen/schema/index.js +0 -3
- package/dist/src/document-model/gen/schema/index.js.map +0 -1
- package/dist/src/document-model/gen/schema/types.d.ts +0 -457
- package/dist/src/document-model/gen/schema/types.d.ts.map +0 -1
- package/dist/src/document-model/gen/schema/types.js.map +0 -1
- package/dist/src/document-model/gen/schema/zod.d.ts +0 -453
- package/dist/src/document-model/gen/schema/zod.d.ts.map +0 -1
- package/dist/src/document-model/gen/schema/zod.js.map +0 -1
- package/dist/src/document-model/gen/state/actions.d.ts +0 -28
- package/dist/src/document-model/gen/state/actions.d.ts.map +0 -1
- package/dist/src/document-model/gen/state/actions.js +0 -2
- package/dist/src/document-model/gen/state/actions.js.map +0 -1
- package/dist/src/document-model/gen/state/creators.d.ts +0 -9
- package/dist/src/document-model/gen/state/creators.d.ts.map +0 -1
- package/dist/src/document-model/gen/state/creators.js +0 -9
- package/dist/src/document-model/gen/state/creators.js.map +0 -1
- package/dist/src/document-model/gen/state/object.d.ts +0 -13
- package/dist/src/document-model/gen/state/object.d.ts.map +0 -1
- package/dist/src/document-model/gen/state/object.js +0 -23
- package/dist/src/document-model/gen/state/object.js.map +0 -1
- package/dist/src/document-model/gen/state/operations.d.ts +0 -11
- package/dist/src/document-model/gen/state/operations.d.ts.map +0 -1
- package/dist/src/document-model/gen/state/operations.js +0 -2
- package/dist/src/document-model/gen/state/operations.js.map +0 -1
- package/dist/src/document-model/gen/types.d.ts +0 -7
- package/dist/src/document-model/gen/types.d.ts.map +0 -1
- package/dist/src/document-model/gen/types.js.map +0 -1
- package/dist/src/document-model/gen/utils.d.ts +0 -10
- package/dist/src/document-model/gen/utils.d.ts.map +0 -1
- package/dist/src/document-model/gen/utils.js +0 -31
- package/dist/src/document-model/gen/utils.js.map +0 -1
- package/dist/src/document-model/gen/versioning/actions.d.ts +0 -24
- package/dist/src/document-model/gen/versioning/actions.d.ts.map +0 -1
- package/dist/src/document-model/gen/versioning/actions.js +0 -2
- package/dist/src/document-model/gen/versioning/actions.js.map +0 -1
- package/dist/src/document-model/gen/versioning/creators.d.ts +0 -8
- package/dist/src/document-model/gen/versioning/creators.d.ts.map +0 -1
- package/dist/src/document-model/gen/versioning/creators.js +0 -8
- package/dist/src/document-model/gen/versioning/creators.js.map +0 -1
- package/dist/src/document-model/gen/versioning/object.d.ts +0 -12
- package/dist/src/document-model/gen/versioning/object.d.ts.map +0 -1
- package/dist/src/document-model/gen/versioning/object.js +0 -20
- package/dist/src/document-model/gen/versioning/object.js.map +0 -1
- package/dist/src/document-model/gen/versioning/operations.d.ts +0 -10
- package/dist/src/document-model/gen/versioning/operations.d.ts.map +0 -1
- package/dist/src/document-model/gen/versioning/operations.js +0 -2
- package/dist/src/document-model/gen/versioning/operations.js.map +0 -1
- package/dist/test/document/object.test.d.ts +0 -2
- package/dist/test/document/object.test.d.ts.map +0 -1
- package/dist/test/document/object.test.js +0 -13
- package/dist/test/document/object.test.js.map +0 -1
- package/dist/test/document-model/object.test.d.ts +0 -2
- package/dist/test/document-model/object.test.d.ts.map +0 -1
- package/dist/test/document-model/object.test.js +0 -243
- package/dist/test/document-model/object.test.js.map +0 -1
- /package/dist/src/{document-model/gen/schema → core}/types.js +0 -0
- /package/dist/{src/document-model/gen → test}/types.js +0 -0
|
@@ -1,4 +1,672 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import type { Action, CreateDocument, CreateState, EditorModule, ImportScriptModule, InputMaybe, LoadFromInput, Manifest, Maybe, PHBaseState, PHDocument, Reducer, SaveToFileHandle, Scalars, SubgraphModule } from "document-model";
|
|
2
|
+
export type DocumentModelModule<TState extends PHBaseState = PHBaseState> = {
|
|
3
|
+
reducer: Reducer<TState>;
|
|
4
|
+
actions: Record<string, (...args: any[]) => Action>;
|
|
5
|
+
utils: DocumentModelUtils<TState>;
|
|
6
|
+
documentModel: DocumentModelPHState;
|
|
7
|
+
};
|
|
8
|
+
export type DocumentModelUtils<TState extends PHBaseState = PHBaseState> = {
|
|
9
|
+
fileExtension: string;
|
|
10
|
+
createState: CreateState<TState>;
|
|
11
|
+
createDocument: CreateDocument<TState>;
|
|
12
|
+
loadFromInput: LoadFromInput<TState>;
|
|
13
|
+
saveToFileHandle: SaveToFileHandle;
|
|
14
|
+
};
|
|
15
|
+
export type DocumentModelLib<TState extends PHBaseState = PHBaseState> = {
|
|
16
|
+
manifest: Manifest;
|
|
17
|
+
documentModels: DocumentModelModule<TState>[];
|
|
18
|
+
editors: EditorModule[];
|
|
19
|
+
subgraphs: SubgraphModule[];
|
|
20
|
+
importScripts: ImportScriptModule[];
|
|
21
|
+
};
|
|
22
|
+
export type DocumentModelDocument = PHDocument<DocumentModelPHState>;
|
|
3
23
|
export type DocumentModelDocumentModelModule = DocumentModelModule<DocumentModelPHState>;
|
|
24
|
+
export type DocumentModelAction = DocumentModelHeaderAction | DocumentModelVersioningAction | DocumentModelModuleAction | DocumentModelOperationErrorAction | DocumentModelOperationExampleAction | DocumentModelOperationAction | DocumentModelStateAction;
|
|
25
|
+
export type AddChangeLogItemInput = {
|
|
26
|
+
__typename?: "AddChangeLogItemInput";
|
|
27
|
+
content: Scalars["String"]["output"];
|
|
28
|
+
id: Scalars["ID"]["output"];
|
|
29
|
+
insertBefore: Maybe<Scalars["ID"]["output"]>;
|
|
30
|
+
};
|
|
31
|
+
export type AddModuleInput = {
|
|
32
|
+
description?: InputMaybe<Scalars["String"]["input"]>;
|
|
33
|
+
id: Scalars["ID"]["input"];
|
|
34
|
+
name: Scalars["String"]["input"];
|
|
35
|
+
};
|
|
36
|
+
export type AddOperationErrorInput = {
|
|
37
|
+
errorCode?: InputMaybe<Scalars["String"]["input"]>;
|
|
38
|
+
errorDescription?: InputMaybe<Scalars["String"]["input"]>;
|
|
39
|
+
errorName?: InputMaybe<Scalars["String"]["input"]>;
|
|
40
|
+
errorTemplate?: InputMaybe<Scalars["String"]["input"]>;
|
|
41
|
+
id: Scalars["ID"]["input"];
|
|
42
|
+
operationId: Scalars["ID"]["input"];
|
|
43
|
+
};
|
|
44
|
+
export type AddOperationExampleInput = {
|
|
45
|
+
example: Scalars["String"]["input"];
|
|
46
|
+
id: Scalars["ID"]["input"];
|
|
47
|
+
operationId: Scalars["ID"]["input"];
|
|
48
|
+
};
|
|
49
|
+
export type AddOperationInput = {
|
|
50
|
+
description?: InputMaybe<Scalars["String"]["input"]>;
|
|
51
|
+
id: Scalars["ID"]["input"];
|
|
52
|
+
moduleId: Scalars["ID"]["input"];
|
|
53
|
+
name: Scalars["String"]["input"];
|
|
54
|
+
reducer?: InputMaybe<Scalars["String"]["input"]>;
|
|
55
|
+
schema?: InputMaybe<Scalars["String"]["input"]>;
|
|
56
|
+
template?: InputMaybe<Scalars["String"]["input"]>;
|
|
57
|
+
scope?: InputMaybe<string>;
|
|
58
|
+
};
|
|
59
|
+
export type AddStateExampleInput = {
|
|
60
|
+
scope: Scalars["String"]["input"];
|
|
61
|
+
example: Scalars["String"]["input"];
|
|
62
|
+
id: Scalars["ID"]["input"];
|
|
63
|
+
insertBefore?: InputMaybe<Scalars["ID"]["input"]>;
|
|
64
|
+
};
|
|
65
|
+
export type Author = {
|
|
66
|
+
__typename?: "Author";
|
|
67
|
+
name: Scalars["String"]["output"];
|
|
68
|
+
website: Maybe<Scalars["String"]["output"]>;
|
|
69
|
+
};
|
|
70
|
+
export type CodeExample = {
|
|
71
|
+
__typename?: "CodeExample";
|
|
72
|
+
id: Scalars["ID"]["output"];
|
|
73
|
+
value: Scalars["String"]["output"];
|
|
74
|
+
};
|
|
75
|
+
export type DeleteChangeLogItemInput = {
|
|
76
|
+
__typename?: "DeleteChangeLogItemInput";
|
|
77
|
+
id: Scalars["ID"]["output"];
|
|
78
|
+
};
|
|
79
|
+
export type DeleteModuleInput = {
|
|
80
|
+
id: Scalars["ID"]["input"];
|
|
81
|
+
};
|
|
82
|
+
export type DeleteOperationErrorInput = {
|
|
83
|
+
id: Scalars["ID"]["input"];
|
|
84
|
+
};
|
|
85
|
+
export type DeleteOperationExampleInput = {
|
|
86
|
+
id: Scalars["ID"]["input"];
|
|
87
|
+
};
|
|
88
|
+
export type DeleteOperationInput = {
|
|
89
|
+
id: Scalars["ID"]["input"];
|
|
90
|
+
};
|
|
91
|
+
export type DeleteStateExampleInput = {
|
|
92
|
+
scope: Scalars["String"]["input"];
|
|
93
|
+
id: Scalars["ID"]["input"];
|
|
94
|
+
};
|
|
95
|
+
export type DocumentModelInput = AddChangeLogItemInput | AddModuleInput | AddOperationErrorInput | AddOperationExampleInput | AddOperationInput | AddStateExampleInput | DeleteChangeLogItemInput | DeleteModuleInput | DeleteOperationErrorInput | DeleteOperationExampleInput | DeleteOperationInput | DeleteStateExampleInput | MoveOperationInput | ReorderChangeLogItemsInput | ReorderModuleOperationsInput | ReorderModulesInput | ReorderOperationErrorsInput | ReorderOperationExamplesInput | ReorderStateExamplesInput | SetAuthorNameInput | SetAuthorWebsiteInput | SetInitialStateInput | SetModelDescriptionInput | SetModelExtensionInput | SetModelIdInput | SetModelNameInput | SetModuleDescriptionInput | SetModuleNameInput | SetOperationDescriptionInput | SetOperationErrorCodeInput | SetOperationErrorDescriptionInput | SetOperationErrorNameInput | SetOperationErrorTemplateInput | SetOperationNameInput | SetOperationReducerInput | SetOperationSchemaInput | SetOperationTemplateInput | SetStateSchemaInput | UpdateChangeLogItemInput | UpdateOperationExampleInput | UpdateStateExampleInput;
|
|
96
|
+
export type DocumentModelGlobalState = {
|
|
97
|
+
author: Author;
|
|
98
|
+
description: Scalars["String"]["output"];
|
|
99
|
+
extension: Scalars["String"]["output"];
|
|
100
|
+
id: Scalars["String"]["output"];
|
|
101
|
+
name: Scalars["String"]["output"];
|
|
102
|
+
specifications: Array<DocumentSpecification>;
|
|
103
|
+
};
|
|
104
|
+
export type DocumentModelLocalState = {};
|
|
105
|
+
export type DocumentModelPHState = PHBaseState & {
|
|
106
|
+
global: DocumentModelGlobalState;
|
|
107
|
+
local: DocumentModelLocalState;
|
|
108
|
+
};
|
|
109
|
+
export type ScopeState = {
|
|
110
|
+
global: State;
|
|
111
|
+
local: State;
|
|
112
|
+
};
|
|
113
|
+
export type DocumentSpecification = {
|
|
114
|
+
__typename?: "DocumentSpecification";
|
|
115
|
+
changeLog: Array<Scalars["String"]["output"]>;
|
|
116
|
+
modules: Array<ModuleSpecification>;
|
|
117
|
+
state: ScopeState;
|
|
118
|
+
version: Scalars["Int"]["output"];
|
|
119
|
+
};
|
|
120
|
+
export type ModuleSpecification = {
|
|
121
|
+
__typename?: "ModuleSpecification";
|
|
122
|
+
description: Maybe<Scalars["String"]["output"]>;
|
|
123
|
+
id: Scalars["ID"]["output"];
|
|
124
|
+
name: Scalars["String"]["output"];
|
|
125
|
+
operations: Array<OperationSpecification>;
|
|
126
|
+
};
|
|
127
|
+
export type MoveOperationInput = {
|
|
128
|
+
newModuleId: Scalars["ID"]["input"];
|
|
129
|
+
operationId: Scalars["ID"]["input"];
|
|
130
|
+
};
|
|
131
|
+
export type Mutation = {
|
|
132
|
+
__typename?: "Mutation";
|
|
133
|
+
addChangeLogItemInput: DocumentModelGlobalState;
|
|
134
|
+
addModule: DocumentModelGlobalState;
|
|
135
|
+
addOperation: DocumentModelGlobalState;
|
|
136
|
+
addOperationError: DocumentModelGlobalState;
|
|
137
|
+
addOperationExample: DocumentModelGlobalState;
|
|
138
|
+
addStateExample: DocumentModelGlobalState;
|
|
139
|
+
deleteChangeLogItemInput: DocumentModelGlobalState;
|
|
140
|
+
deleteModule: DocumentModelGlobalState;
|
|
141
|
+
deleteOperation: DocumentModelGlobalState;
|
|
142
|
+
deleteOperationError: DocumentModelGlobalState;
|
|
143
|
+
deleteOperationExample: DocumentModelGlobalState;
|
|
144
|
+
deleteStateExample: DocumentModelGlobalState;
|
|
145
|
+
moveOperation: DocumentModelGlobalState;
|
|
146
|
+
releaseNewVersion: DocumentModelGlobalState;
|
|
147
|
+
reorderChangeLogItemsInput: DocumentModelGlobalState;
|
|
148
|
+
reorderModuleOperations: DocumentModelGlobalState;
|
|
149
|
+
reorderModules: DocumentModelGlobalState;
|
|
150
|
+
reorderOperationErrors: DocumentModelGlobalState;
|
|
151
|
+
reorderOperationExamples: DocumentModelGlobalState;
|
|
152
|
+
reorderStateExamples: DocumentModelGlobalState;
|
|
153
|
+
setAuthorName: DocumentModelGlobalState;
|
|
154
|
+
setAuthorWebsite: DocumentModelGlobalState;
|
|
155
|
+
setInitialState: DocumentModelGlobalState;
|
|
156
|
+
setModelDescription: DocumentModelGlobalState;
|
|
157
|
+
setModelExtension: DocumentModelGlobalState;
|
|
158
|
+
setModelId: DocumentModelGlobalState;
|
|
159
|
+
setModelName: DocumentModelGlobalState;
|
|
160
|
+
setModuleDescription: DocumentModelGlobalState;
|
|
161
|
+
setModuleName: DocumentModelGlobalState;
|
|
162
|
+
setOperationDescription: DocumentModelGlobalState;
|
|
163
|
+
setOperationErrorCode: DocumentModelGlobalState;
|
|
164
|
+
setOperationErrorDescription: DocumentModelGlobalState;
|
|
165
|
+
setOperationErrorName: DocumentModelGlobalState;
|
|
166
|
+
setOperationErrorTemplate: DocumentModelGlobalState;
|
|
167
|
+
setOperationName: DocumentModelGlobalState;
|
|
168
|
+
setOperationReducer: DocumentModelGlobalState;
|
|
169
|
+
setOperationSchema: DocumentModelGlobalState;
|
|
170
|
+
setOperationTemplate: DocumentModelGlobalState;
|
|
171
|
+
setStateSchema: DocumentModelGlobalState;
|
|
172
|
+
updateChangeLogItemInput: DocumentModelGlobalState;
|
|
173
|
+
updateOperationExample: DocumentModelGlobalState;
|
|
174
|
+
updateStateExample: DocumentModelGlobalState;
|
|
175
|
+
};
|
|
176
|
+
export type MutationAddChangeLogItemInputArgs = {
|
|
177
|
+
input?: InputMaybe<AddChangeLogItemInput>;
|
|
178
|
+
};
|
|
179
|
+
export type MutationAddModuleArgs = {
|
|
180
|
+
input: AddModuleInput;
|
|
181
|
+
};
|
|
182
|
+
export type MutationAddOperationArgs = {
|
|
183
|
+
input: AddOperationInput;
|
|
184
|
+
};
|
|
185
|
+
export type MutationAddOperationErrorArgs = {
|
|
186
|
+
input: AddOperationErrorInput;
|
|
187
|
+
};
|
|
188
|
+
export type MutationAddOperationExampleArgs = {
|
|
189
|
+
input: AddOperationExampleInput;
|
|
190
|
+
};
|
|
191
|
+
export type MutationAddStateExampleArgs = {
|
|
192
|
+
input: AddStateExampleInput;
|
|
193
|
+
};
|
|
194
|
+
export type MutationDeleteChangeLogItemInputArgs = {
|
|
195
|
+
input?: InputMaybe<DeleteChangeLogItemInput>;
|
|
196
|
+
};
|
|
197
|
+
export type MutationDeleteModuleArgs = {
|
|
198
|
+
input: DeleteModuleInput;
|
|
199
|
+
};
|
|
200
|
+
export type MutationDeleteOperationArgs = {
|
|
201
|
+
input: DeleteOperationInput;
|
|
202
|
+
};
|
|
203
|
+
export type MutationDeleteOperationErrorArgs = {
|
|
204
|
+
input: DeleteOperationErrorInput;
|
|
205
|
+
};
|
|
206
|
+
export type MutationDeleteOperationExampleArgs = {
|
|
207
|
+
input: DeleteOperationExampleInput;
|
|
208
|
+
};
|
|
209
|
+
export type MutationDeleteStateExampleArgs = {
|
|
210
|
+
input: DeleteStateExampleInput;
|
|
211
|
+
};
|
|
212
|
+
export type MutationMoveOperationArgs = {
|
|
213
|
+
input: MoveOperationInput;
|
|
214
|
+
};
|
|
215
|
+
export type MutationReorderChangeLogItemsInputArgs = {
|
|
216
|
+
input?: InputMaybe<ReorderChangeLogItemsInput>;
|
|
217
|
+
};
|
|
218
|
+
export type MutationReorderModuleOperationsArgs = {
|
|
219
|
+
input: ReorderModuleOperationsInput;
|
|
220
|
+
};
|
|
221
|
+
export type MutationReorderModulesArgs = {
|
|
222
|
+
input: ReorderModulesInput;
|
|
223
|
+
};
|
|
224
|
+
export type MutationReorderOperationErrorsArgs = {
|
|
225
|
+
input: ReorderOperationErrorsInput;
|
|
226
|
+
};
|
|
227
|
+
export type MutationReorderOperationExamplesArgs = {
|
|
228
|
+
input: ReorderOperationExamplesInput;
|
|
229
|
+
};
|
|
230
|
+
export type MutationReorderStateExamplesArgs = {
|
|
231
|
+
input: ReorderStateExamplesInput;
|
|
232
|
+
};
|
|
233
|
+
export type MutationSetAuthorNameArgs = {
|
|
234
|
+
input: SetAuthorNameInput;
|
|
235
|
+
};
|
|
236
|
+
export type MutationSetAuthorWebsiteArgs = {
|
|
237
|
+
input: SetAuthorWebsiteInput;
|
|
238
|
+
};
|
|
239
|
+
export type MutationSetInitialStateArgs = {
|
|
240
|
+
input: SetInitialStateInput;
|
|
241
|
+
};
|
|
242
|
+
export type MutationSetModelDescriptionArgs = {
|
|
243
|
+
input: SetModelDescriptionInput;
|
|
244
|
+
};
|
|
245
|
+
export type MutationSetModelExtensionArgs = {
|
|
246
|
+
input: SetModelExtensionInput;
|
|
247
|
+
};
|
|
248
|
+
export type MutationSetModelIdArgs = {
|
|
249
|
+
input: SetModelIdInput;
|
|
250
|
+
};
|
|
251
|
+
export type MutationSetModelNameArgs = {
|
|
252
|
+
input: SetModelNameInput;
|
|
253
|
+
};
|
|
254
|
+
export type MutationSetModuleDescriptionArgs = {
|
|
255
|
+
input: SetModuleDescriptionInput;
|
|
256
|
+
};
|
|
257
|
+
export type MutationSetModuleNameArgs = {
|
|
258
|
+
input: SetModuleNameInput;
|
|
259
|
+
};
|
|
260
|
+
export type MutationSetOperationDescriptionArgs = {
|
|
261
|
+
input: SetOperationDescriptionInput;
|
|
262
|
+
};
|
|
263
|
+
export type MutationSetOperationErrorCodeArgs = {
|
|
264
|
+
input: SetOperationErrorCodeInput;
|
|
265
|
+
};
|
|
266
|
+
export type MutationSetOperationErrorDescriptionArgs = {
|
|
267
|
+
input: SetOperationErrorDescriptionInput;
|
|
268
|
+
};
|
|
269
|
+
export type MutationSetOperationErrorNameArgs = {
|
|
270
|
+
input: SetOperationErrorNameInput;
|
|
271
|
+
};
|
|
272
|
+
export type MutationSetOperationErrorTemplateArgs = {
|
|
273
|
+
input: SetOperationErrorTemplateInput;
|
|
274
|
+
};
|
|
275
|
+
export type MutationSetOperationNameArgs = {
|
|
276
|
+
input: SetOperationNameInput;
|
|
277
|
+
};
|
|
278
|
+
export type MutationSetOperationReducerArgs = {
|
|
279
|
+
input: SetOperationReducerInput;
|
|
280
|
+
};
|
|
281
|
+
export type MutationSetOperationSchemaArgs = {
|
|
282
|
+
input: SetOperationSchemaInput;
|
|
283
|
+
};
|
|
284
|
+
export type MutationSetOperationTemplateArgs = {
|
|
285
|
+
input: SetOperationTemplateInput;
|
|
286
|
+
};
|
|
287
|
+
export type MutationSetStateSchemaArgs = {
|
|
288
|
+
input: SetStateSchemaInput;
|
|
289
|
+
};
|
|
290
|
+
export type MutationUpdateChangeLogItemInputArgs = {
|
|
291
|
+
input?: InputMaybe<UpdateChangeLogItemInput>;
|
|
292
|
+
};
|
|
293
|
+
export type MutationUpdateOperationExampleArgs = {
|
|
294
|
+
input: UpdateOperationExampleInput;
|
|
295
|
+
};
|
|
296
|
+
export type MutationUpdateStateExampleArgs = {
|
|
297
|
+
input: UpdateStateExampleInput;
|
|
298
|
+
};
|
|
299
|
+
export type OperationSpecification = {
|
|
300
|
+
__typename?: "OperationSpecification";
|
|
301
|
+
description: Maybe<Scalars["String"]["output"]>;
|
|
302
|
+
errors: Array<OperationErrorSpecification>;
|
|
303
|
+
examples: Array<CodeExample>;
|
|
304
|
+
id: Scalars["ID"]["output"];
|
|
305
|
+
name: Maybe<Scalars["String"]["output"]>;
|
|
306
|
+
reducer: Maybe<Scalars["String"]["output"]>;
|
|
307
|
+
schema: Maybe<Scalars["String"]["output"]>;
|
|
308
|
+
template: Maybe<Scalars["String"]["output"]>;
|
|
309
|
+
scope: string;
|
|
310
|
+
};
|
|
311
|
+
export type OperationErrorSpecification = {
|
|
312
|
+
__typename?: "OperationErrorSpecification";
|
|
313
|
+
code: Maybe<Scalars["String"]["output"]>;
|
|
314
|
+
description: Maybe<Scalars["String"]["output"]>;
|
|
315
|
+
id: Scalars["ID"]["output"];
|
|
316
|
+
name: Maybe<Scalars["String"]["output"]>;
|
|
317
|
+
template: Maybe<Scalars["String"]["output"]>;
|
|
318
|
+
};
|
|
319
|
+
export type ReorderChangeLogItemsInput = {
|
|
320
|
+
__typename?: "ReorderChangeLogItemsInput";
|
|
321
|
+
order: Array<Scalars["ID"]["output"]>;
|
|
322
|
+
};
|
|
323
|
+
export type ReorderModuleOperationsInput = {
|
|
324
|
+
moduleId: Scalars["ID"]["input"];
|
|
325
|
+
order: Array<Scalars["ID"]["input"]>;
|
|
326
|
+
};
|
|
327
|
+
export type ReorderModulesInput = {
|
|
328
|
+
order: Array<Scalars["ID"]["input"]>;
|
|
329
|
+
};
|
|
330
|
+
export type ReorderOperationErrorsInput = {
|
|
331
|
+
operationId: Scalars["ID"]["input"];
|
|
332
|
+
order: Array<Scalars["ID"]["input"]>;
|
|
333
|
+
};
|
|
334
|
+
export type ReorderOperationExamplesInput = {
|
|
335
|
+
operationId: Scalars["ID"]["input"];
|
|
336
|
+
order: Array<Scalars["ID"]["input"]>;
|
|
337
|
+
};
|
|
338
|
+
export type ReorderStateExamplesInput = {
|
|
339
|
+
scope: Scalars["String"]["input"];
|
|
340
|
+
order: Array<Scalars["ID"]["input"]>;
|
|
341
|
+
};
|
|
342
|
+
export type SetAuthorNameInput = {
|
|
343
|
+
authorName: Scalars["String"]["input"];
|
|
344
|
+
};
|
|
345
|
+
export type SetAuthorWebsiteInput = {
|
|
346
|
+
authorWebsite: Scalars["String"]["input"];
|
|
347
|
+
};
|
|
348
|
+
export type SetInitialStateInput = {
|
|
349
|
+
scope: Scalars["String"]["input"];
|
|
350
|
+
initialValue: Scalars["String"]["input"];
|
|
351
|
+
};
|
|
352
|
+
export type SetModelDescriptionInput = {
|
|
353
|
+
description: Scalars["String"]["input"];
|
|
354
|
+
};
|
|
355
|
+
export type SetModelExtensionInput = {
|
|
356
|
+
extension: Scalars["String"]["input"];
|
|
357
|
+
};
|
|
358
|
+
export type SetModelIdInput = {
|
|
359
|
+
id: Scalars["String"]["input"];
|
|
360
|
+
};
|
|
361
|
+
export type SetModelNameInput = {
|
|
362
|
+
name: Scalars["String"]["input"];
|
|
363
|
+
};
|
|
364
|
+
export type SetModuleDescriptionInput = {
|
|
365
|
+
description?: InputMaybe<Scalars["String"]["input"]>;
|
|
366
|
+
id: Scalars["ID"]["input"];
|
|
367
|
+
};
|
|
368
|
+
export type SetModuleNameInput = {
|
|
369
|
+
id: Scalars["ID"]["input"];
|
|
370
|
+
name?: InputMaybe<Scalars["String"]["input"]>;
|
|
371
|
+
};
|
|
372
|
+
export type SetOperationDescriptionInput = {
|
|
373
|
+
description?: InputMaybe<Scalars["String"]["input"]>;
|
|
374
|
+
id: Scalars["ID"]["input"];
|
|
375
|
+
};
|
|
376
|
+
export type SetOperationErrorCodeInput = {
|
|
377
|
+
errorCode?: InputMaybe<Scalars["String"]["input"]>;
|
|
378
|
+
id: Scalars["ID"]["input"];
|
|
379
|
+
};
|
|
380
|
+
export type SetOperationErrorDescriptionInput = {
|
|
381
|
+
errorDescription?: InputMaybe<Scalars["String"]["input"]>;
|
|
382
|
+
id: Scalars["ID"]["input"];
|
|
383
|
+
};
|
|
384
|
+
export type SetOperationErrorNameInput = {
|
|
385
|
+
errorName?: InputMaybe<Scalars["String"]["input"]>;
|
|
386
|
+
id: Scalars["ID"]["input"];
|
|
387
|
+
};
|
|
388
|
+
export type SetOperationErrorTemplateInput = {
|
|
389
|
+
errorTemplate?: InputMaybe<Scalars["String"]["input"]>;
|
|
390
|
+
id: Scalars["ID"]["input"];
|
|
391
|
+
};
|
|
392
|
+
export type SetOperationNameInput = {
|
|
393
|
+
id: Scalars["ID"]["input"];
|
|
394
|
+
name?: InputMaybe<Scalars["String"]["input"]>;
|
|
395
|
+
};
|
|
396
|
+
export type SetOperationScopeInput = {
|
|
397
|
+
id: Scalars["ID"]["input"];
|
|
398
|
+
scope?: InputMaybe<string>;
|
|
399
|
+
};
|
|
400
|
+
export type SetOperationReducerInput = {
|
|
401
|
+
id: Scalars["ID"]["input"];
|
|
402
|
+
reducer?: InputMaybe<Scalars["String"]["input"]>;
|
|
403
|
+
};
|
|
404
|
+
export type SetOperationSchemaInput = {
|
|
405
|
+
id: Scalars["ID"]["input"];
|
|
406
|
+
schema?: InputMaybe<Scalars["String"]["input"]>;
|
|
407
|
+
};
|
|
408
|
+
export type SetOperationTemplateInput = {
|
|
409
|
+
id: Scalars["ID"]["input"];
|
|
410
|
+
template?: InputMaybe<Scalars["String"]["input"]>;
|
|
411
|
+
};
|
|
412
|
+
export type SetStateSchemaInput = {
|
|
413
|
+
scope: Scalars["String"]["input"];
|
|
414
|
+
schema: Scalars["String"]["input"];
|
|
415
|
+
};
|
|
416
|
+
export type State = {
|
|
417
|
+
__typename?: "State";
|
|
418
|
+
examples: Array<CodeExample>;
|
|
419
|
+
initialValue: Scalars["String"]["output"];
|
|
420
|
+
schema: Scalars["String"]["output"];
|
|
421
|
+
};
|
|
422
|
+
export type UpdateChangeLogItemInput = {
|
|
423
|
+
__typename?: "UpdateChangeLogItemInput";
|
|
424
|
+
id: Scalars["ID"]["output"];
|
|
425
|
+
newContent: Scalars["String"]["output"];
|
|
426
|
+
};
|
|
427
|
+
export type UpdateOperationExampleInput = {
|
|
428
|
+
example: Scalars["String"]["input"];
|
|
429
|
+
id: Scalars["ID"]["input"];
|
|
430
|
+
};
|
|
431
|
+
export type UpdateStateExampleInput = {
|
|
432
|
+
scope: Scalars["String"]["input"];
|
|
433
|
+
id: Scalars["ID"]["input"];
|
|
434
|
+
newExample: Scalars["String"]["input"];
|
|
435
|
+
};
|
|
436
|
+
export type SetModelNameAction = Action & {
|
|
437
|
+
type: "SET_MODEL_NAME";
|
|
438
|
+
input: SetModelNameInput;
|
|
439
|
+
};
|
|
440
|
+
export type SetModelIdAction = Action & {
|
|
441
|
+
type: "SET_MODEL_ID";
|
|
442
|
+
input: SetModelIdInput;
|
|
443
|
+
};
|
|
444
|
+
export type SetModelExtensionAction = Action & {
|
|
445
|
+
type: "SET_MODEL_EXTENSION";
|
|
446
|
+
input: SetModelExtensionInput;
|
|
447
|
+
};
|
|
448
|
+
export type SetModelDescriptionAction = Action & {
|
|
449
|
+
type: "SET_MODEL_DESCRIPTION";
|
|
450
|
+
input: SetModelDescriptionInput;
|
|
451
|
+
};
|
|
452
|
+
export type SetAuthorNameAction = Action & {
|
|
453
|
+
type: "SET_AUTHOR_NAME";
|
|
454
|
+
input: SetAuthorNameInput;
|
|
455
|
+
};
|
|
456
|
+
export type SetAuthorWebsiteAction = Action & {
|
|
457
|
+
type: "SET_AUTHOR_WEBSITE";
|
|
458
|
+
input: SetAuthorWebsiteInput;
|
|
459
|
+
};
|
|
460
|
+
export type DocumentModelHeaderAction = SetModelNameAction | SetModelIdAction | SetModelExtensionAction | SetModelDescriptionAction | SetAuthorNameAction | SetAuthorWebsiteAction;
|
|
461
|
+
export type AddModuleAction = Action & {
|
|
462
|
+
type: "ADD_MODULE";
|
|
463
|
+
input: AddModuleInput;
|
|
464
|
+
};
|
|
465
|
+
export type SetModuleNameAction = Action & {
|
|
466
|
+
type: "SET_MODULE_NAME";
|
|
467
|
+
input: SetModuleNameInput;
|
|
468
|
+
};
|
|
469
|
+
export type SetModuleDescriptionAction = Action & {
|
|
470
|
+
type: "SET_MODULE_DESCRIPTION";
|
|
471
|
+
input: SetModuleDescriptionInput;
|
|
472
|
+
};
|
|
473
|
+
export type DeleteModuleAction = Action & {
|
|
474
|
+
type: "DELETE_MODULE";
|
|
475
|
+
input: DeleteModuleInput;
|
|
476
|
+
};
|
|
477
|
+
export type ReorderModulesAction = Action & {
|
|
478
|
+
type: "REORDER_MODULES";
|
|
479
|
+
input: ReorderModulesInput;
|
|
480
|
+
};
|
|
481
|
+
export type DocumentModelModuleAction = AddModuleAction | SetModuleNameAction | SetModuleDescriptionAction | DeleteModuleAction | ReorderModulesAction;
|
|
482
|
+
export type AddOperationAction = Action & {
|
|
483
|
+
type: "ADD_OPERATION";
|
|
484
|
+
input: AddOperationInput;
|
|
485
|
+
};
|
|
486
|
+
export type SetOperationNameAction = Action & {
|
|
487
|
+
type: "SET_OPERATION_NAME";
|
|
488
|
+
input: SetOperationNameInput;
|
|
489
|
+
};
|
|
490
|
+
export type SetOperationScopeAction = Action & {
|
|
491
|
+
type: "SET_OPERATION_SCOPE";
|
|
492
|
+
input: SetOperationScopeInput;
|
|
493
|
+
};
|
|
494
|
+
export type SetOperationSchemaAction = Action & {
|
|
495
|
+
type: "SET_OPERATION_SCHEMA";
|
|
496
|
+
input: SetOperationSchemaInput;
|
|
497
|
+
};
|
|
498
|
+
export type SetOperationDescriptionAction = Action & {
|
|
499
|
+
type: "SET_OPERATION_DESCRIPTION";
|
|
500
|
+
input: SetOperationDescriptionInput;
|
|
501
|
+
};
|
|
502
|
+
export type SetOperationTemplateAction = Action & {
|
|
503
|
+
type: "SET_OPERATION_TEMPLATE";
|
|
504
|
+
input: SetOperationTemplateInput;
|
|
505
|
+
};
|
|
506
|
+
export type SetOperationReducerAction = Action & {
|
|
507
|
+
type: "SET_OPERATION_REDUCER";
|
|
508
|
+
input: SetOperationReducerInput;
|
|
509
|
+
};
|
|
510
|
+
export type MoveOperationAction = Action & {
|
|
511
|
+
type: "MOVE_OPERATION";
|
|
512
|
+
input: MoveOperationInput;
|
|
513
|
+
};
|
|
514
|
+
export type DeleteOperationAction = Action & {
|
|
515
|
+
type: "DELETE_OPERATION";
|
|
516
|
+
input: DeleteOperationInput;
|
|
517
|
+
};
|
|
518
|
+
export type ReorderModuleOperationsAction = Action & {
|
|
519
|
+
type: "REORDER_MODULE_OPERATIONS";
|
|
520
|
+
input: ReorderModuleOperationsInput;
|
|
521
|
+
};
|
|
522
|
+
export type DocumentModelOperationAction = AddOperationAction | SetOperationNameAction | SetOperationScopeAction | SetOperationSchemaAction | SetOperationDescriptionAction | SetOperationTemplateAction | SetOperationReducerAction | MoveOperationAction | DeleteOperationAction | ReorderModuleOperationsAction;
|
|
523
|
+
export type AddOperationErrorAction = Action & {
|
|
524
|
+
type: "ADD_OPERATION_ERROR";
|
|
525
|
+
input: AddOperationErrorInput;
|
|
526
|
+
};
|
|
527
|
+
export type SetOperationErrorCodeAction = Action & {
|
|
528
|
+
type: "SET_OPERATION_ERROR_CODE";
|
|
529
|
+
input: SetOperationErrorCodeInput;
|
|
530
|
+
};
|
|
531
|
+
export type SetOperationErrorNameAction = Action & {
|
|
532
|
+
type: "SET_OPERATION_ERROR_NAME";
|
|
533
|
+
input: SetOperationErrorNameInput;
|
|
534
|
+
};
|
|
535
|
+
export type SetOperationErrorDescriptionAction = Action & {
|
|
536
|
+
type: "SET_OPERATION_ERROR_DESCRIPTION";
|
|
537
|
+
input: SetOperationErrorDescriptionInput;
|
|
538
|
+
};
|
|
539
|
+
export type SetOperationErrorTemplateAction = Action & {
|
|
540
|
+
type: "SET_OPERATION_ERROR_TEMPLATE";
|
|
541
|
+
input: SetOperationErrorTemplateInput;
|
|
542
|
+
};
|
|
543
|
+
export type DeleteOperationErrorAction = Action & {
|
|
544
|
+
type: "DELETE_OPERATION_ERROR";
|
|
545
|
+
input: DeleteOperationErrorInput;
|
|
546
|
+
};
|
|
547
|
+
export type ReorderOperationErrorsAction = Action & {
|
|
548
|
+
type: "REORDER_OPERATION_ERRORS";
|
|
549
|
+
input: ReorderOperationErrorsInput;
|
|
550
|
+
};
|
|
551
|
+
export type DocumentModelOperationErrorAction = AddOperationErrorAction | SetOperationErrorCodeAction | SetOperationErrorNameAction | SetOperationErrorDescriptionAction | SetOperationErrorTemplateAction | DeleteOperationErrorAction | ReorderOperationErrorsAction;
|
|
552
|
+
export type AddOperationExampleAction = Action & {
|
|
553
|
+
type: "ADD_OPERATION_EXAMPLE";
|
|
554
|
+
input: AddOperationExampleInput;
|
|
555
|
+
};
|
|
556
|
+
export type UpdateOperationExampleAction = Action & {
|
|
557
|
+
type: "UPDATE_OPERATION_EXAMPLE";
|
|
558
|
+
input: UpdateOperationExampleInput;
|
|
559
|
+
};
|
|
560
|
+
export type DeleteOperationExampleAction = Action & {
|
|
561
|
+
type: "DELETE_OPERATION_EXAMPLE";
|
|
562
|
+
input: DeleteOperationExampleInput;
|
|
563
|
+
};
|
|
564
|
+
export type ReorderOperationExamplesAction = Action & {
|
|
565
|
+
type: "REORDER_OPERATION_EXAMPLES";
|
|
566
|
+
input: ReorderOperationExamplesInput;
|
|
567
|
+
};
|
|
568
|
+
export type DocumentModelOperationExampleAction = AddOperationExampleAction | UpdateOperationExampleAction | DeleteOperationExampleAction | ReorderOperationExamplesAction;
|
|
569
|
+
export type SetStateSchemaAction = Action & {
|
|
570
|
+
type: "SET_STATE_SCHEMA";
|
|
571
|
+
input: SetStateSchemaInput;
|
|
572
|
+
};
|
|
573
|
+
export type SetInitialStateAction = Action & {
|
|
574
|
+
type: "SET_INITIAL_STATE";
|
|
575
|
+
input: SetInitialStateInput;
|
|
576
|
+
};
|
|
577
|
+
export type AddStateExampleAction = Action & {
|
|
578
|
+
type: "ADD_STATE_EXAMPLE";
|
|
579
|
+
input: AddStateExampleInput;
|
|
580
|
+
};
|
|
581
|
+
export type UpdateStateExampleAction = Action & {
|
|
582
|
+
type: "UPDATE_STATE_EXAMPLE";
|
|
583
|
+
input: UpdateStateExampleInput;
|
|
584
|
+
};
|
|
585
|
+
export type DeleteStateExampleAction = Action & {
|
|
586
|
+
type: "DELETE_STATE_EXAMPLE";
|
|
587
|
+
input: DeleteStateExampleInput;
|
|
588
|
+
};
|
|
589
|
+
export type ReorderStateExamplesAction = Action & {
|
|
590
|
+
type: "REORDER_STATE_EXAMPLES";
|
|
591
|
+
input: ReorderStateExamplesInput;
|
|
592
|
+
};
|
|
593
|
+
export type DocumentModelStateAction = SetStateSchemaAction | SetInitialStateAction | AddStateExampleAction | UpdateStateExampleAction | DeleteStateExampleAction | ReorderStateExamplesAction;
|
|
594
|
+
export type AddChangeLogItemAction = Action & {
|
|
595
|
+
type: "ADD_CHANGE_LOG_ITEM";
|
|
596
|
+
input: AddChangeLogItemInput;
|
|
597
|
+
};
|
|
598
|
+
export type UpdateChangeLogItemAction = Action & {
|
|
599
|
+
type: "UPDATE_CHANGE_LOG_ITEM";
|
|
600
|
+
input: UpdateChangeLogItemInput;
|
|
601
|
+
};
|
|
602
|
+
export type DeleteChangeLogItemAction = Action & {
|
|
603
|
+
type: "DELETE_CHANGE_LOG_ITEM";
|
|
604
|
+
input: DeleteChangeLogItemInput;
|
|
605
|
+
};
|
|
606
|
+
export type ReorderChangeLogItemsAction = Action & {
|
|
607
|
+
type: "REORDER_CHANGE_LOG_ITEMS";
|
|
608
|
+
input: ReorderChangeLogItemsInput;
|
|
609
|
+
};
|
|
610
|
+
export type ReleaseNewVersionAction = Action & {
|
|
611
|
+
type: "RELEASE_NEW_VERSION";
|
|
612
|
+
input: {};
|
|
613
|
+
};
|
|
614
|
+
export type DocumentModelVersioningAction = AddChangeLogItemAction | UpdateChangeLogItemAction | DeleteChangeLogItemAction | ReorderChangeLogItemsAction | ReleaseNewVersionAction;
|
|
615
|
+
export interface DocumentModelHeaderOperations {
|
|
616
|
+
setModelNameOperation: (state: DocumentModelGlobalState, action: SetModelNameAction) => void;
|
|
617
|
+
setModelIdOperation: (state: DocumentModelGlobalState, action: SetModelIdAction) => void;
|
|
618
|
+
setModelExtensionOperation: (state: DocumentModelGlobalState, action: SetModelExtensionAction) => void;
|
|
619
|
+
setModelDescriptionOperation: (state: DocumentModelGlobalState, action: SetModelDescriptionAction) => void;
|
|
620
|
+
setAuthorNameOperation: (state: DocumentModelGlobalState, action: SetAuthorNameAction) => void;
|
|
621
|
+
setAuthorWebsiteOperation: (state: DocumentModelGlobalState, action: SetAuthorWebsiteAction) => void;
|
|
622
|
+
}
|
|
623
|
+
export interface DocumentModelModuleOperations {
|
|
624
|
+
addModuleOperation: (state: DocumentModelGlobalState, action: AddModuleAction) => void;
|
|
625
|
+
setModuleNameOperation: (state: DocumentModelGlobalState, action: SetModuleNameAction) => void;
|
|
626
|
+
setModuleDescriptionOperation: (state: DocumentModelGlobalState, action: SetModuleDescriptionAction) => void;
|
|
627
|
+
deleteModuleOperation: (state: DocumentModelGlobalState, action: DeleteModuleAction) => void;
|
|
628
|
+
reorderModulesOperation: (state: DocumentModelGlobalState, action: ReorderModulesAction) => void;
|
|
629
|
+
}
|
|
630
|
+
export type DocumentModelOperationOperations = {
|
|
631
|
+
addOperationOperation: (state: DocumentModelGlobalState, action: AddOperationAction) => void;
|
|
632
|
+
setOperationNameOperation: (state: DocumentModelGlobalState, action: SetOperationNameAction) => void;
|
|
633
|
+
setOperationScopeOperation: (state: DocumentModelGlobalState, action: SetOperationScopeAction) => void;
|
|
634
|
+
setOperationSchemaOperation: (state: DocumentModelGlobalState, action: SetOperationSchemaAction) => void;
|
|
635
|
+
setOperationDescriptionOperation: (state: DocumentModelGlobalState, action: SetOperationDescriptionAction) => void;
|
|
636
|
+
setOperationTemplateOperation: (state: DocumentModelGlobalState, action: SetOperationTemplateAction) => void;
|
|
637
|
+
setOperationReducerOperation: (state: DocumentModelGlobalState, action: SetOperationReducerAction) => void;
|
|
638
|
+
moveOperationOperation: (state: DocumentModelGlobalState, action: MoveOperationAction) => void;
|
|
639
|
+
deleteOperationOperation: (state: DocumentModelGlobalState, action: DeleteOperationAction) => void;
|
|
640
|
+
reorderModuleOperationsOperation: (state: DocumentModelGlobalState, action: ReorderModuleOperationsAction) => void;
|
|
641
|
+
};
|
|
642
|
+
export interface DocumentModelOperationErrorOperations {
|
|
643
|
+
addOperationErrorOperation: (state: DocumentModelGlobalState, action: AddOperationErrorAction) => void;
|
|
644
|
+
setOperationErrorCodeOperation: (state: DocumentModelGlobalState, action: SetOperationErrorCodeAction) => void;
|
|
645
|
+
setOperationErrorNameOperation: (state: DocumentModelGlobalState, action: SetOperationErrorNameAction) => void;
|
|
646
|
+
setOperationErrorDescriptionOperation: (state: DocumentModelGlobalState, action: SetOperationErrorDescriptionAction) => void;
|
|
647
|
+
setOperationErrorTemplateOperation: (state: DocumentModelGlobalState, action: SetOperationErrorTemplateAction) => void;
|
|
648
|
+
deleteOperationErrorOperation: (state: DocumentModelGlobalState, action: DeleteOperationErrorAction) => void;
|
|
649
|
+
reorderOperationErrorsOperation: (state: DocumentModelGlobalState, action: ReorderOperationErrorsAction) => void;
|
|
650
|
+
}
|
|
651
|
+
export interface DocumentModelOperationExampleOperations {
|
|
652
|
+
addOperationExampleOperation: (state: DocumentModelGlobalState, action: AddOperationExampleAction) => void;
|
|
653
|
+
updateOperationExampleOperation: (state: DocumentModelGlobalState, action: UpdateOperationExampleAction) => void;
|
|
654
|
+
deleteOperationExampleOperation: (state: DocumentModelGlobalState, action: DeleteOperationExampleAction) => void;
|
|
655
|
+
reorderOperationExamplesOperation: (state: DocumentModelGlobalState, action: ReorderOperationExamplesAction) => void;
|
|
656
|
+
}
|
|
657
|
+
export interface DocumentModelStateOperations {
|
|
658
|
+
setStateSchemaOperation: (state: DocumentModelGlobalState, action: SetStateSchemaAction) => void;
|
|
659
|
+
setInitialStateOperation: (state: DocumentModelGlobalState, action: SetInitialStateAction) => void;
|
|
660
|
+
addStateExampleOperation: (state: DocumentModelGlobalState, action: AddStateExampleAction) => void;
|
|
661
|
+
updateStateExampleOperation: (state: DocumentModelGlobalState, action: UpdateStateExampleAction) => void;
|
|
662
|
+
deleteStateExampleOperation: (state: DocumentModelGlobalState, action: DeleteStateExampleAction) => void;
|
|
663
|
+
reorderStateExamplesOperation: (state: DocumentModelGlobalState, action: ReorderStateExamplesAction) => void;
|
|
664
|
+
}
|
|
665
|
+
export interface DocumentModelVersioningOperations {
|
|
666
|
+
addChangeLogItemOperation: (state: DocumentModelGlobalState, action: AddChangeLogItemAction) => void;
|
|
667
|
+
updateChangeLogItemOperation: (state: DocumentModelGlobalState, action: UpdateChangeLogItemAction) => void;
|
|
668
|
+
deleteChangeLogItemOperation: (state: DocumentModelGlobalState, action: DeleteChangeLogItemAction) => void;
|
|
669
|
+
reorderChangeLogItemsOperation: (state: DocumentModelGlobalState, action: ReorderChangeLogItemsAction) => void;
|
|
670
|
+
releaseNewVersionOperation: (state: DocumentModelGlobalState, action: ReleaseNewVersionAction) => void;
|
|
671
|
+
}
|
|
4
672
|
//# sourceMappingURL=types.d.ts.map
|