"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.RegexFieldInstructionResponseDto = exports.StandardImportInstructionsResponseDto = exports.ImportInstructionsResponseDto = void 0;
const openapi = require("@nestjs/swagger");
const swagger_1 = require("@nestjs/swagger");
class ImportInstructionsResponseDto {
    static _OPENAPI_METADATA_FACTORY() {
        return { standard: { required: true, type: () => require("./import-instructions.dto").StandardImportInstructionsResponseDto }, custom: { required: true, type: () => [String] } };
    }
}
exports.ImportInstructionsResponseDto = ImportInstructionsResponseDto;
__decorate([
    (0, swagger_1.ApiProperty)({
        type: [String],
        description: 'List of custom import instructions',
    }),
    __metadata("design:type", Array)
], ImportInstructionsResponseDto.prototype, "custom", void 0);
class StandardImportInstructionsResponseDto {
    static _OPENAPI_METADATA_FACTORY() {
        return { requiredFields: { required: true, type: () => [String] }, dateFields: { required: true, type: () => [String] }, dateTimeFields: { required: true, type: () => [String] }, numberFields: { required: true, type: () => [String] }, emailFields: { required: true, type: () => [String] }, regexFields: { required: true, type: () => [require("./import-instructions.dto").RegexFieldInstructionResponseDto] }, jsonFields: { required: true, type: () => [String] }, booleanFields: { required: true, type: () => [String] } };
    }
}
exports.StandardImportInstructionsResponseDto = StandardImportInstructionsResponseDto;
__decorate([
    (0, swagger_1.ApiProperty)({
        type: [String],
        description: 'List of required fields for import',
    }),
    __metadata("design:type", Array)
], StandardImportInstructionsResponseDto.prototype, "requiredFields", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        type: [String],
        description: 'List of date fields for import',
    }),
    __metadata("design:type", Array)
], StandardImportInstructionsResponseDto.prototype, "dateFields", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        type: [String],
        description: 'List of date-time fields for import',
    }),
    __metadata("design:type", Array)
], StandardImportInstructionsResponseDto.prototype, "dateTimeFields", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        type: [String],
        description: 'List of number fields for import',
    }),
    __metadata("design:type", Array)
], StandardImportInstructionsResponseDto.prototype, "numberFields", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        type: [String],
        description: 'List of email fields for import',
    }),
    __metadata("design:type", Array)
], StandardImportInstructionsResponseDto.prototype, "emailFields", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        type: [Object],
        description: 'List of regex fields for import, each with field name and regex pattern',
    }),
    __metadata("design:type", Array)
], StandardImportInstructionsResponseDto.prototype, "regexFields", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        type: [String],
        description: 'List of JSON fields for import',
    }),
    __metadata("design:type", Array)
], StandardImportInstructionsResponseDto.prototype, "jsonFields", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        type: [String],
        description: 'List of boolean fields for import',
    }),
    __metadata("design:type", Array)
], StandardImportInstructionsResponseDto.prototype, "booleanFields", void 0);
class RegexFieldInstructionResponseDto {
    static _OPENAPI_METADATA_FACTORY() {
        return { fieldName: { required: true, type: () => String }, regexPattern: { required: true, type: () => String } };
    }
}
exports.RegexFieldInstructionResponseDto = RegexFieldInstructionResponseDto;
__decorate([
    (0, swagger_1.ApiProperty)({
        type: String,
        description: 'Name of the field',
    }),
    __metadata("design:type", String)
], RegexFieldInstructionResponseDto.prototype, "fieldName", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        type: String,
        description: 'Regex pattern for the field',
    }),
    __metadata("design:type", String)
], RegexFieldInstructionResponseDto.prototype, "regexPattern", void 0);
//# sourceMappingURL=import-instructions.dto.js.map