@xube/kit-aws 0.0.88 → 0.0.89
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.
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
import { WriteRequest } from "@aws-sdk/client-dynamodb";
|
|
2
2
|
import { DynamoDBDocumentClient } from "@aws-sdk/lib-dynamodb";
|
|
3
|
-
import { TableKey } from "@xube/kit-aws-schema";
|
|
3
|
+
import { TableItem, TableKey } from "@xube/kit-aws-schema";
|
|
4
4
|
export interface BatchPutPropsOutput {
|
|
5
5
|
success: boolean;
|
|
6
6
|
unprocessed?: Record<string, WriteRequest[]>;
|
|
7
7
|
}
|
|
8
8
|
export type UnprocessedItems = TableKey[];
|
|
9
|
-
export declare const putItems: <T extends
|
|
10
|
-
id: string;
|
|
11
|
-
PK: string;
|
|
12
|
-
SK: string;
|
|
13
|
-
type: string;
|
|
14
|
-
s: number;
|
|
15
|
-
us?: number | undefined;
|
|
16
|
-
}>(tableName: string, items: T[], ddbDocClient?: DynamoDBDocumentClient) => Promise<BatchPutPropsOutput>;
|
|
9
|
+
export declare const putItems: <T extends TableItem>(tableName: string, items: T[], ddbDocClient?: DynamoDBDocumentClient) => Promise<BatchPutPropsOutput>;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import { XubeResponse } from "@xube/kit-request";
|
|
2
2
|
import { XubeLog } from "@xube/kit-log";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
PK: string;
|
|
6
|
-
SK: string;
|
|
7
|
-
type: string;
|
|
8
|
-
s: number;
|
|
9
|
-
us?: number | undefined;
|
|
10
|
-
}>(table: string, item: TItem, log?: XubeLog) => Promise<XubeResponse<boolean>>;
|
|
3
|
+
import { TableItem } from "@xube/kit-aws-schema";
|
|
4
|
+
export declare const putItemInTable: <TItem extends TableItem>(table: string, item: TItem, log?: XubeLog) => Promise<XubeResponse<boolean>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xube/kit-aws",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.89",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"homepage": "https://github.com/XubeLtd/dev-kit#readme",
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/aws-lambda": "^8.10.119",
|
|
21
|
-
"@xube/kit-build": "^0.0.
|
|
21
|
+
"@xube/kit-build": "^0.0.89"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@aws-sdk/client-cognito-identity-provider": "^3.433.0",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"@aws-sdk/client-ssm": "^3.433.0",
|
|
27
27
|
"@aws-sdk/lib-dynamodb": "^3.433.0",
|
|
28
28
|
"@aws-sdk/util-dynamodb": "^3.433.0",
|
|
29
|
-
"@xube/kit-aws-schema": "^0.0.
|
|
30
|
-
"@xube/kit-log": "^0.0.
|
|
31
|
-
"@xube/kit-request": "^0.0.
|
|
32
|
-
"@xube/kit-schema": "^0.0.
|
|
29
|
+
"@xube/kit-aws-schema": "^0.0.89",
|
|
30
|
+
"@xube/kit-log": "^0.0.89",
|
|
31
|
+
"@xube/kit-request": "^0.0.89",
|
|
32
|
+
"@xube/kit-schema": "^0.0.89",
|
|
33
33
|
"zod": "^3.22.4"
|
|
34
34
|
}
|
|
35
35
|
}
|