@aws-sdk/lib-dynamodb 3.1154.0 → 3.1155.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/dist-cjs/index.js +13 -0
- package/dist-es/DynamoDBDocument.js +4 -0
- package/dist-es/pagination/PaginatedBatchGet.js +9 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-types/DynamoDBDocument.d.ts +6 -0
- package/dist-types/commands/BatchExecuteStatementCommand.d.ts +21 -9
- package/dist-types/commands/BatchGetCommand.d.ts +8 -6
- package/dist-types/commands/BatchWriteCommand.d.ts +28 -19
- package/dist-types/commands/DeleteCommand.d.ts +15 -7
- package/dist-types/commands/DescribeExportCommand.d.ts +13 -5
- package/dist-types/commands/ExecuteTransactionCommand.d.ts +14 -6
- package/dist-types/commands/ExportTableToPointInTimeCommand.d.ts +14 -8
- package/dist-types/commands/PutCommand.d.ts +15 -7
- package/dist-types/commands/QueryCommand.d.ts +8 -6
- package/dist-types/commands/ScanCommand.d.ts +7 -3
- package/dist-types/commands/SearchVectorsCommand.d.ts +7 -3
- package/dist-types/commands/TransactGetCommand.d.ts +21 -9
- package/dist-types/commands/TransactWriteCommand.d.ts +46 -22
- package/dist-types/commands/UpdateCommand.d.ts +22 -10
- package/dist-types/pagination/PaginatedBatchGet.d.ts +12 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/DynamoDBDocument.d.ts +1 -0
- package/dist-types/ts3.4/commands/BatchExecuteStatementCommand.d.ts +21 -15
- package/dist-types/ts3.4/commands/BatchGetCommand.d.ts +8 -16
- package/dist-types/ts3.4/commands/BatchWriteCommand.d.ts +22 -42
- package/dist-types/ts3.4/commands/DeleteCommand.d.ts +15 -17
- package/dist-types/ts3.4/commands/DescribeExportCommand.d.ts +13 -12
- package/dist-types/ts3.4/commands/ExecuteTransactionCommand.d.ts +14 -10
- package/dist-types/ts3.4/commands/ExportTableToPointInTimeCommand.d.ts +14 -20
- package/dist-types/ts3.4/commands/PutCommand.d.ts +15 -17
- package/dist-types/ts3.4/commands/QueryCommand.d.ts +5 -16
- package/dist-types/ts3.4/commands/ScanCommand.d.ts +4 -8
- package/dist-types/ts3.4/commands/SearchVectorsCommand.d.ts +7 -5
- package/dist-types/ts3.4/commands/TransactGetCommand.d.ts +15 -15
- package/dist-types/ts3.4/commands/TransactWriteCommand.d.ts +46 -43
- package/dist-types/ts3.4/commands/UpdateCommand.d.ts +22 -25
- package/dist-types/ts3.4/pagination/PaginatedBatchGet.d.ts +8 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/package.json +5 -5
|
@@ -12,57 +12,60 @@ import {
|
|
|
12
12
|
} from "../DynamoDBDocumentClient";
|
|
13
13
|
import { TransactWriteItemsCommand as __TransactWriteItemsCommand } from "@aws-sdk/client-dynamodb";
|
|
14
14
|
export { DynamoDBDocumentClientCommand, $Command };
|
|
15
|
+
export type TransactWriteConditionCheck = Pick<
|
|
16
|
+
ConditionCheck,
|
|
17
|
+
Exclude<keyof ConditionCheck, "Key" | "ExpressionAttributeValues">
|
|
18
|
+
> & {
|
|
19
|
+
Key: Record<string, NativeAttributeValue> | undefined;
|
|
20
|
+
ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
|
|
21
|
+
};
|
|
22
|
+
export type TransactWritePut = Pick<
|
|
23
|
+
Put,
|
|
24
|
+
Exclude<keyof Put, "Item" | "ExpressionAttributeValues">
|
|
25
|
+
> & {
|
|
26
|
+
Item: Record<string, NativeAttributeValue> | undefined;
|
|
27
|
+
ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
|
|
28
|
+
};
|
|
29
|
+
export type TransactWriteDelete = Pick<
|
|
30
|
+
Delete,
|
|
31
|
+
Exclude<keyof Delete, "Key" | "ExpressionAttributeValues">
|
|
32
|
+
> & {
|
|
33
|
+
Key: Record<string, NativeAttributeValue> | undefined;
|
|
34
|
+
ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
|
|
35
|
+
};
|
|
36
|
+
export type TransactWriteUpdate = Pick<
|
|
37
|
+
Update,
|
|
38
|
+
Exclude<keyof Update, "Key" | "ExpressionAttributeValues">
|
|
39
|
+
> & {
|
|
40
|
+
Key: Record<string, NativeAttributeValue> | undefined;
|
|
41
|
+
ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
|
|
42
|
+
};
|
|
43
|
+
export type TransactWriteItem = Pick<
|
|
44
|
+
ClientTransactWriteItem,
|
|
45
|
+
Exclude<keyof ClientTransactWriteItem, "ConditionCheck" | "Put" | "Delete" | "Update">
|
|
46
|
+
> & {
|
|
47
|
+
ConditionCheck?: TransactWriteConditionCheck | undefined;
|
|
48
|
+
Put?: TransactWritePut | undefined;
|
|
49
|
+
Delete?: TransactWriteDelete | undefined;
|
|
50
|
+
Update?: TransactWriteUpdate | undefined;
|
|
51
|
+
};
|
|
52
|
+
export type TransactWriteItemCollectionMetrics = Pick<
|
|
53
|
+
ItemCollectionMetrics,
|
|
54
|
+
Exclude<keyof ItemCollectionMetrics, "ItemCollectionKey">
|
|
55
|
+
> & {
|
|
56
|
+
ItemCollectionKey?: Record<string, NativeAttributeValue> | undefined;
|
|
57
|
+
};
|
|
15
58
|
export type TransactWriteCommandInput = Pick<
|
|
16
59
|
__TransactWriteItemsCommandInput,
|
|
17
60
|
Exclude<keyof __TransactWriteItemsCommandInput, "TransactItems">
|
|
18
61
|
> & {
|
|
19
|
-
TransactItems:
|
|
20
|
-
| (Pick<
|
|
21
|
-
TransactWriteItem,
|
|
22
|
-
Exclude<keyof TransactWriteItem, "ConditionCheck" | "Put" | "Delete" | "Update">
|
|
23
|
-
> & {
|
|
24
|
-
ConditionCheck?:
|
|
25
|
-
| (Pick<
|
|
26
|
-
ConditionCheck,
|
|
27
|
-
Exclude<keyof ConditionCheck, "Key" | "ExpressionAttributeValues">
|
|
28
|
-
> & {
|
|
29
|
-
Key: Record<string, NativeAttributeValue> | undefined;
|
|
30
|
-
ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
|
|
31
|
-
})
|
|
32
|
-
| undefined;
|
|
33
|
-
Put?:
|
|
34
|
-
| (Pick<Put, Exclude<keyof Put, "Item" | "ExpressionAttributeValues">> & {
|
|
35
|
-
Item: Record<string, NativeAttributeValue> | undefined;
|
|
36
|
-
ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
|
|
37
|
-
})
|
|
38
|
-
| undefined;
|
|
39
|
-
Delete?:
|
|
40
|
-
| (Pick<Delete, Exclude<keyof Delete, "Key" | "ExpressionAttributeValues">> & {
|
|
41
|
-
Key: Record<string, NativeAttributeValue> | undefined;
|
|
42
|
-
ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
|
|
43
|
-
})
|
|
44
|
-
| undefined;
|
|
45
|
-
Update?:
|
|
46
|
-
| (Pick<Update, Exclude<keyof Update, "Key" | "ExpressionAttributeValues">> & {
|
|
47
|
-
Key: Record<string, NativeAttributeValue> | undefined;
|
|
48
|
-
ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
|
|
49
|
-
})
|
|
50
|
-
| undefined;
|
|
51
|
-
})[]
|
|
52
|
-
| undefined;
|
|
62
|
+
TransactItems: TransactWriteItem[] | undefined;
|
|
53
63
|
};
|
|
54
64
|
export type TransactWriteCommandOutput = Pick<
|
|
55
65
|
__TransactWriteItemsCommandOutput,
|
|
56
66
|
Exclude<keyof __TransactWriteItemsCommandOutput, "ItemCollectionMetrics">
|
|
57
67
|
> & {
|
|
58
|
-
ItemCollectionMetrics?:
|
|
59
|
-
| Record<
|
|
60
|
-
string,
|
|
61
|
-
(Pick<ItemCollectionMetrics, Exclude<keyof ItemCollectionMetrics, "ItemCollectionKey">> & {
|
|
62
|
-
ItemCollectionKey?: Record<string, NativeAttributeValue> | undefined;
|
|
63
|
-
})[]
|
|
64
|
-
>
|
|
65
|
-
| undefined;
|
|
68
|
+
ItemCollectionMetrics?: Record<string, TransactWriteItemCollectionMetrics[]> | undefined;
|
|
66
69
|
};
|
|
67
70
|
export declare class TransactWriteCommand extends DynamoDBDocumentClientCommand<
|
|
68
71
|
TransactWriteCommandInput,
|
|
@@ -120,7 +123,7 @@ import {
|
|
|
120
123
|
Delete,
|
|
121
124
|
ItemCollectionMetrics,
|
|
122
125
|
Put,
|
|
123
|
-
TransactWriteItem,
|
|
126
|
+
TransactWriteItem as ClientTransactWriteItem,
|
|
124
127
|
TransactWriteItemsCommandInput as __TransactWriteItemsCommandInput,
|
|
125
128
|
TransactWriteItemsCommandOutput as __TransactWriteItemsCommandOutput,
|
|
126
129
|
Update,
|
|
@@ -12,6 +12,25 @@ import {
|
|
|
12
12
|
} from "../DynamoDBDocumentClient";
|
|
13
13
|
import { UpdateItemCommand as __UpdateItemCommand } from "@aws-sdk/client-dynamodb";
|
|
14
14
|
export { DynamoDBDocumentClientCommand, $Command };
|
|
15
|
+
export type UpdateAttributeValueUpdate = Pick<
|
|
16
|
+
AttributeValueUpdate,
|
|
17
|
+
Exclude<keyof AttributeValueUpdate, "Value">
|
|
18
|
+
> & {
|
|
19
|
+
Value?: NativeAttributeValue | undefined;
|
|
20
|
+
};
|
|
21
|
+
export type UpdateExpectedAttributeValue = Pick<
|
|
22
|
+
ExpectedAttributeValue,
|
|
23
|
+
Exclude<keyof ExpectedAttributeValue, "Value" | "AttributeValueList">
|
|
24
|
+
> & {
|
|
25
|
+
Value?: NativeAttributeValue | undefined;
|
|
26
|
+
AttributeValueList?: NativeAttributeValue[] | undefined;
|
|
27
|
+
};
|
|
28
|
+
export type UpdateItemCollectionMetrics = Pick<
|
|
29
|
+
ItemCollectionMetrics,
|
|
30
|
+
Exclude<keyof ItemCollectionMetrics, "ItemCollectionKey">
|
|
31
|
+
> & {
|
|
32
|
+
ItemCollectionKey?: Record<string, NativeAttributeValue> | undefined;
|
|
33
|
+
};
|
|
15
34
|
export type UpdateCommandInput = Pick<
|
|
16
35
|
__UpdateItemCommandInput,
|
|
17
36
|
Exclude<
|
|
@@ -20,26 +39,8 @@ export type UpdateCommandInput = Pick<
|
|
|
20
39
|
>
|
|
21
40
|
> & {
|
|
22
41
|
Key: Record<string, NativeAttributeValue> | undefined;
|
|
23
|
-
AttributeUpdates?:
|
|
24
|
-
|
|
25
|
-
string,
|
|
26
|
-
Pick<AttributeValueUpdate, Exclude<keyof AttributeValueUpdate, "Value">> & {
|
|
27
|
-
Value?: NativeAttributeValue | undefined;
|
|
28
|
-
}
|
|
29
|
-
>
|
|
30
|
-
| undefined;
|
|
31
|
-
Expected?:
|
|
32
|
-
| Record<
|
|
33
|
-
string,
|
|
34
|
-
Pick<
|
|
35
|
-
ExpectedAttributeValue,
|
|
36
|
-
Exclude<keyof ExpectedAttributeValue, "Value" | "AttributeValueList">
|
|
37
|
-
> & {
|
|
38
|
-
Value?: NativeAttributeValue | undefined;
|
|
39
|
-
AttributeValueList?: NativeAttributeValue[] | undefined;
|
|
40
|
-
}
|
|
41
|
-
>
|
|
42
|
-
| undefined;
|
|
42
|
+
AttributeUpdates?: Record<string, UpdateAttributeValueUpdate> | undefined;
|
|
43
|
+
Expected?: Record<string, UpdateExpectedAttributeValue> | undefined;
|
|
43
44
|
ExpressionAttributeValues?: Record<string, NativeAttributeValue> | undefined;
|
|
44
45
|
};
|
|
45
46
|
export type UpdateCommandOutput = Pick<
|
|
@@ -47,11 +48,7 @@ export type UpdateCommandOutput = Pick<
|
|
|
47
48
|
Exclude<keyof __UpdateItemCommandOutput, "Attributes" | "ItemCollectionMetrics">
|
|
48
49
|
> & {
|
|
49
50
|
Attributes?: Record<string, NativeAttributeValue> | undefined;
|
|
50
|
-
ItemCollectionMetrics?:
|
|
51
|
-
| (Pick<ItemCollectionMetrics, Exclude<keyof ItemCollectionMetrics, "ItemCollectionKey">> & {
|
|
52
|
-
ItemCollectionKey?: Record<string, NativeAttributeValue> | undefined;
|
|
53
|
-
})
|
|
54
|
-
| undefined;
|
|
51
|
+
ItemCollectionMetrics?: UpdateItemCollectionMetrics | undefined;
|
|
55
52
|
};
|
|
56
53
|
export declare class UpdateCommand extends DynamoDBDocumentClientCommand<
|
|
57
54
|
UpdateCommandInput,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BatchGetCommandInput, BatchGetCommandOutput } from "../commands/BatchGetCommand";
|
|
2
|
+
import { DynamoDBDocumentClient } from "../DynamoDBDocumentClient";
|
|
3
|
+
export declare function paginatedBatchGet(
|
|
4
|
+
config: {
|
|
5
|
+
client: DynamoDBDocumentClient;
|
|
6
|
+
},
|
|
7
|
+
input: BatchGetCommandInput,
|
|
8
|
+
): AsyncGenerator<BatchGetCommandOutput>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/lib-dynamodb",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1155.0",
|
|
4
4
|
"description": "The document client simplifies working with items in Amazon DynamoDB by abstracting away the notion of attribute values.",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/lib/lib-dynamodb",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
"test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.mts"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@aws-sdk/core": "^3.978.
|
|
46
|
+
"@aws-sdk/core": "^3.978.5",
|
|
47
47
|
"@aws-sdk/util-dynamodb": "^3.996.9",
|
|
48
|
-
"@smithy/core": "^3.36.
|
|
48
|
+
"@smithy/core": "^3.36.1",
|
|
49
49
|
"@smithy/types": "^4.19.0",
|
|
50
50
|
"tslib": "^2.6.2"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@aws-sdk/client-dynamodb": "3.
|
|
53
|
+
"@aws-sdk/client-dynamodb": "3.1155.0",
|
|
54
54
|
"@tsconfig/recommended": "1.0.1",
|
|
55
55
|
"@types/node": "^20.14.8",
|
|
56
56
|
"concurrently": "7.0.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"typescript": "~7.0.2"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"@aws-sdk/client-dynamodb": "^3.
|
|
62
|
+
"@aws-sdk/client-dynamodb": "^3.1155.0"
|
|
63
63
|
},
|
|
64
64
|
"engines": {
|
|
65
65
|
"node": ">=20.0.0"
|