@openhi/constructs 0.0.126 → 0.0.128
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-ZHMHLK3S.mjs → chunk-7BQHLC7U.mjs} +3 -3
- package/lib/{chunk-7WDX6GPO.mjs → chunk-AWYZJFPL.mjs} +3 -3
- package/lib/{chunk-AHYQFT4N.mjs → chunk-E6MCKJVS.mjs} +3 -3
- package/lib/{chunk-W4KR4CSL.mjs → chunk-M7Y3BOQW.mjs} +2 -2
- package/lib/chunk-M7Y3BOQW.mjs.map +1 -0
- package/lib/{chunk-U7L7T4XU.mjs → chunk-MVQWAIMC.mjs} +2 -2
- package/lib/{chunk-U7L7T4XU.mjs.map → chunk-MVQWAIMC.mjs.map} +1 -1
- package/lib/{chunk-VXX4I3EF.mjs → chunk-SVXLZCF7.mjs} +1 -1
- package/lib/{chunk-VXX4I3EF.mjs.map → chunk-SVXLZCF7.mjs.map} +1 -1
- package/lib/{chunk-YYRWDEG4.mjs → chunk-UT7ADSEJ.mjs} +3 -3
- package/lib/{chunk-YYRWDEG4.mjs.map → chunk-UT7ADSEJ.mjs.map} +1 -1
- package/lib/{chunk-6NBGYGFL.mjs → chunk-VZCPGQXA.mjs} +13 -12
- package/lib/chunk-VZCPGQXA.mjs.map +1 -0
- package/lib/{chunk-WXS3PUHR.mjs → chunk-WGA43MMY.mjs} +4 -4
- package/lib/{chunk-WQWFVEVX.mjs → chunk-X5E4YJGZ.mjs} +2 -2
- package/lib/{chunk-KO64HPWQ.mjs → chunk-ZWSGM6PZ.mjs} +2 -2
- package/lib/delete-chunk.handler.d.mts +1 -1
- package/lib/delete-chunk.handler.d.ts +1 -1
- package/lib/delete-chunk.handler.js +12 -11
- package/lib/delete-chunk.handler.js.map +1 -1
- package/lib/delete-chunk.handler.mjs +2 -2
- package/lib/delete-chunk.handler.mjs.map +1 -1
- package/lib/{events-BfrkMoBD.d.mts → events-COI0BuMM.d.mts} +1 -1
- package/lib/{events-BfrkMoBD.d.ts → events-COI0BuMM.d.ts} +1 -1
- package/lib/index.d.mts +55 -12
- package/lib/index.d.ts +56 -13
- package/lib/index.js +127 -81
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +118 -71
- package/lib/index.mjs.map +1 -1
- package/lib/list-chunks.handler.d.mts +1 -1
- package/lib/list-chunks.handler.d.ts +1 -1
- package/lib/list-chunks.handler.js +12 -11
- package/lib/list-chunks.handler.js.map +1 -1
- package/lib/list-chunks.handler.mjs +2 -2
- package/lib/list-chunks.handler.mjs.map +1 -1
- package/lib/platform-deploy-bridge.handler.d.mts +1 -1
- package/lib/platform-deploy-bridge.handler.d.ts +1 -1
- package/lib/platform-deploy-bridge.handler.js.map +1 -1
- package/lib/platform-deploy-bridge.handler.mjs +1 -1
- package/lib/pre-token-generation.handler.js +12 -11
- package/lib/pre-token-generation.handler.js.map +1 -1
- package/lib/pre-token-generation.handler.mjs +4 -4
- package/lib/provision-default-workspace.handler.js +12 -11
- package/lib/provision-default-workspace.handler.js.map +1 -1
- package/lib/provision-default-workspace.handler.mjs +4 -4
- package/lib/rename-list-targets.handler.d.mts +1 -1
- package/lib/rename-list-targets.handler.d.ts +1 -1
- package/lib/rename-list-targets.handler.js +12 -11
- package/lib/rename-list-targets.handler.js.map +1 -1
- package/lib/rename-list-targets.handler.mjs +2 -2
- package/lib/rename-list-targets.handler.mjs.map +1 -1
- package/lib/rename-rewrite-chunk.handler.d.mts +1 -1
- package/lib/rename-rewrite-chunk.handler.d.ts +1 -1
- package/lib/rename-rewrite-chunk.handler.js +12 -11
- package/lib/rename-rewrite-chunk.handler.js.map +1 -1
- package/lib/rename-rewrite-chunk.handler.mjs +2 -2
- package/lib/rename-rewrite-chunk.handler.mjs.map +1 -1
- package/lib/rest-api-lambda.handler.js +12 -11
- package/lib/rest-api-lambda.handler.js.map +1 -1
- package/lib/rest-api-lambda.handler.mjs +7 -7
- package/lib/rest-api-lambda.handler.mjs.map +1 -1
- package/lib/seed-demo-data.handler.js +12 -11
- package/lib/seed-demo-data.handler.js.map +1 -1
- package/lib/seed-demo-data.handler.mjs +5 -5
- package/lib/seed-system-data.handler.js +12 -11
- package/lib/seed-system-data.handler.js.map +1 -1
- package/lib/seed-system-data.handler.mjs +2 -2
- package/lib/static-hosting.viewer-request-handler.d.mts +1 -1
- package/lib/static-hosting.viewer-request-handler.d.ts +1 -1
- package/lib/static-hosting.viewer-request-handler.js.map +1 -1
- package/lib/static-hosting.viewer-request-handler.mjs.map +1 -1
- package/package.json +7 -7
- package/lib/chunk-6NBGYGFL.mjs.map +0 -1
- package/lib/chunk-W4KR4CSL.mjs.map +0 -1
- /package/lib/{chunk-ZHMHLK3S.mjs.map → chunk-7BQHLC7U.mjs.map} +0 -0
- /package/lib/{chunk-7WDX6GPO.mjs.map → chunk-AWYZJFPL.mjs.map} +0 -0
- /package/lib/{chunk-AHYQFT4N.mjs.map → chunk-E6MCKJVS.mjs.map} +0 -0
- /package/lib/{chunk-WXS3PUHR.mjs.map → chunk-WGA43MMY.mjs.map} +0 -0
- /package/lib/{chunk-WQWFVEVX.mjs.map → chunk-X5E4YJGZ.mjs.map} +0 -0
- /package/lib/{chunk-KO64HPWQ.mjs.map → chunk-ZWSGM6PZ.mjs.map} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
rewriteRenameCascadeChunkOperation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-X5E4YJGZ.mjs";
|
|
4
4
|
import "./chunk-QJDHVMKT.mjs";
|
|
5
5
|
import "./chunk-FYHBHHWK.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-VZCPGQXA.mjs";
|
|
7
7
|
import "./chunk-TRY7JGWO.mjs";
|
|
8
8
|
import "./chunk-LZOMFHX3.mjs";
|
|
9
9
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/workflows/control-plane/rename-cascade/rename-rewrite-chunk.handler.ts"],"sourcesContent":["/**\n * Cascade Step Functions Distributed-Map iteration handler. Receives\n * one chunk of
|
|
1
|
+
{"version":3,"sources":["../src/workflows/control-plane/rename-cascade/rename-rewrite-chunk.handler.ts"],"sourcesContent":["/**\n * Cascade Step Functions Distributed-Map iteration handler. Receives\n * one chunk of \\<=50 rewrite targets from the list-targets step and\n * issues a single `TransactWriteItems` via `executeMultiWrite` (#1010).\n *\n * Each target maps to either:\n *\n * - **SK rewrite** — `delete oldKey` + `put newItem` pair (2 transact\n * items). Used when the SK encodes the renamed normalized name.\n * - **Attr-only update** — single `put newItem` overwrite at the same\n * key. Used when only the denormalized display-name attribute\n * changes (the SK is rename-stable).\n *\n * Idempotency: the chunk's `chunkToken` flows through to ElectroDB's\n * `ClientRequestToken` so a Map iteration replayed by Step Functions\n * retry lands on the same transaction id. The state machine's `Catch`\n * block also absorbs `DynamoDB.TransactionCanceledException` as a no-op\n * success — common on partial-replay when the prior run already\n * rewrote the rows (the `vid` race is \"rewrite loses to a later\n * write\" per TR-023 idempotency rule).\n */\n\nimport type { RenameCascadeChunkInput } from \"./events\";\nimport { rewriteRenameCascadeChunkOperation } from \"../../../data/operations/control/rename-cascade/rename-cascade-rewrite-chunk-operation\";\n\nexport interface RewriteChunkOutput {\n readonly entityType: string;\n readonly entityId: string;\n readonly tenantId?: string;\n readonly targetsRewritten: number;\n readonly transactItemCount: number;\n}\n\nexport const handler = async (\n input: RenameCascadeChunkInput,\n): Promise<RewriteChunkOutput> => {\n const result = await rewriteRenameCascadeChunkOperation({\n targets: input.targets,\n token: input.chunkToken,\n });\n\n return {\n entityType: input.entityType,\n entityId: input.entityId,\n tenantId: input.tenantId,\n targetsRewritten: result.targetsRewritten,\n transactItemCount: result.transactItemCount,\n };\n};\n"],"mappings":";;;;;;;;;;AAiCO,IAAM,UAAU,OACrB,UACgC;AAChC,QAAM,SAAS,MAAM,mCAAmC;AAAA,IACtD,SAAS,MAAM;AAAA,IACf,OAAO,MAAM;AAAA,EACf,CAAC;AAED,SAAO;AAAA,IACL,YAAY,MAAM;AAAA,IAClB,UAAU,MAAM;AAAA,IAChB,UAAU,MAAM;AAAA,IAChB,kBAAkB,OAAO;AAAA,IACzB,mBAAmB,OAAO;AAAA,EAC5B;AACF;","names":[]}
|
|
@@ -568,11 +568,11 @@ var ConfigurationUserProjectionEntity = new import_electrodb2.Entity({
|
|
|
568
568
|
},
|
|
569
569
|
indexes: {
|
|
570
570
|
/**
|
|
571
|
-
* Base table: PK = USER#ID
|
|
572
|
-
* single `Query(PK = USER#ID#<userId>, SK begins_with
|
|
573
|
-
*
|
|
574
|
-
*
|
|
575
|
-
*
|
|
571
|
+
* Base table: PK = USER#ID#\<userId\>, SK = operation-supplied. A
|
|
572
|
+
* single `Query(PK = USER#ID#<userId>, SK begins_with 'CONFIGURATION#')`
|
|
573
|
+
* returns the user's user-scoped Configurations sorted by
|
|
574
|
+
* `<normalizedConfigName>` (then `<configurationId>` as the
|
|
575
|
+
* tiebreaker).
|
|
576
576
|
*/
|
|
577
577
|
record: {
|
|
578
578
|
pk: {
|
|
@@ -960,11 +960,12 @@ var MembershipUserProjectionEntity = new import_electrodb5.Entity({
|
|
|
960
960
|
},
|
|
961
961
|
indexes: {
|
|
962
962
|
/**
|
|
963
|
-
* Base table: PK = USER#ID
|
|
963
|
+
* Base table: PK = USER#ID#\<userId\>, SK = operation-supplied.
|
|
964
964
|
* Both pattern #3 and pattern #4 use this same index — the SK string
|
|
965
965
|
* encodes the lane discriminator (`MEMBERSHIP#TENANT#…` vs
|
|
966
|
-
* `MEMBERSHIP#WORKSPACE#…`) so a single
|
|
967
|
-
* SK begins_with 'MEMBERSHIP#')`
|
|
966
|
+
* `MEMBERSHIP#WORKSPACE#…`) so a single
|
|
967
|
+
* `Query(PK = USER#ID#<userId>, SK begins_with 'MEMBERSHIP#')`
|
|
968
|
+
* returns both lanes interleaved.
|
|
968
969
|
*/
|
|
969
970
|
record: {
|
|
970
971
|
pk: {
|
|
@@ -1467,12 +1468,12 @@ var RoleAssignmentUserProjectionEntity = new import_electrodb9.Entity({
|
|
|
1467
1468
|
},
|
|
1468
1469
|
indexes: {
|
|
1469
1470
|
/**
|
|
1470
|
-
* Base table: PK = USER#ID
|
|
1471
|
+
* Base table: PK = USER#ID#\<userId\>, SK = operation-supplied. Both
|
|
1471
1472
|
* sub-lanes (tenant-level and workspace-level) use this same index —
|
|
1472
1473
|
* the SK string encodes the lane discriminator
|
|
1473
1474
|
* (`ROLEASSIGNMENT#TENANT#…` vs `ROLEASSIGNMENT#WORKSPACE#…`) so a
|
|
1474
|
-
* single `Query(PK = USER#ID#<userId>, SK begins_with
|
|
1475
|
-
*
|
|
1475
|
+
* single `Query(PK = USER#ID#<userId>, SK begins_with 'ROLEASSIGNMENT#')`
|
|
1476
|
+
* returns both lanes interleaved.
|
|
1476
1477
|
*/
|
|
1477
1478
|
record: {
|
|
1478
1479
|
pk: {
|