import { ActionEnum, AkitaQueryEnum, AkitaStoreEnum, LambdaFunctionName } from "./enum"; import { CreateEntityRequest, GetEntitiesRequest, UpdateEntityRequest, DeleteEntityRequest, DeleteAllRelationRequest, BatchCreateEntityRequest, BatchUpdateEntityRequest, BatchDeleteEntityRequest, QueryAllRelationRequest } from "./lambda"; export interface ITSSDITEntity { akitaStore: AkitaStoreEnum | null; tableName: string; partition: string; sort: string | null; /** the partition of relation's partition */ partitionParent?: string; /** delete all only */ forDeleteAll?: { akitaQuery: AkitaQueryEnum; main: string; sub: string; }; } export declare class TSSDITEntity { static Menu(): ITSSDITEntity; static MenuProductCategory(): ITSSDITEntity; static ProductCategory(): ITSSDITEntity; static Product(): ITSSDITEntity; static ProductAttribute(): ITSSDITEntity; static InventoryCategory(): ITSSDITEntity; static InventoryCategoryInventory(): ITSSDITEntity; static Inventory(): ITSSDITEntity; static ProductInventory(): ITSSDITEntity; static ProductAttributeInventory(): ITSSDITEntity; static InventoryRecord(): ITSSDITEntity; static InventoryItemRecord(): ITSSDITEntity; static ClosingSalesDetail(): ITSSDITEntity; static Floor(): ITSSDITEntity; static FloorTable(): ITSSDITEntity; static Table(): ITSSDITEntity; static Appointment(): ITSSDITEntity; } export declare type LambdaAction = CreateAction | GetAction | QueryAllAction | UpdateAction | DeleteAction | DeleteAllAction | BatchCreateAction | BatchUpdateAction | BatchDeleteAction; export interface CreateAction { action: ActionEnum.create; request: CreateEntityRequest; } export interface GetAction { action: ActionEnum.get; request: GetEntitiesRequest; } export interface QueryAllAction { action: ActionEnum.queryAll; request: QueryAllRelationRequest; } export interface UpdateAction { action: ActionEnum.update; request: UpdateEntityRequest; } export interface DeleteAction { action: ActionEnum.delete; request: DeleteEntityRequest; } export interface DeleteAllAction { action: ActionEnum.deleteAll; request: DeleteAllRelationRequest; } export interface BatchCreateAction { action: ActionEnum.batchCreate; request: BatchCreateEntityRequest; } export interface BatchUpdateAction { action: ActionEnum.batchUpdate; request: BatchUpdateEntityRequest; } export interface BatchDeleteAction { action: ActionEnum.batchDelete; request: BatchDeleteEntityRequest; } export interface LambdaFunction { name: LambdaFunctionName; actions: { entity: ITSSDITEntity; actionType: LambdaAction; }[]; }