@powerhousedao/vetra 5.1.0-staging.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/document-models/app-module/actions.d.ts.map +1 -1
- package/dist/document-models/app-module/gen/base-operations/actions.d.ts +1 -1
- package/dist/document-models/app-module/gen/base-operations/actions.d.ts.map +1 -1
- package/dist/document-models/app-module/gen/base-operations/actions.js +1 -1
- package/dist/document-models/app-module/gen/base-operations/operations.d.ts +2 -2
- package/dist/document-models/app-module/gen/base-operations/operations.d.ts.map +1 -1
- package/dist/document-models/app-module/gen/base-operations/operations.js +2 -0
- package/dist/document-models/app-module/gen/dnd-operations/actions.d.ts +1 -1
- package/dist/document-models/app-module/gen/dnd-operations/actions.d.ts.map +1 -1
- package/dist/document-models/app-module/gen/dnd-operations/actions.js +1 -1
- package/dist/document-models/app-module/gen/dnd-operations/operations.d.ts +2 -2
- package/dist/document-models/app-module/gen/dnd-operations/operations.d.ts.map +1 -1
- package/dist/document-models/app-module/gen/dnd-operations/operations.js +2 -0
- package/dist/document-models/app-module/gen/document-model.js +2 -2
- package/dist/document-models/app-module/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/app-module/gen/reducer.js +6 -12
- package/dist/document-models/app-module/gen/types.d.ts.map +1 -1
- package/dist/document-models/app-module/index.d.ts +4 -0
- package/dist/document-models/app-module/index.d.ts.map +1 -1
- package/dist/document-models/app-module/index.js +4 -0
- package/dist/document-models/document-editor/actions.d.ts.map +1 -1
- package/dist/document-models/document-editor/gen/base-operations/actions.d.ts +1 -1
- package/dist/document-models/document-editor/gen/base-operations/actions.d.ts.map +1 -1
- package/dist/document-models/document-editor/gen/base-operations/actions.js +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/base-operations/operations.js +2 -0
- package/dist/document-models/document-editor/gen/document-model.js +2 -2
- package/dist/document-models/document-editor/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/document-editor/gen/reducer.js +4 -8
- package/dist/document-models/document-editor/gen/types.d.ts.map +1 -1
- package/dist/document-models/document-editor/index.d.ts +4 -0
- package/dist/document-models/document-editor/index.d.ts.map +1 -1
- package/dist/document-models/document-editor/index.js +4 -0
- package/dist/document-models/index.d.ts +4 -0
- package/dist/document-models/index.d.ts.map +1 -1
- package/dist/document-models/index.js +4 -0
- package/dist/document-models/processor-module/actions.d.ts.map +1 -1
- package/dist/document-models/processor-module/gen/base-operations/actions.d.ts +1 -1
- package/dist/document-models/processor-module/gen/base-operations/actions.d.ts.map +1 -1
- package/dist/document-models/processor-module/gen/base-operations/actions.js +1 -1
- package/dist/document-models/processor-module/gen/base-operations/operations.d.ts +2 -2
- package/dist/document-models/processor-module/gen/base-operations/operations.d.ts.map +1 -1
- package/dist/document-models/processor-module/gen/base-operations/operations.js +2 -0
- package/dist/document-models/processor-module/gen/document-model.js +2 -2
- package/dist/document-models/processor-module/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/processor-module/gen/reducer.js +5 -10
- package/dist/document-models/processor-module/gen/types.d.ts.map +1 -1
- package/dist/document-models/processor-module/index.d.ts +4 -0
- package/dist/document-models/processor-module/index.d.ts.map +1 -1
- package/dist/document-models/processor-module/index.js +4 -0
- package/dist/document-models/subgraph-module/actions.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/gen/base-operations/actions.d.ts +1 -1
- package/dist/document-models/subgraph-module/gen/base-operations/actions.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/gen/base-operations/actions.js +1 -1
- package/dist/document-models/subgraph-module/gen/base-operations/operations.d.ts +2 -2
- package/dist/document-models/subgraph-module/gen/base-operations/operations.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/gen/base-operations/operations.js +2 -0
- package/dist/document-models/subgraph-module/gen/document-model.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/gen/document-model.js +2 -2
- package/dist/document-models/subgraph-module/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/gen/reducer.js +2 -4
- package/dist/document-models/subgraph-module/gen/types.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/index.d.ts +4 -0
- package/dist/document-models/subgraph-module/index.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/index.js +4 -0
- package/dist/document-models/vetra-package/actions.d.ts.map +1 -1
- package/dist/document-models/vetra-package/gen/base-operations/actions.d.ts +1 -1
- package/dist/document-models/vetra-package/gen/base-operations/actions.d.ts.map +1 -1
- package/dist/document-models/vetra-package/gen/base-operations/actions.js +1 -1
- package/dist/document-models/vetra-package/gen/base-operations/operations.d.ts +2 -2
- package/dist/document-models/vetra-package/gen/base-operations/operations.d.ts.map +1 -1
- package/dist/document-models/vetra-package/gen/base-operations/operations.js +2 -0
- package/dist/document-models/vetra-package/gen/document-model.js +2 -2
- package/dist/document-models/vetra-package/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/vetra-package/gen/reducer.js +10 -20
- package/dist/document-models/vetra-package/gen/types.d.ts.map +1 -1
- package/dist/document-models/vetra-package/index.d.ts +4 -0
- package/dist/document-models/vetra-package/index.d.ts.map +1 -1
- package/dist/document-models/vetra-package/index.js +4 -0
- package/dist/editors/app-editor/module.d.ts +1 -1
- package/dist/editors/app-editor/module.d.ts.map +1 -1
- package/dist/editors/app-editor/module.js +1 -1
- package/dist/processors/codegen/__tests__/codegen-processor-e2e.test.js +1 -7
- package/dist/processors/codegen/document-handlers/generators/app-generator.d.ts.map +1 -1
- package/dist/processors/codegen/document-handlers/generators/app-generator.js +0 -2
- package/dist/processors/codegen/document-handlers/generators/document-editor-generator.d.ts.map +1 -1
- package/dist/processors/codegen/document-handlers/generators/document-editor-generator.js +0 -2
- package/dist/processors/codegen/document-handlers/generators/document-model-generator.d.ts.map +1 -1
- package/dist/processors/codegen/document-handlers/generators/document-model-generator.js +1 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +17 -15
- package/dist/processors/codegen/document-handlers/generators/constants.d.ts +0 -2
- package/dist/processors/codegen/document-handlers/generators/constants.d.ts.map +0 -1
- package/dist/processors/codegen/document-handlers/generators/constants.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../document-models/app-module/actions.ts"],"names":[],"mappings":"AAGA,+CAA+C;
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../document-models/app-module/actions.ts"],"names":[],"mappings":"AAGA,+CAA+C;AAC/C,eAAO,MAAM,OAAO;4BAKT,sDAAiC;iBAA2P,2CAAsB;mBAAwK,6CAAwB;sBAAiL,gDAA2B;yBAA6L,mDAA8B;uBAAoM,iDAA4B;;eAAsuL,CAAC,eAAe,CAAC;gBAAkE,CAAC,eAAe,CAAC;iBAAmE,CAAC,aAAa,CAAC,eAAe,CAAC;;;;gBAAqS,CAAC;CADr1O,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Action } from "document-model";
|
|
2
2
|
import type { SetAppNameInput, SetAppStatusInput, AddDocumentTypeInput, RemoveDocumentTypeInput, SetDocumentTypesInput } from "../types.js";
|
|
3
3
|
export type SetAppNameAction = Action & {
|
|
4
4
|
type: "SET_APP_NAME";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../document-models/app-module/gen/base-operations/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../document-models/app-module/gen/base-operations/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EACjB,oBAAoB,EACpB,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG;IACtC,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,EAAE,eAAe,CAAC;CACxB,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG;IACxC,IAAI,EAAE,gBAAgB,CAAC;IACvB,KAAK,EAAE,iBAAiB,CAAC;CAC1B,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,sBAAsB,GAAG,MAAM,GAAG;IAC5C,IAAI,EAAE,oBAAoB,CAAC;IAC3B,KAAK,EAAE,qBAAqB,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,6BAA6B,GACrC,gBAAgB,GAChB,kBAAkB,GAClB,qBAAqB,GACrB,wBAAwB,GACxB,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import {} from "document-model";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type SignalDispatch } from "document-model";
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
2
|
+
import { type SetAppNameAction, type SetAppStatusAction, type AddDocumentTypeAction, type RemoveDocumentTypeAction, type SetDocumentTypesAction } from "./actions.js";
|
|
3
|
+
import { type AppModuleState } from "../types.js";
|
|
4
4
|
export interface AppModuleBaseOperationsOperations {
|
|
5
5
|
setAppNameOperation: (state: AppModuleState, action: SetAppNameAction, dispatch?: SignalDispatch) => void;
|
|
6
6
|
setAppStatusOperation: (state: AppModuleState, action: SetAppStatusAction, dispatch?: SignalDispatch) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../document-models/app-module/gen/base-operations/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../document-models/app-module/gen/base-operations/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC5B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,WAAW,iCAAiC;IAChD,mBAAmB,EAAE,CACnB,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,gBAAgB,EACxB,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,qBAAqB,EAAE,CACrB,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,wBAAwB,EAAE,CACxB,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,qBAAqB,EAC7B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,2BAA2B,EAAE,CAC3B,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,wBAAwB,EAChC,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,yBAAyB,EAAE,CACzB,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,sBAAsB,EAC9B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;CACX"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../document-models/app-module/gen/dnd-operations/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../document-models/app-module/gen/dnd-operations/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAE9D,MAAM,MAAM,2BAA2B,GAAG,MAAM,GAAG;IACjD,IAAI,EAAE,2BAA2B,CAAC;IAClC,KAAK,EAAE,0BAA0B,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,2BAA2B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import {} from "document-model";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type SignalDispatch } from "document-model";
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
2
|
+
import { type SetDragAndDropEnabledAction } from "./actions.js";
|
|
3
|
+
import { type AppModuleState } from "../types.js";
|
|
4
4
|
export interface AppModuleDndOperationsOperations {
|
|
5
5
|
setDragAndDropEnabledOperation: (state: AppModuleState, action: SetDragAndDropEnabledAction, dispatch?: SignalDispatch) => void;
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../document-models/app-module/gen/dnd-operations/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../document-models/app-module/gen/dnd-operations/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,WAAW,gCAAgC;IAC/C,8BAA8B,EAAE,CAC9B,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,2BAA2B,EACnC,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;CACX"}
|
|
@@ -14,12 +14,12 @@ export const documentModel = {
|
|
|
14
14
|
state: {
|
|
15
15
|
global: {
|
|
16
16
|
schema: "type AppModuleState {\n name: String!\n status: StatusType!\n allowedDocumentTypes: [String!]\n isDragAndDropEnabled: Boolean!\n}\n\nenum StatusType {\n DRAFT\n CONFIRMED\n}",
|
|
17
|
-
initialValue: '{
|
|
17
|
+
initialValue: '"{\\n \\"name\\": \\"\\",\\n \\"status\\": \\"DRAFT\\",\\n \\"allowedDocumentTypes\\": null,\\n \\"isDragAndDropEnabled\\": true\\n}"',
|
|
18
18
|
examples: [],
|
|
19
19
|
},
|
|
20
20
|
local: {
|
|
21
21
|
schema: "",
|
|
22
|
-
initialValue: "",
|
|
22
|
+
initialValue: '""',
|
|
23
23
|
examples: [],
|
|
24
24
|
},
|
|
25
25
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../document-models/app-module/gen/reducer.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iDAAiD,CAAC;
|
|
1
|
+
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../document-models/app-module/gen/reducer.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iDAAiD,CAAC;AAmFxF,eAAO,MAAM,OAAO,oDAAgD,CAAC"}
|
|
@@ -7,36 +7,30 @@ const stateReducer = (state, action, dispatch) => {
|
|
|
7
7
|
return state;
|
|
8
8
|
}
|
|
9
9
|
switch (action.type) {
|
|
10
|
-
case "SET_APP_NAME":
|
|
10
|
+
case "SET_APP_NAME":
|
|
11
11
|
SetAppNameInputSchema().parse(action.input);
|
|
12
12
|
appModuleBaseOperationsOperations.setAppNameOperation(state[action.scope], action, dispatch);
|
|
13
13
|
break;
|
|
14
|
-
|
|
15
|
-
case "SET_APP_STATUS": {
|
|
14
|
+
case "SET_APP_STATUS":
|
|
16
15
|
SetAppStatusInputSchema().parse(action.input);
|
|
17
16
|
appModuleBaseOperationsOperations.setAppStatusOperation(state[action.scope], action, dispatch);
|
|
18
17
|
break;
|
|
19
|
-
|
|
20
|
-
case "ADD_DOCUMENT_TYPE": {
|
|
18
|
+
case "ADD_DOCUMENT_TYPE":
|
|
21
19
|
AddDocumentTypeInputSchema().parse(action.input);
|
|
22
20
|
appModuleBaseOperationsOperations.addDocumentTypeOperation(state[action.scope], action, dispatch);
|
|
23
21
|
break;
|
|
24
|
-
|
|
25
|
-
case "REMOVE_DOCUMENT_TYPE": {
|
|
22
|
+
case "REMOVE_DOCUMENT_TYPE":
|
|
26
23
|
RemoveDocumentTypeInputSchema().parse(action.input);
|
|
27
24
|
appModuleBaseOperationsOperations.removeDocumentTypeOperation(state[action.scope], action, dispatch);
|
|
28
25
|
break;
|
|
29
|
-
|
|
30
|
-
case "SET_DOCUMENT_TYPES": {
|
|
26
|
+
case "SET_DOCUMENT_TYPES":
|
|
31
27
|
SetDocumentTypesInputSchema().parse(action.input);
|
|
32
28
|
appModuleBaseOperationsOperations.setDocumentTypesOperation(state[action.scope], action, dispatch);
|
|
33
29
|
break;
|
|
34
|
-
|
|
35
|
-
case "SET_DRAG_AND_DROP_ENABLED": {
|
|
30
|
+
case "SET_DRAG_AND_DROP_ENABLED":
|
|
36
31
|
SetDragAndDropEnabledInputSchema().parse(action.input);
|
|
37
32
|
appModuleDndOperationsOperations.setDragAndDropEnabledOperation(state[action.scope], action, dispatch);
|
|
38
33
|
break;
|
|
39
|
-
}
|
|
40
34
|
default:
|
|
41
35
|
return state;
|
|
42
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../document-models/app-module/gen/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,IAAI,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEhF,KAAK,mBAAmB,GAAG,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../document-models/app-module/gen/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,IAAI,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEhF,KAAK,mBAAmB,GAAG,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;AACtD,KAAK,gBAAgB,GAAG,WAAW,GAAG;IACpC,MAAM,EAAE,oBAAoB,CAAC;IAC7B,KAAK,EAAE,mBAAmB,CAAC;CAC5B,CAAC;AACF,KAAK,iBAAiB,GAAG,UAAU,CAAC,gBAAgB,CAAC,CAAC;AAEtD,cAAc,mBAAmB,CAAC;AAElC,YAAY,EACV,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,GAClB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../document-models/app-module/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../document-models/app-module/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../document-models/document-editor/actions.ts"],"names":[],"mappings":"AAGA,oDAAoD;
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../document-models/document-editor/actions.ts"],"names":[],"mappings":"AAGA,oDAAoD;AACpD,eAAO,MAAM,OAAO;oBACuQ,8CAAyB;sBAAoL,gDAA2B;yBAA6L,mDAA8B;sBAAmM,gDAA2B;;eAA+9L,CAAC,eAAe,CAAC;gBAAkE,CAAC,eAAe,CAAC;iBAAmE,CAAC,aAAa,CAAC,eAAe,CAAC;;;;gBAAqS,CAAC;CADp0O,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Action } from "document-model";
|
|
2
2
|
import type { SetEditorNameInput, AddDocumentTypeInput, RemoveDocumentTypeInput, SetEditorStatusInput } from "../types.js";
|
|
3
3
|
export type SetEditorNameAction = Action & {
|
|
4
4
|
type: "SET_EDITOR_NAME";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../document-models/document-editor/gen/base-operations/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
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 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import {} from "document-model";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type SignalDispatch } from "document-model";
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
2
|
+
import { type SetEditorNameAction, type AddDocumentTypeAction, type RemoveDocumentTypeAction, type SetEditorStatusAction } from "./actions.js";
|
|
3
|
+
import { type DocumentEditorState } from "../types.js";
|
|
4
4
|
export interface DocumentEditorBaseOperationsOperations {
|
|
5
5
|
setEditorNameOperation: (state: DocumentEditorState, action: SetEditorNameAction, dispatch?: SignalDispatch) => void;
|
|
6
6
|
addDocumentTypeOperation: (state: DocumentEditorState, action: AddDocumentTypeAction, dispatch?: SignalDispatch) => void;
|
|
@@ -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,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"}
|
|
@@ -14,12 +14,12 @@ export const documentModel = {
|
|
|
14
14
|
state: {
|
|
15
15
|
global: {
|
|
16
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: '{
|
|
17
|
+
initialValue: '"{\\n \\"name\\": \\"\\",\\n \\"documentTypes\\": [],\\n \\"status\\": \\"DRAFT\\"\\n}"',
|
|
18
18
|
examples: [],
|
|
19
19
|
},
|
|
20
20
|
local: {
|
|
21
21
|
schema: "",
|
|
22
|
-
initialValue: "",
|
|
22
|
+
initialValue: '""',
|
|
23
23
|
examples: [],
|
|
24
24
|
},
|
|
25
25
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../document-models/document-editor/gen/reducer.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAC;
|
|
1
|
+
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../document-models/document-editor/gen/reducer.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAC;AA8DlG,eAAO,MAAM,OAAO,yDAAqD,CAAC"}
|
|
@@ -6,26 +6,22 @@ const stateReducer = (state, action, dispatch) => {
|
|
|
6
6
|
return state;
|
|
7
7
|
}
|
|
8
8
|
switch (action.type) {
|
|
9
|
-
case "SET_EDITOR_NAME":
|
|
9
|
+
case "SET_EDITOR_NAME":
|
|
10
10
|
SetEditorNameInputSchema().parse(action.input);
|
|
11
11
|
documentEditorBaseOperationsOperations.setEditorNameOperation(state[action.scope], action, dispatch);
|
|
12
12
|
break;
|
|
13
|
-
|
|
14
|
-
case "ADD_DOCUMENT_TYPE": {
|
|
13
|
+
case "ADD_DOCUMENT_TYPE":
|
|
15
14
|
AddDocumentTypeInputSchema().parse(action.input);
|
|
16
15
|
documentEditorBaseOperationsOperations.addDocumentTypeOperation(state[action.scope], action, dispatch);
|
|
17
16
|
break;
|
|
18
|
-
|
|
19
|
-
case "REMOVE_DOCUMENT_TYPE": {
|
|
17
|
+
case "REMOVE_DOCUMENT_TYPE":
|
|
20
18
|
RemoveDocumentTypeInputSchema().parse(action.input);
|
|
21
19
|
documentEditorBaseOperationsOperations.removeDocumentTypeOperation(state[action.scope], action, dispatch);
|
|
22
20
|
break;
|
|
23
|
-
|
|
24
|
-
case "SET_EDITOR_STATUS": {
|
|
21
|
+
case "SET_EDITOR_STATUS":
|
|
25
22
|
SetEditorStatusInputSchema().parse(action.input);
|
|
26
23
|
documentEditorBaseOperationsOperations.setEditorStatusOperation(state[action.scope], action, dispatch);
|
|
27
24
|
break;
|
|
28
|
-
}
|
|
29
25
|
default:
|
|
30
26
|
return state;
|
|
31
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../document-models/document-editor/gen/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,mBAAmB,IAAI,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAE1F,KAAK,wBAAwB,GAAG,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../document-models/document-editor/gen/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,mBAAmB,IAAI,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAE1F,KAAK,wBAAwB,GAAG,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;AAC3D,KAAK,qBAAqB,GAAG,WAAW,GAAG;IACzC,MAAM,EAAE,yBAAyB,CAAC;IAClC,KAAK,EAAE,wBAAwB,CAAC;CACjC,CAAC;AACF,KAAK,sBAAsB,GAAG,UAAU,CAAC,qBAAqB,CAAC,CAAC;AAEhE,cAAc,mBAAmB,CAAC;AAElC,YAAY,EACV,yBAAyB,EACzB,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,GACvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../document-models/document-editor/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../document-models/document-editor/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This is a scaffold file meant for customization.
|
|
3
|
+
* Delete the file and run the code generator again to have it reset
|
|
4
|
+
*/
|
|
1
5
|
export { AppModule } from "./app-module/module.js";
|
|
2
6
|
export { DocumentEditor } from "./document-editor/module.js";
|
|
3
7
|
export { ProcessorModule } from "./processor-module/module.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../document-models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../document-models/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This is a scaffold file meant for customization.
|
|
3
|
+
* Delete the file and run the code generator again to have it reset
|
|
4
|
+
*/
|
|
1
5
|
export { AppModule } from "./app-module/module.js";
|
|
2
6
|
export { DocumentEditor } from "./document-editor/module.js";
|
|
3
7
|
export { ProcessorModule } from "./processor-module/module.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../document-models/processor-module/actions.ts"],"names":[],"mappings":"AAGA,qDAAqD;
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../document-models/processor-module/actions.ts"],"names":[],"mappings":"AAGA,qDAAqD;AACrD,eAAO,MAAM,OAAO;uBAC6W,iDAA4B;uBAA8L,iDAA4B;sBAA6L,gDAA2B;yBAA6L,mDAA8B;yBAAsM,mDAA8B;;eAA4oL,CAAC,eAAe,CAAC;gBAAkE,CAAC,eAAe,CAAC;iBAAmE,CAAC,aAAa,CAAC,eAAe,CAAC;;;;gBAAqS,CAAC;CADn0O,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Action } from "document-model";
|
|
2
2
|
import type { SetProcessorNameInput, SetProcessorTypeInput, AddDocumentTypeInput, RemoveDocumentTypeInput, SetProcessorStatusInput } from "../types.js";
|
|
3
3
|
export type SetProcessorNameAction = Action & {
|
|
4
4
|
type: "SET_PROCESSOR_NAME";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../document-models/processor-module/gen/base-operations/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
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 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import {} from "document-model";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type SignalDispatch } from "document-model";
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
2
|
+
import { type SetProcessorNameAction, type SetProcessorTypeAction, type AddDocumentTypeAction, type RemoveDocumentTypeAction, type SetProcessorStatusAction } from "./actions.js";
|
|
3
|
+
import { type ProcessorModuleState } from "../types.js";
|
|
4
4
|
export interface ProcessorModuleBaseOperationsOperations {
|
|
5
5
|
setProcessorNameOperation: (state: ProcessorModuleState, action: SetProcessorNameAction, dispatch?: SignalDispatch) => void;
|
|
6
6
|
setProcessorTypeOperation: (state: ProcessorModuleState, action: SetProcessorTypeAction, dispatch?: SignalDispatch) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../document-models/processor-module/gen/base-operations/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../document-models/processor-module/gen/base-operations/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC9B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD,MAAM,WAAW,uCAAuC;IACtD,yBAAyB,EAAE,CACzB,KAAK,EAAE,oBAAoB,EAC3B,MAAM,EAAE,sBAAsB,EAC9B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,yBAAyB,EAAE,CACzB,KAAK,EAAE,oBAAoB,EAC3B,MAAM,EAAE,sBAAsB,EAC9B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,wBAAwB,EAAE,CACxB,KAAK,EAAE,oBAAoB,EAC3B,MAAM,EAAE,qBAAqB,EAC7B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,2BAA2B,EAAE,CAC3B,KAAK,EAAE,oBAAoB,EAC3B,MAAM,EAAE,wBAAwB,EAChC,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,2BAA2B,EAAE,CAC3B,KAAK,EAAE,oBAAoB,EAC3B,MAAM,EAAE,wBAAwB,EAChC,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;CACX"}
|
|
@@ -14,12 +14,12 @@ export const documentModel = {
|
|
|
14
14
|
state: {
|
|
15
15
|
global: {
|
|
16
16
|
schema: "type ProcessorModuleState {\n name: String!\n type: 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: '{
|
|
17
|
+
initialValue: '"{\\n \\"name\\": \\"\\",\\n \\"type\\": \\"\\",\\n \\"documentTypes\\": [],\\n \\"status\\": \\"DRAFT\\"\\n}"',
|
|
18
18
|
examples: [],
|
|
19
19
|
},
|
|
20
20
|
local: {
|
|
21
21
|
schema: "",
|
|
22
|
-
initialValue: "",
|
|
22
|
+
initialValue: '""',
|
|
23
23
|
examples: [],
|
|
24
24
|
},
|
|
25
25
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../document-models/processor-module/gen/reducer.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uDAAuD,CAAC;
|
|
1
|
+
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../document-models/processor-module/gen/reducer.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uDAAuD,CAAC;AAwEpG,eAAO,MAAM,OAAO,0DAAsD,CAAC"}
|
|
@@ -6,31 +6,26 @@ const stateReducer = (state, action, dispatch) => {
|
|
|
6
6
|
return state;
|
|
7
7
|
}
|
|
8
8
|
switch (action.type) {
|
|
9
|
-
case "SET_PROCESSOR_NAME":
|
|
9
|
+
case "SET_PROCESSOR_NAME":
|
|
10
10
|
SetProcessorNameInputSchema().parse(action.input);
|
|
11
11
|
processorModuleBaseOperationsOperations.setProcessorNameOperation(state[action.scope], action, dispatch);
|
|
12
12
|
break;
|
|
13
|
-
|
|
14
|
-
case "SET_PROCESSOR_TYPE": {
|
|
13
|
+
case "SET_PROCESSOR_TYPE":
|
|
15
14
|
SetProcessorTypeInputSchema().parse(action.input);
|
|
16
15
|
processorModuleBaseOperationsOperations.setProcessorTypeOperation(state[action.scope], action, dispatch);
|
|
17
16
|
break;
|
|
18
|
-
|
|
19
|
-
case "ADD_DOCUMENT_TYPE": {
|
|
17
|
+
case "ADD_DOCUMENT_TYPE":
|
|
20
18
|
AddDocumentTypeInputSchema().parse(action.input);
|
|
21
19
|
processorModuleBaseOperationsOperations.addDocumentTypeOperation(state[action.scope], action, dispatch);
|
|
22
20
|
break;
|
|
23
|
-
|
|
24
|
-
case "REMOVE_DOCUMENT_TYPE": {
|
|
21
|
+
case "REMOVE_DOCUMENT_TYPE":
|
|
25
22
|
RemoveDocumentTypeInputSchema().parse(action.input);
|
|
26
23
|
processorModuleBaseOperationsOperations.removeDocumentTypeOperation(state[action.scope], action, dispatch);
|
|
27
24
|
break;
|
|
28
|
-
|
|
29
|
-
case "SET_PROCESSOR_STATUS": {
|
|
25
|
+
case "SET_PROCESSOR_STATUS":
|
|
30
26
|
SetProcessorStatusInputSchema().parse(action.input);
|
|
31
27
|
processorModuleBaseOperationsOperations.setProcessorStatusOperation(state[action.scope], action, dispatch);
|
|
32
28
|
break;
|
|
33
|
-
}
|
|
34
29
|
default:
|
|
35
30
|
return state;
|
|
36
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../document-models/processor-module/gen/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,IAAI,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAE5F,KAAK,yBAAyB,GAAG,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../document-models/processor-module/gen/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,IAAI,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAE5F,KAAK,yBAAyB,GAAG,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;AAC5D,KAAK,sBAAsB,GAAG,WAAW,GAAG;IAC1C,MAAM,EAAE,0BAA0B,CAAC;IACnC,KAAK,EAAE,yBAAyB,CAAC;CAClC,CAAC;AACF,KAAK,uBAAuB,GAAG,UAAU,CAAC,sBAAsB,CAAC,CAAC;AAElE,cAAc,mBAAmB,CAAC;AAElC,YAAY,EACV,0BAA0B,EAC1B,yBAAyB,EACzB,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,GACxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../document-models/processor-module/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../document-models/processor-module/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../document-models/subgraph-module/actions.ts"],"names":[],"mappings":"AAGA,oDAAoD;
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../document-models/subgraph-module/actions.ts"],"names":[],"mappings":"AAGA,oDAAoD;AACpD,eAAO,MAAM,OAAO;sBACyG,gDAA2B;wBAA4L,kDAA6B;;eAA0iN,CAAC,eAAe,CAAC;gBAAkE,CAAC,eAAe,CAAC;iBAAmE,CAAC,aAAa,CAAC,eAAe,CAAC;;;;gBAAqS,CAAC;CADp0O,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../document-models/subgraph-module/gen/base-operations/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../document-models/subgraph-module/gen/base-operations/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAEhF,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG;IAC3C,IAAI,EAAE,mBAAmB,CAAC;IAC1B,KAAK,EAAE,oBAAoB,CAAC;CAC7B,CAAC;AACF,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG;IAC7C,IAAI,EAAE,qBAAqB,CAAC;IAC5B,KAAK,EAAE,sBAAsB,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAC1C,qBAAqB,GACrB,uBAAuB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import {} from "document-model";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type SignalDispatch } from "document-model";
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
2
|
+
import { type SetSubgraphNameAction, type SetSubgraphStatusAction } from "./actions.js";
|
|
3
|
+
import { type SubgraphModuleState } from "../types.js";
|
|
4
4
|
export interface SubgraphModuleBaseOperationsOperations {
|
|
5
5
|
setSubgraphNameOperation: (state: SubgraphModuleState, action: SetSubgraphNameAction, dispatch?: SignalDispatch) => void;
|
|
6
6
|
setSubgraphStatusOperation: (state: SubgraphModuleState, action: SetSubgraphStatusAction, dispatch?: SignalDispatch) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../document-models/subgraph-module/gen/base-operations/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../document-models/subgraph-module/gen/base-operations/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC7B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,WAAW,sCAAsC;IACrD,wBAAwB,EAAE,CACxB,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,qBAAqB,EAC7B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;IACV,0BAA0B,EAAE,CAC1B,KAAK,EAAE,mBAAmB,EAC1B,MAAM,EAAE,uBAAuB,EAC/B,QAAQ,CAAC,EAAE,cAAc,KACtB,IAAI,CAAC;CACX"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-model.d.ts","sourceRoot":"","sources":["../../../../document-models/subgraph-module/gen/document-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,eAAO,MAAM,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"document-model.d.ts","sourceRoot":"","sources":["../../../../document-models/subgraph-module/gen/document-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,eAAO,MAAM,aAAa,EAAE,wBA6D3B,CAAC"}
|
|
@@ -14,12 +14,12 @@ export const documentModel = {
|
|
|
14
14
|
state: {
|
|
15
15
|
global: {
|
|
16
16
|
schema: "type SubgraphModuleState {\n name: String!\n status: StatusType!\n}\n\nenum StatusType {\n DRAFT\n CONFIRMED\n}",
|
|
17
|
-
initialValue: '{
|
|
17
|
+
initialValue: '"{\\n \\"name\\": \\"\\",\\n \\"status\\": \\"DRAFT\\"\\n}"',
|
|
18
18
|
examples: [],
|
|
19
19
|
},
|
|
20
20
|
local: {
|
|
21
21
|
schema: "",
|
|
22
|
-
initialValue: "",
|
|
22
|
+
initialValue: '""',
|
|
23
23
|
examples: [],
|
|
24
24
|
},
|
|
25
25
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../document-models/subgraph-module/gen/reducer.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAC;
|
|
1
|
+
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../document-models/subgraph-module/gen/reducer.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAC;AA0ClG,eAAO,MAAM,OAAO,yDAAqD,CAAC"}
|
|
@@ -6,16 +6,14 @@ const stateReducer = (state, action, dispatch) => {
|
|
|
6
6
|
return state;
|
|
7
7
|
}
|
|
8
8
|
switch (action.type) {
|
|
9
|
-
case "SET_SUBGRAPH_NAME":
|
|
9
|
+
case "SET_SUBGRAPH_NAME":
|
|
10
10
|
SetSubgraphNameInputSchema().parse(action.input);
|
|
11
11
|
subgraphModuleBaseOperationsOperations.setSubgraphNameOperation(state[action.scope], action, dispatch);
|
|
12
12
|
break;
|
|
13
|
-
|
|
14
|
-
case "SET_SUBGRAPH_STATUS": {
|
|
13
|
+
case "SET_SUBGRAPH_STATUS":
|
|
15
14
|
SetSubgraphStatusInputSchema().parse(action.input);
|
|
16
15
|
subgraphModuleBaseOperationsOperations.setSubgraphStatusOperation(state[action.scope], action, dispatch);
|
|
17
16
|
break;
|
|
18
|
-
}
|
|
19
17
|
default:
|
|
20
18
|
return state;
|
|
21
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../document-models/subgraph-module/gen/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,mBAAmB,IAAI,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAE1F,KAAK,wBAAwB,GAAG,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../document-models/subgraph-module/gen/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,mBAAmB,IAAI,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAE1F,KAAK,wBAAwB,GAAG,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;AAC3D,KAAK,qBAAqB,GAAG,WAAW,GAAG;IACzC,MAAM,EAAE,yBAAyB,CAAC;IAClC,KAAK,EAAE,wBAAwB,CAAC;CACjC,CAAC;AACF,KAAK,sBAAsB,GAAG,UAAU,CAAC,qBAAqB,CAAC,CAAC;AAEhE,cAAc,mBAAmB,CAAC;AAElC,YAAY,EACV,yBAAyB,EACzB,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,GACvB,CAAC"}
|