@powerhousedao/vetra 4.1.0-dev.20 → 4.1.0-dev.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/document-models/document-editor/gen/base-operations/actions.d.ts +6 -6
- package/dist/document-models/document-editor/gen/base-operations/actions.d.ts.map +1 -1
- package/dist/document-models/document-editor/gen/base-operations/creators.d.ts +3 -3
- package/dist/document-models/document-editor/gen/base-operations/creators.d.ts.map +1 -1
- package/dist/document-models/document-editor/gen/base-operations/creators.js +1 -1
- package/dist/document-models/document-editor/gen/base-operations/creators.js.map +1 -1
- package/dist/document-models/document-editor/gen/base-operations/object.d.ts +2 -2
- package/dist/document-models/document-editor/gen/base-operations/object.d.ts.map +1 -1
- package/dist/document-models/document-editor/gen/base-operations/object.js +4 -4
- package/dist/document-models/document-editor/gen/base-operations/object.js.map +1 -1
- package/dist/document-models/document-editor/gen/base-operations/operations.d.ts +2 -2
- package/dist/document-models/document-editor/gen/base-operations/operations.d.ts.map +1 -1
- package/dist/document-models/document-editor/gen/document-model.js +14 -14
- package/dist/document-models/document-editor/gen/document-model.js.map +1 -1
- package/dist/document-models/document-editor/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/document-editor/gen/reducer.js +7 -4
- package/dist/document-models/document-editor/gen/reducer.js.map +1 -1
- package/dist/document-models/document-editor/gen/schema/types.d.ts +10 -5
- package/dist/document-models/document-editor/gen/schema/types.d.ts.map +1 -1
- package/dist/document-models/document-editor/gen/schema/zod.d.ts +3 -2
- package/dist/document-models/document-editor/gen/schema/zod.d.ts.map +1 -1
- package/dist/document-models/document-editor/gen/schema/zod.js +7 -6
- package/dist/document-models/document-editor/gen/schema/zod.js.map +1 -1
- package/dist/document-models/document-editor/gen/utils.js +2 -2
- package/dist/document-models/document-editor/gen/utils.js.map +1 -1
- package/dist/document-models/document-editor/index.d.ts +1 -1
- package/dist/document-models/document-editor/index.d.ts.map +1 -1
- package/dist/document-models/document-editor/src/reducers/base-operations.js +3 -3
- package/dist/document-models/document-editor/src/reducers/base-operations.js.map +1 -1
- package/dist/document-models/document-editor/src/tests/base-operations.test.js +4 -12
- package/dist/document-models/document-editor/src/tests/base-operations.test.js.map +1 -1
- package/dist/document-models/processor-module/gen/base-operations/actions.d.ts +6 -2
- package/dist/document-models/processor-module/gen/base-operations/actions.d.ts.map +1 -1
- package/dist/document-models/processor-module/gen/base-operations/creators.d.ts +3 -2
- package/dist/document-models/processor-module/gen/base-operations/creators.d.ts.map +1 -1
- package/dist/document-models/processor-module/gen/base-operations/creators.js +1 -0
- package/dist/document-models/processor-module/gen/base-operations/creators.js.map +1 -1
- package/dist/document-models/processor-module/gen/base-operations/object.d.ts +2 -1
- package/dist/document-models/processor-module/gen/base-operations/object.d.ts.map +1 -1
- package/dist/document-models/processor-module/gen/base-operations/object.js +4 -1
- package/dist/document-models/processor-module/gen/base-operations/object.js.map +1 -1
- package/dist/document-models/processor-module/gen/base-operations/operations.d.ts +2 -1
- package/dist/document-models/processor-module/gen/base-operations/operations.d.ts.map +1 -1
- package/dist/document-models/processor-module/gen/document-model.d.ts.map +1 -1
- package/dist/document-models/processor-module/gen/document-model.js +13 -2
- package/dist/document-models/processor-module/gen/document-model.js.map +1 -1
- package/dist/document-models/processor-module/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/processor-module/gen/reducer.js +4 -0
- package/dist/document-models/processor-module/gen/reducer.js.map +1 -1
- package/dist/document-models/processor-module/gen/schema/types.d.ts +5 -0
- package/dist/document-models/processor-module/gen/schema/types.d.ts.map +1 -1
- package/dist/document-models/processor-module/gen/schema/zod.d.ts +3 -1
- package/dist/document-models/processor-module/gen/schema/zod.d.ts.map +1 -1
- package/dist/document-models/processor-module/gen/schema/zod.js +7 -0
- package/dist/document-models/processor-module/gen/schema/zod.js.map +1 -1
- package/dist/document-models/processor-module/gen/utils.d.ts.map +1 -1
- package/dist/document-models/processor-module/gen/utils.js +1 -0
- package/dist/document-models/processor-module/gen/utils.js.map +1 -1
- package/dist/document-models/processor-module/index.d.ts +1 -0
- package/dist/document-models/processor-module/index.d.ts.map +1 -1
- package/dist/document-models/processor-module/src/reducers/base-operations.d.ts.map +1 -1
- package/dist/document-models/processor-module/src/reducers/base-operations.js +3 -0
- package/dist/document-models/processor-module/src/reducers/base-operations.js.map +1 -1
- package/dist/document-models/subgraph-module/gen/base-operations/actions.d.ts +6 -2
- package/dist/document-models/subgraph-module/gen/base-operations/actions.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/gen/base-operations/creators.d.ts +3 -2
- package/dist/document-models/subgraph-module/gen/base-operations/creators.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/gen/base-operations/creators.js +2 -1
- package/dist/document-models/subgraph-module/gen/base-operations/creators.js.map +1 -1
- package/dist/document-models/subgraph-module/gen/base-operations/object.d.ts +2 -1
- package/dist/document-models/subgraph-module/gen/base-operations/object.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/gen/base-operations/object.js +4 -1
- package/dist/document-models/subgraph-module/gen/base-operations/object.js.map +1 -1
- package/dist/document-models/subgraph-module/gen/base-operations/operations.d.ts +2 -1
- package/dist/document-models/subgraph-module/gen/base-operations/operations.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/gen/document-model.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/gen/document-model.js +13 -2
- package/dist/document-models/subgraph-module/gen/document-model.js.map +1 -1
- package/dist/document-models/subgraph-module/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/gen/reducer.js +4 -0
- package/dist/document-models/subgraph-module/gen/reducer.js.map +1 -1
- package/dist/document-models/subgraph-module/gen/schema/types.d.ts +5 -0
- package/dist/document-models/subgraph-module/gen/schema/types.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/gen/schema/zod.d.ts +3 -1
- package/dist/document-models/subgraph-module/gen/schema/zod.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/gen/schema/zod.js +7 -0
- package/dist/document-models/subgraph-module/gen/schema/zod.js.map +1 -1
- package/dist/document-models/subgraph-module/gen/utils.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/gen/utils.js +1 -0
- package/dist/document-models/subgraph-module/gen/utils.js.map +1 -1
- package/dist/document-models/subgraph-module/index.d.ts +1 -0
- package/dist/document-models/subgraph-module/index.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/src/reducers/base-operations.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/src/reducers/base-operations.js +3 -0
- package/dist/document-models/subgraph-module/src/reducers/base-operations.js.map +1 -1
- package/dist/editors/document-editor/components/DocumentEditorForm.d.ts +3 -3
- package/dist/editors/document-editor/components/DocumentEditorForm.d.ts.map +1 -1
- package/dist/editors/document-editor/components/DocumentEditorForm.js +29 -8
- package/dist/editors/document-editor/components/DocumentEditorForm.js.map +1 -1
- package/dist/editors/document-editor/editor.d.ts.map +1 -1
- package/dist/editors/document-editor/editor.js +4 -11
- package/dist/editors/document-editor/editor.js.map +1 -1
- package/dist/editors/processor-editor/components/ProcessorEditorForm.d.ts +6 -1
- package/dist/editors/processor-editor/components/ProcessorEditorForm.d.ts.map +1 -1
- package/dist/editors/processor-editor/components/ProcessorEditorForm.js +25 -14
- package/dist/editors/processor-editor/components/ProcessorEditorForm.js.map +1 -1
- package/dist/editors/processor-editor/editor.d.ts.map +1 -1
- package/dist/editors/processor-editor/editor.js +17 -6
- package/dist/editors/processor-editor/editor.js.map +1 -1
- package/dist/editors/subgraph-editor/components/SubgraphEditorForm.d.ts +3 -1
- package/dist/editors/subgraph-editor/components/SubgraphEditorForm.d.ts.map +1 -1
- package/dist/editors/subgraph-editor/components/SubgraphEditorForm.js +17 -5
- package/dist/editors/subgraph-editor/components/SubgraphEditorForm.js.map +1 -1
- package/dist/editors/subgraph-editor/editor.d.ts.map +1 -1
- package/dist/editors/subgraph-editor/editor.js +6 -5
- package/dist/editors/subgraph-editor/editor.js.map +1 -1
- package/dist/editors/vetra-drive-app/components/Accordion.d.ts.map +1 -1
- package/dist/editors/vetra-drive-app/components/Accordion.js +6 -1
- package/dist/editors/vetra-drive-app/components/Accordion.js.map +1 -1
- package/dist/package.json +3 -2
- package/dist/processors/codegen/document-handlers/app-handler.d.ts.map +1 -1
- package/dist/processors/codegen/document-handlers/app-handler.js +22 -3
- package/dist/processors/codegen/document-handlers/app-handler.js.map +1 -1
- package/dist/processors/codegen/document-handlers/document-editor-handler.d.ts.map +1 -1
- package/dist/processors/codegen/document-handlers/document-editor-handler.js +32 -5
- package/dist/processors/codegen/document-handlers/document-editor-handler.js.map +1 -1
- package/dist/processors/codegen/document-handlers/document-model-handler.d.ts.map +1 -1
- package/dist/processors/codegen/document-handlers/document-model-handler.js +16 -1
- package/dist/processors/codegen/document-handlers/document-model-handler.js.map +1 -1
- package/dist/processors/codegen/document-handlers/processor-handler.d.ts.map +1 -1
- package/dist/processors/codegen/document-handlers/processor-handler.js +14 -3
- package/dist/processors/codegen/document-handlers/processor-handler.js.map +1 -1
- package/dist/processors/codegen/document-handlers/subgraph-handler.d.ts.map +1 -1
- package/dist/processors/codegen/document-handlers/subgraph-handler.js +28 -3
- package/dist/processors/codegen/document-handlers/subgraph-handler.js.map +1 -1
- package/dist/style.css +3 -3
- package/dist/subgraphs/document-editor/index.d.ts.map +1 -1
- package/dist/subgraphs/document-editor/index.js.map +1 -1
- package/dist/subgraphs/document-editor/resolvers.d.ts.map +1 -1
- package/dist/subgraphs/document-editor/resolvers.js +73 -53
- package/dist/subgraphs/document-editor/resolvers.js.map +1 -1
- package/dist/subgraphs/document-editor/schema.d.ts.map +1 -1
- package/dist/subgraphs/document-editor/schema.js +18 -13
- package/dist/subgraphs/document-editor/schema.js.map +1 -1
- package/dist/subgraphs/processor-module/resolvers.d.ts.map +1 -1
- package/dist/subgraphs/processor-module/resolvers.js +13 -1
- package/dist/subgraphs/processor-module/resolvers.js.map +1 -1
- package/dist/subgraphs/processor-module/schema.d.ts.map +1 -1
- package/dist/subgraphs/processor-module/schema.js +14 -0
- package/dist/subgraphs/processor-module/schema.js.map +1 -1
- package/dist/subgraphs/subgraph-module/resolvers.d.ts.map +1 -1
- package/dist/subgraphs/subgraph-module/resolvers.js +12 -0
- package/dist/subgraphs/subgraph-module/resolvers.js.map +1 -1
- package/dist/subgraphs/subgraph-module/schema.d.ts.map +1 -1
- package/dist/subgraphs/subgraph-module/schema.js +14 -0
- package/dist/subgraphs/subgraph-module/schema.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +15 -14
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { type Action } from "document-model";
|
|
2
|
-
import type { SetEditorNameInput,
|
|
2
|
+
import type { SetEditorNameInput, AddDocumentTypeInput, RemoveDocumentTypeInput, SetEditorStatusInput } from "../types.js";
|
|
3
3
|
export type SetEditorNameAction = Action & {
|
|
4
4
|
type: "SET_EDITOR_NAME";
|
|
5
5
|
input: SetEditorNameInput;
|
|
6
6
|
};
|
|
7
|
-
export type SetEditorIdAction = Action & {
|
|
8
|
-
type: "SET_EDITOR_ID";
|
|
9
|
-
input: SetEditorIdInput;
|
|
10
|
-
};
|
|
11
7
|
export type AddDocumentTypeAction = Action & {
|
|
12
8
|
type: "ADD_DOCUMENT_TYPE";
|
|
13
9
|
input: AddDocumentTypeInput;
|
|
@@ -16,5 +12,9 @@ export type RemoveDocumentTypeAction = Action & {
|
|
|
16
12
|
type: "REMOVE_DOCUMENT_TYPE";
|
|
17
13
|
input: RemoveDocumentTypeInput;
|
|
18
14
|
};
|
|
19
|
-
export type
|
|
15
|
+
export type SetEditorStatusAction = Action & {
|
|
16
|
+
type: "SET_EDITOR_STATUS";
|
|
17
|
+
input: SetEditorStatusInput;
|
|
18
|
+
};
|
|
19
|
+
export type DocumentEditorBaseOperationsAction = SetEditorNameAction | AddDocumentTypeAction | RemoveDocumentTypeAction | SetEditorStatusAction;
|
|
20
20
|
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../document-models/document-editor/gen/base-operations/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EACV,kBAAkB,EAClB,
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../document-models/document-editor/gen/base-operations/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EACV,kBAAkB,EAClB,oBAAoB,EACpB,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG;IACzC,IAAI,EAAE,iBAAiB,CAAC;IACxB,KAAK,EAAE,kBAAkB,CAAC;CAC3B,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG;IAC3C,IAAI,EAAE,mBAAmB,CAAC;IAC1B,KAAK,EAAE,oBAAoB,CAAC;CAC7B,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,MAAM,GAAG;IAC9C,IAAI,EAAE,sBAAsB,CAAC;IAC7B,KAAK,EAAE,uBAAuB,CAAC;CAChC,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG;IAC3C,IAAI,EAAE,mBAAmB,CAAC;IAC1B,KAAK,EAAE,oBAAoB,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAC1C,mBAAmB,GACnB,qBAAqB,GACrB,wBAAwB,GACxB,qBAAqB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type SetEditorNameInput, type
|
|
2
|
-
import { type SetEditorNameAction, type
|
|
1
|
+
import { type SetEditorNameInput, type AddDocumentTypeInput, type RemoveDocumentTypeInput, type SetEditorStatusInput } from "../types.js";
|
|
2
|
+
import { type SetEditorNameAction, type AddDocumentTypeAction, type RemoveDocumentTypeAction, type SetEditorStatusAction } from "./actions.js";
|
|
3
3
|
export declare const setEditorName: (input: SetEditorNameInput) => SetEditorNameAction;
|
|
4
|
-
export declare const setEditorId: (input: SetEditorIdInput) => SetEditorIdAction;
|
|
5
4
|
export declare const addDocumentType: (input: AddDocumentTypeInput) => AddDocumentTypeAction;
|
|
6
5
|
export declare const removeDocumentType: (input: RemoveDocumentTypeInput) => RemoveDocumentTypeAction;
|
|
6
|
+
export declare const setEditorStatus: (input: SetEditorStatusInput) => SetEditorStatusAction;
|
|
7
7
|
//# sourceMappingURL=creators.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creators.d.ts","sourceRoot":"","sources":["../../../../../document-models/document-editor/gen/base-operations/creators.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,
|
|
1
|
+
{"version":3,"file":"creators.d.ts","sourceRoot":"","sources":["../../../../../document-models/document-editor/gen/base-operations/creators.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EAC1B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC3B,MAAM,cAAc,CAAC;AAEtB,eAAO,MAAM,aAAa,GAAI,OAAO,kBAAkB,wBAOpD,CAAC;AAEJ,eAAO,MAAM,eAAe,GAAI,OAAO,oBAAoB,0BAOxD,CAAC;AAEJ,eAAO,MAAM,kBAAkB,GAAI,OAAO,uBAAuB,6BAO9D,CAAC;AAEJ,eAAO,MAAM,eAAe,GAAI,OAAO,oBAAoB,0BAOxD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createAction } from "document-model";
|
|
2
2
|
import { z, } from "../types.js";
|
|
3
3
|
export const setEditorName = (input) => createAction("SET_EDITOR_NAME", { ...input }, undefined, z.SetEditorNameInputSchema, "global");
|
|
4
|
-
export const setEditorId = (input) => createAction("SET_EDITOR_ID", { ...input }, undefined, z.SetEditorIdInputSchema, "global");
|
|
5
4
|
export const addDocumentType = (input) => createAction("ADD_DOCUMENT_TYPE", { ...input }, undefined, z.AddDocumentTypeInputSchema, "global");
|
|
6
5
|
export const removeDocumentType = (input) => createAction("REMOVE_DOCUMENT_TYPE", { ...input }, undefined, z.RemoveDocumentTypeInputSchema, "global");
|
|
6
|
+
export const setEditorStatus = (input) => createAction("SET_EDITOR_STATUS", { ...input }, undefined, z.SetEditorStatusInputSchema, "global");
|
|
7
7
|
//# sourceMappingURL=creators.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creators.js","sourceRoot":"","sources":["../../../../../document-models/document-editor/gen/base-operations/creators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EACL,CAAC,GAKF,MAAM,aAAa,CAAC;AAQrB,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAyB,EAAE,EAAE,CACzD,YAAY,CACV,iBAAiB,EACjB,EAAE,GAAG,KAAK,EAAE,EACZ,SAAS,EACT,CAAC,CAAC,wBAAwB,EAC1B,QAAQ,CACT,CAAC;AAEJ,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"creators.js","sourceRoot":"","sources":["../../../../../document-models/document-editor/gen/base-operations/creators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EACL,CAAC,GAKF,MAAM,aAAa,CAAC;AAQrB,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAyB,EAAE,EAAE,CACzD,YAAY,CACV,iBAAiB,EACjB,EAAE,GAAG,KAAK,EAAE,EACZ,SAAS,EACT,CAAC,CAAC,wBAAwB,EAC1B,QAAQ,CACT,CAAC;AAEJ,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,KAA2B,EAAE,EAAE,CAC7D,YAAY,CACV,mBAAmB,EACnB,EAAE,GAAG,KAAK,EAAE,EACZ,SAAS,EACT,CAAC,CAAC,0BAA0B,EAC5B,QAAQ,CACT,CAAC;AAEJ,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,KAA8B,EAAE,EAAE,CACnE,YAAY,CACV,sBAAsB,EACtB,EAAE,GAAG,KAAK,EAAE,EACZ,SAAS,EACT,CAAC,CAAC,6BAA6B,EAC/B,QAAQ,CACT,CAAC;AAEJ,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,KAA2B,EAAE,EAAE,CAC7D,YAAY,CACV,mBAAmB,EACnB,EAAE,GAAG,KAAK,EAAE,EACZ,SAAS,EACT,CAAC,CAAC,0BAA0B,EAC5B,QAAQ,CACT,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BaseDocumentClass } from "document-model";
|
|
2
|
-
import { type SetEditorNameInput, type
|
|
2
|
+
import { type SetEditorNameInput, type AddDocumentTypeInput, type RemoveDocumentTypeInput, type SetEditorStatusInput, type DocumentEditorState, type DocumentEditorLocalState } from "../types.js";
|
|
3
3
|
import { type DocumentEditorAction } from "../actions.js";
|
|
4
4
|
export default class DocumentEditor_BaseOperations extends BaseDocumentClass<DocumentEditorState, DocumentEditorLocalState, DocumentEditorAction> {
|
|
5
5
|
setEditorName(input: SetEditorNameInput): this;
|
|
6
|
-
setEditorId(input: SetEditorIdInput): this;
|
|
7
6
|
addDocumentType(input: AddDocumentTypeInput): this;
|
|
8
7
|
removeDocumentType(input: RemoveDocumentTypeInput): this;
|
|
8
|
+
setEditorStatus(input: SetEditorStatusInput): this;
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=object.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../../../../document-models/document-editor/gen/base-operations/object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,
|
|
1
|
+
{"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../../../../document-models/document-editor/gen/base-operations/object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC9B,MAAM,aAAa,CAAC;AAOrB,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAE1D,MAAM,CAAC,OAAO,OAAO,6BAA8B,SAAQ,iBAAiB,CAC1E,mBAAmB,EACnB,wBAAwB,EACxB,oBAAoB,CACrB;IACQ,aAAa,CAAC,KAAK,EAAE,kBAAkB;IAIvC,eAAe,CAAC,KAAK,EAAE,oBAAoB;IAI3C,kBAAkB,CAAC,KAAK,EAAE,uBAAuB;IAIjD,eAAe,CAAC,KAAK,EAAE,oBAAoB;CAGnD"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { BaseDocumentClass } from "document-model";
|
|
2
|
-
import { setEditorName,
|
|
2
|
+
import { setEditorName, addDocumentType, removeDocumentType, setEditorStatus, } from "./creators.js";
|
|
3
3
|
export default class DocumentEditor_BaseOperations extends BaseDocumentClass {
|
|
4
4
|
setEditorName(input) {
|
|
5
5
|
return this.dispatch(setEditorName(input));
|
|
6
6
|
}
|
|
7
|
-
setEditorId(input) {
|
|
8
|
-
return this.dispatch(setEditorId(input));
|
|
9
|
-
}
|
|
10
7
|
addDocumentType(input) {
|
|
11
8
|
return this.dispatch(addDocumentType(input));
|
|
12
9
|
}
|
|
13
10
|
removeDocumentType(input) {
|
|
14
11
|
return this.dispatch(removeDocumentType(input));
|
|
15
12
|
}
|
|
13
|
+
setEditorStatus(input) {
|
|
14
|
+
return this.dispatch(setEditorStatus(input));
|
|
15
|
+
}
|
|
16
16
|
}
|
|
17
17
|
//# sourceMappingURL=object.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object.js","sourceRoot":"","sources":["../../../../../document-models/document-editor/gen/base-operations/object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AASnD,OAAO,EACL,aAAa,EACb,
|
|
1
|
+
{"version":3,"file":"object.js","sourceRoot":"","sources":["../../../../../document-models/document-editor/gen/base-operations/object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AASnD,OAAO,EACL,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,eAAe,GAChB,MAAM,eAAe,CAAC;AAGvB,MAAM,CAAC,OAAO,OAAO,6BAA8B,SAAQ,iBAI1D;IACQ,aAAa,CAAC,KAAyB;QAC5C,OAAO,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;IAC7C,CAAC;IAEM,eAAe,CAAC,KAA2B;QAChD,OAAO,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC;IAC/C,CAAC;IAEM,kBAAkB,CAAC,KAA8B;QACtD,OAAO,IAAI,CAAC,QAAQ,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC;IAClD,CAAC;IAEM,eAAe,CAAC,KAA2B;QAChD,OAAO,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC;IAC/C,CAAC;CACF"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type SignalDispatch } from "document-model";
|
|
2
|
-
import { type SetEditorNameAction, type
|
|
2
|
+
import { type SetEditorNameAction, type AddDocumentTypeAction, type RemoveDocumentTypeAction, type SetEditorStatusAction } from "./actions.js";
|
|
3
3
|
import { type DocumentEditorState } from "../types.js";
|
|
4
4
|
export interface DocumentEditorBaseOperationsOperations {
|
|
5
5
|
setEditorNameOperation: (state: DocumentEditorState, action: SetEditorNameAction, dispatch?: SignalDispatch) => void;
|
|
6
|
-
setEditorIdOperation: (state: DocumentEditorState, action: SetEditorIdAction, dispatch?: SignalDispatch) => void;
|
|
7
6
|
addDocumentTypeOperation: (state: DocumentEditorState, action: AddDocumentTypeAction, dispatch?: SignalDispatch) => void;
|
|
8
7
|
removeDocumentTypeOperation: (state: DocumentEditorState, action: RemoveDocumentTypeAction, dispatch?: SignalDispatch) => void;
|
|
8
|
+
setEditorStatusOperation: (state: DocumentEditorState, action: SetEditorStatusAction, dispatch?: SignalDispatch) => void;
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../document-models/document-editor/gen/base-operations/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../document-models/document-editor/gen/base-operations/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC3B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,WAAW,sCAAsC;IACrD,sBAAsB,EAAE,CACtB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,mBAAmB,EAC3B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,wBAAwB,EAAE,CACxB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,qBAAqB,EAC7B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,2BAA2B,EAAE,CAC3B,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,wBAAwB,EAChC,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,wBAAwB,EAAE,CACxB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,qBAAqB,EAC7B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;CACX"}
|
|
@@ -2,7 +2,7 @@ export const documentModel = {
|
|
|
2
2
|
id: "powerhouse/document-editor",
|
|
3
3
|
name: "Document Editor",
|
|
4
4
|
extension: ".phdm",
|
|
5
|
-
description: "
|
|
5
|
+
description: "",
|
|
6
6
|
author: {
|
|
7
7
|
name: "Powerhouse",
|
|
8
8
|
website: "https://powerhouse.inc",
|
|
@@ -13,8 +13,8 @@ export const documentModel = {
|
|
|
13
13
|
changeLog: [],
|
|
14
14
|
state: {
|
|
15
15
|
global: {
|
|
16
|
-
schema: "type DocumentEditorState {\n name: String
|
|
17
|
-
initialValue: '"{\\n \\"name\\":
|
|
16
|
+
schema: "type DocumentEditorState {\n name: String!\n documentTypes: [DocumentTypeItem!]!\n status: StatusType!\n}\n\ntype DocumentTypeItem {\n id: OID!\n documentType: String!\n}\n\nenum StatusType {\n DRAFT\n CONFIRMED\n}",
|
|
17
|
+
initialValue: '"{\\n \\"name\\": \\"\\",\\n \\"documentTypes\\": [],\\n \\"status\\": \\"DRAFT\\"\\n}"',
|
|
18
18
|
examples: [],
|
|
19
19
|
},
|
|
20
20
|
local: {
|
|
@@ -25,12 +25,12 @@ export const documentModel = {
|
|
|
25
25
|
},
|
|
26
26
|
modules: [
|
|
27
27
|
{
|
|
28
|
-
id: "
|
|
28
|
+
id: "73f6d103-47cb-4074-a736-a3eaf5d079bf",
|
|
29
29
|
name: "base_operations",
|
|
30
30
|
description: "",
|
|
31
31
|
operations: [
|
|
32
32
|
{
|
|
33
|
-
id: "
|
|
33
|
+
id: "50a16f00-d25a-4c97-9632-4ce3b951a402",
|
|
34
34
|
name: "SET_EDITOR_NAME",
|
|
35
35
|
description: "",
|
|
36
36
|
schema: "input SetEditorNameInput {\n name: String!\n}",
|
|
@@ -41,10 +41,10 @@ export const documentModel = {
|
|
|
41
41
|
scope: "global",
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
|
-
id: "
|
|
45
|
-
name: "
|
|
44
|
+
id: "acee4272-f29e-4a19-aaf9-bae2cb6652ab",
|
|
45
|
+
name: "ADD_DOCUMENT_TYPE",
|
|
46
46
|
description: "",
|
|
47
|
-
schema: "input
|
|
47
|
+
schema: "input AddDocumentTypeInput {\n id: OID!\n documentType: String!\n}",
|
|
48
48
|
template: "",
|
|
49
49
|
reducer: "",
|
|
50
50
|
errors: [],
|
|
@@ -52,10 +52,10 @@ export const documentModel = {
|
|
|
52
52
|
scope: "global",
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
|
-
id: "
|
|
56
|
-
name: "
|
|
55
|
+
id: "6c549776-0fc3-4632-a6c7-8721fa6ee41c",
|
|
56
|
+
name: "REMOVE_DOCUMENT_TYPE",
|
|
57
57
|
description: "",
|
|
58
|
-
schema: "input
|
|
58
|
+
schema: "input RemoveDocumentTypeInput {\n id: OID!\n}",
|
|
59
59
|
template: "",
|
|
60
60
|
reducer: "",
|
|
61
61
|
errors: [],
|
|
@@ -63,10 +63,10 @@ export const documentModel = {
|
|
|
63
63
|
scope: "global",
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
|
-
id: "
|
|
67
|
-
name: "
|
|
66
|
+
id: "e9aa7f08-553b-452f-a494-126ace6b15f7",
|
|
67
|
+
name: "SET_EDITOR_STATUS",
|
|
68
68
|
description: "",
|
|
69
|
-
schema: "input
|
|
69
|
+
schema: "input SetEditorStatusInput {\n status: StatusType!\n}",
|
|
70
70
|
template: "",
|
|
71
71
|
reducer: "",
|
|
72
72
|
errors: [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-model.js","sourceRoot":"","sources":["../../../../document-models/document-editor/gen/document-model.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAAuB;IAC/C,EAAE,EAAE,4BAA4B;IAChC,IAAI,EAAE,iBAAiB;IACvB,SAAS,EAAE,OAAO;IAClB,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"document-model.js","sourceRoot":"","sources":["../../../../document-models/document-editor/gen/document-model.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAAuB;IAC/C,EAAE,EAAE,4BAA4B;IAChC,IAAI,EAAE,iBAAiB;IACvB,SAAS,EAAE,OAAO;IAClB,WAAW,EAAE,EAAE;IACf,MAAM,EAAE;QACN,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,wBAAwB;KAClC;IACD,cAAc,EAAE;QACd;YACE,OAAO,EAAE,CAAC;YACV,SAAS,EAAE,EAAE;YACb,KAAK,EAAE;gBACL,MAAM,EAAE;oBACN,MAAM,EACJ,+NAA+N;oBACjO,YAAY,EACV,4FAA4F;oBAC9F,QAAQ,EAAE,EAAE;iBACb;gBACD,KAAK,EAAE;oBACL,MAAM,EAAE,EAAE;oBACV,YAAY,EAAE,IAAI;oBAClB,QAAQ,EAAE,EAAE;iBACb;aACF;YACD,OAAO,EAAE;gBACP;oBACE,EAAE,EAAE,sCAAsC;oBAC1C,IAAI,EAAE,iBAAiB;oBACvB,WAAW,EAAE,EAAE;oBACf,UAAU,EAAE;wBACV;4BACE,EAAE,EAAE,sCAAsC;4BAC1C,IAAI,EAAE,iBAAiB;4BACvB,WAAW,EAAE,EAAE;4BACf,MAAM,EAAE,gDAAgD;4BACxD,QAAQ,EAAE,EAAE;4BACZ,OAAO,EAAE,EAAE;4BACX,MAAM,EAAE,EAAE;4BACV,QAAQ,EAAE,EAAE;4BACZ,KAAK,EAAE,QAAQ;yBAChB;wBACD;4BACE,EAAE,EAAE,sCAAsC;4BAC1C,IAAI,EAAE,mBAAmB;4BACzB,WAAW,EAAE,EAAE;4BACf,MAAM,EACJ,sEAAsE;4BACxE,QAAQ,EAAE,EAAE;4BACZ,OAAO,EAAE,EAAE;4BACX,MAAM,EAAE,EAAE;4BACV,QAAQ,EAAE,EAAE;4BACZ,KAAK,EAAE,QAAQ;yBAChB;wBACD;4BACE,EAAE,EAAE,sCAAsC;4BAC1C,IAAI,EAAE,sBAAsB;4BAC5B,WAAW,EAAE,EAAE;4BACf,MAAM,EAAE,gDAAgD;4BACxD,QAAQ,EAAE,EAAE;4BACZ,OAAO,EAAE,EAAE;4BACX,MAAM,EAAE,EAAE;4BACV,QAAQ,EAAE,EAAE;4BACZ,KAAK,EAAE,QAAQ;yBAChB;wBACD;4BACE,EAAE,EAAE,sCAAsC;4BAC1C,IAAI,EAAE,mBAAmB;4BACzB,WAAW,EAAE,EAAE;4BACf,MAAM,EAAE,wDAAwD;4BAChE,QAAQ,EAAE,EAAE;4BACZ,OAAO,EAAE,EAAE;4BACX,MAAM,EAAE,EAAE;4BACV,QAAQ,EAAE,EAAE;4BACZ,KAAK,EAAE,QAAQ;yBAChB;qBACF;iBACF;aACF;SACF;KACF;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../document-models/document-editor/gen/reducer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../document-models/document-editor/gen/reducer.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,sBAAsB,EAAK,MAAM,YAAY,CAAC;AAuD5D,eAAO,MAAM,OAAO,0DAAsD,CAAC"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// TODO: remove eslint-disable rules once refactor is done
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
|
1
4
|
import { isDocumentAction, createReducer, } from "document-model";
|
|
2
5
|
import { z } from "./types.js";
|
|
3
6
|
import { reducer as BaseOperationsReducer } from "../src/reducers/base-operations.js";
|
|
@@ -10,10 +13,6 @@ const stateReducer = (state, action, dispatch) => {
|
|
|
10
13
|
z.SetEditorNameInputSchema().parse(action.input);
|
|
11
14
|
BaseOperationsReducer.setEditorNameOperation(state[action.scope], action, dispatch);
|
|
12
15
|
break;
|
|
13
|
-
case "SET_EDITOR_ID":
|
|
14
|
-
z.SetEditorIdInputSchema().parse(action.input);
|
|
15
|
-
BaseOperationsReducer.setEditorIdOperation(state[action.scope], action, dispatch);
|
|
16
|
-
break;
|
|
17
16
|
case "ADD_DOCUMENT_TYPE":
|
|
18
17
|
z.AddDocumentTypeInputSchema().parse(action.input);
|
|
19
18
|
BaseOperationsReducer.addDocumentTypeOperation(state[action.scope], action, dispatch);
|
|
@@ -22,6 +21,10 @@ const stateReducer = (state, action, dispatch) => {
|
|
|
22
21
|
z.RemoveDocumentTypeInputSchema().parse(action.input);
|
|
23
22
|
BaseOperationsReducer.removeDocumentTypeOperation(state[action.scope], action, dispatch);
|
|
24
23
|
break;
|
|
24
|
+
case "SET_EDITOR_STATUS":
|
|
25
|
+
z.SetEditorStatusInputSchema().parse(action.input);
|
|
26
|
+
BaseOperationsReducer.setEditorStatusOperation(state[action.scope], action, dispatch);
|
|
27
|
+
break;
|
|
25
28
|
default:
|
|
26
29
|
return state;
|
|
27
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reducer.js","sourceRoot":"","sources":["../../../../document-models/document-editor/gen/reducer.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,EAChB,aAAa,GACd,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAA+B,CAAC,EAAE,MAAM,YAAY,CAAC;AAE5D,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAEtF,MAAM,YAAY,GAAyC,CACzD,KAAK,EACL,MAAM,EACN,QAAQ,EACR,EAAE;IACF,IAAI,gBAAgB,CAAC,MAAM,CAAC,EAAE,CAAC;QAC7B,OAAO,KAAK,CAAC;IACf,CAAC;IAED,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,KAAK,iBAAiB;YACpB,CAAC,CAAC,wBAAwB,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACjD,qBAAqB,CAAC,sBAAsB,CACzC,KAAa,CAAC,MAAM,CAAC,KAAK,CAAC,EAC5B,MAAa,EACb,QAAQ,CACT,CAAC;YACF,MAAM;QAER,KAAK,
|
|
1
|
+
{"version":3,"file":"reducer.js","sourceRoot":"","sources":["../../../../document-models/document-editor/gen/reducer.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,+DAA+D;AAC/D,0DAA0D;AAC1D,OAAO,EAEL,gBAAgB,EAChB,aAAa,GACd,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAA+B,CAAC,EAAE,MAAM,YAAY,CAAC;AAE5D,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAEtF,MAAM,YAAY,GAAyC,CACzD,KAAK,EACL,MAAM,EACN,QAAQ,EACR,EAAE;IACF,IAAI,gBAAgB,CAAC,MAAM,CAAC,EAAE,CAAC;QAC7B,OAAO,KAAK,CAAC;IACf,CAAC;IAED,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,KAAK,iBAAiB;YACpB,CAAC,CAAC,wBAAwB,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACjD,qBAAqB,CAAC,sBAAsB,CACzC,KAAa,CAAC,MAAM,CAAC,KAAK,CAAC,EAC5B,MAAa,EACb,QAAQ,CACT,CAAC;YACF,MAAM;QAER,KAAK,mBAAmB;YACtB,CAAC,CAAC,0BAA0B,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACnD,qBAAqB,CAAC,wBAAwB,CAC3C,KAAa,CAAC,MAAM,CAAC,KAAK,CAAC,EAC5B,MAAa,EACb,QAAQ,CACT,CAAC;YACF,MAAM;QAER,KAAK,sBAAsB;YACzB,CAAC,CAAC,6BAA6B,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACtD,qBAAqB,CAAC,2BAA2B,CAC9C,KAAa,CAAC,MAAM,CAAC,KAAK,CAAC,EAC5B,MAAa,EACb,QAAQ,CACT,CAAC;YACF,MAAM;QAER,KAAK,mBAAmB;YACtB,CAAC,CAAC,0BAA0B,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACnD,qBAAqB,CAAC,wBAAwB,CAC3C,KAAa,CAAC,MAAM,CAAC,KAAK,CAAC,EAC5B,MAAa,EACb,QAAQ,CACT,CAAC;YACF,MAAM;QAER;YACE,OAAO,KAAK,CAAC;IACjB,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAyB,YAAY,CAAC,CAAC"}
|
|
@@ -129,6 +129,10 @@ export type Scalars = {
|
|
|
129
129
|
input: string;
|
|
130
130
|
output: string;
|
|
131
131
|
};
|
|
132
|
+
Upload: {
|
|
133
|
+
input: File;
|
|
134
|
+
output: File;
|
|
135
|
+
};
|
|
132
136
|
};
|
|
133
137
|
export type AddDocumentTypeInput = {
|
|
134
138
|
documentType: Scalars["String"]["input"];
|
|
@@ -136,8 +140,8 @@ export type AddDocumentTypeInput = {
|
|
|
136
140
|
};
|
|
137
141
|
export type DocumentEditorState = {
|
|
138
142
|
documentTypes: Array<DocumentTypeItem>;
|
|
139
|
-
|
|
140
|
-
|
|
143
|
+
name: Scalars["String"]["output"];
|
|
144
|
+
status: StatusType | `${StatusType}`;
|
|
141
145
|
};
|
|
142
146
|
export type DocumentTypeItem = {
|
|
143
147
|
documentType: Scalars["String"]["output"];
|
|
@@ -146,10 +150,11 @@ export type DocumentTypeItem = {
|
|
|
146
150
|
export type RemoveDocumentTypeInput = {
|
|
147
151
|
id: Scalars["OID"]["input"];
|
|
148
152
|
};
|
|
149
|
-
export type SetEditorIdInput = {
|
|
150
|
-
id: Scalars["OID"]["input"];
|
|
151
|
-
};
|
|
152
153
|
export type SetEditorNameInput = {
|
|
153
154
|
name: Scalars["String"]["input"];
|
|
154
155
|
};
|
|
156
|
+
export type SetEditorStatusInput = {
|
|
157
|
+
status: StatusType | `${StatusType}`;
|
|
158
|
+
};
|
|
159
|
+
export type StatusType = "CONFIRMED" | "DRAFT";
|
|
155
160
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../document-models/document-editor/gen/schema/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AAChC,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;AACjD,MAAM,MAAM,KAAK,CAAC,CAAC,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,IAAI;KACvD,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrB,CAAC;AACF,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;KAC3D,MAAM,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;CACjC,CAAC;AACF,MAAM,MAAM,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;KACxD,MAAM,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,MAAM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ClC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,UAAU,GAAG,GAAG,UAAU,EAAE,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import type { AddDocumentTypeInput, DocumentEditorState, DocumentTypeItem, RemoveDocumentTypeInput,
|
|
2
|
+
import type { AddDocumentTypeInput, DocumentEditorState, DocumentTypeItem, RemoveDocumentTypeInput, SetEditorNameInput, SetEditorStatusInput } from "./types.js";
|
|
3
3
|
type Properties<T> = Required<{
|
|
4
4
|
[K in keyof T]: z.ZodType<T[K], any, T[K]>;
|
|
5
5
|
}>;
|
|
6
6
|
type definedNonNullAny = {};
|
|
7
7
|
export declare const isDefinedNonNullAny: (v: any) => v is definedNonNullAny;
|
|
8
8
|
export declare const definedNonNullAnySchema: z.ZodEffects<z.ZodAny, definedNonNullAny, any>;
|
|
9
|
+
export declare const StatusTypeSchema: z.ZodEnum<["CONFIRMED", "DRAFT"]>;
|
|
9
10
|
export declare function AddDocumentTypeInputSchema(): z.ZodObject<Properties<AddDocumentTypeInput>>;
|
|
10
11
|
export declare function DocumentEditorStateSchema(): z.ZodObject<Properties<DocumentEditorState>>;
|
|
11
12
|
export declare function DocumentTypeItemSchema(): z.ZodObject<Properties<DocumentTypeItem>>;
|
|
12
13
|
export declare function RemoveDocumentTypeInputSchema(): z.ZodObject<Properties<RemoveDocumentTypeInput>>;
|
|
13
|
-
export declare function SetEditorIdInputSchema(): z.ZodObject<Properties<SetEditorIdInput>>;
|
|
14
14
|
export declare function SetEditorNameInputSchema(): z.ZodObject<Properties<SetEditorNameInput>>;
|
|
15
|
+
export declare function SetEditorStatusInputSchema(): z.ZodObject<Properties<SetEditorStatusInput>>;
|
|
15
16
|
export {};
|
|
16
17
|
//# sourceMappingURL=zod.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zod.d.ts","sourceRoot":"","sources":["../../../../../document-models/document-editor/gen/schema/zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EACV,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,uBAAuB,EACvB,
|
|
1
|
+
{"version":3,"file":"zod.d.ts","sourceRoot":"","sources":["../../../../../document-models/document-editor/gen/schema/zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EACV,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,EAErB,MAAM,YAAY,CAAC;AAEpB,KAAK,UAAU,CAAC,CAAC,IAAI,QAAQ,CAAC;KAC3B,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;CAC3C,CAAC,CAAC;AAEH,KAAK,iBAAiB,GAAG,EAAE,CAAC;AAE5B,eAAO,MAAM,mBAAmB,GAAI,GAAG,GAAG,KAAG,CAAC,IAAI,iBACnB,CAAC;AAEhC,eAAO,MAAM,uBAAuB,gDAEI,CAAC;AAEzC,eAAO,MAAM,gBAAgB,mCAAiC,CAAC;AAE/D,wBAAgB,0BAA0B,IAAI,CAAC,CAAC,SAAS,CACvD,UAAU,CAAC,oBAAoB,CAAC,CACjC,CAKA;AAED,wBAAgB,yBAAyB,IAAI,CAAC,CAAC,SAAS,CACtD,UAAU,CAAC,mBAAmB,CAAC,CAChC,CAOA;AAED,wBAAgB,sBAAsB,IAAI,CAAC,CAAC,SAAS,CACnD,UAAU,CAAC,gBAAgB,CAAC,CAC7B,CAMA;AAED,wBAAgB,6BAA6B,IAAI,CAAC,CAAC,SAAS,CAC1D,UAAU,CAAC,uBAAuB,CAAC,CACpC,CAIA;AAED,wBAAgB,wBAAwB,IAAI,CAAC,CAAC,SAAS,CACrD,UAAU,CAAC,kBAAkB,CAAC,CAC/B,CAIA;AAED,wBAAgB,0BAA0B,IAAI,CAAC,CAAC,SAAS,CACvD,UAAU,CAAC,oBAAoB,CAAC,CACjC,CAIA"}
|
|
@@ -3,6 +3,7 @@ export const isDefinedNonNullAny = (v) => v !== undefined && v !== null;
|
|
|
3
3
|
export const definedNonNullAnySchema = z
|
|
4
4
|
.any()
|
|
5
5
|
.refine((v) => isDefinedNonNullAny(v));
|
|
6
|
+
export const StatusTypeSchema = z.enum(["CONFIRMED", "DRAFT"]);
|
|
6
7
|
export function AddDocumentTypeInputSchema() {
|
|
7
8
|
return z.object({
|
|
8
9
|
documentType: z.string(),
|
|
@@ -13,8 +14,8 @@ export function DocumentEditorStateSchema() {
|
|
|
13
14
|
return z.object({
|
|
14
15
|
__typename: z.literal("DocumentEditorState").optional(),
|
|
15
16
|
documentTypes: z.array(DocumentTypeItemSchema()),
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
name: z.string(),
|
|
18
|
+
status: StatusTypeSchema,
|
|
18
19
|
});
|
|
19
20
|
}
|
|
20
21
|
export function DocumentTypeItemSchema() {
|
|
@@ -29,14 +30,14 @@ export function RemoveDocumentTypeInputSchema() {
|
|
|
29
30
|
id: z.string(),
|
|
30
31
|
});
|
|
31
32
|
}
|
|
32
|
-
export function
|
|
33
|
+
export function SetEditorNameInputSchema() {
|
|
33
34
|
return z.object({
|
|
34
|
-
|
|
35
|
+
name: z.string(),
|
|
35
36
|
});
|
|
36
37
|
}
|
|
37
|
-
export function
|
|
38
|
+
export function SetEditorStatusInputSchema() {
|
|
38
39
|
return z.object({
|
|
39
|
-
|
|
40
|
+
status: StatusTypeSchema,
|
|
40
41
|
});
|
|
41
42
|
}
|
|
42
43
|
//# sourceMappingURL=zod.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zod.js","sourceRoot":"","sources":["../../../../../document-models/document-editor/gen/schema/zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"zod.js","sourceRoot":"","sources":["../../../../../document-models/document-editor/gen/schema/zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiBxB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAM,EAA0B,EAAE,CACpE,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,IAAI,CAAC;AAEhC,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC;KACrC,GAAG,EAAE;KACL,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC;AAEzC,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;AAE/D,MAAM,UAAU,0BAA0B;IAGxC,OAAO,CAAC,CAAC,MAAM,CAAC;QACd,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;QACxB,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;KACf,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,yBAAyB;IAGvC,OAAO,CAAC,CAAC,MAAM,CAAC;QACd,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC,QAAQ,EAAE;QACvD,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,sBAAsB,EAAE,CAAC;QAChD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,MAAM,EAAE,gBAAgB;KACzB,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,sBAAsB;IAGpC,OAAO,CAAC,CAAC,MAAM,CAAC;QACd,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,QAAQ,EAAE;QACpD,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;QACxB,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;KACf,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,6BAA6B;IAG3C,OAAO,CAAC,CAAC,MAAM,CAAC;QACd,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;KACf,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,wBAAwB;IAGtC,OAAO,CAAC,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;KACjB,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,0BAA0B;IAGxC,OAAO,CAAC,CAAC,MAAM,CAAC;QACd,MAAM,EAAE,gBAAgB;KACzB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { baseCreateDocument, baseCreateExtendedState, baseSaveToFile, baseSaveToFileHandle, baseLoadFromFile, baseLoadFromInput, generateId, } from "document-model";
|
|
2
2
|
import { reducer } from "./reducer.js";
|
|
3
3
|
export const initialGlobalState = {
|
|
4
|
-
name:
|
|
5
|
-
id: null,
|
|
4
|
+
name: "",
|
|
6
5
|
documentTypes: [],
|
|
6
|
+
status: "DRAFT",
|
|
7
7
|
};
|
|
8
8
|
export const initialLocalState = {};
|
|
9
9
|
const utils = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../document-models/document-editor/gen/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,kBAAkB,EAClB,uBAAuB,EACvB,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EAChB,iBAAiB,EACjB,UAAU,GACX,MAAM,gBAAgB,CAAC;AAMxB,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,MAAM,CAAC,MAAM,kBAAkB,GAAwB;IACrD,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"utils.js","source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IACvD,CAAC;IACD,gBAAgB,CAAC,QAAQ,EAAE,KAAK;QAC9B,OAAO,oBAAoB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC/C,CAAC;IACD,YAAY,CAAC,IAAI;QACf,OAAO,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACzC,CAAC;IACD,aAAa,CAAC,KAAK;QACjB,OAAO,iBAAiB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC3C,CAAC;CACF,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -18,9 +18,9 @@ declare const utils: {
|
|
|
18
18
|
};
|
|
19
19
|
declare const actions: {
|
|
20
20
|
setEditorName: (input: import("./gen/index.js").SetEditorNameInput) => import("./gen/index.js").SetEditorNameAction;
|
|
21
|
-
setEditorId: (input: import("./gen/index.js").SetEditorIdInput) => import("./gen/index.js").SetEditorIdAction;
|
|
22
21
|
addDocumentType: (input: import("./gen/index.js").AddDocumentTypeInput) => import("./gen/index.js").AddDocumentTypeAction;
|
|
23
22
|
removeDocumentType: (input: import("./gen/index.js").RemoveDocumentTypeInput) => import("./gen/index.js").RemoveDocumentTypeAction;
|
|
23
|
+
setEditorStatus: (input: import("./gen/index.js").SetEditorStatusInput) => import("./gen/index.js").SetEditorStatusAction;
|
|
24
24
|
};
|
|
25
25
|
export declare const module: DocumentModelModule<DocumentEditorDocument>;
|
|
26
26
|
export { reducer, actions, utils, documentModel };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../document-models/document-editor/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAGxD,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAE7D,QAAA,MAAM,KAAK;;;;;;;;;CAAkC,CAAC;AAC9C,QAAA,MAAM,OAAO;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../document-models/document-editor/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAGxD,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAE7D,QAAA,MAAM,KAAK;;;;;;;;;CAAkC,CAAC;AAC9C,QAAA,MAAM,OAAO;oBAN0C,kDAChC;sBAKd,oDAA2B;yBASO,uDAEtB;sBAEqI,oDAA2B;CAbzH,CAAC;AAE7D,eAAO,MAAM,MAAM,EAAE,mBAAmB,CAAC,sBAAsB,CAK9D,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC;AAElD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
|
|
@@ -2,14 +2,14 @@ export const reducer = {
|
|
|
2
2
|
setEditorNameOperation(state, action, dispatch) {
|
|
3
3
|
state.name = action.input.name;
|
|
4
4
|
},
|
|
5
|
-
setEditorIdOperation(state, action, dispatch) {
|
|
6
|
-
state.id = action.input.id;
|
|
7
|
-
},
|
|
8
5
|
addDocumentTypeOperation(state, action, dispatch) {
|
|
9
6
|
state.documentTypes.push({ id: action.input.id, documentType: action.input.documentType });
|
|
10
7
|
},
|
|
11
8
|
removeDocumentTypeOperation(state, action, dispatch) {
|
|
12
9
|
state.documentTypes = state.documentTypes.filter((documentType) => documentType.id !== action.input.id);
|
|
10
|
+
},
|
|
11
|
+
setEditorStatusOperation(state, action, dispatch) {
|
|
12
|
+
state.status = action.input.status;
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
//# sourceMappingURL=base-operations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-operations.js","sourceRoot":"","sources":["../../../../../document-models/document-editor/src/reducers/base-operations.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,OAAO,GAA2C;IAC7D,sBAAsB,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ;QAC5C,KAAK,CAAC,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC;IACjC,CAAC;IACD,
|
|
1
|
+
{"version":3,"file":"base-operations.js","sourceRoot":"","sources":["../../../../../document-models/document-editor/src/reducers/base-operations.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,OAAO,GAA2C;IAC7D,sBAAsB,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ;QAC5C,KAAK,CAAC,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC;IACjC,CAAC;IACD,wBAAwB,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ;QAC9C,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,YAAY,EAAE,MAAM,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC,CAAC;IAC7F,CAAC;IACD,2BAA2B,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ;QACjD,KAAK,CAAC,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC,MAAM,CAC9C,CAAC,YAAY,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,KAAK,MAAM,CAAC,KAAK,CAAC,EAAE,CACtD,CAAC;IACJ,CAAC;IACD,wBAAwB,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ;QAC9C,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;IACrC,CAAC;CACF,CAAC"}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* This is a scaffold file meant for customization:
|
|
3
3
|
* - change it by adding new tests or modifying the existing ones
|
|
4
4
|
*/
|
|
5
|
-
import { describe, it, expect, beforeEach } from "vitest";
|
|
6
5
|
import { generateMock } from "@powerhousedao/codegen";
|
|
7
|
-
import
|
|
8
|
-
import { z, } from "../../gen/schema/index.js";
|
|
9
|
-
import { reducer } from "../../gen/reducer.js";
|
|
6
|
+
import { beforeEach, describe, expect, it } from "vitest";
|
|
10
7
|
import * as creators from "../../gen/base-operations/creators.js";
|
|
8
|
+
import { reducer } from "../../gen/reducer.js";
|
|
9
|
+
import { z } from "../../gen/schema/index.js";
|
|
10
|
+
import utils from "../../gen/utils.js";
|
|
11
11
|
describe("BaseOperations Operations", () => {
|
|
12
12
|
let document;
|
|
13
13
|
beforeEach(() => {
|
|
@@ -21,14 +21,6 @@ describe("BaseOperations Operations", () => {
|
|
|
21
21
|
expect(updatedDocument.operations.global[0].action.input).toStrictEqual(input);
|
|
22
22
|
expect(updatedDocument.operations.global[0].index).toEqual(0);
|
|
23
23
|
});
|
|
24
|
-
it("should handle setEditorId operation", () => {
|
|
25
|
-
const input = generateMock(z.SetEditorIdInputSchema());
|
|
26
|
-
const updatedDocument = reducer(document, creators.setEditorId(input));
|
|
27
|
-
expect(updatedDocument.operations.global).toHaveLength(1);
|
|
28
|
-
expect(updatedDocument.operations.global[0].action.type).toBe("SET_EDITOR_ID");
|
|
29
|
-
expect(updatedDocument.operations.global[0].action.input).toStrictEqual(input);
|
|
30
|
-
expect(updatedDocument.operations.global[0].index).toEqual(0);
|
|
31
|
-
});
|
|
32
24
|
it("should handle addDocumentType operation", () => {
|
|
33
25
|
const input = generateMock(z.AddDocumentTypeInputSchema());
|
|
34
26
|
const updatedDocument = reducer(document, creators.addDocumentType(input));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-operations.test.js","sourceRoot":"","sources":["../../../../../document-models/document-editor/src/tests/base-operations.test.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"base-operations.test.js","sourceRoot":"","sources":["../../../../../document-models/document-editor/src/tests/base-operations.test.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC1D,OAAO,KAAK,QAAQ,MAAM,uCAAuC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EACL,CAAC,EAIF,MAAM,2BAA2B,CAAC;AAEnC,OAAO,KAAK,MAAM,oBAAoB,CAAC;AAEvC,QAAQ,CAAC,2BAA2B,EAAE,GAAG,EAAE;IACzC,IAAI,QAAgC,CAAC;IAErC,UAAU,CAAC,GAAG,EAAE;QACd,QAAQ,GAAG,KAAK,CAAC,cAAc,EAAE,CAAC;IACpC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,uCAAuC,EAAE,GAAG,EAAE;QAC/C,MAAM,KAAK,GAAuB,YAAY,CAC5C,CAAC,CAAC,wBAAwB,EAAE,CAC7B,CAAC;QAEF,MAAM,eAAe,GAAG,OAAO,CAAC,QAAQ,EAAE,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;QAEzE,MAAM,CAAC,eAAe,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;QAC1D,MAAM,CAAC,eAAe,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QACjF,MAAM,CAAC,eAAe,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC/E,MAA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CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAC3D,sBAAsB,CACvB,CAAC;QACF,MAAM,CAAC,eAAe,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAC/E,MAAM,CAAC,eAAe,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAChE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Action } from "document-model";
|
|
2
|
-
import type { SetProcessorNameInput, SetProcessorTypeInput, AddDocumentTypeInput, RemoveDocumentTypeInput } from "../types.js";
|
|
2
|
+
import type { SetProcessorNameInput, SetProcessorTypeInput, AddDocumentTypeInput, RemoveDocumentTypeInput, SetProcessorStatusInput } from "../types.js";
|
|
3
3
|
export type SetProcessorNameAction = Action & {
|
|
4
4
|
type: "SET_PROCESSOR_NAME";
|
|
5
5
|
input: SetProcessorNameInput;
|
|
@@ -16,5 +16,9 @@ export type RemoveDocumentTypeAction = Action & {
|
|
|
16
16
|
type: "REMOVE_DOCUMENT_TYPE";
|
|
17
17
|
input: RemoveDocumentTypeInput;
|
|
18
18
|
};
|
|
19
|
-
export type
|
|
19
|
+
export type SetProcessorStatusAction = Action & {
|
|
20
|
+
type: "SET_PROCESSOR_STATUS";
|
|
21
|
+
input: SetProcessorStatusInput;
|
|
22
|
+
};
|
|
23
|
+
export type ProcessorModuleBaseOperationsAction = SetProcessorNameAction | SetProcessorTypeAction | AddDocumentTypeAction | RemoveDocumentTypeAction | SetProcessorStatusAction;
|
|
20
24
|
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../document-models/processor-module/gen/base-operations/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACxB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG;IAC5C,IAAI,EAAE,oBAAoB,CAAC;IAC3B,KAAK,EAAE,qBAAqB,CAAC;CAC9B,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG;IAC5C,IAAI,EAAE,oBAAoB,CAAC;IAC3B,KAAK,EAAE,qBAAqB,CAAC;CAC9B,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG;IAC3C,IAAI,EAAE,mBAAmB,CAAC;IAC1B,KAAK,EAAE,oBAAoB,CAAC;CAC7B,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,MAAM,GAAG;IAC9C,IAAI,EAAE,sBAAsB,CAAC;IAC7B,KAAK,EAAE,uBAAuB,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAC3C,sBAAsB,GACtB,sBAAsB,GACtB,qBAAqB,GACrB,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../document-models/processor-module/gen/base-operations/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG;IAC5C,IAAI,EAAE,oBAAoB,CAAC;IAC3B,KAAK,EAAE,qBAAqB,CAAC;CAC9B,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG;IAC5C,IAAI,EAAE,oBAAoB,CAAC;IAC3B,KAAK,EAAE,qBAAqB,CAAC;CAC9B,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG;IAC3C,IAAI,EAAE,mBAAmB,CAAC;IAC1B,KAAK,EAAE,oBAAoB,CAAC;CAC7B,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,MAAM,GAAG;IAC9C,IAAI,EAAE,sBAAsB,CAAC;IAC7B,KAAK,EAAE,uBAAuB,CAAC;CAChC,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,MAAM,GAAG;IAC9C,IAAI,EAAE,sBAAsB,CAAC;IAC7B,KAAK,EAAE,uBAAuB,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAC3C,sBAAsB,GACtB,sBAAsB,GACtB,qBAAqB,GACrB,wBAAwB,GACxB,wBAAwB,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { type SetProcessorNameInput, type SetProcessorTypeInput, type AddDocumentTypeInput, type RemoveDocumentTypeInput } from "../types.js";
|
|
2
|
-
import { type SetProcessorNameAction, type SetProcessorTypeAction, type AddDocumentTypeAction, type RemoveDocumentTypeAction } from "./actions.js";
|
|
1
|
+
import { type SetProcessorNameInput, type SetProcessorTypeInput, type AddDocumentTypeInput, type RemoveDocumentTypeInput, type SetProcessorStatusInput } from "../types.js";
|
|
2
|
+
import { type SetProcessorNameAction, type SetProcessorTypeAction, type AddDocumentTypeAction, type RemoveDocumentTypeAction, type SetProcessorStatusAction } from "./actions.js";
|
|
3
3
|
export declare const setProcessorName: (input: SetProcessorNameInput) => SetProcessorNameAction;
|
|
4
4
|
export declare const setProcessorType: (input: SetProcessorTypeInput) => SetProcessorTypeAction;
|
|
5
5
|
export declare const addDocumentType: (input: AddDocumentTypeInput) => AddDocumentTypeAction;
|
|
6
6
|
export declare const removeDocumentType: (input: RemoveDocumentTypeInput) => RemoveDocumentTypeAction;
|
|
7
|
+
export declare const setProcessorStatus: (input: SetProcessorStatusInput) => SetProcessorStatusAction;
|
|
7
8
|
//# sourceMappingURL=creators.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creators.d.ts","sourceRoot":"","sources":["../../../../../document-models/processor-module/gen/base-operations/creators.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC7B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC9B,MAAM,cAAc,CAAC;AAEtB,eAAO,MAAM,gBAAgB,GAAI,OAAO,qBAAqB,2BAO1D,CAAC;AAEJ,eAAO,MAAM,gBAAgB,GAAI,OAAO,qBAAqB,2BAO1D,CAAC;AAEJ,eAAO,MAAM,eAAe,GAAI,OAAO,oBAAoB,0BAOxD,CAAC;AAEJ,eAAO,MAAM,kBAAkB,GAAI,OAAO,uBAAuB,6BAO9D,CAAC"}
|
|
1
|
+
{"version":3,"file":"creators.d.ts","sourceRoot":"","sources":["../../../../../document-models/processor-module/gen/base-operations/creators.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC7B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC9B,MAAM,cAAc,CAAC;AAEtB,eAAO,MAAM,gBAAgB,GAAI,OAAO,qBAAqB,2BAO1D,CAAC;AAEJ,eAAO,MAAM,gBAAgB,GAAI,OAAO,qBAAqB,2BAO1D,CAAC;AAEJ,eAAO,MAAM,eAAe,GAAI,OAAO,oBAAoB,0BAOxD,CAAC;AAEJ,eAAO,MAAM,kBAAkB,GAAI,OAAO,uBAAuB,6BAO9D,CAAC;AAEJ,eAAO,MAAM,kBAAkB,GAAI,OAAO,uBAAuB,6BAO9D,CAAC"}
|
|
@@ -4,4 +4,5 @@ export const setProcessorName = (input) => createAction("SET_PROCESSOR_NAME", {
|
|
|
4
4
|
export const setProcessorType = (input) => createAction("SET_PROCESSOR_TYPE", { ...input }, undefined, z.SetProcessorTypeInputSchema, "global");
|
|
5
5
|
export const addDocumentType = (input) => createAction("ADD_DOCUMENT_TYPE", { ...input }, undefined, z.AddDocumentTypeInputSchema, "global");
|
|
6
6
|
export const removeDocumentType = (input) => createAction("REMOVE_DOCUMENT_TYPE", { ...input }, undefined, z.RemoveDocumentTypeInputSchema, "global");
|
|
7
|
+
export const setProcessorStatus = (input) => createAction("SET_PROCESSOR_STATUS", { ...input }, undefined, z.SetProcessorStatusInputSchema, "global");
|
|
7
8
|
//# sourceMappingURL=creators.js.map
|