@powerhousedao/vetra 5.1.0-dev.1 → 5.1.0-dev.11
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 +0 -2
- 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 +0 -2
- 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 +12 -6
- package/dist/document-models/app-module/gen/types.d.ts.map +1 -1
- package/dist/document-models/app-module/index.d.ts +0 -4
- package/dist/document-models/app-module/index.d.ts.map +1 -1
- package/dist/document-models/app-module/index.js +0 -4
- 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 +0 -2
- 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 +8 -4
- package/dist/document-models/document-editor/gen/types.d.ts.map +1 -1
- package/dist/document-models/document-editor/index.d.ts +0 -4
- package/dist/document-models/document-editor/index.d.ts.map +1 -1
- package/dist/document-models/document-editor/index.js +0 -4
- package/dist/document-models/index.d.ts +0 -4
- package/dist/document-models/index.d.ts.map +1 -1
- package/dist/document-models/index.js +0 -4
- 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 +0 -2
- 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 +10 -5
- package/dist/document-models/processor-module/gen/types.d.ts.map +1 -1
- package/dist/document-models/processor-module/index.d.ts +0 -4
- package/dist/document-models/processor-module/index.d.ts.map +1 -1
- package/dist/document-models/processor-module/index.js +0 -4
- 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 +0 -2
- 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 +4 -2
- package/dist/document-models/subgraph-module/gen/types.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/index.d.ts +0 -4
- package/dist/document-models/subgraph-module/index.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/index.js +0 -4
- 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 +0 -2
- 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 +20 -10
- package/dist/document-models/vetra-package/gen/types.d.ts.map +1 -1
- package/dist/document-models/vetra-package/index.d.ts +0 -4
- package/dist/document-models/vetra-package/index.d.ts.map +1 -1
- package/dist/document-models/vetra-package/index.js +0 -4
- 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 +7 -1
- package/dist/processors/codegen/document-handlers/generators/app-generator.d.ts.map +1 -1
- package/dist/processors/codegen/document-handlers/generators/app-generator.js +2 -0
- package/dist/processors/codegen/document-handlers/generators/constants.d.ts +2 -0
- package/dist/processors/codegen/document-handlers/generators/constants.d.ts.map +1 -0
- package/dist/processors/codegen/document-handlers/generators/constants.js +1 -0
- 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 +2 -0
- 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 +2 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +15 -14
|
@@ -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;AAE/C,eAAO,MAAM,OAAO;4BAKV,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;CADp1O,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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,EAAE,
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../document-models/app-module/gen/base-operations/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,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
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type SignalDispatch } from "document-model";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { SetAppNameAction, SetAppStatusAction, AddDocumentTypeAction, RemoveDocumentTypeAction, 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,
|
|
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,EACV,gBAAgB,EAChB,kBAAkB,EAClB,qBAAqB,EACrB,wBAAwB,EACxB,sBAAsB,EACvB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,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,EAAE,
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../document-models/app-module/gen/dnd-operations/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,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
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type SignalDispatch } from "document-model";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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,EAAE,
|
|
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,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,KAAK,EAAE,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;AAoGxF,eAAO,MAAM,OAAO,oDAAgD,CAAC"}
|
|
@@ -7,30 +7,36 @@ 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
|
-
|
|
14
|
+
}
|
|
15
|
+
case "SET_APP_STATUS": {
|
|
15
16
|
SetAppStatusInputSchema().parse(action.input);
|
|
16
17
|
appModuleBaseOperationsOperations.setAppStatusOperation(state[action.scope], action, dispatch);
|
|
17
18
|
break;
|
|
18
|
-
|
|
19
|
+
}
|
|
20
|
+
case "ADD_DOCUMENT_TYPE": {
|
|
19
21
|
AddDocumentTypeInputSchema().parse(action.input);
|
|
20
22
|
appModuleBaseOperationsOperations.addDocumentTypeOperation(state[action.scope], action, dispatch);
|
|
21
23
|
break;
|
|
22
|
-
|
|
24
|
+
}
|
|
25
|
+
case "REMOVE_DOCUMENT_TYPE": {
|
|
23
26
|
RemoveDocumentTypeInputSchema().parse(action.input);
|
|
24
27
|
appModuleBaseOperationsOperations.removeDocumentTypeOperation(state[action.scope], action, dispatch);
|
|
25
28
|
break;
|
|
26
|
-
|
|
29
|
+
}
|
|
30
|
+
case "SET_DOCUMENT_TYPES": {
|
|
27
31
|
SetDocumentTypesInputSchema().parse(action.input);
|
|
28
32
|
appModuleBaseOperationsOperations.setDocumentTypesOperation(state[action.scope], action, dispatch);
|
|
29
33
|
break;
|
|
30
|
-
|
|
34
|
+
}
|
|
35
|
+
case "SET_DRAG_AND_DROP_ENABLED": {
|
|
31
36
|
SetDragAndDropEnabledInputSchema().parse(action.input);
|
|
32
37
|
appModuleDndOperationsOperations.setDragAndDropEnabledOperation(state[action.scope], action, dispatch);
|
|
33
38
|
break;
|
|
39
|
+
}
|
|
34
40
|
default:
|
|
35
41
|
return state;
|
|
36
42
|
}
|
|
@@ -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;AAEtD,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
|
|
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 +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;AAEpD,eAAO,MAAM,OAAO;oBACsQ,8CAAyB;sBAAoL,gDAA2B;yBAA6L,mDAA8B;sBAAmM,gDAA2B;;eAA+9L,CAAC,eAAe,CAAC;gBAAkE,CAAC,eAAe,CAAC;iBAAmE,CAAC,aAAa,CAAC,eAAe,CAAC;;;;gBAAqS,CAAC;CADn0O,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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,EAAE,
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../document-models/document-editor/gen/base-operations/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,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
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type SignalDispatch } from "document-model";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { SetEditorNameAction, AddDocumentTypeAction, RemoveDocumentTypeAction, 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,
|
|
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,EACV,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,EACxB,qBAAqB,EACtB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,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;AAyElG,eAAO,MAAM,OAAO,yDAAqD,CAAC"}
|
|
@@ -6,22 +6,26 @@ 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
|
-
|
|
13
|
+
}
|
|
14
|
+
case "ADD_DOCUMENT_TYPE": {
|
|
14
15
|
AddDocumentTypeInputSchema().parse(action.input);
|
|
15
16
|
documentEditorBaseOperationsOperations.addDocumentTypeOperation(state[action.scope], action, dispatch);
|
|
16
17
|
break;
|
|
17
|
-
|
|
18
|
+
}
|
|
19
|
+
case "REMOVE_DOCUMENT_TYPE": {
|
|
18
20
|
RemoveDocumentTypeInputSchema().parse(action.input);
|
|
19
21
|
documentEditorBaseOperationsOperations.removeDocumentTypeOperation(state[action.scope], action, dispatch);
|
|
20
22
|
break;
|
|
21
|
-
|
|
23
|
+
}
|
|
24
|
+
case "SET_EDITOR_STATUS": {
|
|
22
25
|
SetEditorStatusInputSchema().parse(action.input);
|
|
23
26
|
documentEditorBaseOperationsOperations.setEditorStatusOperation(state[action.scope], action, dispatch);
|
|
24
27
|
break;
|
|
28
|
+
}
|
|
25
29
|
default:
|
|
26
30
|
return state;
|
|
27
31
|
}
|
|
@@ -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;AAE3D,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
|
|
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,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is a scaffold file meant for customization.
|
|
3
|
-
* Delete the file and run the code generator again to have it reset
|
|
4
|
-
*/
|
|
5
1
|
export { AppModule } from "./app-module/module.js";
|
|
6
2
|
export { DocumentEditor } from "./document-editor/module.js";
|
|
7
3
|
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
|
|
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,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is a scaffold file meant for customization.
|
|
3
|
-
* Delete the file and run the code generator again to have it reset
|
|
4
|
-
*/
|
|
5
1
|
export { AppModule } from "./app-module/module.js";
|
|
6
2
|
export { DocumentEditor } from "./document-editor/module.js";
|
|
7
3
|
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;AAErD,eAAO,MAAM,OAAO;uBAC4W,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;CADl0O,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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,EAAE,
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../document-models/processor-module/gen/base-operations/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,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
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type SignalDispatch } from "document-model";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { SetProcessorNameAction, SetProcessorTypeAction, AddDocumentTypeAction, RemoveDocumentTypeAction, 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,
|
|
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,EACV,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,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;AAsFpG,eAAO,MAAM,OAAO,0DAAsD,CAAC"}
|
|
@@ -6,26 +6,31 @@ 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
|
-
|
|
13
|
+
}
|
|
14
|
+
case "SET_PROCESSOR_TYPE": {
|
|
14
15
|
SetProcessorTypeInputSchema().parse(action.input);
|
|
15
16
|
processorModuleBaseOperationsOperations.setProcessorTypeOperation(state[action.scope], action, dispatch);
|
|
16
17
|
break;
|
|
17
|
-
|
|
18
|
+
}
|
|
19
|
+
case "ADD_DOCUMENT_TYPE": {
|
|
18
20
|
AddDocumentTypeInputSchema().parse(action.input);
|
|
19
21
|
processorModuleBaseOperationsOperations.addDocumentTypeOperation(state[action.scope], action, dispatch);
|
|
20
22
|
break;
|
|
21
|
-
|
|
23
|
+
}
|
|
24
|
+
case "REMOVE_DOCUMENT_TYPE": {
|
|
22
25
|
RemoveDocumentTypeInputSchema().parse(action.input);
|
|
23
26
|
processorModuleBaseOperationsOperations.removeDocumentTypeOperation(state[action.scope], action, dispatch);
|
|
24
27
|
break;
|
|
25
|
-
|
|
28
|
+
}
|
|
29
|
+
case "SET_PROCESSOR_STATUS": {
|
|
26
30
|
SetProcessorStatusInputSchema().parse(action.input);
|
|
27
31
|
processorModuleBaseOperationsOperations.setProcessorStatusOperation(state[action.scope], action, dispatch);
|
|
28
32
|
break;
|
|
33
|
+
}
|
|
29
34
|
default:
|
|
30
35
|
return state;
|
|
31
36
|
}
|
|
@@ -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;AAE5D,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
|
|
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 +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;AAEpD,eAAO,MAAM,OAAO;sBACwG,gDAA2B;wBAA4L,kDAA6B;;eAA0iN,CAAC,eAAe,CAAC;gBAAkE,CAAC,eAAe,CAAC;iBAAmE,CAAC,aAAa,CAAC,eAAe,CAAC;;;;gBAAqS,CAAC;CADn0O,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,EAAE,
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../document-models/subgraph-module/gen/base-operations/actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,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
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type SignalDispatch } from "document-model";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { SetSubgraphNameAction, 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,
|
|
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,EACV,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,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,wBA4D3B,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;AA+ClG,eAAO,MAAM,OAAO,yDAAqD,CAAC"}
|
|
@@ -6,14 +6,16 @@ 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
|
-
|
|
13
|
+
}
|
|
14
|
+
case "SET_SUBGRAPH_STATUS": {
|
|
14
15
|
SetSubgraphStatusInputSchema().parse(action.input);
|
|
15
16
|
subgraphModuleBaseOperationsOperations.setSubgraphStatusOperation(state[action.scope], action, dispatch);
|
|
16
17
|
break;
|
|
18
|
+
}
|
|
17
19
|
default:
|
|
18
20
|
return state;
|
|
19
21
|
}
|
|
@@ -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;AAE3D,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"}
|