@webiny/api-apw-scheduler-so-ddb
Version:
The DynamoDB storage operations for scheduler action feature in the Webiny APW API.
71 lines (69 loc) • 1.25 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createScheduleActionsEntity = void 0;
var _toolbox = require("@webiny/db-dynamodb/toolbox");
const createScheduleActionsEntity = ({
entityName,
table,
attributes
}) => {
return new _toolbox.Entity({
name: entityName,
table,
attributes: {
PK: {
partitionKey: true
},
SK: {
sortKey: true
},
GSI1_PK: {
type: "string"
},
GSI1_SK: {
type: "string"
},
TYPE: {
type: "string"
},
id: {
type: "string"
},
data: {
type: "map"
},
error: {
type: "map"
},
createdOn: {
type: "string"
},
modifiedOn: {
type: "string"
},
savedOn: {
type: "string"
},
createdBy: {
type: "map"
},
modifiedBy: {
type: "map"
},
savedBy: {
type: "map"
},
tenant: {
type: "string"
},
locale: {
type: "string"
},
...attributes
}
});
};
exports.createScheduleActionsEntity = createScheduleActionsEntity;
//# sourceMappingURL=scheduleActionEntity.js.map