@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,93 @@
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 { PutItemCommand as __PutItemCommand } from "@aws-sdk/client-dynamodb";
14
+ export { DynamoDBDocumentClientCommand, $Command };
15
+ export type PutCommandInput = Pick<
16
+ __PutItemCommandInput,
17
+ Exclude<
18
+ keyof __PutItemCommandInput,
19
+ "Item" | "Expected" | "ExpressionAttributeValues"
20
+ >
21
+ > & {
22
+ Item: 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 PutCommandOutput = Pick<
38
+ __PutItemCommandOutput,
39
+ Exclude<keyof __PutItemCommandOutput, "Attributes" | "ItemCollectionMetrics">
40
+ > & {
41
+ Attributes?: Record<string, NativeAttributeValue> | undefined;
42
+ ItemCollectionMetrics?:
43
+ | (Pick<
44
+ ItemCollectionMetrics,
45
+ Exclude<keyof ItemCollectionMetrics, "ItemCollectionKey">
46
+ > & {
47
+ ItemCollectionKey?: Record<string, NativeAttributeValue> | undefined;
48
+ })
49
+ | undefined;
50
+ };
51
+ export declare class PutCommand extends DynamoDBDocumentClientCommand<
52
+ PutCommandInput,
53
+ PutCommandOutput,
54
+ __PutItemCommandInput,
55
+ __PutItemCommandOutput,
56
+ DynamoDBDocumentClientResolvedConfig
57
+ > {
58
+ readonly input: PutCommandInput;
59
+ protected readonly inputKeyNodes: {
60
+ Item: import("../commands/utils").KeyNodeChildren;
61
+ Expected: {
62
+ "*": {
63
+ Value: null;
64
+ AttributeValueList: import("../commands/utils").KeyNodeChildren;
65
+ };
66
+ };
67
+ ExpressionAttributeValues: import("../commands/utils").KeyNodeChildren;
68
+ };
69
+ protected readonly outputKeyNodes: {
70
+ Attributes: import("../commands/utils").KeyNodeChildren;
71
+ ItemCollectionMetrics: {
72
+ ItemCollectionKey: import("../commands/utils").KeyNodeChildren;
73
+ };
74
+ };
75
+ protected readonly clientCommand: __PutItemCommand;
76
+ readonly middlewareStack: MiddlewareStack<
77
+ PutCommandInput | __PutItemCommandInput,
78
+ PutCommandOutput | __PutItemCommandOutput
79
+ >;
80
+ constructor(input: PutCommandInput);
81
+ resolveMiddleware(
82
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
83
+ configuration: DynamoDBDocumentClientResolvedConfig,
84
+ options?: __HttpHandlerOptions
85
+ ): Handler<PutCommandInput, PutCommandOutput>;
86
+ }
87
+ import {
88
+ ExpectedAttributeValue,
89
+ ItemCollectionMetrics,
90
+ PutItemCommandInput as __PutItemCommandInput,
91
+ PutItemCommandOutput as __PutItemCommandOutput,
92
+ } from "@aws-sdk/client-dynamodb";
93
+ 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 { QueryCommand as __QueryCommand } from "@aws-sdk/client-dynamodb";
14
+ export { DynamoDBDocumentClientCommand, $Command };
15
+ export type QueryCommandInput = Pick<
16
+ __QueryCommandInput,
17
+ Exclude<
18
+ keyof __QueryCommandInput,
19
+ | "KeyConditions"
20
+ | "QueryFilter"
21
+ | "ExclusiveStartKey"
22
+ | "ExpressionAttributeValues"
23
+ >
24
+ > & {
25
+ KeyConditions?:
26
+ | Record<
27
+ string,
28
+ Pick<Condition, Exclude<keyof Condition, "AttributeValueList">> & {
29
+ AttributeValueList?: NativeAttributeValue[] | undefined;
30
+ }
31
+ >
32
+ | undefined;
33
+ QueryFilter?:
34
+ | Record<
35
+ string,
36
+ Pick<Condition, Exclude<keyof Condition, "AttributeValueList">> & {
37
+ AttributeValueList?: NativeAttributeValue[] | undefined;
38
+ }
39
+ >
40
+ | undefined;
41
+ ExclusiveStartKey?: Record<string, NativeAttributeValue> | undefined;
42
+ ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
43
+ };
44
+ export type QueryCommandOutput = Pick<
45
+ __QueryCommandOutput,
46
+ Exclude<keyof __QueryCommandOutput, "Items" | "LastEvaluatedKey">
47
+ > & {
48
+ Items?: Record<string, NativeAttributeValue>[] | undefined;
49
+ LastEvaluatedKey?: Record<string, NativeAttributeValue> | undefined;
50
+ };
51
+ export declare class QueryCommand extends DynamoDBDocumentClientCommand<
52
+ QueryCommandInput,
53
+ QueryCommandOutput,
54
+ __QueryCommandInput,
55
+ __QueryCommandOutput,
56
+ DynamoDBDocumentClientResolvedConfig
57
+ > {
58
+ readonly input: QueryCommandInput;
59
+ protected readonly inputKeyNodes: {
60
+ KeyConditions: {
61
+ "*": {
62
+ AttributeValueList: import("../commands/utils").KeyNodeChildren;
63
+ };
64
+ };
65
+ QueryFilter: {
66
+ "*": {
67
+ AttributeValueList: import("../commands/utils").KeyNodeChildren;
68
+ };
69
+ };
70
+ ExclusiveStartKey: import("../commands/utils").KeyNodeChildren;
71
+ ExpressionAttributeValues: import("../commands/utils").KeyNodeChildren;
72
+ };
73
+ protected readonly outputKeyNodes: {
74
+ Items: {
75
+ "*": import("../commands/utils").KeyNodeChildren;
76
+ };
77
+ LastEvaluatedKey: import("../commands/utils").KeyNodeChildren;
78
+ };
79
+ protected readonly clientCommand: __QueryCommand;
80
+ readonly middlewareStack: MiddlewareStack<
81
+ QueryCommandInput | __QueryCommandInput,
82
+ QueryCommandOutput | __QueryCommandOutput
83
+ >;
84
+ constructor(input: QueryCommandInput);
85
+ resolveMiddleware(
86
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
87
+ configuration: DynamoDBDocumentClientResolvedConfig,
88
+ options?: __HttpHandlerOptions
89
+ ): Handler<QueryCommandInput, QueryCommandOutput>;
90
+ }
91
+ import {
92
+ Condition,
93
+ QueryCommandInput as __QueryCommandInput,
94
+ QueryCommandOutput as __QueryCommandOutput,
95
+ } from "@aws-sdk/client-dynamodb";
96
+ import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
@@ -0,0 +1,80 @@
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 { ScanCommand as __ScanCommand } from "@aws-sdk/client-dynamodb";
14
+ export { DynamoDBDocumentClientCommand, $Command };
15
+ export type ScanCommandInput = Pick<
16
+ __ScanCommandInput,
17
+ Exclude<
18
+ keyof __ScanCommandInput,
19
+ "ScanFilter" | "ExclusiveStartKey" | "ExpressionAttributeValues"
20
+ >
21
+ > & {
22
+ ScanFilter?:
23
+ | Record<
24
+ string,
25
+ Pick<Condition, Exclude<keyof Condition, "AttributeValueList">> & {
26
+ AttributeValueList?: NativeAttributeValue[] | undefined;
27
+ }
28
+ >
29
+ | undefined;
30
+ ExclusiveStartKey?: Record<string, NativeAttributeValue> | undefined;
31
+ ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
32
+ };
33
+ export type ScanCommandOutput = Pick<
34
+ __ScanCommandOutput,
35
+ Exclude<keyof __ScanCommandOutput, "Items" | "LastEvaluatedKey">
36
+ > & {
37
+ Items?: Record<string, NativeAttributeValue>[] | undefined;
38
+ LastEvaluatedKey?: Record<string, NativeAttributeValue> | undefined;
39
+ };
40
+ export declare class ScanCommand extends DynamoDBDocumentClientCommand<
41
+ ScanCommandInput,
42
+ ScanCommandOutput,
43
+ __ScanCommandInput,
44
+ __ScanCommandOutput,
45
+ DynamoDBDocumentClientResolvedConfig
46
+ > {
47
+ readonly input: ScanCommandInput;
48
+ protected readonly inputKeyNodes: {
49
+ ScanFilter: {
50
+ "*": {
51
+ AttributeValueList: import("../commands/utils").KeyNodeChildren;
52
+ };
53
+ };
54
+ ExclusiveStartKey: import("../commands/utils").KeyNodeChildren;
55
+ ExpressionAttributeValues: import("../commands/utils").KeyNodeChildren;
56
+ };
57
+ protected readonly outputKeyNodes: {
58
+ Items: {
59
+ "*": import("../commands/utils").KeyNodeChildren;
60
+ };
61
+ LastEvaluatedKey: import("../commands/utils").KeyNodeChildren;
62
+ };
63
+ protected readonly clientCommand: __ScanCommand;
64
+ readonly middlewareStack: MiddlewareStack<
65
+ ScanCommandInput | __ScanCommandInput,
66
+ ScanCommandOutput | __ScanCommandOutput
67
+ >;
68
+ constructor(input: ScanCommandInput);
69
+ resolveMiddleware(
70
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
71
+ configuration: DynamoDBDocumentClientResolvedConfig,
72
+ options?: __HttpHandlerOptions
73
+ ): Handler<ScanCommandInput, ScanCommandOutput>;
74
+ }
75
+ import {
76
+ Condition,
77
+ ScanCommandInput as __ScanCommandInput,
78
+ ScanCommandOutput as __ScanCommandOutput,
79
+ } from "@aws-sdk/client-dynamodb";
80
+ import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
@@ -0,0 +1,82 @@
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 { TransactGetItemsCommand as __TransactGetItemsCommand } from "@aws-sdk/client-dynamodb";
14
+ export { DynamoDBDocumentClientCommand, $Command };
15
+ export type TransactGetCommandInput = Pick<
16
+ __TransactGetItemsCommandInput,
17
+ Exclude<keyof __TransactGetItemsCommandInput, "TransactItems">
18
+ > & {
19
+ TransactItems:
20
+ | (Pick<TransactGetItem, Exclude<keyof TransactGetItem, "Get">> & {
21
+ Get:
22
+ | (Pick<Get, Exclude<keyof Get, "Key">> & {
23
+ Key: Record<string, NativeAttributeValue> | undefined;
24
+ })
25
+ | undefined;
26
+ })[]
27
+ | undefined;
28
+ };
29
+ export type TransactGetCommandOutput = Pick<
30
+ __TransactGetItemsCommandOutput,
31
+ Exclude<keyof __TransactGetItemsCommandOutput, "Responses">
32
+ > & {
33
+ Responses?:
34
+ | (Pick<ItemResponse, Exclude<keyof ItemResponse, "Item">> & {
35
+ Item?: Record<string, NativeAttributeValue> | undefined;
36
+ })[]
37
+ | undefined;
38
+ };
39
+ export declare class TransactGetCommand extends DynamoDBDocumentClientCommand<
40
+ TransactGetCommandInput,
41
+ TransactGetCommandOutput,
42
+ __TransactGetItemsCommandInput,
43
+ __TransactGetItemsCommandOutput,
44
+ DynamoDBDocumentClientResolvedConfig
45
+ > {
46
+ readonly input: TransactGetCommandInput;
47
+ protected readonly inputKeyNodes: {
48
+ TransactItems: {
49
+ "*": {
50
+ Get: {
51
+ Key: import("../commands/utils").KeyNodeChildren;
52
+ };
53
+ };
54
+ };
55
+ };
56
+ protected readonly outputKeyNodes: {
57
+ Responses: {
58
+ "*": {
59
+ Item: import("../commands/utils").KeyNodeChildren;
60
+ };
61
+ };
62
+ };
63
+ protected readonly clientCommand: __TransactGetItemsCommand;
64
+ readonly middlewareStack: MiddlewareStack<
65
+ TransactGetCommandInput | __TransactGetItemsCommandInput,
66
+ TransactGetCommandOutput | __TransactGetItemsCommandOutput
67
+ >;
68
+ constructor(input: TransactGetCommandInput);
69
+ resolveMiddleware(
70
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
71
+ configuration: DynamoDBDocumentClientResolvedConfig,
72
+ options?: __HttpHandlerOptions
73
+ ): Handler<TransactGetCommandInput, TransactGetCommandOutput>;
74
+ }
75
+ import {
76
+ Get,
77
+ ItemResponse,
78
+ TransactGetItem,
79
+ TransactGetItemsCommandInput as __TransactGetItemsCommandInput,
80
+ TransactGetItemsCommandOutput as __TransactGetItemsCommandOutput,
81
+ } from "@aws-sdk/client-dynamodb";
82
+ import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
@@ -0,0 +1,151 @@
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 { TransactWriteItemsCommand as __TransactWriteItemsCommand } from "@aws-sdk/client-dynamodb";
14
+ export { DynamoDBDocumentClientCommand, $Command };
15
+ export type TransactWriteCommandInput = Pick<
16
+ __TransactWriteItemsCommandInput,
17
+ Exclude<keyof __TransactWriteItemsCommandInput, "TransactItems">
18
+ > & {
19
+ TransactItems:
20
+ | (Pick<
21
+ TransactWriteItem,
22
+ Exclude<
23
+ keyof TransactWriteItem,
24
+ "ConditionCheck" | "Put" | "Delete" | "Update"
25
+ >
26
+ > & {
27
+ ConditionCheck?:
28
+ | (Pick<
29
+ ConditionCheck,
30
+ Exclude<keyof ConditionCheck, "Key" | "ExpressionAttributeValues">
31
+ > & {
32
+ Key: Record<string, NativeAttributeValue> | undefined;
33
+ ExpressionAttributeValues?:
34
+ | Record<string, NativeAttributeValue>
35
+ | undefined;
36
+ })
37
+ | undefined;
38
+ Put?:
39
+ | (Pick<
40
+ Put,
41
+ Exclude<keyof Put, "Item" | "ExpressionAttributeValues">
42
+ > & {
43
+ Item: Record<string, NativeAttributeValue> | undefined;
44
+ ExpressionAttributeValues?:
45
+ | Record<string, NativeAttributeValue>
46
+ | undefined;
47
+ })
48
+ | undefined;
49
+ Delete?:
50
+ | (Pick<
51
+ Delete,
52
+ Exclude<keyof Delete, "Key" | "ExpressionAttributeValues">
53
+ > & {
54
+ Key: Record<string, NativeAttributeValue> | undefined;
55
+ ExpressionAttributeValues?:
56
+ | Record<string, NativeAttributeValue>
57
+ | undefined;
58
+ })
59
+ | undefined;
60
+ Update?:
61
+ | (Pick<
62
+ Update,
63
+ Exclude<keyof Update, "Key" | "ExpressionAttributeValues">
64
+ > & {
65
+ Key: Record<string, NativeAttributeValue> | undefined;
66
+ ExpressionAttributeValues?:
67
+ | Record<string, NativeAttributeValue>
68
+ | undefined;
69
+ })
70
+ | undefined;
71
+ })[]
72
+ | undefined;
73
+ };
74
+ export type TransactWriteCommandOutput = Pick<
75
+ __TransactWriteItemsCommandOutput,
76
+ Exclude<keyof __TransactWriteItemsCommandOutput, "ItemCollectionMetrics">
77
+ > & {
78
+ ItemCollectionMetrics?:
79
+ | Record<
80
+ string,
81
+ (Pick<
82
+ ItemCollectionMetrics,
83
+ Exclude<keyof ItemCollectionMetrics, "ItemCollectionKey">
84
+ > & {
85
+ ItemCollectionKey?: Record<string, NativeAttributeValue> | undefined;
86
+ })[]
87
+ >
88
+ | undefined;
89
+ };
90
+ export declare class TransactWriteCommand extends DynamoDBDocumentClientCommand<
91
+ TransactWriteCommandInput,
92
+ TransactWriteCommandOutput,
93
+ __TransactWriteItemsCommandInput,
94
+ __TransactWriteItemsCommandOutput,
95
+ DynamoDBDocumentClientResolvedConfig
96
+ > {
97
+ readonly input: TransactWriteCommandInput;
98
+ protected readonly inputKeyNodes: {
99
+ TransactItems: {
100
+ "*": {
101
+ ConditionCheck: {
102
+ Key: import("../commands/utils").KeyNodeChildren;
103
+ ExpressionAttributeValues: import("../commands/utils").KeyNodeChildren;
104
+ };
105
+ Put: {
106
+ Item: import("../commands/utils").KeyNodeChildren;
107
+ ExpressionAttributeValues: import("../commands/utils").KeyNodeChildren;
108
+ };
109
+ Delete: {
110
+ Key: import("../commands/utils").KeyNodeChildren;
111
+ ExpressionAttributeValues: import("../commands/utils").KeyNodeChildren;
112
+ };
113
+ Update: {
114
+ Key: import("../commands/utils").KeyNodeChildren;
115
+ ExpressionAttributeValues: import("../commands/utils").KeyNodeChildren;
116
+ };
117
+ };
118
+ };
119
+ };
120
+ protected readonly outputKeyNodes: {
121
+ ItemCollectionMetrics: {
122
+ "*": {
123
+ "*": {
124
+ ItemCollectionKey: import("../commands/utils").KeyNodeChildren;
125
+ };
126
+ };
127
+ };
128
+ };
129
+ protected readonly clientCommand: __TransactWriteItemsCommand;
130
+ readonly middlewareStack: MiddlewareStack<
131
+ TransactWriteCommandInput | __TransactWriteItemsCommandInput,
132
+ TransactWriteCommandOutput | __TransactWriteItemsCommandOutput
133
+ >;
134
+ constructor(input: TransactWriteCommandInput);
135
+ resolveMiddleware(
136
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
137
+ configuration: DynamoDBDocumentClientResolvedConfig,
138
+ options?: __HttpHandlerOptions
139
+ ): Handler<TransactWriteCommandInput, TransactWriteCommandOutput>;
140
+ }
141
+ import {
142
+ ConditionCheck,
143
+ Delete,
144
+ ItemCollectionMetrics,
145
+ Put,
146
+ TransactWriteItem,
147
+ TransactWriteItemsCommandInput as __TransactWriteItemsCommandInput,
148
+ TransactWriteItemsCommandOutput as __TransactWriteItemsCommandOutput,
149
+ Update,
150
+ } from "@aws-sdk/client-dynamodb";
151
+ import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
@@ -0,0 +1,113 @@
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 { UpdateItemCommand as __UpdateItemCommand } from "@aws-sdk/client-dynamodb";
14
+ export { DynamoDBDocumentClientCommand, $Command };
15
+ export type UpdateCommandInput = Pick<
16
+ __UpdateItemCommandInput,
17
+ Exclude<
18
+ keyof __UpdateItemCommandInput,
19
+ "Key" | "AttributeUpdates" | "Expected" | "ExpressionAttributeValues"
20
+ >
21
+ > & {
22
+ Key: Record<string, NativeAttributeValue> | undefined;
23
+ AttributeUpdates?:
24
+ | Record<
25
+ string,
26
+ Pick<
27
+ AttributeValueUpdate,
28
+ Exclude<keyof AttributeValueUpdate, "Value">
29
+ > & {
30
+ Value?: NativeAttributeValue | undefined;
31
+ }
32
+ >
33
+ | undefined;
34
+ Expected?:
35
+ | Record<
36
+ string,
37
+ Pick<
38
+ ExpectedAttributeValue,
39
+ Exclude<keyof ExpectedAttributeValue, "Value" | "AttributeValueList">
40
+ > & {
41
+ Value?: NativeAttributeValue | undefined;
42
+ AttributeValueList?: NativeAttributeValue[] | undefined;
43
+ }
44
+ >
45
+ | undefined;
46
+ ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
47
+ };
48
+ export type UpdateCommandOutput = Pick<
49
+ __UpdateItemCommandOutput,
50
+ Exclude<
51
+ keyof __UpdateItemCommandOutput,
52
+ "Attributes" | "ItemCollectionMetrics"
53
+ >
54
+ > & {
55
+ Attributes?: Record<string, NativeAttributeValue> | undefined;
56
+ ItemCollectionMetrics?:
57
+ | (Pick<
58
+ ItemCollectionMetrics,
59
+ Exclude<keyof ItemCollectionMetrics, "ItemCollectionKey">
60
+ > & {
61
+ ItemCollectionKey?: Record<string, NativeAttributeValue> | undefined;
62
+ })
63
+ | undefined;
64
+ };
65
+ export declare class UpdateCommand extends DynamoDBDocumentClientCommand<
66
+ UpdateCommandInput,
67
+ UpdateCommandOutput,
68
+ __UpdateItemCommandInput,
69
+ __UpdateItemCommandOutput,
70
+ DynamoDBDocumentClientResolvedConfig
71
+ > {
72
+ readonly input: UpdateCommandInput;
73
+ protected readonly inputKeyNodes: {
74
+ Key: import("../commands/utils").KeyNodeChildren;
75
+ AttributeUpdates: {
76
+ "*": {
77
+ Value: null;
78
+ };
79
+ };
80
+ Expected: {
81
+ "*": {
82
+ Value: null;
83
+ AttributeValueList: import("../commands/utils").KeyNodeChildren;
84
+ };
85
+ };
86
+ ExpressionAttributeValues: import("../commands/utils").KeyNodeChildren;
87
+ };
88
+ protected readonly outputKeyNodes: {
89
+ Attributes: import("../commands/utils").KeyNodeChildren;
90
+ ItemCollectionMetrics: {
91
+ ItemCollectionKey: import("../commands/utils").KeyNodeChildren;
92
+ };
93
+ };
94
+ protected readonly clientCommand: __UpdateItemCommand;
95
+ readonly middlewareStack: MiddlewareStack<
96
+ UpdateCommandInput | __UpdateItemCommandInput,
97
+ UpdateCommandOutput | __UpdateItemCommandOutput
98
+ >;
99
+ constructor(input: UpdateCommandInput);
100
+ resolveMiddleware(
101
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
102
+ configuration: DynamoDBDocumentClientResolvedConfig,
103
+ options?: __HttpHandlerOptions
104
+ ): Handler<UpdateCommandInput, UpdateCommandOutput>;
105
+ }
106
+ import {
107
+ AttributeValueUpdate,
108
+ ExpectedAttributeValue,
109
+ ItemCollectionMetrics,
110
+ UpdateItemCommandInput as __UpdateItemCommandInput,
111
+ UpdateItemCommandOutput as __UpdateItemCommandOutput,
112
+ } from "@aws-sdk/client-dynamodb";
113
+ import { NativeAttributeValue } from "@aws-sdk/util-dynamodb";
@@ -0,0 +1,13 @@
1
+ export * from "./BatchExecuteStatementCommand";
2
+ export * from "./BatchGetCommand";
3
+ export * from "./BatchWriteCommand";
4
+ export * from "./DeleteCommand";
5
+ export * from "./ExecuteStatementCommand";
6
+ export * from "./ExecuteTransactionCommand";
7
+ export * from "./GetCommand";
8
+ export * from "./PutCommand";
9
+ export * from "./QueryCommand";
10
+ export * from "./ScanCommand";
11
+ export * from "./TransactGetCommand";
12
+ export * from "./TransactWriteCommand";
13
+ export * from "./UpdateCommand";
@@ -0,0 +1,17 @@
1
+ import { marshallOptions, unmarshallOptions } from "@aws-sdk/util-dynamodb";
2
+ export type KeyNodeSelf = null;
3
+ export declare const SELF: KeyNodeSelf;
4
+ export type KeyNodeChildren = Record<string, any>;
5
+ export declare const ALL_VALUES: KeyNodeChildren;
6
+ export declare const ALL_MEMBERS: KeyNodeChildren;
7
+ export type KeyNodes = KeyNodeSelf | KeyNodeChildren;
8
+ export declare const marshallInput: (
9
+ obj: any,
10
+ keyNodes: KeyNodeChildren,
11
+ options?: marshallOptions
12
+ ) => any;
13
+ export declare const unmarshallOutput: (
14
+ obj: any,
15
+ keyNodes: KeyNodeChildren,
16
+ options?: unmarshallOptions
17
+ ) => any;
@@ -0,0 +1,11 @@
1
+ export * from "./commands";
2
+ export * from "./pagination";
3
+ export * from "./DynamoDBDocumentClient";
4
+ export * from "./DynamoDBDocument";
5
+ export { NumberValueImpl as NumberValue } from "@aws-sdk/util-dynamodb";
6
+ export { marshallOptions, unmarshallOptions } from "@aws-sdk/util-dynamodb";
7
+ export {
8
+ NativeAttributeValue,
9
+ NativeAttributeBinary,
10
+ NativeScalarAttributeValue,
11
+ } from "@aws-sdk/util-dynamodb";
@@ -0,0 +1,8 @@
1
+ import { PaginationConfiguration } from "@smithy/types";
2
+ import { DynamoDBDocument } from "../DynamoDBDocument";
3
+ import { DynamoDBDocumentClient } from "../DynamoDBDocumentClient";
4
+ export { PaginationConfiguration };
5
+ export interface DynamoDBDocumentPaginationConfiguration
6
+ extends PaginationConfiguration {
7
+ client: DynamoDBDocument | DynamoDBDocumentClient;
8
+ }
@@ -0,0 +1,12 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ QueryCommandInput,
4
+ QueryCommandOutput,
5
+ } from "../commands/QueryCommand";
6
+ import { DynamoDBDocumentPaginationConfiguration } from "./Interfaces";
7
+ export { Paginator };
8
+ export declare const paginateQuery: (
9
+ config: DynamoDBDocumentPaginationConfiguration,
10
+ input: QueryCommandInput,
11
+ ...additionalArguments: any
12
+ ) => Paginator<QueryCommandOutput>;