@depup/aws-sdk__lib-dynamodb 3.1005.0-depup.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 (73) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +31 -0
  3. package/dist-cjs/index.js +836 -0
  4. package/dist-es/DynamoDBDocument.js +214 -0
  5. package/dist-es/DynamoDBDocumentClient.js +20 -0
  6. package/dist-es/baseCommand/DynamoDBDocumentClientCommand.js +32 -0
  7. package/dist-es/commands/BatchExecuteStatementCommand.js +39 -0
  8. package/dist-es/commands/BatchGetCommand.js +45 -0
  9. package/dist-es/commands/BatchWriteCommand.js +57 -0
  10. package/dist-es/commands/DeleteCommand.js +38 -0
  11. package/dist-es/commands/ExecuteStatementCommand.js +31 -0
  12. package/dist-es/commands/ExecuteTransactionCommand.js +36 -0
  13. package/dist-es/commands/GetCommand.js +28 -0
  14. package/dist-es/commands/PutCommand.js +38 -0
  15. package/dist-es/commands/QueryCommand.js +42 -0
  16. package/dist-es/commands/ScanCommand.js +37 -0
  17. package/dist-es/commands/TransactGetCommand.js +38 -0
  18. package/dist-es/commands/TransactWriteCommand.js +53 -0
  19. package/dist-es/commands/UpdateCommand.js +43 -0
  20. package/dist-es/commands/index.js +13 -0
  21. package/dist-es/commands/utils.js +80 -0
  22. package/dist-es/index.js +5 -0
  23. package/dist-es/pagination/Interfaces.js +1 -0
  24. package/dist-es/pagination/QueryPaginator.js +4 -0
  25. package/dist-es/pagination/ScanPaginator.js +4 -0
  26. package/dist-es/pagination/index.js +3 -0
  27. package/dist-types/DynamoDBDocument.d.ts +195 -0
  28. package/dist-types/DynamoDBDocumentClient.d.ts +96 -0
  29. package/dist-types/baseCommand/DynamoDBDocumentClientCommand.d.ts +17 -0
  30. package/dist-types/commands/BatchExecuteStatementCommand.d.ts +66 -0
  31. package/dist-types/commands/BatchGetCommand.d.ts +70 -0
  32. package/dist-types/commands/BatchWriteCommand.d.ts +94 -0
  33. package/dist-types/commands/DeleteCommand.d.ts +66 -0
  34. package/dist-types/commands/ExecuteStatementCommand.d.ts +52 -0
  35. package/dist-types/commands/ExecuteTransactionCommand.d.ts +60 -0
  36. package/dist-types/commands/GetCommand.d.ts +48 -0
  37. package/dist-types/commands/PutCommand.d.ts +66 -0
  38. package/dist-types/commands/QueryCommand.d.ts +70 -0
  39. package/dist-types/commands/ScanCommand.d.ts +62 -0
  40. package/dist-types/commands/TransactGetCommand.d.ts +64 -0
  41. package/dist-types/commands/TransactWriteCommand.d.ts +92 -0
  42. package/dist-types/commands/UpdateCommand.d.ts +74 -0
  43. package/dist-types/commands/index.d.ts +13 -0
  44. package/dist-types/commands/utils.d.ts +33 -0
  45. package/dist-types/index.d.ts +7 -0
  46. package/dist-types/pagination/Interfaces.d.ts +13 -0
  47. package/dist-types/pagination/QueryPaginator.d.ts +11 -0
  48. package/dist-types/pagination/ScanPaginator.d.ts +11 -0
  49. package/dist-types/pagination/index.d.ts +3 -0
  50. package/dist-types/ts3.4/DynamoDBDocument.d.ts +221 -0
  51. package/dist-types/ts3.4/DynamoDBDocumentClient.d.ts +105 -0
  52. package/dist-types/ts3.4/baseCommand/DynamoDBDocumentClientCommand.d.ts +30 -0
  53. package/dist-types/ts3.4/commands/BatchExecuteStatementCommand.d.ts +96 -0
  54. package/dist-types/ts3.4/commands/BatchGetCommand.d.ts +92 -0
  55. package/dist-types/ts3.4/commands/BatchWriteCommand.d.ts +142 -0
  56. package/dist-types/ts3.4/commands/DeleteCommand.d.ts +96 -0
  57. package/dist-types/ts3.4/commands/ExecuteStatementCommand.d.ts +61 -0
  58. package/dist-types/ts3.4/commands/ExecuteTransactionCommand.d.ts +78 -0
  59. package/dist-types/ts3.4/commands/GetCommand.d.ts +57 -0
  60. package/dist-types/ts3.4/commands/PutCommand.d.ts +93 -0
  61. package/dist-types/ts3.4/commands/QueryCommand.d.ts +96 -0
  62. package/dist-types/ts3.4/commands/ScanCommand.d.ts +80 -0
  63. package/dist-types/ts3.4/commands/TransactGetCommand.d.ts +82 -0
  64. package/dist-types/ts3.4/commands/TransactWriteCommand.d.ts +151 -0
  65. package/dist-types/ts3.4/commands/UpdateCommand.d.ts +113 -0
  66. package/dist-types/ts3.4/commands/index.d.ts +13 -0
  67. package/dist-types/ts3.4/commands/utils.d.ts +17 -0
  68. package/dist-types/ts3.4/index.d.ts +11 -0
  69. package/dist-types/ts3.4/pagination/Interfaces.d.ts +8 -0
  70. package/dist-types/ts3.4/pagination/QueryPaginator.d.ts +12 -0
  71. package/dist-types/ts3.4/pagination/ScanPaginator.d.ts +9 -0
  72. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  73. package/package.json +87 -0
@@ -0,0 +1,96 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import {
3
+ HttpHandlerOptions as __HttpHandlerOptions,
4
+ Handler,
5
+ MiddlewareStack,
6
+ } from "@smithy/types";
7
+ import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
8
+ import {
9
+ DynamoDBDocumentClientResolvedConfig,
10
+ ServiceInputTypes,
11
+ ServiceOutputTypes,
12
+ } from "../DynamoDBDocumentClient";
13
+ import { BatchExecuteStatementCommand as __BatchExecuteStatementCommand } from "@aws-sdk/client-dynamodb";
14
+ export { DynamoDBDocumentClientCommand, $Command };
15
+ export type BatchExecuteStatementCommandInput = Pick<
16
+ __BatchExecuteStatementCommandInput,
17
+ Exclude<keyof __BatchExecuteStatementCommandInput, "Statements">
18
+ > & {
19
+ Statements:
20
+ | (Pick<
21
+ BatchStatementRequest,
22
+ Exclude<keyof BatchStatementRequest, "Parameters">
23
+ > & {
24
+ Parameters?: NativeAttributeValue[] | undefined;
25
+ })[]
26
+ | undefined;
27
+ };
28
+ export type BatchExecuteStatementCommandOutput = Pick<
29
+ __BatchExecuteStatementCommandOutput,
30
+ Exclude<keyof __BatchExecuteStatementCommandOutput, "Responses">
31
+ > & {
32
+ Responses?:
33
+ | (Pick<
34
+ BatchStatementResponse,
35
+ Exclude<keyof BatchStatementResponse, "Error" | "Item">
36
+ > & {
37
+ Error?:
38
+ | (Pick<
39
+ BatchStatementError,
40
+ Exclude<keyof BatchStatementError, "Item">
41
+ > & {
42
+ Item?: Record<string, NativeAttributeValue> | undefined;
43
+ })
44
+ | undefined;
45
+ Item?: Record<string, NativeAttributeValue> | undefined;
46
+ })[]
47
+ | undefined;
48
+ };
49
+ export declare class BatchExecuteStatementCommand extends DynamoDBDocumentClientCommand<
50
+ BatchExecuteStatementCommandInput,
51
+ BatchExecuteStatementCommandOutput,
52
+ __BatchExecuteStatementCommandInput,
53
+ __BatchExecuteStatementCommandOutput,
54
+ DynamoDBDocumentClientResolvedConfig
55
+ > {
56
+ readonly input: BatchExecuteStatementCommandInput;
57
+ protected readonly inputKeyNodes: {
58
+ Statements: {
59
+ "*": {
60
+ Parameters: import("../commands/utils").KeyNodeChildren;
61
+ };
62
+ };
63
+ };
64
+ protected readonly outputKeyNodes: {
65
+ Responses: {
66
+ "*": {
67
+ Error: {
68
+ Item: import("../commands/utils").KeyNodeChildren;
69
+ };
70
+ Item: import("../commands/utils").KeyNodeChildren;
71
+ };
72
+ };
73
+ };
74
+ protected readonly clientCommand: __BatchExecuteStatementCommand;
75
+ readonly middlewareStack: MiddlewareStack<
76
+ BatchExecuteStatementCommandInput | __BatchExecuteStatementCommandInput,
77
+ BatchExecuteStatementCommandOutput | __BatchExecuteStatementCommandOutput
78
+ >;
79
+ constructor(input: BatchExecuteStatementCommandInput);
80
+ resolveMiddleware(
81
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
82
+ configuration: DynamoDBDocumentClientResolvedConfig,
83
+ options?: __HttpHandlerOptions
84
+ ): Handler<
85
+ BatchExecuteStatementCommandInput,
86
+ BatchExecuteStatementCommandOutput
87
+ >;
88
+ }
89
+ import {
90
+ BatchExecuteStatementCommandInput as __BatchExecuteStatementCommandInput,
91
+ BatchExecuteStatementCommandOutput as __BatchExecuteStatementCommandOutput,
92
+ BatchStatementError,
93
+ BatchStatementRequest,
94
+ BatchStatementResponse,
95
+ } from "@aws-sdk/client-dynamodb";
96
+ import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
@@ -0,0 +1,92 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import {
3
+ HttpHandlerOptions as __HttpHandlerOptions,
4
+ Handler,
5
+ MiddlewareStack,
6
+ } from "@smithy/types";
7
+ import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
8
+ import {
9
+ DynamoDBDocumentClientResolvedConfig,
10
+ ServiceInputTypes,
11
+ ServiceOutputTypes,
12
+ } from "../DynamoDBDocumentClient";
13
+ import { BatchGetItemCommand as __BatchGetItemCommand } from "@aws-sdk/client-dynamodb";
14
+ export { DynamoDBDocumentClientCommand, $Command };
15
+ export type BatchGetCommandInput = Pick<
16
+ __BatchGetItemCommandInput,
17
+ Exclude<keyof __BatchGetItemCommandInput, "RequestItems">
18
+ > & {
19
+ RequestItems:
20
+ | Record<
21
+ string,
22
+ Pick<KeysAndAttributes, Exclude<keyof KeysAndAttributes, "Keys">> & {
23
+ Keys: Record<string, NativeAttributeValue>[] | undefined;
24
+ }
25
+ >
26
+ | undefined;
27
+ };
28
+ export type BatchGetCommandOutput = Pick<
29
+ __BatchGetItemCommandOutput,
30
+ Exclude<keyof __BatchGetItemCommandOutput, "Responses" | "UnprocessedKeys">
31
+ > & {
32
+ Responses?:
33
+ | Record<string, Record<string, NativeAttributeValue>[]>
34
+ | undefined;
35
+ UnprocessedKeys?:
36
+ | Record<
37
+ string,
38
+ Pick<KeysAndAttributes, Exclude<keyof KeysAndAttributes, "Keys">> & {
39
+ Keys: Record<string, NativeAttributeValue>[] | undefined;
40
+ }
41
+ >
42
+ | undefined;
43
+ };
44
+ export declare class BatchGetCommand extends DynamoDBDocumentClientCommand<
45
+ BatchGetCommandInput,
46
+ BatchGetCommandOutput,
47
+ __BatchGetItemCommandInput,
48
+ __BatchGetItemCommandOutput,
49
+ DynamoDBDocumentClientResolvedConfig
50
+ > {
51
+ readonly input: BatchGetCommandInput;
52
+ protected readonly inputKeyNodes: {
53
+ RequestItems: {
54
+ "*": {
55
+ Keys: {
56
+ "*": import("../commands/utils").KeyNodeChildren;
57
+ };
58
+ };
59
+ };
60
+ };
61
+ protected readonly outputKeyNodes: {
62
+ Responses: {
63
+ "*": {
64
+ "*": import("../commands/utils").KeyNodeChildren;
65
+ };
66
+ };
67
+ UnprocessedKeys: {
68
+ "*": {
69
+ Keys: {
70
+ "*": import("../commands/utils").KeyNodeChildren;
71
+ };
72
+ };
73
+ };
74
+ };
75
+ protected readonly clientCommand: __BatchGetItemCommand;
76
+ readonly middlewareStack: MiddlewareStack<
77
+ BatchGetCommandInput | __BatchGetItemCommandInput,
78
+ BatchGetCommandOutput | __BatchGetItemCommandOutput
79
+ >;
80
+ constructor(input: BatchGetCommandInput);
81
+ resolveMiddleware(
82
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
83
+ configuration: DynamoDBDocumentClientResolvedConfig,
84
+ options?: __HttpHandlerOptions
85
+ ): Handler<BatchGetCommandInput, BatchGetCommandOutput>;
86
+ }
87
+ import {
88
+ BatchGetItemCommandInput as __BatchGetItemCommandInput,
89
+ BatchGetItemCommandOutput as __BatchGetItemCommandOutput,
90
+ KeysAndAttributes,
91
+ } from "@aws-sdk/client-dynamodb";
92
+ import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
@@ -0,0 +1,142 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import {
3
+ HttpHandlerOptions as __HttpHandlerOptions,
4
+ Handler,
5
+ MiddlewareStack,
6
+ } from "@smithy/types";
7
+ import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
8
+ import {
9
+ DynamoDBDocumentClientResolvedConfig,
10
+ ServiceInputTypes,
11
+ ServiceOutputTypes,
12
+ } from "../DynamoDBDocumentClient";
13
+ import { BatchWriteItemCommand as __BatchWriteItemCommand } from "@aws-sdk/client-dynamodb";
14
+ export { DynamoDBDocumentClientCommand, $Command };
15
+ export type BatchWriteCommandInput = Pick<
16
+ __BatchWriteItemCommandInput,
17
+ Exclude<keyof __BatchWriteItemCommandInput, "RequestItems">
18
+ > & {
19
+ RequestItems:
20
+ | Record<
21
+ string,
22
+ (Pick<
23
+ WriteRequest,
24
+ Exclude<keyof WriteRequest, "PutRequest" | "DeleteRequest">
25
+ > & {
26
+ PutRequest?:
27
+ | (Pick<PutRequest, Exclude<keyof PutRequest, "Item">> & {
28
+ Item: Record<string, NativeAttributeValue> | undefined;
29
+ })
30
+ | undefined;
31
+ DeleteRequest?:
32
+ | (Pick<DeleteRequest, Exclude<keyof DeleteRequest, "Key">> & {
33
+ Key: Record<string, NativeAttributeValue> | undefined;
34
+ })
35
+ | undefined;
36
+ })[]
37
+ >
38
+ | undefined;
39
+ };
40
+ export type BatchWriteCommandOutput = Pick<
41
+ __BatchWriteItemCommandOutput,
42
+ Exclude<
43
+ keyof __BatchWriteItemCommandOutput,
44
+ "UnprocessedItems" | "ItemCollectionMetrics"
45
+ >
46
+ > & {
47
+ UnprocessedItems?:
48
+ | Record<
49
+ string,
50
+ (Pick<
51
+ WriteRequest,
52
+ Exclude<keyof WriteRequest, "PutRequest" | "DeleteRequest">
53
+ > & {
54
+ PutRequest?:
55
+ | (Pick<PutRequest, Exclude<keyof PutRequest, "Item">> & {
56
+ Item: Record<string, NativeAttributeValue> | undefined;
57
+ })
58
+ | undefined;
59
+ DeleteRequest?:
60
+ | (Pick<DeleteRequest, Exclude<keyof DeleteRequest, "Key">> & {
61
+ Key: Record<string, NativeAttributeValue> | undefined;
62
+ })
63
+ | undefined;
64
+ })[]
65
+ >
66
+ | undefined;
67
+ ItemCollectionMetrics?:
68
+ | Record<
69
+ string,
70
+ (Pick<
71
+ ItemCollectionMetrics,
72
+ Exclude<keyof ItemCollectionMetrics, "ItemCollectionKey">
73
+ > & {
74
+ ItemCollectionKey?: Record<string, NativeAttributeValue> | undefined;
75
+ })[]
76
+ >
77
+ | undefined;
78
+ };
79
+ export declare class BatchWriteCommand extends DynamoDBDocumentClientCommand<
80
+ BatchWriteCommandInput,
81
+ BatchWriteCommandOutput,
82
+ __BatchWriteItemCommandInput,
83
+ __BatchWriteItemCommandOutput,
84
+ DynamoDBDocumentClientResolvedConfig
85
+ > {
86
+ readonly input: BatchWriteCommandInput;
87
+ protected readonly inputKeyNodes: {
88
+ RequestItems: {
89
+ "*": {
90
+ "*": {
91
+ PutRequest: {
92
+ Item: import("../commands/utils").KeyNodeChildren;
93
+ };
94
+ DeleteRequest: {
95
+ Key: import("../commands/utils").KeyNodeChildren;
96
+ };
97
+ };
98
+ };
99
+ };
100
+ };
101
+ protected readonly outputKeyNodes: {
102
+ UnprocessedItems: {
103
+ "*": {
104
+ "*": {
105
+ PutRequest: {
106
+ Item: import("../commands/utils").KeyNodeChildren;
107
+ };
108
+ DeleteRequest: {
109
+ Key: import("../commands/utils").KeyNodeChildren;
110
+ };
111
+ };
112
+ };
113
+ };
114
+ ItemCollectionMetrics: {
115
+ "*": {
116
+ "*": {
117
+ ItemCollectionKey: import("../commands/utils").KeyNodeChildren;
118
+ };
119
+ };
120
+ };
121
+ };
122
+ protected readonly clientCommand: __BatchWriteItemCommand;
123
+ readonly middlewareStack: MiddlewareStack<
124
+ BatchWriteCommandInput | __BatchWriteItemCommandInput,
125
+ BatchWriteCommandOutput | __BatchWriteItemCommandOutput
126
+ >;
127
+ constructor(input: BatchWriteCommandInput);
128
+ resolveMiddleware(
129
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
130
+ configuration: DynamoDBDocumentClientResolvedConfig,
131
+ options?: __HttpHandlerOptions
132
+ ): Handler<BatchWriteCommandInput, BatchWriteCommandOutput>;
133
+ }
134
+ import {
135
+ BatchWriteItemCommandInput as __BatchWriteItemCommandInput,
136
+ BatchWriteItemCommandOutput as __BatchWriteItemCommandOutput,
137
+ DeleteRequest,
138
+ ItemCollectionMetrics,
139
+ PutRequest,
140
+ WriteRequest,
141
+ } from "@aws-sdk/client-dynamodb";
142
+ import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
@@ -0,0 +1,96 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import {
3
+ HttpHandlerOptions as __HttpHandlerOptions,
4
+ Handler,
5
+ MiddlewareStack,
6
+ } from "@smithy/types";
7
+ import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
8
+ import {
9
+ DynamoDBDocumentClientResolvedConfig,
10
+ ServiceInputTypes,
11
+ ServiceOutputTypes,
12
+ } from "../DynamoDBDocumentClient";
13
+ import { DeleteItemCommand as __DeleteItemCommand } from "@aws-sdk/client-dynamodb";
14
+ export { DynamoDBDocumentClientCommand, $Command };
15
+ export type DeleteCommandInput = Pick<
16
+ __DeleteItemCommandInput,
17
+ Exclude<
18
+ keyof __DeleteItemCommandInput,
19
+ "Key" | "Expected" | "ExpressionAttributeValues"
20
+ >
21
+ > & {
22
+ Key: Record<string, NativeAttributeValue> | undefined;
23
+ Expected?:
24
+ | Record<
25
+ string,
26
+ Pick<
27
+ ExpectedAttributeValue,
28
+ Exclude<keyof ExpectedAttributeValue, "Value" | "AttributeValueList">
29
+ > & {
30
+ Value?: NativeAttributeValue | undefined;
31
+ AttributeValueList?: NativeAttributeValue[] | undefined;
32
+ }
33
+ >
34
+ | undefined;
35
+ ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
36
+ };
37
+ export type DeleteCommandOutput = Pick<
38
+ __DeleteItemCommandOutput,
39
+ Exclude<
40
+ keyof __DeleteItemCommandOutput,
41
+ "Attributes" | "ItemCollectionMetrics"
42
+ >
43
+ > & {
44
+ Attributes?: Record<string, NativeAttributeValue> | undefined;
45
+ ItemCollectionMetrics?:
46
+ | (Pick<
47
+ ItemCollectionMetrics,
48
+ Exclude<keyof ItemCollectionMetrics, "ItemCollectionKey">
49
+ > & {
50
+ ItemCollectionKey?: Record<string, NativeAttributeValue> | undefined;
51
+ })
52
+ | undefined;
53
+ };
54
+ export declare class DeleteCommand extends DynamoDBDocumentClientCommand<
55
+ DeleteCommandInput,
56
+ DeleteCommandOutput,
57
+ __DeleteItemCommandInput,
58
+ __DeleteItemCommandOutput,
59
+ DynamoDBDocumentClientResolvedConfig
60
+ > {
61
+ readonly input: DeleteCommandInput;
62
+ protected readonly inputKeyNodes: {
63
+ Key: import("../commands/utils").KeyNodeChildren;
64
+ Expected: {
65
+ "*": {
66
+ Value: null;
67
+ AttributeValueList: import("../commands/utils").KeyNodeChildren;
68
+ };
69
+ };
70
+ ExpressionAttributeValues: import("../commands/utils").KeyNodeChildren;
71
+ };
72
+ protected readonly outputKeyNodes: {
73
+ Attributes: import("../commands/utils").KeyNodeChildren;
74
+ ItemCollectionMetrics: {
75
+ ItemCollectionKey: import("../commands/utils").KeyNodeChildren;
76
+ };
77
+ };
78
+ protected readonly clientCommand: __DeleteItemCommand;
79
+ readonly middlewareStack: MiddlewareStack<
80
+ DeleteCommandInput | __DeleteItemCommandInput,
81
+ DeleteCommandOutput | __DeleteItemCommandOutput
82
+ >;
83
+ constructor(input: DeleteCommandInput);
84
+ resolveMiddleware(
85
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
86
+ configuration: DynamoDBDocumentClientResolvedConfig,
87
+ options?: __HttpHandlerOptions
88
+ ): Handler<DeleteCommandInput, DeleteCommandOutput>;
89
+ }
90
+ import {
91
+ DeleteItemCommandInput as __DeleteItemCommandInput,
92
+ DeleteItemCommandOutput as __DeleteItemCommandOutput,
93
+ ExpectedAttributeValue,
94
+ ItemCollectionMetrics,
95
+ } from "@aws-sdk/client-dynamodb";
96
+ import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
@@ -0,0 +1,61 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import {
3
+ HttpHandlerOptions as __HttpHandlerOptions,
4
+ Handler,
5
+ MiddlewareStack,
6
+ } from "@smithy/types";
7
+ import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
8
+ import {
9
+ DynamoDBDocumentClientResolvedConfig,
10
+ ServiceInputTypes,
11
+ ServiceOutputTypes,
12
+ } from "../DynamoDBDocumentClient";
13
+ import { ExecuteStatementCommand as __ExecuteStatementCommand } from "@aws-sdk/client-dynamodb";
14
+ export { DynamoDBDocumentClientCommand, $Command };
15
+ export type ExecuteStatementCommandInput = Pick<
16
+ __ExecuteStatementCommandInput,
17
+ Exclude<keyof __ExecuteStatementCommandInput, "Parameters">
18
+ > & {
19
+ Parameters?: NativeAttributeValue[] | undefined;
20
+ };
21
+ export type ExecuteStatementCommandOutput = Pick<
22
+ __ExecuteStatementCommandOutput,
23
+ Exclude<keyof __ExecuteStatementCommandOutput, "Items" | "LastEvaluatedKey">
24
+ > & {
25
+ Items?: Record<string, NativeAttributeValue>[] | undefined;
26
+ LastEvaluatedKey?: Record<string, NativeAttributeValue> | undefined;
27
+ };
28
+ export declare class ExecuteStatementCommand extends DynamoDBDocumentClientCommand<
29
+ ExecuteStatementCommandInput,
30
+ ExecuteStatementCommandOutput,
31
+ __ExecuteStatementCommandInput,
32
+ __ExecuteStatementCommandOutput,
33
+ DynamoDBDocumentClientResolvedConfig
34
+ > {
35
+ readonly input: ExecuteStatementCommandInput;
36
+ protected readonly inputKeyNodes: {
37
+ Parameters: import("../commands/utils").KeyNodeChildren;
38
+ };
39
+ protected readonly outputKeyNodes: {
40
+ Items: {
41
+ "*": import("../commands/utils").KeyNodeChildren;
42
+ };
43
+ LastEvaluatedKey: import("../commands/utils").KeyNodeChildren;
44
+ };
45
+ protected readonly clientCommand: __ExecuteStatementCommand;
46
+ readonly middlewareStack: MiddlewareStack<
47
+ ExecuteStatementCommandInput | __ExecuteStatementCommandInput,
48
+ ExecuteStatementCommandOutput | __ExecuteStatementCommandOutput
49
+ >;
50
+ constructor(input: ExecuteStatementCommandInput);
51
+ resolveMiddleware(
52
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
53
+ configuration: DynamoDBDocumentClientResolvedConfig,
54
+ options?: __HttpHandlerOptions
55
+ ): Handler<ExecuteStatementCommandInput, ExecuteStatementCommandOutput>;
56
+ }
57
+ import {
58
+ ExecuteStatementCommandInput as __ExecuteStatementCommandInput,
59
+ ExecuteStatementCommandOutput as __ExecuteStatementCommandOutput,
60
+ } from "@aws-sdk/client-dynamodb";
61
+ import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
@@ -0,0 +1,78 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import {
3
+ HttpHandlerOptions as __HttpHandlerOptions,
4
+ Handler,
5
+ MiddlewareStack,
6
+ } from "@smithy/types";
7
+ import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
8
+ import {
9
+ DynamoDBDocumentClientResolvedConfig,
10
+ ServiceInputTypes,
11
+ ServiceOutputTypes,
12
+ } from "../DynamoDBDocumentClient";
13
+ import { ExecuteTransactionCommand as __ExecuteTransactionCommand } from "@aws-sdk/client-dynamodb";
14
+ export { DynamoDBDocumentClientCommand, $Command };
15
+ export type ExecuteTransactionCommandInput = Pick<
16
+ __ExecuteTransactionCommandInput,
17
+ Exclude<keyof __ExecuteTransactionCommandInput, "TransactStatements">
18
+ > & {
19
+ TransactStatements:
20
+ | (Pick<
21
+ ParameterizedStatement,
22
+ Exclude<keyof ParameterizedStatement, "Parameters">
23
+ > & {
24
+ Parameters?: NativeAttributeValue[] | undefined;
25
+ })[]
26
+ | undefined;
27
+ };
28
+ export type ExecuteTransactionCommandOutput = Pick<
29
+ __ExecuteTransactionCommandOutput,
30
+ Exclude<keyof __ExecuteTransactionCommandOutput, "Responses">
31
+ > & {
32
+ Responses?:
33
+ | (Pick<ItemResponse, Exclude<keyof ItemResponse, "Item">> & {
34
+ Item?: Record<string, NativeAttributeValue> | undefined;
35
+ })[]
36
+ | undefined;
37
+ };
38
+ export declare class ExecuteTransactionCommand extends DynamoDBDocumentClientCommand<
39
+ ExecuteTransactionCommandInput,
40
+ ExecuteTransactionCommandOutput,
41
+ __ExecuteTransactionCommandInput,
42
+ __ExecuteTransactionCommandOutput,
43
+ DynamoDBDocumentClientResolvedConfig
44
+ > {
45
+ readonly input: ExecuteTransactionCommandInput;
46
+ protected readonly inputKeyNodes: {
47
+ TransactStatements: {
48
+ "*": {
49
+ Parameters: import("../commands/utils").KeyNodeChildren;
50
+ };
51
+ };
52
+ };
53
+ protected readonly outputKeyNodes: {
54
+ Responses: {
55
+ "*": {
56
+ Item: import("../commands/utils").KeyNodeChildren;
57
+ };
58
+ };
59
+ };
60
+ protected readonly clientCommand: __ExecuteTransactionCommand;
61
+ readonly middlewareStack: MiddlewareStack<
62
+ ExecuteTransactionCommandInput | __ExecuteTransactionCommandInput,
63
+ ExecuteTransactionCommandOutput | __ExecuteTransactionCommandOutput
64
+ >;
65
+ constructor(input: ExecuteTransactionCommandInput);
66
+ resolveMiddleware(
67
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
68
+ configuration: DynamoDBDocumentClientResolvedConfig,
69
+ options?: __HttpHandlerOptions
70
+ ): Handler<ExecuteTransactionCommandInput, ExecuteTransactionCommandOutput>;
71
+ }
72
+ import {
73
+ ExecuteTransactionCommandInput as __ExecuteTransactionCommandInput,
74
+ ExecuteTransactionCommandOutput as __ExecuteTransactionCommandOutput,
75
+ ItemResponse,
76
+ ParameterizedStatement,
77
+ } from "@aws-sdk/client-dynamodb";
78
+ import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
@@ -0,0 +1,57 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import {
3
+ HttpHandlerOptions as __HttpHandlerOptions,
4
+ Handler,
5
+ MiddlewareStack,
6
+ } from "@smithy/types";
7
+ import { DynamoDBDocumentClientCommand } from "../baseCommand/DynamoDBDocumentClientCommand";
8
+ import {
9
+ DynamoDBDocumentClientResolvedConfig,
10
+ ServiceInputTypes,
11
+ ServiceOutputTypes,
12
+ } from "../DynamoDBDocumentClient";
13
+ import { GetItemCommand as __GetItemCommand } from "@aws-sdk/client-dynamodb";
14
+ export { DynamoDBDocumentClientCommand, $Command };
15
+ export type GetCommandInput = Pick<
16
+ __GetItemCommandInput,
17
+ Exclude<keyof __GetItemCommandInput, "Key">
18
+ > & {
19
+ Key: Record<string, NativeAttributeValue> | undefined;
20
+ };
21
+ export type GetCommandOutput = Pick<
22
+ __GetItemCommandOutput,
23
+ Exclude<keyof __GetItemCommandOutput, "Item">
24
+ > & {
25
+ Item?: Record<string, NativeAttributeValue> | undefined;
26
+ };
27
+ export declare class GetCommand extends DynamoDBDocumentClientCommand<
28
+ GetCommandInput,
29
+ GetCommandOutput,
30
+ __GetItemCommandInput,
31
+ __GetItemCommandOutput,
32
+ DynamoDBDocumentClientResolvedConfig
33
+ > {
34
+ readonly input: GetCommandInput;
35
+ protected readonly inputKeyNodes: {
36
+ Key: import("../commands/utils").KeyNodeChildren;
37
+ };
38
+ protected readonly outputKeyNodes: {
39
+ Item: import("../commands/utils").KeyNodeChildren;
40
+ };
41
+ protected readonly clientCommand: __GetItemCommand;
42
+ readonly middlewareStack: MiddlewareStack<
43
+ GetCommandInput | __GetItemCommandInput,
44
+ GetCommandOutput | __GetItemCommandOutput
45
+ >;
46
+ constructor(input: GetCommandInput);
47
+ resolveMiddleware(
48
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
49
+ configuration: DynamoDBDocumentClientResolvedConfig,
50
+ options?: __HttpHandlerOptions
51
+ ): Handler<GetCommandInput, GetCommandOutput>;
52
+ }
53
+ import {
54
+ GetItemCommandInput as __GetItemCommandInput,
55
+ GetItemCommandOutput as __GetItemCommandOutput,
56
+ } from "@aws-sdk/client-dynamodb";
57
+ import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";