"use strict";
// This file was auto-generated by Fern from our API Definition.
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.BatchCallDetailedResponse = void 0;
const core = __importStar(require("../../core"));
const BatchCallStatus_1 = require("./BatchCallStatus");
const BatchCallWhatsAppParams_1 = require("./BatchCallWhatsAppParams");
const OutboundCallRecipientResponseModel_1 = require("./OutboundCallRecipientResponseModel");
const TelephonyCallConfig_1 = require("./TelephonyCallConfig");
const TelephonyProvider_1 = require("./TelephonyProvider");
exports.BatchCallDetailedResponse = core.serialization.object({
    id: core.serialization.string(),
    phoneNumberId: core.serialization.property("phone_number_id", core.serialization.string().optional()),
    phoneProvider: core.serialization.property("phone_provider", TelephonyProvider_1.TelephonyProvider.optional()),
    whatsappParams: core.serialization.property("whatsapp_params", BatchCallWhatsAppParams_1.BatchCallWhatsAppParams.optional()),
    name: core.serialization.string(),
    agentId: core.serialization.property("agent_id", core.serialization.string()),
    branchId: core.serialization.property("branch_id", core.serialization.string().optional()),
    environment: core.serialization.string().optional(),
    createdAtUnix: core.serialization.property("created_at_unix", core.serialization.number()),
    scheduledTimeUnix: core.serialization.property("scheduled_time_unix", core.serialization.number()),
    timezone: core.serialization.string().optional(),
    totalCallsDispatched: core.serialization.property("total_calls_dispatched", core.serialization.number()),
    totalCallsScheduled: core.serialization.property("total_calls_scheduled", core.serialization.number()),
    totalCallsFinished: core.serialization.property("total_calls_finished", core.serialization.number()),
    lastUpdatedAtUnix: core.serialization.property("last_updated_at_unix", core.serialization.number()),
    status: BatchCallStatus_1.BatchCallStatus,
    retryCount: core.serialization.property("retry_count", core.serialization.number()),
    telephonyCallConfig: core.serialization.property("telephony_call_config", TelephonyCallConfig_1.TelephonyCallConfig),
    targetConcurrencyLimit: core.serialization.property("target_concurrency_limit", core.serialization.number().optional()),
    agentName: core.serialization.property("agent_name", core.serialization.string()),
    branchName: core.serialization.property("branch_name", core.serialization.string().optional()),
    recipients: core.serialization.list(OutboundCallRecipientResponseModel_1.OutboundCallRecipientResponseModel),
});
