@pattern-stack/codegen 0.16.1 → 0.17.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/CHANGELOG.md +121 -0
- package/consumer-skills/entities/families-and-queries.md +5 -3
- package/consumer-skills/integration/audit-and-detection.md +29 -4
- package/dist/{chunk-H6FO2ZDJ.js → chunk-4PFF3ED4.js} +4 -4
- package/dist/{chunk-CO6LUM72.js → chunk-7P5ODGLA.js} +34 -2
- package/dist/chunk-7P5ODGLA.js.map +1 -0
- package/dist/{chunk-QSJ3J4HE.js → chunk-BHZP6LOV.js} +7 -7
- package/dist/{chunk-RUSUZZAF.js → chunk-BK5ICA2F.js} +4 -4
- package/dist/{chunk-T4YJRD22.js → chunk-DUMI2J5M.js} +45 -14
- package/dist/chunk-DUMI2J5M.js.map +1 -0
- package/dist/{chunk-TKVTEUBD.js → chunk-EJBK7I4F.js} +2 -2
- package/dist/{chunk-IT6FRTEW.js → chunk-FVNAU7VO.js} +39 -18
- package/dist/chunk-FVNAU7VO.js.map +1 -0
- package/dist/{chunk-JM3T27ZW.js → chunk-FWRL7BZ5.js} +7 -7
- package/dist/{chunk-DGYTSCKN.js → chunk-HOIRY5XP.js} +14 -14
- package/dist/{chunk-AYC2HEAL.js → chunk-HPS554L4.js} +9 -9
- package/dist/{chunk-2WDX6I7T.js → chunk-IOQMMH6C.js} +16 -6
- package/dist/{chunk-2WDX6I7T.js.map → chunk-IOQMMH6C.js.map} +1 -1
- package/dist/{chunk-24WXSC3C.js → chunk-JA7GJDNI.js} +15 -9
- package/dist/chunk-JA7GJDNI.js.map +1 -0
- package/dist/{chunk-36U5UGIO.js → chunk-JEINYUJH.js} +8 -5
- package/dist/chunk-JEINYUJH.js.map +1 -0
- package/dist/{chunk-BOPZWRJK.js → chunk-JYBFPNBJ.js} +8 -8
- package/dist/chunk-JYBFPNBJ.js.map +1 -0
- package/dist/{chunk-K2I6XIK5.js → chunk-KSTZIULO.js} +4 -4
- package/dist/chunk-MKWQKKK7.js +72 -0
- package/dist/chunk-MKWQKKK7.js.map +1 -0
- package/dist/{chunk-CRBVI4GE.js → chunk-PSDVGPQR.js} +5 -5
- package/dist/{chunk-DLG62MQY.js → chunk-SFQRETXJ.js} +7 -7
- package/dist/{chunk-NXNVTXKG.js → chunk-SGSWVNNB.js} +5 -5
- package/dist/{chunk-5LXOJGO2.js → chunk-VNBC3VXM.js} +6 -6
- package/dist/{job-orchestrator.protocol-DubMVbm9.d.ts → job-orchestrator.protocol-ZuJ3ow-O.d.ts} +77 -3
- package/dist/runtime/base-classes/activity-entity-repository.d.ts +39 -7
- package/dist/runtime/base-classes/activity-entity-repository.js +1 -1
- package/dist/runtime/base-classes/activity-entity-service.d.ts +12 -10
- package/dist/runtime/base-classes/activity-entity-service.js +1 -1
- package/dist/runtime/base-classes/index.js +18 -18
- package/dist/runtime/shared/openapi/index.js +3 -3
- package/dist/runtime/subsystems/auth/index.js +3 -3
- package/dist/runtime/subsystems/bridge/bridge-delivery-handler.d.ts +1 -1
- package/dist/runtime/subsystems/bridge/bridge-delivery-handler.js +2 -2
- package/dist/runtime/subsystems/bridge/bridge-delivery.drizzle-backend.js +2 -2
- package/dist/runtime/subsystems/bridge/bridge-outbox-drain-hook.js +6 -6
- package/dist/runtime/subsystems/bridge/bridge.module.d.ts +1 -1
- package/dist/runtime/subsystems/bridge/bridge.module.js +19 -19
- package/dist/runtime/subsystems/bridge/event-flow.service.d.ts +1 -1
- package/dist/runtime/subsystems/bridge/index.d.ts +1 -1
- package/dist/runtime/subsystems/bridge/index.js +21 -21
- package/dist/runtime/subsystems/cache/cache.module.js +1 -1
- package/dist/runtime/subsystems/cache/index.js +3 -3
- package/dist/runtime/subsystems/events/event-bus.drizzle-backend.js +2 -2
- package/dist/runtime/subsystems/events/events.module.js +3 -3
- package/dist/runtime/subsystems/events/index.js +3 -3
- package/dist/runtime/subsystems/index.d.ts +1 -1
- package/dist/runtime/subsystems/index.js +50 -50
- package/dist/runtime/subsystems/integration/deep-equal.differ.d.ts +19 -0
- package/dist/runtime/subsystems/integration/deep-equal.differ.js +1 -1
- package/dist/runtime/subsystems/integration/index.js +22 -22
- package/dist/runtime/subsystems/integration/integration.module.d.ts +20 -0
- package/dist/runtime/subsystems/integration/integration.module.js +4 -4
- package/dist/runtime/subsystems/jobs/index.d.ts +1 -1
- package/dist/runtime/subsystems/jobs/index.js +43 -43
- package/dist/runtime/subsystems/jobs/job-handler.base.d.ts +1 -1
- package/dist/runtime/subsystems/jobs/job-handler.base.js +11 -3
- package/dist/runtime/subsystems/jobs/job-orchestrator.bullmq-backend.d.ts +1 -1
- package/dist/runtime/subsystems/jobs/job-orchestrator.bullmq-backend.js +7 -6
- package/dist/runtime/subsystems/jobs/job-orchestrator.bullmq-backend.js.map +1 -1
- package/dist/runtime/subsystems/jobs/job-orchestrator.drizzle-backend.d.ts +1 -1
- package/dist/runtime/subsystems/jobs/job-orchestrator.drizzle-backend.js +4 -3
- package/dist/runtime/subsystems/jobs/job-orchestrator.memory-backend.d.ts +11 -1
- package/dist/runtime/subsystems/jobs/job-orchestrator.memory-backend.js +3 -3
- package/dist/runtime/subsystems/jobs/job-orchestrator.protocol.d.ts +1 -1
- package/dist/runtime/subsystems/jobs/job-run-keyset-cursor.d.ts +1 -1
- package/dist/runtime/subsystems/jobs/job-run-service.drizzle-backend.d.ts +1 -1
- package/dist/runtime/subsystems/jobs/job-run-service.drizzle-backend.js +3 -3
- package/dist/runtime/subsystems/jobs/job-run-service.memory-backend.d.ts +1 -1
- package/dist/runtime/subsystems/jobs/job-run-service.memory-backend.js +3 -3
- package/dist/runtime/subsystems/jobs/job-run-service.protocol.d.ts +1 -1
- package/dist/runtime/subsystems/jobs/job-worker.bullmq-backend.d.ts +1 -1
- package/dist/runtime/subsystems/jobs/job-worker.bullmq-backend.js +3 -3
- package/dist/runtime/subsystems/jobs/job-worker.d.ts +1 -1
- package/dist/runtime/subsystems/jobs/job-worker.js +3 -3
- package/dist/runtime/subsystems/jobs/job-worker.module.d.ts +1 -1
- package/dist/runtime/subsystems/jobs/job-worker.module.js +13 -13
- package/dist/runtime/subsystems/jobs/jobs-domain.module.js +11 -11
- package/dist/runtime/subsystems/jobs/jobs-errors.d.ts +1 -1
- package/dist/runtime/subsystems/observability/index.d.ts +1 -1
- package/dist/runtime/subsystems/observability/observability.protocol.d.ts +1 -1
- package/dist/runtime/subsystems/observability/observability.service.d.ts +1 -1
- package/dist/runtime/subsystems/observability/reporters/bridge-metrics.reporter.d.ts +1 -1
- package/dist/runtime/subsystems/observability/reporters/index.d.ts +1 -1
- package/dist/runtime/subsystems/storage/index.js +4 -4
- package/dist/runtime/subsystems/storage/storage.module.js +2 -2
- package/dist/src/cli/index.js +34 -12
- package/dist/src/cli/index.js.map +1 -1
- package/dist/src/index.d.ts +23 -8
- package/dist/src/index.js +7 -7
- package/package.json +2 -1
- package/runtime/base-classes/activity-entity-repository.ts +72 -13
- package/runtime/base-classes/activity-entity-service.ts +14 -12
- package/runtime/subsystems/integration/deep-equal.differ.ts +34 -5
- package/runtime/subsystems/integration/integration.module.ts +26 -2
- package/runtime/subsystems/jobs/job-handler.base.ts +115 -2
- package/runtime/subsystems/jobs/job-orchestrator.drizzle-backend.ts +43 -16
- package/runtime/subsystems/jobs/job-orchestrator.memory-backend.ts +58 -18
- package/src/patterns/library/activity.pattern.ts +40 -10
- package/templates/subsystem/integration-config/codegen-config-integration-block.ejs.t +17 -0
- package/dist/chunk-24WXSC3C.js.map +0 -1
- package/dist/chunk-36U5UGIO.js.map +0 -1
- package/dist/chunk-BOPZWRJK.js.map +0 -1
- package/dist/chunk-CO6LUM72.js.map +0 -1
- package/dist/chunk-IT6FRTEW.js.map +0 -1
- package/dist/chunk-T4YJRD22.js.map +0 -1
- package/dist/chunk-XCEI7NUH.js +0 -41
- package/dist/chunk-XCEI7NUH.js.map +0 -1
- /package/dist/{chunk-H6FO2ZDJ.js.map → chunk-4PFF3ED4.js.map} +0 -0
- /package/dist/{chunk-QSJ3J4HE.js.map → chunk-BHZP6LOV.js.map} +0 -0
- /package/dist/{chunk-RUSUZZAF.js.map → chunk-BK5ICA2F.js.map} +0 -0
- /package/dist/{chunk-TKVTEUBD.js.map → chunk-EJBK7I4F.js.map} +0 -0
- /package/dist/{chunk-JM3T27ZW.js.map → chunk-FWRL7BZ5.js.map} +0 -0
- /package/dist/{chunk-DGYTSCKN.js.map → chunk-HOIRY5XP.js.map} +0 -0
- /package/dist/{chunk-AYC2HEAL.js.map → chunk-HPS554L4.js.map} +0 -0
- /package/dist/{chunk-K2I6XIK5.js.map → chunk-KSTZIULO.js.map} +0 -0
- /package/dist/{chunk-CRBVI4GE.js.map → chunk-PSDVGPQR.js.map} +0 -0
- /package/dist/{chunk-DLG62MQY.js.map → chunk-SFQRETXJ.js.map} +0 -0
- /package/dist/{chunk-NXNVTXKG.js.map → chunk-SGSWVNNB.js.map} +0 -0
- /package/dist/{chunk-5LXOJGO2.js.map → chunk-VNBC3VXM.js.map} +0 -0
|
@@ -2,7 +2,7 @@ import { DynamicModule, OnModuleInit, OnModuleDestroy } from '@nestjs/common';
|
|
|
2
2
|
import { ModuleRef } from '@nestjs/core';
|
|
3
3
|
import { DrizzleClient } from '../../types/drizzle.js';
|
|
4
4
|
import { JobsDomainModuleOptions } from './jobs-domain.module.js';
|
|
5
|
-
import { I as IJobOrchestrator } from '../../../job-orchestrator.protocol-
|
|
5
|
+
import { I as IJobOrchestrator } from '../../../job-orchestrator.protocol-ZuJ3ow-O.js';
|
|
6
6
|
import { IJobRunService } from './job-run-service.protocol.js';
|
|
7
7
|
import { IJobStepService } from './job-step-service.protocol.js';
|
|
8
8
|
import { JobWorkerOptions, JobWorker } from './job-worker.js';
|
|
@@ -2,23 +2,23 @@ import {
|
|
|
2
2
|
JOB_WORKER_MODULE_OPTIONS,
|
|
3
3
|
JobWorkerModule,
|
|
4
4
|
JobWorkerOrchestrator
|
|
5
|
-
} from "../../../chunk-
|
|
6
|
-
import "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
8
|
-
import "../../../chunk-5LXOJGO2.js";
|
|
9
|
-
import "../../../chunk-QSJ3J4HE.js";
|
|
10
|
-
import "../../../chunk-L3LZWWSX.js";
|
|
5
|
+
} from "../../../chunk-HPS554L4.js";
|
|
6
|
+
import "../../../chunk-FWRL7BZ5.js";
|
|
7
|
+
import "../../../chunk-HOIRY5XP.js";
|
|
11
8
|
import "../../../chunk-DV4RV2DC.js";
|
|
12
|
-
import "../../../chunk-
|
|
13
|
-
import "../../../chunk-
|
|
14
|
-
import "../../../chunk-IT6FRTEW.js";
|
|
15
|
-
import "../../../chunk-OKXZ63IA.js";
|
|
16
|
-
import "../../../chunk-T4YJRD22.js";
|
|
9
|
+
import "../../../chunk-FVNAU7VO.js";
|
|
10
|
+
import "../../../chunk-DUMI2J5M.js";
|
|
17
11
|
import "../../../chunk-PNZSGAB2.js";
|
|
12
|
+
import "../../../chunk-VNBC3VXM.js";
|
|
13
|
+
import "../../../chunk-BHZP6LOV.js";
|
|
18
14
|
import "../../../chunk-SNQ3TOWP.js";
|
|
19
|
-
import "../../../chunk-CO6LUM72.js";
|
|
20
|
-
import "../../../chunk-ZPL74UQN.js";
|
|
21
15
|
import "../../../chunk-T4BIIU5E.js";
|
|
16
|
+
import "../../../chunk-L3LZWWSX.js";
|
|
17
|
+
import "../../../chunk-I6MVCB5A.js";
|
|
18
|
+
import "../../../chunk-RHVN6NA7.js";
|
|
19
|
+
import "../../../chunk-ZPL74UQN.js";
|
|
20
|
+
import "../../../chunk-7P5ODGLA.js";
|
|
21
|
+
import "../../../chunk-OKXZ63IA.js";
|
|
22
22
|
import "../../../chunk-MYQIQ27N.js";
|
|
23
23
|
import "../../../chunk-GYGNEQSC.js";
|
|
24
24
|
import "../../../chunk-U64T4YZE.js";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
JobsDomainModule
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-5LXOJGO2.js";
|
|
5
|
-
import "../../../chunk-QSJ3J4HE.js";
|
|
6
|
-
import "../../../chunk-L3LZWWSX.js";
|
|
3
|
+
} from "../../../chunk-HOIRY5XP.js";
|
|
7
4
|
import "../../../chunk-DV4RV2DC.js";
|
|
8
|
-
import "../../../chunk-
|
|
9
|
-
import "../../../chunk-
|
|
10
|
-
import "../../../chunk-IT6FRTEW.js";
|
|
11
|
-
import "../../../chunk-OKXZ63IA.js";
|
|
12
|
-
import "../../../chunk-T4YJRD22.js";
|
|
5
|
+
import "../../../chunk-FVNAU7VO.js";
|
|
6
|
+
import "../../../chunk-DUMI2J5M.js";
|
|
13
7
|
import "../../../chunk-PNZSGAB2.js";
|
|
8
|
+
import "../../../chunk-VNBC3VXM.js";
|
|
9
|
+
import "../../../chunk-BHZP6LOV.js";
|
|
14
10
|
import "../../../chunk-SNQ3TOWP.js";
|
|
15
|
-
import "../../../chunk-CO6LUM72.js";
|
|
16
|
-
import "../../../chunk-ZPL74UQN.js";
|
|
17
11
|
import "../../../chunk-T4BIIU5E.js";
|
|
12
|
+
import "../../../chunk-L3LZWWSX.js";
|
|
13
|
+
import "../../../chunk-I6MVCB5A.js";
|
|
14
|
+
import "../../../chunk-RHVN6NA7.js";
|
|
15
|
+
import "../../../chunk-ZPL74UQN.js";
|
|
16
|
+
import "../../../chunk-7P5ODGLA.js";
|
|
17
|
+
import "../../../chunk-OKXZ63IA.js";
|
|
18
18
|
import "../../../chunk-MYQIQ27N.js";
|
|
19
19
|
import "../../../chunk-GYGNEQSC.js";
|
|
20
20
|
import "../../../chunk-U64T4YZE.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as JobRun } from '../../../job-orchestrator.protocol-
|
|
1
|
+
import { i as JobRun } from '../../../job-orchestrator.protocol-ZuJ3ow-O.js';
|
|
2
2
|
import '../events/event-bus.protocol.js';
|
|
3
3
|
import '../../types/drizzle.js';
|
|
4
4
|
import 'drizzle-orm/node-postgres';
|
|
@@ -14,7 +14,7 @@ import '../../types/drizzle.js';
|
|
|
14
14
|
import 'drizzle-orm/node-postgres';
|
|
15
15
|
import '../integration/integration-field-diff.protocol.js';
|
|
16
16
|
import 'zod';
|
|
17
|
-
import '../../../job-orchestrator.protocol-
|
|
17
|
+
import '../../../job-orchestrator.protocol-ZuJ3ow-O.js';
|
|
18
18
|
import '../jobs/job-orchestration.schema.js';
|
|
19
19
|
import 'drizzle-orm/pg-core';
|
|
20
20
|
import 'drizzle-orm';
|
|
@@ -3,7 +3,7 @@ import { ListEventsQuery, EventPage, EventSummary } from '../events/event-read.p
|
|
|
3
3
|
import { StatusHistogram } from '../bridge/bridge.protocol.js';
|
|
4
4
|
import { IntegrationRunSummary } from '../integration/integration-run-recorder.protocol.js';
|
|
5
5
|
import { CursorSnapshot } from '../integration/integration-cursor-store.protocol.js';
|
|
6
|
-
import '../../../job-orchestrator.protocol-
|
|
6
|
+
import '../../../job-orchestrator.protocol-ZuJ3ow-O.js';
|
|
7
7
|
import '../events/event-bus.protocol.js';
|
|
8
8
|
import '../../types/drizzle.js';
|
|
9
9
|
import 'drizzle-orm/node-postgres';
|
|
@@ -4,7 +4,7 @@ import { IJobBridge, StatusHistogram } from '../bridge/bridge.protocol.js';
|
|
|
4
4
|
import { IIntegrationRunRecorder, IntegrationRunSummary } from '../integration/integration-run-recorder.protocol.js';
|
|
5
5
|
import { ICursorStore, CursorSnapshot } from '../integration/integration-cursor-store.protocol.js';
|
|
6
6
|
import { IObservability, CorrelationTimeline } from './observability.protocol.js';
|
|
7
|
-
import '../../../job-orchestrator.protocol-
|
|
7
|
+
import '../../../job-orchestrator.protocol-ZuJ3ow-O.js';
|
|
8
8
|
import '../events/event-bus.protocol.js';
|
|
9
9
|
import '../../types/drizzle.js';
|
|
10
10
|
import 'drizzle-orm/node-postgres';
|
|
@@ -2,7 +2,7 @@ import { OnModuleInit, OnModuleDestroy } from '@nestjs/common';
|
|
|
2
2
|
import { IObservability } from '../observability.protocol.js';
|
|
3
3
|
import { ObservabilityModuleOptions } from '../observability.module.js';
|
|
4
4
|
import '../../jobs/job-run-service.protocol.js';
|
|
5
|
-
import '../../../../job-orchestrator.protocol-
|
|
5
|
+
import '../../../../job-orchestrator.protocol-ZuJ3ow-O.js';
|
|
6
6
|
import '../../events/event-bus.protocol.js';
|
|
7
7
|
import '../../../types/drizzle.js';
|
|
8
8
|
import 'drizzle-orm/node-postgres';
|
|
@@ -2,7 +2,7 @@ export { BridgeMetricsReporter } from './bridge-metrics.reporter.js';
|
|
|
2
2
|
import '@nestjs/common';
|
|
3
3
|
import '../observability.protocol.js';
|
|
4
4
|
import '../../jobs/job-run-service.protocol.js';
|
|
5
|
-
import '../../../../job-orchestrator.protocol-
|
|
5
|
+
import '../../../../job-orchestrator.protocol-ZuJ3ow-O.js';
|
|
6
6
|
import '../../events/event-bus.protocol.js';
|
|
7
7
|
import '../../../types/drizzle.js';
|
|
8
8
|
import 'drizzle-orm/node-postgres';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "../../../chunk-ZUMULSEQ.js";
|
|
2
2
|
import {
|
|
3
3
|
StorageModule
|
|
4
|
-
} from "../../../chunk-
|
|
5
|
-
import {
|
|
6
|
-
MemoryStorageBackend
|
|
7
|
-
} from "../../../chunk-3SZFUTXE.js";
|
|
4
|
+
} from "../../../chunk-BK5ICA2F.js";
|
|
8
5
|
import {
|
|
9
6
|
STORAGE
|
|
10
7
|
} from "../../../chunk-NYBCQZC7.js";
|
|
11
8
|
import {
|
|
12
9
|
LocalStorageBackend
|
|
13
10
|
} from "../../../chunk-JWNHNUYL.js";
|
|
11
|
+
import {
|
|
12
|
+
MemoryStorageBackend
|
|
13
|
+
} from "../../../chunk-3SZFUTXE.js";
|
|
14
14
|
import "../../../chunk-J6MN42LG.js";
|
|
15
15
|
import "../../../chunk-GYGNEQSC.js";
|
|
16
16
|
import "../../../chunk-2E224ZSN.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
StorageModule
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-3SZFUTXE.js";
|
|
3
|
+
} from "../../../chunk-BK5ICA2F.js";
|
|
5
4
|
import "../../../chunk-NYBCQZC7.js";
|
|
6
5
|
import "../../../chunk-JWNHNUYL.js";
|
|
6
|
+
import "../../../chunk-3SZFUTXE.js";
|
|
7
7
|
import "../../../chunk-J6MN42LG.js";
|
|
8
8
|
import "../../../chunk-GYGNEQSC.js";
|
|
9
9
|
import "../../../chunk-2E224ZSN.js";
|
package/dist/src/cli/index.js
CHANGED
|
@@ -36,29 +36,29 @@ import {
|
|
|
36
36
|
validateOrchestrationProject,
|
|
37
37
|
validateProviders,
|
|
38
38
|
writeManifest
|
|
39
|
-
} from "../../chunk-
|
|
39
|
+
} from "../../chunk-IOQMMH6C.js";
|
|
40
40
|
import "../../chunk-KVOWSC5S.js";
|
|
41
|
-
import "../../chunk-
|
|
42
|
-
import "../../chunk-EO2QPOKH.js";
|
|
41
|
+
import "../../chunk-JA7GJDNI.js";
|
|
43
42
|
import "../../chunk-PRWIX6UW.js";
|
|
44
|
-
import "../../chunk-XWBK3XJK.js";
|
|
45
43
|
import "../../chunk-AHV4GDYM.js";
|
|
46
44
|
import "../../chunk-YK5JEVLX.js";
|
|
45
|
+
import "../../chunk-EO2QPOKH.js";
|
|
47
46
|
import "../../chunk-SQDOBLBP.js";
|
|
48
|
-
import {
|
|
49
|
-
isDivisibleCursor
|
|
50
|
-
} from "../../chunk-5TK7MEN4.js";
|
|
51
47
|
import "../../chunk-4KNXX6TI.js";
|
|
52
48
|
import "../../chunk-3CJFPU6Q.js";
|
|
53
49
|
import "../../chunk-TDEHU73T.js";
|
|
50
|
+
import "../../chunk-LG57S2SC.js";
|
|
51
|
+
import "../../chunk-XWBK3XJK.js";
|
|
54
52
|
import "../../chunk-S7C6TIIF.js";
|
|
55
53
|
import "../../chunk-MZ6GV4YF.js";
|
|
56
|
-
import "../../chunk-LG57S2SC.js";
|
|
57
54
|
import "../../chunk-HNWZFNKP.js";
|
|
58
55
|
import "../../chunk-43SBT72G.js";
|
|
59
56
|
import "../../chunk-4MF3HKJA.js";
|
|
60
57
|
import "../../chunk-TIZXQU26.js";
|
|
61
|
-
import "../../chunk-
|
|
58
|
+
import "../../chunk-JEINYUJH.js";
|
|
59
|
+
import {
|
|
60
|
+
isDivisibleCursor
|
|
61
|
+
} from "../../chunk-5TK7MEN4.js";
|
|
62
62
|
import "../../chunk-U64T4YZE.js";
|
|
63
63
|
import "../../chunk-2E224ZSN.js";
|
|
64
64
|
|
|
@@ -2843,16 +2843,38 @@ var COMPOSERS = {
|
|
|
2843
2843
|
integration: ({ moduleImport, cfg }) => {
|
|
2844
2844
|
const backend = cfg?.backend ?? "drizzle";
|
|
2845
2845
|
const multiTenant = Boolean(cfg?.multi_tenant);
|
|
2846
|
+
const differClause = integrationDifferClause(cfg);
|
|
2847
|
+
if (!differClause) {
|
|
2848
|
+
return {
|
|
2849
|
+
imports: [
|
|
2850
|
+
`import { IntegrationModule } from '${moduleImport("integration", "integration.module")}';`
|
|
2851
|
+
],
|
|
2852
|
+
calls: [
|
|
2853
|
+
` IntegrationModule.forRoot(${quoteOpts({ backend, multiTenant })}),`
|
|
2854
|
+
]
|
|
2855
|
+
};
|
|
2856
|
+
}
|
|
2857
|
+
const parts = [`backend: '${backend}'`, `multiTenant: ${multiTenant}`, differClause];
|
|
2846
2858
|
return {
|
|
2847
2859
|
imports: [
|
|
2848
2860
|
`import { IntegrationModule } from '${moduleImport("integration", "integration.module")}';`
|
|
2849
2861
|
],
|
|
2850
|
-
calls: [
|
|
2851
|
-
` IntegrationModule.forRoot(${quoteOpts({ backend, multiTenant })}),`
|
|
2852
|
-
]
|
|
2862
|
+
calls: [` IntegrationModule.forRoot({ ${parts.join(", ")} }),`]
|
|
2853
2863
|
};
|
|
2854
2864
|
}
|
|
2855
2865
|
};
|
|
2866
|
+
function integrationDifferClause(cfg) {
|
|
2867
|
+
const differ = cfg?.differ;
|
|
2868
|
+
if (!differ) return "";
|
|
2869
|
+
const toStrings = (v) => Array.isArray(v) ? v.filter((x) => typeof x === "string") : [];
|
|
2870
|
+
const ignore = toStrings(differ.ignore);
|
|
2871
|
+
const unignore = toStrings(differ.unignore);
|
|
2872
|
+
const inner = {};
|
|
2873
|
+
if (ignore.length > 0) inner.ignore = ignore;
|
|
2874
|
+
if (unignore.length > 0) inner.unignore = unignore;
|
|
2875
|
+
if (Object.keys(inner).length === 0) return "";
|
|
2876
|
+
return `differ: ${jsonToTs(inner)}`;
|
|
2877
|
+
}
|
|
2856
2878
|
var PACKAGE2 = "@pattern-stack/codegen";
|
|
2857
2879
|
function makeModuleImport(mode, subsystemsRel) {
|
|
2858
2880
|
if (mode === "vendored") {
|