@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
|
@@ -6844,6 +6844,9 @@ function mergeAuditIntoMeta(meta, audit) {
|
|
|
6844
6844
|
|
|
6845
6845
|
// src/data/operations/data-operations-common.ts
|
|
6846
6846
|
var DATA_ENTITY_SK = "CURRENT";
|
|
6847
|
+
function deriveVid(lastUpdated) {
|
|
6848
|
+
return lastUpdated.replace(/\D/g, "") || Date.now().toString(36);
|
|
6849
|
+
}
|
|
6847
6850
|
var BATCH_GET_MAX_ATTEMPTS = 3;
|
|
6848
6851
|
var BATCH_GET_BASE_BACKOFF_MS = 50;
|
|
6849
6852
|
async function batchGetWithRetry(entity, keys, options) {
|
|
@@ -6914,7 +6917,7 @@ async function dispatchListMode(mode, shardResults, hooks) {
|
|
|
6914
6917
|
}
|
|
6915
6918
|
async function createDataEntityRecord(entity, tenantId, workspaceId, id, resourceWithAudit, fallbackDate) {
|
|
6916
6919
|
const lastUpdated = resourceWithAudit.meta?.lastUpdated ?? fallbackDate ?? (/* @__PURE__ */ new Date()).toISOString();
|
|
6917
|
-
const vid = lastUpdated
|
|
6920
|
+
const vid = deriveVid(lastUpdated);
|
|
6918
6921
|
const resourceLike = resourceWithAudit;
|
|
6919
6922
|
const summary = JSON.stringify((0, import_types3.extractSummary)(resourceLike));
|
|
6920
6923
|
const gsi1sk = (0, import_types3.extractSortKey)(resourceLike);
|