@webiny/api-form-builder-so-ddb-es
Version:
[](https://www.npmjs.com/package/@webiny/api-form-builder-so-ddb-es) [](https://www.npmjs.com/package/@webiny
50 lines (49 loc) • 1.21 kB
TypeScript
import { Entity, Table } from "@webiny/db-dynamodb/toolbox";
import { Attributes } from "../types";
interface Params {
table: Table<string, string, string>;
entityName: string;
attributes: Attributes;
}
export declare const createElasticsearchEntity: (params: 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;
};
index: {
type: "string";
};
data: {
type: "map";
};
TYPE: {
type: "string";
};
}, {
PK: {
partitionKey: true;
};
SK: {
sortKey: true;
};
index: {
type: "string";
};
data: {
type: "map";
};
TYPE: {
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 {};