@openhi/constructs 0.0.177 → 0.0.179
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/lib/{chunk-Z4PZSLYY.mjs → chunk-3M4QTQH6.mjs} +2 -2
- package/lib/{chunk-JUSVETWK.mjs → chunk-4LQR32D2.mjs} +38 -40
- package/lib/{chunk-JUSVETWK.mjs.map → chunk-4LQR32D2.mjs.map} +1 -1
- package/lib/{chunk-XNUCKVSE.mjs → chunk-7GMTHOYF.mjs} +2 -2
- package/lib/{chunk-E2OWEBBH.mjs → chunk-DIVYB6GD.mjs} +18 -4
- package/lib/chunk-DIVYB6GD.mjs.map +1 -0
- package/lib/chunk-F2LY4TEI.mjs +272 -0
- package/lib/chunk-F2LY4TEI.mjs.map +1 -0
- package/lib/{chunk-GG2WD6TA.mjs → chunk-JJ3AQ6G5.mjs} +9 -3
- package/lib/{chunk-GG2WD6TA.mjs.map → chunk-JJ3AQ6G5.mjs.map} +1 -1
- package/lib/{chunk-EBB4RNUG.mjs → chunk-PIQISEGW.mjs} +2 -2
- package/lib/{chunk-FDBBTNCI.mjs → chunk-Q4KQD2NB.mjs} +117 -5
- package/lib/chunk-Q4KQD2NB.mjs.map +1 -0
- package/lib/{chunk-Y4RGUAM2.mjs → chunk-V6KLFEHC.mjs} +105 -34
- package/lib/chunk-V6KLFEHC.mjs.map +1 -0
- package/lib/chunk-VQY57NOV.mjs +60 -0
- package/lib/chunk-VQY57NOV.mjs.map +1 -0
- package/lib/counter-maintenance.handler.mjs +4 -4
- package/lib/counter-reconciliation.handler.js +2 -2
- package/lib/counter-reconciliation.handler.js.map +1 -1
- package/lib/counter-reconciliation.handler.mjs +9 -267
- package/lib/counter-reconciliation.handler.mjs.map +1 -1
- package/lib/index.d.mts +117 -2
- package/lib/index.d.ts +117 -2
- package/lib/index.js +6454 -6243
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +106 -4
- package/lib/index.mjs.map +1 -1
- package/lib/pre-token-generation.handler.js +28 -19
- package/lib/pre-token-generation.handler.js.map +1 -1
- package/lib/pre-token-generation.handler.mjs +4 -5
- package/lib/pre-token-generation.handler.mjs.map +1 -1
- package/lib/provision-default-workspace.handler.js +22 -19
- package/lib/provision-default-workspace.handler.js.map +1 -1
- package/lib/provision-default-workspace.handler.mjs +3 -4
- package/lib/provision-default-workspace.handler.mjs.map +1 -1
- package/lib/rest-api-lambda.handler.js +400 -214
- package/lib/rest-api-lambda.handler.js.map +1 -1
- package/lib/rest-api-lambda.handler.mjs +243 -171
- package/lib/rest-api-lambda.handler.mjs.map +1 -1
- package/lib/seed-demo-data.handler.d.mts +19 -0
- package/lib/seed-demo-data.handler.d.ts +19 -0
- package/lib/seed-demo-data.handler.js +805 -159
- package/lib/seed-demo-data.handler.js.map +1 -1
- package/lib/seed-demo-data.handler.mjs +8 -4
- package/package.json +3 -3
- package/lib/chunk-6HGSR3TG.mjs +0 -123
- package/lib/chunk-6HGSR3TG.mjs.map +0 -1
- package/lib/chunk-E2OWEBBH.mjs.map +0 -1
- package/lib/chunk-FDBBTNCI.mjs.map +0 -1
- package/lib/chunk-Y4RGUAM2.mjs.map +0 -1
- /package/lib/{chunk-Z4PZSLYY.mjs.map → chunk-3M4QTQH6.mjs.map} +0 -0
- /package/lib/{chunk-XNUCKVSE.mjs.map → chunk-7GMTHOYF.mjs.map} +0 -0
- /package/lib/{chunk-EBB4RNUG.mjs.map → chunk-PIQISEGW.mjs.map} +0 -0
|
@@ -91,6 +91,25 @@ declare const seedDemoGraph: (params: {
|
|
|
91
91
|
devUsers: ReadonlyArray<DemoDevUser>;
|
|
92
92
|
cognito: CognitoProvisioner;
|
|
93
93
|
onSiteTesters?: ReadonlyArray<OnSiteTester>;
|
|
94
|
+
/**
|
|
95
|
+
* ADR-028 counter-reconciliation seam (#1345). The seed writes
|
|
96
|
+
* canonical Tenant / Workspace / Membership / RoleAssignment rows via
|
|
97
|
+
* the create operations, which only *publish* counter-change events.
|
|
98
|
+
* In the seed Lambda the control event bus is unset (so the publisher
|
|
99
|
+
* is a no-op) and no consumer applies the deltas synchronously, so the
|
|
100
|
+
* denormalized counters (`usersInTenant`, `workspacesInTenant`,
|
|
101
|
+
* `tenantsForUser`, `workspacesForUser`, `usersInWorkspace`, …) would
|
|
102
|
+
* stay `0`. After the control-plane phases land, this recomputes every
|
|
103
|
+
* counter from canonical data with an absolute `SET`, so seeded counts
|
|
104
|
+
* are correct without relying on the async event path. Idempotent on
|
|
105
|
+
* re-seed (recompute-from-canonical, never increment), so a re-fire
|
|
106
|
+
* never double-counts.
|
|
107
|
+
*
|
|
108
|
+
* Injected for tests; defaults to the real
|
|
109
|
+
* {@link reconcileAllCountersOperation} the on-demand reconciliation
|
|
110
|
+
* job uses.
|
|
111
|
+
*/
|
|
112
|
+
reconcileCounters?: () => Promise<unknown>;
|
|
94
113
|
}) => Promise<void>;
|
|
95
114
|
/**
|
|
96
115
|
* Test-visible orchestrator. The production `handler` calls this with
|
|
@@ -91,6 +91,25 @@ declare const seedDemoGraph: (params: {
|
|
|
91
91
|
devUsers: ReadonlyArray<DemoDevUser>;
|
|
92
92
|
cognito: CognitoProvisioner;
|
|
93
93
|
onSiteTesters?: ReadonlyArray<OnSiteTester>;
|
|
94
|
+
/**
|
|
95
|
+
* ADR-028 counter-reconciliation seam (#1345). The seed writes
|
|
96
|
+
* canonical Tenant / Workspace / Membership / RoleAssignment rows via
|
|
97
|
+
* the create operations, which only *publish* counter-change events.
|
|
98
|
+
* In the seed Lambda the control event bus is unset (so the publisher
|
|
99
|
+
* is a no-op) and no consumer applies the deltas synchronously, so the
|
|
100
|
+
* denormalized counters (`usersInTenant`, `workspacesInTenant`,
|
|
101
|
+
* `tenantsForUser`, `workspacesForUser`, `usersInWorkspace`, …) would
|
|
102
|
+
* stay `0`. After the control-plane phases land, this recomputes every
|
|
103
|
+
* counter from canonical data with an absolute `SET`, so seeded counts
|
|
104
|
+
* are correct without relying on the async event path. Idempotent on
|
|
105
|
+
* re-seed (recompute-from-canonical, never increment), so a re-fire
|
|
106
|
+
* never double-counts.
|
|
107
|
+
*
|
|
108
|
+
* Injected for tests; defaults to the real
|
|
109
|
+
* {@link reconcileAllCountersOperation} the on-demand reconciliation
|
|
110
|
+
* job uses.
|
|
111
|
+
*/
|
|
112
|
+
reconcileCounters?: () => Promise<unknown>;
|
|
94
113
|
}) => Promise<void>;
|
|
95
114
|
/**
|
|
96
115
|
* Test-visible orchestrator. The production `handler` calls this with
|