"use strict";
/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.sequence = void 0;
const index_js_1 = require("../../core/index.js");
const fieldKindIdentifiers_js_1 = require("../fieldKindIdentifiers.js");
const index_js_2 = require("../modular-schema/index.js");
const sequenceFieldChangeHandler_js_1 = require("./sequenceFieldChangeHandler.js");
/**
 * 0 or more items.
 */
exports.sequence = new index_js_2.FlexFieldKind(fieldKindIdentifiers_js_1.sequenceIdentifier, index_js_1.Multiplicity.Sequence, {
    changeHandler: sequenceFieldChangeHandler_js_1.sequenceFieldChangeHandler,
    allowMonotonicUpgradeFrom: new Set([
        fieldKindIdentifiers_js_1.requiredIdentifier,
        fieldKindIdentifiers_js_1.optionalIdentifier,
        fieldKindIdentifiers_js_1.identifierFieldIdentifier,
        index_js_1.forbiddenFieldKindIdentifier,
    ]),
});
//# sourceMappingURL=sequenceKind.js.map