"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
    for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.aAccountInfo = aAccountInfo;
exports.aIdentificationData = aIdentificationData;
exports.aWebhookIdentityType = aWebhookIdentityType;
exports.aMessageEnvelope = aMessageEnvelope;
exports.aActionEvent = aActionEvent;
exports.aDomainEvent = aDomainEvent;
exports.aEntityCreatedEvent = aEntityCreatedEvent;
exports.aEntityDeletedEvent = aEntityDeletedEvent;
exports.aEntityUpdatedEvent = aEntityUpdatedEvent;
exports.aRestoreInfo = aRestoreInfo;
exports.aCreateGlobalTagRequest = aCreateGlobalTagRequest;
exports.aCreateGlobalTagResponse = aCreateGlobalTagResponse;
exports.aCreateTagForAccountRequest = aCreateTagForAccountRequest;
exports.aCreateTagForAccountResponse = aCreateTagForAccountResponse;
exports.aCreateTagRequest = aCreateTagRequest;
exports.aCreateTagResponse = aCreateTagResponse;
exports.aDeleteGlobalTagRequest = aDeleteGlobalTagRequest;
exports.aDeleteGlobalTagResponse = aDeleteGlobalTagResponse;
exports.aDeleteTagForAccountRequest = aDeleteTagForAccountRequest;
exports.aDeleteTagForAccountResponse = aDeleteTagForAccountResponse;
exports.aDeleteTagRequest = aDeleteTagRequest;
exports.aDeleteTagResponse = aDeleteTagResponse;
exports.aGetGlobalTagRequest = aGetGlobalTagRequest;
exports.aGetGlobalTagResponse = aGetGlobalTagResponse;
exports.aGetTagForAccountRequest = aGetTagForAccountRequest;
exports.aGetTagForAccountResponse = aGetTagForAccountResponse;
exports.aGetTagRequest = aGetTagRequest;
exports.aGetTagResponse = aGetTagResponse;
exports.aListGlobalTagsRequest = aListGlobalTagsRequest;
exports.aListGlobalTagsResponse = aListGlobalTagsResponse;
exports.aListTagsForAccountRequest = aListTagsForAccountRequest;
exports.aListTagsForAccountResponse = aListTagsForAccountResponse;
exports.aListTagsRequest = aListTagsRequest;
exports.aListTagsResponse = aListTagsResponse;
exports.aMigrateTagRequest = aMigrateTagRequest;
exports.aMigrateTagResponse = aMigrateTagResponse;
exports.aQueryTagsForAccountRequest = aQueryTagsForAccountRequest;
exports.aQueryTagsForAccountResponse = aQueryTagsForAccountResponse;
exports.aQueryTagsRequest = aQueryTagsRequest;
exports.aQueryTagsResponse = aQueryTagsResponse;
exports.aTag = aTag;
exports.aTagExposure = aTagExposure;
exports.aUpdateGlobalTagRequest = aUpdateGlobalTagRequest;
exports.aUpdateGlobalTagResponse = aUpdateGlobalTagResponse;
exports.aUpdateTagForAccountRequest = aUpdateTagForAccountRequest;
exports.aUpdateTagForAccountResponse = aUpdateTagForAccountResponse;
exports.aUpdateTagRequest = aUpdateTagRequest;
exports.aUpdateTagResponse = aUpdateTagResponse;
exports.aCursorPaging = aCursorPaging;
exports.aCursorPagingMetadata = aCursorPagingMetadata;
exports.aCursorQuery = aCursorQuery;
exports.aCursors = aCursors;
exports.aSorting = aSorting;
exports.aSortOrder = aSortOrder;
var metro_common_builders_1 = require("@wix/metro-common-builders");
var types_impl_js_1 = require("./types.impl.js");
// @ts-ignore
var callsite_1 = __importDefault(require("callsite"));
function aAccountInfo(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    return (0, metro_common_builders_1.mergeDeep)({
        accountId: (0, metro_common_builders_1.someString)({
            validations: [{ type: 'FORMAT', value: 'GUID' }],
        }),
        parentAccountId: (0, metro_common_builders_1.someString)({
            validations: [{ type: 'FORMAT', value: 'GUID' }],
        }),
        siteId: (0, metro_common_builders_1.someString)({
            validations: [{ type: 'FORMAT', value: 'GUID' }],
        }),
    }, overrideObject);
}
function aIdentificationData(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        anonymousVisitorId: (0, metro_common_builders_1.someString)({
            validations: [{ type: 'FORMAT', value: 'GUID' }],
        }),
        identityType: aWebhookIdentityType(),
    }, overrideObject);
}
function aWebhookIdentityType(enumFirstItem) {
    if (enumFirstItem === void 0) { enumFirstItem = types_impl_js_1.WebhookIdentityType.UNKNOWN; }
    return enumFirstItem;
}
function aMessageEnvelope(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        instanceId: (0, metro_common_builders_1.someString)({
            validations: [{ type: 'FORMAT', value: 'GUID' }],
        }),
        eventType: (0, metro_common_builders_1.someString)({
            validations: [{ type: 'MAX_LENGTH', value: '150' }],
        }),
        identity: aIdentificationData(),
        data: (0, metro_common_builders_1.someString)(),
        accountInfo: aAccountInfo(),
    }, overrideObject);
}
function aActionEvent(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    return (0, metro_common_builders_1.mergeDeep)({
        bodyAsJson: (0, metro_common_builders_1.someString)(),
    }, overrideObject);
}
function aDomainEvent(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        createdEvent: aEntityCreatedEvent(),
        id: (0, metro_common_builders_1.someString)(),
        entityFqdn: (0, metro_common_builders_1.someString)(),
        slug: (0, metro_common_builders_1.someString)(),
        entityId: (0, metro_common_builders_1.someString)(),
        eventTime: (0, metro_common_builders_1.someDate)(),
        triggeredByAnonymizeRequest: true,
        originatedFrom: (0, metro_common_builders_1.someString)(),
        entityEventSequence: (0, metro_common_builders_1.someString)({
            validations: [{ type: 'DECIMAL_VALUE' }],
        }),
    }, overrideObject);
}
function aEntityCreatedEvent(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        entityAsJson: (0, metro_common_builders_1.someString)(),
        triggeredByUndelete: true,
        restoreInfo: aRestoreInfo(),
        additionalMetadataAsJson: (0, metro_common_builders_1.someString)(),
    }, overrideObject);
}
function aEntityDeletedEvent(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    return (0, metro_common_builders_1.mergeDeep)({
        movedToTrash: true,
        deletedEntityAsJson: (0, metro_common_builders_1.someString)(),
        additionalMetadataAsJson: (0, metro_common_builders_1.someString)(),
    }, overrideObject);
}
function aEntityUpdatedEvent(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    return (0, metro_common_builders_1.mergeDeep)({
        currentEntityAsJson: (0, metro_common_builders_1.someString)(),
        previousEntityAsJson: (0, metro_common_builders_1.someString)(),
        modifiedFields: { modifiedFields: (0, metro_common_builders_1.someAny)() },
        additionalMetadataAsJson: (0, metro_common_builders_1.someString)(),
    }, overrideObject);
}
function aRestoreInfo(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    return (0, metro_common_builders_1.mergeDeep)({
        deletedDate: (0, metro_common_builders_1.someDate)(),
    }, overrideObject);
}
function aCreateGlobalTagRequest(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        tag: aTag(),
    }, overrideObject);
}
function aCreateGlobalTagResponse(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        tag: aTag(),
    }, overrideObject);
}
function aCreateTagForAccountRequest(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        tag: aTag(),
    }, overrideObject);
}
function aCreateTagForAccountResponse(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        tag: aTag(),
    }, overrideObject);
}
function aCreateTagRequest(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        tag: aTag(),
    }, overrideObject);
}
function aCreateTagResponse(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        tag: aTag(),
    }, overrideObject);
}
function aDeleteGlobalTagRequest(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    return (0, metro_common_builders_1.mergeDeep)({
        tagId: (0, metro_common_builders_1.someString)({
            validations: [{ type: 'MAX_LENGTH', value: '5' }],
        }),
    }, overrideObject);
}
function aDeleteGlobalTagResponse(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    return (0, metro_common_builders_1.mergeDeep)({}, overrideObject);
}
function aDeleteTagForAccountRequest(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    return (0, metro_common_builders_1.mergeDeep)({
        tagId: (0, metro_common_builders_1.someString)({
            validations: [{ type: 'MAX_LENGTH', value: '5' }],
        }),
    }, overrideObject);
}
function aDeleteTagForAccountResponse(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    return (0, metro_common_builders_1.mergeDeep)({}, overrideObject);
}
function aDeleteTagRequest(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    return (0, metro_common_builders_1.mergeDeep)({
        tagId: (0, metro_common_builders_1.someString)({
            validations: [{ type: 'MAX_LENGTH', value: '5' }],
        }),
    }, overrideObject);
}
function aDeleteTagResponse(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    return (0, metro_common_builders_1.mergeDeep)({}, overrideObject);
}
function aGetGlobalTagRequest(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    return (0, metro_common_builders_1.mergeDeep)({
        tagId: (0, metro_common_builders_1.someString)({
            validations: [{ type: 'MAX_LENGTH', value: '5' }],
        }),
    }, overrideObject);
}
function aGetGlobalTagResponse(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        tag: aTag(),
    }, overrideObject);
}
function aGetTagForAccountRequest(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    return (0, metro_common_builders_1.mergeDeep)({
        tagId: (0, metro_common_builders_1.someString)({
            validations: [{ type: 'MAX_LENGTH', value: '5' }],
        }),
    }, overrideObject);
}
function aGetTagForAccountResponse(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        tag: aTag(),
    }, overrideObject);
}
function aGetTagRequest(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    return (0, metro_common_builders_1.mergeDeep)({
        tagId: (0, metro_common_builders_1.someString)({
            validations: [{ type: 'MAX_LENGTH', value: '5' }],
        }),
    }, overrideObject);
}
function aGetTagResponse(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        tag: aTag(),
    }, overrideObject);
}
function aListGlobalTagsRequest(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        fqdn: (0, metro_common_builders_1.someString)({
            validations: [{ type: 'MAX_LENGTH', value: '255' }],
        }),
        exposure: aTagExposure(),
    }, overrideObject);
}
function aListGlobalTagsResponse(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        tags: [aTag()],
    }, overrideObject);
}
function aListTagsForAccountRequest(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        fqdn: (0, metro_common_builders_1.someString)({
            validations: [{ type: 'MAX_LENGTH', value: '255' }],
        }),
        exposure: aTagExposure(),
    }, overrideObject);
}
function aListTagsForAccountResponse(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        tags: [aTag()],
    }, overrideObject);
}
function aListTagsRequest(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        fqdn: (0, metro_common_builders_1.someString)({
            validations: [{ type: 'MAX_LENGTH', value: '255' }],
        }),
        exposure: aTagExposure(),
    }, overrideObject);
}
function aListTagsResponse(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        tags: [aTag()],
    }, overrideObject);
}
function aMigrateTagRequest(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        tag: aTag(),
    }, overrideObject);
}
function aMigrateTagResponse(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        tag: aTag(),
    }, overrideObject);
}
function aQueryTagsForAccountRequest(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        fqdn: (0, metro_common_builders_1.someString)({
            validations: [{ type: 'MAX_LENGTH', value: '255' }],
        }),
        exposure: aTagExposure(),
        query: aCursorQuery(),
    }, overrideObject);
}
function aQueryTagsForAccountResponse(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        tags: [aTag()],
        pagingMetadata: aCursorPagingMetadata(),
    }, overrideObject);
}
function aQueryTagsRequest(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        fqdn: (0, metro_common_builders_1.someString)({
            validations: [{ type: 'MAX_LENGTH', value: '255' }],
        }),
        exposure: aTagExposure(),
        query: aCursorQuery(),
    }, overrideObject);
}
function aQueryTagsResponse(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        tags: [aTag()],
        pagingMetadata: aCursorPagingMetadata(),
    }, overrideObject);
}
function aTag(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        id: (0, metro_common_builders_1.someString)({
            validations: [
                { type: 'READ_ONLY', value: 'true' },
                { type: 'MAX_LENGTH', value: '5' },
            ],
        }),
        revision: (0, metro_common_builders_1.someString)({
            validations: [
                { type: 'READ_ONLY', value: 'true' },
                { type: 'DECIMAL_VALUE' },
            ],
        }),
        createdDate: (0, metro_common_builders_1.someDate)({
            validations: [{ type: 'READ_ONLY', value: 'true' }],
        }),
        updatedDate: (0, metro_common_builders_1.someDate)({
            validations: [{ type: 'READ_ONLY', value: 'true' }],
        }),
        name: (0, metro_common_builders_1.someString)({
            validations: [{ type: 'MAX_LENGTH', value: '255' }],
        }),
        fqdn: (0, metro_common_builders_1.someString)({
            validations: [
                { type: 'IMMUTABLE', value: 'true' },
                { type: 'MAX_LENGTH', value: '255' },
            ],
        }),
        exposure: aTagExposure(),
        deleted: true,
    }, overrideObject);
}
function aTagExposure(enumFirstItem) {
    if (enumFirstItem === void 0) { enumFirstItem = types_impl_js_1.TagExposure.UNKNOWN; }
    return enumFirstItem;
}
function aUpdateGlobalTagRequest(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        tag: aTag(),
    }, overrideObject);
}
function aUpdateGlobalTagResponse(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        tag: aTag(),
    }, overrideObject);
}
function aUpdateTagForAccountRequest(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        tag: aTag(),
    }, overrideObject);
}
function aUpdateTagForAccountResponse(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        tag: aTag(),
    }, overrideObject);
}
function aUpdateTagRequest(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        tag: aTag(),
    }, overrideObject);
}
function aUpdateTagResponse(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        tag: aTag(),
    }, overrideObject);
}
function aCursorPaging(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    return (0, metro_common_builders_1.mergeDeep)({
        limit: (0, metro_common_builders_1.someNumber)({
            validations: [
                { type: 'MIN' },
                { type: 'MAX', value: '100' },
            ],
        }),
        cursor: (0, metro_common_builders_1.someString)({
            validations: [
                { type: 'MAX_LENGTH', value: '16000' },
            ],
        }),
    }, overrideObject);
}
function aCursorPagingMetadata(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        count: (0, metro_common_builders_1.someNumber)(),
        cursors: aCursors(),
        hasNext: true,
    }, overrideObject);
}
function aCursorQuery(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        cursorPaging: aCursorPaging(),
        filter: {},
        sort: [aSorting(), aSorting(), aSorting(), aSorting(), aSorting()],
    }, overrideObject);
}
function aCursors(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    return (0, metro_common_builders_1.mergeDeep)({
        next: (0, metro_common_builders_1.someString)({
            validations: [
                { type: 'MAX_LENGTH', value: '16000' },
            ],
        }),
        prev: (0, metro_common_builders_1.someString)({
            validations: [
                { type: 'MAX_LENGTH', value: '16000' },
            ],
        }),
    }, overrideObject);
}
function aSorting(overrideObject) {
    if (overrideObject === void 0) { overrideObject = {}; }
    if (isCurrentBuilderWasPreviouslyCalled()) {
        return {};
    }
    return (0, metro_common_builders_1.mergeDeep)({
        fieldName: (0, metro_common_builders_1.someString)({
            validations: [{ type: 'MAX_LENGTH', value: '512' }],
        }),
        order: aSortOrder(),
    }, overrideObject);
}
function aSortOrder(enumFirstItem) {
    if (enumFirstItem === void 0) { enumFirstItem = types_impl_js_1.SortOrder.ASC; }
    return enumFirstItem;
}
function isCurrentBuilderWasPreviouslyCalled() {
    var callChainFunctionNames = (0, callsite_1.default)().map(function (item) {
        return item.getFunctionName();
    });
    var callChainWithoutCurrentBuilder = callChainFunctionNames.splice(2);
    var currentBuilderName = callChainFunctionNames[1];
    return callChainWithoutCurrentBuilder.some(function (functionName) { return functionName === currentBuilderName; });
}
__exportStar(require("@wix/metro-common-builders"), exports);
//# sourceMappingURL=builders.impl.js.map