@powerhousedao/vetra 6.2.3 → 6.3.0-dev.1
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 +19 -7
- package/dist/codegen/index.d.ts.map +1 -1
- package/dist/codegen/index.js +29 -27
- package/dist/codegen/index.js.map +1 -1
- package/dist/codegen/spec.js +1 -1
- package/dist/document-models/app-module/index.d.ts +3 -34
- package/dist/document-models/app-module/index.js +1 -1
- package/dist/document-models/document-editor/index.d.ts +3 -32
- package/dist/document-models/index.d.ts +5 -5
- package/dist/document-models/index.js +2 -2
- package/dist/document-models/processor-module/index.d.ts +3 -35
- package/dist/document-models/processor-module/index.js +4 -4
- package/dist/document-models/subgraph-module/index.d.ts +3 -30
- package/dist/document-models/vetra-package/index.d.ts +3 -38
- package/dist/{editor-CiX3Tq3g.js → editor-BDR7IYJG.js} +3 -5
- package/dist/{editor-CiX3Tq3g.js.map → editor-BDR7IYJG.js.map} +1 -1
- package/dist/{editor-C5a0rBQj.js → editor-CbT_8Z6A.js} +4 -6
- package/dist/{editor-C5a0rBQj.js.map → editor-CbT_8Z6A.js.map} +1 -1
- package/dist/{editor-DpZVlVN1.js → editor-CnfajXGg.js} +3 -5
- package/dist/{editor-DpZVlVN1.js.map → editor-CnfajXGg.js.map} +1 -1
- package/dist/{editor-DpadPeVq.js → editor-Cnk0M044.js} +46 -27
- package/dist/editor-Cnk0M044.js.map +1 -0
- package/dist/{editor-BXOEFIDj.js → editor-D5SIbFn_.js} +3 -3
- package/dist/{editor-BXOEFIDj.js.map → editor-D5SIbFn_.js.map} +1 -1
- package/dist/{editor-DFEeM_dy.js → editor-SJk7cr6k.js} +3 -5
- package/dist/{editor-DFEeM_dy.js.map → editor-SJk7cr6k.js.map} +1 -1
- package/dist/editors/index.d.ts +17 -6
- package/dist/editors/index.d.ts.map +1 -1
- package/dist/editors/index.js +1 -1
- package/dist/{factory-BzUAqoGU.js → factory-BUuO4fIN.js} +11 -3
- package/dist/factory-BUuO4fIN.js.map +1 -0
- package/dist/{factory-BWrWHoS5.js → factory-C-Nm-wK8.js} +15 -11
- package/dist/factory-C-Nm-wK8.js.map +1 -0
- package/dist/index-BwHVZmO6.d.ts +43 -0
- package/dist/index-BwHVZmO6.d.ts.map +1 -0
- package/dist/{index-D6Ai0OOc.d.ts → index-C56rbYzd.d.ts} +2 -1
- package/dist/{index-D6Ai0OOc.d.ts.map → index-C56rbYzd.d.ts.map} +1 -1
- package/dist/index-CDV0nUS6.d.ts +36 -0
- package/dist/index-CDV0nUS6.d.ts.map +1 -0
- package/dist/{index-DPG4u1Ym.d.ts → index-ChQj71kz.d.ts} +4 -3
- package/dist/{index-DPG4u1Ym.d.ts.map → index-ChQj71kz.d.ts.map} +1 -1
- package/dist/index-CiPX7twW.d.ts +34 -0
- package/dist/index-CiPX7twW.d.ts.map +1 -0
- package/dist/{index-B52jv-LY.d.ts → index-CqDvbSe4.d.ts} +3 -2
- package/dist/{index-B52jv-LY.d.ts.map → index-CqDvbSe4.d.ts.map} +1 -1
- 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-DplUuZMT.d.ts → index-RAhSmsFD.d.ts} +2 -1
- package/dist/{index-DplUuZMT.d.ts.map → index-RAhSmsFD.d.ts.map} +1 -1
- package/dist/index.d.ts +10 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/{module-Caxhis1M.js → module-23VayWKe.js} +7 -7
- package/dist/module-23VayWKe.js.map +1 -0
- package/dist/{module-CdpGkPNN.js → module-B6S4QGOx.js} +7 -7
- package/dist/module-B6S4QGOx.js.map +1 -0
- package/dist/{module-Db8mmgzN.js → module-BktWa0rB.js} +11 -9
- package/dist/module-BktWa0rB.js.map +1 -0
- package/dist/{module-D4lqkHHK.d.ts → module-C-jL7yqs.d.ts} +2 -1
- package/dist/{module-D4lqkHHK.d.ts.map → module-C-jL7yqs.d.ts.map} +1 -1
- package/dist/{ph-factories-HuC7_vvF.js → ph-factories-fEke-Nr8.js} +2 -2
- package/dist/{ph-factories-HuC7_vvF.js.map → ph-factories-fEke-Nr8.js.map} +1 -1
- package/dist/{processor-CsiUWh93.js → processor-CgDcxcaa.js} +426 -325
- package/dist/processor-CgDcxcaa.js.map +1 -0
- package/dist/processors/codegen/index.d.ts +11 -2
- package/dist/processors/codegen/index.d.ts.map +1 -1
- package/dist/processors/codegen/index.js +2 -2
- package/dist/processors/index.js +1 -1
- 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-BIJ_jsGp.js → spec-api-BGj7gcQn.js} +18 -12
- package/dist/{spec-api-BIJ_jsGp.js.map → spec-api-BGj7gcQn.js.map} +1 -1
- package/dist/subgraph-type-lint-BZuO7F-G.js +116 -0
- package/dist/subgraph-type-lint-BZuO7F-G.js.map +1 -0
- package/dist/switchboard-B17FaODm.js +8 -0
- package/dist/{switchboard-kgDm1UIQ.js.map → switchboard-B17FaODm.js.map} +1 -1
- package/dist/{utils-w_21RRK6.js → utils-BJk4_43W.js} +22 -2
- package/dist/utils-BJk4_43W.js.map +1 -0
- package/package.json +13 -11
- 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-DpadPeVq.js.map +0 -1
- package/dist/factory-BWrWHoS5.js.map +0 -1
- package/dist/factory-BzUAqoGU.js.map +0 -1
- package/dist/module-Caxhis1M.js.map +0 -1
- package/dist/module-CdpGkPNN.js.map +0 -1
- package/dist/module-Db8mmgzN.js.map +0 -1
- package/dist/processor-CsiUWh93.js.map +0 -1
- package/dist/switchboard-kgDm1UIQ.js +0 -8
- package/dist/useVetraDocument-B0k3gNtw.js +0 -30
- package/dist/useVetraDocument-B0k3gNtw.js.map +0 -1
- package/dist/utils-w_21RRK6.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"factory-BUuO4fIN.js","names":[],"sources":["../processors/vetra-read-model/migrations.ts","../processors/vetra-read-model/processor.ts","../processors/vetra-read-model/factory.ts"],"sourcesContent":["import type { IRelationalDb } from \"@powerhousedao/shared/processors\";\n\nexport async function up(db: IRelationalDb<any>): Promise<void> {\n // Create vetra_package table to store VetraPackage document state\n await db.schema\n .createTable(\"vetra_package\")\n .addColumn(\"document_id\", \"varchar(255)\", (col) => col.primaryKey()) // VetraPackage state fields\n .addColumn(\"name\", \"varchar(255)\")\n .addColumn(\"description\", \"text\")\n .addColumn(\"category\", \"varchar(255)\")\n .addColumn(\"author_name\", \"varchar(255)\")\n .addColumn(\"author_website\", \"varchar(512)\")\n .addColumn(\"keywords\", \"text\") // JSON array of {id, label}\n .addColumn(\"github_url\", \"varchar(512)\")\n .addColumn(\"npm_url\", \"varchar(512)\")\n .addColumn(\"drive_id\", \"varchar(255)\")\n // Document metadata\n .addColumn(\"last_operation_index\", \"integer\", (col) => col.notNull())\n .addColumn(\"last_operation_hash\", \"varchar(255)\", (col) => col.notNull())\n .addColumn(\"last_operation_timestamp\", \"timestamptz\", (col) =>\n col.notNull(),\n )\n .addColumn(\"created_at\", \"timestamptz\", (col) =>\n col.notNull().defaultTo(\"now()\"),\n )\n .addColumn(\"updated_at\", \"timestamptz\", (col) =>\n col.notNull().defaultTo(\"now()\"),\n )\n .ifNotExists()\n .execute();\n\n // Create indexes for common queries\n await db.schema\n .createIndex(\"idx_vetra_package_document_id\")\n .on(\"vetra_package\")\n .column(\"document_id\")\n .ifNotExists()\n .execute();\n\n await db.schema\n .createIndex(\"idx_vetra_package_name\")\n .on(\"vetra_package\")\n .column(\"name\")\n .ifNotExists()\n .execute();\n\n await db.schema\n .createIndex(\"idx_vetra_package_category\")\n .on(\"vetra_package\")\n .column(\"category\")\n .ifNotExists()\n .execute();\n}\n\nexport async function down(db: IRelationalDb<any>): Promise<void> {\n // Drop indexes first\n await db.schema.dropIndex(\"idx_vetra_package_category\").ifExists().execute();\n await db.schema.dropIndex(\"idx_vetra_package_name\").ifExists().execute();\n await db.schema\n .dropIndex(\"idx_vetra_package_document_id\")\n .ifExists()\n .execute();\n\n // Drop table\n await db.schema.dropTable(\"vetra_package\").ifExists().execute();\n}\n","import type {\n IProcessor,\n OperationWithContext,\n} from \"@powerhousedao/reactor-browser\";\nimport { deletedDocumentId } from \"@powerhousedao/shared/processors\";\nimport type { Kysely } from \"kysely\";\nimport type { VetraPackageState } from \"../../document-models/vetra-package/v1/gen/schema/types.js\";\nimport { logger } from \"../codegen/logger.js\";\nimport { type DB } from \"./schema.js\";\n\ninterface VetraPackageGlobalState extends VetraPackageState {}\n\nexport class VetraReadModelProcessor implements IProcessor {\n private relationalDb: Kysely<DB>;\n\n constructor(relationalDb: Kysely<DB>) {\n this.relationalDb = relationalDb;\n }\n\n async onOperations(operations: OperationWithContext[]): Promise<void> {\n logger.info(\">>> VetraReadModelProcessor.onOperations()\");\n if (operations.length === 0) return;\n\n for (const op of operations) {\n const { operation, context } = op;\n if (context.documentType !== \"powerhouse/package\") continue;\n\n const deleted = deletedDocumentId(op);\n if (deleted !== undefined) {\n await this.relationalDb\n .deleteFrom(\"vetra_package\")\n .where(\"document_id\", \"=\", deleted)\n .execute();\n continue;\n }\n if (context.scope !== \"global\") continue;\n\n const state = context.resultingState\n ? (JSON.parse(context.resultingState) as VetraPackageGlobalState)\n : undefined;\n\n const getString = (val: unknown): string | null =>\n typeof val === \"string\" ? val : null;\n\n const now = new Date();\n const operationTimestamp = new Date(\n parseInt(operation.timestampUtcMs, 10),\n );\n\n await this.relationalDb\n .insertInto(\"vetra_package\")\n .values({\n document_id: context.documentId,\n name: getString(state?.name),\n description: getString(state?.description),\n category: getString(state?.category),\n author_name: getString(state?.author?.name),\n author_website: getString(state?.author?.website),\n keywords: state?.keywords ? JSON.stringify(state.keywords) : null,\n github_url: getString(state?.githubUrl),\n npm_url: getString(state?.npmUrl),\n last_operation_index: operation.index,\n last_operation_hash: operation.hash,\n last_operation_timestamp: operationTimestamp,\n drive_id: \"\", // Not available in new format\n created_at: now,\n updated_at: now,\n })\n .onConflict((oc) =>\n oc.column(\"document_id\").doUpdateSet({\n name: getString(state?.name),\n description: getString(state?.description),\n category: getString(state?.category),\n author_name: getString(state?.author?.name),\n author_website: getString(state?.author?.website),\n keywords: state?.keywords ? JSON.stringify(state.keywords) : null,\n github_url: getString(state?.githubUrl),\n npm_url: getString(state?.npmUrl),\n last_operation_index: operation.index,\n last_operation_hash: operation.hash,\n last_operation_timestamp: operationTimestamp,\n updated_at: now,\n }),\n )\n .execute();\n }\n }\n\n async onDisconnect() {}\n}\n","import type {\n IProcessorHostModule,\n ProcessorFactoryBuilder,\n ProcessorRecord,\n} from \"@powerhousedao/reactor-browser\";\nimport type { PHDocumentHeader } from \"@powerhousedao/shared/document-model\";\nimport { up } from \"./migrations.js\";\nimport { VetraReadModelProcessor } from \"./processor.js\";\nimport type { DB } from \"./schema.js\";\n\nexport const vetraReadModelFactoryBuilder: ProcessorFactoryBuilder = (\n module: IProcessorHostModule,\n) => {\n return async (_driveHeader: PHDocumentHeader): Promise<ProcessorRecord[]> => {\n // Create namespace (same as legacy - all vetra packages share one namespace)\n const db = await module.relationalDb.createNamespace<DB>(\"vetra-packages\");\n\n // Run migrations (idempotent - uses ifNotExists)\n await up(db);\n\n // Create the processor with the relational database\n const processor = new VetraReadModelProcessor(db);\n return [\n {\n processor,\n filter: {\n branch: [\"main\"],\n documentId: [\"*\"],\n documentType: [\"powerhouse/package\"],\n // \"document\" carries DELETE_DOCUMENT and PURGE_DOCUMENT.\n scope: [\"global\", \"document\"],\n },\n },\n ];\n };\n};\n"],"mappings":";;;AAEA,eAAsB,GAAG,I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,UAAU,OAAO,QAAQ,OAAO;IAChD,UAAU,OAAO,WAAW,KAAK,UAAU,MAAM,QAAQ,IAAI;IAC7D,YAAY,UAAU,OAAO,SAAS;IACtC,SAAS,UAAU,OAAO,MAAM;IAChC,sBAAsB,UAAU;IAChC,qBAAqB,UAAU;IAC/B,0BAA0B;IAC1B,YAAY;GACd,CAAC,CACH,CAAC,CACA,QAAQ;EACb;CACF;CAEA,MAAM,eAAe,CAAC;AACxB;;;AC/EA,MAAa,gCACX,WACG;CACH,OAAO,OAAO,iBAA+D;EAE3E,MAAM,KAAK,MAAM,OAAO,aAAa,gBAAoB,gBAAgB;EAGzE,MAAM,GAAG,EAAE;EAIX,OAAO,CACL;GACE,WAAA,IAHkB,wBAAwB,EAGlC;GACR,QAAQ;IACN,QAAQ,CAAC,MAAM;IACf,YAAY,CAAC,GAAG;IAChB,cAAc,CAAC,oBAAoB;IAEnC,OAAO,CAAC,UAAU,UAAU;GAC9B;EACF,CACF;CACF;AACF"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { t as logger } from "./logger-BFxMdimR.js";
|
|
2
|
+
import { getCodegenStatusRegistry } from "@powerhousedao/shared/processors";
|
|
2
3
|
import { VETRA_PROCESSOR_CONFIG_KEY } from "@powerhousedao/config";
|
|
3
4
|
//#region processors/codegen/factory.ts
|
|
4
5
|
/**
|
|
@@ -26,23 +27,26 @@ const codegenFactoryBuilder = (module) => {
|
|
|
26
27
|
const [{ buildTsMorphProject }, { getConfig }, { CodegenProcessor }] = await Promise.all([
|
|
27
28
|
import("@powerhousedao/codegen/utils"),
|
|
28
29
|
import("@powerhousedao/config/node"),
|
|
29
|
-
import("./processor-
|
|
30
|
+
import("./processor-CgDcxcaa.js").then((n) => n.n)
|
|
30
31
|
]);
|
|
31
32
|
const config = getConfig();
|
|
32
33
|
const cwd = process.cwd();
|
|
34
|
+
const processor = new CodegenProcessor(buildTsMorphProject(cwd), config, cwd, driveHeader.id, module.read, vetraConfig?.interactive);
|
|
35
|
+
const documentTypes = [
|
|
36
|
+
"powerhouse/document-model",
|
|
37
|
+
"powerhouse/package",
|
|
38
|
+
"powerhouse/document-editor",
|
|
39
|
+
"powerhouse/subgraph",
|
|
40
|
+
"powerhouse/processor",
|
|
41
|
+
"powerhouse/app"
|
|
42
|
+
];
|
|
43
|
+
getCodegenStatusRegistry().watch(documentTypes);
|
|
33
44
|
return [{
|
|
34
|
-
processor
|
|
45
|
+
processor,
|
|
35
46
|
filter: {
|
|
36
47
|
branch: ["main"],
|
|
37
48
|
documentId: ["*"],
|
|
38
|
-
documentType:
|
|
39
|
-
"powerhouse/document-model",
|
|
40
|
-
"powerhouse/package",
|
|
41
|
-
"powerhouse/document-editor",
|
|
42
|
-
"powerhouse/subgraph",
|
|
43
|
-
"powerhouse/processor",
|
|
44
|
-
"powerhouse/app"
|
|
45
|
-
],
|
|
49
|
+
documentType: documentTypes,
|
|
46
50
|
scope: ["global"]
|
|
47
51
|
}
|
|
48
52
|
}];
|
|
@@ -51,4 +55,4 @@ const codegenFactoryBuilder = (module) => {
|
|
|
51
55
|
//#endregion
|
|
52
56
|
export { codegenFactoryBuilder as t };
|
|
53
57
|
|
|
54
|
-
//# sourceMappingURL=factory-
|
|
58
|
+
//# sourceMappingURL=factory-C-Nm-wK8.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"factory-C-Nm-wK8.js","names":[],"sources":["../processors/codegen/factory.ts"],"sourcesContent":["import type { VetraProcessorConfigType } from \"@powerhousedao/config\";\nimport { VETRA_PROCESSOR_CONFIG_KEY } from \"@powerhousedao/config\";\nimport type {\n IProcessorHostModule,\n ProcessorFactoryBuilder,\n ProcessorRecord,\n} from \"@powerhousedao/reactor-browser\";\nimport type { PHDocumentHeader } from \"@powerhousedao/shared/document-model\";\nimport { getCodegenStatusRegistry } from \"@powerhousedao/shared/processors\";\nimport { logger } from \"./logger.js\";\n\n/**\n * Determines if a drive header matches the Vetra drive criteria.\n * @param driveHeader - The drive header to check\n * @param explicitDriveId - Optional explicit drive ID from config (if set, uses exact match)\n * @returns true if the drive is a Vetra drive, false otherwise\n */\nfunction isDriveVetra(\n driveHeader: PHDocumentHeader,\n driveIdFromConfig?: string,\n): boolean {\n // If explicit drive ID is configured, use exact match\n if (driveIdFromConfig) {\n return (\n driveHeader.slug === driveIdFromConfig ||\n driveHeader.id === driveIdFromConfig\n );\n }\n\n // Otherwise, check if slug/id matches Vetra pattern\n // Matches \"vetra\" exactly or IDs starting with \"vetra-\" (case-insensitive)\n const matchesPattern = (identifier: string): boolean => {\n const lower = identifier.toLowerCase();\n return lower === \"vetra\" || lower.startsWith(\"vetra-\");\n };\n\n return matchesPattern(driveHeader.slug) || matchesPattern(driveHeader.id);\n}\n\nexport const codegenFactoryBuilder: ProcessorFactoryBuilder = (\n module: IProcessorHostModule,\n) => {\n return async (driveHeader: PHDocumentHeader): Promise<ProcessorRecord[]> => {\n const processorsConfig = module.config ?? new Map<string, unknown>();\n const vetraConfig = processorsConfig.get(VETRA_PROCESSOR_CONFIG_KEY) as\n | VetraProcessorConfigType\n | undefined;\n\n // Exit early if it's not a vetra drive\n if (!isDriveVetra(driveHeader, vetraConfig?.driveId)) {\n logger.debug(\n `Drive ${driveHeader.slug} is not a Vetra drive, skipping codegen processor`,\n );\n return [];\n }\n\n logger.info(\n `Drive ${driveHeader.slug} is a Vetra drive, using codegen processor`,\n );\n\n // Lazy-load codegen only once a Vetra drive is confirmed.\n const [{ buildTsMorphProject }, { getConfig }, { CodegenProcessor }] =\n await Promise.all([\n import(\"@powerhousedao/codegen/utils\"),\n import(\"@powerhousedao/config/node\"),\n import(\"./processor.js\"),\n ]);\n\n const config = getConfig();\n const cwd = process.cwd();\n\n /* Use one instance of ts-morph project, which handles race conditions */\n const project = buildTsMorphProject(cwd);\n const processor = new CodegenProcessor(\n project,\n config,\n cwd,\n driveHeader.id,\n module.read,\n vetraConfig?.interactive,\n );\n const documentTypes = [\n \"powerhouse/document-model\",\n \"powerhouse/package\",\n \"powerhouse/document-editor\",\n \"powerhouse/subgraph\",\n \"powerhouse/processor\",\n \"powerhouse/app\",\n ];\n getCodegenStatusRegistry().watch(documentTypes);\n return [\n {\n processor,\n filter: {\n branch: [\"main\"],\n documentId: [\"*\"],\n documentType: documentTypes,\n scope: [\"global\"],\n },\n },\n ];\n };\n};\n"],"mappings":";;;;;;;;;;AAiBA,SAAS,aACP,aACA,mBACS;CAET,IAAI,mBACF,OACE,YAAY,SAAS,qBACrB,YAAY,OAAO;CAMvB,MAAM,kBAAkB,eAAgC;EACtD,MAAM,QAAQ,WAAW,YAAY;EACrC,OAAO,UAAU,WAAW,MAAM,WAAW,QAAQ;CACvD;CAEA,OAAO,eAAe,YAAY,IAAI,KAAK,eAAe,YAAY,EAAE;AAC1E;AAEA,MAAa,yBACX,WACG;CACH,OAAO,OAAO,gBAA8D;EAE1E,MAAM,eADmB,OAAO,0BAAU,IAAI,IAAqB,EAAA,CAC9B,IAAI,0BAA0B;EAKnE,IAAI,CAAC,aAAa,aAAa,aAAa,OAAO,GAAG;GACpD,OAAO,MACL,SAAS,YAAY,KAAK,kDAC5B;GACA,OAAO,CAAC;EACV;EAEA,OAAO,KACL,SAAS,YAAY,KAAK,2CAC5B;EAGA,MAAM,CAAC,EAAE,uBAAuB,EAAE,aAAa,EAAE,sBAC/C,MAAM,QAAQ,IAAI;GAChB,OAAO;GACP,OAAO;GACP,OAAO,0BAAiB,CAAA,MAAA,MAAA,EAAA,CAAA;EAC1B,CAAC;EAEH,MAAM,SAAS,UAAU;EACzB,MAAM,MAAM,QAAQ,IAAI;EAIxB,MAAM,YAAY,IAAI,iBADN,oBAAoB,GAE5B,GACN,QACA,KACA,YAAY,IACZ,OAAO,MACP,aAAa,WACf;EACA,MAAM,gBAAgB;GACpB;GACA;GACA;GACA;GACA;GACA;EACF;EACA,yBAAyB,CAAC,CAAC,MAAM,aAAa;EAC9C,OAAO,CACL;GACE;GACA,QAAQ;IACN,QAAQ,CAAC,MAAM;IACf,YAAY,CAAC,GAAG;IAChB,cAAc;IACd,OAAO,CAAC,QAAQ;GAClB;EACF,CACF;CACF;AACF"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { $ as SetProcessorTypeAction, K as AddDocumentTypeAction, Q as SetProcessorStatusAction, X as RemoveProcessorAppAction, Y as RemoveDocumentTypeAction, Z as SetProcessorNameAction, _t as SetProcessorNameInput, ht as RemoveProcessorAppInput, it as AddProcessorAppInput, mt as RemoveDocumentTypeInput, q as AddProcessorAppAction, rt as AddDocumentTypeInput, vt as SetProcessorStatusInput, yt as SetProcessorTypeInput } from "./index-CqDvbSe4.js";
|
|
2
|
+
import { UpgradeManifest } from "document-model";
|
|
3
|
+
//#region document-models/processor-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 processorModuleDocumentType = "powerhouse/processor";
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region document-models/processor-module/v1/actions.d.ts
|
|
11
|
+
/** Actions for the ProcessorModule 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
|
+
setProcessorName: (input: SetProcessorNameInput) => SetProcessorNameAction;
|
|
20
|
+
setProcessorType: (input: SetProcessorTypeInput) => SetProcessorTypeAction;
|
|
21
|
+
addDocumentType: (input: AddDocumentTypeInput) => AddDocumentTypeAction;
|
|
22
|
+
removeDocumentType: (input: RemoveDocumentTypeInput) => RemoveDocumentTypeAction;
|
|
23
|
+
addProcessorApp: (input: AddProcessorAppInput) => AddProcessorAppAction;
|
|
24
|
+
removeProcessorApp: (input: RemoveProcessorAppInput) => RemoveProcessorAppAction;
|
|
25
|
+
setProcessorStatus: (input: SetProcessorStatusInput) => SetProcessorStatusAction;
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region document-models/processor-module/v1/src/utils.d.ts
|
|
29
|
+
/** The processor kinds Vetra's codegen can generate. */
|
|
30
|
+
declare const PROCESSOR_TYPES: readonly ["analytics", "relational"];
|
|
31
|
+
type ProcessorType = (typeof PROCESSOR_TYPES)[number];
|
|
32
|
+
declare function isProcessorType(type: string): type is ProcessorType;
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region document-models/processor-module/upgrades/versions.d.ts
|
|
35
|
+
declare const supportedVersions: readonly [1];
|
|
36
|
+
declare const latestVersion: 1;
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region document-models/processor-module/upgrades/upgrade-manifest.d.ts
|
|
39
|
+
declare const processorModuleUpgradeManifest: UpgradeManifest<typeof supportedVersions>;
|
|
40
|
+
//#endregion
|
|
41
|
+
export { ProcessorType as a, processorModuleDocumentType as c, PROCESSOR_TYPES as i, latestVersion as n, isProcessorType as o, supportedVersions as r, actions as s, processorModuleUpgradeManifest as t };
|
|
42
|
+
export {};
|
|
43
|
+
//# sourceMappingURL=index-BwHVZmO6.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-BwHVZmO6.d.ts","names":[],"sources":["../document-models/processor-module/v1/gen/document-type.ts","../document-models/processor-module/v1/actions.ts","../document-models/processor-module/v1/src/utils.ts","../document-models/processor-module/upgrades/versions.ts","../document-models/processor-module/upgrades/upgrade-manifest.ts"],"mappings":";;;;;;;cAIa;;;;cCKA;;;;;;;4BAAA;;;;;;;;;;;cCRA;KACD,wBAAwB;iBAEpB,gBAAgB,eAAe,QAAQ;;;cCJ1C;cAEA;;;cCKA,gCAAgC,uBACpC"}
|
|
@@ -316,6 +316,7 @@ declare const DocumentEditor: {
|
|
|
316
316
|
readonly actions: {
|
|
317
317
|
setName: typeof import("document-model").setName;
|
|
318
318
|
setPreferredEditor: typeof import("document-model").setPreferredEditor;
|
|
319
|
+
setSlug: typeof import("document-model").setSlug;
|
|
319
320
|
undo: typeof import("document-model").undo;
|
|
320
321
|
redo: typeof import("document-model").redo;
|
|
321
322
|
noop: typeof import("document-model").noop;
|
|
@@ -357,4 +358,4 @@ declare const initialLocalState: DocumentEditorLocalState;
|
|
|
357
358
|
//#endregion
|
|
358
359
|
export { InputMaybe as $, isDocumentEditorState as A, AddDocumentTypeAction as B, defaultPHState as C, assertIsDocumentEditorDocument as D, DocumentEditorPHStateSchema as E, setEditorName as F, DocumentEditorDocument as G, RemoveDocumentTypeAction as H, setEditorStatus as I, AddDocumentTypeInput as J, DocumentEditorLocalState as K, DocumentEditorController as L, addDocumentType as M, creators_d_exports as N, assertIsDocumentEditorState as O, removeDocumentType as P, Incremental as Q, DocumentEditorBaseOperationsOperations as R, defaultLocalState as S, DocumentEditorDocumentSchema as T, SetEditorNameAction as U, DocumentEditorBaseOperationsAction as V, SetEditorStatusAction as W, DocumentTypeItem as X, DocumentEditorState as Y, Exact as Z, useDocumentEditorDocumentsInSelectedFolder as _, DocumentTypeItemSchema as a, Scalars as at, createState$1 as b, SetEditorStatusInputSchema as c, StatusType as ct, isDefinedNonNullAny as d, MakeEmpty as et, reducer as f, useDocumentEditorDocumentsInSelectedDrive as g, useDocumentEditorDocumentById as h, DocumentEditorStateSchema as i, RemoveDocumentTypeInput as it, documentModel as j, isDocumentEditorDocument as k, StatusTypeSchema as l, DocumentEditor as m, initialLocalState as n, MakeOptional as nt, RemoveDocumentTypeInputSchema as o, SetEditorNameInput as ot, utils as p, DocumentEditorPHState as q, AddDocumentTypeInputSchema as r, Maybe as rt, SetEditorNameInputSchema as s, SetEditorStatusInput as st, initialGlobalState as t, MakeMaybe as tt, definedNonNullAnySchema as u, useSelectedDocumentEditorDocument as v, DocumentEditorDocumentHeaderSchema as w, defaultGlobalState as x, createDocumentEditorDocument as y, DocumentEditorAction as z };
|
|
359
360
|
export {};
|
|
360
|
-
//# sourceMappingURL=index-
|
|
361
|
+
//# sourceMappingURL=index-C56rbYzd.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-C56rbYzd.d.ts","names":[],"sources":["../document-models/document-editor/v1/gen/schema/types.ts","../document-models/document-editor/v1/gen/types.ts","../document-models/document-editor/v1/gen/base-operations/actions.ts","../document-models/document-editor/v1/gen/actions.ts","../document-models/document-editor/v1/gen/base-operations/operations.ts","../document-models/document-editor/v1/gen/controller.ts","../document-models/document-editor/v1/gen/base-operations/creators.ts","../document-models/document-editor/v1/gen/document-model.ts","../document-models/document-editor/v1/gen/document-schema.ts","../document-models/document-editor/v1/gen/ph-factories.ts","../document-models/document-editor/v1/hooks.ts","../document-models/document-editor/v1/module.ts","../document-models/document-editor/v1/utils.ts","../document-models/document-editor/v1/gen/reducer.ts","../document-models/document-editor/v1/gen/schema/zod.ts","../document-models/document-editor/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;;;E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atusAction, dt as RemoveDocumentTypeInput, gt as SetDragAndDropEnabledInput, ht as SetDocumentTypesInput, mt as SetAppStatusInput, nt as AddDocumentTypeInput, pt as SetAppNameInput, q as AddDocumentTypeAction } from "./index-ChQj71kz.js";
|
|
2
|
+
import { UpgradeManifest } from "document-model";
|
|
3
|
+
//#region document-models/app-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 appModuleDocumentType = "powerhouse/app";
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region document-models/app-module/v1/actions.d.ts
|
|
11
|
+
/** Actions for the AppModule 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
|
+
setAppName: (input: SetAppNameInput) => SetAppNameAction;
|
|
20
|
+
setAppStatus: (input: SetAppStatusInput) => SetAppStatusAction;
|
|
21
|
+
addDocumentType: (input: AddDocumentTypeInput) => AddDocumentTypeAction;
|
|
22
|
+
removeDocumentType: (input: RemoveDocumentTypeInput) => RemoveDocumentTypeAction;
|
|
23
|
+
setDocumentTypes: (input: SetDocumentTypesInput) => SetDocumentTypesAction;
|
|
24
|
+
setDragAndDropEnabled: (input: SetDragAndDropEnabledInput) => SetDragAndDropEnabledAction;
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region document-models/app-module/upgrades/versions.d.ts
|
|
28
|
+
declare const supportedVersions: readonly [1];
|
|
29
|
+
declare const latestVersion: 1;
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region document-models/app-module/upgrades/upgrade-manifest.d.ts
|
|
32
|
+
declare const appModuleUpgradeManifest: UpgradeManifest<typeof supportedVersions>;
|
|
33
|
+
//#endregion
|
|
34
|
+
export { appModuleDocumentType as a, actions as i, latestVersion as n, supportedVersions as r, appModuleUpgradeManifest as t };
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=index-CDV0nUS6.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CDV0nUS6.d.ts","names":[],"sources":["../document-models/app-module/v1/gen/document-type.ts","../document-models/app-module/v1/actions.ts","../document-models/app-module/upgrades/versions.ts","../document-models/app-module/upgrades/upgrade-manifest.ts"],"mappings":";;;;;;;cAIa;;;;cCQA;;;;;;;sBAAA;;;;;;;;;cCZA;cAEA;;;cCKA,0BAA0B,uBAC9B"}
|
|
@@ -150,11 +150,11 @@ type AddDocumentTypeInput = {
|
|
|
150
150
|
* tree) and can opt into which document types they accept.
|
|
151
151
|
*/
|
|
152
152
|
type AppModuleState = {
|
|
153
|
-
/** Document type ids this app handles. `null`
|
|
153
|
+
/** Document type ids this app handles. `null` and an empty list both mean the app accepts every document type. */
|
|
154
154
|
allowedDocumentTypes: Maybe<Array<Scalars["String"]["output"]>>;
|
|
155
155
|
/** Whether the app surface accepts dropped files from the user. Defaults to true. */
|
|
156
156
|
isDragAndDropEnabled: Scalars["Boolean"]["output"];
|
|
157
|
-
/** Display name of the drive app. Also used as the source for the generated folder name under `
|
|
157
|
+
/** Display name of the drive app. Also used as the source for the generated folder name under `editors/`. */
|
|
158
158
|
name: Scalars["String"]["output"];
|
|
159
159
|
/** Lifecycle status. While DRAFT the app definition is editable and codegen is skipped; switching to CONFIRMED triggers app scaffold generation. */
|
|
160
160
|
status: StatusType;
|
|
@@ -341,6 +341,7 @@ declare const AppModule: {
|
|
|
341
341
|
readonly actions: {
|
|
342
342
|
setName: typeof import("document-model").setName;
|
|
343
343
|
setPreferredEditor: typeof import("document-model").setPreferredEditor;
|
|
344
|
+
setSlug: typeof import("document-model").setSlug;
|
|
344
345
|
undo: typeof import("document-model").undo;
|
|
345
346
|
redo: typeof import("document-model").redo;
|
|
346
347
|
noop: typeof import("document-model").noop;
|
|
@@ -385,4 +386,4 @@ declare const initialLocalState: AppModuleLocalState;
|
|
|
385
386
|
//#endregion
|
|
386
387
|
export { AppModuleDocument as $, isAppModuleDocument as A, setAppStatus as B, defaultLocalState as C, AppModulePHStateSchema as D, AppModuleDocumentSchema as E, setDragAndDropEnabled as F, AppModuleDndOperationsAction as G, AppModuleController as H, addDocumentType as I, AppModuleBaseOperationsAction as J, SetDragAndDropEnabledAction as K, creators_d_exports$1 as L, documentModel as M, AppModuleDndOperationsOperations as N, assertIsAppModuleDocument as O, creators_d_exports as P, SetDocumentTypesAction as Q, removeDocumentType as R, defaultGlobalState as S, AppModuleDocumentHeaderSchema as T, AppModuleBaseOperationsOperations as U, setDocumentTypes as V, AppModuleAction as W, SetAppNameAction as X, RemoveDocumentTypeAction as Y, SetAppStatusAction as Z, useAppModuleDocumentsInSelectedDrive as _, StatusType as _t, RemoveDocumentTypeInputSchema as a, Incremental as at, createAppModuleDocument as b, SetDocumentTypesInputSchema as c, MakeMaybe as ct, definedNonNullAnySchema as d, RemoveDocumentTypeInput as dt, AppModuleLocalState as et, isDefinedNonNullAny as f, Scalars as ft, useAppModuleDocumentById as g, SetDragAndDropEnabledInput as gt, AppModule as h, SetDocumentTypesInput as ht, AppModuleStateSchema as i, Exact as it, isAppModuleState as j, assertIsAppModuleState as k, SetDragAndDropEnabledInputSchema as l, MakeOptional as lt, utils as m, SetAppStatusInput as mt, initialLocalState as n, AddDocumentTypeInput as nt, SetAppNameInputSchema as o, InputMaybe as ot, reducer as p, SetAppNameInput as pt, AddDocumentTypeAction as q, AddDocumentTypeInputSchema as r, AppModuleState as rt, SetAppStatusInputSchema as s, MakeEmpty as st, initialGlobalState as t, AppModulePHState as tt, StatusTypeSchema as u, Maybe as ut, useAppModuleDocumentsInSelectedFolder as v, defaultPHState as w, createState$1 as x, useSelectedAppModuleDocument as y, setAppName as z };
|
|
387
388
|
export {};
|
|
388
|
-
//# sourceMappingURL=index-
|
|
389
|
+
//# sourceMappingURL=index-ChQj71kz.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-ChQj71kz.d.ts","names":[],"sources":["../document-models/app-module/v1/gen/schema/types.ts","../document-models/app-module/v1/gen/types.ts","../document-models/app-module/v1/gen/base-operations/actions.ts","../document-models/app-module/v1/gen/dnd-operations/actions.ts","../document-models/app-module/v1/gen/actions.ts","../document-models/app-module/v1/gen/base-operations/operations.ts","../document-models/app-module/v1/gen/controller.ts","../document-models/app-module/v1/gen/base-operations/creators.ts","../document-models/app-module/v1/gen/dnd-operations/creators.ts","../document-models/app-module/v1/gen/dnd-operations/operations.ts","../document-models/app-module/v1/gen/document-model.ts","../document-models/app-module/v1/gen/document-schema.ts","../document-models/app-module/v1/gen/ph-factories.ts","../document-models/app-module/v1/hooks.ts","../document-models/app-module/v1/module.ts","../document-models/app-module/v1/utils.ts","../document-models/app-module/v1/gen/reducer.ts","../document-models/app-module/v1/gen/schema/zod.ts","../document-models/app-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;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IAAA;;;;iBAEb,8BAA8B,IAAE,UAC9C,WAAW;iBAOG,wBAAwB,IAAE,UACxC,WAAW;iBAWG,iCAAiC,IAAE,UACjD,WAAW;iBAOG,yBAAyB,IAAE,UACzC,WAAW;iBAOG,2BAA2B,IAAE,UAC3C,WAAW;iBAOG,+BAA+B,IAAE,UAC/C,WAAW;iBAOG,oCAAoC,IAAE,UACpD,WAAW;;;cCzDA,oBAAoB;cAMpB,mBAAmB"}
|
|
@@ -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"}
|
|
@@ -169,7 +169,7 @@ type ProcessorModuleState = {
|
|
|
169
169
|
processorApps: Array<Scalars["String"]["output"]>;
|
|
170
170
|
/** Lifecycle status. While DRAFT the processor definition is editable and codegen is skipped; switching to CONFIRMED triggers scaffold generation. */
|
|
171
171
|
status: StatusType;
|
|
172
|
-
/** Processor implementation kind
|
|
172
|
+
/** Processor implementation kind: `analytics` or `relational`. Determines which scaffold codegen emits; codegen generates nothing for any other value. */
|
|
173
173
|
type: Scalars["String"]["output"];
|
|
174
174
|
};
|
|
175
175
|
type RemoveDocumentTypeInput = {
|
|
@@ -353,6 +353,7 @@ declare const ProcessorModule: {
|
|
|
353
353
|
readonly actions: {
|
|
354
354
|
setName: typeof import("document-model").setName;
|
|
355
355
|
setPreferredEditor: typeof import("document-model").setPreferredEditor;
|
|
356
|
+
setSlug: typeof import("document-model").setSlug;
|
|
356
357
|
undo: typeof import("document-model").undo;
|
|
357
358
|
redo: typeof import("document-model").redo;
|
|
358
359
|
noop: typeof import("document-model").noop;
|
|
@@ -400,4 +401,4 @@ declare const initialLocalState: ProcessorModuleLocalState;
|
|
|
400
401
|
//#endregion
|
|
401
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 };
|
|
402
403
|
export {};
|
|
403
|
-
//# sourceMappingURL=index-
|
|
404
|
+
//# sourceMappingURL=index-CqDvbSe4.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
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;IAA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BAAmB;;;cC0G1B,SAAS,QAAQ;;;KCpGzB,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;iBAQG,8BAA8B,IAAE,UAC9C,WAAW;iBAOG,0BAA0B,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"}
|
|
@@ -284,6 +284,7 @@ declare const SubgraphModule: {
|
|
|
284
284
|
readonly actions: {
|
|
285
285
|
setName: typeof import("document-model").setName;
|
|
286
286
|
setPreferredEditor: typeof import("document-model").setPreferredEditor;
|
|
287
|
+
setSlug: typeof import("document-model").setSlug;
|
|
287
288
|
undo: typeof import("document-model").undo;
|
|
288
289
|
redo: typeof import("document-model").redo;
|
|
289
290
|
noop: typeof import("document-model").noop;
|
|
@@ -320,4 +321,4 @@ declare const initialLocalState: SubgraphModuleLocalState;
|
|
|
320
321
|
//#endregion
|
|
321
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 };
|
|
322
323
|
export {};
|
|
323
|
-
//# sourceMappingURL=index-
|
|
324
|
+
//# sourceMappingURL=index-RAhSmsFD.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
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,wB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,IAAE,UAC9C,WAAW;iBAOG,gCAAgC,IAAE,UAChD,WAAW;iBAOG,6BAA6B,IAAE,UAC7C,WAAW;;;cCjBA,oBAAoB;cAIpB,mBAAmB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
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-
|
|
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-
|
|
4
|
-
import { B as SubgraphModulePHState, F as SetSubgraphNameAction, I as SetSubgraphStatusAction, X as SetSubgraphStatusInput, Y as SetSubgraphNameInput } from "./index-
|
|
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-
|
|
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";
|
|
6
6
|
import { EditorModule, UpgradeManifest } from "document-model";
|
|
7
7
|
import { Manifest } from "@powerhousedao/shared/document-model";
|
|
8
8
|
//#region document-models/document-models.d.ts
|
|
@@ -16,6 +16,7 @@ export declare const documentModels: readonly [{
|
|
|
16
16
|
readonly actions: {
|
|
17
17
|
setName: typeof import("document-model").setName;
|
|
18
18
|
setPreferredEditor: typeof import("document-model").setPreferredEditor;
|
|
19
|
+
setSlug: typeof import("document-model").setSlug;
|
|
19
20
|
undo: typeof import("document-model").undo;
|
|
20
21
|
redo: typeof import("document-model").redo;
|
|
21
22
|
noop: typeof import("document-model").noop;
|
|
@@ -34,6 +35,7 @@ export declare const documentModels: readonly [{
|
|
|
34
35
|
readonly actions: {
|
|
35
36
|
setName: typeof import("document-model").setName;
|
|
36
37
|
setPreferredEditor: typeof import("document-model").setPreferredEditor;
|
|
38
|
+
setSlug: typeof import("document-model").setSlug;
|
|
37
39
|
undo: typeof import("document-model").undo;
|
|
38
40
|
redo: typeof import("document-model").redo;
|
|
39
41
|
noop: typeof import("document-model").noop;
|
|
@@ -50,6 +52,7 @@ export declare const documentModels: readonly [{
|
|
|
50
52
|
readonly actions: {
|
|
51
53
|
setName: typeof import("document-model").setName;
|
|
52
54
|
setPreferredEditor: typeof import("document-model").setPreferredEditor;
|
|
55
|
+
setSlug: typeof import("document-model").setSlug;
|
|
53
56
|
undo: typeof import("document-model").undo;
|
|
54
57
|
redo: typeof import("document-model").redo;
|
|
55
58
|
noop: typeof import("document-model").noop;
|
|
@@ -69,6 +72,7 @@ export declare const documentModels: readonly [{
|
|
|
69
72
|
readonly actions: {
|
|
70
73
|
setName: typeof import("document-model").setName;
|
|
71
74
|
setPreferredEditor: typeof import("document-model").setPreferredEditor;
|
|
75
|
+
setSlug: typeof import("document-model").setSlug;
|
|
72
76
|
undo: typeof import("document-model").undo;
|
|
73
77
|
redo: typeof import("document-model").redo;
|
|
74
78
|
noop: typeof import("document-model").noop;
|
|
@@ -83,6 +87,7 @@ export declare const documentModels: readonly [{
|
|
|
83
87
|
readonly actions: {
|
|
84
88
|
setName: typeof import("document-model").setName;
|
|
85
89
|
setPreferredEditor: typeof import("document-model").setPreferredEditor;
|
|
90
|
+
setSlug: typeof import("document-model").setSlug;
|
|
86
91
|
undo: typeof import("document-model").undo;
|
|
87
92
|
redo: typeof import("document-model").redo;
|
|
88
93
|
noop: typeof import("document-model").noop;
|
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":";;;;;;;;;;;;qBAWa;;qDAAA
|
|
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,6 +1,6 @@
|
|
|
1
|
-
import { t as AppModule } from "./module-
|
|
1
|
+
import { t as AppModule } from "./module-23VayWKe.js";
|
|
2
2
|
import { t as DocumentEditor } from "./module-2JZcvfVs.js";
|
|
3
|
-
import { t as ProcessorModule } from "./module-
|
|
3
|
+
import { t as ProcessorModule } from "./module-BktWa0rB.js";
|
|
4
4
|
import { t as SubgraphModule } from "./module-hLzF5tCL.js";
|
|
5
5
|
import { t as VetraPackage } from "./module-FXJRy_1W.js";
|
|
6
6
|
import { t as appModuleUpgradeManifest } from "./upgrade-manifest-DLxSL23q.js";
|
|
@@ -8,7 +8,7 @@ import { t as documentEditorUpgradeManifest } from "./upgrade-manifest-D7xKGmZc.
|
|
|
8
8
|
import { t as processorModuleUpgradeManifest } from "./upgrade-manifest-d3LquK-H.js";
|
|
9
9
|
import { t as subgraphModuleUpgradeManifest } from "./upgrade-manifest-Dv62Cod7.js";
|
|
10
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-
|
|
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
12
|
//#region powerhouse.manifest.json
|
|
13
13
|
var powerhouse_manifest_default = {
|
|
14
14
|
name: "@powerhousedao/vetra",
|