import { tap } from 'rxjs/operators';
import { createLogger } from '../../../logger/logger';
import { createKeyAttributes } from '../../../mapper';
import { WriteRequest } from '../write.request';
export class DeleteRequest extends WriteRequest {
    constructor(dynamoRx, modelClazz, partitionKey, sortKey) {
        super(dynamoRx, modelClazz);
        this.logger = createLogger('dynamo.request.DeleteRequest', modelClazz);
        this.params.Key = createKeyAttributes(this.metadata, partitionKey, sortKey);
    }
    execFullResponse() {
        this.logger.debug('request', this.params);
        return this.dynamoRx.deleteItem(this.params).pipe(tap(response => this.logger.debug('response', response)));
    }
}
//# sourceMappingURL=delete.request.js.map