@powerhousedao/vetra 6.2.3-dev.10 → 6.2.3-dev.100
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/codegen/index.d.ts +30 -19
- package/dist/codegen/index.d.ts.map +1 -1
- package/dist/codegen/index.js +39 -34
- package/dist/codegen/index.js.map +1 -1
- package/dist/codegen/spec.d.ts +3 -2
- package/dist/codegen/spec.js +1 -1
- package/dist/{connect-qpJ9OUaH.js → connect-EqImHuZ2.js} +1 -1
- package/dist/{connect-qpJ9OUaH.js.map → connect-EqImHuZ2.js.map} +1 -1
- package/dist/document-models/app-module/index.d.ts +4 -12
- package/dist/document-models/app-module/index.js +4 -4
- package/dist/document-models/app-module/index.js.map +1 -1
- package/dist/document-models/document-editor/index.d.ts +4 -12
- package/dist/document-models/document-editor/index.js +4 -4
- package/dist/document-models/document-editor/index.js.map +1 -1
- package/dist/document-models/index.d.ts +7 -6
- package/dist/document-models/index.js +5 -5
- package/dist/document-models/processor-module/index.d.ts +4 -12
- package/dist/document-models/processor-module/index.js +5 -5
- package/dist/document-models/processor-module/index.js.map +1 -1
- package/dist/document-models/subgraph-module/index.d.ts +4 -12
- package/dist/document-models/subgraph-module/index.js +4 -4
- package/dist/document-models/subgraph-module/index.js.map +1 -1
- package/dist/document-models/vetra-package/index.d.ts +4 -12
- package/dist/document-models/vetra-package/index.js +3 -3
- package/dist/{editor-_0gdltOt.js → editor-BDR7IYJG.js} +5 -7
- package/dist/editor-BDR7IYJG.js.map +1 -0
- package/dist/{editor-CLbvu3pG.js → editor-CbT_8Z6A.js} +6 -8
- package/dist/editor-CbT_8Z6A.js.map +1 -0
- package/dist/{editor-CCdg1mJL.js → editor-CnfajXGg.js} +5 -7
- package/dist/{editor-CCdg1mJL.js.map → editor-CnfajXGg.js.map} +1 -1
- package/dist/{editor-Fgw7attg.js → editor-Cnk0M044.js} +70 -51
- package/dist/editor-Cnk0M044.js.map +1 -0
- package/dist/{editor-LRAwrgdQ.js → editor-D5SIbFn_.js} +10 -9
- package/dist/editor-D5SIbFn_.js.map +1 -0
- package/dist/{editor-C13SvgUy.js → editor-SJk7cr6k.js} +5 -7
- package/dist/editor-SJk7cr6k.js.map +1 -0
- package/dist/editors/components/index.d.ts +3 -3
- package/dist/editors/components/index.d.ts.map +1 -1
- package/dist/editors/components/index.js.map +1 -1
- package/dist/editors/hooks/index.d.ts +3 -3
- package/dist/editors/hooks/index.d.ts.map +1 -1
- package/dist/editors/hooks/index.js +1 -1
- package/dist/editors/index.d.ts +18 -8
- package/dist/editors/index.d.ts.map +1 -1
- package/dist/editors/index.js +1 -1
- package/dist/{factory-5eiZohiv.js → factory-BUuO4fIN.js} +12 -4
- package/dist/factory-BUuO4fIN.js.map +1 -0
- package/dist/{factory-DMl8eB3P.js → factory-GIkoxPdL.js} +16 -12
- package/dist/factory-GIkoxPdL.js.map +1 -0
- package/dist/{hooks-BIgFcbaF.js → hooks-BbxvC-C3.js} +2 -2
- package/dist/{hooks-BIgFcbaF.js.map → hooks-BbxvC-C3.js.map} +1 -1
- package/dist/index-BwHVZmO6.d.ts +43 -0
- package/dist/index-BwHVZmO6.d.ts.map +1 -0
- package/dist/{index-Dm_gN1DR.d.ts → index-C56rbYzd.d.ts} +27 -59
- package/dist/index-C56rbYzd.d.ts.map +1 -0
- package/dist/index-CDV0nUS6.d.ts +36 -0
- package/dist/index-CDV0nUS6.d.ts.map +1 -0
- package/dist/{index-f_um1g-i.d.ts → index-ChQj71kz.d.ts} +27 -62
- package/dist/index-ChQj71kz.d.ts.map +1 -0
- package/dist/index-CiPX7twW.d.ts +34 -0
- package/dist/index-CiPX7twW.d.ts.map +1 -0
- package/dist/{index-SB-AtQdU.d.ts → index-CqDvbSe4.d.ts} +31 -64
- package/dist/index-CqDvbSe4.d.ts.map +1 -0
- package/dist/index-DGhkn3As.d.ts +40 -0
- package/dist/index-DGhkn3As.d.ts.map +1 -0
- package/dist/index-DoopUfIG.d.ts +32 -0
- package/dist/index-DoopUfIG.d.ts.map +1 -0
- package/dist/{index-B5ijieNt.d.ts → index-RAhSmsFD.d.ts} +22 -55
- package/dist/index-RAhSmsFD.d.ts.map +1 -0
- package/dist/index.d.ts +56 -93
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +84 -12
- package/dist/index.js.map +1 -1
- package/dist/{logger-WHD0fyLm.js → logger-BFxMdimR.js} +1 -1
- package/dist/{logger-WHD0fyLm.js.map → logger-BFxMdimR.js.map} +1 -1
- package/dist/{module-CRq_lUkG.js → module-23VayWKe.js} +9 -9
- package/dist/module-23VayWKe.js.map +1 -0
- package/dist/{module-Chqkdq4U.js → module-2JZcvfVs.js} +3 -3
- package/dist/{module-Chqkdq4U.js.map → module-2JZcvfVs.js.map} +1 -1
- package/dist/{module-DXT-FMxU.js → module-B6S4QGOx.js} +7 -7
- package/dist/module-B6S4QGOx.js.map +1 -0
- package/dist/{module-bKT_e3CH.js → module-BktWa0rB.js} +11 -9
- package/dist/module-BktWa0rB.js.map +1 -0
- package/dist/{module-ciAK1LUC.d.ts → module-C-jL7yqs.d.ts} +38 -70
- package/dist/module-C-jL7yqs.d.ts.map +1 -0
- package/dist/{module-CRfHlbnq.js → module-FXJRy_1W.js} +2 -2
- package/dist/{module-CRfHlbnq.js.map → module-FXJRy_1W.js.map} +1 -1
- package/dist/{module-Bx1OEHxF.js → module-hLzF5tCL.js} +3 -3
- package/dist/{module-Bx1OEHxF.js.map → module-hLzF5tCL.js.map} +1 -1
- package/dist/{ph-factories-CjbIAMgT.js → ph-factories-Bgnr3mK3.js} +2 -2
- package/dist/{ph-factories-CjbIAMgT.js.map → ph-factories-Bgnr3mK3.js.map} +1 -1
- package/dist/{ph-factories-Ce8oAqs9.js → ph-factories-CgoFCmG0.js} +2 -2
- package/dist/{ph-factories-Ce8oAqs9.js.map → ph-factories-CgoFCmG0.js.map} +1 -1
- package/dist/{ph-factories-dVj6mIlR.js → ph-factories-DhLtvC7j.js} +2 -2
- package/dist/{ph-factories-dVj6mIlR.js.map → ph-factories-DhLtvC7j.js.map} +1 -1
- package/dist/{ph-factories-CljTAAVS.js → ph-factories-fEke-Nr8.js} +2 -2
- package/dist/{ph-factories-CljTAAVS.js.map → ph-factories-fEke-Nr8.js.map} +1 -1
- package/dist/powerhouse.manifest.json +76 -0
- package/dist/{processor-trJFuoHh.js → processor-Cb2shrDB.js} +436 -328
- package/dist/processor-Cb2shrDB.js.map +1 -0
- package/dist/processors/codegen/index.d.ts +14 -6
- package/dist/processors/codegen/index.d.ts.map +1 -1
- package/dist/processors/codegen/index.js +2 -2
- package/dist/processors/index.d.ts +2 -3
- package/dist/processors/index.d.ts.map +1 -1
- package/dist/processors/index.js +1 -1
- package/dist/processors/index.js.map +1 -1
- package/dist/processors/vetra-read-model/index.d.ts +47 -49
- package/dist/processors/vetra-read-model/index.d.ts.map +1 -1
- package/dist/processors/vetra-read-model/index.js +1 -1
- package/dist/{spec-api-DobY5TUJ.js → spec-api-BGj7gcQn.js} +24 -18
- package/dist/{spec-api-DobY5TUJ.js.map → spec-api-BGj7gcQn.js.map} +1 -1
- package/dist/{specs-BeVdfCwg.d.ts → specs-DoTSfuxN.d.ts} +7 -4
- package/dist/specs-DoTSfuxN.d.ts.map +1 -0
- package/dist/subgraph-type-lint-Dr8Wu0VB.js +94 -0
- package/dist/subgraph-type-lint-Dr8Wu0VB.js.map +1 -0
- package/dist/switchboard-DUSh_ScZ.js +8 -0
- package/dist/{switchboard-Bf0uvxSu.js.map → switchboard-DUSh_ScZ.js.map} +1 -1
- package/dist/{upgrade-manifest-OlS1ALVv.js → upgrade-manifest-BOZ5nmyK.js} +1 -1
- package/dist/{upgrade-manifest-OlS1ALVv.js.map → upgrade-manifest-BOZ5nmyK.js.map} +1 -1
- package/dist/{upgrade-manifest-BGuy0v65.js → upgrade-manifest-D7xKGmZc.js} +1 -1
- package/dist/{upgrade-manifest-BGuy0v65.js.map → upgrade-manifest-D7xKGmZc.js.map} +1 -1
- package/dist/{upgrade-manifest-Ck3Mgwhc.js → upgrade-manifest-DLxSL23q.js} +1 -1
- package/dist/{upgrade-manifest-Ck3Mgwhc.js.map → upgrade-manifest-DLxSL23q.js.map} +1 -1
- package/dist/{upgrade-manifest-XdOLymuP.js → upgrade-manifest-Dv62Cod7.js} +1 -1
- package/dist/{upgrade-manifest-XdOLymuP.js.map → upgrade-manifest-Dv62Cod7.js.map} +1 -1
- package/dist/{upgrade-manifest-NaS4SWk9.js → upgrade-manifest-d3LquK-H.js} +1 -1
- package/dist/{upgrade-manifest-NaS4SWk9.js.map → upgrade-manifest-d3LquK-H.js.map} +1 -1
- package/dist/{utils-DXCsvCXL.js → utils-876N1Sph.js} +2 -2
- package/dist/{utils-DXCsvCXL.js.map → utils-876N1Sph.js.map} +1 -1
- package/dist/{utils-CkxGmQ2_.js → utils-Al_SGg2a.js} +2 -2
- package/dist/{utils-CkxGmQ2_.js.map → utils-Al_SGg2a.js.map} +1 -1
- package/dist/{utils-DmOIDVQo.js → utils-BJk4_43W.js} +24 -4
- package/dist/utils-BJk4_43W.js.map +1 -0
- package/dist/{utils-B4KdjDnp.js → utils-COP7hJ-K.js} +2 -2
- package/dist/{utils-B4KdjDnp.js.map → utils-COP7hJ-K.js.map} +1 -1
- package/dist/{vetra-package-Bl6TC4wx.js → vetra-package-DSyRtkdJ.js} +2 -2
- package/dist/{vetra-package-Bl6TC4wx.js.map → vetra-package-DSyRtkdJ.js.map} +1 -1
- package/package.json +17 -14
- package/style.css +2 -0
- package/dist/document-models/app-module/index.d.ts.map +0 -1
- package/dist/document-models/document-editor/index.d.ts.map +0 -1
- package/dist/document-models/processor-module/index.d.ts.map +0 -1
- package/dist/document-models/subgraph-module/index.d.ts.map +0 -1
- package/dist/document-models/vetra-package/index.d.ts.map +0 -1
- package/dist/editor-C13SvgUy.js.map +0 -1
- package/dist/editor-CLbvu3pG.js.map +0 -1
- package/dist/editor-Fgw7attg.js.map +0 -1
- package/dist/editor-LRAwrgdQ.js.map +0 -1
- package/dist/editor-_0gdltOt.js.map +0 -1
- package/dist/factory-5eiZohiv.js.map +0 -1
- package/dist/factory-DMl8eB3P.js.map +0 -1
- package/dist/index-B5ijieNt.d.ts.map +0 -1
- package/dist/index-Dm_gN1DR.d.ts.map +0 -1
- package/dist/index-SB-AtQdU.d.ts.map +0 -1
- package/dist/index-f_um1g-i.d.ts.map +0 -1
- package/dist/module-CRq_lUkG.js.map +0 -1
- package/dist/module-DXT-FMxU.js.map +0 -1
- package/dist/module-bKT_e3CH.js.map +0 -1
- package/dist/module-ciAK1LUC.d.ts.map +0 -1
- package/dist/powerhouse.manifest.d.ts +0 -34
- package/dist/powerhouse.manifest.d.ts.map +0 -1
- package/dist/powerhouse.manifest.js +0 -86
- package/dist/powerhouse.manifest.js.map +0 -1
- package/dist/processor-trJFuoHh.js.map +0 -1
- package/dist/specs-BeVdfCwg.d.ts.map +0 -1
- package/dist/switchboard-Bf0uvxSu.js +0 -8
- package/dist/useVetraDocument-BlLdlhrQ.js +0 -30
- package/dist/useVetraDocument-BlLdlhrQ.js.map +0 -1
- package/dist/utils-DmOIDVQo.js.map +0 -1
- /package/dist/{chunk-pbuEa-1d.js → rolldown-runtime-D7D4PA-g.js} +0 -0
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import * as document_model0 from "document-model";
|
|
2
1
|
import { Action, DocumentModelGlobalState, DocumentModelUtils, PHAuthState, PHBaseState, PHDocument, PHDocumentController, PHDocumentState, Reducer, SignalDispatch } from "document-model";
|
|
3
2
|
import * as z$1 from "zod";
|
|
4
3
|
import { z } from "zod";
|
|
5
4
|
import { DocumentDispatch } from "@powerhousedao/reactor-browser";
|
|
6
|
-
|
|
7
5
|
//#region document-models/subgraph-module/v1/gen/schema/types.d.ts
|
|
8
6
|
type Maybe<T> = T | null | undefined;
|
|
9
7
|
type InputMaybe<T> = T | null | undefined;
|
|
10
8
|
type Exact<T extends {
|
|
11
9
|
[key: string]: unknown;
|
|
12
|
-
}> = { [K in keyof T]: T[K] };
|
|
13
|
-
type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]
|
|
14
|
-
type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]
|
|
10
|
+
}> = { [K in keyof T]: T[K]; };
|
|
11
|
+
type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]>; };
|
|
12
|
+
type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]>; };
|
|
15
13
|
type MakeEmpty<T extends {
|
|
16
14
|
[key: string]: unknown;
|
|
17
|
-
}, K extends keyof T> = { [_ in K]?: never };
|
|
18
|
-
type Incremental<T> = T | { [P in keyof T]?: P extends " $fragmentName" | "__typename" ? T[P] : never };
|
|
15
|
+
}, K extends keyof T> = { [_ in K]?: never; };
|
|
16
|
+
type Incremental<T> = T | { [P in keyof T]?: P extends " $fragmentName" | "__typename" ? T[P] : never; };
|
|
19
17
|
/** All built-in and custom scalars, mapped to their actual values */
|
|
20
18
|
type Scalars = {
|
|
21
19
|
ID: {
|
|
@@ -160,7 +158,9 @@ type StatusType = "CONFIRMED" | "DRAFT";
|
|
|
160
158
|
* is served by Switchboard and stitched into the unified Powerhouse API.
|
|
161
159
|
*/
|
|
162
160
|
type SubgraphModuleState = {
|
|
163
|
-
/** Display name of the subgraph. Also determines the generated folder name under `subgraphs/` and the route segment Switchboard mounts it at. */
|
|
161
|
+
/** Display name of the subgraph. Also determines the generated folder name under `subgraphs/` and the route segment Switchboard mounts it at. */
|
|
162
|
+
name: Scalars["String"]["output"];
|
|
163
|
+
/** Lifecycle status. While DRAFT the subgraph definition is editable and codegen is skipped; switching to CONFIRMED triggers scaffold generation. */
|
|
164
164
|
status: StatusType;
|
|
165
165
|
};
|
|
166
166
|
//#endregion
|
|
@@ -193,7 +193,7 @@ interface SubgraphModuleBaseOperationsOperations {
|
|
|
193
193
|
}
|
|
194
194
|
//#endregion
|
|
195
195
|
//#region document-models/subgraph-module/v1/gen/controller.d.ts
|
|
196
|
-
declare const SubgraphModuleController: new (initialDocument?:
|
|
196
|
+
declare const SubgraphModuleController: new (initialDocument?: import("document-model").PHDocument<SubgraphModulePHState> | undefined) => PHDocumentController<SubgraphModulePHState> & import("document-model").ActionMap<SubgraphModuleBaseOperationsAction, PHDocumentController<SubgraphModulePHState>>;
|
|
197
197
|
declare namespace creators_d_exports {
|
|
198
198
|
export { setSubgraphName, setSubgraphStatus };
|
|
199
199
|
}
|
|
@@ -249,13 +249,6 @@ declare function isSubgraphModuleDocument(document: unknown): document is Subgra
|
|
|
249
249
|
/** Simple helper function to assert that a document is a SubgraphModule document */
|
|
250
250
|
declare function assertIsSubgraphModuleDocument(document: unknown): asserts document is SubgraphModuleDocument;
|
|
251
251
|
//#endregion
|
|
252
|
-
//#region document-models/subgraph-module/v1/gen/document-type.d.ts
|
|
253
|
-
/**
|
|
254
|
-
* WARNING: DO NOT EDIT
|
|
255
|
-
* This file is auto-generated and updated by codegen
|
|
256
|
-
*/
|
|
257
|
-
declare const subgraphModuleDocumentType = "powerhouse/subgraph";
|
|
258
|
-
//#endregion
|
|
259
252
|
//#region document-models/subgraph-module/v1/gen/ph-factories.d.ts
|
|
260
253
|
declare function defaultGlobalState(): SubgraphModuleState;
|
|
261
254
|
declare function defaultLocalState(): SubgraphModuleLocalState;
|
|
@@ -273,26 +266,6 @@ declare function createSubgraphModuleDocument(state?: Partial<{
|
|
|
273
266
|
local?: Partial<SubgraphModuleLocalState>;
|
|
274
267
|
}>): SubgraphModuleDocument;
|
|
275
268
|
//#endregion
|
|
276
|
-
//#region document-models/subgraph-module/v1/actions.d.ts
|
|
277
|
-
/** Actions for the SubgraphModule document model */
|
|
278
|
-
declare const actions: {
|
|
279
|
-
setSubgraphName: (input: SetSubgraphNameInput) => SetSubgraphNameAction;
|
|
280
|
-
setSubgraphStatus: (input: SetSubgraphStatusInput) => SetSubgraphStatusAction;
|
|
281
|
-
setName: (name: string | {
|
|
282
|
-
name: string;
|
|
283
|
-
}) => document_model0.SetNameAction;
|
|
284
|
-
setPreferredEditor: (input: string | null | {
|
|
285
|
-
preferredEditor: string | null;
|
|
286
|
-
}) => document_model0.SetPreferredEditorAction;
|
|
287
|
-
undo: (count?: number, scope?: string) => document_model0.UndoAction;
|
|
288
|
-
redo: (count?: number, scope?: string) => document_model0.RedoAction;
|
|
289
|
-
prune: (start?: number, end?: number, scope?: string) => document_model0.SchemaPruneAction;
|
|
290
|
-
loadState: <TState extends document_model0.PHBaseState = document_model0.PHBaseState>(state: TState & {
|
|
291
|
-
name: string;
|
|
292
|
-
}, operations: number) => document_model0.LoadStateAction;
|
|
293
|
-
noop: (scope?: string) => document_model0.NOOPAction;
|
|
294
|
-
};
|
|
295
|
-
//#endregion
|
|
296
269
|
//#region document-models/subgraph-module/v1/hooks.d.ts
|
|
297
270
|
/** Hook to get a SubgraphModule document by its id */
|
|
298
271
|
declare function useSubgraphModuleDocumentById(documentId: string | null | undefined): [SubgraphModuleDocument, DocumentDispatch<SubgraphModuleAction>] | [undefined, undefined];
|
|
@@ -307,26 +280,19 @@ declare function useSubgraphModuleDocumentsInSelectedFolder(): SubgraphModuleDoc
|
|
|
307
280
|
/** Document model module for the SubgraphModule document type */
|
|
308
281
|
declare const SubgraphModule: {
|
|
309
282
|
readonly version: 1;
|
|
310
|
-
readonly reducer:
|
|
283
|
+
readonly reducer: import("document-model").Reducer<SubgraphModulePHState>;
|
|
311
284
|
readonly actions: {
|
|
285
|
+
setName: typeof import("document-model").setName;
|
|
286
|
+
setPreferredEditor: typeof import("document-model").setPreferredEditor;
|
|
287
|
+
setSlug: typeof import("document-model").setSlug;
|
|
288
|
+
undo: typeof import("document-model").undo;
|
|
289
|
+
redo: typeof import("document-model").redo;
|
|
290
|
+
noop: typeof import("document-model").noop;
|
|
312
291
|
setSubgraphName: (input: SetSubgraphNameInput) => SetSubgraphNameAction;
|
|
313
292
|
setSubgraphStatus: (input: SetSubgraphStatusInput) => SetSubgraphStatusAction;
|
|
314
|
-
setName: (name: string | {
|
|
315
|
-
name: string;
|
|
316
|
-
}) => document_model0.SetNameAction;
|
|
317
|
-
setPreferredEditor: (input: string | null | {
|
|
318
|
-
preferredEditor: string | null;
|
|
319
|
-
}) => document_model0.SetPreferredEditorAction;
|
|
320
|
-
undo: (count?: number, scope?: string) => document_model0.UndoAction;
|
|
321
|
-
redo: (count?: number, scope?: string) => document_model0.RedoAction;
|
|
322
|
-
prune: (start?: number, end?: number, scope?: string) => document_model0.SchemaPruneAction;
|
|
323
|
-
loadState: <TState extends document_model0.PHBaseState = document_model0.PHBaseState>(state: TState & {
|
|
324
|
-
name: string;
|
|
325
|
-
}, operations: number) => document_model0.LoadStateAction;
|
|
326
|
-
noop: (scope?: string) => document_model0.NOOPAction;
|
|
327
293
|
};
|
|
328
|
-
readonly utils:
|
|
329
|
-
readonly documentModel:
|
|
294
|
+
readonly utils: import("document-model").DocumentModelUtils<SubgraphModulePHState>;
|
|
295
|
+
readonly documentModel: import("document-model").DocumentModelPHState;
|
|
330
296
|
};
|
|
331
297
|
//#endregion
|
|
332
298
|
//#region document-models/subgraph-module/v1/utils.d.ts
|
|
@@ -337,7 +303,7 @@ declare const utils: DocumentModelUtils<SubgraphModulePHState>;
|
|
|
337
303
|
declare const reducer: Reducer<SubgraphModulePHState>;
|
|
338
304
|
//#endregion
|
|
339
305
|
//#region document-models/subgraph-module/v1/gen/schema/zod.d.ts
|
|
340
|
-
type Properties<T> = Required<{ [K in keyof T]: z$1.ZodType<T[K]
|
|
306
|
+
type Properties<T> = Required<{ [K in keyof T]: z$1.ZodType<T[K]>; }>;
|
|
341
307
|
type definedNonNullAny = {};
|
|
342
308
|
declare const isDefinedNonNullAny: (v: any) => v is definedNonNullAny;
|
|
343
309
|
declare const definedNonNullAnySchema: z$1.ZodAny & z$1.ZodType<definedNonNullAny, any, z$1.core.$ZodTypeInternals<definedNonNullAny, any>>;
|
|
@@ -353,5 +319,6 @@ declare function SubgraphModuleStateSchema(): z$1.ZodObject<Properties<SubgraphM
|
|
|
353
319
|
declare const initialGlobalState: SubgraphModuleState;
|
|
354
320
|
declare const initialLocalState: SubgraphModuleLocalState;
|
|
355
321
|
//#endregion
|
|
356
|
-
export {
|
|
357
|
-
|
|
322
|
+
export { setSubgraphName as A, SubgraphModulePHState as B, SubgraphModulePHStateSchema as C, isSubgraphModuleState as D, isSubgraphModuleDocument as E, SetSubgraphNameAction as F, MakeMaybe as G, Incremental as H, SetSubgraphStatusAction as I, Scalars as J, MakeOptional as K, SubgraphModuleBaseOperationsAction as L, SubgraphModuleController as M, SubgraphModuleBaseOperationsOperations as N, documentModel as O, SubgraphModuleAction as P, SubgraphModuleState as Q, SubgraphModuleDocument as R, SubgraphModuleDocumentSchema as S, assertIsSubgraphModuleState as T, InputMaybe as U, Exact as V, MakeEmpty as W, SetSubgraphStatusInput as X, SetSubgraphNameInput as Y, StatusType as Z, createSubgraphModuleDocument as _, StatusTypeSchema as a, defaultPHState as b, isDefinedNonNullAny as c, SubgraphModule as d, useSelectedSubgraphModuleDocument as f, createState$1 as g, useSubgraphModuleDocumentsInSelectedFolder as h, SetSubgraphStatusInputSchema as i, setSubgraphStatus as j, creators_d_exports as k, reducer as l, useSubgraphModuleDocumentsInSelectedDrive as m, initialLocalState as n, SubgraphModuleStateSchema as o, useSubgraphModuleDocumentById as p, Maybe as q, SetSubgraphNameInputSchema as r, definedNonNullAnySchema as s, initialGlobalState as t, utils as u, defaultGlobalState as v, assertIsSubgraphModuleDocument as w, SubgraphModuleDocumentHeaderSchema as x, defaultLocalState as y, SubgraphModuleLocalState as z };
|
|
323
|
+
export {};
|
|
324
|
+
//# sourceMappingURL=index-RAhSmsFD.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-RAhSmsFD.d.ts","names":[],"sources":["../document-models/subgraph-module/v1/gen/schema/types.ts","../document-models/subgraph-module/v1/gen/types.ts","../document-models/subgraph-module/v1/gen/base-operations/actions.ts","../document-models/subgraph-module/v1/gen/actions.ts","../document-models/subgraph-module/v1/gen/base-operations/operations.ts","../document-models/subgraph-module/v1/gen/controller.ts","../document-models/subgraph-module/v1/gen/base-operations/creators.ts","../document-models/subgraph-module/v1/gen/document-model.ts","../document-models/subgraph-module/v1/gen/document-schema.ts","../document-models/subgraph-module/v1/gen/ph-factories.ts","../document-models/subgraph-module/v1/hooks.ts","../document-models/subgraph-module/v1/module.ts","../document-models/subgraph-module/v1/utils.ts","../document-models/subgraph-module/v1/gen/reducer.ts","../document-models/subgraph-module/v1/gen/schema/zod.ts","../document-models/subgraph-module/v1/gen/utils.ts"],"mappings":";;;;;KAAY,MAAM,KAAK;KACX,WAAW,KAAK;KAChB,MAAM;GAAa;QAC5B,WAAW,IAAI,EAAE;KAER,aAAa,GAAG,gBAAgB,KAAK,KAAK,GAAG,QACtD,UAAU,KAAK,MAAM,EAAE;KAEd,UAAU,GAAG,gBAAgB,KAAK,KAAK,GAAG,QACnD,UAAU,IAAI,MAAM,EAAE;KAEb,UACV;GAAa;GACb,gBAAgB,QACX,KAAK;KACA,YAAY,KACpB,OAEG,WAAW,KAAK,4CAA4C,EAAE;;KAGzD;EACV;IAAM;IAAe;;EACrB;IAAU;IAAe;;EACzB;IAAW;IAAgB;;EAC3B;IAAO;IAAe;;EACtB;IAAS;IAAe;;EACxB;IAAW;IAAgC;;EAC3C;IACE;MAAS;MAAe;;IACxB;MAAU;MAAe;;;EAE3B;IACE;MAAS;MAAc;;IACvB;MAAU;MAAc;;;EAE1B;IACE;MAAS;MAAc;;IACvB;MAAU;MAAc;;;EAE1B;IACE;MAAS;MAAc;;IACvB;MAAU;MAAc;;;EAE1B;IAAgB;IAAe;;EAC/B;IAAqB;IAAe;;EACpC;IAAiB;IAAe;;EAChC;IACE;IACA;;EAEF;IAAY;IAAe;;EAC3B;IAAQ;IAAe;;EACvB;IAAY;IAAe;;EAC3B;IAAgB;IAAe;;EAC/B;IAAmB;IAAe;;EAClC;IAAO;IAAe;;EACtB;IAAU;IAAe;;EACzB;IAAQ;IAAe;;EACvB;IAAO;IAAe;;EACtB;IAAW;IAAgB;;EAC3B;IAAU,OAAO;IAAM,QAAQ;;;KAGrB;EACV,MAAM;;KAGI;EACV,QAAQ;;;;;;;KAQE;;;;;KAMA;;EAEV,MAAM;;EAEN,QAAQ;;;;KC/EL,2BAA2B,OAAO;KAElC,wBAAwB;EAC3B,QAAQ;EACR,OAAO;;KAEJ,yBAAyB,WAAW;;;KCP7B,wBAAwB;EAClC;EACA,OAAO;;KAEG,0BAA0B;EACpC;EACA,OAAO;;KAGG,qCACR,wBACA;;;KCVQ,uBAAuB;;;UCGlB;EACf,2BACE,OAAO,qBACP,QAAQ,uBACR,WAAW;EAEb,6BACE,OAAO,qBACP,QAAQ,yBACR,WAAW;;;;cCZF,+BAAwB,2CAAA,WAAA,uCAAA,qBAAA,kDAAA,UAAA,oCAAA,qBAAA;;;;cCOxB,kBAAe,OAAW,yBAAoB;cAS9C,oBAAiB,OAAW,2BAAsB;;;cCtBlD,eAAe;;;;cCYf,oCAAkC,EAAA;;;;;;GAG3C,EAAA,KAAA;;cAGS,6BAA2B,EAAA;;;;;GAEtC,EAAA,KAAA;cAEW,8BAA4B,EAAA;;;;;;;;;;;;;;;;;;;;GAIvC,EAAA,KAAA;;iBAGc,sBACd,iBACC,SAAS;;iBAKI,4BACd,yBACS,SAAS;;iBAKJ,yBACd,oBACC,YAAY;;iBAKC,+BACd,4BACS,YAAY;;;iBCvCP,sBAAsB;iBAOtB,qBAAqB;iBAIrB,kBAAkB;iBA0BlB,cACd,YAAY,QAAQ,cACpB,cAAc,QAAQ,sBACtB,aAAa,QAAQ,4BACpB;;;;;;iBAaa,6BACd,QAAQ;EACN,OAAO,QAAQ;EACf,WAAW,QAAQ;EACnB,SAAS,QAAQ;EACjB,QAAQ,QAAQ;KAEjB;;;;iBCvDa,8BACd,yCAEG,wBAAwB,iBAAiB;;iBAQ9B,sCACd,wBACA,iBAAiB;;iBASH,6CAAyC;;iBAMzC,8CAA0C;;;;cCpC7C;WACF;;;;;;;;;;;;;;;;;;cCJE,OAAO,mBAAmB;;;cCyC1B,SAAS,QAAQ;;;KCzCzB,WAAW,KAAK,YAClB,WAAW,IAAI,IAAE,QAAQ,EAAE;KAGzB;cAEQ,sBAAmB,WAAa,KAAK;cAGrC,yBAAuB,IAAA,SAAA,IAAA,QAAA,wBAAA,IAAA,KAAA,kBAAA;cAIvB,kBAAgB,IAAA;;;;iBAEb,8BAA8B,IAAE,UAC9C,WAAW;iBAOG,gCAAgC,IAAE,UAChD,WAAW;iBAOG,6BAA6B,IAAE,UAC7C,WAAW;;;cCjBA,oBAAoB;cAIpB,mBAAmB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,71 +1,61 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { $ as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import * as document_model0 from "document-model";
|
|
1
|
+
import { K as SetDragAndDropEnabledAction, Q as SetDocumentTypesAction, X as SetAppNameAction, Y as RemoveDocumentTypeAction, Z as SetAppStatusAction, dt as RemoveDocumentTypeInput, gt as SetDragAndDropEnabledInput, ht as SetDocumentTypesInput, mt as SetAppStatusInput, nt as AddDocumentTypeInput, pt as SetAppNameInput, q as AddDocumentTypeAction, tt as AppModulePHState } from "./index-ChQj71kz.js";
|
|
2
|
+
import { B as AddDocumentTypeAction$1, H as RemoveDocumentTypeAction$1, J as AddDocumentTypeInput$1, U as SetEditorNameAction, W as SetEditorStatusAction, it as RemoveDocumentTypeInput$1, ot as SetEditorNameInput, q as DocumentEditorPHState, st as SetEditorStatusInput } from "./index-C56rbYzd.js";
|
|
3
|
+
import { $ as SetProcessorTypeAction, K as AddDocumentTypeAction$2, Q as SetProcessorStatusAction, X as RemoveProcessorAppAction, Y as RemoveDocumentTypeAction$2, Z as SetProcessorNameAction, _t as SetProcessorNameInput, ht as RemoveProcessorAppInput, it as AddProcessorAppInput, mt as RemoveDocumentTypeInput$2, nt as ProcessorModulePHState, q as AddProcessorAppAction, rt as AddDocumentTypeInput$2, vt as SetProcessorStatusInput, yt as SetProcessorTypeInput } from "./index-CqDvbSe4.js";
|
|
4
|
+
import { B as SubgraphModulePHState, F as SetSubgraphNameAction, I as SetSubgraphStatusAction, X as SetSubgraphStatusInput, Y as SetSubgraphNameInput } from "./index-RAhSmsFD.js";
|
|
5
|
+
import { $ as VetraPackagePHState, At as SetPackageNameAction, Ct as RemovePackageKeywordAction, Dt as SetPackageCategoryAction, Et as SetPackageAuthorWebsiteAction, Ot as SetPackageDescriptionAction, St as AddPackageKeywordAction, Tt as SetPackageAuthorNameAction, _t as SetPackageGithubUrlInput, et as AddPackageKeywordInput, ft as SetPackageAuthorInput, gt as SetPackageDescriptionInput, ht as SetPackageCategoryInput, jt as SetPackageNpmUrlAction, kt as SetPackageGithubUrlAction, mt as SetPackageAuthorWebsiteInput, pt as SetPackageAuthorNameInput, ut as RemovePackageKeywordInput, vt as SetPackageNameInput, wt as SetPackageAuthorAction, yt as SetPackageNpmUrlInput } from "./module-C-jL7yqs.js";
|
|
7
6
|
import { EditorModule, UpgradeManifest } from "document-model";
|
|
8
7
|
import { Manifest } from "@powerhousedao/shared/document-model";
|
|
9
|
-
|
|
10
8
|
//#region document-models/document-models.d.ts
|
|
11
9
|
/**
|
|
12
10
|
* WARNING: DO NOT EDIT
|
|
13
11
|
* This file is auto-generated and updated by codegen
|
|
14
12
|
*/
|
|
15
|
-
declare const documentModels: readonly [{
|
|
13
|
+
export declare const documentModels: readonly [{
|
|
16
14
|
readonly version: 1;
|
|
17
|
-
readonly reducer:
|
|
15
|
+
readonly reducer: import("document-model").Reducer<AppModulePHState>;
|
|
18
16
|
readonly actions: {
|
|
19
|
-
|
|
17
|
+
setName: typeof import("document-model").setName;
|
|
18
|
+
setPreferredEditor: typeof import("document-model").setPreferredEditor;
|
|
19
|
+
setSlug: typeof import("document-model").setSlug;
|
|
20
|
+
undo: typeof import("document-model").undo;
|
|
21
|
+
redo: typeof import("document-model").redo;
|
|
22
|
+
noop: typeof import("document-model").noop;
|
|
20
23
|
setAppName: (input: SetAppNameInput) => SetAppNameAction;
|
|
21
24
|
setAppStatus: (input: SetAppStatusInput) => SetAppStatusAction;
|
|
22
25
|
addDocumentType: (input: AddDocumentTypeInput) => AddDocumentTypeAction;
|
|
23
26
|
removeDocumentType: (input: RemoveDocumentTypeInput) => RemoveDocumentTypeAction;
|
|
24
27
|
setDocumentTypes: (input: SetDocumentTypesInput) => SetDocumentTypesAction;
|
|
25
|
-
|
|
26
|
-
name: string;
|
|
27
|
-
}) => document_model0.SetNameAction;
|
|
28
|
-
setPreferredEditor: (input: string | null | {
|
|
29
|
-
preferredEditor: string | null;
|
|
30
|
-
}) => document_model0.SetPreferredEditorAction;
|
|
31
|
-
undo: (count?: number, scope?: string) => document_model0.UndoAction;
|
|
32
|
-
redo: (count?: number, scope?: string) => document_model0.RedoAction;
|
|
33
|
-
prune: (start?: number, end?: number, scope?: string) => document_model0.SchemaPruneAction;
|
|
34
|
-
loadState: <TState extends document_model0.PHBaseState = document_model0.PHBaseState>(state: TState & {
|
|
35
|
-
name: string;
|
|
36
|
-
}, operations: number) => document_model0.LoadStateAction;
|
|
37
|
-
noop: (scope?: string) => document_model0.NOOPAction;
|
|
28
|
+
setDragAndDropEnabled: (input: SetDragAndDropEnabledInput) => SetDragAndDropEnabledAction;
|
|
38
29
|
};
|
|
39
|
-
readonly utils:
|
|
40
|
-
readonly documentModel:
|
|
30
|
+
readonly utils: import("document-model").DocumentModelUtils<AppModulePHState>;
|
|
31
|
+
readonly documentModel: import("document-model").DocumentModelPHState;
|
|
41
32
|
}, {
|
|
42
33
|
readonly version: 1;
|
|
43
|
-
readonly reducer:
|
|
34
|
+
readonly reducer: import("document-model").Reducer<DocumentEditorPHState>;
|
|
44
35
|
readonly actions: {
|
|
36
|
+
setName: typeof import("document-model").setName;
|
|
37
|
+
setPreferredEditor: typeof import("document-model").setPreferredEditor;
|
|
38
|
+
setSlug: typeof import("document-model").setSlug;
|
|
39
|
+
undo: typeof import("document-model").undo;
|
|
40
|
+
redo: typeof import("document-model").redo;
|
|
41
|
+
noop: typeof import("document-model").noop;
|
|
45
42
|
setEditorName: (input: SetEditorNameInput) => SetEditorNameAction;
|
|
46
43
|
addDocumentType: (input: AddDocumentTypeInput$1) => AddDocumentTypeAction$1;
|
|
47
44
|
removeDocumentType: (input: RemoveDocumentTypeInput$1) => RemoveDocumentTypeAction$1;
|
|
48
45
|
setEditorStatus: (input: SetEditorStatusInput) => SetEditorStatusAction;
|
|
49
|
-
setName: (name: string | {
|
|
50
|
-
name: string;
|
|
51
|
-
}) => document_model0.SetNameAction;
|
|
52
|
-
setPreferredEditor: (input: string | null | {
|
|
53
|
-
preferredEditor: string | null;
|
|
54
|
-
}) => document_model0.SetPreferredEditorAction;
|
|
55
|
-
undo: (count?: number, scope?: string) => document_model0.UndoAction;
|
|
56
|
-
redo: (count?: number, scope?: string) => document_model0.RedoAction;
|
|
57
|
-
prune: (start?: number, end?: number, scope?: string) => document_model0.SchemaPruneAction;
|
|
58
|
-
loadState: <TState extends document_model0.PHBaseState = document_model0.PHBaseState>(state: TState & {
|
|
59
|
-
name: string;
|
|
60
|
-
}, operations: number) => document_model0.LoadStateAction;
|
|
61
|
-
noop: (scope?: string) => document_model0.NOOPAction;
|
|
62
46
|
};
|
|
63
|
-
readonly utils:
|
|
64
|
-
readonly documentModel:
|
|
47
|
+
readonly utils: import("document-model").DocumentModelUtils<DocumentEditorPHState>;
|
|
48
|
+
readonly documentModel: import("document-model").DocumentModelPHState;
|
|
65
49
|
}, {
|
|
66
50
|
readonly version: 1;
|
|
67
|
-
readonly reducer:
|
|
51
|
+
readonly reducer: import("document-model").Reducer<ProcessorModulePHState>;
|
|
68
52
|
readonly actions: {
|
|
53
|
+
setName: typeof import("document-model").setName;
|
|
54
|
+
setPreferredEditor: typeof import("document-model").setPreferredEditor;
|
|
55
|
+
setSlug: typeof import("document-model").setSlug;
|
|
56
|
+
undo: typeof import("document-model").undo;
|
|
57
|
+
redo: typeof import("document-model").redo;
|
|
58
|
+
noop: typeof import("document-model").noop;
|
|
69
59
|
setProcessorName: (input: SetProcessorNameInput) => SetProcessorNameAction;
|
|
70
60
|
setProcessorType: (input: SetProcessorTypeInput) => SetProcessorTypeAction;
|
|
71
61
|
addDocumentType: (input: AddDocumentTypeInput$2) => AddDocumentTypeAction$2;
|
|
@@ -73,48 +63,34 @@ declare const documentModels: readonly [{
|
|
|
73
63
|
addProcessorApp: (input: AddProcessorAppInput) => AddProcessorAppAction;
|
|
74
64
|
removeProcessorApp: (input: RemoveProcessorAppInput) => RemoveProcessorAppAction;
|
|
75
65
|
setProcessorStatus: (input: SetProcessorStatusInput) => SetProcessorStatusAction;
|
|
76
|
-
setName: (name: string | {
|
|
77
|
-
name: string;
|
|
78
|
-
}) => document_model0.SetNameAction;
|
|
79
|
-
setPreferredEditor: (input: string | null | {
|
|
80
|
-
preferredEditor: string | null;
|
|
81
|
-
}) => document_model0.SetPreferredEditorAction;
|
|
82
|
-
undo: (count?: number, scope?: string) => document_model0.UndoAction;
|
|
83
|
-
redo: (count?: number, scope?: string) => document_model0.RedoAction;
|
|
84
|
-
prune: (start?: number, end?: number, scope?: string) => document_model0.SchemaPruneAction;
|
|
85
|
-
loadState: <TState extends document_model0.PHBaseState = document_model0.PHBaseState>(state: TState & {
|
|
86
|
-
name: string;
|
|
87
|
-
}, operations: number) => document_model0.LoadStateAction;
|
|
88
|
-
noop: (scope?: string) => document_model0.NOOPAction;
|
|
89
66
|
};
|
|
90
|
-
readonly utils:
|
|
91
|
-
readonly documentModel:
|
|
67
|
+
readonly utils: import("document-model").DocumentModelUtils<ProcessorModulePHState>;
|
|
68
|
+
readonly documentModel: import("document-model").DocumentModelPHState;
|
|
92
69
|
}, {
|
|
93
70
|
readonly version: 1;
|
|
94
|
-
readonly reducer:
|
|
71
|
+
readonly reducer: import("document-model").Reducer<SubgraphModulePHState>;
|
|
95
72
|
readonly actions: {
|
|
73
|
+
setName: typeof import("document-model").setName;
|
|
74
|
+
setPreferredEditor: typeof import("document-model").setPreferredEditor;
|
|
75
|
+
setSlug: typeof import("document-model").setSlug;
|
|
76
|
+
undo: typeof import("document-model").undo;
|
|
77
|
+
redo: typeof import("document-model").redo;
|
|
78
|
+
noop: typeof import("document-model").noop;
|
|
96
79
|
setSubgraphName: (input: SetSubgraphNameInput) => SetSubgraphNameAction;
|
|
97
80
|
setSubgraphStatus: (input: SetSubgraphStatusInput) => SetSubgraphStatusAction;
|
|
98
|
-
setName: (name: string | {
|
|
99
|
-
name: string;
|
|
100
|
-
}) => document_model0.SetNameAction;
|
|
101
|
-
setPreferredEditor: (input: string | null | {
|
|
102
|
-
preferredEditor: string | null;
|
|
103
|
-
}) => document_model0.SetPreferredEditorAction;
|
|
104
|
-
undo: (count?: number, scope?: string) => document_model0.UndoAction;
|
|
105
|
-
redo: (count?: number, scope?: string) => document_model0.RedoAction;
|
|
106
|
-
prune: (start?: number, end?: number, scope?: string) => document_model0.SchemaPruneAction;
|
|
107
|
-
loadState: <TState extends document_model0.PHBaseState = document_model0.PHBaseState>(state: TState & {
|
|
108
|
-
name: string;
|
|
109
|
-
}, operations: number) => document_model0.LoadStateAction;
|
|
110
|
-
noop: (scope?: string) => document_model0.NOOPAction;
|
|
111
81
|
};
|
|
112
|
-
readonly utils:
|
|
113
|
-
readonly documentModel:
|
|
82
|
+
readonly utils: import("document-model").DocumentModelUtils<SubgraphModulePHState>;
|
|
83
|
+
readonly documentModel: import("document-model").DocumentModelPHState;
|
|
114
84
|
}, {
|
|
115
85
|
readonly version: 1;
|
|
116
|
-
readonly reducer:
|
|
86
|
+
readonly reducer: import("document-model").Reducer<VetraPackagePHState>;
|
|
117
87
|
readonly actions: {
|
|
88
|
+
setName: typeof import("document-model").setName;
|
|
89
|
+
setPreferredEditor: typeof import("document-model").setPreferredEditor;
|
|
90
|
+
setSlug: typeof import("document-model").setSlug;
|
|
91
|
+
undo: typeof import("document-model").undo;
|
|
92
|
+
redo: typeof import("document-model").redo;
|
|
93
|
+
noop: typeof import("document-model").noop;
|
|
118
94
|
setPackageName: (input: SetPackageNameInput) => SetPackageNameAction;
|
|
119
95
|
setPackageDescription: (input: SetPackageDescriptionInput) => SetPackageDescriptionAction;
|
|
120
96
|
setPackageCategory: (input: SetPackageCategoryInput) => SetPackageCategoryAction;
|
|
@@ -125,32 +101,19 @@ declare const documentModels: readonly [{
|
|
|
125
101
|
removePackageKeyword: (input: RemovePackageKeywordInput) => RemovePackageKeywordAction;
|
|
126
102
|
setPackageGithubUrl: (input: SetPackageGithubUrlInput) => SetPackageGithubUrlAction;
|
|
127
103
|
setPackageNpmUrl: (input: SetPackageNpmUrlInput) => SetPackageNpmUrlAction;
|
|
128
|
-
setName: (name: string | {
|
|
129
|
-
name: string;
|
|
130
|
-
}) => document_model0.SetNameAction;
|
|
131
|
-
setPreferredEditor: (input: string | null | {
|
|
132
|
-
preferredEditor: string | null;
|
|
133
|
-
}) => document_model0.SetPreferredEditorAction;
|
|
134
|
-
undo: (count?: number, scope?: string) => document_model0.UndoAction;
|
|
135
|
-
redo: (count?: number, scope?: string) => document_model0.RedoAction;
|
|
136
|
-
prune: (start?: number, end?: number, scope?: string) => document_model0.SchemaPruneAction;
|
|
137
|
-
loadState: <TState extends document_model0.PHBaseState = document_model0.PHBaseState>(state: TState & {
|
|
138
|
-
name: string;
|
|
139
|
-
}, operations: number) => document_model0.LoadStateAction;
|
|
140
|
-
noop: (scope?: string) => document_model0.NOOPAction;
|
|
141
104
|
};
|
|
142
|
-
readonly utils:
|
|
143
|
-
readonly documentModel:
|
|
105
|
+
readonly utils: import("document-model").DocumentModelUtils<VetraPackagePHState>;
|
|
106
|
+
readonly documentModel: import("document-model").DocumentModelPHState;
|
|
144
107
|
}];
|
|
145
108
|
//#endregion
|
|
146
109
|
//#region document-models/upgrade-manifests.d.ts
|
|
147
|
-
declare const upgradeManifests: UpgradeManifest<readonly number[]>[];
|
|
110
|
+
export declare const upgradeManifests: UpgradeManifest<readonly number[]>[];
|
|
148
111
|
//#endregion
|
|
149
112
|
//#region editors/editors.d.ts
|
|
150
|
-
declare const editors: EditorModule[];
|
|
113
|
+
export declare const editors: EditorModule[];
|
|
151
114
|
//#endregion
|
|
152
115
|
//#region index.d.ts
|
|
153
|
-
declare const manifest: Manifest;
|
|
116
|
+
export declare const manifest: Manifest;
|
|
154
117
|
//#endregion
|
|
155
|
-
export {
|
|
118
|
+
export {};
|
|
156
119
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../document-models/document-models.ts","../document-models/upgrade-manifests.ts","../editors/editors.ts","../index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../document-models/document-models.ts","../document-models/upgrade-manifests.ts","../editors/editors.ts","../index.ts"],"mappings":";;;;;;;;;;;;qBAWa;;qDAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBCAA,kBAAkB;;;qBCClB,SAAS;;;qBCPT,UAAU"}
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,87 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
|
|
1
|
+
import { t as AppModule } from "./module-23VayWKe.js";
|
|
2
|
+
import { t as DocumentEditor } from "./module-2JZcvfVs.js";
|
|
3
|
+
import { t as ProcessorModule } from "./module-BktWa0rB.js";
|
|
4
|
+
import { t as SubgraphModule } from "./module-hLzF5tCL.js";
|
|
5
|
+
import { t as VetraPackage } from "./module-FXJRy_1W.js";
|
|
6
|
+
import { t as appModuleUpgradeManifest } from "./upgrade-manifest-DLxSL23q.js";
|
|
7
|
+
import { t as documentEditorUpgradeManifest } from "./upgrade-manifest-D7xKGmZc.js";
|
|
8
|
+
import { t as processorModuleUpgradeManifest } from "./upgrade-manifest-d3LquK-H.js";
|
|
9
|
+
import { t as subgraphModuleUpgradeManifest } from "./upgrade-manifest-Dv62Cod7.js";
|
|
10
|
+
import { t as vetraPackageUpgradeManifest } from "./upgrade-manifest-BOZ5nmyK.js";
|
|
11
|
+
import { a as DocumentEditorEditor, i as ProcessorModuleEditor, n as VetraDriveApp, o as AppEditor, r as SubgraphModuleEditor, t as VetraPackageEditor } from "./module-B6S4QGOx.js";
|
|
12
|
+
//#region powerhouse.manifest.json
|
|
13
|
+
var powerhouse_manifest_default = {
|
|
14
|
+
name: "@powerhousedao/vetra",
|
|
15
|
+
description: "Vetra package",
|
|
16
|
+
category: "",
|
|
17
|
+
publisher: {
|
|
18
|
+
"name": "@powerhousedao",
|
|
19
|
+
"url": "https://github.com/powerhouse-inc/powerhouse/tree/main/packages/vetra"
|
|
20
|
+
},
|
|
21
|
+
documentModels: [
|
|
22
|
+
{
|
|
23
|
+
"id": "powerhouse/package",
|
|
24
|
+
"name": "Vetra Package"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"id": "powerhouse/document-editor",
|
|
28
|
+
"name": "Document Editor"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": "powerhouse/subgraph",
|
|
32
|
+
"name": "Subgraph Module"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"id": "powerhouse/processor",
|
|
36
|
+
"name": "Processor Module"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": "powerhouse/app",
|
|
40
|
+
"name": "App Module"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
apps: [{
|
|
44
|
+
"id": "vetra-drive-app",
|
|
45
|
+
"name": "Vetra Drive App"
|
|
46
|
+
}],
|
|
47
|
+
editors: [
|
|
48
|
+
{
|
|
49
|
+
"id": "vetra-package-editor",
|
|
50
|
+
"name": "Vetra Package Editor",
|
|
51
|
+
"documentTypes": ["powerhouse/package"]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"id": "document-editor-editor",
|
|
55
|
+
"name": "Document Editor",
|
|
56
|
+
"documentTypes": ["powerhouse/document-editor"]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"id": "subgraph-module-editor",
|
|
60
|
+
"name": "Subgraph Module Editor",
|
|
61
|
+
"documentTypes": ["powerhouse/subgraph"]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"id": "processor-module-editor",
|
|
65
|
+
"name": "Processor Module Editor",
|
|
66
|
+
"documentTypes": ["powerhouse/processor"]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"id": "app-editor",
|
|
70
|
+
"name": "App Editor",
|
|
71
|
+
"documentTypes": ["powerhouse/app"]
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
processors: [{
|
|
75
|
+
"id": "codegen",
|
|
76
|
+
"name": "codegen"
|
|
77
|
+
}, {
|
|
78
|
+
"id": "vetra-read-model",
|
|
79
|
+
"name": "vetra-read-model"
|
|
80
|
+
}],
|
|
81
|
+
subgraphs: [],
|
|
82
|
+
config: []
|
|
83
|
+
};
|
|
84
|
+
//#endregion
|
|
13
85
|
//#region document-models/document-models.ts
|
|
14
86
|
/**
|
|
15
87
|
* WARNING: DO NOT EDIT
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["AppModuleV1","DocumentEditorV1","ProcessorModuleV1","SubgraphModuleV1","VetraPackageV1","manifestJson"],"sources":["../document-models/document-models.ts","../document-models/upgrade-manifests.ts","../editors/editors.ts","../index.ts"],"sourcesContent":["import { AppModule as AppModuleV1 } from \"document-models/app-module/v1\";\nimport { DocumentEditor as DocumentEditorV1 } from \"document-models/document-editor/v1\";\nimport { ProcessorModule as ProcessorModuleV1 } from \"document-models/processor-module/v1\";\nimport { SubgraphModule as SubgraphModuleV1 } from \"document-models/subgraph-module/v1\";\nimport { VetraPackage as VetraPackageV1 } from \"document-models/vetra-package/v1\";\n\n/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\n\nexport const documentModels = [\n AppModuleV1,\n DocumentEditorV1,\n ProcessorModuleV1,\n SubgraphModuleV1,\n VetraPackageV1,\n] as const;\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { UpgradeManifest } from \"document-model\";\nimport { appModuleUpgradeManifest } from \"document-models/app-module/upgrades\";\nimport { documentEditorUpgradeManifest } from \"document-models/document-editor/upgrades\";\nimport { processorModuleUpgradeManifest } from \"document-models/processor-module/upgrades\";\nimport { subgraphModuleUpgradeManifest } from \"document-models/subgraph-module/upgrades\";\nimport { vetraPackageUpgradeManifest } from \"document-models/vetra-package/upgrades\";\n\nexport const upgradeManifests: UpgradeManifest<readonly number[]>[] = [\n appModuleUpgradeManifest,\n documentEditorUpgradeManifest,\n processorModuleUpgradeManifest,\n subgraphModuleUpgradeManifest,\n vetraPackageUpgradeManifest,\n];\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { EditorModule } from \"document-model\";\nimport { AppEditor } from \"./app-editor/module.js\";\nimport { DocumentEditorEditor } from \"./document-editor/module.js\";\nimport { ProcessorModuleEditor } from \"./processor-editor/module.js\";\nimport { SubgraphModuleEditor } from \"./subgraph-editor/module.js\";\nimport { VetraDriveApp } from \"./vetra-drive-app/module.js\";\nimport { VetraPackageEditor } from \"./vetra-package/module.js\";\n\nexport const editors: EditorModule[] = [\n AppEditor,\n DocumentEditorEditor,\n ProcessorModuleEditor,\n SubgraphModuleEditor,\n VetraDriveApp,\n VetraPackageEditor,\n];\n","import type { Manifest } from \"@powerhousedao/shared/document-model\";\nimport manifestJson from \"./powerhouse.manifest.json\" with { type: \"json\" };\nexport { documentModels } from \"./document-models/document-models.js\";\nexport { upgradeManifests } from \"./document-models/upgrade-manifests.js\";\nexport { editors } from \"./editors/editors.js\";\nexport const manifest: Manifest = manifestJson;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":["AppModuleV1","DocumentEditorV1","ProcessorModuleV1","SubgraphModuleV1","VetraPackageV1","manifestJson"],"sources":["../powerhouse.manifest.json","../document-models/document-models.ts","../document-models/upgrade-manifests.ts","../editors/editors.ts","../index.ts"],"sourcesContent":["","import { AppModule as AppModuleV1 } from \"document-models/app-module/v1\";\nimport { DocumentEditor as DocumentEditorV1 } from \"document-models/document-editor/v1\";\nimport { ProcessorModule as ProcessorModuleV1 } from \"document-models/processor-module/v1\";\nimport { SubgraphModule as SubgraphModuleV1 } from \"document-models/subgraph-module/v1\";\nimport { VetraPackage as VetraPackageV1 } from \"document-models/vetra-package/v1\";\n\n/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\n\nexport const documentModels = [\n AppModuleV1,\n DocumentEditorV1,\n ProcessorModuleV1,\n SubgraphModuleV1,\n VetraPackageV1,\n] as const;\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { UpgradeManifest } from \"document-model\";\nimport { appModuleUpgradeManifest } from \"document-models/app-module/upgrades\";\nimport { documentEditorUpgradeManifest } from \"document-models/document-editor/upgrades\";\nimport { processorModuleUpgradeManifest } from \"document-models/processor-module/upgrades\";\nimport { subgraphModuleUpgradeManifest } from \"document-models/subgraph-module/upgrades\";\nimport { vetraPackageUpgradeManifest } from \"document-models/vetra-package/upgrades\";\n\nexport const upgradeManifests: UpgradeManifest<readonly number[]>[] = [\n appModuleUpgradeManifest,\n documentEditorUpgradeManifest,\n processorModuleUpgradeManifest,\n subgraphModuleUpgradeManifest,\n vetraPackageUpgradeManifest,\n];\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { EditorModule } from \"document-model\";\nimport { AppEditor } from \"./app-editor/module.js\";\nimport { DocumentEditorEditor } from \"./document-editor/module.js\";\nimport { ProcessorModuleEditor } from \"./processor-editor/module.js\";\nimport { SubgraphModuleEditor } from \"./subgraph-editor/module.js\";\nimport { VetraDriveApp } from \"./vetra-drive-app/module.js\";\nimport { VetraPackageEditor } from \"./vetra-package/module.js\";\n\nexport const editors: EditorModule[] = [\n AppEditor,\n DocumentEditorEditor,\n ProcessorModuleEditor,\n SubgraphModuleEditor,\n VetraDriveApp,\n VetraPackageEditor,\n];\n","import type { Manifest } from \"@powerhousedao/shared/document-model\";\nimport manifestJson from \"./powerhouse.manifest.json\" with { type: \"json\" };\nexport { documentModels } from \"./document-models/document-models.js\";\nexport { upgradeManifests } from \"./document-models/upgrade-manifests.js\";\nexport { editors } from \"./editors/editors.js\";\nexport const manifest: Manifest = manifestJson;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACWA,MAAa,iBAAiB;CAC5BA;CACAC;CACAC;CACAC;CACAC;AACF;;;ACNA,MAAa,mBAAyD;CACpE;CACA;CACA;CACA;CACA;AACF;;;ACLA,MAAa,UAA0B;CACrC;CACA;CACA;CACA;CACA;CACA;AACF;;;ACdA,MAAa,WAAqBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger-
|
|
1
|
+
{"version":3,"file":"logger-BFxMdimR.js","names":[],"sources":["../processors/codegen/logger.ts"],"sourcesContent":["import { childLogger } from \"document-model\";\n\nconst baseLogger = childLogger([\"Vetra\"]);\n\nfunction formatArgs(args: unknown[]): string {\n return args\n .map((arg) => {\n if (typeof arg === \"string\") return arg;\n if (arg instanceof Error) return arg.message;\n if (arg != null && typeof arg === \"object\") return JSON.stringify(arg);\n return `${arg as string | number | boolean}`;\n })\n .join(\" \");\n}\n\nexport const logger = {\n debug: (...args: unknown[]): void => baseLogger.debug(formatArgs(args)),\n info: (...args: unknown[]): void => baseLogger.info(formatArgs(args)),\n warn: (...args: unknown[]): void => baseLogger.warn(formatArgs(args)),\n error: (...args: unknown[]): void => baseLogger.error(formatArgs(args)),\n};\n"],"mappings":";;AAEA,MAAM,aAAa,YAAY,CAAC,OAAO,CAAC;AAExC,SAAS,WAAW,MAAyB;CAC3C,OAAO,KACJ,KAAK,QAAQ;EACZ,IAAI,OAAO,QAAQ,UAAU,OAAO;EACpC,IAAI,eAAe,OAAO,OAAO,IAAI;EACrC,IAAI,OAAO,QAAQ,OAAO,QAAQ,UAAU,OAAO,KAAK,UAAU,GAAG;EACrE,OAAO,GAAG;CACZ,CAAC,CAAC,CACD,KAAK,GAAG;AACb;AAEA,MAAa,SAAS;CACpB,QAAQ,GAAG,SAA0B,WAAW,MAAM,WAAW,IAAI,CAAC;CACtE,OAAO,GAAG,SAA0B,WAAW,KAAK,WAAW,IAAI,CAAC;CACpE,OAAO,GAAG,SAA0B,WAAW,KAAK,WAAW,IAAI,CAAC;CACpE,QAAQ,GAAG,SAA0B,WAAW,MAAM,WAAW,IAAI,CAAC;AACxE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as __exportAll } from "./
|
|
2
|
-
import { f as reducer, p as actions, r as utils$1 } from "./utils-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { f as reducer, p as actions, r as utils$1 } from "./utils-COP7hJ-K.js";
|
|
3
3
|
import { createState, defaultBaseState } from "document-model";
|
|
4
4
|
//#region document-models/app-module/v1/gen/document-model.ts
|
|
5
5
|
const documentModel = {
|
|
@@ -10,7 +10,7 @@ const documentModel = {
|
|
|
10
10
|
website: "https://powerhouse.inc"
|
|
11
11
|
},
|
|
12
12
|
extension: ".app",
|
|
13
|
-
description: "Declares a custom Drive App (a drive-level UI surface) shipped by a Vetra Reactor Package. Use one App Module document per drive app: configure which document types it handles, whether it accepts drag-and-drop, and mark it CONFIRMED to trigger codegen of the corresponding app scaffold under `
|
|
13
|
+
description: "Declares a custom Drive App (a drive-level UI surface) shipped by a Vetra Reactor Package. Use one App Module document per drive app: configure which document types it handles, whether it accepts drag-and-drop, and mark it CONFIRMED to trigger codegen of the corresponding app scaffold under `editors/<app-id>/`.",
|
|
14
14
|
specifications: [{
|
|
15
15
|
state: {
|
|
16
16
|
local: {
|
|
@@ -19,7 +19,7 @@ const documentModel = {
|
|
|
19
19
|
initialValue: ""
|
|
20
20
|
},
|
|
21
21
|
global: {
|
|
22
|
-
schema: "\"\"\"\nConfiguration for a Drive App contributed by the package. Drive apps render a\ncustom view at the drive level (instead of, or alongside, the document file\ntree) and can opt into which document types they accept.\n\"\"\"\ntype AppModuleState {\n \"\"\"Display name of the drive app. Also used as the source for the generated folder name under `
|
|
22
|
+
schema: "\"\"\"\nConfiguration for a Drive App contributed by the package. Drive apps render a\ncustom view at the drive level (instead of, or alongside, the document file\ntree) and can opt into which document types they accept.\n\"\"\"\ntype AppModuleState {\n \"\"\"Display name of the drive app. Also used as the source for the generated folder name under `editors/`.\"\"\"\n name: String!\n \"\"\"Lifecycle status. While DRAFT the app definition is editable and codegen is skipped; switching to CONFIRMED triggers app scaffold generation.\"\"\"\n status: StatusType!\n \"\"\"Document type ids this app handles. `null` and an empty list both mean the app accepts every document type.\"\"\"\n allowedDocumentTypes: [String!]\n \"\"\"Whether the app surface accepts dropped files from the user. Defaults to true.\"\"\"\n isDragAndDropEnabled: Boolean!\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}",
|
|
23
23
|
examples: [],
|
|
24
24
|
initialValue: "{\n \"name\": \"\",\n \"status\": \"DRAFT\",\n \"allowedDocumentTypes\": null,\n \"isDragAndDropEnabled\": true\n}"
|
|
25
25
|
}
|
|
@@ -32,7 +32,7 @@ const documentModel = {
|
|
|
32
32
|
{
|
|
33
33
|
id: "f2ba2ddc-8527-4162-93bd-e045e9932013",
|
|
34
34
|
name: "SET_APP_NAME",
|
|
35
|
-
description: "Set the display name of the drive app. Also determines the generated folder name under `
|
|
35
|
+
description: "Set the display name of the drive app. Also determines the generated folder name under `editors/`.",
|
|
36
36
|
schema: "input SetAppNameInput {\n name: String!\n}",
|
|
37
37
|
template: "",
|
|
38
38
|
reducer: "",
|
|
@@ -54,7 +54,7 @@ const documentModel = {
|
|
|
54
54
|
{
|
|
55
55
|
id: "7376f168-695f-4aef-94d0-6e381666358c",
|
|
56
56
|
name: "ADD_DOCUMENT_TYPE",
|
|
57
|
-
description: "Append a document type id to the list of types this app handles.
|
|
57
|
+
description: "Append a document type id to the list of types this app handles. The first type added narrows the app from every type to the listed ones.",
|
|
58
58
|
schema: "input AddDocumentTypeInput {\n documentType: String!\n}",
|
|
59
59
|
template: "",
|
|
60
60
|
reducer: "",
|
|
@@ -65,7 +65,7 @@ const documentModel = {
|
|
|
65
65
|
{
|
|
66
66
|
id: "310e4e5b-3f14-4e9a-8e09-5583c7698a65",
|
|
67
67
|
name: "REMOVE_DOCUMENT_TYPE",
|
|
68
|
-
description: "Remove a document type id from the handled list. No-op if the type is not present.",
|
|
68
|
+
description: "Remove a document type id from the handled list. No-op if the type is not present. Removing the last type leaves an empty list, which accepts every type.",
|
|
69
69
|
schema: "input RemoveDocumentTypeInput {\n documentType: String!\n}",
|
|
70
70
|
template: "",
|
|
71
71
|
reducer: "",
|
|
@@ -76,7 +76,7 @@ const documentModel = {
|
|
|
76
76
|
{
|
|
77
77
|
id: "b365727a-7df3-48f0-a4f8-02362f02ad1d",
|
|
78
78
|
name: "SET_DOCUMENT_TYPES",
|
|
79
|
-
description: "Replace the entire allowed-document-types list in one call.
|
|
79
|
+
description: "Replace the entire allowed-document-types list in one call. An empty list accepts every document type.",
|
|
80
80
|
schema: "input SetDocumentTypesInput {\n documentTypes: [String!]!\n}",
|
|
81
81
|
template: "",
|
|
82
82
|
reducer: "",
|
|
@@ -128,4 +128,4 @@ const AppModule = {
|
|
|
128
128
|
//#endregion
|
|
129
129
|
export { utils as n, documentModel as r, AppModule as t };
|
|
130
130
|
|
|
131
|
-
//# sourceMappingURL=module-
|
|
131
|
+
//# sourceMappingURL=module-23VayWKe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module-23VayWKe.js","names":["genUtils","customUtils"],"sources":["../document-models/app-module/v1/gen/document-model.ts","../document-models/app-module/v1/src/utils.ts","../document-models/app-module/v1/utils.ts","../document-models/app-module/v1/module.ts"],"sourcesContent":["import type { DocumentModelGlobalState } from \"document-model\";\n\nexport const documentModel: DocumentModelGlobalState = {\n id: \"powerhouse/app\",\n name: \"App Module\",\n author: {\n name: \"Powerhouse\",\n website: \"https://powerhouse.inc\",\n },\n extension: \".app\",\n description:\n \"Declares a custom Drive App (a drive-level UI surface) shipped by a Vetra Reactor Package. Use one App Module document per drive app: configure which document types it handles, whether it accepts drag-and-drop, and mark it CONFIRMED to trigger codegen of the corresponding app scaffold under `editors/<app-id>/`.\",\n specifications: [\n {\n state: {\n local: {\n schema: \"\",\n examples: [],\n initialValue: \"\",\n },\n global: {\n schema:\n '\"\"\"\\nConfiguration for a Drive App contributed by the package. Drive apps render a\\ncustom view at the drive level (instead of, or alongside, the document file\\ntree) and can opt into which document types they accept.\\n\"\"\"\\ntype AppModuleState {\\n \"\"\"Display name of the drive app. Also used as the source for the generated folder name under `editors/`.\"\"\"\\n name: String!\\n \"\"\"Lifecycle status. While DRAFT the app definition is editable and codegen is skipped; switching to CONFIRMED triggers app scaffold generation.\"\"\"\\n status: StatusType!\\n \"\"\"Document type ids this app handles. `null` and an empty list both mean the app accepts every document type.\"\"\"\\n allowedDocumentTypes: [String!]\\n \"\"\"Whether the app surface accepts dropped files from the user. Defaults to true.\"\"\"\\n isDragAndDropEnabled: Boolean!\\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 '{\\n \"name\": \"\",\\n \"status\": \"DRAFT\",\\n \"allowedDocumentTypes\": null,\\n \"isDragAndDropEnabled\": true\\n}',\n },\n },\n modules: [\n {\n id: \"d274599a-ceb5-4f2b-8651-b25787306734\",\n name: \"base_operations\",\n description:\n \"Set the app's identity, lifecycle status, and the document types it handles.\",\n operations: [\n {\n id: \"f2ba2ddc-8527-4162-93bd-e045e9932013\",\n name: \"SET_APP_NAME\",\n description:\n \"Set the display name of the drive app. Also determines the generated folder name under `editors/`.\",\n schema: \"input SetAppNameInput {\\n name: String!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"c842efa4-154c-4fd9-9d12-42bec51af4e9\",\n name: \"SET_APP_STATUS\",\n description:\n \"Move the app between DRAFT and CONFIRMED. Codegen only runs once the status is CONFIRMED.\",\n schema: \"input SetAppStatusInput {\\n status: StatusType!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"7376f168-695f-4aef-94d0-6e381666358c\",\n name: \"ADD_DOCUMENT_TYPE\",\n description:\n \"Append a document type id to the list of types this app handles. The first type added narrows the app from every type to the listed ones.\",\n schema:\n \"input AddDocumentTypeInput {\\n documentType: String!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"310e4e5b-3f14-4e9a-8e09-5583c7698a65\",\n name: \"REMOVE_DOCUMENT_TYPE\",\n description:\n \"Remove a document type id from the handled list. No-op if the type is not present. Removing the last type leaves an empty list, which accepts every type.\",\n schema:\n \"input RemoveDocumentTypeInput {\\n documentType: String!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"b365727a-7df3-48f0-a4f8-02362f02ad1d\",\n name: \"SET_DOCUMENT_TYPES\",\n description:\n \"Replace the entire allowed-document-types list in one call. An empty list accepts every document type.\",\n schema:\n \"input SetDocumentTypesInput {\\n documentTypes: [String!]!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n ],\n },\n {\n id: \"270faa10-92e9-40d0-b128-2de32704bcb5\",\n name: \"dnd_operations\",\n description:\n \"Toggle drag-and-drop file handling for the app surface.\",\n operations: [\n {\n id: \"077b1ab8-cb32-4b4e-a1fa-76178188c6a1\",\n name: \"SET_DRAG_AND_DROP_ENABLED\",\n description:\n \"Enable or disable drag-and-drop file handling on the app surface.\",\n schema:\n \"input SetDragAndDropEnabledInput {\\n enabled: Boolean!\\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","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 { AppModulePHState } from \"./gen/types.js\";\nimport { utils as genUtils } from \"./gen/utils.js\";\nimport * as customUtils from \"./src/utils.js\";\n\n/** Utils for the AppModule document model */\nexport const utils: DocumentModelUtils<AppModulePHState> = {\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 { AppModulePHState } from \"./gen/types.js\";\nimport { utils } from \"./utils.js\";\n\n/** Document model module for the AppModule document type */\nexport const AppModule = {\n version: 1,\n reducer,\n actions,\n utils,\n documentModel: createState(defaultBaseState(), documentModel),\n} as const satisfies DocumentModelModule<AppModulePHState>;\n"],"mappings":";;;;AAEA,MAAa,gBAA0C;CACrD,IAAI;CACJ,MAAM;CACN,QAAQ;EACN,MAAM;EACN,SAAS;CACX;CACA,WAAW;CACX,aACE;CACF,gBAAgB,CACd;EACE,OAAO;GACL,OAAO;IACL,QAAQ;IACR,UAAU,CAAC;IACX,cAAc;GAChB;GACA,QAAQ;IACN,QACE;IACF,UAAU,CAAC;IACX,cACE;GACJ;EACF;EACA,SAAS,CACP;GACE,IAAI;GACJ,MAAM;GACN,aACE;GACF,YAAY;IACV;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QAAQ;KACR,UAAU;KACV,SAAS;KACT,QAAQ,CAAC;KACT,UAAU,CAAC;KACX,OAAO;IACT;IACA;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QAAQ;KACR,UAAU;KACV,SAAS;KACT,QAAQ,CAAC;KACT,UAAU,CAAC;KACX,OAAO;IACT;IACA;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QACE;KACF,UAAU;KACV,SAAS;KACT,QAAQ,CAAC;KACT,UAAU,CAAC;KACX,OAAO;IACT;IACA;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QACE;KACF,UAAU;KACV,SAAS;KACT,QAAQ,CAAC;KACT,UAAU,CAAC;KACX,OAAO;IACT;IACA;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QACE;KACF,UAAU;KACV,SAAS;KACT,QAAQ,CAAC;KACT,UAAU,CAAC;KACX,OAAO;IACT;GACF;EACF,GACA;GACE,IAAI;GACJ,MAAM;GACN,aACE;GACF,YAAY,CACV;IACE,IAAI;IACJ,MAAM;IACN,aACE;IACF,QACE;IACF,UAAU;IACV,SAAS;IACT,QAAQ,CAAC;IACT,UAAU,CAAC;IACX,OAAO;GACT,CACF;EACF,CACF;EACA,SAAS;EACT,WAAW,CAAC;CACd,CACF;AACF;;;;;;;AEpHA,MAAa,QAA8C;CACzD,GAAGA;CACH,GAAGC;AACL;;;;ACAA,MAAa,YAAY;CACvB,SAAS;CACT;CACA;CACA;CACA,eAAe,YAAY,iBAAiB,GAAG,aAAa;AAC9D"}
|