module import * as DynamoDB from 'aws-sdk/clients/dynamodb' ; import { createKeyAttributes } from '../../mapper/mapper' ; import { ModelConstructor } from '../../model/model-constructor' ; import { TransactBaseOperation } from './transact-base-operation' ; /**
 * TransactOperation class for transactional delete items
 */ export class TransactDelete < T > extends TransactBaseOperation < T , DynamoDB . Delete , TransactDelete < T > > { constructor ( modelClazz , partitionKey , sortKey ? ) { super ( modelClazz ) ; this . params . Key = createKeyAttributes ( this . metadata , partitionKey , sortKey ) ; } get transactItem ( ) { return { Delete : { ... this . params } , } ; } }