@aws-sdk/lib-dynamodb 3.1044.0 → 3.1046.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.
Files changed (57) hide show
  1. package/dist-cjs/index.js +163 -163
  2. package/dist-es/DynamoDBDocument.js +4 -4
  3. package/dist-es/DynamoDBDocumentClient.js +3 -3
  4. package/dist-es/baseCommand/DynamoDBDocumentClientCommand.js +2 -2
  5. package/dist-es/commands/BatchExecuteStatementCommand.js +12 -12
  6. package/dist-es/commands/BatchGetCommand.js +16 -16
  7. package/dist-es/commands/BatchWriteCommand.js +26 -26
  8. package/dist-es/commands/DeleteCommand.js +11 -11
  9. package/dist-es/commands/ExecuteStatementCommand.js +6 -6
  10. package/dist-es/commands/ExecuteTransactionCommand.js +10 -10
  11. package/dist-es/commands/GetCommand.js +4 -4
  12. package/dist-es/commands/PutCommand.js +12 -12
  13. package/dist-es/commands/QueryCommand.js +15 -15
  14. package/dist-es/commands/ScanCommand.js +11 -11
  15. package/dist-es/commands/TransactGetCommand.js +11 -11
  16. package/dist-es/commands/TransactWriteCommand.js +23 -23
  17. package/dist-es/commands/UpdateCommand.js +16 -16
  18. package/dist-es/index.js +4 -4
  19. package/dist-types/DynamoDBDocument.d.ts +16 -15
  20. package/dist-types/DynamoDBDocumentClient.d.ts +16 -16
  21. package/dist-types/baseCommand/DynamoDBDocumentClientCommand.d.ts +4 -4
  22. package/dist-types/commands/BatchExecuteStatementCommand.d.ts +14 -13
  23. package/dist-types/commands/BatchGetCommand.d.ts +18 -17
  24. package/dist-types/commands/BatchWriteCommand.d.ts +24 -23
  25. package/dist-types/commands/DeleteCommand.d.ts +8 -8
  26. package/dist-types/commands/ExecuteStatementCommand.d.ts +10 -9
  27. package/dist-types/commands/ExecuteTransactionCommand.d.ts +12 -11
  28. package/dist-types/commands/GetCommand.d.ts +7 -6
  29. package/dist-types/commands/PutCommand.d.ts +12 -11
  30. package/dist-types/commands/QueryCommand.d.ts +15 -14
  31. package/dist-types/commands/ScanCommand.d.ts +12 -11
  32. package/dist-types/commands/TransactGetCommand.d.ts +13 -12
  33. package/dist-types/commands/TransactWriteCommand.d.ts +20 -19
  34. package/dist-types/commands/UpdateCommand.d.ts +14 -13
  35. package/dist-types/commands/utils.d.ts +1 -1
  36. package/dist-types/index.d.ts +4 -4
  37. package/dist-types/pagination/Interfaces.d.ts +2 -2
  38. package/dist-types/pagination/QueryPaginator.d.ts +2 -2
  39. package/dist-types/pagination/ScanPaginator.d.ts +2 -2
  40. package/dist-types/ts3.4/DynamoDBDocument.d.ts +3 -5
  41. package/dist-types/ts3.4/DynamoDBDocumentClient.d.ts +8 -8
  42. package/dist-types/ts3.4/baseCommand/DynamoDBDocumentClientCommand.d.ts +1 -1
  43. package/dist-types/ts3.4/commands/BatchExecuteStatementCommand.d.ts +4 -7
  44. package/dist-types/ts3.4/commands/BatchGetCommand.d.ts +4 -7
  45. package/dist-types/ts3.4/commands/BatchWriteCommand.d.ts +4 -7
  46. package/dist-types/ts3.4/commands/DeleteCommand.d.ts +1 -1
  47. package/dist-types/ts3.4/commands/ExecuteStatementCommand.d.ts +4 -7
  48. package/dist-types/ts3.4/commands/ExecuteTransactionCommand.d.ts +4 -7
  49. package/dist-types/ts3.4/commands/GetCommand.d.ts +4 -7
  50. package/dist-types/ts3.4/commands/PutCommand.d.ts +4 -7
  51. package/dist-types/ts3.4/commands/QueryCommand.d.ts +4 -7
  52. package/dist-types/ts3.4/commands/ScanCommand.d.ts +4 -7
  53. package/dist-types/ts3.4/commands/TransactGetCommand.d.ts +4 -7
  54. package/dist-types/ts3.4/commands/TransactWriteCommand.d.ts +4 -7
  55. package/dist-types/ts3.4/commands/UpdateCommand.d.ts +4 -7
  56. package/dist-types/ts3.4/index.d.ts +2 -2
  57. package/package.json +5 -6
package/dist-cjs/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var smithyClient = require('@smithy/smithy-client');
4
- var core = require('@aws-sdk/core');
5
- var utilDynamodb = require('@aws-sdk/util-dynamodb');
6
3
  var clientDynamodb = require('@aws-sdk/client-dynamodb');
7
- var core$1 = require('@smithy/core');
4
+ var client = require('@smithy/core/client');
5
+ var client$1 = require('@aws-sdk/core/client');
6
+ var utilDynamodb = require('@aws-sdk/util-dynamodb');
7
+ var core = require('@smithy/core');
8
8
 
9
9
  const SELF = null;
10
10
  const ALL_VALUES = {};
@@ -86,13 +86,13 @@ const unmarshallOutput = (obj, keyNodes, options) => {
86
86
  return processKeysInObj(obj, unmarshallFunc, keyNodes);
87
87
  };
88
88
 
89
- class DynamoDBDocumentClientCommand extends smithyClient.Command {
89
+ class DynamoDBDocumentClientCommand extends client.Command {
90
90
  addMarshallingMiddleware(configuration) {
91
91
  const { marshallOptions = {}, unmarshallOptions = {} } = configuration.translateConfig || {};
92
92
  marshallOptions.convertTopLevelContainer = marshallOptions.convertTopLevelContainer ?? true;
93
93
  unmarshallOptions.convertWithoutMapWrapper = unmarshallOptions.convertWithoutMapWrapper ?? true;
94
94
  this.clientCommand.middlewareStack.addRelativeTo((next, context) => async (args) => {
95
- core.setFeature(context, "DDB_MAPPER", "d");
95
+ client$1.setFeature(context, "DDB_MAPPER", "d");
96
96
  return next({
97
97
  ...args,
98
98
  input: marshallInput(args.input, this.inputKeyNodes, marshallOptions),
@@ -119,20 +119,20 @@ class DynamoDBDocumentClientCommand extends smithyClient.Command {
119
119
  class BatchExecuteStatementCommand extends DynamoDBDocumentClientCommand {
120
120
  input;
121
121
  inputKeyNodes = {
122
- 'Statements': {
123
- '*': {
124
- 'Parameters': ALL_MEMBERS,
125
- }
122
+ Statements: {
123
+ "*": {
124
+ Parameters: ALL_MEMBERS,
125
+ },
126
126
  },
127
127
  };
128
128
  outputKeyNodes = {
129
- 'Responses': {
130
- '*': {
131
- 'Error': {
132
- 'Item': ALL_VALUES,
129
+ Responses: {
130
+ "*": {
131
+ Error: {
132
+ Item: ALL_VALUES,
133
133
  },
134
- 'Item': ALL_VALUES,
135
- }
134
+ Item: ALL_VALUES,
135
+ },
136
136
  },
137
137
  };
138
138
  clientCommand;
@@ -154,26 +154,26 @@ class BatchExecuteStatementCommand extends DynamoDBDocumentClientCommand {
154
154
  class BatchGetCommand extends DynamoDBDocumentClientCommand {
155
155
  input;
156
156
  inputKeyNodes = {
157
- 'RequestItems': {
158
- '*': {
159
- 'Keys': {
160
- '*': ALL_VALUES
157
+ RequestItems: {
158
+ "*": {
159
+ Keys: {
160
+ "*": ALL_VALUES,
161
161
  },
162
- }
162
+ },
163
163
  },
164
164
  };
165
165
  outputKeyNodes = {
166
- 'Responses': {
167
- '*': {
168
- '*': ALL_VALUES
169
- }
166
+ Responses: {
167
+ "*": {
168
+ "*": ALL_VALUES,
169
+ },
170
170
  },
171
- 'UnprocessedKeys': {
172
- '*': {
173
- 'Keys': {
174
- '*': ALL_VALUES
171
+ UnprocessedKeys: {
172
+ "*": {
173
+ Keys: {
174
+ "*": ALL_VALUES,
175
175
  },
176
- }
176
+ },
177
177
  },
178
178
  };
179
179
  clientCommand;
@@ -195,38 +195,38 @@ class BatchGetCommand extends DynamoDBDocumentClientCommand {
195
195
  class BatchWriteCommand extends DynamoDBDocumentClientCommand {
196
196
  input;
197
197
  inputKeyNodes = {
198
- 'RequestItems': {
199
- '*': {
200
- '*': {
201
- 'PutRequest': {
202
- 'Item': ALL_VALUES,
198
+ RequestItems: {
199
+ "*": {
200
+ "*": {
201
+ PutRequest: {
202
+ Item: ALL_VALUES,
203
203
  },
204
- 'DeleteRequest': {
205
- 'Key': ALL_VALUES,
204
+ DeleteRequest: {
205
+ Key: ALL_VALUES,
206
206
  },
207
- }
208
- }
207
+ },
208
+ },
209
209
  },
210
210
  };
211
211
  outputKeyNodes = {
212
- 'UnprocessedItems': {
213
- '*': {
214
- '*': {
215
- 'PutRequest': {
216
- 'Item': ALL_VALUES,
212
+ UnprocessedItems: {
213
+ "*": {
214
+ "*": {
215
+ PutRequest: {
216
+ Item: ALL_VALUES,
217
217
  },
218
- 'DeleteRequest': {
219
- 'Key': ALL_VALUES,
218
+ DeleteRequest: {
219
+ Key: ALL_VALUES,
220
220
  },
221
- }
222
- }
221
+ },
222
+ },
223
223
  },
224
- 'ItemCollectionMetrics': {
225
- '*': {
226
- '*': {
227
- 'ItemCollectionKey': ALL_VALUES,
228
- }
229
- }
224
+ ItemCollectionMetrics: {
225
+ "*": {
226
+ "*": {
227
+ ItemCollectionKey: ALL_VALUES,
228
+ },
229
+ },
230
230
  },
231
231
  };
232
232
  clientCommand;
@@ -248,19 +248,19 @@ class BatchWriteCommand extends DynamoDBDocumentClientCommand {
248
248
  class DeleteCommand extends DynamoDBDocumentClientCommand {
249
249
  input;
250
250
  inputKeyNodes = {
251
- 'Key': ALL_VALUES,
252
- 'Expected': {
253
- '*': {
254
- 'Value': SELF,
255
- 'AttributeValueList': ALL_MEMBERS,
256
- }
251
+ Key: ALL_VALUES,
252
+ Expected: {
253
+ "*": {
254
+ Value: SELF,
255
+ AttributeValueList: ALL_MEMBERS,
256
+ },
257
257
  },
258
- 'ExpressionAttributeValues': ALL_VALUES,
258
+ ExpressionAttributeValues: ALL_VALUES,
259
259
  };
260
260
  outputKeyNodes = {
261
- 'Attributes': ALL_VALUES,
262
- 'ItemCollectionMetrics': {
263
- 'ItemCollectionKey': ALL_VALUES,
261
+ Attributes: ALL_VALUES,
262
+ ItemCollectionMetrics: {
263
+ ItemCollectionKey: ALL_VALUES,
264
264
  },
265
265
  };
266
266
  clientCommand;
@@ -282,13 +282,13 @@ class DeleteCommand extends DynamoDBDocumentClientCommand {
282
282
  class ExecuteStatementCommand extends DynamoDBDocumentClientCommand {
283
283
  input;
284
284
  inputKeyNodes = {
285
- 'Parameters': ALL_MEMBERS,
285
+ Parameters: ALL_MEMBERS,
286
286
  };
287
287
  outputKeyNodes = {
288
- 'Items': {
289
- '*': ALL_VALUES
288
+ Items: {
289
+ "*": ALL_VALUES,
290
290
  },
291
- 'LastEvaluatedKey': ALL_VALUES,
291
+ LastEvaluatedKey: ALL_VALUES,
292
292
  };
293
293
  clientCommand;
294
294
  middlewareStack;
@@ -309,17 +309,17 @@ class ExecuteStatementCommand extends DynamoDBDocumentClientCommand {
309
309
  class ExecuteTransactionCommand extends DynamoDBDocumentClientCommand {
310
310
  input;
311
311
  inputKeyNodes = {
312
- 'TransactStatements': {
313
- '*': {
314
- 'Parameters': ALL_MEMBERS,
315
- }
312
+ TransactStatements: {
313
+ "*": {
314
+ Parameters: ALL_MEMBERS,
315
+ },
316
316
  },
317
317
  };
318
318
  outputKeyNodes = {
319
- 'Responses': {
320
- '*': {
321
- 'Item': ALL_VALUES,
322
- }
319
+ Responses: {
320
+ "*": {
321
+ Item: ALL_VALUES,
322
+ },
323
323
  },
324
324
  };
325
325
  clientCommand;
@@ -341,10 +341,10 @@ class ExecuteTransactionCommand extends DynamoDBDocumentClientCommand {
341
341
  class GetCommand extends DynamoDBDocumentClientCommand {
342
342
  input;
343
343
  inputKeyNodes = {
344
- 'Key': ALL_VALUES,
344
+ Key: ALL_VALUES,
345
345
  };
346
346
  outputKeyNodes = {
347
- 'Item': ALL_VALUES,
347
+ Item: ALL_VALUES,
348
348
  };
349
349
  clientCommand;
350
350
  middlewareStack;
@@ -365,19 +365,19 @@ class GetCommand extends DynamoDBDocumentClientCommand {
365
365
  class PutCommand extends DynamoDBDocumentClientCommand {
366
366
  input;
367
367
  inputKeyNodes = {
368
- 'Item': ALL_VALUES,
369
- 'Expected': {
370
- '*': {
371
- 'Value': SELF,
372
- 'AttributeValueList': ALL_MEMBERS,
373
- }
368
+ Item: ALL_VALUES,
369
+ Expected: {
370
+ "*": {
371
+ Value: SELF,
372
+ AttributeValueList: ALL_MEMBERS,
373
+ },
374
374
  },
375
- 'ExpressionAttributeValues': ALL_VALUES,
375
+ ExpressionAttributeValues: ALL_VALUES,
376
376
  };
377
377
  outputKeyNodes = {
378
- 'Attributes': ALL_VALUES,
379
- 'ItemCollectionMetrics': {
380
- 'ItemCollectionKey': ALL_VALUES,
378
+ Attributes: ALL_VALUES,
379
+ ItemCollectionMetrics: {
380
+ ItemCollectionKey: ALL_VALUES,
381
381
  },
382
382
  };
383
383
  clientCommand;
@@ -399,24 +399,24 @@ class PutCommand extends DynamoDBDocumentClientCommand {
399
399
  class QueryCommand extends DynamoDBDocumentClientCommand {
400
400
  input;
401
401
  inputKeyNodes = {
402
- 'KeyConditions': {
403
- '*': {
404
- 'AttributeValueList': ALL_MEMBERS,
405
- }
402
+ KeyConditions: {
403
+ "*": {
404
+ AttributeValueList: ALL_MEMBERS,
405
+ },
406
406
  },
407
- 'QueryFilter': {
408
- '*': {
409
- 'AttributeValueList': ALL_MEMBERS,
410
- }
407
+ QueryFilter: {
408
+ "*": {
409
+ AttributeValueList: ALL_MEMBERS,
410
+ },
411
411
  },
412
- 'ExclusiveStartKey': ALL_VALUES,
413
- 'ExpressionAttributeValues': ALL_VALUES,
412
+ ExclusiveStartKey: ALL_VALUES,
413
+ ExpressionAttributeValues: ALL_VALUES,
414
414
  };
415
415
  outputKeyNodes = {
416
- 'Items': {
417
- '*': ALL_VALUES
416
+ Items: {
417
+ "*": ALL_VALUES,
418
418
  },
419
- 'LastEvaluatedKey': ALL_VALUES,
419
+ LastEvaluatedKey: ALL_VALUES,
420
420
  };
421
421
  clientCommand;
422
422
  middlewareStack;
@@ -437,19 +437,19 @@ class QueryCommand extends DynamoDBDocumentClientCommand {
437
437
  class ScanCommand extends DynamoDBDocumentClientCommand {
438
438
  input;
439
439
  inputKeyNodes = {
440
- 'ScanFilter': {
441
- '*': {
442
- 'AttributeValueList': ALL_MEMBERS,
443
- }
440
+ ScanFilter: {
441
+ "*": {
442
+ AttributeValueList: ALL_MEMBERS,
443
+ },
444
444
  },
445
- 'ExclusiveStartKey': ALL_VALUES,
446
- 'ExpressionAttributeValues': ALL_VALUES,
445
+ ExclusiveStartKey: ALL_VALUES,
446
+ ExpressionAttributeValues: ALL_VALUES,
447
447
  };
448
448
  outputKeyNodes = {
449
- 'Items': {
450
- '*': ALL_VALUES
449
+ Items: {
450
+ "*": ALL_VALUES,
451
451
  },
452
- 'LastEvaluatedKey': ALL_VALUES,
452
+ LastEvaluatedKey: ALL_VALUES,
453
453
  };
454
454
  clientCommand;
455
455
  middlewareStack;
@@ -470,19 +470,19 @@ class ScanCommand extends DynamoDBDocumentClientCommand {
470
470
  class TransactGetCommand extends DynamoDBDocumentClientCommand {
471
471
  input;
472
472
  inputKeyNodes = {
473
- 'TransactItems': {
474
- '*': {
475
- 'Get': {
476
- 'Key': ALL_VALUES,
473
+ TransactItems: {
474
+ "*": {
475
+ Get: {
476
+ Key: ALL_VALUES,
477
477
  },
478
- }
478
+ },
479
479
  },
480
480
  };
481
481
  outputKeyNodes = {
482
- 'Responses': {
483
- '*': {
484
- 'Item': ALL_VALUES,
485
- }
482
+ Responses: {
483
+ "*": {
484
+ Item: ALL_VALUES,
485
+ },
486
486
  },
487
487
  };
488
488
  clientCommand;
@@ -504,34 +504,34 @@ class TransactGetCommand extends DynamoDBDocumentClientCommand {
504
504
  class TransactWriteCommand extends DynamoDBDocumentClientCommand {
505
505
  input;
506
506
  inputKeyNodes = {
507
- 'TransactItems': {
508
- '*': {
509
- 'ConditionCheck': {
510
- 'Key': ALL_VALUES,
511
- 'ExpressionAttributeValues': ALL_VALUES,
507
+ TransactItems: {
508
+ "*": {
509
+ ConditionCheck: {
510
+ Key: ALL_VALUES,
511
+ ExpressionAttributeValues: ALL_VALUES,
512
512
  },
513
- 'Put': {
514
- 'Item': ALL_VALUES,
515
- 'ExpressionAttributeValues': ALL_VALUES,
513
+ Put: {
514
+ Item: ALL_VALUES,
515
+ ExpressionAttributeValues: ALL_VALUES,
516
516
  },
517
- 'Delete': {
518
- 'Key': ALL_VALUES,
519
- 'ExpressionAttributeValues': ALL_VALUES,
517
+ Delete: {
518
+ Key: ALL_VALUES,
519
+ ExpressionAttributeValues: ALL_VALUES,
520
520
  },
521
- 'Update': {
522
- 'Key': ALL_VALUES,
523
- 'ExpressionAttributeValues': ALL_VALUES,
521
+ Update: {
522
+ Key: ALL_VALUES,
523
+ ExpressionAttributeValues: ALL_VALUES,
524
524
  },
525
- }
525
+ },
526
526
  },
527
527
  };
528
528
  outputKeyNodes = {
529
- 'ItemCollectionMetrics': {
530
- '*': {
531
- '*': {
532
- 'ItemCollectionKey': ALL_VALUES,
533
- }
534
- }
529
+ ItemCollectionMetrics: {
530
+ "*": {
531
+ "*": {
532
+ ItemCollectionKey: ALL_VALUES,
533
+ },
534
+ },
535
535
  },
536
536
  };
537
537
  clientCommand;
@@ -553,24 +553,24 @@ class TransactWriteCommand extends DynamoDBDocumentClientCommand {
553
553
  class UpdateCommand extends DynamoDBDocumentClientCommand {
554
554
  input;
555
555
  inputKeyNodes = {
556
- 'Key': ALL_VALUES,
557
- 'AttributeUpdates': {
558
- '*': {
559
- 'Value': SELF,
560
- }
556
+ Key: ALL_VALUES,
557
+ AttributeUpdates: {
558
+ "*": {
559
+ Value: SELF,
560
+ },
561
561
  },
562
- 'Expected': {
563
- '*': {
564
- 'Value': SELF,
565
- 'AttributeValueList': ALL_MEMBERS,
566
- }
562
+ Expected: {
563
+ "*": {
564
+ Value: SELF,
565
+ AttributeValueList: ALL_MEMBERS,
566
+ },
567
567
  },
568
- 'ExpressionAttributeValues': ALL_VALUES,
568
+ ExpressionAttributeValues: ALL_VALUES,
569
569
  };
570
570
  outputKeyNodes = {
571
- 'Attributes': ALL_VALUES,
572
- 'ItemCollectionMetrics': {
573
- 'ItemCollectionKey': ALL_VALUES,
571
+ Attributes: ALL_VALUES,
572
+ ItemCollectionMetrics: {
573
+ ItemCollectionKey: ALL_VALUES,
574
574
  },
575
575
  };
576
576
  clientCommand;
@@ -589,7 +589,7 @@ class UpdateCommand extends DynamoDBDocumentClientCommand {
589
589
  }
590
590
  }
591
591
 
592
- class DynamoDBDocumentClient extends smithyClient.Client {
592
+ class DynamoDBDocumentClient extends client.Client {
593
593
  config;
594
594
  constructor(client, translateConfig) {
595
595
  super(client.config);
@@ -597,8 +597,8 @@ class DynamoDBDocumentClient extends smithyClient.Client {
597
597
  this.config.translateConfig = translateConfig;
598
598
  this.middlewareStack = client.middlewareStack;
599
599
  if (this.config?.cacheMiddleware) {
600
- throw new Error("@aws-sdk/lib-dynamodb - cacheMiddleware=true is not compatible with the"
601
- + " DynamoDBDocumentClient. This option must be set to false.");
600
+ throw new Error("@aws-sdk/lib-dynamodb - cacheMiddleware=true is not compatible with the" +
601
+ " DynamoDBDocumentClient. This option must be set to false.");
602
602
  }
603
603
  }
604
604
  static from(client, translateConfig) {
@@ -608,10 +608,6 @@ class DynamoDBDocumentClient extends smithyClient.Client {
608
608
  }
609
609
  }
610
610
 
611
- const paginateQuery = core$1.createPaginator(DynamoDBDocumentClient, QueryCommand, "ExclusiveStartKey", "LastEvaluatedKey", "Limit");
612
-
613
- const paginateScan = core$1.createPaginator(DynamoDBDocumentClient, ScanCommand, "ExclusiveStartKey", "LastEvaluatedKey", "Limit");
614
-
615
611
  class DynamoDBDocument extends DynamoDBDocumentClient {
616
612
  static from(client, translateConfig) {
617
613
  return new DynamoDBDocument(client, translateConfig);
@@ -813,8 +809,12 @@ class DynamoDBDocument extends DynamoDBDocumentClient {
813
809
  }
814
810
  }
815
811
 
816
- exports.$Command = smithyClient.Command;
817
- exports.__Client = smithyClient.Client;
812
+ const paginateQuery = core.createPaginator(DynamoDBDocumentClient, QueryCommand, "ExclusiveStartKey", "LastEvaluatedKey", "Limit");
813
+
814
+ const paginateScan = core.createPaginator(DynamoDBDocumentClient, ScanCommand, "ExclusiveStartKey", "LastEvaluatedKey", "Limit");
815
+
816
+ exports.$Command = client.Command;
817
+ exports.__Client = client.Client;
818
818
  exports.NumberValue = utilDynamodb.NumberValueImpl;
819
819
  exports.BatchExecuteStatementCommand = BatchExecuteStatementCommand;
820
820
  exports.BatchGetCommand = BatchGetCommand;
@@ -1,15 +1,15 @@
1
- import { BatchExecuteStatementCommand, } from "./commands/BatchExecuteStatementCommand";
1
+ import { BatchExecuteStatementCommand } from "./commands/BatchExecuteStatementCommand";
2
2
  import { BatchGetCommand } from "./commands/BatchGetCommand";
3
3
  import { BatchWriteCommand } from "./commands/BatchWriteCommand";
4
4
  import { DeleteCommand } from "./commands/DeleteCommand";
5
- import { ExecuteStatementCommand, } from "./commands/ExecuteStatementCommand";
6
- import { ExecuteTransactionCommand, } from "./commands/ExecuteTransactionCommand";
5
+ import { ExecuteStatementCommand } from "./commands/ExecuteStatementCommand";
6
+ import { ExecuteTransactionCommand } from "./commands/ExecuteTransactionCommand";
7
7
  import { GetCommand } from "./commands/GetCommand";
8
8
  import { PutCommand } from "./commands/PutCommand";
9
9
  import { QueryCommand } from "./commands/QueryCommand";
10
10
  import { ScanCommand } from "./commands/ScanCommand";
11
11
  import { TransactGetCommand } from "./commands/TransactGetCommand";
12
- import { TransactWriteCommand, } from "./commands/TransactWriteCommand";
12
+ import { TransactWriteCommand } from "./commands/TransactWriteCommand";
13
13
  import { UpdateCommand } from "./commands/UpdateCommand";
14
14
  import { DynamoDBDocumentClient } from "./DynamoDBDocumentClient";
15
15
  export class DynamoDBDocument extends DynamoDBDocumentClient {
@@ -1,4 +1,4 @@
1
- import { Client as __Client } from "@smithy/smithy-client";
1
+ import { Client as __Client } from "@smithy/core/client";
2
2
  export { __Client };
3
3
  export class DynamoDBDocumentClient extends __Client {
4
4
  config;
@@ -8,8 +8,8 @@ export class DynamoDBDocumentClient extends __Client {
8
8
  this.config.translateConfig = translateConfig;
9
9
  this.middlewareStack = client.middlewareStack;
10
10
  if (this.config?.cacheMiddleware) {
11
- throw new Error("@aws-sdk/lib-dynamodb - cacheMiddleware=true is not compatible with the"
12
- + " DynamoDBDocumentClient. This option must be set to false.");
11
+ throw new Error("@aws-sdk/lib-dynamodb - cacheMiddleware=true is not compatible with the" +
12
+ " DynamoDBDocumentClient. This option must be set to false.");
13
13
  }
14
14
  }
15
15
  static from(client, translateConfig) {
@@ -1,5 +1,5 @@
1
- import { setFeature } from "@aws-sdk/core";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { setFeature } from "@aws-sdk/core/client";
2
+ import { Command as $Command } from "@smithy/core/client";
3
3
  import { marshallInput, unmarshallOutput } from "../commands/utils";
4
4
  export class DynamoDBDocumentClientCommand extends $Command {
5
5
  addMarshallingMiddleware(configuration) {
@@ -1,25 +1,25 @@
1
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { BatchExecuteStatementCommand as __BatchExecuteStatementCommand } from "@aws-sdk/client-dynamodb";
2
+ import { Command as $Command } from "@smithy/core/client";
2
3
  import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
3
4
  import { ALL_MEMBERS, ALL_VALUES } from "../commands/utils";
4
- import { BatchExecuteStatementCommand as __BatchExecuteStatementCommand } from "@aws-sdk/client-dynamodb";
5
5
  export { DynamoDBDocumentClientCommand, $Command };
6
6
  export class BatchExecuteStatementCommand extends DynamoDBDocumentClientCommand {
7
7
  input;
8
8
  inputKeyNodes = {
9
- 'Statements': {
10
- '*': {
11
- 'Parameters': ALL_MEMBERS,
12
- }
9
+ Statements: {
10
+ "*": {
11
+ Parameters: ALL_MEMBERS,
12
+ },
13
13
  },
14
14
  };
15
15
  outputKeyNodes = {
16
- 'Responses': {
17
- '*': {
18
- 'Error': {
19
- 'Item': ALL_VALUES,
16
+ Responses: {
17
+ "*": {
18
+ Error: {
19
+ Item: ALL_VALUES,
20
20
  },
21
- 'Item': ALL_VALUES,
22
- }
21
+ Item: ALL_VALUES,
22
+ },
23
23
  },
24
24
  };
25
25
  clientCommand;
@@ -1,31 +1,31 @@
1
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { BatchGetItemCommand as __BatchGetItemCommand } from "@aws-sdk/client-dynamodb";
2
+ import { Command as $Command } from "@smithy/core/client";
2
3
  import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
3
4
  import { ALL_VALUES } from "../commands/utils";
4
- import { BatchGetItemCommand as __BatchGetItemCommand } from "@aws-sdk/client-dynamodb";
5
5
  export { DynamoDBDocumentClientCommand, $Command };
6
6
  export class BatchGetCommand extends DynamoDBDocumentClientCommand {
7
7
  input;
8
8
  inputKeyNodes = {
9
- 'RequestItems': {
10
- '*': {
11
- 'Keys': {
12
- '*': ALL_VALUES
9
+ RequestItems: {
10
+ "*": {
11
+ Keys: {
12
+ "*": ALL_VALUES,
13
13
  },
14
- }
14
+ },
15
15
  },
16
16
  };
17
17
  outputKeyNodes = {
18
- 'Responses': {
19
- '*': {
20
- '*': ALL_VALUES
21
- }
18
+ Responses: {
19
+ "*": {
20
+ "*": ALL_VALUES,
21
+ },
22
22
  },
23
- 'UnprocessedKeys': {
24
- '*': {
25
- 'Keys': {
26
- '*': ALL_VALUES
23
+ UnprocessedKeys: {
24
+ "*": {
25
+ Keys: {
26
+ "*": ALL_VALUES,
27
27
  },
28
- }
28
+ },
29
29
  },
30
30
  };
31
31
  clientCommand;