"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SocialNetworkSmssValidator = void 0;
const express_validator_1 = require("express-validator");
const validator_handle_1 = require("../../utils/handlers/validator.handle");
const abstract_validator_1 = require("../abstract.validator");
class SocialNetworkSmssValidator extends abstract_validator_1.AbstractValidator {
    constructor() {
        super();
    }
    sendMessage() {
        return [
            (0, express_validator_1.check)("username").exists().isString(),
            (0, express_validator_1.check)("list").exists().isArray({ min: 1 }),
            (0, express_validator_1.check)("list.*.number").exists().isString(),
            (0, express_validator_1.check)("list.*.message").exists().isString(),
            (req, res, next) => {
                (0, validator_handle_1.validateResult)(req, res, next);
            },
        ];
    }
    sendVerification() {
        return [
            (0, express_validator_1.check)("number").exists().isString(),
            (req, res, next) => {
                (0, validator_handle_1.validateResult)(req, res, next);
            },
        ];
    }
    verify() {
        return [
            (0, express_validator_1.check)("number").exists().isString(),
            (0, express_validator_1.check)("code").exists().isString(),
            (req, res, next) => {
                (0, validator_handle_1.validateResult)(req, res, next);
            },
        ];
    }
    createItem() {
        return [
            (req, res, next) => {
                (0, validator_handle_1.validateResult)(req, res, next);
            },
        ];
    }
    updateItem() {
        return [
            (0, express_validator_1.check)("_id").exists().isMongoId(),
            (req, res, next) => {
                (0, validator_handle_1.validateResult)(req, res, next);
            },
        ];
    }
}
exports.SocialNetworkSmssValidator = SocialNetworkSmssValidator;
