import { hasSortKey } from '../decorator/metadata';
import { attribute } from './expression/logical-operator';
export function createIfNotExistsCondition(metadata) {
    var conditionDefFns = [
        attribute(metadata.getPartitionKey()).attributeNotExists(),
    ];
    if (hasSortKey(metadata)) {
        conditionDefFns.push(attribute(metadata.getSortKey()).attributeNotExists());
    }
    return conditionDefFns;
}
//# sourceMappingURL=create-if-not-exists-condition.function.js.map