@webiny/api-prerendering-service-so-ddb 0.0.0-unstable.e3f4727c56 → 0.0.0-unstable.eb196ccd2f
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/queueJob.d.ts +4 -3
- package/definitions/queueJob.js +9 -8
- package/definitions/queueJob.js.map +1 -1
- package/definitions/render.d.ts +4 -3
- package/definitions/render.js +9 -8
- package/definitions/render.js.map +1 -1
- package/definitions/renderLegacy.d.ts +4 -3
- package/definitions/renderLegacy.js +9 -8
- package/definitions/renderLegacy.js.map +1 -1
- package/definitions/settings.d.ts +4 -3
- package/definitions/settings.js +9 -8
- package/definitions/settings.js.map +1 -1
- package/definitions/table.d.ts +5 -5
- package/definitions/table.js +8 -4
- package/definitions/table.js.map +1 -1
- package/definitions/tagPathLink.d.ts +51 -4
- package/definitions/tagPathLink.js +9 -8
- package/definitions/tagPathLink.js.map +1 -1
- package/definitions/tagPathLinkLegacy.d.ts +57 -4
- package/definitions/tagPathLinkLegacy.js +9 -8
- package/definitions/tagPathLinkLegacy.js.map +1 -1
- package/definitions/tenantEntity.d.ts +3 -2
- package/definitions/tenantEntity.js +5 -3
- package/definitions/tenantEntity.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +19 -14
- package/index.js.map +1 -1
- package/operations/queueJob.d.ts +2 -2
- package/operations/queueJob.js +22 -18
- package/operations/queueJob.js.map +1 -1
- package/operations/render.d.ts +4 -5
- package/operations/render.js +68 -64
- package/operations/render.js.map +1 -1
- package/operations/settings.d.ts +2 -2
- package/operations/settings.js +13 -7
- package/operations/settings.js.map +1 -1
- package/operations/tenant.d.ts +2 -2
- package/operations/tenant.js +4 -3
- package/operations/tenant.js.map +1 -1
- package/package.json +16 -31
- package/types.d.ts +10 -11
- package/types.js +5 -4
- package/types.js.map +1 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Table } from "@webiny/db-dynamodb/toolbox";
|
|
2
|
+
import { Entity } from "@webiny/db-dynamodb/toolbox";
|
|
3
|
+
import type { Attributes } from "../types";
|
|
3
4
|
export interface CreateQueueJobEntityParams {
|
|
4
|
-
table: Table
|
|
5
|
+
table: Table<string, string, string>;
|
|
5
6
|
entityName: string;
|
|
6
7
|
attributes: Attributes;
|
|
7
8
|
}
|
package/definitions/queueJob.js
CHANGED
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports.createQueueJobEntity = void 0;
|
|
8
|
-
var
|
|
9
|
-
var _dynamodbToolbox = require("dynamodb-toolbox");
|
|
7
|
+
var _toolbox = require("@webiny/db-dynamodb/toolbox");
|
|
10
8
|
const createQueueJobEntity = params => {
|
|
11
9
|
const {
|
|
12
10
|
entityName,
|
|
13
11
|
attributes,
|
|
14
12
|
table
|
|
15
13
|
} = params;
|
|
16
|
-
return new
|
|
14
|
+
return new _toolbox.Entity({
|
|
17
15
|
name: entityName,
|
|
18
16
|
table,
|
|
19
|
-
attributes:
|
|
17
|
+
attributes: {
|
|
20
18
|
PK: {
|
|
21
19
|
partitionKey: true
|
|
22
20
|
},
|
|
@@ -31,8 +29,11 @@ const createQueueJobEntity = params => {
|
|
|
31
29
|
},
|
|
32
30
|
args: {
|
|
33
31
|
type: "map"
|
|
34
|
-
}
|
|
35
|
-
|
|
32
|
+
},
|
|
33
|
+
...(attributes || {})
|
|
34
|
+
}
|
|
36
35
|
});
|
|
37
36
|
};
|
|
38
|
-
exports.createQueueJobEntity = createQueueJobEntity;
|
|
37
|
+
exports.createQueueJobEntity = createQueueJobEntity;
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=queueJob.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createQueueJobEntity","params","entityName","attributes","table","Entity","name","PK","partitionKey","SK","sortKey","TYPE","type","id","args"],"sources":["queueJob.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"names":["_toolbox","require","createQueueJobEntity","params","entityName","attributes","table","Entity","name","PK","partitionKey","SK","sortKey","TYPE","type","id","args","exports"],"sources":["queueJob.ts"],"sourcesContent":["import type { Table } from \"@webiny/db-dynamodb/toolbox\";\nimport { Entity } from \"@webiny/db-dynamodb/toolbox\";\nimport type { Attributes } from \"~/types\";\n\nexport interface CreateQueueJobEntityParams {\n table: Table<string, string, string>;\n entityName: string;\n attributes: Attributes;\n}\n\nexport const createQueueJobEntity = (params: CreateQueueJobEntityParams): Entity<any> => {\n const { entityName, attributes, table } = params;\n return new Entity({\n name: entityName,\n table,\n attributes: {\n PK: {\n partitionKey: true\n },\n SK: {\n sortKey: true\n },\n TYPE: {\n type: \"string\"\n },\n id: {\n type: \"string\"\n },\n args: {\n type: \"map\"\n },\n ...(attributes || {})\n }\n });\n};\n"],"mappings":";;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AASO,MAAMC,oBAAoB,GAAIC,MAAkC,IAAkB;EACrF,MAAM;IAAEC,UAAU;IAAEC,UAAU;IAAEC;EAAM,CAAC,GAAGH,MAAM;EAChD,OAAO,IAAII,eAAM,CAAC;IACdC,IAAI,EAAEJ,UAAU;IAChBE,KAAK;IACLD,UAAU,EAAE;MACRI,EAAE,EAAE;QACAC,YAAY,EAAE;MAClB,CAAC;MACDC,EAAE,EAAE;QACAC,OAAO,EAAE;MACb,CAAC;MACDC,IAAI,EAAE;QACFC,IAAI,EAAE;MACV,CAAC;MACDC,EAAE,EAAE;QACAD,IAAI,EAAE;MACV,CAAC;MACDE,IAAI,EAAE;QACFF,IAAI,EAAE;MACV,CAAC;MACD,IAAIT,UAAU,IAAI,CAAC,CAAC;IACxB;EACJ,CAAC,CAAC;AACN,CAAC;AAACY,OAAA,CAAAf,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
package/definitions/render.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Table } from "@webiny/db-dynamodb/toolbox";
|
|
2
|
+
import { Entity } from "@webiny/db-dynamodb/toolbox";
|
|
3
|
+
import type { Attributes } from "../types";
|
|
3
4
|
export interface CreateRenderEntityParams {
|
|
4
|
-
table: Table
|
|
5
|
+
table: Table<string, string, string>;
|
|
5
6
|
entityName: string;
|
|
6
7
|
attributes: Attributes;
|
|
7
8
|
}
|
package/definitions/render.js
CHANGED
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports.createRenderEntity = void 0;
|
|
8
|
-
var
|
|
9
|
-
var _dynamodbToolbox = require("dynamodb-toolbox");
|
|
7
|
+
var _toolbox = require("@webiny/db-dynamodb/toolbox");
|
|
10
8
|
const createRenderEntity = params => {
|
|
11
9
|
const {
|
|
12
10
|
entityName,
|
|
13
11
|
attributes,
|
|
14
12
|
table
|
|
15
13
|
} = params;
|
|
16
|
-
return new
|
|
14
|
+
return new _toolbox.Entity({
|
|
17
15
|
name: entityName,
|
|
18
16
|
table,
|
|
19
|
-
attributes:
|
|
17
|
+
attributes: {
|
|
20
18
|
PK: {
|
|
21
19
|
partitionKey: true
|
|
22
20
|
},
|
|
@@ -34,8 +32,11 @@ const createRenderEntity = params => {
|
|
|
34
32
|
},
|
|
35
33
|
data: {
|
|
36
34
|
type: "map"
|
|
37
|
-
}
|
|
38
|
-
|
|
35
|
+
},
|
|
36
|
+
...(attributes || {})
|
|
37
|
+
}
|
|
39
38
|
});
|
|
40
39
|
};
|
|
41
|
-
exports.createRenderEntity = createRenderEntity;
|
|
40
|
+
exports.createRenderEntity = createRenderEntity;
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=render.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createRenderEntity","params","entityName","attributes","table","Entity","name","PK","partitionKey","SK","sortKey","TYPE","type","GSI1_PK","GSI1_SK","data"],"sources":["render.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"names":["_toolbox","require","createRenderEntity","params","entityName","attributes","table","Entity","name","PK","partitionKey","SK","sortKey","TYPE","type","GSI1_PK","GSI1_SK","data","exports"],"sources":["render.ts"],"sourcesContent":["import type { Table } from \"@webiny/db-dynamodb/toolbox\";\nimport { Entity } from \"@webiny/db-dynamodb/toolbox\";\nimport type { Attributes } from \"~/types\";\n\nexport interface CreateRenderEntityParams {\n table: Table<string, string, string>;\n entityName: string;\n attributes: Attributes;\n}\n\nexport const createRenderEntity = (params: CreateRenderEntityParams): Entity<any> => {\n const { entityName, attributes, table } = params;\n return new Entity({\n name: entityName,\n table,\n attributes: {\n PK: {\n partitionKey: true\n },\n SK: {\n sortKey: true\n },\n TYPE: {\n type: \"string\"\n },\n GSI1_PK: {\n type: \"string\"\n },\n GSI1_SK: {\n type: \"string\"\n },\n data: {\n type: \"map\"\n },\n ...(attributes || {})\n }\n });\n};\n"],"mappings":";;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AASO,MAAMC,kBAAkB,GAAIC,MAAgC,IAAkB;EACjF,MAAM;IAAEC,UAAU;IAAEC,UAAU;IAAEC;EAAM,CAAC,GAAGH,MAAM;EAChD,OAAO,IAAII,eAAM,CAAC;IACdC,IAAI,EAAEJ,UAAU;IAChBE,KAAK;IACLD,UAAU,EAAE;MACRI,EAAE,EAAE;QACAC,YAAY,EAAE;MAClB,CAAC;MACDC,EAAE,EAAE;QACAC,OAAO,EAAE;MACb,CAAC;MACDC,IAAI,EAAE;QACFC,IAAI,EAAE;MACV,CAAC;MACDC,OAAO,EAAE;QACLD,IAAI,EAAE;MACV,CAAC;MACDE,OAAO,EAAE;QACLF,IAAI,EAAE;MACV,CAAC;MACDG,IAAI,EAAE;QACFH,IAAI,EAAE;MACV,CAAC;MACD,IAAIT,UAAU,IAAI,CAAC,CAAC;IACxB;EACJ,CAAC,CAAC;AACN,CAAC;AAACa,OAAA,CAAAhB,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Table } from "@webiny/db-dynamodb/toolbox";
|
|
2
|
+
import { Entity } from "@webiny/db-dynamodb/toolbox";
|
|
3
|
+
import type { Attributes } from "../types";
|
|
3
4
|
export interface CreateRenderEntityParams {
|
|
4
|
-
table: Table
|
|
5
|
+
table: Table<string, string, string>;
|
|
5
6
|
entityName: string;
|
|
6
7
|
attributes: Attributes;
|
|
7
8
|
}
|
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports.createRenderEntity = void 0;
|
|
8
|
-
var
|
|
9
|
-
var _dynamodbToolbox = require("dynamodb-toolbox");
|
|
7
|
+
var _toolbox = require("@webiny/db-dynamodb/toolbox");
|
|
10
8
|
const createRenderEntity = params => {
|
|
11
9
|
const {
|
|
12
10
|
entityName,
|
|
13
11
|
attributes,
|
|
14
12
|
table
|
|
15
13
|
} = params;
|
|
16
|
-
return new
|
|
14
|
+
return new _toolbox.Entity({
|
|
17
15
|
name: entityName,
|
|
18
16
|
table,
|
|
19
|
-
attributes:
|
|
17
|
+
attributes: {
|
|
20
18
|
PK: {
|
|
21
19
|
partitionKey: true
|
|
22
20
|
},
|
|
@@ -40,8 +38,11 @@ const createRenderEntity = params => {
|
|
|
40
38
|
},
|
|
41
39
|
files: {
|
|
42
40
|
type: "list"
|
|
43
|
-
}
|
|
44
|
-
|
|
41
|
+
},
|
|
42
|
+
...(attributes || {})
|
|
43
|
+
}
|
|
45
44
|
});
|
|
46
45
|
};
|
|
47
|
-
exports.createRenderEntity = createRenderEntity;
|
|
46
|
+
exports.createRenderEntity = createRenderEntity;
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=renderLegacy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createRenderEntity","params","entityName","attributes","table","Entity","name","PK","partitionKey","SK","sortKey","TYPE","type","namespace","url","args","configuration","files"],"sources":["renderLegacy.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"names":["_toolbox","require","createRenderEntity","params","entityName","attributes","table","Entity","name","PK","partitionKey","SK","sortKey","TYPE","type","namespace","url","args","configuration","files","exports"],"sources":["renderLegacy.ts"],"sourcesContent":["import type { Table } from \"@webiny/db-dynamodb/toolbox\";\nimport { Entity } from \"@webiny/db-dynamodb/toolbox\";\nimport type { Attributes } from \"~/types\";\n\nexport interface CreateRenderEntityParams {\n table: Table<string, string, string>;\n entityName: string;\n attributes: Attributes;\n}\n\nexport const createRenderEntity = (params: CreateRenderEntityParams): Entity<any> => {\n const { entityName, attributes, table } = params;\n return new Entity({\n name: entityName,\n table,\n attributes: {\n PK: {\n partitionKey: true\n },\n SK: {\n sortKey: true\n },\n TYPE: {\n type: \"string\"\n },\n namespace: {\n type: \"string\"\n },\n url: {\n type: \"string\"\n },\n args: {\n type: \"map\"\n },\n configuration: {\n type: \"map\"\n },\n files: {\n type: \"list\"\n },\n ...(attributes || {})\n }\n });\n};\n"],"mappings":";;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AASO,MAAMC,kBAAkB,GAAIC,MAAgC,IAAkB;EACjF,MAAM;IAAEC,UAAU;IAAEC,UAAU;IAAEC;EAAM,CAAC,GAAGH,MAAM;EAChD,OAAO,IAAII,eAAM,CAAC;IACdC,IAAI,EAAEJ,UAAU;IAChBE,KAAK;IACLD,UAAU,EAAE;MACRI,EAAE,EAAE;QACAC,YAAY,EAAE;MAClB,CAAC;MACDC,EAAE,EAAE;QACAC,OAAO,EAAE;MACb,CAAC;MACDC,IAAI,EAAE;QACFC,IAAI,EAAE;MACV,CAAC;MACDC,SAAS,EAAE;QACPD,IAAI,EAAE;MACV,CAAC;MACDE,GAAG,EAAE;QACDF,IAAI,EAAE;MACV,CAAC;MACDG,IAAI,EAAE;QACFH,IAAI,EAAE;MACV,CAAC;MACDI,aAAa,EAAE;QACXJ,IAAI,EAAE;MACV,CAAC;MACDK,KAAK,EAAE;QACHL,IAAI,EAAE;MACV,CAAC;MACD,IAAIT,UAAU,IAAI,CAAC,CAAC;IACxB;EACJ,CAAC,CAAC;AACN,CAAC;AAACe,OAAA,CAAAlB,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Table } from "@webiny/db-dynamodb/toolbox";
|
|
2
|
+
import { Entity } from "@webiny/db-dynamodb/toolbox";
|
|
3
|
+
import type { Attributes } from "../types";
|
|
3
4
|
export interface CreateSettingsEntityParams {
|
|
4
|
-
table: Table
|
|
5
|
+
table: Table<string, string, string>;
|
|
5
6
|
entityName: string;
|
|
6
7
|
attributes: Attributes;
|
|
7
8
|
}
|
package/definitions/settings.js
CHANGED
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports.createSettingsEntity = void 0;
|
|
8
|
-
var
|
|
9
|
-
var _dynamodbToolbox = require("dynamodb-toolbox");
|
|
7
|
+
var _toolbox = require("@webiny/db-dynamodb/toolbox");
|
|
10
8
|
const createSettingsEntity = params => {
|
|
11
9
|
const {
|
|
12
10
|
entityName,
|
|
13
11
|
attributes,
|
|
14
12
|
table
|
|
15
13
|
} = params;
|
|
16
|
-
return new
|
|
14
|
+
return new _toolbox.Entity({
|
|
17
15
|
name: entityName,
|
|
18
16
|
table,
|
|
19
|
-
attributes:
|
|
17
|
+
attributes: {
|
|
20
18
|
PK: {
|
|
21
19
|
partitionKey: true
|
|
22
20
|
},
|
|
@@ -28,8 +26,11 @@ const createSettingsEntity = params => {
|
|
|
28
26
|
},
|
|
29
27
|
data: {
|
|
30
28
|
type: "map"
|
|
31
|
-
}
|
|
32
|
-
|
|
29
|
+
},
|
|
30
|
+
...(attributes || {})
|
|
31
|
+
}
|
|
33
32
|
});
|
|
34
33
|
};
|
|
35
|
-
exports.createSettingsEntity = createSettingsEntity;
|
|
34
|
+
exports.createSettingsEntity = createSettingsEntity;
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=settings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createSettingsEntity","params","entityName","attributes","table","Entity","name","PK","partitionKey","SK","sortKey","TYPE","type","data"],"sources":["settings.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"names":["_toolbox","require","createSettingsEntity","params","entityName","attributes","table","Entity","name","PK","partitionKey","SK","sortKey","TYPE","type","data","exports"],"sources":["settings.ts"],"sourcesContent":["import type { Table } from \"@webiny/db-dynamodb/toolbox\";\nimport { Entity } from \"@webiny/db-dynamodb/toolbox\";\nimport type { Attributes } from \"~/types\";\n\nexport interface CreateSettingsEntityParams {\n table: Table<string, string, string>;\n entityName: string;\n attributes: Attributes;\n}\n\nexport const createSettingsEntity = (params: CreateSettingsEntityParams): Entity<any> => {\n const { entityName, attributes, table } = params;\n return new Entity({\n name: entityName,\n table,\n attributes: {\n PK: {\n partitionKey: true\n },\n SK: {\n sortKey: true\n },\n TYPE: {\n type: \"string\"\n },\n data: {\n type: \"map\"\n },\n ...(attributes || {})\n }\n });\n};\n"],"mappings":";;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AASO,MAAMC,oBAAoB,GAAIC,MAAkC,IAAkB;EACrF,MAAM;IAAEC,UAAU;IAAEC,UAAU;IAAEC;EAAM,CAAC,GAAGH,MAAM;EAChD,OAAO,IAAII,eAAM,CAAC;IACdC,IAAI,EAAEJ,UAAU;IAChBE,KAAK;IACLD,UAAU,EAAE;MACRI,EAAE,EAAE;QACAC,YAAY,EAAE;MAClB,CAAC;MACDC,EAAE,EAAE;QACAC,OAAO,EAAE;MACb,CAAC;MACDC,IAAI,EAAE;QACFC,IAAI,EAAE;MACV,CAAC;MACDC,IAAI,EAAE;QACFD,IAAI,EAAE;MACV,CAAC;MACD,IAAIT,UAAU,IAAI,CAAC,CAAC;IACxB;EACJ,CAAC,CAAC;AACN,CAAC;AAACW,OAAA,CAAAd,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
package/definitions/table.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Table } from "dynamodb
|
|
3
|
-
import { TableModifier } from "../types";
|
|
1
|
+
import type { DynamoDBDocument } from "@webiny/aws-sdk/client-dynamodb";
|
|
2
|
+
import { Table } from "@webiny/db-dynamodb/toolbox";
|
|
3
|
+
import type { TableModifier } from "../types";
|
|
4
4
|
interface CreateTableParams {
|
|
5
5
|
table?: TableModifier;
|
|
6
|
-
documentClient:
|
|
6
|
+
documentClient: DynamoDBDocument;
|
|
7
7
|
}
|
|
8
|
-
export declare const createTable: (params: CreateTableParams) => Table
|
|
8
|
+
export declare const createTable: (params: CreateTableParams) => Table<string, string, string>;
|
|
9
9
|
export {};
|
package/definitions/table.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.createTable = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _toolbox = require("@webiny/db-dynamodb/toolbox");
|
|
8
8
|
const createTable = params => {
|
|
9
9
|
const {
|
|
10
10
|
table,
|
|
@@ -20,9 +20,13 @@ const createTable = params => {
|
|
|
20
20
|
partitionKey: "GSI1_PK",
|
|
21
21
|
sortKey: "GSI1_SK"
|
|
22
22
|
}
|
|
23
|
-
}
|
|
23
|
+
},
|
|
24
|
+
autoExecute: true,
|
|
25
|
+
autoParse: true
|
|
24
26
|
};
|
|
25
27
|
const config = typeof table === "function" ? table(tableConfig) : tableConfig;
|
|
26
|
-
return new
|
|
28
|
+
return new _toolbox.Table(config);
|
|
27
29
|
};
|
|
28
|
-
exports.createTable = createTable;
|
|
30
|
+
exports.createTable = createTable;
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=table.js.map
|
package/definitions/table.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createTable","params","table","documentClient","tableConfig","name","process","env","DB_TABLE_PRERENDERING_SERVICE","DB_TABLE","partitionKey","sortKey","DocumentClient","indexes","GSI1","config","Table"],"sources":["table.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"names":["_toolbox","require","createTable","params","table","documentClient","tableConfig","name","process","env","DB_TABLE_PRERENDERING_SERVICE","DB_TABLE","partitionKey","sortKey","DocumentClient","indexes","GSI1","autoExecute","autoParse","config","Table","exports"],"sources":["table.ts"],"sourcesContent":["import type { DynamoDBDocument } from \"@webiny/aws-sdk/client-dynamodb\";\nimport { Table } from \"@webiny/db-dynamodb/toolbox\";\nimport type { TableModifier } from \"~/types\";\nimport type { TableConstructor } from \"@webiny/db-dynamodb/toolbox\";\n\ninterface CreateTableParams {\n table?: TableModifier;\n documentClient: DynamoDBDocument;\n}\n\nexport const createTable = (params: CreateTableParams): Table<string, string, string> => {\n const { table, documentClient } = params;\n\n const tableConfig: TableConstructor<string, string, string> = {\n name: (process.env.DB_TABLE_PRERENDERING_SERVICE || 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 autoExecute: true,\n autoParse: true\n };\n\n const config = typeof table === \"function\" ? table(tableConfig) : tableConfig;\n\n return new Table(config);\n};\n"],"mappings":";;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AASO,MAAMC,WAAW,GAAIC,MAAyB,IAAoC;EACrF,MAAM;IAAEC,KAAK;IAAEC;EAAe,CAAC,GAAGF,MAAM;EAExC,MAAMG,WAAqD,GAAG;IAC1DC,IAAI,EAAGC,OAAO,CAACC,GAAG,CAACC,6BAA6B,IAAIF,OAAO,CAACC,GAAG,CAACE,QAAmB;IACnFC,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,CAAC;IACDI,WAAW,EAAE,IAAI;IACjBC,SAAS,EAAE;EACf,CAAC;EAED,MAAMC,MAAM,GAAG,OAAOf,KAAK,KAAK,UAAU,GAAGA,KAAK,CAACE,WAAW,CAAC,GAAGA,WAAW;EAE7E,OAAO,IAAIc,cAAK,CAACD,MAAM,CAAC;AAC5B,CAAC;AAACE,OAAA,CAAAnB,WAAA,GAAAA,WAAA","ignoreList":[]}
|
|
@@ -1,9 +1,56 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Table } from "@webiny/db-dynamodb/toolbox";
|
|
2
|
+
import { Entity } from "@webiny/db-dynamodb/toolbox";
|
|
3
|
+
import type { Attributes } from "../types";
|
|
3
4
|
interface CreateTagPathLinkEntityParams {
|
|
4
|
-
table: Table
|
|
5
|
+
table: Table<string, string, string>;
|
|
5
6
|
entityName: string;
|
|
6
7
|
attributes: Attributes;
|
|
7
8
|
}
|
|
8
|
-
export declare const createTagPathLinkEntity: (params: CreateTagPathLinkEntityParams) => Entity<{
|
|
9
|
+
export declare const createTagPathLinkEntity: (params: CreateTagPathLinkEntityParams) => Entity<string, import("dynamodb-toolbox/dist/cjs/classes/Entity").Overlay, import("dynamodb-toolbox/dist/cjs/classes/Entity").Overlay, Table<string, string, string>, boolean, boolean, boolean, string, string, string, boolean, {
|
|
10
|
+
PK: {
|
|
11
|
+
partitionKey: true;
|
|
12
|
+
};
|
|
13
|
+
SK: {
|
|
14
|
+
sortKey: true;
|
|
15
|
+
};
|
|
16
|
+
TYPE: {
|
|
17
|
+
type: "string";
|
|
18
|
+
};
|
|
19
|
+
GSI1_PK: {
|
|
20
|
+
type: "string";
|
|
21
|
+
};
|
|
22
|
+
GSI1_SK: {
|
|
23
|
+
type: "string";
|
|
24
|
+
};
|
|
25
|
+
data: {
|
|
26
|
+
type: "map";
|
|
27
|
+
};
|
|
28
|
+
}, {
|
|
29
|
+
PK: {
|
|
30
|
+
partitionKey: true;
|
|
31
|
+
};
|
|
32
|
+
SK: {
|
|
33
|
+
sortKey: true;
|
|
34
|
+
};
|
|
35
|
+
TYPE: {
|
|
36
|
+
type: "string";
|
|
37
|
+
};
|
|
38
|
+
GSI1_PK: {
|
|
39
|
+
type: "string";
|
|
40
|
+
};
|
|
41
|
+
GSI1_SK: {
|
|
42
|
+
type: "string";
|
|
43
|
+
};
|
|
44
|
+
data: {
|
|
45
|
+
type: "map";
|
|
46
|
+
};
|
|
47
|
+
}, import("dynamodb-toolbox/dist/cjs/classes/Entity").ParsedAttributes<import("ts-toolbelt/out/Any/Key").Key>, any, {
|
|
48
|
+
[x: string]: any;
|
|
49
|
+
[x: number]: any;
|
|
50
|
+
[x: symbol]: any;
|
|
51
|
+
}, {
|
|
52
|
+
[x: string]: any;
|
|
53
|
+
[x: number]: any;
|
|
54
|
+
[x: symbol]: any;
|
|
55
|
+
}>;
|
|
9
56
|
export {};
|
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports.createTagPathLinkEntity = void 0;
|
|
8
|
-
var
|
|
9
|
-
var _dynamodbToolbox = require("dynamodb-toolbox");
|
|
7
|
+
var _toolbox = require("@webiny/db-dynamodb/toolbox");
|
|
10
8
|
const createTagPathLinkEntity = params => {
|
|
11
9
|
const {
|
|
12
10
|
entityName,
|
|
13
11
|
attributes,
|
|
14
12
|
table
|
|
15
13
|
} = params;
|
|
16
|
-
return new
|
|
14
|
+
return new _toolbox.Entity({
|
|
17
15
|
name: entityName,
|
|
18
16
|
table,
|
|
19
|
-
attributes:
|
|
17
|
+
attributes: {
|
|
20
18
|
PK: {
|
|
21
19
|
partitionKey: true
|
|
22
20
|
},
|
|
@@ -34,8 +32,11 @@ const createTagPathLinkEntity = params => {
|
|
|
34
32
|
},
|
|
35
33
|
data: {
|
|
36
34
|
type: "map"
|
|
37
|
-
}
|
|
38
|
-
|
|
35
|
+
},
|
|
36
|
+
...(attributes || {})
|
|
37
|
+
}
|
|
39
38
|
});
|
|
40
39
|
};
|
|
41
|
-
exports.createTagPathLinkEntity = createTagPathLinkEntity;
|
|
40
|
+
exports.createTagPathLinkEntity = createTagPathLinkEntity;
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=tagPathLink.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createTagPathLinkEntity","params","entityName","attributes","table","Entity","name","PK","partitionKey","SK","sortKey","TYPE","type","GSI1_PK","GSI1_SK","data"],"sources":["tagPathLink.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"names":["_toolbox","require","createTagPathLinkEntity","params","entityName","attributes","table","Entity","name","PK","partitionKey","SK","sortKey","TYPE","type","GSI1_PK","GSI1_SK","data","exports"],"sources":["tagPathLink.ts"],"sourcesContent":["import type { Table } from \"@webiny/db-dynamodb/toolbox\";\nimport { Entity } from \"@webiny/db-dynamodb/toolbox\";\nimport type { Attributes } from \"~/types\";\n\ninterface CreateTagPathLinkEntityParams {\n table: Table<string, string, string>;\n entityName: string;\n attributes: Attributes;\n}\n\nexport const createTagPathLinkEntity = (params: CreateTagPathLinkEntityParams) => {\n const { entityName, attributes, table } = params;\n return new Entity({\n name: entityName,\n table,\n attributes: {\n PK: {\n partitionKey: true\n },\n SK: {\n sortKey: true\n },\n TYPE: {\n type: \"string\"\n },\n GSI1_PK: {\n type: \"string\"\n },\n GSI1_SK: {\n type: \"string\"\n },\n data: {\n type: \"map\"\n },\n ...(attributes || {})\n }\n });\n};\n"],"mappings":";;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AASO,MAAMC,uBAAuB,GAAIC,MAAqC,IAAK;EAC9E,MAAM;IAAEC,UAAU;IAAEC,UAAU;IAAEC;EAAM,CAAC,GAAGH,MAAM;EAChD,OAAO,IAAII,eAAM,CAAC;IACdC,IAAI,EAAEJ,UAAU;IAChBE,KAAK;IACLD,UAAU,EAAE;MACRI,EAAE,EAAE;QACAC,YAAY,EAAE;MAClB,CAAC;MACDC,EAAE,EAAE;QACAC,OAAO,EAAE;MACb,CAAC;MACDC,IAAI,EAAE;QACFC,IAAI,EAAE;MACV,CAAC;MACDC,OAAO,EAAE;QACLD,IAAI,EAAE;MACV,CAAC;MACDE,OAAO,EAAE;QACLF,IAAI,EAAE;MACV,CAAC;MACDG,IAAI,EAAE;QACFH,IAAI,EAAE;MACV,CAAC;MACD,IAAIT,UAAU,IAAI,CAAC,CAAC;IACxB;EACJ,CAAC,CAAC;AACN,CAAC;AAACa,OAAA,CAAAhB,uBAAA,GAAAA,uBAAA","ignoreList":[]}
|
|
@@ -1,9 +1,62 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Table } from "@webiny/db-dynamodb/toolbox";
|
|
2
|
+
import { Entity } from "@webiny/db-dynamodb/toolbox";
|
|
3
|
+
import type { Attributes } from "../types";
|
|
3
4
|
interface CreateTagUrlLinkEntityParams {
|
|
4
|
-
table: Table
|
|
5
|
+
table: Table<string, string, string>;
|
|
5
6
|
entityName: string;
|
|
6
7
|
attributes: Attributes;
|
|
7
8
|
}
|
|
8
|
-
export declare const createTagUrlLinkEntity: (params: CreateTagUrlLinkEntityParams) => Entity<{
|
|
9
|
+
export declare const createTagUrlLinkEntity: (params: CreateTagUrlLinkEntityParams) => Entity<string, import("dynamodb-toolbox/dist/cjs/classes/Entity").Overlay, import("dynamodb-toolbox/dist/cjs/classes/Entity").Overlay, Table<string, string, string>, boolean, boolean, boolean, string, string, string, boolean, {
|
|
10
|
+
PK: {
|
|
11
|
+
partitionKey: true;
|
|
12
|
+
};
|
|
13
|
+
SK: {
|
|
14
|
+
sortKey: true;
|
|
15
|
+
};
|
|
16
|
+
TYPE: {
|
|
17
|
+
type: "string";
|
|
18
|
+
};
|
|
19
|
+
namespace: {
|
|
20
|
+
type: "string";
|
|
21
|
+
};
|
|
22
|
+
url: {
|
|
23
|
+
type: "string";
|
|
24
|
+
};
|
|
25
|
+
value: {
|
|
26
|
+
type: "string";
|
|
27
|
+
};
|
|
28
|
+
key: {
|
|
29
|
+
type: "string";
|
|
30
|
+
};
|
|
31
|
+
}, {
|
|
32
|
+
PK: {
|
|
33
|
+
partitionKey: true;
|
|
34
|
+
};
|
|
35
|
+
SK: {
|
|
36
|
+
sortKey: true;
|
|
37
|
+
};
|
|
38
|
+
TYPE: {
|
|
39
|
+
type: "string";
|
|
40
|
+
};
|
|
41
|
+
namespace: {
|
|
42
|
+
type: "string";
|
|
43
|
+
};
|
|
44
|
+
url: {
|
|
45
|
+
type: "string";
|
|
46
|
+
};
|
|
47
|
+
value: {
|
|
48
|
+
type: "string";
|
|
49
|
+
};
|
|
50
|
+
key: {
|
|
51
|
+
type: "string";
|
|
52
|
+
};
|
|
53
|
+
}, import("dynamodb-toolbox/dist/cjs/classes/Entity").ParsedAttributes<import("ts-toolbelt/out/Any/Key").Key>, any, {
|
|
54
|
+
[x: string]: any;
|
|
55
|
+
[x: number]: any;
|
|
56
|
+
[x: symbol]: any;
|
|
57
|
+
}, {
|
|
58
|
+
[x: string]: any;
|
|
59
|
+
[x: number]: any;
|
|
60
|
+
[x: symbol]: any;
|
|
61
|
+
}>;
|
|
9
62
|
export {};
|
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports.createTagUrlLinkEntity = void 0;
|
|
8
|
-
var
|
|
9
|
-
var _dynamodbToolbox = require("dynamodb-toolbox");
|
|
7
|
+
var _toolbox = require("@webiny/db-dynamodb/toolbox");
|
|
10
8
|
const createTagUrlLinkEntity = params => {
|
|
11
9
|
const {
|
|
12
10
|
entityName,
|
|
13
11
|
attributes,
|
|
14
12
|
table
|
|
15
13
|
} = params;
|
|
16
|
-
return new
|
|
14
|
+
return new _toolbox.Entity({
|
|
17
15
|
name: entityName,
|
|
18
16
|
table,
|
|
19
|
-
attributes:
|
|
17
|
+
attributes: {
|
|
20
18
|
PK: {
|
|
21
19
|
partitionKey: true
|
|
22
20
|
},
|
|
@@ -37,8 +35,11 @@ const createTagUrlLinkEntity = params => {
|
|
|
37
35
|
},
|
|
38
36
|
key: {
|
|
39
37
|
type: "string"
|
|
40
|
-
}
|
|
41
|
-
|
|
38
|
+
},
|
|
39
|
+
...(attributes || {})
|
|
40
|
+
}
|
|
42
41
|
});
|
|
43
42
|
};
|
|
44
|
-
exports.createTagUrlLinkEntity = createTagUrlLinkEntity;
|
|
43
|
+
exports.createTagUrlLinkEntity = createTagUrlLinkEntity;
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=tagPathLinkLegacy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createTagUrlLinkEntity","params","entityName","attributes","table","Entity","name","PK","partitionKey","SK","sortKey","TYPE","type","namespace","url","value","key"],"sources":["tagPathLinkLegacy.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"names":["_toolbox","require","createTagUrlLinkEntity","params","entityName","attributes","table","Entity","name","PK","partitionKey","SK","sortKey","TYPE","type","namespace","url","value","key","exports"],"sources":["tagPathLinkLegacy.ts"],"sourcesContent":["import type { Table } from \"@webiny/db-dynamodb/toolbox\";\nimport { Entity } from \"@webiny/db-dynamodb/toolbox\";\nimport type { Attributes } from \"~/types\";\n\ninterface CreateTagUrlLinkEntityParams {\n table: Table<string, string, string>;\n entityName: string;\n attributes: Attributes;\n}\n\nexport const createTagUrlLinkEntity = (params: CreateTagUrlLinkEntityParams) => {\n const { entityName, attributes, table } = params;\n return new Entity({\n name: entityName,\n table,\n attributes: {\n PK: {\n partitionKey: true\n },\n SK: {\n sortKey: true\n },\n TYPE: {\n type: \"string\"\n },\n namespace: {\n type: \"string\"\n },\n url: {\n type: \"string\"\n },\n value: {\n type: \"string\"\n },\n key: {\n type: \"string\"\n },\n ...(attributes || {})\n }\n });\n};\n"],"mappings":";;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AASO,MAAMC,sBAAsB,GAAIC,MAAoC,IAAK;EAC5E,MAAM;IAAEC,UAAU;IAAEC,UAAU;IAAEC;EAAM,CAAC,GAAGH,MAAM;EAChD,OAAO,IAAII,eAAM,CAAC;IACdC,IAAI,EAAEJ,UAAU;IAChBE,KAAK;IACLD,UAAU,EAAE;MACRI,EAAE,EAAE;QACAC,YAAY,EAAE;MAClB,CAAC;MACDC,EAAE,EAAE;QACAC,OAAO,EAAE;MACb,CAAC;MACDC,IAAI,EAAE;QACFC,IAAI,EAAE;MACV,CAAC;MACDC,SAAS,EAAE;QACPD,IAAI,EAAE;MACV,CAAC;MACDE,GAAG,EAAE;QACDF,IAAI,EAAE;MACV,CAAC;MACDG,KAAK,EAAE;QACHH,IAAI,EAAE;MACV,CAAC;MACDI,GAAG,EAAE;QACDJ,IAAI,EAAE;MACV,CAAC;MACD,IAAIT,UAAU,IAAI,CAAC,CAAC;IACxB;EACJ,CAAC,CAAC;AACN,CAAC;AAACc,OAAA,CAAAjB,sBAAA,GAAAA,sBAAA","ignoreList":[]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Table } from "@webiny/db-dynamodb/toolbox";
|
|
2
|
+
import { Entity } from "@webiny/db-dynamodb/toolbox";
|
|
2
3
|
interface Params {
|
|
3
|
-
table: Table
|
|
4
|
+
table: Table<string, string, string>;
|
|
4
5
|
entityName: string;
|
|
5
6
|
}
|
|
6
7
|
export declare const createTenantEntity: ({ entityName, table }: Params) => Entity<any>;
|
|
@@ -4,12 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.createTenantEntity = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _toolbox = require("@webiny/db-dynamodb/toolbox");
|
|
8
8
|
const createTenantEntity = ({
|
|
9
9
|
entityName,
|
|
10
10
|
table
|
|
11
11
|
}) => {
|
|
12
|
-
return new
|
|
12
|
+
return new _toolbox.Entity({
|
|
13
13
|
table,
|
|
14
14
|
name: entityName,
|
|
15
15
|
attributes: {
|
|
@@ -34,4 +34,6 @@ const createTenantEntity = ({
|
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
|
-
exports.createTenantEntity = createTenantEntity;
|
|
37
|
+
exports.createTenantEntity = createTenantEntity;
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=tenantEntity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createTenantEntity","entityName","table","Entity","name","attributes","PK","partitionKey","SK","sortKey","GSI1_PK","type","GSI1_SK","TYPE","id"],"sources":["tenantEntity.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"names":["_toolbox","require","createTenantEntity","entityName","table","Entity","name","attributes","PK","partitionKey","SK","sortKey","GSI1_PK","type","GSI1_SK","TYPE","id","exports"],"sources":["tenantEntity.ts"],"sourcesContent":["import type { Table } from \"@webiny/db-dynamodb/toolbox\";\nimport { Entity } from \"@webiny/db-dynamodb/toolbox\";\n\ninterface Params {\n table: Table<string, string, string>;\n entityName: string;\n}\n\nexport const createTenantEntity = ({ entityName, table }: Params): Entity<any> => {\n return new Entity({\n table,\n name: entityName,\n attributes: {\n PK: {\n partitionKey: true\n },\n SK: {\n sortKey: true\n },\n GSI1_PK: {\n type: \"string\"\n },\n GSI1_SK: {\n type: \"string\"\n },\n TYPE: {\n type: \"string\"\n },\n id: {\n type: \"string\"\n }\n }\n });\n};\n"],"mappings":";;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AAOO,MAAMC,kBAAkB,GAAGA,CAAC;EAAEC,UAAU;EAAEC;AAAc,CAAC,KAAkB;EAC9E,OAAO,IAAIC,eAAM,CAAC;IACdD,KAAK;IACLE,IAAI,EAAEH,UAAU;IAChBI,UAAU,EAAE;MACRC,EAAE,EAAE;QACAC,YAAY,EAAE;MAClB,CAAC;MACDC,EAAE,EAAE;QACAC,OAAO,EAAE;MACb,CAAC;MACDC,OAAO,EAAE;QACLC,IAAI,EAAE;MACV,CAAC;MACDC,OAAO,EAAE;QACLD,IAAI,EAAE;MACV,CAAC;MACDE,IAAI,EAAE;QACFF,IAAI,EAAE;MACV,CAAC;MACDG,EAAE,EAAE;QACAH,IAAI,EAAE;MACV;IACJ;EACJ,CAAC,CAAC;AACN,CAAC;AAACI,OAAA,CAAAf,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
package/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PrerenderingServiceFactory } from "./types";
|
|
1
|
+
import type { PrerenderingServiceFactory } from "./types";
|
|
2
2
|
export declare const createPrerenderingServiceStorageOperations: PrerenderingServiceFactory;
|