@openhi/constructs 0.0.188 → 0.0.190
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-7GMTHOYF.mjs → chunk-2TLJKOJL.mjs} +2 -2
- package/lib/{chunk-VQY57NOV.mjs → chunk-3PS5R367.mjs} +2 -2
- package/lib/{chunk-DIVYB6GD.mjs → chunk-4WFHISV3.mjs} +4 -4
- package/lib/{chunk-3M4QTQH6.mjs → chunk-4YQD4PFR.mjs} +2 -2
- package/lib/{chunk-JJ3AQ6G5.mjs → chunk-63POQTMP.mjs} +2 -2
- package/lib/{chunk-F2LY4TEI.mjs → chunk-7WBLBIQJ.mjs} +4 -4
- package/lib/{chunk-4LQR32D2.mjs → chunk-AYHBFK3Y.mjs} +2 -2
- package/lib/{chunk-PIQISEGW.mjs → chunk-RGE4WDND.mjs} +2 -2
- package/lib/{chunk-V6KLFEHC.mjs → chunk-UWVPF6GB.mjs} +2 -2
- package/lib/{chunk-Q4KQD2NB.mjs → chunk-V6AO5T57.mjs} +9 -2
- package/lib/chunk-V6AO5T57.mjs.map +1 -0
- package/lib/counter-reconciliation.handler.js.map +1 -1
- package/lib/counter-reconciliation.handler.mjs +4 -4
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +8 -8
- 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 +4 -1
- package/lib/provision-default-workspace.handler.js.map +1 -1
- package/lib/provision-default-workspace.handler.mjs +3 -3
- package/lib/rest-api-lambda.handler.js +984 -1
- package/lib/rest-api-lambda.handler.js.map +1 -1
- package/lib/rest-api-lambda.handler.mjs +1020 -8
- package/lib/rest-api-lambda.handler.mjs.map +1 -1
- package/lib/seed-demo-data.handler.js +4 -1
- package/lib/seed-demo-data.handler.js.map +1 -1
- package/lib/seed-demo-data.handler.mjs +7 -7
- package/package.json +1 -1
- package/lib/chunk-Q4KQD2NB.mjs.map +0 -1
- /package/lib/{chunk-7GMTHOYF.mjs.map → chunk-2TLJKOJL.mjs.map} +0 -0
- /package/lib/{chunk-VQY57NOV.mjs.map → chunk-3PS5R367.mjs.map} +0 -0
- /package/lib/{chunk-DIVYB6GD.mjs.map → chunk-4WFHISV3.mjs.map} +0 -0
- /package/lib/{chunk-3M4QTQH6.mjs.map → chunk-4YQD4PFR.mjs.map} +0 -0
- /package/lib/{chunk-JJ3AQ6G5.mjs.map → chunk-63POQTMP.mjs.map} +0 -0
- /package/lib/{chunk-F2LY4TEI.mjs.map → chunk-7WBLBIQJ.mjs.map} +0 -0
- /package/lib/{chunk-4LQR32D2.mjs.map → chunk-AYHBFK3Y.mjs.map} +0 -0
- /package/lib/{chunk-PIQISEGW.mjs.map → chunk-RGE4WDND.mjs.map} +0 -0
- /package/lib/{chunk-V6KLFEHC.mjs.map → chunk-UWVPF6GB.mjs.map} +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listPractitionerRolesOperation,
|
|
3
3
|
listRoleAssignmentsOperation
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-63POQTMP.mjs";
|
|
5
5
|
import {
|
|
6
6
|
listMembershipsOperation
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RGE4WDND.mjs";
|
|
8
8
|
import {
|
|
9
9
|
findUserBySubOperation,
|
|
10
10
|
idFromReference,
|
|
11
11
|
parseUserResource
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UWVPF6GB.mjs";
|
|
13
13
|
import "./chunk-6BB4CRSS.mjs";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-V6AO5T57.mjs";
|
|
15
15
|
import "./chunk-APVVG7BO.mjs";
|
|
16
16
|
import "./chunk-FYHBHHWK.mjs";
|
|
17
17
|
import "./chunk-EUIP2U5F.mjs";
|
|
@@ -3386,9 +3386,12 @@ function compressResource(jsonString, options) {
|
|
|
3386
3386
|
|
|
3387
3387
|
// src/data/operations/data-operations-common.ts
|
|
3388
3388
|
var DATA_ENTITY_SK = "CURRENT";
|
|
3389
|
+
function deriveVid(lastUpdated) {
|
|
3390
|
+
return lastUpdated.replace(/\D/g, "") || Date.now().toString(36);
|
|
3391
|
+
}
|
|
3389
3392
|
async function createDataEntityRecord(entity, tenantId, workspaceId, id, resourceWithAudit, fallbackDate) {
|
|
3390
3393
|
const lastUpdated = resourceWithAudit.meta?.lastUpdated ?? fallbackDate ?? (/* @__PURE__ */ new Date()).toISOString();
|
|
3391
|
-
const vid = lastUpdated
|
|
3394
|
+
const vid = deriveVid(lastUpdated);
|
|
3392
3395
|
const resourceLike = resourceWithAudit;
|
|
3393
3396
|
const summary = JSON.stringify((0, import_types11.extractSummary)(resourceLike));
|
|
3394
3397
|
const gsi1sk = (0, import_types11.extractSortKey)(resourceLike);
|