@squiz/db-lib 1.73.0 → 1.75.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +12 -0
- package/lib/AbstractRepository.postgres.integration.spec.d.ts +2 -0
- package/lib/AbstractRepository.postgres.integration.spec.d.ts.map +1 -0
- package/lib/{AbstractRepository.integration.spec.js → AbstractRepository.postgres.integration.spec.js} +1 -1
- package/lib/AbstractRepository.postgres.integration.spec.js.map +1 -0
- package/lib/dynamodb/AbstractDynamoDbRepository.d.ts +3 -7
- package/lib/dynamodb/AbstractDynamoDbRepository.d.ts.map +1 -1
- package/lib/dynamodb/AbstractDynamoDbRepository.js +59 -36
- package/lib/dynamodb/AbstractDynamoDbRepository.js.map +1 -1
- package/lib/dynamodb/AbstractDynamoDbRepository.spec.d.ts +2 -0
- package/lib/dynamodb/AbstractDynamoDbRepository.spec.d.ts.map +1 -1
- package/lib/dynamodb/AbstractDynamoDbRepository.spec.js +214 -2
- package/lib/dynamodb/AbstractDynamoDbRepository.spec.js.map +1 -1
- package/lib/error/UnknownKeyAttributeError.d.ts +6 -0
- package/lib/error/UnknownKeyAttributeError.d.ts.map +1 -0
- package/lib/error/UnknownKeyAttributeError.js +12 -0
- package/lib/error/UnknownKeyAttributeError.js.map +1 -0
- package/package.json +1 -2
- package/src/dynamodb/AbstractDynamoDbRepository.spec.ts +229 -2
- package/src/dynamodb/AbstractDynamoDbRepository.ts +64 -35
- package/src/error/UnknownKeyAttributeError.ts +8 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/lib/AbstractRepository.integration.spec.d.ts +0 -2
- package/lib/AbstractRepository.integration.spec.d.ts.map +0 -1
- package/lib/AbstractRepository.integration.spec.js.map +0 -1
- /package/src/{AbstractRepository.integration.spec.ts → AbstractRepository.postgres.integration.spec.ts} +0 -0
package/CHANGELOG.md
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"AbstractRepository.postgres.integration.spec.d.ts","sourceRoot":"","sources":["../src/AbstractRepository.postgres.integration.spec.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"AbstractRepository.postgres.integration.spec.js","sourceRoot":"","sources":["../src/AbstractRepository.postgres.integration.spec.ts"],"names":[],"mappings":";;AAAA,6DAA0D;AAC1D,2DAAwD;AAWxD,MAAM,QAAQ;IAQZ,YAAY,OAA2B,EAAE;;QACvC,IAAI,CAAC,SAAS,GAAG,MAAA,IAAI,CAAC,SAAS,mCAAI,gBAAgB,CAAC;QACpD,IAAI,CAAC,SAAS,GAAG,MAAA,IAAI,CAAC,SAAS,mCAAI,gBAAgB,CAAC;QACpD,IAAI,CAAC,UAAU,GAAG,MAAA,IAAI,CAAC,UAAU,mCAAI,iBAAiB,CAAC;QACvD,IAAI,CAAC,UAAU,GAAG,MAAA,IAAI,CAAC,UAAU,mCAAI,iBAAiB,CAAC;QACvD,IAAI,CAAC,YAAY,CAAC,GAAG,MAAA,IAAI,CAAC,YAAY,CAAC,mCAAI,iBAAiB,CAAC;QAC7D,IAAI,CAAC,SAAS,GAAG,MAAA,IAAI,CAAC,SAAS,mCAAI,gBAAgB,CAAC;IACtD,CAAC;CACF;AAED,SAAS,cAAc;IACrB,OAAO;QACL,SAAS,EAAE,WAAW;QACtB,SAAS,EAAE,YAAY;QACvB,UAAU,EAAE,aAAa;QACzB,UAAU,EAAE,YAAY;QACxB,YAAY,EAAE,YAAY;QAC1B,SAAS,EAAE,WAAW;KACvB,CAAC;AACJ,CAAC;AAED,MAAM,aAAa,GAAG,MAAM,CAAC,IAAI,CAAC,cAAc,EAAE,CAA2B,CAAC;AAE9E,MAAM,iCAAkC,SAAQ,uCAAuC;CAAG;AAE1F,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAClC,IAAI,EAAkE,CAAC;IACvE,SAAS,CAAC,KAAK,IAAI,EAAE;QACnB,EAAE,GAAG,IAAI,qCAAiB,CACxB,mCAAmC,EACnC,OAAO,CAAC,GAAG,CAAC,8BAA+B,EAC3C,EAAE,EACF,EAA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,QAAQ,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,kCAAkC,CACtG,iEAAiE,CAClE,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
@@ -40,6 +40,7 @@ export type EntityDefinition = {
|
|
40
40
|
keys: TableKeys;
|
41
41
|
indexes: TableIndexes;
|
42
42
|
fieldsAsJsonString: string[];
|
43
|
+
optionalIndexes?: (keyof TableIndexes)[];
|
43
44
|
};
|
44
45
|
export declare abstract class AbstractDynamoDbRepository<SHAPE extends object, DATA_CLASS extends SHAPE> implements Reader<SHAPE>, Writer<SHAPE> {
|
45
46
|
protected tableName: string;
|
@@ -53,6 +54,7 @@ export declare abstract class AbstractDynamoDbRepository<SHAPE extends object, D
|
|
53
54
|
protected keys: TableKeys;
|
54
55
|
protected indexes: TableIndexes;
|
55
56
|
protected keysFormat: KeysFormat;
|
57
|
+
protected optionalIndexes: (keyof TableIndexes)[];
|
56
58
|
protected fieldsAsJsonString: string[];
|
57
59
|
constructor(tableName: string, dbManager: DynamoDbManager<Repositories>, entityName: string, entityDefinition: EntityDefinition, classRef: {
|
58
60
|
new (data?: Record<string, unknown>): DATA_CLASS;
|
@@ -95,7 +97,7 @@ export declare abstract class AbstractDynamoDbRepository<SHAPE extends object, D
|
|
95
97
|
*/
|
96
98
|
deleteItems(items: Partial<SHAPE>[]): Promise<void>;
|
97
99
|
private deleteBatchItems;
|
98
|
-
private
|
100
|
+
private getItemsKeys;
|
99
101
|
/**
|
100
102
|
* Finds all the items matching the partition key or
|
101
103
|
* the gsi key (when gsi index name is specified)
|
@@ -198,12 +200,6 @@ export declare abstract class AbstractDynamoDbRepository<SHAPE extends object, D
|
|
198
200
|
* @throw MissingKeyValuesError
|
199
201
|
*/
|
200
202
|
protected getKey(item: Partial<SHAPE>, attributeName: keyof KeysFormat): string;
|
201
|
-
/**
|
202
|
-
* Whether the given property name is part of the entity's pk/sk string
|
203
|
-
* @param propertyName
|
204
|
-
* @returns boolean
|
205
|
-
*/
|
206
|
-
private isPropertyPartOfKeys;
|
207
203
|
/**
|
208
204
|
* Validate the data matches with "DATA_MODEL"
|
209
205
|
* @param value
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AbstractDynamoDbRepository.d.ts","sourceRoot":"","sources":["../../src/dynamodb/AbstractDynamoDbRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EASjB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,WAAW,EAAE,eAAe,EAA+C,MAAM,IAAI,CAAC;
|
1
|
+
{"version":3,"file":"AbstractDynamoDbRepository.d.ts","sourceRoot":"","sources":["../../src/dynamodb/AbstractDynamoDbRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EASjB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,WAAW,EAAE,eAAe,EAA+C,MAAM,IAAI,CAAC;AAI/F,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,EAAE,aAAa,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IAGzB,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,KAAK,CAAC,EAAE,MAAM,YAAY,CAAC;IAE3B,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAEvB,MAAM,CAAC,EAAE,yBAAyB,CAAC;CACpC,CAAC;AAEF,UAAU,MAAM,CAAC,CAAC;IAChB,UAAU,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;IAC1E,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CA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7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,SAAS,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,MAAM,UAAU,GAAG,MAAM;IAuC/E;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;CAWhC"}
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AbstractDynamoDbRepository = void 0;
|
4
4
|
const __1 = require("..");
|
5
5
|
const InvalidDataFormatError_1 = require("../error/InvalidDataFormatError");
|
6
|
+
const UnknownKeyAttributeError_1 = require("../error/UnknownKeyAttributeError");
|
6
7
|
const MAX_REATTEMPTS = 3;
|
7
8
|
class AbstractDynamoDbRepository {
|
8
9
|
constructor(tableName, dbManager, entityName, entityDefinition, classRef) {
|
@@ -11,6 +12,7 @@ class AbstractDynamoDbRepository {
|
|
11
12
|
this.entityName = entityName;
|
12
13
|
this.entityDefinition = entityDefinition;
|
13
14
|
this.classRef = classRef;
|
15
|
+
this.optionalIndexes = [];
|
14
16
|
this.client = dbManager.client;
|
15
17
|
this.keys = entityDefinition.keys;
|
16
18
|
this.indexes = entityDefinition.indexes;
|
@@ -20,9 +22,13 @@ class AbstractDynamoDbRepository {
|
|
20
22
|
[this.keys.sk.attributeName]: this.keys.sk.format,
|
21
23
|
};
|
22
24
|
Object.keys(this.indexes).forEach((key) => {
|
25
|
+
var _a;
|
23
26
|
const index = this.indexes[key];
|
24
27
|
this.keysFormat[index.pk.attributeName] = index.pk.format;
|
25
28
|
this.keysFormat[index.sk.attributeName] = index.sk.format;
|
29
|
+
if ((_a = entityDefinition.optionalIndexes) === null || _a === void 0 ? void 0 : _a.includes(key)) {
|
30
|
+
this.optionalIndexes.push(key);
|
31
|
+
}
|
26
32
|
});
|
27
33
|
}
|
28
34
|
/**
|
@@ -60,9 +66,10 @@ class AbstractDynamoDbRepository {
|
|
60
66
|
async getItems(items) {
|
61
67
|
// this is the maximum items allowed by BatchGetItem()
|
62
68
|
const batchSize = 100;
|
69
|
+
const keys = this.getItemsKeys(items);
|
63
70
|
let result = [];
|
64
|
-
for (let i = 0; i <
|
65
|
-
const batchResult = await this.getBatchItems(
|
71
|
+
for (let i = 0; i < keys.length; i += batchSize) {
|
72
|
+
const batchResult = await this.getBatchItems(keys.slice(i, i + batchSize));
|
66
73
|
result = result.concat(batchResult);
|
67
74
|
}
|
68
75
|
return result;
|
@@ -73,11 +80,11 @@ class AbstractDynamoDbRepository {
|
|
73
80
|
* @param items
|
74
81
|
* @returns
|
75
82
|
*/
|
76
|
-
async getBatchItems(
|
83
|
+
async getBatchItems(keys) {
|
77
84
|
let resultItems = [];
|
78
85
|
let requestKeys = {
|
79
86
|
[this.tableName]: {
|
80
|
-
Keys:
|
87
|
+
Keys: keys,
|
81
88
|
},
|
82
89
|
};
|
83
90
|
let reattemptsCount = 0;
|
@@ -106,9 +113,9 @@ class AbstractDynamoDbRepository {
|
|
106
113
|
async deleteItems(items) {
|
107
114
|
// this is the maximum items allowed by BatchWriteItem()
|
108
115
|
const batchSize = 25;
|
109
|
-
|
110
|
-
|
111
|
-
await this.deleteBatchItems(keys);
|
116
|
+
const keys = this.getItemsKeys(items);
|
117
|
+
for (let i = 0; i < keys.length; i += batchSize) {
|
118
|
+
await this.deleteBatchItems(keys.slice(i, i + batchSize));
|
112
119
|
}
|
113
120
|
}
|
114
121
|
async deleteBatchItems(keys) {
|
@@ -132,7 +139,7 @@ class AbstractDynamoDbRepository {
|
|
132
139
|
requestItems = response.UnprocessedItems;
|
133
140
|
}
|
134
141
|
}
|
135
|
-
|
142
|
+
getItemsKeys(items) {
|
136
143
|
const keys = [];
|
137
144
|
for (const item of items) {
|
138
145
|
keys.push({
|
@@ -140,11 +147,12 @@ class AbstractDynamoDbRepository {
|
|
140
147
|
[this.keys.sk.attributeName]: this.getSk(item),
|
141
148
|
});
|
142
149
|
}
|
143
|
-
// keys
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
150
|
+
// filter duplicate items keys
|
151
|
+
return keys.filter((key, index) => {
|
152
|
+
return (index ===
|
153
|
+
keys.findIndex((key2) => key[this.keys.pk.attributeName] === key2[this.keys.pk.attributeName] &&
|
154
|
+
key[this.keys.sk.attributeName] === key2[this.keys.sk.attributeName]));
|
155
|
+
});
|
148
156
|
}
|
149
157
|
/**
|
150
158
|
* Finds all the items matching the partition key or
|
@@ -221,7 +229,7 @@ class AbstractDynamoDbRepository {
|
|
221
229
|
* @throws MissingKeyValuesError
|
222
230
|
*/
|
223
231
|
async updateItem(newValue, transaction = {}) {
|
224
|
-
var _a
|
232
|
+
var _a;
|
225
233
|
const oldValue = await this.getItem(newValue);
|
226
234
|
if (oldValue === undefined) {
|
227
235
|
return undefined;
|
@@ -229,11 +237,13 @@ class AbstractDynamoDbRepository {
|
|
229
237
|
const value = { ...oldValue, ...newValue };
|
230
238
|
this.assertValueMatchesModel(value);
|
231
239
|
this.convertSelectedValuesToJsonString(newValue);
|
240
|
+
this.convertSelectedValuesToJsonString(oldValue);
|
232
241
|
const updateExpression = [];
|
233
242
|
const expressionAttributeNames = {};
|
234
243
|
const expressionAttributeValues = {};
|
244
|
+
const updatedAttributes = [];
|
235
245
|
for (const modelProperty of Object.keys(newValue)) {
|
236
|
-
const propValue =
|
246
|
+
const propValue = newValue[modelProperty];
|
237
247
|
if (propValue === oldValue[modelProperty]) {
|
238
248
|
// don't need to update the properties that are unchanged
|
239
249
|
continue;
|
@@ -243,23 +253,38 @@ class AbstractDynamoDbRepository {
|
|
243
253
|
updateExpression.push(`${propName} = ${propValuePlaceHolder}`);
|
244
254
|
expressionAttributeNames[propName] = modelProperty;
|
245
255
|
expressionAttributeValues[propValuePlaceHolder] = propValue;
|
256
|
+
updatedAttributes.push(modelProperty);
|
246
257
|
}
|
247
|
-
if (!
|
258
|
+
if (!updatedAttributes.length) {
|
248
259
|
// nothing to update
|
249
260
|
return value;
|
250
261
|
}
|
262
|
+
// also update the gsi attributes if needed
|
263
|
+
Object.keys(this.indexes).forEach((key) => {
|
264
|
+
const index = this.indexes[key];
|
265
|
+
[index.pk.attributeName, index.sk.attributeName].forEach((keyAttributeName) => {
|
266
|
+
const keyFormat = this.keysFormat[keyAttributeName];
|
267
|
+
if (updatedAttributes.find((attr) => keyFormat.search(`{${attr}}`) !== -1)) {
|
268
|
+
const propName = `#${keyAttributeName}`;
|
269
|
+
const propValuePlaceHolder = `:${keyAttributeName}`;
|
270
|
+
updateExpression.push(`${propName} = ${propValuePlaceHolder}`);
|
271
|
+
expressionAttributeNames[propName] = keyAttributeName;
|
272
|
+
expressionAttributeValues[propValuePlaceHolder] = this.getKey(value, keyAttributeName);
|
273
|
+
}
|
274
|
+
});
|
275
|
+
});
|
251
276
|
const updateCommandInput = {
|
252
277
|
TableName: this.tableName,
|
253
278
|
Key: {
|
254
279
|
[this.keys.pk.attributeName]: this.getPk(newValue),
|
255
280
|
[this.keys.sk.attributeName]: this.getSk(newValue),
|
256
281
|
},
|
257
|
-
UpdateExpression: 'SET ' + updateExpression.join(','),
|
282
|
+
UpdateExpression: 'SET ' + updateExpression.join(', '),
|
258
283
|
ExpressionAttributeValues: expressionAttributeValues,
|
259
284
|
ExpressionAttributeNames: expressionAttributeNames,
|
260
285
|
ConditionExpression: `attribute_exists(${this.keys.pk.attributeName})`,
|
261
286
|
};
|
262
|
-
if ((
|
287
|
+
if ((_a = transaction.id) === null || _a === void 0 ? void 0 : _a.length) {
|
263
288
|
// this command will be executed together with
|
264
289
|
// other db write commands in the "transaction" block
|
265
290
|
this.dbManager.addWriteTransactionItem(transaction.id, {
|
@@ -309,11 +334,21 @@ class AbstractDynamoDbRepository {
|
|
309
334
|
[this.keys.pk.attributeName]: this.getPk({ ...value, ...additionalValue }),
|
310
335
|
[this.keys.sk.attributeName]: this.getSk({ ...value, ...additionalValue }),
|
311
336
|
};
|
312
|
-
Object.
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
337
|
+
for (const [key, index] of Object.entries(this.indexes)) {
|
338
|
+
try {
|
339
|
+
keyFields[index.pk.attributeName] = this.getKey({ ...value, ...additionalValue }, index.pk.attributeName);
|
340
|
+
keyFields[index.sk.attributeName] = this.getKey({ ...value, ...additionalValue }, index.sk.attributeName);
|
341
|
+
}
|
342
|
+
catch (e) {
|
343
|
+
if (e.name === 'MissingKeyValuesError' && this.optionalIndexes.includes(key)) {
|
344
|
+
// ignore optional index fields missing error
|
345
|
+
delete keyFields[index.pk.attributeName];
|
346
|
+
delete keyFields[index.pk.attributeName];
|
347
|
+
continue;
|
348
|
+
}
|
349
|
+
throw e;
|
350
|
+
}
|
351
|
+
}
|
317
352
|
const putCommandInput = {
|
318
353
|
TableName: this.tableName,
|
319
354
|
Item: {
|
@@ -453,7 +488,7 @@ class AbstractDynamoDbRepository {
|
|
453
488
|
var _a;
|
454
489
|
let keyFormat = this.keysFormat[attributeName];
|
455
490
|
if (keyFormat == undefined || !keyFormat.length) {
|
456
|
-
throw new
|
491
|
+
throw new UnknownKeyAttributeError_1.UnknownKeyAttributeError(`Key format not defined or empty for key attribute '${attributeName}' in entity ${this.entityName}`);
|
457
492
|
}
|
458
493
|
const matches = keyFormat.match(/{[a-zA-Z]+?}/g);
|
459
494
|
const replacements = !matches
|
@@ -477,18 +512,6 @@ class AbstractDynamoDbRepository {
|
|
477
512
|
}
|
478
513
|
return keyFormat;
|
479
514
|
}
|
480
|
-
/**
|
481
|
-
* Whether the given property name is part of the entity's pk/sk string
|
482
|
-
* @param propertyName
|
483
|
-
* @returns boolean
|
484
|
-
*/
|
485
|
-
isPropertyPartOfKeys(propertyName) {
|
486
|
-
if (this.keysFormat[this.keys.pk.attributeName].search(`{${propertyName}}`) !== -1)
|
487
|
-
return true;
|
488
|
-
if (this.keysFormat[this.keys.sk.attributeName].search(`{${propertyName}}`) !== -1)
|
489
|
-
return true;
|
490
|
-
return false;
|
491
|
-
}
|
492
515
|
/**
|
493
516
|
* Validate the data matches with "DATA_MODEL"
|
494
517
|
* @param value
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ClH;IACH,CAAC;CACF;AAjlBD,gEAilBC"}
|
@@ -7,6 +7,7 @@ interface ITestItem {
|
|
7
7
|
country: string;
|
8
8
|
data?: object;
|
9
9
|
data2?: object;
|
10
|
+
email?: string;
|
10
11
|
}
|
11
12
|
declare class TestItem implements ITestItem {
|
12
13
|
name: string;
|
@@ -14,6 +15,7 @@ declare class TestItem implements ITestItem {
|
|
14
15
|
country: string;
|
15
16
|
data: object;
|
16
17
|
data2?: object;
|
18
|
+
email?: string;
|
17
19
|
constructor(data?: Partial<ITestItem>);
|
18
20
|
}
|
19
21
|
export type TestRepositories = {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AbstractDynamoDbRepository.spec.d.ts","sourceRoot":"","sources":["../../src/dynamodb/AbstractDynamoDbRepository.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,8BAA8B,CAAC;AAsBxF,OAAO,EAAE,eAAe,EAAe,MAAM,mBAAmB,CAAC;AAIjE,OAAO,0BAA0B,CAAC;AAQlC,UAAU,SAAS;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,cAAM,QAAS,YAAW,SAAS;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;gBAEV,IAAI,GAAE,OAAO,CAAC,SAAS,CAAM;
|
1
|
+
{"version":3,"file":"AbstractDynamoDbRepository.spec.d.ts","sourceRoot":"","sources":["../../src/dynamodb/AbstractDynamoDbRepository.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,8BAA8B,CAAC;AAsBxF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