@aws-sdk/lib-dynamodb 3.1087.0 → 3.1088.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/README.md CHANGED
@@ -386,13 +386,9 @@ Others follow the same pattern.
386
386
  ```js
387
387
  import { DynamoDBDocumentClient, QueryCommand } from "@aws-sdk/lib-dynamodb";
388
388
 
389
- const client = new DynamoDBClient({
390
- /*...*/
391
- });
389
+ const client = new DynamoDBClient({/*...*/});
392
390
  const doc = DynamoDBDocumentClient.from(client);
393
- const command = new QueryCommand({
394
- /*...*/
395
- });
391
+ const command = new QueryCommand({/*...*/});
396
392
  ```
397
393
 
398
394
  Before and after marshalling:
@@ -3,18 +3,9 @@ import {
3
3
  BatchExecuteStatementCommandInput,
4
4
  BatchExecuteStatementCommandOutput,
5
5
  } from "./commands/BatchExecuteStatementCommand";
6
- import {
7
- BatchGetCommandInput,
8
- BatchGetCommandOutput,
9
- } from "./commands/BatchGetCommand";
10
- import {
11
- BatchWriteCommandInput,
12
- BatchWriteCommandOutput,
13
- } from "./commands/BatchWriteCommand";
14
- import {
15
- DeleteCommandInput,
16
- DeleteCommandOutput,
17
- } from "./commands/DeleteCommand";
6
+ import { BatchGetCommandInput, BatchGetCommandOutput } from "./commands/BatchGetCommand";
7
+ import { BatchWriteCommandInput, BatchWriteCommandOutput } from "./commands/BatchWriteCommand";
8
+ import { DeleteCommandInput, DeleteCommandOutput } from "./commands/DeleteCommand";
18
9
  import {
19
10
  ExecuteStatementCommandInput,
20
11
  ExecuteStatementCommandOutput,
@@ -27,195 +18,144 @@ import { GetCommandInput, GetCommandOutput } from "./commands/GetCommand";
27
18
  import { PutCommandInput, PutCommandOutput } from "./commands/PutCommand";
28
19
  import { QueryCommandInput, QueryCommandOutput } from "./commands/QueryCommand";
29
20
  import { ScanCommandInput, ScanCommandOutput } from "./commands/ScanCommand";
30
- import {
31
- TransactGetCommandInput,
32
- TransactGetCommandOutput,
33
- } from "./commands/TransactGetCommand";
21
+ import { TransactGetCommandInput, TransactGetCommandOutput } from "./commands/TransactGetCommand";
34
22
  import {
35
23
  TransactWriteCommandInput,
36
24
  TransactWriteCommandOutput,
37
25
  } from "./commands/TransactWriteCommand";
38
- import {
39
- UpdateCommandInput,
40
- UpdateCommandOutput,
41
- } from "./commands/UpdateCommand";
42
- import {
43
- DynamoDBDocumentClient,
44
- TranslateConfig,
45
- } from "./DynamoDBDocumentClient";
26
+ import { UpdateCommandInput, UpdateCommandOutput } from "./commands/UpdateCommand";
27
+ import { DynamoDBDocumentClient, TranslateConfig } from "./DynamoDBDocumentClient";
46
28
  import { DynamoDBClient } from "@aws-sdk/client-dynamodb";
47
29
  export declare class DynamoDBDocument extends DynamoDBDocumentClient {
48
- static from(
49
- client: DynamoDBClient,
50
- translateConfig?: TranslateConfig
51
- ): DynamoDBDocument;
30
+ static from(client: DynamoDBClient, translateConfig?: TranslateConfig): DynamoDBDocument;
52
31
  batchExecuteStatement(
53
32
  args: BatchExecuteStatementCommandInput,
54
- options?: __HttpHandlerOptions
33
+ options?: __HttpHandlerOptions,
55
34
  ): Promise<BatchExecuteStatementCommandOutput>;
56
35
  batchExecuteStatement(
57
36
  args: BatchExecuteStatementCommandInput,
58
- cb: (err: any, data?: BatchExecuteStatementCommandOutput) => void
37
+ cb: (err: any, data?: BatchExecuteStatementCommandOutput) => void,
59
38
  ): void;
60
39
  batchExecuteStatement(
61
40
  args: BatchExecuteStatementCommandInput,
62
41
  options: __HttpHandlerOptions,
63
- cb: (err: any, data?: BatchExecuteStatementCommandOutput) => void
42
+ cb: (err: any, data?: BatchExecuteStatementCommandOutput) => void,
64
43
  ): void;
65
44
  batchGet(
66
45
  args: BatchGetCommandInput,
67
- options?: __HttpHandlerOptions
46
+ options?: __HttpHandlerOptions,
68
47
  ): Promise<BatchGetCommandOutput>;
69
- batchGet(
70
- args: BatchGetCommandInput,
71
- cb: (err: any, data?: BatchGetCommandOutput) => void
72
- ): void;
48
+ batchGet(args: BatchGetCommandInput, cb: (err: any, data?: BatchGetCommandOutput) => void): void;
73
49
  batchGet(
74
50
  args: BatchGetCommandInput,
75
51
  options: __HttpHandlerOptions,
76
- cb: (err: any, data?: BatchGetCommandOutput) => void
52
+ cb: (err: any, data?: BatchGetCommandOutput) => void,
77
53
  ): void;
78
54
  batchWrite(
79
55
  args: BatchWriteCommandInput,
80
- options?: __HttpHandlerOptions
56
+ options?: __HttpHandlerOptions,
81
57
  ): Promise<BatchWriteCommandOutput>;
82
58
  batchWrite(
83
59
  args: BatchWriteCommandInput,
84
- cb: (err: any, data?: BatchWriteCommandOutput) => void
60
+ cb: (err: any, data?: BatchWriteCommandOutput) => void,
85
61
  ): void;
86
62
  batchWrite(
87
63
  args: BatchWriteCommandInput,
88
64
  options: __HttpHandlerOptions,
89
- cb: (err: any, data?: BatchWriteCommandOutput) => void
90
- ): void;
91
- delete(
92
- args: DeleteCommandInput,
93
- options?: __HttpHandlerOptions
94
- ): Promise<DeleteCommandOutput>;
95
- delete(
96
- args: DeleteCommandInput,
97
- cb: (err: any, data?: DeleteCommandOutput) => void
65
+ cb: (err: any, data?: BatchWriteCommandOutput) => void,
98
66
  ): void;
67
+ delete(args: DeleteCommandInput, options?: __HttpHandlerOptions): Promise<DeleteCommandOutput>;
68
+ delete(args: DeleteCommandInput, cb: (err: any, data?: DeleteCommandOutput) => void): void;
99
69
  delete(
100
70
  args: DeleteCommandInput,
101
71
  options: __HttpHandlerOptions,
102
- cb: (err: any, data?: DeleteCommandOutput) => void
72
+ cb: (err: any, data?: DeleteCommandOutput) => void,
103
73
  ): void;
104
74
  executeStatement(
105
75
  args: ExecuteStatementCommandInput,
106
- options?: __HttpHandlerOptions
76
+ options?: __HttpHandlerOptions,
107
77
  ): Promise<ExecuteStatementCommandOutput>;
108
78
  executeStatement(
109
79
  args: ExecuteStatementCommandInput,
110
- cb: (err: any, data?: ExecuteStatementCommandOutput) => void
80
+ cb: (err: any, data?: ExecuteStatementCommandOutput) => void,
111
81
  ): void;
112
82
  executeStatement(
113
83
  args: ExecuteStatementCommandInput,
114
84
  options: __HttpHandlerOptions,
115
- cb: (err: any, data?: ExecuteStatementCommandOutput) => void
85
+ cb: (err: any, data?: ExecuteStatementCommandOutput) => void,
116
86
  ): void;
117
87
  executeTransaction(
118
88
  args: ExecuteTransactionCommandInput,
119
- options?: __HttpHandlerOptions
89
+ options?: __HttpHandlerOptions,
120
90
  ): Promise<ExecuteTransactionCommandOutput>;
121
91
  executeTransaction(
122
92
  args: ExecuteTransactionCommandInput,
123
- cb: (err: any, data?: ExecuteTransactionCommandOutput) => void
93
+ cb: (err: any, data?: ExecuteTransactionCommandOutput) => void,
124
94
  ): void;
125
95
  executeTransaction(
126
96
  args: ExecuteTransactionCommandInput,
127
97
  options: __HttpHandlerOptions,
128
- cb: (err: any, data?: ExecuteTransactionCommandOutput) => void
129
- ): void;
130
- get(
131
- args: GetCommandInput,
132
- options?: __HttpHandlerOptions
133
- ): Promise<GetCommandOutput>;
134
- get(
135
- args: GetCommandInput,
136
- cb: (err: any, data?: GetCommandOutput) => void
98
+ cb: (err: any, data?: ExecuteTransactionCommandOutput) => void,
137
99
  ): void;
100
+ get(args: GetCommandInput, options?: __HttpHandlerOptions): Promise<GetCommandOutput>;
101
+ get(args: GetCommandInput, cb: (err: any, data?: GetCommandOutput) => void): void;
138
102
  get(
139
103
  args: GetCommandInput,
140
104
  options: __HttpHandlerOptions,
141
- cb: (err: any, data?: GetCommandOutput) => void
142
- ): void;
143
- put(
144
- args: PutCommandInput,
145
- options?: __HttpHandlerOptions
146
- ): Promise<PutCommandOutput>;
147
- put(
148
- args: PutCommandInput,
149
- cb: (err: any, data?: PutCommandOutput) => void
105
+ cb: (err: any, data?: GetCommandOutput) => void,
150
106
  ): void;
107
+ put(args: PutCommandInput, options?: __HttpHandlerOptions): Promise<PutCommandOutput>;
108
+ put(args: PutCommandInput, cb: (err: any, data?: PutCommandOutput) => void): void;
151
109
  put(
152
110
  args: PutCommandInput,
153
111
  options: __HttpHandlerOptions,
154
- cb: (err: any, data?: PutCommandOutput) => void
155
- ): void;
156
- query(
157
- args: QueryCommandInput,
158
- options?: __HttpHandlerOptions
159
- ): Promise<QueryCommandOutput>;
160
- query(
161
- args: QueryCommandInput,
162
- cb: (err: any, data?: QueryCommandOutput) => void
112
+ cb: (err: any, data?: PutCommandOutput) => void,
163
113
  ): void;
114
+ query(args: QueryCommandInput, options?: __HttpHandlerOptions): Promise<QueryCommandOutput>;
115
+ query(args: QueryCommandInput, cb: (err: any, data?: QueryCommandOutput) => void): void;
164
116
  query(
165
117
  args: QueryCommandInput,
166
118
  options: __HttpHandlerOptions,
167
- cb: (err: any, data?: QueryCommandOutput) => void
168
- ): void;
169
- scan(
170
- args: ScanCommandInput,
171
- options?: __HttpHandlerOptions
172
- ): Promise<ScanCommandOutput>;
173
- scan(
174
- args: ScanCommandInput,
175
- cb: (err: any, data?: ScanCommandOutput) => void
119
+ cb: (err: any, data?: QueryCommandOutput) => void,
176
120
  ): void;
121
+ scan(args: ScanCommandInput, options?: __HttpHandlerOptions): Promise<ScanCommandOutput>;
122
+ scan(args: ScanCommandInput, cb: (err: any, data?: ScanCommandOutput) => void): void;
177
123
  scan(
178
124
  args: ScanCommandInput,
179
125
  options: __HttpHandlerOptions,
180
- cb: (err: any, data?: ScanCommandOutput) => void
126
+ cb: (err: any, data?: ScanCommandOutput) => void,
181
127
  ): void;
182
128
  transactGet(
183
129
  args: TransactGetCommandInput,
184
- options?: __HttpHandlerOptions
130
+ options?: __HttpHandlerOptions,
185
131
  ): Promise<TransactGetCommandOutput>;
186
132
  transactGet(
187
133
  args: TransactGetCommandInput,
188
- cb: (err: any, data?: TransactGetCommandOutput) => void
134
+ cb: (err: any, data?: TransactGetCommandOutput) => void,
189
135
  ): void;
190
136
  transactGet(
191
137
  args: TransactGetCommandInput,
192
138
  options: __HttpHandlerOptions,
193
- cb: (err: any, data?: TransactGetCommandOutput) => void
139
+ cb: (err: any, data?: TransactGetCommandOutput) => void,
194
140
  ): void;
195
141
  transactWrite(
196
142
  args: TransactWriteCommandInput,
197
- options?: __HttpHandlerOptions
143
+ options?: __HttpHandlerOptions,
198
144
  ): Promise<TransactWriteCommandOutput>;
199
145
  transactWrite(
200
146
  args: TransactWriteCommandInput,
201
- cb: (err: any, data?: TransactWriteCommandOutput) => void
147
+ cb: (err: any, data?: TransactWriteCommandOutput) => void,
202
148
  ): void;
203
149
  transactWrite(
204
150
  args: TransactWriteCommandInput,
205
151
  options: __HttpHandlerOptions,
206
- cb: (err: any, data?: TransactWriteCommandOutput) => void
207
- ): void;
208
- update(
209
- args: UpdateCommandInput,
210
- options?: __HttpHandlerOptions
211
- ): Promise<UpdateCommandOutput>;
212
- update(
213
- args: UpdateCommandInput,
214
- cb: (err: any, data?: UpdateCommandOutput) => void
152
+ cb: (err: any, data?: TransactWriteCommandOutput) => void,
215
153
  ): void;
154
+ update(args: UpdateCommandInput, options?: __HttpHandlerOptions): Promise<UpdateCommandOutput>;
155
+ update(args: UpdateCommandInput, cb: (err: any, data?: UpdateCommandOutput) => void): void;
216
156
  update(
217
157
  args: UpdateCommandInput,
218
158
  options: __HttpHandlerOptions,
219
- cb: (err: any, data?: UpdateCommandOutput) => void
159
+ cb: (err: any, data?: UpdateCommandOutput) => void,
220
160
  ): void;
221
161
  }
@@ -4,18 +4,9 @@ import {
4
4
  BatchExecuteStatementCommandInput,
5
5
  BatchExecuteStatementCommandOutput,
6
6
  } from "./commands/BatchExecuteStatementCommand";
7
- import {
8
- BatchGetCommandInput,
9
- BatchGetCommandOutput,
10
- } from "./commands/BatchGetCommand";
11
- import {
12
- BatchWriteCommandInput,
13
- BatchWriteCommandOutput,
14
- } from "./commands/BatchWriteCommand";
15
- import {
16
- DeleteCommandInput,
17
- DeleteCommandOutput,
18
- } from "./commands/DeleteCommand";
7
+ import { BatchGetCommandInput, BatchGetCommandOutput } from "./commands/BatchGetCommand";
8
+ import { BatchWriteCommandInput, BatchWriteCommandOutput } from "./commands/BatchWriteCommand";
9
+ import { DeleteCommandInput, DeleteCommandOutput } from "./commands/DeleteCommand";
19
10
  import {
20
11
  ExecuteStatementCommandInput,
21
12
  ExecuteStatementCommandOutput,
@@ -28,18 +19,12 @@ import { GetCommandInput, GetCommandOutput } from "./commands/GetCommand";
28
19
  import { PutCommandInput, PutCommandOutput } from "./commands/PutCommand";
29
20
  import { QueryCommandInput, QueryCommandOutput } from "./commands/QueryCommand";
30
21
  import { ScanCommandInput, ScanCommandOutput } from "./commands/ScanCommand";
31
- import {
32
- TransactGetCommandInput,
33
- TransactGetCommandOutput,
34
- } from "./commands/TransactGetCommand";
22
+ import { TransactGetCommandInput, TransactGetCommandOutput } from "./commands/TransactGetCommand";
35
23
  import {
36
24
  TransactWriteCommandInput,
37
25
  TransactWriteCommandOutput,
38
26
  } from "./commands/TransactWriteCommand";
39
- import {
40
- UpdateCommandInput,
41
- UpdateCommandOutput,
42
- } from "./commands/UpdateCommand";
27
+ import { UpdateCommandInput, UpdateCommandOutput } from "./commands/UpdateCommand";
43
28
  import {
44
29
  DynamoDBClient,
45
30
  DynamoDBClientResolvedConfig,
@@ -82,10 +67,9 @@ export type TranslateConfig = {
82
67
  marshallOptions?: marshallOptions;
83
68
  unmarshallOptions?: unmarshallOptions;
84
69
  };
85
- export type DynamoDBDocumentClientResolvedConfig =
86
- DynamoDBClientResolvedConfig & {
87
- translateConfig?: TranslateConfig;
88
- };
70
+ export type DynamoDBDocumentClientResolvedConfig = DynamoDBClientResolvedConfig & {
71
+ translateConfig?: TranslateConfig;
72
+ };
89
73
  export declare class DynamoDBDocumentClient extends __Client<
90
74
  __HttpHandlerOptions,
91
75
  ServiceInputTypes,
@@ -93,13 +77,7 @@ export declare class DynamoDBDocumentClient extends __Client<
93
77
  DynamoDBDocumentClientResolvedConfig
94
78
  > {
95
79
  readonly config: DynamoDBDocumentClientResolvedConfig;
96
- protected constructor(
97
- client: DynamoDBClient,
98
- translateConfig?: TranslateConfig
99
- );
100
- static from(
101
- client: DynamoDBClient,
102
- translateConfig?: TranslateConfig
103
- ): DynamoDBDocumentClient;
80
+ protected constructor(client: DynamoDBClient, translateConfig?: TranslateConfig);
81
+ static from(client: DynamoDBClient, translateConfig?: TranslateConfig): DynamoDBDocumentClient;
104
82
  destroy(): void;
105
83
  }
@@ -7,12 +7,8 @@ export declare abstract class DynamoDBDocumentClientCommand<
7
7
  Output extends object,
8
8
  BaseInput extends object,
9
9
  BaseOutput extends object,
10
- ResolvedClientConfiguration
11
- > extends $Command<
12
- Input | BaseInput,
13
- Output | BaseOutput,
14
- ResolvedClientConfiguration
15
- > {
10
+ ResolvedClientConfiguration,
11
+ > extends $Command<Input | BaseInput, Output | BaseOutput, ResolvedClientConfiguration> {
16
12
  protected abstract readonly inputKeyNodes: KeyNodeChildren;
17
13
  protected abstract readonly outputKeyNodes: KeyNodeChildren;
18
14
  protected abstract clientCommand: $Command<
@@ -20,11 +16,6 @@ export declare abstract class DynamoDBDocumentClientCommand<
20
16
  Output | BaseOutput,
21
17
  ResolvedClientConfiguration
22
18
  >;
23
- abstract middlewareStack: MiddlewareStack<
24
- Input | BaseInput,
25
- Output | BaseOutput
26
- >;
27
- protected addMarshallingMiddleware(
28
- configuration: DynamoDBDocumentClientResolvedConfig
29
- ): void;
19
+ abstract middlewareStack: MiddlewareStack<Input | BaseInput, Output | BaseOutput>;
20
+ protected addMarshallingMiddleware(configuration: DynamoDBDocumentClientResolvedConfig): void;
30
21
  }
@@ -17,10 +17,7 @@ export type BatchExecuteStatementCommandInput = Pick<
17
17
  Exclude<keyof __BatchExecuteStatementCommandInput, "Statements">
18
18
  > & {
19
19
  Statements:
20
- | (Pick<
21
- BatchStatementRequest,
22
- Exclude<keyof BatchStatementRequest, "Parameters">
23
- > & {
20
+ | (Pick<BatchStatementRequest, Exclude<keyof BatchStatementRequest, "Parameters">> & {
24
21
  Parameters?: NativeAttributeValue[] | undefined;
25
22
  })[]
26
23
  | undefined;
@@ -30,15 +27,9 @@ export type BatchExecuteStatementCommandOutput = Pick<
30
27
  Exclude<keyof __BatchExecuteStatementCommandOutput, "Responses">
31
28
  > & {
32
29
  Responses?:
33
- | (Pick<
34
- BatchStatementResponse,
35
- Exclude<keyof BatchStatementResponse, "Error" | "Item">
36
- > & {
30
+ | (Pick<BatchStatementResponse, Exclude<keyof BatchStatementResponse, "Error" | "Item">> & {
37
31
  Error?:
38
- | (Pick<
39
- BatchStatementError,
40
- Exclude<keyof BatchStatementError, "Item">
41
- > & {
32
+ | (Pick<BatchStatementError, Exclude<keyof BatchStatementError, "Item">> & {
42
33
  Item?: Record<string, NativeAttributeValue> | undefined;
43
34
  })
44
35
  | undefined;
@@ -80,11 +71,8 @@ export declare class BatchExecuteStatementCommand extends DynamoDBDocumentClient
80
71
  resolveMiddleware(
81
72
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
82
73
  configuration: DynamoDBDocumentClientResolvedConfig,
83
- options?: __HttpHandlerOptions
84
- ): Handler<
85
- BatchExecuteStatementCommandInput,
86
- BatchExecuteStatementCommandOutput
87
- >;
74
+ options?: __HttpHandlerOptions,
75
+ ): Handler<BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput>;
88
76
  }
89
77
  import {
90
78
  BatchExecuteStatementCommandInput as __BatchExecuteStatementCommandInput,
@@ -29,9 +29,7 @@ export type BatchGetCommandOutput = Pick<
29
29
  __BatchGetItemCommandOutput,
30
30
  Exclude<keyof __BatchGetItemCommandOutput, "Responses" | "UnprocessedKeys">
31
31
  > & {
32
- Responses?:
33
- | Record<string, Record<string, NativeAttributeValue>[]>
34
- | undefined;
32
+ Responses?: Record<string, Record<string, NativeAttributeValue>[]> | undefined;
35
33
  UnprocessedKeys?:
36
34
  | Record<
37
35
  string,
@@ -81,7 +79,7 @@ export declare class BatchGetCommand extends DynamoDBDocumentClientCommand<
81
79
  resolveMiddleware(
82
80
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
83
81
  configuration: DynamoDBDocumentClientResolvedConfig,
84
- options?: __HttpHandlerOptions
82
+ options?: __HttpHandlerOptions,
85
83
  ): Handler<BatchGetCommandInput, BatchGetCommandOutput>;
86
84
  }
87
85
  import {
@@ -19,10 +19,7 @@ export type BatchWriteCommandInput = Pick<
19
19
  RequestItems:
20
20
  | Record<
21
21
  string,
22
- (Pick<
23
- WriteRequest,
24
- Exclude<keyof WriteRequest, "PutRequest" | "DeleteRequest">
25
- > & {
22
+ (Pick<WriteRequest, Exclude<keyof WriteRequest, "PutRequest" | "DeleteRequest">> & {
26
23
  PutRequest?:
27
24
  | (Pick<PutRequest, Exclude<keyof PutRequest, "Item">> & {
28
25
  Item: Record<string, NativeAttributeValue> | undefined;
@@ -39,18 +36,12 @@ export type BatchWriteCommandInput = Pick<
39
36
  };
40
37
  export type BatchWriteCommandOutput = Pick<
41
38
  __BatchWriteItemCommandOutput,
42
- Exclude<
43
- keyof __BatchWriteItemCommandOutput,
44
- "UnprocessedItems" | "ItemCollectionMetrics"
45
- >
39
+ Exclude<keyof __BatchWriteItemCommandOutput, "UnprocessedItems" | "ItemCollectionMetrics">
46
40
  > & {
47
41
  UnprocessedItems?:
48
42
  | Record<
49
43
  string,
50
- (Pick<
51
- WriteRequest,
52
- Exclude<keyof WriteRequest, "PutRequest" | "DeleteRequest">
53
- > & {
44
+ (Pick<WriteRequest, Exclude<keyof WriteRequest, "PutRequest" | "DeleteRequest">> & {
54
45
  PutRequest?:
55
46
  | (Pick<PutRequest, Exclude<keyof PutRequest, "Item">> & {
56
47
  Item: Record<string, NativeAttributeValue> | undefined;
@@ -67,10 +58,7 @@ export type BatchWriteCommandOutput = Pick<
67
58
  ItemCollectionMetrics?:
68
59
  | Record<
69
60
  string,
70
- (Pick<
71
- ItemCollectionMetrics,
72
- Exclude<keyof ItemCollectionMetrics, "ItemCollectionKey">
73
- > & {
61
+ (Pick<ItemCollectionMetrics, Exclude<keyof ItemCollectionMetrics, "ItemCollectionKey">> & {
74
62
  ItemCollectionKey?: Record<string, NativeAttributeValue> | undefined;
75
63
  })[]
76
64
  >
@@ -128,7 +116,7 @@ export declare class BatchWriteCommand extends DynamoDBDocumentClientCommand<
128
116
  resolveMiddleware(
129
117
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
130
118
  configuration: DynamoDBDocumentClientResolvedConfig,
131
- options?: __HttpHandlerOptions
119
+ options?: __HttpHandlerOptions,
132
120
  ): Handler<BatchWriteCommandInput, BatchWriteCommandOutput>;
133
121
  }
134
122
  import {
@@ -14,10 +14,7 @@ import { DeleteItemCommand as __DeleteItemCommand } from "@aws-sdk/client-dynamo
14
14
  export { DynamoDBDocumentClientCommand, $Command };
15
15
  export type DeleteCommandInput = Pick<
16
16
  __DeleteItemCommandInput,
17
- Exclude<
18
- keyof __DeleteItemCommandInput,
19
- "Key" | "Expected" | "ExpressionAttributeValues"
20
- >
17
+ Exclude<keyof __DeleteItemCommandInput, "Key" | "Expected" | "ExpressionAttributeValues">
21
18
  > & {
22
19
  Key: Record<string, NativeAttributeValue> | undefined;
23
20
  Expected?:
@@ -36,17 +33,11 @@ export type DeleteCommandInput = Pick<
36
33
  };
37
34
  export type DeleteCommandOutput = Pick<
38
35
  __DeleteItemCommandOutput,
39
- Exclude<
40
- keyof __DeleteItemCommandOutput,
41
- "Attributes" | "ItemCollectionMetrics"
42
- >
36
+ Exclude<keyof __DeleteItemCommandOutput, "Attributes" | "ItemCollectionMetrics">
43
37
  > & {
44
38
  Attributes?: Record<string, NativeAttributeValue> | undefined;
45
39
  ItemCollectionMetrics?:
46
- | (Pick<
47
- ItemCollectionMetrics,
48
- Exclude<keyof ItemCollectionMetrics, "ItemCollectionKey">
49
- > & {
40
+ | (Pick<ItemCollectionMetrics, Exclude<keyof ItemCollectionMetrics, "ItemCollectionKey">> & {
50
41
  ItemCollectionKey?: Record<string, NativeAttributeValue> | undefined;
51
42
  })
52
43
  | undefined;
@@ -84,7 +75,7 @@ export declare class DeleteCommand extends DynamoDBDocumentClientCommand<
84
75
  resolveMiddleware(
85
76
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
86
77
  configuration: DynamoDBDocumentClientResolvedConfig,
87
- options?: __HttpHandlerOptions
78
+ options?: __HttpHandlerOptions,
88
79
  ): Handler<DeleteCommandInput, DeleteCommandOutput>;
89
80
  }
90
81
  import {
@@ -51,7 +51,7 @@ export declare class ExecuteStatementCommand extends DynamoDBDocumentClientComma
51
51
  resolveMiddleware(
52
52
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
53
53
  configuration: DynamoDBDocumentClientResolvedConfig,
54
- options?: __HttpHandlerOptions
54
+ options?: __HttpHandlerOptions,
55
55
  ): Handler<ExecuteStatementCommandInput, ExecuteStatementCommandOutput>;
56
56
  }
57
57
  import {
@@ -17,10 +17,7 @@ export type ExecuteTransactionCommandInput = Pick<
17
17
  Exclude<keyof __ExecuteTransactionCommandInput, "TransactStatements">
18
18
  > & {
19
19
  TransactStatements:
20
- | (Pick<
21
- ParameterizedStatement,
22
- Exclude<keyof ParameterizedStatement, "Parameters">
23
- > & {
20
+ | (Pick<ParameterizedStatement, Exclude<keyof ParameterizedStatement, "Parameters">> & {
24
21
  Parameters?: NativeAttributeValue[] | undefined;
25
22
  })[]
26
23
  | undefined;
@@ -66,7 +63,7 @@ export declare class ExecuteTransactionCommand extends DynamoDBDocumentClientCom
66
63
  resolveMiddleware(
67
64
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
68
65
  configuration: DynamoDBDocumentClientResolvedConfig,
69
- options?: __HttpHandlerOptions
66
+ options?: __HttpHandlerOptions,
70
67
  ): Handler<ExecuteTransactionCommandInput, ExecuteTransactionCommandOutput>;
71
68
  }
72
69
  import {
@@ -47,7 +47,7 @@ export declare class GetCommand extends DynamoDBDocumentClientCommand<
47
47
  resolveMiddleware(
48
48
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
49
49
  configuration: DynamoDBDocumentClientResolvedConfig,
50
- options?: __HttpHandlerOptions
50
+ options?: __HttpHandlerOptions,
51
51
  ): Handler<GetCommandInput, GetCommandOutput>;
52
52
  }
53
53
  import {
@@ -14,10 +14,7 @@ import { PutItemCommand as __PutItemCommand } from "@aws-sdk/client-dynamodb";
14
14
  export { DynamoDBDocumentClientCommand, $Command };
15
15
  export type PutCommandInput = Pick<
16
16
  __PutItemCommandInput,
17
- Exclude<
18
- keyof __PutItemCommandInput,
19
- "Item" | "Expected" | "ExpressionAttributeValues"
20
- >
17
+ Exclude<keyof __PutItemCommandInput, "Item" | "Expected" | "ExpressionAttributeValues">
21
18
  > & {
22
19
  Item: Record<string, NativeAttributeValue> | undefined;
23
20
  Expected?:
@@ -40,10 +37,7 @@ export type PutCommandOutput = Pick<
40
37
  > & {
41
38
  Attributes?: Record<string, NativeAttributeValue> | undefined;
42
39
  ItemCollectionMetrics?:
43
- | (Pick<
44
- ItemCollectionMetrics,
45
- Exclude<keyof ItemCollectionMetrics, "ItemCollectionKey">
46
- > & {
40
+ | (Pick<ItemCollectionMetrics, Exclude<keyof ItemCollectionMetrics, "ItemCollectionKey">> & {
47
41
  ItemCollectionKey?: Record<string, NativeAttributeValue> | undefined;
48
42
  })
49
43
  | undefined;
@@ -81,7 +75,7 @@ export declare class PutCommand extends DynamoDBDocumentClientCommand<
81
75
  resolveMiddleware(
82
76
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
83
77
  configuration: DynamoDBDocumentClientResolvedConfig,
84
- options?: __HttpHandlerOptions
78
+ options?: __HttpHandlerOptions,
85
79
  ): Handler<PutCommandInput, PutCommandOutput>;
86
80
  }
87
81
  import {
@@ -16,10 +16,7 @@ export type QueryCommandInput = Pick<
16
16
  __QueryCommandInput,
17
17
  Exclude<
18
18
  keyof __QueryCommandInput,
19
- | "KeyConditions"
20
- | "QueryFilter"
21
- | "ExclusiveStartKey"
22
- | "ExpressionAttributeValues"
19
+ "KeyConditions" | "QueryFilter" | "ExclusiveStartKey" | "ExpressionAttributeValues"
23
20
  >
24
21
  > & {
25
22
  KeyConditions?:
@@ -85,7 +82,7 @@ export declare class QueryCommand extends DynamoDBDocumentClientCommand<
85
82
  resolveMiddleware(
86
83
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
87
84
  configuration: DynamoDBDocumentClientResolvedConfig,
88
- options?: __HttpHandlerOptions
85
+ options?: __HttpHandlerOptions,
89
86
  ): Handler<QueryCommandInput, QueryCommandOutput>;
90
87
  }
91
88
  import {
@@ -69,7 +69,7 @@ export declare class ScanCommand extends DynamoDBDocumentClientCommand<
69
69
  resolveMiddleware(
70
70
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
71
71
  configuration: DynamoDBDocumentClientResolvedConfig,
72
- options?: __HttpHandlerOptions
72
+ options?: __HttpHandlerOptions,
73
73
  ): Handler<ScanCommandInput, ScanCommandOutput>;
74
74
  }
75
75
  import {
@@ -69,7 +69,7 @@ export declare class TransactGetCommand extends DynamoDBDocumentClientCommand<
69
69
  resolveMiddleware(
70
70
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
71
71
  configuration: DynamoDBDocumentClientResolvedConfig,
72
- options?: __HttpHandlerOptions
72
+ options?: __HttpHandlerOptions,
73
73
  ): Handler<TransactGetCommandInput, TransactGetCommandOutput>;
74
74
  }
75
75
  import {
@@ -19,10 +19,7 @@ export type TransactWriteCommandInput = Pick<
19
19
  TransactItems:
20
20
  | (Pick<
21
21
  TransactWriteItem,
22
- Exclude<
23
- keyof TransactWriteItem,
24
- "ConditionCheck" | "Put" | "Delete" | "Update"
25
- >
22
+ Exclude<keyof TransactWriteItem, "ConditionCheck" | "Put" | "Delete" | "Update">
26
23
  > & {
27
24
  ConditionCheck?:
28
25
  | (Pick<
@@ -30,42 +27,25 @@ export type TransactWriteCommandInput = Pick<
30
27
  Exclude<keyof ConditionCheck, "Key" | "ExpressionAttributeValues">
31
28
  > & {
32
29
  Key: Record<string, NativeAttributeValue> | undefined;
33
- ExpressionAttributeValues?:
34
- | Record<string, NativeAttributeValue>
35
- | undefined;
30
+ ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
36
31
  })
37
32
  | undefined;
38
33
  Put?:
39
- | (Pick<
40
- Put,
41
- Exclude<keyof Put, "Item" | "ExpressionAttributeValues">
42
- > & {
34
+ | (Pick<Put, Exclude<keyof Put, "Item" | "ExpressionAttributeValues">> & {
43
35
  Item: Record<string, NativeAttributeValue> | undefined;
44
- ExpressionAttributeValues?:
45
- | Record<string, NativeAttributeValue>
46
- | undefined;
36
+ ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
47
37
  })
48
38
  | undefined;
49
39
  Delete?:
50
- | (Pick<
51
- Delete,
52
- Exclude<keyof Delete, "Key" | "ExpressionAttributeValues">
53
- > & {
40
+ | (Pick<Delete, Exclude<keyof Delete, "Key" | "ExpressionAttributeValues">> & {
54
41
  Key: Record<string, NativeAttributeValue> | undefined;
55
- ExpressionAttributeValues?:
56
- | Record<string, NativeAttributeValue>
57
- | undefined;
42
+ ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
58
43
  })
59
44
  | undefined;
60
45
  Update?:
61
- | (Pick<
62
- Update,
63
- Exclude<keyof Update, "Key" | "ExpressionAttributeValues">
64
- > & {
46
+ | (Pick<Update, Exclude<keyof Update, "Key" | "ExpressionAttributeValues">> & {
65
47
  Key: Record<string, NativeAttributeValue> | undefined;
66
- ExpressionAttributeValues?:
67
- | Record<string, NativeAttributeValue>
68
- | undefined;
48
+ ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
69
49
  })
70
50
  | undefined;
71
51
  })[]
@@ -78,10 +58,7 @@ export type TransactWriteCommandOutput = Pick<
78
58
  ItemCollectionMetrics?:
79
59
  | Record<
80
60
  string,
81
- (Pick<
82
- ItemCollectionMetrics,
83
- Exclude<keyof ItemCollectionMetrics, "ItemCollectionKey">
84
- > & {
61
+ (Pick<ItemCollectionMetrics, Exclude<keyof ItemCollectionMetrics, "ItemCollectionKey">> & {
85
62
  ItemCollectionKey?: Record<string, NativeAttributeValue> | undefined;
86
63
  })[]
87
64
  >
@@ -135,7 +112,7 @@ export declare class TransactWriteCommand extends DynamoDBDocumentClientCommand<
135
112
  resolveMiddleware(
136
113
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
137
114
  configuration: DynamoDBDocumentClientResolvedConfig,
138
- options?: __HttpHandlerOptions
115
+ options?: __HttpHandlerOptions,
139
116
  ): Handler<TransactWriteCommandInput, TransactWriteCommandOutput>;
140
117
  }
141
118
  import {
@@ -23,10 +23,7 @@ export type UpdateCommandInput = Pick<
23
23
  AttributeUpdates?:
24
24
  | Record<
25
25
  string,
26
- Pick<
27
- AttributeValueUpdate,
28
- Exclude<keyof AttributeValueUpdate, "Value">
29
- > & {
26
+ Pick<AttributeValueUpdate, Exclude<keyof AttributeValueUpdate, "Value">> & {
30
27
  Value?: NativeAttributeValue | undefined;
31
28
  }
32
29
  >
@@ -47,17 +44,11 @@ export type UpdateCommandInput = Pick<
47
44
  };
48
45
  export type UpdateCommandOutput = Pick<
49
46
  __UpdateItemCommandOutput,
50
- Exclude<
51
- keyof __UpdateItemCommandOutput,
52
- "Attributes" | "ItemCollectionMetrics"
53
- >
47
+ Exclude<keyof __UpdateItemCommandOutput, "Attributes" | "ItemCollectionMetrics">
54
48
  > & {
55
49
  Attributes?: Record<string, NativeAttributeValue> | undefined;
56
50
  ItemCollectionMetrics?:
57
- | (Pick<
58
- ItemCollectionMetrics,
59
- Exclude<keyof ItemCollectionMetrics, "ItemCollectionKey">
60
- > & {
51
+ | (Pick<ItemCollectionMetrics, Exclude<keyof ItemCollectionMetrics, "ItemCollectionKey">> & {
61
52
  ItemCollectionKey?: Record<string, NativeAttributeValue> | undefined;
62
53
  })
63
54
  | undefined;
@@ -100,7 +91,7 @@ export declare class UpdateCommand extends DynamoDBDocumentClientCommand<
100
91
  resolveMiddleware(
101
92
  clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
102
93
  configuration: DynamoDBDocumentClientResolvedConfig,
103
- options?: __HttpHandlerOptions
94
+ options?: __HttpHandlerOptions,
104
95
  ): Handler<UpdateCommandInput, UpdateCommandOutput>;
105
96
  }
106
97
  import {
@@ -8,10 +8,10 @@ export type KeyNodes = KeyNodeSelf | KeyNodeChildren;
8
8
  export declare const marshallInput: (
9
9
  obj: any,
10
10
  keyNodes: KeyNodeChildren,
11
- options?: marshallOptions
11
+ options?: marshallOptions,
12
12
  ) => any;
13
13
  export declare const unmarshallOutput: (
14
14
  obj: any,
15
15
  keyNodes: KeyNodeChildren,
16
- options?: unmarshallOptions
16
+ options?: unmarshallOptions,
17
17
  ) => any;
@@ -2,7 +2,6 @@ import { PaginationConfiguration } from "@smithy/types";
2
2
  import { DynamoDBDocument } from "../DynamoDBDocument";
3
3
  import { DynamoDBDocumentClient } from "../DynamoDBDocumentClient";
4
4
  export { PaginationConfiguration };
5
- export interface DynamoDBDocumentPaginationConfiguration
6
- extends PaginationConfiguration {
5
+ export interface DynamoDBDocumentPaginationConfiguration extends PaginationConfiguration {
7
6
  client: DynamoDBDocument | DynamoDBDocumentClient;
8
7
  }
@@ -1,8 +1,5 @@
1
1
  import { Paginator } from "@smithy/types";
2
- import {
3
- QueryCommandInput,
4
- QueryCommandOutput,
5
- } from "../commands/QueryCommand";
2
+ import { QueryCommandInput, QueryCommandOutput } from "../commands/QueryCommand";
6
3
  import { DynamoDBDocumentPaginationConfiguration } from "./Interfaces";
7
4
  export { Paginator };
8
5
  export declare const paginateQuery: (
package/package.json CHANGED
@@ -1,10 +1,31 @@
1
1
  {
2
2
  "name": "@aws-sdk/lib-dynamodb",
3
- "version": "3.1087.0",
3
+ "version": "3.1088.0",
4
4
  "description": "The document client simplifies working with items in Amazon DynamoDB by abstracting away the notion of attribute values.",
5
+ "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/lib/lib-dynamodb",
6
+ "license": "Apache-2.0",
7
+ "author": {
8
+ "name": "AWS SDK for JavaScript Team",
9
+ "url": "https://aws.amazon.com/sdk-for-javascript/"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/aws/aws-sdk-js-v3.git",
14
+ "directory": "lib/lib-dynamodb"
15
+ },
16
+ "files": [
17
+ "dist-*/**"
18
+ ],
5
19
  "main": "./dist-cjs/index.js",
6
20
  "module": "./dist-es/index.js",
7
21
  "types": "./dist-types/index.d.ts",
22
+ "typesVersions": {
23
+ "<4.5": {
24
+ "dist-types/*": [
25
+ "dist-types/ts3.4/*"
26
+ ]
27
+ }
28
+ },
8
29
  "scripts": {
9
30
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
10
31
  "build:cjs": "node ../../scripts/compilation/inline",
@@ -21,26 +42,15 @@
21
42
  "test:e2e": "yarn g:vitest run -c vitest.config.e2e.mts --mode development",
22
43
  "test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.mts"
23
44
  },
24
- "engines": {
25
- "node": ">=20.0.0"
26
- },
27
- "author": {
28
- "name": "AWS SDK for JavaScript Team",
29
- "url": "https://aws.amazon.com/sdk-for-javascript/"
30
- },
31
- "license": "Apache-2.0",
32
45
  "dependencies": {
33
- "@aws-sdk/core": "^3.975.2",
34
- "@aws-sdk/util-dynamodb": "^3.996.6",
35
- "@smithy/core": "^3.29.3",
46
+ "@aws-sdk/core": "^3.975.3",
47
+ "@aws-sdk/util-dynamodb": "^3.996.7",
48
+ "@smithy/core": "^3.29.4",
36
49
  "@smithy/types": "^4.16.1",
37
50
  "tslib": "^2.6.2"
38
51
  },
39
- "peerDependencies": {
40
- "@aws-sdk/client-dynamodb": "^3.1087.0"
41
- },
42
52
  "devDependencies": {
43
- "@aws-sdk/client-dynamodb": "3.1087.0",
53
+ "@aws-sdk/client-dynamodb": "3.1088.0",
44
54
  "@tsconfig/recommended": "1.0.1",
45
55
  "@types/node": "^20.14.8",
46
56
  "concurrently": "7.0.0",
@@ -48,20 +58,10 @@
48
58
  "premove": "4.0.0",
49
59
  "typescript": "~5.8.3"
50
60
  },
51
- "typesVersions": {
52
- "<4.5": {
53
- "dist-types/*": [
54
- "dist-types/ts3.4/*"
55
- ]
56
- }
61
+ "peerDependencies": {
62
+ "@aws-sdk/client-dynamodb": "^3.1088.0"
57
63
  },
58
- "files": [
59
- "dist-*/**"
60
- ],
61
- "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/lib/lib-dynamodb",
62
- "repository": {
63
- "type": "git",
64
- "url": "https://github.com/aws/aws-sdk-js-v3.git",
65
- "directory": "lib/lib-dynamodb"
64
+ "engines": {
65
+ "node": ">=20.0.0"
66
66
  }
67
67
  }