@webiny/api-prerendering-service-so-ddb 0.0.0-ee-vpcs.549378cf03
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/LICENSE +21 -0
- package/README.md +5 -0
- package/definitions/queueJob.d.ts +8 -0
- package/definitions/queueJob.js +43 -0
- package/definitions/queueJob.js.map +1 -0
- package/definitions/render.d.ts +8 -0
- package/definitions/render.js +46 -0
- package/definitions/render.js.map +1 -0
- package/definitions/renderLegacy.d.ts +8 -0
- package/definitions/renderLegacy.js +52 -0
- package/definitions/renderLegacy.js.map +1 -0
- package/definitions/settings.d.ts +8 -0
- package/definitions/settings.js +40 -0
- package/definitions/settings.js.map +1 -0
- package/definitions/table.d.ts +9 -0
- package/definitions/table.js +31 -0
- package/definitions/table.js.map +1 -0
- package/definitions/tagPathLink.d.ts +9 -0
- package/definitions/tagPathLink.js +46 -0
- package/definitions/tagPathLink.js.map +1 -0
- package/definitions/tagPathLinkLegacy.d.ts +9 -0
- package/definitions/tagPathLinkLegacy.js +49 -0
- package/definitions/tagPathLinkLegacy.js.map +1 -0
- package/index.d.ts +2 -0
- package/index.js +96 -0
- package/index.js.map +1 -0
- package/operations/queueJob.d.ts +6 -0
- package/operations/queueJob.js +110 -0
- package/operations/queueJob.js.map +1 -0
- package/operations/render.d.ts +21 -0
- package/operations/render.js +375 -0
- package/operations/render.js.map +1 -0
- package/operations/settings.d.ts +6 -0
- package/operations/settings.js +75 -0
- package/operations/settings.js.map +1 -0
- package/package.json +59 -0
- package/types.d.ts +34 -0
- package/types.js +15 -0
- package/types.js.map +1 -0
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@webiny/api-prerendering-service-so-ddb",
|
|
3
|
+
"version": "0.0.0-ee-vpcs.549378cf03",
|
|
4
|
+
"main": "index.js",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/webiny/webiny-js.git",
|
|
8
|
+
"directory": "packages/api-prerendering-service-so-ddb"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"@webiny/api-prerendering-service",
|
|
12
|
+
"storage-operations",
|
|
13
|
+
"dynamodb",
|
|
14
|
+
"ps:ddb"
|
|
15
|
+
],
|
|
16
|
+
"description": "A DynamoDB storage operations for the Prerendering Service API.",
|
|
17
|
+
"author": "Webiny Ltd",
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@babel/runtime": "7.19.0",
|
|
21
|
+
"@webiny/api-prerendering-service": "0.0.0-ee-vpcs.549378cf03",
|
|
22
|
+
"@webiny/error": "0.0.0-ee-vpcs.549378cf03",
|
|
23
|
+
"dynamodb-toolbox": "0.3.5"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@babel/cli": "^7.19.3",
|
|
27
|
+
"@babel/core": "^7.19.3",
|
|
28
|
+
"@babel/plugin-proposal-export-default-from": "^7.16.0",
|
|
29
|
+
"@babel/preset-env": "^7.19.4",
|
|
30
|
+
"@babel/preset-typescript": "^7.18.6",
|
|
31
|
+
"@webiny/cli": "^0.0.0-ee-vpcs.549378cf03",
|
|
32
|
+
"@webiny/db": "^0.0.0-ee-vpcs.549378cf03",
|
|
33
|
+
"@webiny/db-dynamodb": "^0.0.0-ee-vpcs.549378cf03",
|
|
34
|
+
"@webiny/handler-aws": "^0.0.0-ee-vpcs.549378cf03",
|
|
35
|
+
"@webiny/project-utils": "^0.0.0-ee-vpcs.549378cf03",
|
|
36
|
+
"jest-dynalite": "^3.3.1",
|
|
37
|
+
"jest-environment-node": "^27.3.0",
|
|
38
|
+
"prettier": "^2.3.2",
|
|
39
|
+
"rimraf": "^3.0.2",
|
|
40
|
+
"ttypescript": "^1.5.12",
|
|
41
|
+
"typescript": "4.7.4"
|
|
42
|
+
},
|
|
43
|
+
"publishConfig": {
|
|
44
|
+
"access": "public",
|
|
45
|
+
"directory": "dist"
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"build": "yarn webiny run build",
|
|
49
|
+
"watch": "yarn webiny run watch"
|
|
50
|
+
},
|
|
51
|
+
"adio": {
|
|
52
|
+
"ignore": {
|
|
53
|
+
"src": [
|
|
54
|
+
"aws-sdk"
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"gitHead": "549378cf03fcd27845fc3fa23d1dc6b32896f630"
|
|
59
|
+
}
|
package/types.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { DocumentClient } from "aws-sdk/clients/dynamodb";
|
|
2
|
+
import { Table, Entity } from "dynamodb-toolbox";
|
|
3
|
+
import { DynamoDBTypes, TableConstructor } from "dynamodb-toolbox/dist/classes/Table";
|
|
4
|
+
import { EntityAttributeConfig, EntityCompositeAttributes } from "dynamodb-toolbox/dist/classes/Entity";
|
|
5
|
+
import { PrerenderingServiceStorageOperations as BasePrerenderingServiceStorageOperations } from "@webiny/api-prerendering-service/types";
|
|
6
|
+
export declare type AttributeDefinition = DynamoDBTypes | EntityAttributeConfig | EntityCompositeAttributes;
|
|
7
|
+
export declare type Attributes = Record<string, AttributeDefinition>;
|
|
8
|
+
export declare enum ENTITIES {
|
|
9
|
+
RENDER = "PrerenderingServiceRender",
|
|
10
|
+
SETTINGS = "PrerenderingServiceSettings",
|
|
11
|
+
QUEUE_JOB = "PrerenderingServiceQueueJob",
|
|
12
|
+
TAG_PATH_LINK = "PrerenderingServiceTagPathLink"
|
|
13
|
+
}
|
|
14
|
+
export interface PrerenderingServiceFactoryParams {
|
|
15
|
+
documentClient: DocumentClient;
|
|
16
|
+
table?: TableModifier;
|
|
17
|
+
attributes?: Record<ENTITIES, Attributes>;
|
|
18
|
+
}
|
|
19
|
+
export declare type Entities = "render" | "queueJob" | "tagPathLink";
|
|
20
|
+
export interface PrerenderingServiceStorageOperations extends BasePrerenderingServiceStorageOperations {
|
|
21
|
+
getTable(): Table;
|
|
22
|
+
getEntities(): Record<Entities, Entity<any>>;
|
|
23
|
+
}
|
|
24
|
+
export interface PrerenderingServiceFactory {
|
|
25
|
+
(params: PrerenderingServiceFactoryParams): PrerenderingServiceStorageOperations;
|
|
26
|
+
}
|
|
27
|
+
export interface TableModifier {
|
|
28
|
+
(table: TableConstructor): TableConstructor;
|
|
29
|
+
}
|
|
30
|
+
export interface DataContainer<T> {
|
|
31
|
+
PK: string;
|
|
32
|
+
SK: string;
|
|
33
|
+
data: T;
|
|
34
|
+
}
|
package/types.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ENTITIES = void 0;
|
|
7
|
+
let ENTITIES;
|
|
8
|
+
exports.ENTITIES = ENTITIES;
|
|
9
|
+
|
|
10
|
+
(function (ENTITIES) {
|
|
11
|
+
ENTITIES["RENDER"] = "PrerenderingServiceRender";
|
|
12
|
+
ENTITIES["SETTINGS"] = "PrerenderingServiceSettings";
|
|
13
|
+
ENTITIES["QUEUE_JOB"] = "PrerenderingServiceQueueJob";
|
|
14
|
+
ENTITIES["TAG_PATH_LINK"] = "PrerenderingServiceTagPathLink";
|
|
15
|
+
})(ENTITIES || (exports.ENTITIES = ENTITIES = {}));
|
package/types.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ENTITIES"],"sources":["types.ts"],"sourcesContent":["import { DocumentClient } from \"aws-sdk/clients/dynamodb\";\nimport { Table, Entity } from \"dynamodb-toolbox\";\nimport { DynamoDBTypes, TableConstructor } from \"dynamodb-toolbox/dist/classes/Table\";\nimport {\n EntityAttributeConfig,\n EntityCompositeAttributes\n} from \"dynamodb-toolbox/dist/classes/Entity\";\nimport { PrerenderingServiceStorageOperations as BasePrerenderingServiceStorageOperations } from \"@webiny/api-prerendering-service/types\";\n\nexport type AttributeDefinition = DynamoDBTypes | EntityAttributeConfig | EntityCompositeAttributes;\n\nexport type Attributes = Record<string, AttributeDefinition>;\n\nexport enum ENTITIES {\n RENDER = \"PrerenderingServiceRender\",\n SETTINGS = \"PrerenderingServiceSettings\",\n QUEUE_JOB = \"PrerenderingServiceQueueJob\",\n TAG_PATH_LINK = \"PrerenderingServiceTagPathLink\"\n}\n\nexport interface PrerenderingServiceFactoryParams {\n documentClient: DocumentClient;\n table?: TableModifier;\n attributes?: Record<ENTITIES, Attributes>;\n}\n\nexport type Entities = \"render\" | \"queueJob\" | \"tagPathLink\";\n\nexport interface PrerenderingServiceStorageOperations\n extends BasePrerenderingServiceStorageOperations {\n getTable(): Table;\n getEntities(): Record<Entities, Entity<any>>;\n}\n\nexport interface PrerenderingServiceFactory {\n (params: PrerenderingServiceFactoryParams): PrerenderingServiceStorageOperations;\n}\n\nexport interface TableModifier {\n (table: TableConstructor): TableConstructor;\n}\n\nexport interface DataContainer<T> {\n PK: string;\n SK: string;\n data: T;\n}\n"],"mappings":";;;;;;IAaYA,Q;;;WAAAA,Q;EAAAA,Q;EAAAA,Q;EAAAA,Q;EAAAA,Q;GAAAA,Q,wBAAAA,Q"}
|