UNPKG

@webiny/api-headless-cms-ddb-es

Version:

DynamoDB and Elasticsearch storage operations plugin for Headless CMS API.

43 lines (42 loc) 1.19 kB
export interface PartitionKeyParams { id: string; tenant: string; } export declare const createPartitionKey: (params: PartitionKeyParams) => string; export interface SortKeyParams { version: number; } export declare const createRevisionSortKey: (params: SortKeyParams) => string; export declare const createLatestSortKey: () => string; export declare const createPublishedSortKey: () => string; export interface ICreateEntryPublishedKeysParams { id: string; tenant: string; } export declare const createEntryPublishedKeys: (params: ICreateEntryPublishedKeysParams) => { PK: string; SK: string; TYPE: string; GSI_TENANT: string; }; export interface ICreateEntryLatestKeysParams { id: string; tenant: string; } export declare const createEntryLatestKeys: (params: ICreateEntryLatestKeysParams) => { PK: string; SK: string; TYPE: string; GSI_TENANT: string; }; export interface ICreateRevisionKeysParams { id: string; tenant: string; version: number; } export declare const createEntryRevisionKeys: (params: ICreateRevisionKeysParams) => { PK: string; SK: string; TYPE: string; GSI_TENANT: string; };