UNPKG

@webiny/api-headless-cms-ddb

Version:

DynamoDB storage operations plugin for Headless CMS API.

26 lines (25 loc) 851 B
interface BasePartitionKeyParams { tenant: string; locale: string; } export interface PartitionKeyParams extends BasePartitionKeyParams { id: 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 GSIPartitionKeyParams { tenant: string; locale: string; modelId: string; } export declare const createGSIPartitionKey: (params: GSIPartitionKeyParams, type: "A" | "L" | "P") => string; export interface GSISortKeyParams { id: string; } export declare const createGSISortKey: (params: GSISortKeyParams) => string; export {};