"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const metadata_1 = require("../decorator/metadata");
const logical_operator_1 = require("./expression/logical-operator");
function createIfNotExistsCondition(metadata) {
    const conditionDefFns = [
        logical_operator_1.attribute(metadata.getPartitionKey()).attributeNotExists(),
    ];
    if (metadata_1.hasSortKey(metadata)) {
        conditionDefFns.push(logical_operator_1.attribute(metadata.getSortKey()).attributeNotExists());
    }
    return conditionDefFns;
}
exports.createIfNotExistsCondition = createIfNotExistsCondition;
//# sourceMappingURL=create-if-not-exists-condition.function.js.map