"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.SocialNetworkSmssModelSwagger = exports.SocialNetworkSmssModel = void 0;
const social_network_sms_schema_1 = require("../../schemas/social-network/social-network-sms.schema");
const delete_schema_1 = require("../../schemas/delete.schema");
const mongoose_1 = __importDefault(require("mongoose"));
const abstract_model_1 = require("../abstract.model");
const collection = "social-network-smss";
const schemaModelsMongoose = social_network_sms_schema_1.schema.mongoose(social_network_sms_schema_1.schema.schemas.parentSchema);
const AbstractSchemaOptions = {
    timestamps: true,
    versionKey: false,
};
const Schema = new mongoose_1.default.Schema(schemaModelsMongoose, AbstractSchemaOptions);
(0, abstract_model_1.customsSchema)(Schema);
const getItem = social_network_sms_schema_1.schema.swagger({
    _id: "String",
    ...social_network_sms_schema_1.schema.schemas.parentSchema,
}).definitions;
const sendMessageItem = social_network_sms_schema_1.schema.swagger({
    _id: "String",
    ...social_network_sms_schema_1.schema.schemas.sendMessageSchema,
}).definitions;
const verifyItem = social_network_sms_schema_1.schema.swagger({
    _id: "String",
    ...social_network_sms_schema_1.schema.schemas.verifySchema,
}).definitions;
const sendVerificationItem = social_network_sms_schema_1.schema.swagger({
    _id: "String",
    ...social_network_sms_schema_1.schema.schemas.sendVerificationSchema,
}).definitions;
const deleteItem = delete_schema_1.schema.swagger(delete_schema_1.schema.schemas.parentSchema).definitions;
exports.SocialNetworkSmssModel = mongoose_1.default.model(collection, Schema);
exports.SocialNetworkSmssModelSwagger = {
    SocialNetworkSmssGetItem: {
        type: "object",
        properties: getItem,
    },
    SocialNetworkSmsVerifyItem: {
        type: "object",
        properties: verifyItem,
    },
    SocialNetworkSmsSendMessageItem: {
        type: "object",
        properties: sendMessageItem,
    },
    SocialNetworkSmsSendVerificationItem: {
        type: "object",
        properties: sendVerificationItem,
    },
    SocialNetworkSmssGetItems: {
        type: "object",
        properties: getItem,
    },
    SocialNetworkSmssCreateItem: {
        type: "object",
        properties: getItem,
    },
    SocialNetworkSmssUpdateItem: {
        type: "object",
        properties: getItem,
    },
    SocialNetworkSmssDeleteItem: {
        type: "object",
        properties: deleteItem,
    },
};
