@webiny/api-page-builder-so-ddb
Version:
The DynamoDB storage operations Webiny Page Builder API.
30 lines (29 loc) • 1.16 kB
TypeScript
interface BasePartitionKeyParams {
tenant: string;
locale: string;
}
export declare const createPublishedPartitionKey: (params: BasePartitionKeyParams) => string;
export interface PublishedSortKeyParams {
id: string;
}
export declare const createPublishedSortKey: (params: PublishedSortKeyParams) => string;
export declare const createLatestPartitionKey: (params: BasePartitionKeyParams) => string;
export interface LatestSortKeyParams {
pid?: string;
id: string;
}
export declare const createLatestSortKey: (params: LatestSortKeyParams) => string;
export declare const createPathPartitionKey: (params: BasePartitionKeyParams) => string;
export interface PathSortKeyParams {
path: string;
}
export declare const createPathSortKey: (params: PathSortKeyParams) => string;
export interface RevisionPartitionKeyParams extends BasePartitionKeyParams {
id: string;
}
export declare const createRevisionPartitionKey: (params: RevisionPartitionKeyParams) => string;
export interface RevisionSortKeyParams {
version: string | number;
}
export declare const createRevisionSortKey: (params: RevisionSortKeyParams) => string;
export {};