@powerhousedao/vetra 6.2.3-dev.9 → 6.2.3-dev.91

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.
Files changed (171) hide show
  1. package/dist/codegen/index.d.ts +26 -19
  2. package/dist/codegen/index.d.ts.map +1 -1
  3. package/dist/codegen/index.js +21 -21
  4. package/dist/codegen/index.js.map +1 -1
  5. package/dist/codegen/spec.d.ts +3 -2
  6. package/dist/codegen/spec.js +1 -1
  7. package/dist/{connect-qpJ9OUaH.js → connect-EqImHuZ2.js} +1 -1
  8. package/dist/{connect-qpJ9OUaH.js.map → connect-EqImHuZ2.js.map} +1 -1
  9. package/dist/document-models/app-module/index.d.ts +4 -12
  10. package/dist/document-models/app-module/index.js +4 -4
  11. package/dist/document-models/app-module/index.js.map +1 -1
  12. package/dist/document-models/document-editor/index.d.ts +4 -12
  13. package/dist/document-models/document-editor/index.js +4 -4
  14. package/dist/document-models/document-editor/index.js.map +1 -1
  15. package/dist/document-models/index.d.ts +7 -6
  16. package/dist/document-models/index.js +5 -5
  17. package/dist/document-models/processor-module/index.d.ts +4 -12
  18. package/dist/document-models/processor-module/index.js +5 -5
  19. package/dist/document-models/processor-module/index.js.map +1 -1
  20. package/dist/document-models/subgraph-module/index.d.ts +4 -12
  21. package/dist/document-models/subgraph-module/index.js +4 -4
  22. package/dist/document-models/subgraph-module/index.js.map +1 -1
  23. package/dist/document-models/vetra-package/index.d.ts +4 -12
  24. package/dist/document-models/vetra-package/index.js +3 -3
  25. package/dist/{editor-_0gdltOt.js → editor-BDR7IYJG.js} +5 -7
  26. package/dist/editor-BDR7IYJG.js.map +1 -0
  27. package/dist/{editor-CLbvu3pG.js → editor-CbT_8Z6A.js} +6 -8
  28. package/dist/editor-CbT_8Z6A.js.map +1 -0
  29. package/dist/{editor-CCdg1mJL.js → editor-CnfajXGg.js} +5 -7
  30. package/dist/{editor-CCdg1mJL.js.map → editor-CnfajXGg.js.map} +1 -1
  31. package/dist/{editor-Fgw7attg.js → editor-Cnk0M044.js} +70 -51
  32. package/dist/editor-Cnk0M044.js.map +1 -0
  33. package/dist/{editor-LRAwrgdQ.js → editor-D5SIbFn_.js} +10 -9
  34. package/dist/editor-D5SIbFn_.js.map +1 -0
  35. package/dist/{editor-C13SvgUy.js → editor-SJk7cr6k.js} +5 -7
  36. package/dist/editor-SJk7cr6k.js.map +1 -0
  37. package/dist/editors/components/index.d.ts +3 -3
  38. package/dist/editors/components/index.d.ts.map +1 -1
  39. package/dist/editors/components/index.js.map +1 -1
  40. package/dist/editors/hooks/index.d.ts +3 -3
  41. package/dist/editors/hooks/index.d.ts.map +1 -1
  42. package/dist/editors/hooks/index.js +1 -1
  43. package/dist/editors/index.d.ts +18 -8
  44. package/dist/editors/index.d.ts.map +1 -1
  45. package/dist/editors/index.js +1 -1
  46. package/dist/{factory-DMl8eB3P.js → factory-BQp6QPQO.js} +16 -12
  47. package/dist/factory-BQp6QPQO.js.map +1 -0
  48. package/dist/{factory-5eiZohiv.js → factory-BUuO4fIN.js} +12 -4
  49. package/dist/factory-BUuO4fIN.js.map +1 -0
  50. package/dist/{hooks-BIgFcbaF.js → hooks-BbxvC-C3.js} +2 -2
  51. package/dist/{hooks-BIgFcbaF.js.map → hooks-BbxvC-C3.js.map} +1 -1
  52. package/dist/index-BwHVZmO6.d.ts +43 -0
  53. package/dist/index-BwHVZmO6.d.ts.map +1 -0
  54. package/dist/{index-Dm_gN1DR.d.ts → index-C56rbYzd.d.ts} +27 -59
  55. package/dist/index-C56rbYzd.d.ts.map +1 -0
  56. package/dist/index-CDV0nUS6.d.ts +36 -0
  57. package/dist/index-CDV0nUS6.d.ts.map +1 -0
  58. package/dist/{index-f_um1g-i.d.ts → index-ChQj71kz.d.ts} +27 -62
  59. package/dist/index-ChQj71kz.d.ts.map +1 -0
  60. package/dist/index-CiPX7twW.d.ts +34 -0
  61. package/dist/index-CiPX7twW.d.ts.map +1 -0
  62. package/dist/{index-SB-AtQdU.d.ts → index-CqDvbSe4.d.ts} +31 -64
  63. package/dist/index-CqDvbSe4.d.ts.map +1 -0
  64. package/dist/index-DGhkn3As.d.ts +40 -0
  65. package/dist/index-DGhkn3As.d.ts.map +1 -0
  66. package/dist/index-DoopUfIG.d.ts +32 -0
  67. package/dist/index-DoopUfIG.d.ts.map +1 -0
  68. package/dist/{index-B5ijieNt.d.ts → index-RAhSmsFD.d.ts} +22 -55
  69. package/dist/index-RAhSmsFD.d.ts.map +1 -0
  70. package/dist/index.d.ts +56 -93
  71. package/dist/index.d.ts.map +1 -1
  72. package/dist/index.js +84 -12
  73. package/dist/index.js.map +1 -1
  74. package/dist/{logger-WHD0fyLm.js → logger-BFxMdimR.js} +1 -1
  75. package/dist/{logger-WHD0fyLm.js.map → logger-BFxMdimR.js.map} +1 -1
  76. package/dist/{module-CRq_lUkG.js → module-23VayWKe.js} +9 -9
  77. package/dist/module-23VayWKe.js.map +1 -0
  78. package/dist/{module-Chqkdq4U.js → module-2JZcvfVs.js} +3 -3
  79. package/dist/{module-Chqkdq4U.js.map → module-2JZcvfVs.js.map} +1 -1
  80. package/dist/{module-DXT-FMxU.js → module-B6S4QGOx.js} +7 -7
  81. package/dist/module-B6S4QGOx.js.map +1 -0
  82. package/dist/{module-bKT_e3CH.js → module-BktWa0rB.js} +11 -9
  83. package/dist/module-BktWa0rB.js.map +1 -0
  84. package/dist/{module-ciAK1LUC.d.ts → module-C-jL7yqs.d.ts} +38 -70
  85. package/dist/module-C-jL7yqs.d.ts.map +1 -0
  86. package/dist/{module-CRfHlbnq.js → module-FXJRy_1W.js} +2 -2
  87. package/dist/{module-CRfHlbnq.js.map → module-FXJRy_1W.js.map} +1 -1
  88. package/dist/{module-Bx1OEHxF.js → module-hLzF5tCL.js} +3 -3
  89. package/dist/{module-Bx1OEHxF.js.map → module-hLzF5tCL.js.map} +1 -1
  90. package/dist/{ph-factories-CjbIAMgT.js → ph-factories-Bgnr3mK3.js} +2 -2
  91. package/dist/{ph-factories-CjbIAMgT.js.map → ph-factories-Bgnr3mK3.js.map} +1 -1
  92. package/dist/{ph-factories-Ce8oAqs9.js → ph-factories-CgoFCmG0.js} +2 -2
  93. package/dist/{ph-factories-Ce8oAqs9.js.map → ph-factories-CgoFCmG0.js.map} +1 -1
  94. package/dist/{ph-factories-dVj6mIlR.js → ph-factories-DhLtvC7j.js} +2 -2
  95. package/dist/{ph-factories-dVj6mIlR.js.map → ph-factories-DhLtvC7j.js.map} +1 -1
  96. package/dist/{ph-factories-CljTAAVS.js → ph-factories-fEke-Nr8.js} +2 -2
  97. package/dist/{ph-factories-CljTAAVS.js.map → ph-factories-fEke-Nr8.js.map} +1 -1
  98. package/dist/powerhouse.manifest.json +76 -0
  99. package/dist/{processor-trJFuoHh.js → processor-C_zliXhw.js} +435 -327
  100. package/dist/processor-C_zliXhw.js.map +1 -0
  101. package/dist/processors/codegen/index.d.ts +14 -6
  102. package/dist/processors/codegen/index.d.ts.map +1 -1
  103. package/dist/processors/codegen/index.js +2 -2
  104. package/dist/processors/index.d.ts +2 -3
  105. package/dist/processors/index.d.ts.map +1 -1
  106. package/dist/processors/index.js +1 -1
  107. package/dist/processors/index.js.map +1 -1
  108. package/dist/processors/vetra-read-model/index.d.ts +47 -49
  109. package/dist/processors/vetra-read-model/index.d.ts.map +1 -1
  110. package/dist/processors/vetra-read-model/index.js +1 -1
  111. package/dist/{spec-api-DobY5TUJ.js → spec-api-BGj7gcQn.js} +24 -18
  112. package/dist/{spec-api-DobY5TUJ.js.map → spec-api-BGj7gcQn.js.map} +1 -1
  113. package/dist/{specs-BeVdfCwg.d.ts → specs-DoTSfuxN.d.ts} +7 -4
  114. package/dist/specs-DoTSfuxN.d.ts.map +1 -0
  115. package/dist/subgraph-type-lint-Dr8Wu0VB.js +94 -0
  116. package/dist/subgraph-type-lint-Dr8Wu0VB.js.map +1 -0
  117. package/dist/switchboard-DjCPLtMW.js +8 -0
  118. package/dist/{switchboard-Bf0uvxSu.js.map → switchboard-DjCPLtMW.js.map} +1 -1
  119. package/dist/{upgrade-manifest-OlS1ALVv.js → upgrade-manifest-BOZ5nmyK.js} +1 -1
  120. package/dist/{upgrade-manifest-OlS1ALVv.js.map → upgrade-manifest-BOZ5nmyK.js.map} +1 -1
  121. package/dist/{upgrade-manifest-BGuy0v65.js → upgrade-manifest-D7xKGmZc.js} +1 -1
  122. package/dist/{upgrade-manifest-BGuy0v65.js.map → upgrade-manifest-D7xKGmZc.js.map} +1 -1
  123. package/dist/{upgrade-manifest-Ck3Mgwhc.js → upgrade-manifest-DLxSL23q.js} +1 -1
  124. package/dist/{upgrade-manifest-Ck3Mgwhc.js.map → upgrade-manifest-DLxSL23q.js.map} +1 -1
  125. package/dist/{upgrade-manifest-XdOLymuP.js → upgrade-manifest-Dv62Cod7.js} +1 -1
  126. package/dist/{upgrade-manifest-XdOLymuP.js.map → upgrade-manifest-Dv62Cod7.js.map} +1 -1
  127. package/dist/{upgrade-manifest-NaS4SWk9.js → upgrade-manifest-d3LquK-H.js} +1 -1
  128. package/dist/{upgrade-manifest-NaS4SWk9.js.map → upgrade-manifest-d3LquK-H.js.map} +1 -1
  129. package/dist/{utils-DXCsvCXL.js → utils-876N1Sph.js} +2 -2
  130. package/dist/{utils-DXCsvCXL.js.map → utils-876N1Sph.js.map} +1 -1
  131. package/dist/{utils-CkxGmQ2_.js → utils-Al_SGg2a.js} +2 -2
  132. package/dist/{utils-CkxGmQ2_.js.map → utils-Al_SGg2a.js.map} +1 -1
  133. package/dist/{utils-DmOIDVQo.js → utils-BJk4_43W.js} +24 -4
  134. package/dist/utils-BJk4_43W.js.map +1 -0
  135. package/dist/{utils-B4KdjDnp.js → utils-COP7hJ-K.js} +2 -2
  136. package/dist/{utils-B4KdjDnp.js.map → utils-COP7hJ-K.js.map} +1 -1
  137. package/dist/{vetra-package-Bl6TC4wx.js → vetra-package-DSyRtkdJ.js} +2 -2
  138. package/dist/{vetra-package-Bl6TC4wx.js.map → vetra-package-DSyRtkdJ.js.map} +1 -1
  139. package/package.json +17 -14
  140. package/style.css +2 -0
  141. package/dist/document-models/app-module/index.d.ts.map +0 -1
  142. package/dist/document-models/document-editor/index.d.ts.map +0 -1
  143. package/dist/document-models/processor-module/index.d.ts.map +0 -1
  144. package/dist/document-models/subgraph-module/index.d.ts.map +0 -1
  145. package/dist/document-models/vetra-package/index.d.ts.map +0 -1
  146. package/dist/editor-C13SvgUy.js.map +0 -1
  147. package/dist/editor-CLbvu3pG.js.map +0 -1
  148. package/dist/editor-Fgw7attg.js.map +0 -1
  149. package/dist/editor-LRAwrgdQ.js.map +0 -1
  150. package/dist/editor-_0gdltOt.js.map +0 -1
  151. package/dist/factory-5eiZohiv.js.map +0 -1
  152. package/dist/factory-DMl8eB3P.js.map +0 -1
  153. package/dist/index-B5ijieNt.d.ts.map +0 -1
  154. package/dist/index-Dm_gN1DR.d.ts.map +0 -1
  155. package/dist/index-SB-AtQdU.d.ts.map +0 -1
  156. package/dist/index-f_um1g-i.d.ts.map +0 -1
  157. package/dist/module-CRq_lUkG.js.map +0 -1
  158. package/dist/module-DXT-FMxU.js.map +0 -1
  159. package/dist/module-bKT_e3CH.js.map +0 -1
  160. package/dist/module-ciAK1LUC.d.ts.map +0 -1
  161. package/dist/powerhouse.manifest.d.ts +0 -34
  162. package/dist/powerhouse.manifest.d.ts.map +0 -1
  163. package/dist/powerhouse.manifest.js +0 -86
  164. package/dist/powerhouse.manifest.js.map +0 -1
  165. package/dist/processor-trJFuoHh.js.map +0 -1
  166. package/dist/specs-BeVdfCwg.d.ts.map +0 -1
  167. package/dist/switchboard-Bf0uvxSu.js +0 -8
  168. package/dist/useVetraDocument-BlLdlhrQ.js +0 -30
  169. package/dist/useVetraDocument-BlLdlhrQ.js.map +0 -1
  170. package/dist/utils-DmOIDVQo.js.map +0 -1
  171. /package/dist/{chunk-pbuEa-1d.js → rolldown-runtime-D7D4PA-g.js} +0 -0
@@ -0,0 +1,34 @@
1
+ import { B as AddDocumentTypeAction, H as RemoveDocumentTypeAction, J as AddDocumentTypeInput, U as SetEditorNameAction, W as SetEditorStatusAction, it as RemoveDocumentTypeInput, ot as SetEditorNameInput, st as SetEditorStatusInput } from "./index-C56rbYzd.js";
2
+ import { UpgradeManifest } from "document-model";
3
+ //#region document-models/document-editor/v1/gen/document-type.d.ts
4
+ /**
5
+ * WARNING: DO NOT EDIT
6
+ * This file is auto-generated and updated by codegen
7
+ */
8
+ declare const documentEditorDocumentType = "powerhouse/document-editor";
9
+ //#endregion
10
+ //#region document-models/document-editor/v1/actions.d.ts
11
+ /** Actions for the DocumentEditor document model */
12
+ declare const actions: {
13
+ setName: typeof import("document-model").setName;
14
+ setPreferredEditor: typeof import("document-model").setPreferredEditor;
15
+ setSlug: typeof import("document-model").setSlug;
16
+ undo: typeof import("document-model").undo;
17
+ redo: typeof import("document-model").redo;
18
+ noop: typeof import("document-model").noop;
19
+ setEditorName: (input: SetEditorNameInput) => SetEditorNameAction;
20
+ addDocumentType: (input: AddDocumentTypeInput) => AddDocumentTypeAction;
21
+ removeDocumentType: (input: RemoveDocumentTypeInput) => RemoveDocumentTypeAction;
22
+ setEditorStatus: (input: SetEditorStatusInput) => SetEditorStatusAction;
23
+ };
24
+ //#endregion
25
+ //#region document-models/document-editor/upgrades/versions.d.ts
26
+ declare const supportedVersions: readonly [1];
27
+ declare const latestVersion: 1;
28
+ //#endregion
29
+ //#region document-models/document-editor/upgrades/upgrade-manifest.d.ts
30
+ declare const documentEditorUpgradeManifest: UpgradeManifest<typeof supportedVersions>;
31
+ //#endregion
32
+ export { documentEditorDocumentType as a, actions as i, latestVersion as n, supportedVersions as r, documentEditorUpgradeManifest as t };
33
+ export {};
34
+ //# sourceMappingURL=index-CiPX7twW.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-CiPX7twW.d.ts","names":[],"sources":["../document-models/document-editor/v1/gen/document-type.ts","../document-models/document-editor/v1/actions.ts","../document-models/document-editor/upgrades/versions.ts","../document-models/document-editor/upgrades/upgrade-manifest.ts"],"mappings":";;;;;;;cAIa;;;;cCKA;;;;;;;yBAAA;;;;;;;cCTA;cAEA;;;cCKA,+BAA+B,uBACnC"}
@@ -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/processor-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: {
@@ -152,7 +150,9 @@ type AddProcessorAppInput = {
152
150
  };
153
151
  /** A document type id (e.g. 'my-org/invoice') attached to the processor with a stable entry id. */
154
152
  type DocumentTypeItem = {
155
- /** Document type id this processor subscribes to. */documentType: Scalars["String"]["output"]; /** Stable identifier for the entry; used to remove it. */
153
+ /** Document type id this processor subscribes to. */
154
+ documentType: Scalars["String"]["output"];
155
+ /** Stable identifier for the entry; used to remove it. */
156
156
  id: Scalars["OID"]["output"];
157
157
  };
158
158
  /**
@@ -161,10 +161,15 @@ type DocumentTypeItem = {
161
161
  * building a read model, indexing, syncing to an external system).
162
162
  */
163
163
  type ProcessorModuleState = {
164
- /** Document types this processor subscribes to. Each entry has a stable id so it can be removed individually. */documentTypes: Array<DocumentTypeItem>; /** Display name of the processor. Also determines the generated folder name under `processors/`. */
165
- name: Scalars["String"]["output"]; /** Drive-app names this processor is attached to. The processor runs in the context of each listed app. */
166
- processorApps: Array<Scalars["String"]["output"]>; /** Lifecycle status. While DRAFT the processor definition is editable and codegen is skipped; switching to CONFIRMED triggers scaffold generation. */
167
- status: StatusType; /** Processor implementation kind (e.g. 'read-model', 'relational-db'). Determines which scaffold codegen emits. */
164
+ /** Document types this processor subscribes to. Each entry has a stable id so it can be removed individually. */
165
+ documentTypes: Array<DocumentTypeItem>;
166
+ /** Display name of the processor. Also determines the generated folder name under `processors/`. */
167
+ name: Scalars["String"]["output"];
168
+ /** Drive-app names this processor is attached to. The processor runs in the context of each listed app. */
169
+ processorApps: Array<Scalars["String"]["output"]>;
170
+ /** Lifecycle status. While DRAFT the processor definition is editable and codegen is skipped; switching to CONFIRMED triggers scaffold generation. */
171
+ status: StatusType;
172
+ /** Processor implementation kind: `analytics` or `relational`. Determines which scaffold codegen emits; codegen generates nothing for any other value. */
168
173
  type: Scalars["String"]["output"];
169
174
  };
170
175
  type RemoveDocumentTypeInput = {
@@ -243,7 +248,7 @@ interface ProcessorModuleBaseOperationsOperations {
243
248
  }
244
249
  //#endregion
245
250
  //#region document-models/processor-module/v1/gen/controller.d.ts
246
- declare const ProcessorModuleController: new (initialDocument?: document_model0.PHDocument<ProcessorModulePHState> | undefined) => PHDocumentController<ProcessorModulePHState> & document_model0.ActionMap<ProcessorModuleBaseOperationsAction, PHDocumentController<ProcessorModulePHState>>;
251
+ declare const ProcessorModuleController: new (initialDocument?: import("document-model").PHDocument<ProcessorModulePHState> | undefined) => PHDocumentController<ProcessorModulePHState> & import("document-model").ActionMap<ProcessorModuleBaseOperationsAction, PHDocumentController<ProcessorModulePHState>>;
247
252
  declare namespace creators_d_exports {
248
253
  export { addDocumentType, addProcessorApp, removeDocumentType, removeProcessorApp, setProcessorName, setProcessorStatus, setProcessorType };
249
254
  }
@@ -313,13 +318,6 @@ declare function isProcessorModuleDocument(document: unknown): document is Proce
313
318
  /** Simple helper function to assert that a document is a ProcessorModule document */
314
319
  declare function assertIsProcessorModuleDocument(document: unknown): asserts document is ProcessorModuleDocument;
315
320
  //#endregion
316
- //#region document-models/processor-module/v1/gen/document-type.d.ts
317
- /**
318
- * WARNING: DO NOT EDIT
319
- * This file is auto-generated and updated by codegen
320
- */
321
- declare const processorModuleDocumentType = "powerhouse/processor";
322
- //#endregion
323
321
  //#region document-models/processor-module/v1/gen/ph-factories.d.ts
324
322
  declare function defaultGlobalState(): ProcessorModuleState;
325
323
  declare function defaultLocalState(): ProcessorModuleLocalState;
@@ -337,31 +335,6 @@ declare function createProcessorModuleDocument(state?: Partial<{
337
335
  local?: Partial<ProcessorModuleLocalState>;
338
336
  }>): ProcessorModuleDocument;
339
337
  //#endregion
340
- //#region document-models/processor-module/v1/actions.d.ts
341
- /** Actions for the ProcessorModule document model */
342
- declare const actions: {
343
- setProcessorName: (input: SetProcessorNameInput) => SetProcessorNameAction;
344
- setProcessorType: (input: SetProcessorTypeInput) => SetProcessorTypeAction;
345
- addDocumentType: (input: AddDocumentTypeInput) => AddDocumentTypeAction;
346
- removeDocumentType: (input: RemoveDocumentTypeInput) => RemoveDocumentTypeAction;
347
- addProcessorApp: (input: AddProcessorAppInput) => AddProcessorAppAction;
348
- removeProcessorApp: (input: RemoveProcessorAppInput) => RemoveProcessorAppAction;
349
- setProcessorStatus: (input: SetProcessorStatusInput) => SetProcessorStatusAction;
350
- setName: (name: string | {
351
- name: string;
352
- }) => document_model0.SetNameAction;
353
- setPreferredEditor: (input: string | null | {
354
- preferredEditor: string | null;
355
- }) => document_model0.SetPreferredEditorAction;
356
- undo: (count?: number, scope?: string) => document_model0.UndoAction;
357
- redo: (count?: number, scope?: string) => document_model0.RedoAction;
358
- prune: (start?: number, end?: number, scope?: string) => document_model0.SchemaPruneAction;
359
- loadState: <TState extends document_model0.PHBaseState = document_model0.PHBaseState>(state: TState & {
360
- name: string;
361
- }, operations: number) => document_model0.LoadStateAction;
362
- noop: (scope?: string) => document_model0.NOOPAction;
363
- };
364
- //#endregion
365
338
  //#region document-models/processor-module/v1/hooks.d.ts
366
339
  /** Hook to get a ProcessorModule document by its id */
367
340
  declare function useProcessorModuleDocumentById(documentId: string | null | undefined): [ProcessorModuleDocument, DocumentDispatch<ProcessorModuleAction>] | [undefined, undefined];
@@ -376,8 +349,14 @@ declare function useProcessorModuleDocumentsInSelectedFolder(): ProcessorModuleD
376
349
  /** Document model module for the ProcessorModule document type */
377
350
  declare const ProcessorModule: {
378
351
  readonly version: 1;
379
- readonly reducer: document_model0.Reducer<ProcessorModulePHState>;
352
+ readonly reducer: import("document-model").Reducer<ProcessorModulePHState>;
380
353
  readonly actions: {
354
+ setName: typeof import("document-model").setName;
355
+ setPreferredEditor: typeof import("document-model").setPreferredEditor;
356
+ setSlug: typeof import("document-model").setSlug;
357
+ undo: typeof import("document-model").undo;
358
+ redo: typeof import("document-model").redo;
359
+ noop: typeof import("document-model").noop;
381
360
  setProcessorName: (input: SetProcessorNameInput) => SetProcessorNameAction;
382
361
  setProcessorType: (input: SetProcessorTypeInput) => SetProcessorTypeAction;
383
362
  addDocumentType: (input: AddDocumentTypeInput) => AddDocumentTypeAction;
@@ -385,22 +364,9 @@ declare const ProcessorModule: {
385
364
  addProcessorApp: (input: AddProcessorAppInput) => AddProcessorAppAction;
386
365
  removeProcessorApp: (input: RemoveProcessorAppInput) => RemoveProcessorAppAction;
387
366
  setProcessorStatus: (input: SetProcessorStatusInput) => SetProcessorStatusAction;
388
- setName: (name: string | {
389
- name: string;
390
- }) => document_model0.SetNameAction;
391
- setPreferredEditor: (input: string | null | {
392
- preferredEditor: string | null;
393
- }) => document_model0.SetPreferredEditorAction;
394
- undo: (count?: number, scope?: string) => document_model0.UndoAction;
395
- redo: (count?: number, scope?: string) => document_model0.RedoAction;
396
- prune: (start?: number, end?: number, scope?: string) => document_model0.SchemaPruneAction;
397
- loadState: <TState extends document_model0.PHBaseState = document_model0.PHBaseState>(state: TState & {
398
- name: string;
399
- }, operations: number) => document_model0.LoadStateAction;
400
- noop: (scope?: string) => document_model0.NOOPAction;
401
367
  };
402
- readonly utils: document_model0.DocumentModelUtils<ProcessorModulePHState>;
403
- readonly documentModel: document_model0.DocumentModelPHState;
368
+ readonly utils: import("document-model").DocumentModelUtils<ProcessorModulePHState>;
369
+ readonly documentModel: import("document-model").DocumentModelPHState;
404
370
  };
405
371
  //#endregion
406
372
  //#region document-models/processor-module/v1/utils.d.ts
@@ -411,7 +377,7 @@ declare const utils: DocumentModelUtils<ProcessorModulePHState>;
411
377
  declare const reducer: Reducer<ProcessorModulePHState>;
412
378
  //#endregion
413
379
  //#region document-models/processor-module/v1/gen/schema/zod.d.ts
414
- type Properties<T> = Required<{ [K in keyof T]: z$1.ZodType<T[K]> }>;
380
+ type Properties<T> = Required<{ [K in keyof T]: z$1.ZodType<T[K]>; }>;
415
381
  type definedNonNullAny = {};
416
382
  declare const isDefinedNonNullAny: (v: any) => v is definedNonNullAny;
417
383
  declare const definedNonNullAnySchema: z$1.ZodAny & z$1.ZodType<definedNonNullAny, any, z$1.core.$ZodTypeInternals<definedNonNullAny, any>>;
@@ -433,5 +399,6 @@ declare function SetProcessorTypeInputSchema(): z$1.ZodObject<Properties<SetProc
433
399
  declare const initialGlobalState: ProcessorModuleState;
434
400
  declare const initialLocalState: ProcessorModuleLocalState;
435
401
  //#endregion
436
- export { SetProcessorNameAction as $, ProcessorModuleDocumentSchema as A, removeDocumentType as B, createProcessorModuleDocument as C, defaultPHState as D, defaultLocalState as E, isProcessorModuleState as F, ProcessorModuleController as G, setProcessorName as H, documentModel as I, AddDocumentTypeAction as J, ProcessorModuleBaseOperationsOperations as K, addDocumentType as L, assertIsProcessorModuleDocument as M, assertIsProcessorModuleState as N, processorModuleDocumentType as O, isProcessorModuleDocument as P, RemoveProcessorAppAction as Q, addProcessorApp as R, actions as S, StatusType as St, defaultGlobalState as T, setProcessorStatus as U, removeProcessorApp as V, setProcessorType as W, ProcessorModuleBaseOperationsAction as X, AddProcessorAppAction as Y, RemoveDocumentTypeAction as Z, ProcessorModule as _, RemoveProcessorAppInput as _t, DocumentTypeItemSchema as a, AddDocumentTypeInput as at, useProcessorModuleDocumentsInSelectedFolder as b, SetProcessorStatusInput as bt, RemoveProcessorAppInputSchema as c, Exact as ct, SetProcessorTypeInputSchema as d, MakeEmpty as dt, SetProcessorStatusAction as et, StatusTypeSchema as f, MakeMaybe as ft, utils as g, RemoveDocumentTypeInput as gt, reducer as h, ProcessorModuleState as ht, AddProcessorAppInputSchema as i, ProcessorModulePHState as it, ProcessorModulePHStateSchema as j, ProcessorModuleDocumentHeaderSchema as k, SetProcessorNameInputSchema as l, Incremental as lt, isDefinedNonNullAny as m, Maybe as mt, initialLocalState as n, ProcessorModuleDocument as nt, ProcessorModuleStateSchema as o, AddProcessorAppInput as ot, definedNonNullAnySchema as p, MakeOptional as pt, ProcessorModuleAction as q, AddDocumentTypeInputSchema as r, ProcessorModuleLocalState as rt, RemoveDocumentTypeInputSchema as s, DocumentTypeItem as st, initialGlobalState as t, SetProcessorTypeAction as tt, SetProcessorStatusInputSchema as u, InputMaybe as ut, useProcessorModuleDocumentById as v, Scalars as vt, createState$1 as w, useSelectedProcessorModuleDocument as x, SetProcessorTypeInput as xt, useProcessorModuleDocumentsInSelectedDrive as y, SetProcessorNameInput as yt, creators_d_exports as z };
437
- //# sourceMappingURL=index-SB-AtQdU.d.ts.map
402
+ export { SetProcessorTypeAction as $, assertIsProcessorModuleDocument as A, setProcessorName as B, createState$1 as C, ProcessorModuleDocumentHeaderSchema as D, defaultPHState as E, addDocumentType as F, ProcessorModuleAction as G, setProcessorType as H, addProcessorApp as I, ProcessorModuleBaseOperationsAction as J, AddDocumentTypeAction as K, creators_d_exports as L, isProcessorModuleDocument as M, isProcessorModuleState as N, ProcessorModuleDocumentSchema as O, documentModel as P, SetProcessorStatusAction as Q, removeDocumentType as R, createProcessorModuleDocument as S, defaultLocalState as T, ProcessorModuleController as U, setProcessorStatus as V, ProcessorModuleBaseOperationsOperations as W, RemoveProcessorAppAction as X, RemoveDocumentTypeAction as Y, SetProcessorNameAction as Z, ProcessorModule as _, SetProcessorNameInput as _t, DocumentTypeItemSchema as a, DocumentTypeItem as at, useProcessorModuleDocumentsInSelectedFolder as b, StatusType as bt, RemoveProcessorAppInputSchema as c, InputMaybe as ct, SetProcessorTypeInputSchema as d, MakeOptional as dt, ProcessorModuleDocument as et, StatusTypeSchema as f, Maybe as ft, utils as g, Scalars as gt, reducer as h, RemoveProcessorAppInput as ht, AddProcessorAppInputSchema as i, AddProcessorAppInput as it, assertIsProcessorModuleState as j, ProcessorModulePHStateSchema as k, SetProcessorNameInputSchema as l, MakeEmpty as lt, isDefinedNonNullAny as m, RemoveDocumentTypeInput as mt, initialLocalState as n, ProcessorModulePHState as nt, ProcessorModuleStateSchema as o, Exact as ot, definedNonNullAnySchema as p, ProcessorModuleState as pt, AddProcessorAppAction as q, AddDocumentTypeInputSchema as r, AddDocumentTypeInput as rt, RemoveDocumentTypeInputSchema as s, Incremental as st, initialGlobalState as t, ProcessorModuleLocalState as tt, SetProcessorStatusInputSchema as u, MakeMaybe as ut, useProcessorModuleDocumentById as v, SetProcessorStatusInput as vt, defaultGlobalState as w, useSelectedProcessorModuleDocument as x, useProcessorModuleDocumentsInSelectedDrive as y, SetProcessorTypeInput as yt, removeProcessorApp as z };
403
+ export {};
404
+ //# sourceMappingURL=index-CqDvbSe4.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-CqDvbSe4.d.ts","names":[],"sources":["../document-models/processor-module/v1/gen/schema/types.ts","../document-models/processor-module/v1/gen/types.ts","../document-models/processor-module/v1/gen/base-operations/actions.ts","../document-models/processor-module/v1/gen/actions.ts","../document-models/processor-module/v1/gen/base-operations/operations.ts","../document-models/processor-module/v1/gen/controller.ts","../document-models/processor-module/v1/gen/base-operations/creators.ts","../document-models/processor-module/v1/gen/document-model.ts","../document-models/processor-module/v1/gen/document-schema.ts","../document-models/processor-module/v1/gen/ph-factories.ts","../document-models/processor-module/v1/hooks.ts","../document-models/processor-module/v1/module.ts","../document-models/processor-module/v1/utils.ts","../document-models/processor-module/v1/gen/reducer.ts","../document-models/processor-module/v1/gen/schema/zod.ts","../document-models/processor-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;;EAC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AA0B,IAAE,UAC1C,WAAW;iBASG,8BAA8B,IAAE,UAC9C,WAAW;iBAYG,iCAAiC,IAAE,UACjD,WAAW;iBAOG,iCAAiC,IAAE,UACjD,WAAW;iBAOG,+BAA+B,IAAE,UAC/C,WAAW;iBAOG,iCAAiC,IAAE,UACjD,WAAW;iBAOG,+BAA+B,IAAE,UAC/C,WAAW;;;cC/EA,oBAAoB;cAOpB,mBAAmB"}
@@ -0,0 +1,40 @@
1
+ import { 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";
2
+ import { UpgradeManifest } from "document-model";
3
+ //#region document-models/vetra-package/v1/actions.d.ts
4
+ /** Actions for the VetraPackage document model */
5
+ declare const actions: {
6
+ setName: typeof import("document-model").setName;
7
+ setPreferredEditor: typeof import("document-model").setPreferredEditor;
8
+ setSlug: typeof import("document-model").setSlug;
9
+ undo: typeof import("document-model").undo;
10
+ redo: typeof import("document-model").redo;
11
+ noop: typeof import("document-model").noop;
12
+ setPackageName: (input: SetPackageNameInput) => SetPackageNameAction;
13
+ setPackageDescription: (input: SetPackageDescriptionInput) => SetPackageDescriptionAction;
14
+ setPackageCategory: (input: SetPackageCategoryInput) => SetPackageCategoryAction;
15
+ setPackageAuthor: (input: SetPackageAuthorInput) => SetPackageAuthorAction;
16
+ setPackageAuthorName: (input: SetPackageAuthorNameInput) => SetPackageAuthorNameAction;
17
+ setPackageAuthorWebsite: (input: SetPackageAuthorWebsiteInput) => SetPackageAuthorWebsiteAction;
18
+ addPackageKeyword: (input: AddPackageKeywordInput) => AddPackageKeywordAction;
19
+ removePackageKeyword: (input: RemovePackageKeywordInput) => RemovePackageKeywordAction;
20
+ setPackageGithubUrl: (input: SetPackageGithubUrlInput) => SetPackageGithubUrlAction;
21
+ setPackageNpmUrl: (input: SetPackageNpmUrlInput) => SetPackageNpmUrlAction;
22
+ };
23
+ //#endregion
24
+ //#region document-models/vetra-package/v1/gen/document-type.d.ts
25
+ /**
26
+ * WARNING: DO NOT EDIT
27
+ * This file is auto-generated and updated by codegen
28
+ */
29
+ declare const vetraPackageDocumentType = "powerhouse/package";
30
+ //#endregion
31
+ //#region document-models/vetra-package/upgrades/versions.d.ts
32
+ declare const supportedVersions: readonly [1];
33
+ declare const latestVersion: 1;
34
+ //#endregion
35
+ //#region document-models/vetra-package/upgrades/upgrade-manifest.d.ts
36
+ declare const vetraPackageUpgradeManifest: UpgradeManifest<typeof supportedVersions>;
37
+ //#endregion
38
+ export { actions as a, vetraPackageDocumentType as i, latestVersion as n, supportedVersions as r, vetraPackageUpgradeManifest as t };
39
+ export {};
40
+ //# sourceMappingURL=index-DGhkn3As.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-DGhkn3As.d.ts","names":[],"sources":["../document-models/vetra-package/v1/actions.ts","../document-models/vetra-package/v1/gen/document-type.ts","../document-models/vetra-package/upgrades/versions.ts","../document-models/vetra-package/upgrades/upgrade-manifest.ts"],"mappings":";;;;cASa;;;;;;;0BAAA;;;;;;;;;;;;;;;;;cCLA;;;cCJA;cAEA;;;cCKA,6BAA6B,uBACjC"}
@@ -0,0 +1,32 @@
1
+ import { F as SetSubgraphNameAction, I as SetSubgraphStatusAction, X as SetSubgraphStatusInput, Y as SetSubgraphNameInput } from "./index-RAhSmsFD.js";
2
+ import { UpgradeManifest } from "document-model";
3
+ //#region document-models/subgraph-module/v1/gen/document-type.d.ts
4
+ /**
5
+ * WARNING: DO NOT EDIT
6
+ * This file is auto-generated and updated by codegen
7
+ */
8
+ declare const subgraphModuleDocumentType = "powerhouse/subgraph";
9
+ //#endregion
10
+ //#region document-models/subgraph-module/v1/actions.d.ts
11
+ /** Actions for the SubgraphModule document model */
12
+ declare const actions: {
13
+ setName: typeof import("document-model").setName;
14
+ setPreferredEditor: typeof import("document-model").setPreferredEditor;
15
+ setSlug: typeof import("document-model").setSlug;
16
+ undo: typeof import("document-model").undo;
17
+ redo: typeof import("document-model").redo;
18
+ noop: typeof import("document-model").noop;
19
+ setSubgraphName: (input: SetSubgraphNameInput) => SetSubgraphNameAction;
20
+ setSubgraphStatus: (input: SetSubgraphStatusInput) => SetSubgraphStatusAction;
21
+ };
22
+ //#endregion
23
+ //#region document-models/subgraph-module/upgrades/versions.d.ts
24
+ declare const supportedVersions: readonly [1];
25
+ declare const latestVersion: 1;
26
+ //#endregion
27
+ //#region document-models/subgraph-module/upgrades/upgrade-manifest.d.ts
28
+ declare const subgraphModuleUpgradeManifest: UpgradeManifest<typeof supportedVersions>;
29
+ //#endregion
30
+ export { subgraphModuleDocumentType as a, actions as i, latestVersion as n, supportedVersions as r, subgraphModuleUpgradeManifest as t };
31
+ export {};
32
+ //# sourceMappingURL=index-DoopUfIG.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-DoopUfIG.d.ts","names":[],"sources":["../document-models/subgraph-module/v1/gen/document-type.ts","../document-models/subgraph-module/v1/actions.ts","../document-models/subgraph-module/upgrades/versions.ts","../document-models/subgraph-module/upgrades/upgrade-manifest.ts"],"mappings":";;;;;;;cAIa;;;;cCKA;;;;;;;2BAAA;;;;;cCTA;cAEA;;;cCKA,+BAA+B,uBACnC"}
@@ -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. */name: Scalars["String"]["output"]; /** Lifecycle status. While DRAFT the subgraph definition is editable and codegen is skipped; switching to CONFIRMED triggers scaffold generation. */
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?: document_model0.PHDocument<SubgraphModulePHState> | undefined) => PHDocumentController<SubgraphModulePHState> & document_model0.ActionMap<SubgraphModuleBaseOperationsAction, PHDocumentController<SubgraphModulePHState>>;
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: document_model0.Reducer<SubgraphModulePHState>;
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: document_model0.DocumentModelUtils<SubgraphModulePHState>;
329
- readonly documentModel: document_model0.DocumentModelPHState;
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 { StatusType as $, documentModel as A, SubgraphModuleDocument as B, SubgraphModuleDocumentHeaderSchema as C, assertIsSubgraphModuleState as D, assertIsSubgraphModuleDocument as E, SubgraphModuleBaseOperationsOperations as F, InputMaybe as G, SubgraphModulePHState as H, SubgraphModuleAction as I, MakeOptional as J, MakeEmpty as K, SetSubgraphNameAction as L, setSubgraphName as M, setSubgraphStatus as N, isSubgraphModuleDocument as O, SubgraphModuleController as P, SetSubgraphStatusInput as Q, SetSubgraphStatusAction as R, subgraphModuleDocumentType as S, SubgraphModulePHStateSchema as T, Exact as U, SubgraphModuleLocalState as V, Incremental as W, Scalars as X, Maybe as Y, SetSubgraphNameInput as Z, createState$1 as _, StatusTypeSchema as a, defaultLocalState as b, isDefinedNonNullAny as c, SubgraphModule as d, SubgraphModuleState as et, useSelectedSubgraphModuleDocument as f, actions as g, useSubgraphModuleDocumentsInSelectedFolder as h, SetSubgraphStatusInputSchema as i, creators_d_exports as j, isSubgraphModuleState as k, reducer as l, useSubgraphModuleDocumentsInSelectedDrive as m, initialLocalState as n, SubgraphModuleStateSchema as o, useSubgraphModuleDocumentById as p, MakeMaybe as q, SetSubgraphNameInputSchema as r, definedNonNullAnySchema as s, initialGlobalState as t, utils as u, createSubgraphModuleDocument as v, SubgraphModuleDocumentSchema as w, defaultPHState as x, defaultGlobalState as y, SubgraphModuleBaseOperationsAction as z };
357
- //# sourceMappingURL=index-B5ijieNt.d.ts.map
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;IAAg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