@powerhousedao/vetra 6.0.0-dev.249 → 6.0.0-dev.250
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/app-module-Bbj7PI-S.js +94 -0
- package/dist/app-module-Bbj7PI-S.js.map +1 -0
- package/dist/connect-CTIucT0o.js +6 -0
- package/dist/connect-CTIucT0o.js.map +1 -0
- package/dist/document-editor-DS-bZMKx.js +93 -0
- package/dist/document-editor-DS-bZMKx.js.map +1 -0
- package/dist/document-models/app-module/index.d.ts +349 -2
- package/dist/document-models/app-module/index.d.ts.map +1 -0
- package/dist/document-models/app-module/index.js +3 -2
- package/dist/document-models/document-editor/index.d.ts +325 -2
- package/dist/document-models/document-editor/index.d.ts.map +1 -0
- package/dist/document-models/document-editor/index.js +3 -2
- package/dist/document-models/index.d.ts +6 -29
- package/dist/document-models/index.js +6 -2
- package/dist/document-models/processor-module/index.d.ts +357 -2
- package/dist/document-models/processor-module/index.d.ts.map +1 -0
- package/dist/document-models/processor-module/index.js +3 -2
- package/dist/document-models/subgraph-module/index.d.ts +296 -2
- package/dist/document-models/subgraph-module/index.d.ts.map +1 -0
- package/dist/document-models/subgraph-module/index.js +3 -2
- package/dist/document-models/vetra-package/index.d.ts +386 -2
- package/dist/document-models/vetra-package/index.d.ts.map +1 -0
- package/dist/document-models/vetra-package/index.js +3 -2
- package/dist/{editor-DqkJ0B4G.js → editor-BSQfwcdz.js} +5 -4
- package/dist/{editor-DqkJ0B4G.js.map → editor-BSQfwcdz.js.map} +1 -1
- package/dist/{editor-CGNcK2z0.js → editor-Bku8e2dr.js} +5 -5
- package/dist/{editor-CGNcK2z0.js.map → editor-Bku8e2dr.js.map} +1 -1
- package/dist/{editor-ddcGG42r.js → editor-CbtrPBTP.js} +5 -4
- package/dist/{editor-ddcGG42r.js.map → editor-CbtrPBTP.js.map} +1 -1
- package/dist/{editor-D4FHn5u4.js → editor-D70FYIwV.js} +2 -2
- package/dist/{editor-D4FHn5u4.js.map → editor-D70FYIwV.js.map} +1 -1
- package/dist/{editor-CdzYJozI.js → editor-Dtg8STyT.js} +5 -5
- package/dist/{editor-CdzYJozI.js.map → editor-Dtg8STyT.js.map} +1 -1
- package/dist/{editor-CgkzQJ4g.js → editor-SfVorwsP.js} +6 -6
- package/dist/{editor-CgkzQJ4g.js.map → editor-SfVorwsP.js.map} +1 -1
- package/dist/editors/hooks/index.js +1 -1
- package/dist/editors/index.d.ts +13 -12
- package/dist/editors/index.d.ts.map +1 -1
- package/dist/editors/index.js +2 -2
- package/dist/{codegen-PnsnCMkw.js → factory-CweZppg6.js} +51 -3
- package/dist/factory-CweZppg6.js.map +1 -0
- package/dist/factory-D8ZDOMP3.js +79 -0
- package/dist/factory-D8ZDOMP3.js.map +1 -0
- package/dist/{hooks-Vx4YtE1e.js → hooks-Xexr33XS.js} +1 -1
- package/dist/{hooks-Vx4YtE1e.js.map → hooks-Xexr33XS.js.map} +1 -1
- package/dist/index.d.ts +7 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -5
- package/dist/index.js.map +1 -1
- package/dist/{processor-module-CkuQiq7B.js → module-BWlCj_0C.js} +159 -204
- package/dist/module-BWlCj_0C.js.map +1 -0
- package/dist/{subgraph-module-CU_-umq2.js → module-BoGgbKmO.js} +111 -153
- package/dist/module-BoGgbKmO.js.map +1 -0
- package/dist/module-BoX1rWiq.d.ts +6 -0
- package/dist/module-BoX1rWiq.d.ts.map +1 -0
- package/dist/module-CG6K37P8.d.ts +6 -0
- package/dist/module-CG6K37P8.d.ts.map +1 -0
- package/dist/{app-module-BbhoykB5.js → module-CTPfENDU.js} +149 -189
- package/dist/module-CTPfENDU.js.map +1 -0
- package/dist/{module-BW12i5H3.js → module-CXIFrq-R.js} +15 -11
- package/dist/module-CXIFrq-R.js.map +1 -0
- package/dist/{vetra-package-VqptqKzx.js → module-CZLiUtDI.js} +186 -236
- package/dist/module-CZLiUtDI.js.map +1 -0
- package/dist/module-Cr-9knz_.d.ts +6 -0
- package/dist/module-Cr-9knz_.d.ts.map +1 -0
- package/dist/{document-editor-CHM7Pu4m.js → module-D0SK3Nds.js} +137 -180
- package/dist/module-D0SK3Nds.js.map +1 -0
- package/dist/module-DhhQLYnQ.d.ts +6 -0
- package/dist/module-DhhQLYnQ.d.ts.map +1 -0
- package/dist/module-J-kGIl1E.d.ts +6 -0
- package/dist/module-J-kGIl1E.d.ts.map +1 -0
- package/dist/powerhouse.manifest.d.ts +8 -5
- package/dist/powerhouse.manifest.d.ts.map +1 -1
- package/dist/powerhouse.manifest.js +19 -12
- package/dist/processor-module-D0lRrrpW.js +95 -0
- package/dist/processor-module-D0lRrrpW.js.map +1 -0
- package/dist/processors/codegen/index.d.ts +21322 -2
- package/dist/processors/codegen/index.d.ts.map +1 -0
- package/dist/processors/codegen/index.js +2 -2
- package/dist/processors/index.d.ts +4 -15
- package/dist/processors/index.d.ts.map +1 -1
- package/dist/processors/index.js +8 -81
- package/dist/processors/index.js.map +1 -1
- package/dist/processors/vetra-read-model/index.d.ts +18599 -2
- package/dist/processors/vetra-read-model/index.d.ts.map +1 -0
- package/dist/processors/vetra-read-model/index.js +2 -54
- package/dist/subgraph-module-B3ipwOza.js +92 -0
- package/dist/subgraph-module-B3ipwOza.js.map +1 -0
- package/dist/switchboard-JOTFVXuj.js +8 -0
- package/dist/switchboard-JOTFVXuj.js.map +1 -0
- package/dist/{useVetraDocument-DF0teXXM.js → useVetraDocument-DoAwvHVi.js} +1 -1
- package/dist/{useVetraDocument-DF0teXXM.js.map → useVetraDocument-DoAwvHVi.js.map} +1 -1
- package/dist/vetra-package-YNLxEA-U.js +100 -0
- package/dist/vetra-package-YNLxEA-U.js.map +1 -0
- package/package.json +9 -8
- package/dist/app-module-BbhoykB5.js.map +0 -1
- package/dist/codegen-PnsnCMkw.js.map +0 -1
- package/dist/document-editor-CHM7Pu4m.js.map +0 -1
- package/dist/document-models/index.d.ts.map +0 -1
- package/dist/editor-Bsu4yikl.js +0 -2
- package/dist/index-CHfOF-Et.d.ts +0 -363
- package/dist/index-CHfOF-Et.d.ts.map +0 -1
- package/dist/index-CL_CHW_Z.d.ts +0 -330
- package/dist/index-CL_CHW_Z.d.ts.map +0 -1
- package/dist/index-C_kUPMNf.d.ts +0 -298
- package/dist/index-C_kUPMNf.d.ts.map +0 -1
- package/dist/index-CxWUNzph.d.ts +0 -21319
- package/dist/index-CxWUNzph.d.ts.map +0 -1
- package/dist/index-Ofk3NYAC.d.ts +0 -18596
- package/dist/index-Ofk3NYAC.d.ts.map +0 -1
- package/dist/index-Qr_rU6VS.d.ts +0 -271
- package/dist/index-Qr_rU6VS.d.ts.map +0 -1
- package/dist/index-cBMMID-w.d.ts +0 -323
- package/dist/index-cBMMID-w.d.ts.map +0 -1
- package/dist/module-BW12i5H3.js.map +0 -1
- package/dist/module-XCoMwFat.js +0 -59
- package/dist/module-XCoMwFat.js.map +0 -1
- package/dist/processor-module-CkuQiq7B.js.map +0 -1
- package/dist/processors/vetra-read-model/index.js.map +0 -1
- package/dist/subgraph-module-CU_-umq2.js.map +0 -1
- package/dist/vetra-package-VqptqKzx.js.map +0 -1
|
@@ -1,41 +1,79 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-pbuEa-1d.js";
|
|
2
|
-
import { BaseDocumentHeaderSchema, BaseDocumentStateSchema, baseActions, baseCreateDocument, baseLoadFromInput, baseSaveToFileHandle, createAction,
|
|
2
|
+
import { BaseDocumentHeaderSchema, BaseDocumentStateSchema, baseActions, baseCreateDocument, baseLoadFromInput, baseSaveToFileHandle, createAction, createReducer, createState, defaultBaseState, generateId, isDocumentAction } from "document-model";
|
|
3
3
|
import * as z$1 from "zod";
|
|
4
4
|
import { z } from "zod";
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
//#region document-models/subgraph-module/v1/gen/schema/zod.ts
|
|
6
|
+
const isDefinedNonNullAny = (v) => v !== void 0 && v !== null;
|
|
7
|
+
const definedNonNullAnySchema = z$1.any().refine((v) => isDefinedNonNullAny(v));
|
|
8
|
+
const StatusTypeSchema = z$1.enum(["CONFIRMED", "DRAFT"]);
|
|
9
|
+
function SetSubgraphNameInputSchema() {
|
|
10
|
+
return z$1.object({ name: z$1.string() });
|
|
11
|
+
}
|
|
12
|
+
function SetSubgraphStatusInputSchema() {
|
|
13
|
+
return z$1.object({ status: StatusTypeSchema });
|
|
14
|
+
}
|
|
15
|
+
function SubgraphModuleStateSchema() {
|
|
16
|
+
return z$1.object({
|
|
17
|
+
__typename: z$1.literal("SubgraphModuleState").optional(),
|
|
18
|
+
name: z$1.string(),
|
|
19
|
+
status: StatusTypeSchema
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region document-models/subgraph-module/v1/gen/base-operations/creators.ts
|
|
24
|
+
/**
|
|
25
|
+
* WARNING: DO NOT EDIT
|
|
26
|
+
* This file is auto-generated and updated by codegen
|
|
27
|
+
*/
|
|
28
|
+
var creators_exports = /* @__PURE__ */ __exportAll({
|
|
29
|
+
setSubgraphName: () => setSubgraphName,
|
|
30
|
+
setSubgraphStatus: () => setSubgraphStatus
|
|
31
|
+
});
|
|
32
|
+
const setSubgraphName = (input) => createAction("SET_SUBGRAPH_NAME", { ...input }, void 0, SetSubgraphNameInputSchema, "global");
|
|
33
|
+
const setSubgraphStatus = (input) => createAction("SET_SUBGRAPH_STATUS", { ...input }, void 0, SetSubgraphStatusInputSchema, "global");
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region document-models/subgraph-module/v1/actions.ts
|
|
36
|
+
/**
|
|
37
|
+
* WARNING: DO NOT EDIT
|
|
38
|
+
* This file is auto-generated and updated by codegen
|
|
39
|
+
*/
|
|
40
|
+
/** Actions for the SubgraphModule document model */
|
|
41
|
+
const actions = {
|
|
42
|
+
...baseActions,
|
|
43
|
+
...creators_exports
|
|
44
|
+
};
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region document-models/subgraph-module/v1/gen/document-model.ts
|
|
7
47
|
const documentModel = {
|
|
8
48
|
id: "powerhouse/subgraph",
|
|
9
49
|
name: "Subgraph Module",
|
|
10
|
-
extension: ".phdm",
|
|
11
|
-
description: "",
|
|
12
50
|
author: {
|
|
13
51
|
name: "Powerhouse",
|
|
14
52
|
website: "https://powerhouse.inc"
|
|
15
53
|
},
|
|
54
|
+
extension: ".subgraph",
|
|
55
|
+
description: "Declares a GraphQL subgraph (a slice of the Switchboard API contributed by the package) shipped by a Vetra Reactor Package. Create one Subgraph Module document per subgraph, then mark it CONFIRMED to trigger codegen of the subgraph scaffold under `subgraphs/` — the resolvers and schema you flesh out there are stitched into the Switchboard graph at runtime.",
|
|
16
56
|
specifications: [{
|
|
17
|
-
version: 1,
|
|
18
|
-
changeLog: [],
|
|
19
57
|
state: {
|
|
20
|
-
global: {
|
|
21
|
-
schema: "type SubgraphModuleState {\n name: String!\n status: StatusType!\n}\n\nenum StatusType {\n DRAFT\n CONFIRMED\n}",
|
|
22
|
-
initialValue: "{\n \"name\": \"\",\n \"status\": \"DRAFT\"\n}",
|
|
23
|
-
examples: []
|
|
24
|
-
},
|
|
25
58
|
local: {
|
|
26
59
|
schema: "",
|
|
27
|
-
|
|
28
|
-
|
|
60
|
+
examples: [],
|
|
61
|
+
initialValue: ""
|
|
62
|
+
},
|
|
63
|
+
global: {
|
|
64
|
+
schema: "\"\"\"\nConfiguration for a GraphQL subgraph contributed by the package. The subgraph\nis served by Switchboard and stitched into the unified Powerhouse API.\n\"\"\"\ntype SubgraphModuleState {\n \"\"\"Display name of the subgraph. Also determines the generated folder name under `subgraphs/` and the route segment Switchboard mounts it at.\"\"\"\n name: String!\n \"\"\"Lifecycle status. While DRAFT the subgraph definition is editable and codegen is skipped; switching to CONFIRMED triggers scaffold generation.\"\"\"\n status: StatusType!\n}\n\n\"\"\"\nLifecycle status of a module definition.\n- DRAFT: still being edited; codegen does not run.\n- CONFIRMED: locked in; codegen produces the corresponding scaffold.\n\"\"\"\nenum StatusType {\n DRAFT\n CONFIRMED\n}",
|
|
65
|
+
examples: [],
|
|
66
|
+
initialValue: "{\n \"name\": \"\",\n \"status\": \"DRAFT\"\n}"
|
|
29
67
|
}
|
|
30
68
|
},
|
|
31
69
|
modules: [{
|
|
32
70
|
id: "8af5bda9-6fc7-4427-bfed-1d32d76a552f",
|
|
33
71
|
name: "base_operations",
|
|
34
|
-
description: "",
|
|
72
|
+
description: "Set the subgraph's identity and lifecycle status.",
|
|
35
73
|
operations: [{
|
|
36
74
|
id: "d7cd6b6b-01ea-42c8-97e2-288e04b50b42",
|
|
37
75
|
name: "SET_SUBGRAPH_NAME",
|
|
38
|
-
description: "",
|
|
76
|
+
description: "Set the display name of the subgraph. Also determines the generated folder under `subgraphs/` and the route segment Switchboard mounts it at.",
|
|
39
77
|
schema: "input SetSubgraphNameInput {\n name: String!\n}",
|
|
40
78
|
template: "",
|
|
41
79
|
reducer: "",
|
|
@@ -45,7 +83,7 @@ const documentModel = {
|
|
|
45
83
|
}, {
|
|
46
84
|
id: "5a20e641-dc36-428e-8924-ecb07f3f1b94",
|
|
47
85
|
name: "SET_SUBGRAPH_STATUS",
|
|
48
|
-
description: "",
|
|
86
|
+
description: "Move the subgraph between DRAFT and CONFIRMED. Codegen only runs once the status is CONFIRMED.",
|
|
49
87
|
schema: "input SetSubgraphStatusInput {\n status: StatusType!\n}",
|
|
50
88
|
template: "",
|
|
51
89
|
reducer: "",
|
|
@@ -53,40 +91,53 @@ const documentModel = {
|
|
|
53
91
|
examples: [],
|
|
54
92
|
scope: "global"
|
|
55
93
|
}]
|
|
56
|
-
}]
|
|
94
|
+
}],
|
|
95
|
+
version: 1,
|
|
96
|
+
changeLog: []
|
|
57
97
|
}]
|
|
58
98
|
};
|
|
59
99
|
//#endregion
|
|
60
|
-
//#region document-models/subgraph-module/
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
return z$1.object({
|
|
72
|
-
__typename: z$1.literal("SubgraphModuleState").optional(),
|
|
73
|
-
name: z$1.string(),
|
|
74
|
-
status: StatusTypeSchema
|
|
75
|
-
});
|
|
76
|
-
}
|
|
100
|
+
//#region document-models/subgraph-module/v1/src/reducers/base-operations.ts
|
|
101
|
+
const subgraphModuleBaseOperationsOperations = {
|
|
102
|
+
setSubgraphNameOperation(state, action, dispatch) {
|
|
103
|
+
const trimmedName = action.input.name.trim();
|
|
104
|
+
if (trimmedName === "") throw new Error("Subgraph name cannot be empty");
|
|
105
|
+
state.name = trimmedName;
|
|
106
|
+
},
|
|
107
|
+
setSubgraphStatusOperation(state, action, dispatch) {
|
|
108
|
+
state.status = action.input.status;
|
|
109
|
+
}
|
|
110
|
+
};
|
|
77
111
|
//#endregion
|
|
78
|
-
//#region document-models/subgraph-module/gen/
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
112
|
+
//#region document-models/subgraph-module/v1/gen/reducer.ts
|
|
113
|
+
const stateReducer = (state, action, dispatch) => {
|
|
114
|
+
if (isDocumentAction(action)) return state;
|
|
115
|
+
switch (action.type) {
|
|
116
|
+
case "SET_SUBGRAPH_NAME":
|
|
117
|
+
SetSubgraphNameInputSchema().parse(action.input);
|
|
118
|
+
subgraphModuleBaseOperationsOperations.setSubgraphNameOperation(state[action.scope], action, dispatch);
|
|
119
|
+
break;
|
|
120
|
+
case "SET_SUBGRAPH_STATUS":
|
|
121
|
+
SetSubgraphStatusInputSchema().parse(action.input);
|
|
122
|
+
subgraphModuleBaseOperationsOperations.setSubgraphStatusOperation(state[action.scope], action, dispatch);
|
|
123
|
+
break;
|
|
124
|
+
default: return state;
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
const reducer = createReducer(stateReducer);
|
|
85
128
|
//#endregion
|
|
86
|
-
//#region document-models/subgraph-module/gen/document-type.ts
|
|
129
|
+
//#region document-models/subgraph-module/v1/gen/document-type.ts
|
|
130
|
+
/**
|
|
131
|
+
* WARNING: DO NOT EDIT
|
|
132
|
+
* This file is auto-generated and updated by codegen
|
|
133
|
+
*/
|
|
87
134
|
const subgraphModuleDocumentType = "powerhouse/subgraph";
|
|
88
135
|
//#endregion
|
|
89
|
-
//#region document-models/subgraph-module/gen/document-schema.ts
|
|
136
|
+
//#region document-models/subgraph-module/v1/gen/document-schema.ts
|
|
137
|
+
/**
|
|
138
|
+
* WARNING: DO NOT EDIT
|
|
139
|
+
* This file is auto-generated and updated by codegen
|
|
140
|
+
*/
|
|
90
141
|
/** Schema for validating the header object of a SubgraphModule document */
|
|
91
142
|
const SubgraphModuleDocumentHeaderSchema = BaseDocumentHeaderSchema.extend({ documentType: z.literal(subgraphModuleDocumentType) });
|
|
92
143
|
/** Schema for validating the state object of a SubgraphModule document */
|
|
@@ -113,43 +164,14 @@ function assertIsSubgraphModuleDocument(document) {
|
|
|
113
164
|
SubgraphModuleDocumentSchema.parse(document);
|
|
114
165
|
}
|
|
115
166
|
//#endregion
|
|
116
|
-
//#region document-models/subgraph-module/
|
|
117
|
-
const subgraphModuleBaseOperationsOperations = {
|
|
118
|
-
setSubgraphNameOperation(state, action, dispatch) {
|
|
119
|
-
const trimmedName = action.input.name.trim();
|
|
120
|
-
if (trimmedName === "") throw new Error("Subgraph name cannot be empty");
|
|
121
|
-
state.name = trimmedName;
|
|
122
|
-
},
|
|
123
|
-
setSubgraphStatusOperation(state, action, dispatch) {
|
|
124
|
-
state.status = action.input.status;
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
//#endregion
|
|
128
|
-
//#region document-models/subgraph-module/gen/reducer.ts
|
|
129
|
-
const stateReducer = (state, action, dispatch) => {
|
|
130
|
-
if (isDocumentAction(action)) return state;
|
|
131
|
-
switch (action.type) {
|
|
132
|
-
case "SET_SUBGRAPH_NAME":
|
|
133
|
-
SetSubgraphNameInputSchema().parse(action.input);
|
|
134
|
-
subgraphModuleBaseOperationsOperations.setSubgraphNameOperation(state[action.scope], action, dispatch);
|
|
135
|
-
break;
|
|
136
|
-
case "SET_SUBGRAPH_STATUS":
|
|
137
|
-
SetSubgraphStatusInputSchema().parse(action.input);
|
|
138
|
-
subgraphModuleBaseOperationsOperations.setSubgraphStatusOperation(state[action.scope], action, dispatch);
|
|
139
|
-
break;
|
|
140
|
-
default: return state;
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
const reducer = createReducer(stateReducer);
|
|
144
|
-
//#endregion
|
|
145
|
-
//#region document-models/subgraph-module/gen/utils.ts
|
|
167
|
+
//#region document-models/subgraph-module/v1/gen/utils.ts
|
|
146
168
|
const initialGlobalState = {
|
|
147
169
|
name: "",
|
|
148
170
|
status: "DRAFT"
|
|
149
171
|
};
|
|
150
172
|
const initialLocalState = {};
|
|
151
173
|
const utils$1 = {
|
|
152
|
-
fileExtension: ".
|
|
174
|
+
fileExtension: ".subgraph",
|
|
153
175
|
createState(state) {
|
|
154
176
|
return {
|
|
155
177
|
...defaultBaseState(),
|
|
@@ -189,90 +211,26 @@ const utils$1 = {
|
|
|
189
211
|
}
|
|
190
212
|
};
|
|
191
213
|
//#endregion
|
|
192
|
-
//#region document-models/subgraph-module/
|
|
193
|
-
function defaultGlobalState() {
|
|
194
|
-
return {
|
|
195
|
-
name: "",
|
|
196
|
-
status: "DRAFT"
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
function defaultLocalState() {
|
|
200
|
-
return {};
|
|
201
|
-
}
|
|
202
|
-
function defaultPHState() {
|
|
203
|
-
return {
|
|
204
|
-
...defaultBaseState(),
|
|
205
|
-
global: defaultGlobalState(),
|
|
206
|
-
local: defaultLocalState()
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
function createGlobalState(state) {
|
|
210
|
-
return {
|
|
211
|
-
...defaultGlobalState(),
|
|
212
|
-
...state || {}
|
|
213
|
-
};
|
|
214
|
-
}
|
|
215
|
-
function createLocalState(state) {
|
|
216
|
-
return {
|
|
217
|
-
...defaultLocalState(),
|
|
218
|
-
...state || {}
|
|
219
|
-
};
|
|
220
|
-
}
|
|
221
|
-
function createState$1(baseState, globalState, localState) {
|
|
222
|
-
return {
|
|
223
|
-
...createBaseState(baseState?.auth, baseState?.document),
|
|
224
|
-
global: createGlobalState(globalState),
|
|
225
|
-
local: createLocalState(localState)
|
|
226
|
-
};
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* Creates a SubgraphModuleDocument with custom global and local state
|
|
230
|
-
* This properly handles the PHBaseState requirements while allowing
|
|
231
|
-
* document-specific state to be set.
|
|
232
|
-
*/
|
|
233
|
-
function createSubgraphModuleDocument(state) {
|
|
234
|
-
return utils$1.createDocument(state ? createState$1(createBaseState(state.auth, state.document), state.global, state.local) : void 0);
|
|
235
|
-
}
|
|
236
|
-
//#endregion
|
|
237
|
-
//#region document-models/subgraph-module/src/utils.ts
|
|
214
|
+
//#region document-models/subgraph-module/v1/src/utils.ts
|
|
238
215
|
var utils_exports = /* @__PURE__ */ __exportAll({});
|
|
239
216
|
//#endregion
|
|
240
|
-
//#region document-models/subgraph-module/
|
|
241
|
-
/** Hook to get a SubgraphModule document by its id */
|
|
242
|
-
function useSubgraphModuleDocumentById(documentId) {
|
|
243
|
-
const [document, dispatch] = useDocumentById(documentId);
|
|
244
|
-
if (!isSubgraphModuleDocument(document)) return [void 0, void 0];
|
|
245
|
-
return [document, dispatch];
|
|
246
|
-
}
|
|
247
|
-
/** Hook to get the selected SubgraphModule document */
|
|
248
|
-
function useSelectedSubgraphModuleDocument() {
|
|
249
|
-
const [document, dispatch] = useSelectedDocument();
|
|
250
|
-
assertIsSubgraphModuleDocument(document);
|
|
251
|
-
return [document, dispatch];
|
|
252
|
-
}
|
|
253
|
-
/** Hook to get all SubgraphModule documents in the selected drive */
|
|
254
|
-
function useSubgraphModuleDocumentsInSelectedDrive() {
|
|
255
|
-
return useDocumentsInSelectedDrive()?.filter(isSubgraphModuleDocument);
|
|
256
|
-
}
|
|
257
|
-
/** Hook to get all SubgraphModule documents in the selected folder */
|
|
258
|
-
function useSubgraphModuleDocumentsInSelectedFolder() {
|
|
259
|
-
return useDocumentsInSelectedFolder()?.filter(isSubgraphModuleDocument);
|
|
260
|
-
}
|
|
261
|
-
//#endregion
|
|
262
|
-
//#region document-models/subgraph-module/actions.ts
|
|
263
|
-
/** Actions for the SubgraphModule document model */
|
|
264
|
-
const actions = {
|
|
265
|
-
...baseActions,
|
|
266
|
-
...creators_exports
|
|
267
|
-
};
|
|
268
|
-
//#endregion
|
|
269
|
-
//#region document-models/subgraph-module/utils.ts
|
|
217
|
+
//#region document-models/subgraph-module/v1/utils.ts
|
|
270
218
|
/** Utils for the SubgraphModule document model */
|
|
271
219
|
const utils = {
|
|
272
220
|
...utils$1,
|
|
273
221
|
...utils_exports
|
|
274
222
|
};
|
|
275
223
|
//#endregion
|
|
276
|
-
|
|
224
|
+
//#region document-models/subgraph-module/v1/module.ts
|
|
225
|
+
/** Document model module for the SubgraphModule document type */
|
|
226
|
+
const SubgraphModule = {
|
|
227
|
+
version: 1,
|
|
228
|
+
reducer,
|
|
229
|
+
actions,
|
|
230
|
+
utils,
|
|
231
|
+
documentModel: createState(defaultBaseState(), documentModel)
|
|
232
|
+
};
|
|
233
|
+
//#endregion
|
|
234
|
+
export { SubgraphModuleStateSchema as C, StatusTypeSchema as S, isDefinedNonNullAny as T, creators_exports as _, utils$1 as a, SetSubgraphNameInputSchema as b, SubgraphModulePHStateSchema as c, isSubgraphModuleDocument as d, isSubgraphModuleState as f, actions as g, documentModel as h, initialLocalState as i, assertIsSubgraphModuleDocument as l, reducer as m, utils as n, SubgraphModuleDocumentHeaderSchema as o, subgraphModuleDocumentType as p, initialGlobalState as r, SubgraphModuleDocumentSchema as s, SubgraphModule as t, assertIsSubgraphModuleState as u, setSubgraphName as v, definedNonNullAnySchema as w, SetSubgraphStatusInputSchema as x, setSubgraphStatus as y };
|
|
277
235
|
|
|
278
|
-
//# sourceMappingURL=
|
|
236
|
+
//# sourceMappingURL=module-BoGgbKmO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module-BoGgbKmO.js","names":["z","subgraphModuleBaseOperationsActions","utils","genUtils","customUtils"],"sources":["../document-models/subgraph-module/v1/gen/schema/zod.ts","../document-models/subgraph-module/v1/gen/base-operations/creators.ts","../document-models/subgraph-module/v1/actions.ts","../document-models/subgraph-module/v1/gen/document-model.ts","../document-models/subgraph-module/v1/src/reducers/base-operations.ts","../document-models/subgraph-module/v1/gen/reducer.ts","../document-models/subgraph-module/v1/gen/document-type.ts","../document-models/subgraph-module/v1/gen/document-schema.ts","../document-models/subgraph-module/v1/gen/utils.ts","../document-models/subgraph-module/v1/src/utils.ts","../document-models/subgraph-module/v1/utils.ts","../document-models/subgraph-module/v1/module.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-object-type */\n/* eslint-disable @typescript-eslint/no-unused-vars */\nimport * as z from \"zod\";\nimport type {\n SetSubgraphNameInput,\n SetSubgraphStatusInput,\n StatusType,\n SubgraphModuleState,\n} from \"./types.js\";\n\ntype Properties<T> = Required<{\n [K in keyof T]: z.ZodType<T[K]>;\n}>;\n\ntype definedNonNullAny = {};\n\nexport const isDefinedNonNullAny = (v: any): v is definedNonNullAny =>\n v !== undefined && v !== null;\n\nexport const definedNonNullAnySchema = z\n .any()\n .refine((v) => isDefinedNonNullAny(v));\n\nexport const StatusTypeSchema = z.enum([\"CONFIRMED\", \"DRAFT\"]);\n\nexport function SetSubgraphNameInputSchema(): z.ZodObject<\n Properties<SetSubgraphNameInput>\n> {\n return z.object({\n name: z.string(),\n });\n}\n\nexport function SetSubgraphStatusInputSchema(): z.ZodObject<\n Properties<SetSubgraphStatusInput>\n> {\n return z.object({\n status: StatusTypeSchema,\n });\n}\n\nexport function SubgraphModuleStateSchema(): z.ZodObject<\n Properties<SubgraphModuleState>\n> {\n return z.object({\n __typename: z.literal(\"SubgraphModuleState\").optional(),\n name: z.string(),\n status: StatusTypeSchema,\n });\n}\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { createAction } from \"document-model\";\nimport {\n SetSubgraphNameInputSchema,\n SetSubgraphStatusInputSchema,\n} from \"../schema/zod.js\";\nimport type { SetSubgraphNameInput, SetSubgraphStatusInput } from \"../types.js\";\nimport type {\n SetSubgraphNameAction,\n SetSubgraphStatusAction,\n} from \"./actions.js\";\n\nexport const setSubgraphName = (input: SetSubgraphNameInput) =>\n createAction<SetSubgraphNameAction>(\n \"SET_SUBGRAPH_NAME\",\n { ...input },\n undefined,\n SetSubgraphNameInputSchema,\n \"global\",\n );\n\nexport const setSubgraphStatus = (input: SetSubgraphStatusInput) =>\n createAction<SetSubgraphStatusAction>(\n \"SET_SUBGRAPH_STATUS\",\n { ...input },\n undefined,\n SetSubgraphStatusInputSchema,\n \"global\",\n );\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { baseActions } from \"document-model\";\nimport { subgraphModuleBaseOperationsActions } from \"./gen/creators.js\";\n\n/** Actions for the SubgraphModule document model */\n\nexport const actions = {\n ...baseActions,\n ...subgraphModuleBaseOperationsActions,\n};\n","import type { DocumentModelGlobalState } from \"document-model\";\n\nexport const documentModel: DocumentModelGlobalState = {\n id: \"powerhouse/subgraph\",\n name: \"Subgraph Module\",\n author: {\n name: \"Powerhouse\",\n website: \"https://powerhouse.inc\",\n },\n extension: \".subgraph\",\n description:\n \"Declares a GraphQL subgraph (a slice of the Switchboard API contributed by the package) shipped by a Vetra Reactor Package. Create one Subgraph Module document per subgraph, then mark it CONFIRMED to trigger codegen of the subgraph scaffold under `subgraphs/` \\u2014 the resolvers and schema you flesh out there are stitched into the Switchboard graph at runtime.\",\n specifications: [\n {\n state: {\n local: {\n schema: \"\",\n examples: [],\n initialValue: \"\",\n },\n global: {\n schema:\n '\"\"\"\\nConfiguration for a GraphQL subgraph contributed by the package. The subgraph\\nis served by Switchboard and stitched into the unified Powerhouse API.\\n\"\"\"\\ntype SubgraphModuleState {\\n \"\"\"Display name of the subgraph. Also determines the generated folder name under `subgraphs/` and the route segment Switchboard mounts it at.\"\"\"\\n name: String!\\n \"\"\"Lifecycle status. While DRAFT the subgraph definition is editable and codegen is skipped; switching to CONFIRMED triggers scaffold generation.\"\"\"\\n status: StatusType!\\n}\\n\\n\"\"\"\\nLifecycle status of a module definition.\\n- DRAFT: still being edited; codegen does not run.\\n- CONFIRMED: locked in; codegen produces the corresponding scaffold.\\n\"\"\"\\nenum StatusType {\\n DRAFT\\n CONFIRMED\\n}',\n examples: [],\n initialValue: '{\\n \"name\": \"\",\\n \"status\": \"DRAFT\"\\n}',\n },\n },\n modules: [\n {\n id: \"8af5bda9-6fc7-4427-bfed-1d32d76a552f\",\n name: \"base_operations\",\n description: \"Set the subgraph's identity and lifecycle status.\",\n operations: [\n {\n id: \"d7cd6b6b-01ea-42c8-97e2-288e04b50b42\",\n name: \"SET_SUBGRAPH_NAME\",\n description:\n \"Set the display name of the subgraph. Also determines the generated folder under `subgraphs/` and the route segment Switchboard mounts it at.\",\n schema: \"input SetSubgraphNameInput {\\n name: String!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"5a20e641-dc36-428e-8924-ecb07f3f1b94\",\n name: \"SET_SUBGRAPH_STATUS\",\n description:\n \"Move the subgraph between DRAFT and CONFIRMED. Codegen only runs once the status is CONFIRMED.\",\n schema:\n \"input SetSubgraphStatusInput {\\n status: StatusType!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n ],\n },\n ],\n version: 1,\n changeLog: [],\n },\n ],\n};\n","import type { SubgraphModuleBaseOperationsOperations } from \"document-models/subgraph-module/v1\";\n\nexport const subgraphModuleBaseOperationsOperations: SubgraphModuleBaseOperationsOperations =\n {\n setSubgraphNameOperation(state, action, dispatch) {\n const trimmedName = action.input.name.trim();\n if (trimmedName === \"\") {\n throw new Error(\"Subgraph name cannot be empty\");\n }\n state.name = trimmedName;\n },\n setSubgraphStatusOperation(state, action, dispatch) {\n state.status = action.input.status;\n },\n };\n","/* eslint-disable @typescript-eslint/no-unsafe-member-access */\n/* eslint-disable @typescript-eslint/no-unsafe-argument */\nimport type { Reducer, StateReducer } from \"document-model\";\nimport { createReducer, isDocumentAction } from \"document-model\";\nimport type { SubgraphModulePHState } from \"document-models/subgraph-module/v1\";\n\nimport { subgraphModuleBaseOperationsOperations } from \"../src/reducers/base-operations.js\";\n\nimport {\n SetSubgraphNameInputSchema,\n SetSubgraphStatusInputSchema,\n} from \"./schema/zod.js\";\n\nconst stateReducer: StateReducer<SubgraphModulePHState> = (\n state,\n action,\n dispatch,\n) => {\n if (isDocumentAction(action)) {\n return state;\n }\n switch (action.type) {\n case \"SET_SUBGRAPH_NAME\": {\n SetSubgraphNameInputSchema().parse(action.input);\n\n subgraphModuleBaseOperationsOperations.setSubgraphNameOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n case \"SET_SUBGRAPH_STATUS\": {\n SetSubgraphStatusInputSchema().parse(action.input);\n\n subgraphModuleBaseOperationsOperations.setSubgraphStatusOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n default:\n return state;\n }\n};\n\nexport const reducer: Reducer<SubgraphModulePHState> =\n createReducer(stateReducer);\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nexport const subgraphModuleDocumentType = \"powerhouse/subgraph\";\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport {\n BaseDocumentHeaderSchema,\n BaseDocumentStateSchema,\n} from \"document-model\";\nimport { z } from \"zod\";\nimport { subgraphModuleDocumentType } from \"./document-type.js\";\nimport { SubgraphModuleStateSchema } from \"./schema/zod.js\";\nimport type { SubgraphModuleDocument, SubgraphModulePHState } from \"./types.js\";\n\n/** Schema for validating the header object of a SubgraphModule document */\nexport const SubgraphModuleDocumentHeaderSchema =\n BaseDocumentHeaderSchema.extend({\n documentType: z.literal(subgraphModuleDocumentType),\n });\n\n/** Schema for validating the state object of a SubgraphModule document */\nexport const SubgraphModulePHStateSchema = BaseDocumentStateSchema.extend({\n global: SubgraphModuleStateSchema(),\n});\n\nexport const SubgraphModuleDocumentSchema = z.object({\n header: SubgraphModuleDocumentHeaderSchema,\n state: SubgraphModulePHStateSchema,\n initialState: SubgraphModulePHStateSchema,\n});\n\n/** Simple helper function to check if a state object is a SubgraphModule document state object */\nexport function isSubgraphModuleState(\n state: unknown,\n): state is SubgraphModulePHState {\n return SubgraphModulePHStateSchema.safeParse(state).success;\n}\n\n/** Simple helper function to assert that a document state object is a SubgraphModule document state object */\nexport function assertIsSubgraphModuleState(\n state: unknown,\n): asserts state is SubgraphModulePHState {\n SubgraphModulePHStateSchema.parse(state);\n}\n\n/** Simple helper function to check if a document is a SubgraphModule document */\nexport function isSubgraphModuleDocument(\n document: unknown,\n): document is SubgraphModuleDocument {\n return SubgraphModuleDocumentSchema.safeParse(document).success;\n}\n\n/** Simple helper function to assert that a document is a SubgraphModule document */\nexport function assertIsSubgraphModuleDocument(\n document: unknown,\n): asserts document is SubgraphModuleDocument {\n SubgraphModuleDocumentSchema.parse(document);\n}\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentModelUtils } from \"document-model\";\nimport {\n baseCreateDocument,\n baseLoadFromInput,\n baseSaveToFileHandle,\n defaultBaseState,\n generateId,\n} from \"document-model\";\nimport {\n assertIsSubgraphModuleDocument,\n assertIsSubgraphModuleState,\n isSubgraphModuleDocument,\n isSubgraphModuleState,\n} from \"./document-schema.js\";\nimport { subgraphModuleDocumentType } from \"./document-type.js\";\nimport { reducer } from \"./reducer.js\";\nimport type {\n SubgraphModuleGlobalState,\n SubgraphModuleLocalState,\n SubgraphModulePHState,\n} from \"./types.js\";\n\nexport const initialGlobalState: SubgraphModuleGlobalState = {\n name: \"\",\n status: \"DRAFT\",\n};\nexport const initialLocalState: SubgraphModuleLocalState = {};\n\nexport const utils: DocumentModelUtils<SubgraphModulePHState> = {\n fileExtension: \".subgraph\",\n createState(state) {\n return {\n ...defaultBaseState(),\n global: { ...initialGlobalState, ...state?.global },\n local: { ...initialLocalState, ...state?.local },\n };\n },\n createDocument(state) {\n const document = baseCreateDocument(utils.createState, state);\n\n document.header.documentType = subgraphModuleDocumentType;\n\n // for backwards compatibility, but this is NOT a valid signed document id\n document.header.id = generateId();\n\n return document;\n },\n saveToFileHandle(document, input) {\n return baseSaveToFileHandle(document, input);\n },\n loadFromInput(input) {\n return baseLoadFromInput(input, reducer);\n },\n isStateOfType(state) {\n return isSubgraphModuleState(state);\n },\n assertIsStateOfType(state) {\n return assertIsSubgraphModuleState(state);\n },\n isDocumentOfType(document) {\n return isSubgraphModuleDocument(document);\n },\n assertIsDocumentOfType(document) {\n return assertIsSubgraphModuleDocument(document);\n },\n};\n","export {};\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentModelUtils } from \"document-model\";\nimport type { SubgraphModulePHState } from \"./gen/types.js\";\nimport { utils as genUtils } from \"./gen/utils.js\";\nimport * as customUtils from \"./src/utils.js\";\n\n/** Utils for the SubgraphModule document model */\nexport const utils: DocumentModelUtils<SubgraphModulePHState> = {\n ...genUtils,\n ...customUtils,\n};\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentModelModule } from \"document-model\";\nimport { createState, defaultBaseState } from \"document-model\";\nimport { actions } from \"./actions.js\";\nimport { documentModel } from \"./gen/document-model.js\";\nimport { reducer } from \"./gen/reducer.js\";\nimport type { SubgraphModulePHState } from \"./gen/types.js\";\nimport { utils } from \"./utils.js\";\n\n/** Document model module for the SubgraphModule document type */\nexport const SubgraphModule = {\n version: 1,\n reducer,\n actions,\n utils,\n documentModel: createState(defaultBaseState(), documentModel),\n} as const satisfies DocumentModelModule<SubgraphModulePHState>;\n"],"mappings":"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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region document-models/document-editor/v1/module.d.ts
|
|
2
|
+
/** Document model module for the DocumentEditor document type */
|
|
3
|
+
declare const DocumentEditor: DocumentModelModule<any>;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { DocumentEditor as t };
|
|
6
|
+
//# sourceMappingURL=module-BoX1rWiq.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module-BoX1rWiq.d.ts","names":[],"sources":["../document-models/document-editor/v1/module.ts"],"mappings":";;cAaa,cAAA,EAAc,mBAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module-CG6K37P8.d.ts","names":[],"sources":["../document-models/app-module/v1/module.ts"],"mappings":";;cAaa,SAAA,EAAS,mBAAA"}
|