@webiny/db-dynamodb 5.40.5 → 5.41.0-dbt.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/package.json +11 -11
- package/plugins/definitions/FieldPlugin.d.ts +1 -1
- package/types.d.ts +3 -3
- package/utils/batchWrite.d.ts +1 -1
- package/utils/query.d.ts +1 -1
- package/utils/scan.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/db-dynamodb",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.41.0-dbt.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"author": "Webiny Ltd",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@webiny/api": "5.
|
|
14
|
-
"@webiny/aws-sdk": "5.
|
|
15
|
-
"@webiny/db": "5.
|
|
16
|
-
"@webiny/error": "5.
|
|
17
|
-
"@webiny/handler-db": "5.
|
|
18
|
-
"@webiny/plugins": "5.
|
|
13
|
+
"@webiny/api": "5.41.0-dbt.0",
|
|
14
|
+
"@webiny/aws-sdk": "5.41.0-dbt.0",
|
|
15
|
+
"@webiny/db": "5.41.0-dbt.0",
|
|
16
|
+
"@webiny/error": "5.41.0-dbt.0",
|
|
17
|
+
"@webiny/handler-db": "5.41.0-dbt.0",
|
|
18
|
+
"@webiny/plugins": "5.41.0-dbt.0",
|
|
19
19
|
"date-fns": "2.29.3",
|
|
20
20
|
"dot-prop": "6.0.1",
|
|
21
21
|
"dynamodb-toolbox": "0.9.2",
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
"@babel/cli": "7.24.1",
|
|
28
28
|
"@babel/core": "7.24.3",
|
|
29
29
|
"@types/is-number": "7.0.3",
|
|
30
|
-
"@webiny/cli": "5.
|
|
31
|
-
"@webiny/project-utils": "5.
|
|
30
|
+
"@webiny/cli": "5.41.0-dbt.0",
|
|
31
|
+
"@webiny/project-utils": "5.41.0-dbt.0",
|
|
32
32
|
"jest": "29.7.0",
|
|
33
33
|
"jest-dynalite": "3.6.1",
|
|
34
34
|
"rimraf": "5.0.5",
|
|
35
35
|
"ttypescript": "1.5.15",
|
|
36
|
-
"typescript": "4.
|
|
36
|
+
"typescript": "4.9.5"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"build": "yarn webiny run build",
|
|
44
44
|
"watch": "yarn webiny run watch"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "bbaec4dd1685579548c08bbde386aee5d96b80f8"
|
|
47
47
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Plugin } from "@webiny/plugins";
|
|
2
2
|
import { DynamoDBTypes } from "../../toolbox";
|
|
3
|
-
export
|
|
3
|
+
export type FieldType = DynamoDBTypes & "date" & any;
|
|
4
4
|
export interface TransformValueCb {
|
|
5
5
|
(value: any): any;
|
|
6
6
|
}
|
package/types.d.ts
CHANGED
|
@@ -53,9 +53,9 @@ export interface QueryKey {
|
|
|
53
53
|
unique?: boolean;
|
|
54
54
|
name: string;
|
|
55
55
|
}
|
|
56
|
-
export
|
|
57
|
-
export
|
|
58
|
-
export
|
|
56
|
+
export type QueryKeys = QueryKey[];
|
|
57
|
+
export type QuerySort = Record<string, -1 | 1>;
|
|
58
|
+
export type DbItem<TData extends Record<string, any> = Record<string, any>> = {
|
|
59
59
|
PK: string;
|
|
60
60
|
SK: string;
|
|
61
61
|
GSI1_PK: string;
|
package/utils/batchWrite.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export interface BatchWriteResponse {
|
|
|
19
19
|
[table: string]: WriteRequest[];
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
export
|
|
22
|
+
export type BatchWriteResult = BatchWriteResponse[];
|
|
23
23
|
/**
|
|
24
24
|
* Method is meant for batch writing to a single table.
|
|
25
25
|
* It expects already prepared items for writing.
|
package/utils/query.d.ts
CHANGED
package/utils/scan.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export interface ScanWithEntity extends BaseScanParams {
|
|
|
13
13
|
entity: Entity;
|
|
14
14
|
table?: never;
|
|
15
15
|
}
|
|
16
|
-
export
|
|
16
|
+
export type ScanParams = ScanWithTable | ScanWithEntity;
|
|
17
17
|
export interface ScanResponse<T = any> {
|
|
18
18
|
items: T[];
|
|
19
19
|
count?: number;
|
|
@@ -23,7 +23,7 @@ export interface ScanResponse<T = any> {
|
|
|
23
23
|
requestId: string;
|
|
24
24
|
error: any;
|
|
25
25
|
}
|
|
26
|
-
export
|
|
26
|
+
export type ScanDbItem<T> = T & {
|
|
27
27
|
PK: string;
|
|
28
28
|
SK: string;
|
|
29
29
|
GSI1_PK: string;
|