@powerhousedao/vetra 6.0.0-dev.37 → 6.0.0-dev.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/document-models/app-module/actions.d.ts +1 -1
- package/dist/document-models/app-module/actions.d.ts.map +1 -1
- package/dist/document-models/document-editor/actions.d.ts +1 -1
- package/dist/document-models/document-editor/actions.d.ts.map +1 -1
- package/dist/document-models/processor-module/actions.d.ts +1 -1
- package/dist/document-models/processor-module/actions.d.ts.map +1 -1
- package/dist/document-models/subgraph-module/actions.d.ts +1 -1
- package/dist/document-models/subgraph-module/actions.d.ts.map +1 -1
- package/dist/document-models/vetra-package/actions.d.ts +1 -1
- package/dist/document-models/vetra-package/actions.d.ts.map +1 -1
- package/dist/processors/codegen/__tests__/codegen-processor-e2e.test.js +2 -2
- package/dist/processors/codegen/document-handlers/generators/constants.d.ts +1 -1
- package/dist/processors/codegen/document-handlers/generators/constants.d.ts.map +1 -1
- package/dist/processors/codegen/document-handlers/generators/constants.js +4 -1
- package/dist/processors/codegen/document-handlers/generators/processor-generator.js +2 -2
- package/dist/processors/codegen/factory.d.ts +1 -2
- package/dist/processors/codegen/factory.d.ts.map +1 -1
- package/dist/processors/codegen/factory.legacy.d.ts +2 -2
- package/dist/processors/codegen/factory.legacy.d.ts.map +1 -1
- package/dist/processors/codegen/index.legacy.d.ts +2 -2
- package/dist/processors/codegen/index.legacy.d.ts.map +1 -1
- package/dist/processors/factory.d.ts +1 -2
- package/dist/processors/factory.d.ts.map +1 -1
- package/dist/processors/factory.js +1 -1
- package/dist/processors/factory.legacy.d.ts +2 -2
- package/dist/processors/factory.legacy.d.ts.map +1 -1
- package/dist/processors/factory.legacy.js +0 -1
- package/dist/processors/vetra-read-model/factory.d.ts +1 -2
- package/dist/processors/vetra-read-model/factory.d.ts.map +1 -1
- package/dist/processors/vetra-read-model/factory.legacy.d.ts +3 -2
- package/dist/processors/vetra-read-model/factory.legacy.d.ts.map +1 -1
- package/dist/processors/vetra-read-model/index.legacy.d.ts +2 -2
- package/dist/processors/vetra-read-model/index.legacy.d.ts.map +1 -1
- package/dist/processors/vetra-read-model/index.legacy.js +2 -2
- package/dist/processors/vetra-read-model/migrations.d.ts +3 -3
- package/dist/processors/vetra-read-model/migrations.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +15 -15
|
@@ -7,7 +7,7 @@ export declare const actions: {
|
|
|
7
7
|
removeDocumentType: (input: import("./index.js").RemoveDocumentTypeInput) => import("./index.js").RemoveDocumentTypeAction;
|
|
8
8
|
setDocumentTypes: (input: import("./index.js").SetDocumentTypesInput) => import("./index.js").SetDocumentTypesAction;
|
|
9
9
|
setName: (name: string) => import("document-model").SetNameAction;
|
|
10
|
-
undo: (
|
|
10
|
+
undo: (count?: number, scope?: string) => import("document-model").UndoAction;
|
|
11
11
|
redo: (count?: number, scope?: string) => import("document-model").RedoAction;
|
|
12
12
|
prune: (start?: number, end?: number, scope?: string) => import("document-model").SchemaPruneAction;
|
|
13
13
|
loadState: <TState extends import("document-model").PHBaseState = import("document-model").PHBaseState>(state: TState & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../document-models/app-module/actions.ts"],"names":[],"mappings":"AAGA,+CAA+C;AAE/C,eAAO,MAAM,OAAO;4BAKV,sDAAiC;iBAA2P,2CAAsB;mBAAwK,6CAAwB;sBAAiL,gDAA2B;yBAA6L,mDAA8B;uBAAoM,iDAA4B;;
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../document-models/app-module/actions.ts"],"names":[],"mappings":"AAGA,+CAA+C;AAE/C,eAAO,MAAM,OAAO;4BAKV,sDAAiC;iBAA2P,2CAAsB;mBAAwK,6CAAwB;sBAAiL,gDAA2B;yBAA6L,mDAA8B;uBAAoM,iDAA4B;;gBAAuuL,CAAC,eAAe,CAAC;gBAAkE,CAAC,eAAe,CAAC;iBAAmE,CAAC,aAAa,CAAC,eAAe,CAAC;;;;gBAAqS,CAAC;CADr1O,CAAC"}
|
|
@@ -5,7 +5,7 @@ export declare const actions: {
|
|
|
5
5
|
removeDocumentType: (input: import("./index.js").RemoveDocumentTypeInput) => import("./index.js").RemoveDocumentTypeAction;
|
|
6
6
|
setEditorStatus: (input: import("./index.js").SetEditorStatusInput) => import("./index.js").SetEditorStatusAction;
|
|
7
7
|
setName: (name: string) => import("document-model").SetNameAction;
|
|
8
|
-
undo: (
|
|
8
|
+
undo: (count?: number, scope?: string) => import("document-model").UndoAction;
|
|
9
9
|
redo: (count?: number, scope?: string) => import("document-model").RedoAction;
|
|
10
10
|
prune: (start?: number, end?: number, scope?: string) => import("document-model").SchemaPruneAction;
|
|
11
11
|
loadState: <TState extends import("document-model").PHBaseState = import("document-model").PHBaseState>(state: TState & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../document-models/document-editor/actions.ts"],"names":[],"mappings":"AAGA,oDAAoD;AAEpD,eAAO,MAAM,OAAO;oBACsQ,8CAAyB;sBAAoL,gDAA2B;yBAA6L,mDAA8B;sBAAmM,gDAA2B;;
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../document-models/document-editor/actions.ts"],"names":[],"mappings":"AAGA,oDAAoD;AAEpD,eAAO,MAAM,OAAO;oBACsQ,8CAAyB;sBAAoL,gDAA2B;yBAA6L,mDAA8B;sBAAmM,gDAA2B;;gBAAg+L,CAAC,eAAe,CAAC;gBAAkE,CAAC,eAAe,CAAC;iBAAmE,CAAC,aAAa,CAAC,eAAe,CAAC;;;;gBAAqS,CAAC;CADp0O,CAAC"}
|
|
@@ -6,7 +6,7 @@ export declare const actions: {
|
|
|
6
6
|
removeDocumentType: (input: import("./index.js").RemoveDocumentTypeInput) => import("./index.js").RemoveDocumentTypeAction;
|
|
7
7
|
setProcessorStatus: (input: import("./index.js").SetProcessorStatusInput) => import("./index.js").SetProcessorStatusAction;
|
|
8
8
|
setName: (name: string) => import("document-model").SetNameAction;
|
|
9
|
-
undo: (
|
|
9
|
+
undo: (count?: number, scope?: string) => import("document-model").UndoAction;
|
|
10
10
|
redo: (count?: number, scope?: string) => import("document-model").RedoAction;
|
|
11
11
|
prune: (start?: number, end?: number, scope?: string) => import("document-model").SchemaPruneAction;
|
|
12
12
|
loadState: <TState extends import("document-model").PHBaseState = import("document-model").PHBaseState>(state: TState & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../document-models/processor-module/actions.ts"],"names":[],"mappings":"AAGA,qDAAqD;AAErD,eAAO,MAAM,OAAO;uBAC4W,iDAA4B;uBAA8L,iDAA4B;sBAA6L,gDAA2B;yBAA6L,mDAA8B;yBAAsM,mDAA8B;;
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../document-models/processor-module/actions.ts"],"names":[],"mappings":"AAGA,qDAAqD;AAErD,eAAO,MAAM,OAAO;uBAC4W,iDAA4B;uBAA8L,iDAA4B;sBAA6L,gDAA2B;yBAA6L,mDAA8B;yBAAsM,mDAA8B;;gBAA6oL,CAAC,eAAe,CAAC;gBAAkE,CAAC,eAAe,CAAC;iBAAmE,CAAC,aAAa,CAAC,eAAe,CAAC;;;;gBAAqS,CAAC;CADn0O,CAAC"}
|
|
@@ -3,7 +3,7 @@ export declare const actions: {
|
|
|
3
3
|
setSubgraphName: (input: import("./index.js").SetSubgraphNameInput) => import("./index.js").SetSubgraphNameAction;
|
|
4
4
|
setSubgraphStatus: (input: import("./index.js").SetSubgraphStatusInput) => import("./index.js").SetSubgraphStatusAction;
|
|
5
5
|
setName: (name: string) => import("document-model").SetNameAction;
|
|
6
|
-
undo: (
|
|
6
|
+
undo: (count?: number, scope?: string) => import("document-model").UndoAction;
|
|
7
7
|
redo: (count?: number, scope?: string) => import("document-model").RedoAction;
|
|
8
8
|
prune: (start?: number, end?: number, scope?: string) => import("document-model").SchemaPruneAction;
|
|
9
9
|
loadState: <TState extends import("document-model").PHBaseState = import("document-model").PHBaseState>(state: TState & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../document-models/subgraph-module/actions.ts"],"names":[],"mappings":"AAGA,oDAAoD;AAEpD,eAAO,MAAM,OAAO;sBACwG,gDAA2B;wBAA4L,kDAA6B;;
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../document-models/subgraph-module/actions.ts"],"names":[],"mappings":"AAGA,oDAAoD;AAEpD,eAAO,MAAM,OAAO;sBACwG,gDAA2B;wBAA4L,kDAA6B;;gBAA2iN,CAAC,eAAe,CAAC;gBAAkE,CAAC,eAAe,CAAC;iBAAmE,CAAC,aAAa,CAAC,eAAe,CAAC;;;;gBAAqS,CAAC;CADp0O,CAAC"}
|
|
@@ -11,7 +11,7 @@ export declare const actions: {
|
|
|
11
11
|
setPackageGithubUrl: (input: import("./index.js").SetPackageGithubUrlInput) => import("./index.js").SetPackageGithubUrlAction;
|
|
12
12
|
setPackageNpmUrl: (input: import("./index.js").SetPackageNpmUrlInput) => import("./index.js").SetPackageNpmUrlAction;
|
|
13
13
|
setName: (name: string) => import("document-model").SetNameAction;
|
|
14
|
-
undo: (
|
|
14
|
+
undo: (count?: number, scope?: string) => import("document-model").UndoAction;
|
|
15
15
|
redo: (count?: number, scope?: string) => import("document-model").RedoAction;
|
|
16
16
|
prune: (start?: number, end?: number, scope?: string) => import("document-model").SchemaPruneAction;
|
|
17
17
|
loadState: <TState extends import("document-model").PHBaseState = import("document-model").PHBaseState>(state: TState & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../document-models/vetra-package/actions.ts"],"names":[],"mappings":"AAGA,kDAAkD;AAElD,eAAO,MAAM,OAAO;qBACs0B,+CAA0B;4BAA6L,sDAAiC;yBAA+M,mDAA8B;uBAAoM,iDAA4B;2BAAkM,qDAAgC;8BAAkN,wDAAmC;wBAAqN,kDAA6B;2BAAqM,qDAAgC;0BAA6M,oDAA+B;uBAAwM,iDAA4B;;
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../document-models/vetra-package/actions.ts"],"names":[],"mappings":"AAGA,kDAAkD;AAElD,eAAO,MAAM,OAAO;qBACs0B,+CAA0B;4BAA6L,sDAAiC;yBAA+M,mDAA8B;uBAAoM,iDAA4B;2BAAkM,qDAAgC;8BAAkN,wDAAmC;wBAAqN,kDAA6B;2BAAqM,qDAAgC;0BAA6M,oDAA+B;uBAAwM,iDAA4B;;gBAAggI,CAAC,eAAe,CAAC;gBAAkE,CAAC,eAAe,CAAC;iBAAmE,CAAC,aAAa,CAAC,eAAe,CAAC;;;;gBAAqS,CAAC;CADt0O,CAAC"}
|
|
@@ -298,7 +298,7 @@ describe("CodegenProcessorLegacy E2E Tests", () => {
|
|
|
298
298
|
"powerhouse/budget-statement",
|
|
299
299
|
],
|
|
300
300
|
skipFormat: mockConfig.PH_CONFIG.skipFormat,
|
|
301
|
-
|
|
301
|
+
processorApps: ["connect", "switchboard"],
|
|
302
302
|
useTsMorph: USE_TS_MORPH,
|
|
303
303
|
});
|
|
304
304
|
});
|
|
@@ -325,7 +325,7 @@ describe("CodegenProcessorLegacy E2E Tests", () => {
|
|
|
325
325
|
documentTypes: ["powerhouse/document-model"],
|
|
326
326
|
skipFormat: mockConfig.PH_CONFIG.skipFormat,
|
|
327
327
|
useTsMorph: USE_TS_MORPH,
|
|
328
|
-
|
|
328
|
+
processorApps: ["connect", "switchboard"],
|
|
329
329
|
});
|
|
330
330
|
});
|
|
331
331
|
it("should not call generateProcessor for unsupported processor type", async () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const USE_TS_MORPH = true;
|
|
2
2
|
export declare const USE_VERSIONING = false;
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const TEMP_HARDCODED_PROCESSOR_APPS: readonly ["connect", "switchboard"];
|
|
4
4
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../processors/codegen/document-handlers/generators/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,OAAO,CAAC;AACjC,eAAO,MAAM,cAAc,QAAQ,CAAC;AACpC,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../processors/codegen/document-handlers/generators/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,OAAO,CAAC;AACjC,eAAO,MAAM,cAAc,QAAQ,CAAC;AACpC,eAAO,MAAM,6BAA6B,qCAGhC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { generateProcessor } from "@powerhousedao/codegen";
|
|
2
2
|
import { logger } from "../../logger.js";
|
|
3
3
|
import { BaseDocumentGen } from "../base-document-gen.js";
|
|
4
|
-
import {
|
|
4
|
+
import { TEMP_HARDCODED_PROCESSOR_APPS, USE_TS_MORPH } from "./constants.js";
|
|
5
5
|
import { minimalBackupDocument } from "./utils.js";
|
|
6
6
|
/**
|
|
7
7
|
* Generator for processor documents
|
|
@@ -70,7 +70,7 @@ export class ProcessorGenerator extends BaseDocumentGen {
|
|
|
70
70
|
documentTypes,
|
|
71
71
|
skipFormat: this.config.PH_CONFIG.skipFormat,
|
|
72
72
|
useTsMorph: USE_TS_MORPH,
|
|
73
|
-
|
|
73
|
+
processorApps: TEMP_HARDCODED_PROCESSOR_APPS,
|
|
74
74
|
});
|
|
75
75
|
logger.info(`✅ Processor generation completed successfully for: ${state.name}`);
|
|
76
76
|
// Backup the document
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { ProcessorRecord } from "@powerhousedao/reactor";
|
|
2
|
-
import type { IProcessorHostModule } from "document-drive";
|
|
1
|
+
import type { IProcessorHostModule, ProcessorRecord } from "@powerhousedao/reactor";
|
|
3
2
|
import type { PHDocumentHeader } from "document-model";
|
|
4
3
|
export declare const codegenProcessorFactory: (module: IProcessorHostModule) => (driveHeader: PHDocumentHeader) => ProcessorRecord[];
|
|
5
4
|
//# sourceMappingURL=factory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../processors/codegen/factory.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../processors/codegen/factory.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,oBAAoB,EACpB,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAgCvD,eAAO,MAAM,uBAAuB,GACjC,QAAQ,oBAAoB,MAC5B,aAAa,gBAAgB,KAAG,eAAe,EAsC/C,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IProcessorHostModuleLegacy, ProcessorRecordLegacy } from "document-drive";
|
|
2
2
|
import type { PHDocumentHeader } from "document-model";
|
|
3
|
-
export declare const codegenProcessorFactoryLegacy: (module:
|
|
3
|
+
export declare const codegenProcessorFactoryLegacy: (module: IProcessorHostModuleLegacy) => (driveHeader: PHDocumentHeader) => ProcessorRecordLegacy[];
|
|
4
4
|
//# sourceMappingURL=factory.legacy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.legacy.d.ts","sourceRoot":"","sources":["../../../processors/codegen/factory.legacy.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"factory.legacy.d.ts","sourceRoot":"","sources":["../../../processors/codegen/factory.legacy.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,0BAA0B,EAC1B,qBAAqB,EACtB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAgCvD,eAAO,MAAM,6BAA6B,GACvC,QAAQ,0BAA0B,MAClC,aAAa,gBAAgB,KAAG,qBAAqB,EAsCrD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { InternalTransmitterUpdate,
|
|
2
|
-
export declare class CodegenProcessorLegacy implements
|
|
1
|
+
import type { InternalTransmitterUpdate, IProcessorLegacy } from "document-drive";
|
|
2
|
+
export declare class CodegenProcessorLegacy implements IProcessorLegacy {
|
|
3
3
|
private manager;
|
|
4
4
|
constructor(interactiveMode?: boolean);
|
|
5
5
|
onStrands(strands: InternalTransmitterUpdate[]): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.legacy.d.ts","sourceRoot":"","sources":["../../../processors/codegen/index.legacy.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.legacy.d.ts","sourceRoot":"","sources":["../../../processors/codegen/index.legacy.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,yBAAyB,EACzB,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AAQxB,qBAAa,sBAAuB,YAAW,gBAAgB;IAC7D,OAAO,CAAC,OAAO,CAAyB;gBAE5B,eAAe,UAAQ;IAoB7B,SAAS,CAAC,OAAO,EAAE,yBAAyB,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAqC9D,YAAY;IAGX,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAI1C,aAAa,IAAI,OAAO;IAIxB,uBAAuB,IAAI,OAAO;CAG1C"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { ProcessorRecord } from "@powerhousedao/reactor";
|
|
2
|
-
import type { IProcessorHostModule } from "document-drive";
|
|
1
|
+
import type { IProcessorHostModule, ProcessorRecord } from "@powerhousedao/reactor";
|
|
3
2
|
import type { PHDocumentHeader } from "document-model";
|
|
4
3
|
/**
|
|
5
4
|
* This file aggregates all processor factories for the new reactor
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../processors/factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../processors/factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EAEpB,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAIvD;;GAEG;AAEH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,oBAAoB,MAS7C,aAAa,gBAAgB,+BAU5C,CAAC"}
|
|
@@ -14,7 +14,7 @@ export const processorFactory = (module) => {
|
|
|
14
14
|
const processors = [];
|
|
15
15
|
// Call each cached factory with the driveHeader
|
|
16
16
|
for (const factory of factories) {
|
|
17
|
-
processors.push(...(await factory(driveHeader)));
|
|
17
|
+
processors.push(...(await factory(driveHeader, module.processorApp)));
|
|
18
18
|
}
|
|
19
19
|
return processors;
|
|
20
20
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file aggregates all legacy processor factories
|
|
3
3
|
*/
|
|
4
|
-
import type {
|
|
4
|
+
import type { IProcessorHostModuleLegacy, ProcessorRecordLegacy } from "document-drive";
|
|
5
5
|
import type { PHDocumentHeader } from "document-model";
|
|
6
|
-
export declare const processorFactoryLegacy: (module:
|
|
6
|
+
export declare const processorFactoryLegacy: (module: IProcessorHostModuleLegacy) => (driveHeader: PHDocumentHeader) => Promise<ProcessorRecordLegacy[]>;
|
|
7
7
|
//# sourceMappingURL=factory.legacy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.legacy.d.ts","sourceRoot":"","sources":["../../processors/factory.legacy.ts"],"names":[],"mappings":"AACA;;GAEG;AAEH,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"factory.legacy.d.ts","sourceRoot":"","sources":["../../processors/factory.legacy.ts"],"names":[],"mappings":"AACA;;GAEG;AAEH,OAAO,KAAK,EACV,0BAA0B,EAE1B,qBAAqB,EACtB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAIvD,eAAO,MAAM,sBAAsB,GAAI,QAAQ,0BAA0B,MAWzD,aAAa,gBAAgB,qCAU5C,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { vetraReadModelProcessorFactoryLegacy } from "./vetra-read-model/factory.legacy.js";
|
|
2
|
-
// Import other processor factories here as they are generated
|
|
3
2
|
import { codegenProcessorFactoryLegacy } from "./codegen/factory.legacy.js";
|
|
4
3
|
export const processorFactoryLegacy = (module) => {
|
|
5
4
|
// Initialize all processor factories once with the module
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { ProcessorRecord } from "@powerhousedao/reactor";
|
|
2
|
-
import type { IProcessorHostModule } from "document-drive";
|
|
1
|
+
import type { IProcessorHostModule, ProcessorRecord } from "@powerhousedao/reactor";
|
|
3
2
|
import type { PHDocumentHeader } from "document-model";
|
|
4
3
|
export declare const vetraReadModelProcessorFactory: (module: IProcessorHostModule) => (driveHeader: PHDocumentHeader) => Promise<ProcessorRecord[]>;
|
|
5
4
|
//# sourceMappingURL=factory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../processors/vetra-read-model/factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../processors/vetra-read-model/factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAKvD,eAAO,MAAM,8BAA8B,GACxC,QAAQ,oBAAoB,MACtB,aAAa,gBAAgB,KAAG,OAAO,CAAC,eAAe,EAAE,CAoB/D,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { IProcessorHostModuleLegacy } from "document-drive";
|
|
2
|
+
import { type ProcessorRecordLegacy } from "document-drive";
|
|
2
3
|
import { type PHDocumentHeader } from "document-model";
|
|
3
|
-
export declare const vetraReadModelProcessorFactoryLegacy: (module:
|
|
4
|
+
export declare const vetraReadModelProcessorFactoryLegacy: (module: IProcessorHostModuleLegacy) => (driveHeader: PHDocumentHeader) => Promise<ProcessorRecordLegacy[]>;
|
|
4
5
|
//# sourceMappingURL=factory.legacy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.legacy.d.ts","sourceRoot":"","sources":["../../../processors/vetra-read-model/factory.legacy.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"factory.legacy.d.ts","sourceRoot":"","sources":["../../../processors/vetra-read-model/factory.legacy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EACL,KAAK,qBAAqB,EAE3B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGvD,eAAO,MAAM,oCAAoC,GAC9C,QAAQ,0BAA0B,MAC5B,aAAa,gBAAgB,KAAG,OAAO,CAAC,qBAAqB,EAAE,CAgCrE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RelationalDbProcessorLegacy, type InternalTransmitterUpdate } from "document-drive";
|
|
2
2
|
import { type DB } from "./schema.js";
|
|
3
|
-
export declare class VetraReadModelProcessorLegacy extends
|
|
3
|
+
export declare class VetraReadModelProcessorLegacy extends RelationalDbProcessorLegacy<DB> {
|
|
4
4
|
static getNamespace(driveId: string): string;
|
|
5
5
|
initAndUpgrade(): Promise<void>;
|
|
6
6
|
onStrands(strands: InternalTransmitterUpdate[]): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.legacy.d.ts","sourceRoot":"","sources":["../../../processors/vetra-read-model/index.legacy.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"index.legacy.d.ts","sourceRoot":"","sources":["../../../processors/vetra-read-model/index.legacy.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,KAAK,yBAAyB,EAC/B,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,aAAa,CAAC;AAItC,qBAAa,6BAA8B,SAAQ,2BAA2B,CAAC,EAAE,CAAC;WAChE,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAMtC,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAI/B,SAAS,CACtB,OAAO,EAAE,yBAAyB,EAAE,GACnC,OAAO,CAAC,IAAI,CAAC;IAyEV,YAAY;CACnB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RelationalDbProcessorLegacy, } from "document-drive";
|
|
2
2
|
import { up } from "./migrations.js";
|
|
3
3
|
import {} from "./schema.js";
|
|
4
|
-
export class VetraReadModelProcessorLegacy extends
|
|
4
|
+
export class VetraReadModelProcessorLegacy extends RelationalDbProcessorLegacy {
|
|
5
5
|
static getNamespace(driveId) {
|
|
6
6
|
// Default namespace: `${this.name}_${driveId.replaceAll("-", "_")}`
|
|
7
7
|
// we keep all vetra packages in the same namespace even if they are stored in different drives
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
export declare function up(db:
|
|
3
|
-
export declare function down(db:
|
|
1
|
+
import { type IRelationalDbLegacy } from "document-drive";
|
|
2
|
+
export declare function up(db: IRelationalDbLegacy<any>): Promise<void>;
|
|
3
|
+
export declare function down(db: IRelationalDbLegacy<any>): Promise<void>;
|
|
4
4
|
//# sourceMappingURL=migrations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../../../processors/vetra-read-model/migrations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../../../processors/vetra-read-model/migrations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAE1D,wBAAsB,EAAE,CAAC,EAAE,EAAE,mBAAmB,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAkDpE;AAED,wBAAsB,IAAI,CAAC,EAAE,EAAE,mBAAmB,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAWtE"}
|