/*!
 * Built by ShiftSoftware
 * Copyright (c)
 */
'use strict';

var types = require('./types-DV_cOCRi.js');

const warrantySchema = types.yupTypeMapper([
    'dealer',
    'authorized',
    'unauthorized',
    'activeWarranty',
    'notActiveWarranty',
    'notInvoiced',
    'from',
    'to',
    'extendedWarrantyFrom',
    'extendedWarrantyTo',
    'checkingTMC',
    'sscCampings',
    'sscTableCode',
    'sscTableDescription',
    'sscTableRepairStatus',
    'sscTableOPCode',
    'sscTablePartNumber',
]);

const accessoriesSchema = types.yupTypeMapper(['vehicleAccessories', 'noData', 'partNumber', 'description', 'image', 'expand']);

const specificationSchema = types.yupTypeMapper(['vehicleSpecification', 'noData', 'model', 'variant', 'katashiki', 'modelYear', 'sfx', 'productionDate']);

const paintThicknessSchema = types.yupTypeMapper(['paintThickness', 'noData', 'panel', 'position', 'left', 'right', 'inspectionDate', 'noImageGroups', 'expand']);

const ServiceHistorySchema = types.yupTypeMapper([
    'serviceHistory',
    'noData',
    'branch',
    'dealer',
    'invoiceNumber',
    'date',
    'serviceType',
    'odometer',
    'laborLines',
    'partLines',
    'laborCode',
    'packageCode',
    'serviceCode',
    'serviceDescription',
    'partNumber',
    'qty',
    'partDescription',
]);

const claimFormSchema = types.yupTypeMapper([
    'uploadSingleDocument',
    'uploadMultipleDocument',
    'serviceType',
    'name',
    'print',
    'expand',
    'documentLimitError',
    'documentRequiredError',
    'activationDate',
    'expireDate',
    'packageCode',
    'scanTheVoucher',
    'qrCode',
    'processing',
    'enterServiceInfo',
    'invoice',
    'jobNumber',
    'claim',
]);
const claimableItemsSchema = types.create$3({
    claimForm: claimFormSchema,
}).concat(types.yupTypeMapper([
    'serviceType',
    'activationDate',
    'expireDate',
    'claimAt',
    'claimingCompany',
    'invoiceNumber',
    'jobNumber',
    'packageCode',
    'claim',
    'processed',
    'expired',
    'cancelled',
    'pending',
    'warning',
    'activateNow',
    'print',
    'successFulClaimMessage',
    'activationRequired',
    'warrantyAndServicesNotActivated',
    'viewTrace',
    'traceTitle',
    'traceLoading',
    'traceFailed',
]));

exports.ServiceHistorySchema = ServiceHistorySchema;
exports.accessoriesSchema = accessoriesSchema;
exports.claimableItemsSchema = claimableItemsSchema;
exports.paintThicknessSchema = paintThicknessSchema;
exports.specificationSchema = specificationSchema;
exports.warrantySchema = warrantySchema;
