UNPKG

dynamodb-toolbox

Version:

Lightweight and type-safe query builder for DynamoDB and TypeScript.

18 lines (17 loc) 1.1 kB
import type { Condition } from '../../../entity/actions/parseCondition/index.js'; import type { Entity } from '../../../entity/index.js'; import type { CapacityOption } from '../../../options/capacity.js'; import type { MetricsOption } from '../../../options/metrics.js'; import type { AllOldReturnValuesOption, NoneReturnValuesOption } from '../../../options/returnValues.js'; import type { ReturnValuesOnConditionFalseOption } from '../../../options/returnValuesOnConditionFalse.js'; export type DeleteItemCommandReturnValuesOption = NoneReturnValuesOption | AllOldReturnValuesOption; export declare const deleteItemCommandReturnValuesOptions: readonly ["NONE", "ALL_OLD"]; export declare const deleteItemCommandReturnValuesOptionsSet: Set<DeleteItemCommandReturnValuesOption>; export interface DeleteItemOptions<ENTITY extends Entity = Entity> { capacity?: CapacityOption; metrics?: MetricsOption; returnValues?: DeleteItemCommandReturnValuesOption; returnValuesOnConditionFalse?: ReturnValuesOnConditionFalseOption; condition?: Condition<ENTITY>; tableName?: string; }