@webiny/api-page-builder-so-ddb-es 5.35.1 → 5.35.2
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/definitions/table.d.ts +2 -2
- package/definitions/table.js +7 -1
- package/definitions/table.js.map +1 -1
- package/package.json +30 -30
package/definitions/table.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TableModifier } from "../types";
|
|
2
|
-
import { DocumentClient } from "aws-sdk/clients/dynamodb";
|
|
3
1
|
import { Table } from "dynamodb-toolbox";
|
|
2
|
+
import { DocumentClient } from "aws-sdk/clients/dynamodb";
|
|
3
|
+
import { TableModifier } from "../types";
|
|
4
4
|
interface Params {
|
|
5
5
|
table?: TableModifier;
|
|
6
6
|
documentClient: DocumentClient;
|
package/definitions/table.js
CHANGED
|
@@ -13,7 +13,13 @@ const createTable = ({
|
|
|
13
13
|
name: process.env.DB_PAGE_BUILDER || process.env.DB_TABLE,
|
|
14
14
|
partitionKey: "PK",
|
|
15
15
|
sortKey: "SK",
|
|
16
|
-
DocumentClient: documentClient
|
|
16
|
+
DocumentClient: documentClient,
|
|
17
|
+
indexes: {
|
|
18
|
+
GSI1: {
|
|
19
|
+
partitionKey: "GSI1_PK",
|
|
20
|
+
sortKey: "GSI1_SK"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
17
23
|
};
|
|
18
24
|
const config = typeof table === "function" ? table(tableConfig) : tableConfig;
|
|
19
25
|
return new _dynamodbToolbox.Table(config);
|
package/definitions/table.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createTable","table","documentClient","tableConfig","name","process","env","DB_PAGE_BUILDER","DB_TABLE","partitionKey","sortKey","DocumentClient","config","Table"],"sources":["table.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"names":["createTable","table","documentClient","tableConfig","name","process","env","DB_PAGE_BUILDER","DB_TABLE","partitionKey","sortKey","DocumentClient","indexes","GSI1","config","Table"],"sources":["table.ts"],"sourcesContent":["import { Table } from \"dynamodb-toolbox\";\nimport { DocumentClient } from \"aws-sdk/clients/dynamodb\";\nimport { TableConstructor } from \"dynamodb-toolbox/dist/classes/Table\";\nimport { TableModifier } from \"~/types\";\n\ninterface Params {\n table?: TableModifier;\n documentClient: DocumentClient;\n}\nexport const createTable = ({ table, documentClient }: Params): Table => {\n const tableConfig: TableConstructor = {\n name: process.env.DB_PAGE_BUILDER || (process.env.DB_TABLE as string),\n partitionKey: \"PK\",\n sortKey: \"SK\",\n DocumentClient: documentClient,\n indexes: {\n GSI1: {\n partitionKey: \"GSI1_PK\",\n sortKey: \"GSI1_SK\"\n }\n }\n };\n\n const config = typeof table === \"function\" ? table(tableConfig) : tableConfig;\n\n return new Table(config);\n};\n"],"mappings":";;;;;;AAAA;AASO,MAAMA,WAAW,GAAG,CAAC;EAAEC,KAAK;EAAEC;AAAuB,CAAC,KAAY;EACrE,MAAMC,WAA6B,GAAG;IAClCC,IAAI,EAAEC,OAAO,CAACC,GAAG,CAACC,eAAe,IAAKF,OAAO,CAACC,GAAG,CAACE,QAAmB;IACrEC,YAAY,EAAE,IAAI;IAClBC,OAAO,EAAE,IAAI;IACbC,cAAc,EAAET,cAAc;IAC9BU,OAAO,EAAE;MACLC,IAAI,EAAE;QACFJ,YAAY,EAAE,SAAS;QACvBC,OAAO,EAAE;MACb;IACJ;EACJ,CAAC;EAED,MAAMI,MAAM,GAAG,OAAOb,KAAK,KAAK,UAAU,GAAGA,KAAK,CAACE,WAAW,CAAC,GAAGA,WAAW;EAE7E,OAAO,IAAIY,sBAAK,CAACD,MAAM,CAAC;AAC5B,CAAC;AAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/api-page-builder-so-ddb-es",
|
|
3
|
-
"version": "5.35.
|
|
3
|
+
"version": "5.35.2",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"@webiny/api-page-builder",
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@babel/runtime": "7.20.13",
|
|
21
|
-
"@webiny/api-elasticsearch": "^5.35.
|
|
22
|
-
"@webiny/api-page-builder": "^5.35.
|
|
23
|
-
"@webiny/db-dynamodb": "^5.35.
|
|
24
|
-
"@webiny/error": "^5.35.
|
|
25
|
-
"@webiny/handler-db": "^5.35.
|
|
26
|
-
"@webiny/plugins": "^5.35.
|
|
27
|
-
"@webiny/utils": "^5.35.
|
|
21
|
+
"@webiny/api-elasticsearch": "^5.35.2",
|
|
22
|
+
"@webiny/api-page-builder": "^5.35.2",
|
|
23
|
+
"@webiny/db-dynamodb": "^5.35.2",
|
|
24
|
+
"@webiny/error": "^5.35.2",
|
|
25
|
+
"@webiny/handler-db": "^5.35.2",
|
|
26
|
+
"@webiny/plugins": "^5.35.2",
|
|
27
|
+
"@webiny/utils": "^5.35.2",
|
|
28
28
|
"dataloader": "2.2.1",
|
|
29
29
|
"dynamodb-toolbox": "0.3.5",
|
|
30
30
|
"elastic-ts": "0.8.0",
|
|
@@ -37,27 +37,27 @@
|
|
|
37
37
|
"@babel/preset-typescript": "7.18.6",
|
|
38
38
|
"@elastic/elasticsearch": "7.12.0",
|
|
39
39
|
"@elastic/elasticsearch-mock": "0.3.0",
|
|
40
|
-
"@webiny/api": "^5.35.
|
|
41
|
-
"@webiny/api-aco": "^5.35.
|
|
42
|
-
"@webiny/api-dynamodb-to-elasticsearch": "^5.35.
|
|
43
|
-
"@webiny/api-file-manager": "^5.35.
|
|
44
|
-
"@webiny/api-file-manager-ddb": "^5.35.
|
|
45
|
-
"@webiny/api-headless-cms": "^5.35.
|
|
46
|
-
"@webiny/api-headless-cms-ddb-es": "^5.35.
|
|
47
|
-
"@webiny/api-i18n": "^5.35.
|
|
48
|
-
"@webiny/api-i18n-ddb": "^5.35.
|
|
49
|
-
"@webiny/api-page-builder-aco": "^5.35.
|
|
50
|
-
"@webiny/api-prerendering-service": "^5.35.
|
|
51
|
-
"@webiny/api-security": "^5.35.
|
|
52
|
-
"@webiny/api-security-so-ddb": "^5.35.
|
|
53
|
-
"@webiny/api-tenancy": "^5.35.
|
|
54
|
-
"@webiny/api-tenancy-so-ddb": "^5.35.
|
|
55
|
-
"@webiny/api-wcp": "^5.35.
|
|
56
|
-
"@webiny/cli": "^5.35.
|
|
57
|
-
"@webiny/handler": "^5.35.
|
|
58
|
-
"@webiny/handler-aws": "^5.35.
|
|
59
|
-
"@webiny/handler-graphql": "^5.35.
|
|
60
|
-
"@webiny/project-utils": "^5.35.
|
|
40
|
+
"@webiny/api": "^5.35.2",
|
|
41
|
+
"@webiny/api-aco": "^5.35.2",
|
|
42
|
+
"@webiny/api-dynamodb-to-elasticsearch": "^5.35.2",
|
|
43
|
+
"@webiny/api-file-manager": "^5.35.2",
|
|
44
|
+
"@webiny/api-file-manager-ddb": "^5.35.2",
|
|
45
|
+
"@webiny/api-headless-cms": "^5.35.2",
|
|
46
|
+
"@webiny/api-headless-cms-ddb-es": "^5.35.2",
|
|
47
|
+
"@webiny/api-i18n": "^5.35.2",
|
|
48
|
+
"@webiny/api-i18n-ddb": "^5.35.2",
|
|
49
|
+
"@webiny/api-page-builder-aco": "^5.35.2",
|
|
50
|
+
"@webiny/api-prerendering-service": "^5.35.2",
|
|
51
|
+
"@webiny/api-security": "^5.35.2",
|
|
52
|
+
"@webiny/api-security-so-ddb": "^5.35.2",
|
|
53
|
+
"@webiny/api-tenancy": "^5.35.2",
|
|
54
|
+
"@webiny/api-tenancy-so-ddb": "^5.35.2",
|
|
55
|
+
"@webiny/api-wcp": "^5.35.2",
|
|
56
|
+
"@webiny/cli": "^5.35.2",
|
|
57
|
+
"@webiny/handler": "^5.35.2",
|
|
58
|
+
"@webiny/handler-aws": "^5.35.2",
|
|
59
|
+
"@webiny/handler-graphql": "^5.35.2",
|
|
60
|
+
"@webiny/project-utils": "^5.35.2",
|
|
61
61
|
"graphql": "15.8.0",
|
|
62
62
|
"jest": "28.1.3",
|
|
63
63
|
"jest-dynalite": "3.6.1",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"build": "yarn webiny run build",
|
|
75
75
|
"watch": "yarn webiny run watch"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "d3f7b134892b6c5ea794e9e7dd4811b27cdf6eb1"
|
|
78
78
|
}
|