dynamo-document-builder 0.4.0 → 0.5.0

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.
@@ -0,0 +1,59 @@
1
+ 'use strict';
2
+
3
+ var tslib_es6 = require('../node_modules/tslib/tslib.es6.cjs');
4
+ var internalConstants = require('../internal-constants.cjs');
5
+ var libDynamodb = require('@aws-sdk/lib-dynamodb');
6
+ var projections_projectionParser = require('../projections/projection-parser.cjs');
7
+ var pMap = require('p-map');
8
+
9
+ var _BatchProjectedGet_config;
10
+ class BatchProjectedGet {
11
+ constructor(config) {
12
+ _BatchProjectedGet_config.set(this, void 0);
13
+ tslib_es6.__classPrivateFieldSet(this, _BatchProjectedGet_config, config, "f");
14
+ }
15
+ execute(entity) {
16
+ return tslib_es6.__awaiter(this, void 0, void 0, function* () {
17
+ var _a, _b, _c, _d, _e, _f, _g, _h;
18
+ const { projectionExpression, attributeExpressionMap } = projections_projectionParser.parseProjection(tslib_es6.__classPrivateFieldGet(this, _BatchProjectedGet_config, "f").projection);
19
+ const batchGet = new libDynamodb.BatchGetCommand({
20
+ RequestItems: {
21
+ [entity.table.tableName]: {
22
+ Keys: tslib_es6.__classPrivateFieldGet(this, _BatchProjectedGet_config, "f").keys.map(key => entity.buildPrimaryKey(key)),
23
+ ConsistentRead: (_a = tslib_es6.__classPrivateFieldGet(this, _BatchProjectedGet_config, "f").consistent) !== null && _a !== void 0 ? _a : false,
24
+ ProjectionExpression: projectionExpression,
25
+ ExpressionAttributeNames: attributeExpressionMap.toDynamoAttributeNames(),
26
+ },
27
+ },
28
+ ReturnConsumedCapacity: tslib_es6.__classPrivateFieldGet(this, _BatchProjectedGet_config, "f").returnConsumedCapacity,
29
+ });
30
+ const batchGetResult = yield entity.table.documentClient.send(batchGet, {
31
+ abortSignal: (_b = tslib_es6.__classPrivateFieldGet(this, _BatchProjectedGet_config, "f").abortController) === null || _b === void 0 ? void 0 : _b.signal,
32
+ requestTimeout: tslib_es6.__classPrivateFieldGet(this, _BatchProjectedGet_config, "f").timeoutMs,
33
+ });
34
+ const rawItems = (_d = (_c = batchGetResult.Responses) === null || _c === void 0 ? void 0 : _c[entity.table.tableName]) !== null && _d !== void 0 ? _d : [];
35
+ let items = [];
36
+ if (rawItems.length > 0) {
37
+ if (tslib_es6.__classPrivateFieldGet(this, _BatchProjectedGet_config, "f").skipValidation) {
38
+ items = rawItems;
39
+ }
40
+ else {
41
+ items = yield pMap(rawItems, item => tslib_es6.__classPrivateFieldGet(this, _BatchProjectedGet_config, "f").projectionSchema.parseAsync(item), {
42
+ concurrency: internalConstants.BATCH_GET_VALIDATION_CONCURRENCY,
43
+ signal: (_e = tslib_es6.__classPrivateFieldGet(this, _BatchProjectedGet_config, "f").abortController) === null || _e === void 0 ? void 0 : _e.signal,
44
+ });
45
+ }
46
+ }
47
+ return {
48
+ items,
49
+ unprocessedKeys: (_g = (_f = batchGetResult.UnprocessedKeys) === null || _f === void 0 ? void 0 : _f[entity.table.tableName]) === null || _g === void 0 ? void 0 : _g.Keys,
50
+ responseMetadata: batchGetResult.$metadata,
51
+ consumedCapacity: (_h = batchGetResult.ConsumedCapacity) === null || _h === void 0 ? void 0 : _h[0],
52
+ };
53
+ });
54
+ }
55
+ }
56
+ _BatchProjectedGet_config = new WeakMap();
57
+
58
+ exports.BatchProjectedGet = BatchProjectedGet;
59
+ //# sourceMappingURL=batch-projected-get.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batch-projected-get.cjs","sources":["../../src/commands/batch-projected-get.ts"],"sourcesContent":[null],"names":["__classPrivateFieldSet","parseProjection","__classPrivateFieldGet","BatchGetCommand","BATCH_GET_VALIDATION_CONCURRENCY"],"mappings":";;;;;;;;;MAyBa,iBAAiB,CAAA;AAK5B,IAAA,WAAA,CAAY,MAAyD,EAAA;QAFrE,yBAAA,CAAA,GAAA,CAAA,IAAA,EAAA,MAAA,CAAA;AAGE,QAAAA,gCAAA,CAAA,IAAI,EAAA,yBAAA,E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,CAAG,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAI,EAAE;YACzE,IAAI,KAAK,GAA0C,EAAE;AAErD,YAAA,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;AACvB,gBAAA,IAAIA,iCAAA,IAAI,EAAA,yBAAA,EAAA,GAAA,CAAQ,CAAC,cAAc,EAAE;oBAC/B,KAAK,GAAG,QAAiD;gBAC3D;qBAAO;oBACL,KAAK,GAAG,MAAM,IAAI,CAAC,QAAQ,EAAE,IAAI,IAAIA,iCAAA,IAAI,EAAA,yBAAA,EAAA,GAAA,CAAQ,CAAC,gBAAgB,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE;AACnF,wBAAA,WAAW,EAAEE,kDAAgC;wBAC7C,MAAM,EAAE,MAAAF,gCAAA,CAAA,IAAI,iCAAQ,CAAC,eAAe,0CAAE,MAAM;AAC7C,qBAAA,CAAC;gBACJ;YACF;YAEA,OAAO;gBACL,KAAK;AACL,gBAAA,eAAe,EAAE,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,cAAc,CAAC,eAAe,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAG,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,0CAAE,IAE9D;gBACb,gBAAgB,EAAE,cAAc,CAAC,SAAS;AAC1C,gBAAA,gBAAgB,EAAE,CAAA,EAAA,GAAA,cAAc,CAAC,gBAAgB,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAG,CAAC,CAAC;aACvD;QACH,CAAC,CAAA;AAAA,IAAA;AACF;;;;;"}
@@ -0,0 +1,24 @@
1
+ import { BaseConfig, BaseResult, BaseCommand } from './base-command.js';
2
+ import { DynamoEntity } from '../core/entity.js';
3
+ import { EntitySchema } from '../core/core-types.js';
4
+ import { Projection } from '../projections/projection-types.js';
5
+ import { ZodObject } from 'zod/v4';
6
+
7
+ type BatchProjectedGetConfig<Schema extends ZodObject, ProjectionSchema extends ZodObject> = BaseConfig & {
8
+ keys: Array<Partial<EntitySchema<Schema>>>;
9
+ consistent?: boolean;
10
+ projection: Projection;
11
+ projectionSchema: ProjectionSchema;
12
+ };
13
+ type BatchProjectedGetResult<ProjectionSchema extends ZodObject> = BaseResult & {
14
+ items: Array<EntitySchema<ProjectionSchema>>;
15
+ unprocessedKeys?: Array<Partial<EntitySchema<ProjectionSchema>>>;
16
+ };
17
+ declare class BatchProjectedGet<Schema extends ZodObject, ProjectionSchema extends ZodObject> implements BaseCommand<BatchProjectedGetResult<ProjectionSchema>, Schema> {
18
+ #private;
19
+ constructor(config: BatchProjectedGetConfig<Schema, ProjectionSchema>);
20
+ execute(entity: DynamoEntity<Schema>): Promise<BatchProjectedGetResult<ProjectionSchema>>;
21
+ }
22
+
23
+ export { BatchProjectedGet };
24
+ export type { BatchProjectedGetConfig, BatchProjectedGetResult };
@@ -0,0 +1,57 @@
1
+ import { __classPrivateFieldSet, __awaiter, __classPrivateFieldGet } from '../node_modules/tslib/tslib.es6.mjs';
2
+ import { BATCH_GET_VALIDATION_CONCURRENCY } from '../internal-constants.mjs';
3
+ import { BatchGetCommand } from '@aws-sdk/lib-dynamodb';
4
+ import { parseProjection } from '../projections/projection-parser.mjs';
5
+ import pMap from 'p-map';
6
+
7
+ var _BatchProjectedGet_config;
8
+ class BatchProjectedGet {
9
+ constructor(config) {
10
+ _BatchProjectedGet_config.set(this, void 0);
11
+ __classPrivateFieldSet(this, _BatchProjectedGet_config, config, "f");
12
+ }
13
+ execute(entity) {
14
+ return __awaiter(this, void 0, void 0, function* () {
15
+ var _a, _b, _c, _d, _e, _f, _g, _h;
16
+ const { projectionExpression, attributeExpressionMap } = parseProjection(__classPrivateFieldGet(this, _BatchProjectedGet_config, "f").projection);
17
+ const batchGet = new BatchGetCommand({
18
+ RequestItems: {
19
+ [entity.table.tableName]: {
20
+ Keys: __classPrivateFieldGet(this, _BatchProjectedGet_config, "f").keys.map(key => entity.buildPrimaryKey(key)),
21
+ ConsistentRead: (_a = __classPrivateFieldGet(this, _BatchProjectedGet_config, "f").consistent) !== null && _a !== void 0 ? _a : false,
22
+ ProjectionExpression: projectionExpression,
23
+ ExpressionAttributeNames: attributeExpressionMap.toDynamoAttributeNames(),
24
+ },
25
+ },
26
+ ReturnConsumedCapacity: __classPrivateFieldGet(this, _BatchProjectedGet_config, "f").returnConsumedCapacity,
27
+ });
28
+ const batchGetResult = yield entity.table.documentClient.send(batchGet, {
29
+ abortSignal: (_b = __classPrivateFieldGet(this, _BatchProjectedGet_config, "f").abortController) === null || _b === void 0 ? void 0 : _b.signal,
30
+ requestTimeout: __classPrivateFieldGet(this, _BatchProjectedGet_config, "f").timeoutMs,
31
+ });
32
+ const rawItems = (_d = (_c = batchGetResult.Responses) === null || _c === void 0 ? void 0 : _c[entity.table.tableName]) !== null && _d !== void 0 ? _d : [];
33
+ let items = [];
34
+ if (rawItems.length > 0) {
35
+ if (__classPrivateFieldGet(this, _BatchProjectedGet_config, "f").skipValidation) {
36
+ items = rawItems;
37
+ }
38
+ else {
39
+ items = yield pMap(rawItems, item => __classPrivateFieldGet(this, _BatchProjectedGet_config, "f").projectionSchema.parseAsync(item), {
40
+ concurrency: BATCH_GET_VALIDATION_CONCURRENCY,
41
+ signal: (_e = __classPrivateFieldGet(this, _BatchProjectedGet_config, "f").abortController) === null || _e === void 0 ? void 0 : _e.signal,
42
+ });
43
+ }
44
+ }
45
+ return {
46
+ items,
47
+ unprocessedKeys: (_g = (_f = batchGetResult.UnprocessedKeys) === null || _f === void 0 ? void 0 : _f[entity.table.tableName]) === null || _g === void 0 ? void 0 : _g.Keys,
48
+ responseMetadata: batchGetResult.$metadata,
49
+ consumedCapacity: (_h = batchGetResult.ConsumedCapacity) === null || _h === void 0 ? void 0 : _h[0],
50
+ };
51
+ });
52
+ }
53
+ }
54
+ _BatchProjectedGet_config = new WeakMap();
55
+
56
+ export { BatchProjectedGet };
57
+ //# sourceMappingURL=batch-projected-get.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batch-projected-get.mjs","sources":["../../src/commands/batch-projected-get.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;MAyBa,iBAAiB,CAAA;AAK5B,IAAA,WAAA,CAAY,MAAyD,EAAA;QAFrE,yBAAA,CAAA,GAAA,CAAA,IAAA,EAAA,MAAA,CAAA;AAGE,QAAA,sBAAA,CAAA,IAAI,EAAA,yBAAA,EAAW,MAAM,EAAA,GAAA,CAAA;IACvB;AAEa,IAAA,OAAO,CAClB,MAA4B,EAAA;;;AAE5B,YAAA,MAAM,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,GAAG,eAAe,CACtE,sBAAA,CAAA,IAAI,EAAA,yBAAA,EAAA,GAAA,CAAQ,CAAC,UAAU,CACxB;AAED,YAAA,MAAM,QAAQ,GAAG,IAAI,eAAe,CAAC;AACnC,gBAAA,YAAY,EAAE;AACZ,oBAAA,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,GAAG;AACxB,wBAAA,IAAI,EAAE,sBAAA,CAAA,IAAI,iCAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,MAAM,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;wBAC/D,cAAc,EAAE,MAAA,sBAAA,CAAA,IAAI,iCAAQ,CAAC,UAAU,mCAAI,KAAK;AAChD,wBAAA,oBAAoB,EAAE,oBAAoB;AAC1C,wBAAA,wBAAwB,EAAE,sBAAsB,CAAC,sBAAsB,EAAE;AAC1E,qBAAA;AACF,iBAAA;AACD,gBAAA,sBAAsB,EAAE,sBAAA,CAAA,IAAI,EAAA,yBAAA,EAAA,GAAA,CAAQ,CAAC,sBAAsB;AAC5D,aAAA,CAAC;AAEF,YAAA,MAAM,cAAc,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,EAAE;gBACtE,WAAW,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A,GAAA,cAAc,CAAC,gBAAgB,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAG,CAAC,CAAC;aACvD;QACH,CAAC,CAAA;AAAA,IAAA;AACF;;;;;"}
@@ -7,6 +7,7 @@ var commands_projectedGet = require('./projected-get.cjs');
7
7
  var commands_projectedQuery = require('./projected-query.cjs');
8
8
  var commands_projectedScan = require('./projected-scan.cjs');
9
9
  var commands_batchGet = require('./batch-get.cjs');
10
+ var commands_batchProjectedGet = require('./batch-projected-get.cjs');
10
11
  var commands_transactGet = require('./transact-get.cjs');
11
12
  var commands_put = require('./put.cjs');
12
13
  var commands_update = require('./update.cjs');
@@ -27,6 +28,7 @@ exports.ProjectedGet = commands_projectedGet.ProjectedGet;
27
28
  exports.ProjectedQuery = commands_projectedQuery.ProjectedQuery;
28
29
  exports.ProjectedScan = commands_projectedScan.ProjectedScan;
29
30
  exports.BatchGet = commands_batchGet.BatchGet;
31
+ exports.BatchProjectedGet = commands_batchProjectedGet.BatchProjectedGet;
30
32
  exports.TransactGet = commands_transactGet.TransactGet;
31
33
  exports.Put = commands_put.Put;
32
34
  exports.Update = commands_update.Update;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -6,6 +6,7 @@ export { ProjectedGet, ProjectedGetConfig, ProjectedGetResult } from './projecte
6
6
  export { ProjectedQuery, ProjectedQueryConfig, ProjectedQueryResult } from './projected-query.js';
7
7
  export { ProjectedScan, ProjectedScanConfig, ProjectedScanResult } from './projected-scan.js';
8
8
  export { BatchGet, BatchGetConfig, BatchGetResult } from './batch-get.js';
9
+ export { BatchProjectedGet, BatchProjectedGetConfig, BatchProjectedGetResult } from './batch-projected-get.js';
9
10
  export { TransactGet, TransactGetConfig, TransactGetResult } from './transact-get.js';
10
11
  export { Put, PutConfig, PutResult } from './put.js';
11
12
  export { Update, UpdateConfig, UpdateResult } from './update.js';
@@ -5,6 +5,7 @@ export { ProjectedGet } from './projected-get.mjs';
5
5
  export { ProjectedQuery } from './projected-query.mjs';
6
6
  export { ProjectedScan } from './projected-scan.mjs';
7
7
  export { BatchGet } from './batch-get.mjs';
8
+ export { BatchProjectedGet } from './batch-projected-get.mjs';
8
9
  export { TransactGet } from './transact-get.mjs';
9
10
  export { Put } from './put.mjs';
10
11
  export { Update } from './update.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
package/dist/index.cjs CHANGED
@@ -8,6 +8,7 @@ var commands_projectedGet = require('./commands/projected-get.cjs');
8
8
  var commands_projectedQuery = require('./commands/projected-query.cjs');
9
9
  var commands_projectedScan = require('./commands/projected-scan.cjs');
10
10
  var commands_batchGet = require('./commands/batch-get.cjs');
11
+ var commands_batchProjectedGet = require('./commands/batch-projected-get.cjs');
11
12
  var commands_transactGet = require('./commands/transact-get.cjs');
12
13
  var commands_put = require('./commands/put.cjs');
13
14
  var commands_update = require('./commands/update.cjs');
@@ -61,6 +62,7 @@ exports.ProjectedGet = commands_projectedGet.ProjectedGet;
61
62
  exports.ProjectedQuery = commands_projectedQuery.ProjectedQuery;
62
63
  exports.ProjectedScan = commands_projectedScan.ProjectedScan;
63
64
  exports.BatchGet = commands_batchGet.BatchGet;
65
+ exports.BatchProjectedGet = commands_batchProjectedGet.BatchProjectedGet;
64
66
  exports.TransactGet = commands_transactGet.TransactGet;
65
67
  exports.Put = commands_put.Put;
66
68
  exports.Update = commands_update.Update;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index.d.ts CHANGED
@@ -7,6 +7,7 @@ export { ProjectedGet, ProjectedGetConfig, ProjectedGetResult } from './commands
7
7
  export { ProjectedQuery, ProjectedQueryConfig, ProjectedQueryResult } from './commands/projected-query.js';
8
8
  export { ProjectedScan, ProjectedScanConfig, ProjectedScanResult } from './commands/projected-scan.js';
9
9
  export { BatchGet, BatchGetConfig, BatchGetResult } from './commands/batch-get.js';
10
+ export { BatchProjectedGet, BatchProjectedGetConfig, BatchProjectedGetResult } from './commands/batch-projected-get.js';
10
11
  export { TransactGet, TransactGetConfig, TransactGetResult } from './commands/transact-get.js';
11
12
  export { Put, PutConfig, PutResult } from './commands/put.js';
12
13
  export { Update, UpdateConfig, UpdateResult } from './commands/update.js';
package/dist/index.mjs CHANGED
@@ -6,6 +6,7 @@ export { ProjectedGet } from './commands/projected-get.mjs';
6
6
  export { ProjectedQuery } from './commands/projected-query.mjs';
7
7
  export { ProjectedScan } from './commands/projected-scan.mjs';
8
8
  export { BatchGet } from './commands/batch-get.mjs';
9
+ export { BatchProjectedGet } from './commands/batch-projected-get.mjs';
9
10
  export { TransactGet } from './commands/transact-get.mjs';
10
11
  export { Put } from './commands/put.mjs';
11
12
  export { Update } from './commands/update.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dynamo-document-builder",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "DynamoDB single table design and data validation made easy using TypeScript and Zod ⚡️",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",