@aws-sdk/lib-dynamodb 3.185.0 → 3.186.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/lib-dynamodb
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
7
15
 
8
16
  **Note:** Version bump only for package @aws-sdk/lib-dynamodb
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { BatchExecuteStatementCommand, } from "./commands/BatchExecuteStatementCommand";
2
3
  import { BatchGetCommand } from "./commands/BatchGetCommand";
3
4
  import { BatchWriteCommand } from "./commands/BatchWriteCommand";
@@ -12,190 +13,196 @@ import { TransactGetCommand } from "./commands/TransactGetCommand";
12
13
  import { TransactWriteCommand, } from "./commands/TransactWriteCommand";
13
14
  import { UpdateCommand } from "./commands/UpdateCommand";
14
15
  import { DynamoDBDocumentClient } from "./DynamoDBDocumentClient";
15
- export class DynamoDBDocument extends DynamoDBDocumentClient {
16
- static from(client, translateConfig) {
17
- return new DynamoDBDocument(client, translateConfig);
16
+ var DynamoDBDocument = (function (_super) {
17
+ __extends(DynamoDBDocument, _super);
18
+ function DynamoDBDocument() {
19
+ return _super !== null && _super.apply(this, arguments) || this;
18
20
  }
19
- batchExecuteStatement(args, optionsOrCb, cb) {
20
- const command = new BatchExecuteStatementCommand(args);
21
+ DynamoDBDocument.from = function (client, translateConfig) {
22
+ return new DynamoDBDocument(client, translateConfig);
23
+ };
24
+ DynamoDBDocument.prototype.batchExecuteStatement = function (args, optionsOrCb, cb) {
25
+ var command = new BatchExecuteStatementCommand(args);
21
26
  if (typeof optionsOrCb === "function") {
22
27
  this.send(command, optionsOrCb);
23
28
  }
24
29
  else if (typeof cb === "function") {
25
30
  if (typeof optionsOrCb !== "object")
26
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
31
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
27
32
  this.send(command, optionsOrCb || {}, cb);
28
33
  }
29
34
  else {
30
35
  return this.send(command, optionsOrCb);
31
36
  }
32
- }
33
- batchGet(args, optionsOrCb, cb) {
34
- const command = new BatchGetCommand(args);
37
+ };
38
+ DynamoDBDocument.prototype.batchGet = function (args, optionsOrCb, cb) {
39
+ var command = new BatchGetCommand(args);
35
40
  if (typeof optionsOrCb === "function") {
36
41
  this.send(command, optionsOrCb);
37
42
  }
38
43
  else if (typeof cb === "function") {
39
44
  if (typeof optionsOrCb !== "object")
40
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
45
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
41
46
  this.send(command, optionsOrCb || {}, cb);
42
47
  }
43
48
  else {
44
49
  return this.send(command, optionsOrCb);
45
50
  }
46
- }
47
- batchWrite(args, optionsOrCb, cb) {
48
- const command = new BatchWriteCommand(args);
51
+ };
52
+ DynamoDBDocument.prototype.batchWrite = function (args, optionsOrCb, cb) {
53
+ var command = new BatchWriteCommand(args);
49
54
  if (typeof optionsOrCb === "function") {
50
55
  this.send(command, optionsOrCb);
51
56
  }
52
57
  else if (typeof cb === "function") {
53
58
  if (typeof optionsOrCb !== "object")
54
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
59
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
55
60
  this.send(command, optionsOrCb || {}, cb);
56
61
  }
57
62
  else {
58
63
  return this.send(command, optionsOrCb);
59
64
  }
60
- }
61
- delete(args, optionsOrCb, cb) {
62
- const command = new DeleteCommand(args);
65
+ };
66
+ DynamoDBDocument.prototype.delete = function (args, optionsOrCb, cb) {
67
+ var command = new DeleteCommand(args);
63
68
  if (typeof optionsOrCb === "function") {
64
69
  this.send(command, optionsOrCb);
65
70
  }
66
71
  else if (typeof cb === "function") {
67
72
  if (typeof optionsOrCb !== "object")
68
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
73
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
69
74
  this.send(command, optionsOrCb || {}, cb);
70
75
  }
71
76
  else {
72
77
  return this.send(command, optionsOrCb);
73
78
  }
74
- }
75
- executeStatement(args, optionsOrCb, cb) {
76
- const command = new ExecuteStatementCommand(args);
79
+ };
80
+ DynamoDBDocument.prototype.executeStatement = function (args, optionsOrCb, cb) {
81
+ var command = new ExecuteStatementCommand(args);
77
82
  if (typeof optionsOrCb === "function") {
78
83
  this.send(command, optionsOrCb);
79
84
  }
80
85
  else if (typeof cb === "function") {
81
86
  if (typeof optionsOrCb !== "object")
82
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
87
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
83
88
  this.send(command, optionsOrCb || {}, cb);
84
89
  }
85
90
  else {
86
91
  return this.send(command, optionsOrCb);
87
92
  }
88
- }
89
- executeTransaction(args, optionsOrCb, cb) {
90
- const command = new ExecuteTransactionCommand(args);
93
+ };
94
+ DynamoDBDocument.prototype.executeTransaction = function (args, optionsOrCb, cb) {
95
+ var command = new ExecuteTransactionCommand(args);
91
96
  if (typeof optionsOrCb === "function") {
92
97
  this.send(command, optionsOrCb);
93
98
  }
94
99
  else if (typeof cb === "function") {
95
100
  if (typeof optionsOrCb !== "object")
96
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
101
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
97
102
  this.send(command, optionsOrCb || {}, cb);
98
103
  }
99
104
  else {
100
105
  return this.send(command, optionsOrCb);
101
106
  }
102
- }
103
- get(args, optionsOrCb, cb) {
104
- const command = new GetCommand(args);
107
+ };
108
+ DynamoDBDocument.prototype.get = function (args, optionsOrCb, cb) {
109
+ var command = new GetCommand(args);
105
110
  if (typeof optionsOrCb === "function") {
106
111
  this.send(command, optionsOrCb);
107
112
  }
108
113
  else if (typeof cb === "function") {
109
114
  if (typeof optionsOrCb !== "object")
110
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
115
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
111
116
  this.send(command, optionsOrCb || {}, cb);
112
117
  }
113
118
  else {
114
119
  return this.send(command, optionsOrCb);
115
120
  }
116
- }
117
- put(args, optionsOrCb, cb) {
118
- const command = new PutCommand(args);
121
+ };
122
+ DynamoDBDocument.prototype.put = function (args, optionsOrCb, cb) {
123
+ var command = new PutCommand(args);
119
124
  if (typeof optionsOrCb === "function") {
120
125
  this.send(command, optionsOrCb);
121
126
  }
122
127
  else if (typeof cb === "function") {
123
128
  if (typeof optionsOrCb !== "object")
124
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
129
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
125
130
  this.send(command, optionsOrCb || {}, cb);
126
131
  }
127
132
  else {
128
133
  return this.send(command, optionsOrCb);
129
134
  }
130
- }
131
- query(args, optionsOrCb, cb) {
132
- const command = new QueryCommand(args);
135
+ };
136
+ DynamoDBDocument.prototype.query = function (args, optionsOrCb, cb) {
137
+ var command = new QueryCommand(args);
133
138
  if (typeof optionsOrCb === "function") {
134
139
  this.send(command, optionsOrCb);
135
140
  }
136
141
  else if (typeof cb === "function") {
137
142
  if (typeof optionsOrCb !== "object")
138
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
143
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
139
144
  this.send(command, optionsOrCb || {}, cb);
140
145
  }
141
146
  else {
142
147
  return this.send(command, optionsOrCb);
143
148
  }
144
- }
145
- scan(args, optionsOrCb, cb) {
146
- const command = new ScanCommand(args);
149
+ };
150
+ DynamoDBDocument.prototype.scan = function (args, optionsOrCb, cb) {
151
+ var command = new ScanCommand(args);
147
152
  if (typeof optionsOrCb === "function") {
148
153
  this.send(command, optionsOrCb);
149
154
  }
150
155
  else if (typeof cb === "function") {
151
156
  if (typeof optionsOrCb !== "object")
152
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
157
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
153
158
  this.send(command, optionsOrCb || {}, cb);
154
159
  }
155
160
  else {
156
161
  return this.send(command, optionsOrCb);
157
162
  }
158
- }
159
- transactGet(args, optionsOrCb, cb) {
160
- const command = new TransactGetCommand(args);
163
+ };
164
+ DynamoDBDocument.prototype.transactGet = function (args, optionsOrCb, cb) {
165
+ var command = new TransactGetCommand(args);
161
166
  if (typeof optionsOrCb === "function") {
162
167
  this.send(command, optionsOrCb);
163
168
  }
164
169
  else if (typeof cb === "function") {
165
170
  if (typeof optionsOrCb !== "object")
166
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
171
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
167
172
  this.send(command, optionsOrCb || {}, cb);
168
173
  }
169
174
  else {
170
175
  return this.send(command, optionsOrCb);
171
176
  }
172
- }
173
- transactWrite(args, optionsOrCb, cb) {
174
- const command = new TransactWriteCommand(args);
177
+ };
178
+ DynamoDBDocument.prototype.transactWrite = function (args, optionsOrCb, cb) {
179
+ var command = new TransactWriteCommand(args);
175
180
  if (typeof optionsOrCb === "function") {
176
181
  this.send(command, optionsOrCb);
177
182
  }
178
183
  else if (typeof cb === "function") {
179
184
  if (typeof optionsOrCb !== "object")
180
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
185
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
181
186
  this.send(command, optionsOrCb || {}, cb);
182
187
  }
183
188
  else {
184
189
  return this.send(command, optionsOrCb);
185
190
  }
186
- }
187
- update(args, optionsOrCb, cb) {
188
- const command = new UpdateCommand(args);
191
+ };
192
+ DynamoDBDocument.prototype.update = function (args, optionsOrCb, cb) {
193
+ var command = new UpdateCommand(args);
189
194
  if (typeof optionsOrCb === "function") {
190
195
  this.send(command, optionsOrCb);
191
196
  }
192
197
  else if (typeof cb === "function") {
193
198
  if (typeof optionsOrCb !== "object")
194
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
199
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
195
200
  this.send(command, optionsOrCb || {}, cb);
196
201
  }
197
202
  else {
198
203
  return this.send(command, optionsOrCb);
199
204
  }
200
- }
201
- }
205
+ };
206
+ return DynamoDBDocument;
207
+ }(DynamoDBDocumentClient));
208
+ export { DynamoDBDocument };
@@ -1,14 +1,19 @@
1
+ import { __extends } from "tslib";
1
2
  import { Client as __Client } from "@aws-sdk/smithy-client";
2
- export class DynamoDBDocumentClient extends __Client {
3
- constructor(client, translateConfig) {
4
- super(client.config);
5
- this.config = client.config;
6
- this.config.translateConfig = translateConfig;
7
- this.middlewareStack = client.middlewareStack;
3
+ var DynamoDBDocumentClient = (function (_super) {
4
+ __extends(DynamoDBDocumentClient, _super);
5
+ function DynamoDBDocumentClient(client, translateConfig) {
6
+ var _this = _super.call(this, client.config) || this;
7
+ _this.config = client.config;
8
+ _this.config.translateConfig = translateConfig;
9
+ _this.middlewareStack = client.middlewareStack;
10
+ return _this;
8
11
  }
9
- static from(client, translateConfig) {
12
+ DynamoDBDocumentClient.from = function (client, translateConfig) {
10
13
  return new DynamoDBDocumentClient(client, translateConfig);
11
- }
12
- destroy() {
13
- }
14
- }
14
+ };
15
+ DynamoDBDocumentClient.prototype.destroy = function () {
16
+ };
17
+ return DynamoDBDocumentClient;
18
+ }(__Client));
19
+ export { DynamoDBDocumentClient };
@@ -1,24 +1,45 @@
1
+ import { __awaiter, __extends, __generator } from "tslib";
1
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
3
  import { marshallInput, unmarshallOutput } from "../commands/utils";
3
- export class DynamoDBDocumentClientCommand extends $Command {
4
- addMarshallingMiddleware(configuration) {
5
- const { marshallOptions, unmarshallOptions } = configuration.translateConfig || {};
6
- this.clientCommand.middlewareStack.add((next) => async (args) => {
7
- args.input = marshallInput(this.input, this.inputKeyNodes, marshallOptions);
8
- return next(args);
4
+ var DynamoDBDocumentClientCommand = (function (_super) {
5
+ __extends(DynamoDBDocumentClientCommand, _super);
6
+ function DynamoDBDocumentClientCommand() {
7
+ return _super !== null && _super.apply(this, arguments) || this;
8
+ }
9
+ DynamoDBDocumentClientCommand.prototype.addMarshallingMiddleware = function (configuration) {
10
+ var _this = this;
11
+ var _a = configuration.translateConfig || {}, marshallOptions = _a.marshallOptions, unmarshallOptions = _a.unmarshallOptions;
12
+ this.clientCommand.middlewareStack.add(function (next) {
13
+ return function (args) { return __awaiter(_this, void 0, void 0, function () {
14
+ return __generator(this, function (_a) {
15
+ args.input = marshallInput(this.input, this.inputKeyNodes, marshallOptions);
16
+ return [2, next(args)];
17
+ });
18
+ }); };
9
19
  }, {
10
20
  name: "DocumentMarshall",
11
21
  step: "initialize",
12
22
  override: true,
13
23
  });
14
- this.clientCommand.middlewareStack.add((next) => async (args) => {
15
- const deserialized = await next(args);
16
- deserialized.output = unmarshallOutput(deserialized.output, this.outputKeyNodes, unmarshallOptions);
17
- return deserialized;
24
+ this.clientCommand.middlewareStack.add(function (next) {
25
+ return function (args) { return __awaiter(_this, void 0, void 0, function () {
26
+ var deserialized;
27
+ return __generator(this, function (_a) {
28
+ switch (_a.label) {
29
+ case 0: return [4, next(args)];
30
+ case 1:
31
+ deserialized = _a.sent();
32
+ deserialized.output = unmarshallOutput(deserialized.output, this.outputKeyNodes, unmarshallOptions);
33
+ return [2, deserialized];
34
+ }
35
+ });
36
+ }); };
18
37
  }, {
19
38
  name: "DocumentUnmarshall",
20
39
  step: "deserialize",
21
40
  override: true,
22
41
  });
23
- }
24
- }
42
+ };
43
+ return DynamoDBDocumentClientCommand;
44
+ }($Command));
45
+ export { DynamoDBDocumentClientCommand };
@@ -1,18 +1,26 @@
1
+ import { __awaiter, __extends, __generator } from "tslib";
1
2
  import { BatchExecuteStatementCommand as __BatchExecuteStatementCommand, } from "@aws-sdk/client-dynamodb";
2
3
  import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
3
- export class BatchExecuteStatementCommand extends DynamoDBDocumentClientCommand {
4
- constructor(input) {
5
- super();
6
- this.input = input;
7
- this.inputKeyNodes = [{ key: "Statements", children: [{ key: "Parameters" }] }];
8
- this.outputKeyNodes = [{ key: "Responses", children: [{ key: "Item" }] }];
9
- this.clientCommand = new __BatchExecuteStatementCommand(this.input);
10
- this.middlewareStack = this.clientCommand.middlewareStack;
4
+ var BatchExecuteStatementCommand = (function (_super) {
5
+ __extends(BatchExecuteStatementCommand, _super);
6
+ function BatchExecuteStatementCommand(input) {
7
+ var _this = _super.call(this) || this;
8
+ _this.input = input;
9
+ _this.inputKeyNodes = [{ key: "Statements", children: [{ key: "Parameters" }] }];
10
+ _this.outputKeyNodes = [{ key: "Responses", children: [{ key: "Item" }] }];
11
+ _this.clientCommand = new __BatchExecuteStatementCommand(_this.input);
12
+ _this.middlewareStack = _this.clientCommand.middlewareStack;
13
+ return _this;
11
14
  }
12
- resolveMiddleware(clientStack, configuration, options) {
15
+ BatchExecuteStatementCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
16
+ var _this = this;
13
17
  this.addMarshallingMiddleware(configuration);
14
- const stack = clientStack.concat(this.middlewareStack);
15
- const handler = this.clientCommand.resolveMiddleware(stack, configuration, options);
16
- return async () => handler(this.clientCommand);
17
- }
18
- }
18
+ var stack = clientStack.concat(this.middlewareStack);
19
+ var handler = this.clientCommand.resolveMiddleware(stack, configuration, options);
20
+ return function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
21
+ return [2, handler(this.clientCommand)];
22
+ }); }); };
23
+ };
24
+ return BatchExecuteStatementCommand;
25
+ }(DynamoDBDocumentClientCommand));
26
+ export { BatchExecuteStatementCommand };
@@ -1,10 +1,12 @@
1
+ import { __awaiter, __extends, __generator } from "tslib";
1
2
  import { BatchGetItemCommand as __BatchGetItemCommand, } from "@aws-sdk/client-dynamodb";
2
3
  import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
3
- export class BatchGetCommand extends DynamoDBDocumentClientCommand {
4
- constructor(input) {
5
- super();
6
- this.input = input;
7
- this.inputKeyNodes = [
4
+ var BatchGetCommand = (function (_super) {
5
+ __extends(BatchGetCommand, _super);
6
+ function BatchGetCommand(input) {
7
+ var _this = _super.call(this) || this;
8
+ _this.input = input;
9
+ _this.inputKeyNodes = [
8
10
  {
9
11
  key: "RequestItems",
10
12
  children: {
@@ -12,7 +14,7 @@ export class BatchGetCommand extends DynamoDBDocumentClientCommand {
12
14
  },
13
15
  },
14
16
  ];
15
- this.outputKeyNodes = [
17
+ _this.outputKeyNodes = [
16
18
  { key: "Responses", children: {} },
17
19
  {
18
20
  key: "UnprocessedKeys",
@@ -21,13 +23,19 @@ export class BatchGetCommand extends DynamoDBDocumentClientCommand {
21
23
  },
22
24
  },
23
25
  ];
24
- this.clientCommand = new __BatchGetItemCommand(this.input);
25
- this.middlewareStack = this.clientCommand.middlewareStack;
26
+ _this.clientCommand = new __BatchGetItemCommand(_this.input);
27
+ _this.middlewareStack = _this.clientCommand.middlewareStack;
28
+ return _this;
26
29
  }
27
- resolveMiddleware(clientStack, configuration, options) {
30
+ BatchGetCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
31
+ var _this = this;
28
32
  this.addMarshallingMiddleware(configuration);
29
- const stack = clientStack.concat(this.middlewareStack);
30
- const handler = this.clientCommand.resolveMiddleware(stack, configuration, options);
31
- return async () => handler(this.clientCommand);
32
- }
33
- }
33
+ var stack = clientStack.concat(this.middlewareStack);
34
+ var handler = this.clientCommand.resolveMiddleware(stack, configuration, options);
35
+ return function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
36
+ return [2, handler(this.clientCommand)];
37
+ }); }); };
38
+ };
39
+ return BatchGetCommand;
40
+ }(DynamoDBDocumentClientCommand));
41
+ export { BatchGetCommand };
@@ -1,10 +1,12 @@
1
+ import { __awaiter, __extends, __generator } from "tslib";
1
2
  import { BatchWriteItemCommand as __BatchWriteItemCommand, } from "@aws-sdk/client-dynamodb";
2
3
  import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
3
- export class BatchWriteCommand extends DynamoDBDocumentClientCommand {
4
- constructor(input) {
5
- super();
6
- this.input = input;
7
- this.inputKeyNodes = [
4
+ var BatchWriteCommand = (function (_super) {
5
+ __extends(BatchWriteCommand, _super);
6
+ function BatchWriteCommand(input) {
7
+ var _this = _super.call(this) || this;
8
+ _this.input = input;
9
+ _this.inputKeyNodes = [
8
10
  {
9
11
  key: "RequestItems",
10
12
  children: {
@@ -15,7 +17,7 @@ export class BatchWriteCommand extends DynamoDBDocumentClientCommand {
15
17
  },
16
18
  },
17
19
  ];
18
- this.outputKeyNodes = [
20
+ _this.outputKeyNodes = [
19
21
  {
20
22
  key: "UnprocessedItems",
21
23
  children: {
@@ -32,13 +34,19 @@ export class BatchWriteCommand extends DynamoDBDocumentClientCommand {
32
34
  },
33
35
  },
34
36
  ];
35
- this.clientCommand = new __BatchWriteItemCommand(this.input);
36
- this.middlewareStack = this.clientCommand.middlewareStack;
37
+ _this.clientCommand = new __BatchWriteItemCommand(_this.input);
38
+ _this.middlewareStack = _this.clientCommand.middlewareStack;
39
+ return _this;
37
40
  }
38
- resolveMiddleware(clientStack, configuration, options) {
41
+ BatchWriteCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
42
+ var _this = this;
39
43
  this.addMarshallingMiddleware(configuration);
40
- const stack = clientStack.concat(this.middlewareStack);
41
- const handler = this.clientCommand.resolveMiddleware(stack, configuration, options);
42
- return async () => handler(this.clientCommand);
43
- }
44
- }
44
+ var stack = clientStack.concat(this.middlewareStack);
45
+ var handler = this.clientCommand.resolveMiddleware(stack, configuration, options);
46
+ return function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
47
+ return [2, handler(this.clientCommand)];
48
+ }); }); };
49
+ };
50
+ return BatchWriteCommand;
51
+ }(DynamoDBDocumentClientCommand));
52
+ export { BatchWriteCommand };
@@ -1,10 +1,12 @@
1
+ import { __awaiter, __extends, __generator } from "tslib";
1
2
  import { DeleteItemCommand as __DeleteItemCommand, } from "@aws-sdk/client-dynamodb";
2
3
  import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
3
- export class DeleteCommand extends DynamoDBDocumentClientCommand {
4
- constructor(input) {
5
- super();
6
- this.input = input;
7
- this.inputKeyNodes = [
4
+ var DeleteCommand = (function (_super) {
5
+ __extends(DeleteCommand, _super);
6
+ function DeleteCommand(input) {
7
+ var _this = _super.call(this) || this;
8
+ _this.input = input;
9
+ _this.inputKeyNodes = [
8
10
  { key: "Key" },
9
11
  {
10
12
  key: "Expected",
@@ -14,17 +16,23 @@ export class DeleteCommand extends DynamoDBDocumentClientCommand {
14
16
  },
15
17
  { key: "ExpressionAttributeValues" },
16
18
  ];
17
- this.outputKeyNodes = [
19
+ _this.outputKeyNodes = [
18
20
  { key: "Attributes" },
19
21
  { key: "ItemCollectionMetrics", children: [{ key: "ItemCollectionKey" }] },
20
22
  ];
21
- this.clientCommand = new __DeleteItemCommand(this.input);
22
- this.middlewareStack = this.clientCommand.middlewareStack;
23
+ _this.clientCommand = new __DeleteItemCommand(_this.input);
24
+ _this.middlewareStack = _this.clientCommand.middlewareStack;
25
+ return _this;
23
26
  }
24
- resolveMiddleware(clientStack, configuration, options) {
27
+ DeleteCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
28
+ var _this = this;
25
29
  this.addMarshallingMiddleware(configuration);
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const handler = this.clientCommand.resolveMiddleware(stack, configuration, options);
28
- return async () => handler(this.clientCommand);
29
- }
30
- }
30
+ var stack = clientStack.concat(this.middlewareStack);
31
+ var handler = this.clientCommand.resolveMiddleware(stack, configuration, options);
32
+ return function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
33
+ return [2, handler(this.clientCommand)];
34
+ }); }); };
35
+ };
36
+ return DeleteCommand;
37
+ }(DynamoDBDocumentClientCommand));
38
+ export { DeleteCommand };
@@ -1,18 +1,26 @@
1
+ import { __awaiter, __extends, __generator } from "tslib";
1
2
  import { ExecuteStatementCommand as __ExecuteStatementCommand, } from "@aws-sdk/client-dynamodb";
2
3
  import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
3
- export class ExecuteStatementCommand extends DynamoDBDocumentClientCommand {
4
- constructor(input) {
5
- super();
6
- this.input = input;
7
- this.inputKeyNodes = [{ key: "Parameters" }];
8
- this.outputKeyNodes = [{ key: "Items" }, { key: "LastEvaluatedKey" }];
9
- this.clientCommand = new __ExecuteStatementCommand(this.input);
10
- this.middlewareStack = this.clientCommand.middlewareStack;
4
+ var ExecuteStatementCommand = (function (_super) {
5
+ __extends(ExecuteStatementCommand, _super);
6
+ function ExecuteStatementCommand(input) {
7
+ var _this = _super.call(this) || this;
8
+ _this.input = input;
9
+ _this.inputKeyNodes = [{ key: "Parameters" }];
10
+ _this.outputKeyNodes = [{ key: "Items" }, { key: "LastEvaluatedKey" }];
11
+ _this.clientCommand = new __ExecuteStatementCommand(_this.input);
12
+ _this.middlewareStack = _this.clientCommand.middlewareStack;
13
+ return _this;
11
14
  }
12
- resolveMiddleware(clientStack, configuration, options) {
15
+ ExecuteStatementCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
16
+ var _this = this;
13
17
  this.addMarshallingMiddleware(configuration);
14
- const stack = clientStack.concat(this.middlewareStack);
15
- const handler = this.clientCommand.resolveMiddleware(stack, configuration, options);
16
- return async () => handler(this.clientCommand);
17
- }
18
- }
18
+ var stack = clientStack.concat(this.middlewareStack);
19
+ var handler = this.clientCommand.resolveMiddleware(stack, configuration, options);
20
+ return function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
21
+ return [2, handler(this.clientCommand)];
22
+ }); }); };
23
+ };
24
+ return ExecuteStatementCommand;
25
+ }(DynamoDBDocumentClientCommand));
26
+ export { ExecuteStatementCommand };