@webiny/api-apw-scheduler-so-ddb
Version:
The DynamoDB storage operations for scheduler action feature in the Webiny APW API.
116 lines (115 loc) • 2.23 kB
TypeScript
import { Entity, Table } from "@webiny/db-dynamodb/toolbox";
import { Attributes } from "../types";
interface Params {
entityName: string;
table: Table<string, string, string>;
attributes?: Attributes;
}
export declare const createScheduleActionsEntity: ({ entityName, table, attributes }: Params) => 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, {
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";
};
}, {
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";
};
}, import("dynamodb-toolbox/dist/cjs/classes/Entity").ParsedAttributes<import("ts-toolbelt/out/Any/Key").Key>, any, {
[x: string]: any;
[x: number]: any;
[x: symbol]: any;
}, {
[x: string]: any;
[x: number]: any;
[x: symbol]: any;
}>;
export {};