export type NewsCategory = {newsCategoryID?: number | undefined, category?: (string | null) | undefined, isActive?: boolean | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined}; export type Region = {regionID?: number | undefined, nombre: string, descripcion?: (string | null) | undefined, activo?: boolean | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, listPaises?: (Array | null) | undefined}; export type ProductCategory = {productCategoryID?: number | undefined, category?: (string | null) | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined}; export type PaisCategoryPrizeType = {paisCategoryPrizeTypeID?: number | undefined, paisID?: number | undefined, productCategoryID?: number | undefined, modoPremios?: (string | null) | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, productCategory?: ProductCategory | undefined}; export type Pais = {paisID?: number | undefined, nombre: string, short?: (string | null) | undefined, phoneCode?: (string | null) | undefined, iconBandera: string, isActive?: boolean | undefined, regionID?: (number | null) | undefined, idioma?: (string | null) | undefined, timeZone?: (string | null) | undefined, dolarsXPuntos?: (number | null) | undefined, puntajeMinimo?: (number | null) | undefined, minimunEvaluationPoints?: number | undefined, modoPremiosPais?: (string | null) | undefined, txtNoPremiosPais?: (string | null) | undefined, txtContrato?: (string | null) | undefined, isPuntosXRegistro?: boolean | undefined, isPuntosFree?: boolean | undefined, puntosPorRegistro?: number | undefined, phoneCountryCode?: (string | null) | undefined, currency?: (string | null) | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, region?: Region | undefined, listPaisSetPrize?: (Array | null) | undefined, empleados?: (Array | null) | undefined, accounts?: (Array | null) | undefined}; export type AccountType = {accountTypeID?: number | undefined, type: string, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined}; export type Account = {accountID?: number | undefined, accountTypeID?: (number | null) | undefined, accountName: string, accountImage?: (string | null) | undefined, paisID?: number | undefined, isActive?: boolean | undefined, haveInvoice?: boolean | undefined, requiredEmployeeNumber?: boolean | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, pais?: Pais | undefined, accountType?: AccountType | undefined, listaStores?: (Array | null) | undefined}; export type Department = {departmentID?: number | undefined, paisID?: number | undefined, name?: (string | null) | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, pais?: Pais | undefined, cities?: (Array | null) | undefined}; export type City = {cityID?: number | undefined, departmentID?: (number | null) | undefined, paisID?: number | undefined, name?: (string | null) | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, department?: Department | undefined, pais?: Pais | undefined}; export type Segmento = {segmentoID?: number | undefined, nombreSegmento: string, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined}; export type ProductImage = {productImageID?: number | undefined, productID?: number | undefined, image?: (string | null) | undefined, main?: boolean | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, product?: Product | undefined}; export type Brand = {brandID?: number | undefined, name?: (string | null) | undefined, isActive?: boolean | undefined, order?: number | undefined, logo?: (string | null) | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined}; export type ProductType = {productTypeID?: number | undefined, productCategoryID?: number | undefined, isActive?: boolean | undefined, name?: (string | null) | undefined, urlApp?: (string | null) | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, productCategory?: ProductCategory | undefined}; export type GamaProducto = {gamaProductoID?: number | undefined, gama?: (string | null) | undefined, isActive?: boolean | undefined, order?: number | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined}; export type ProductIMEICode = {createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, updatedBy?: (string | null) | undefined, productIMEICodeID?: number | undefined, productID?: number | undefined, paisID?: number | undefined, imeiCode?: (string | null) | undefined, product?: Product | undefined, pais?: Pais | undefined}; export type Product = {productID?: number | undefined, brandID?: (number | null) | undefined, productCategoryID?: (number | null) | undefined, productTypeID?: (number | null) | undefined, gamaProductoID?: (number | null) | undefined, year?: number | undefined, isActive?: (boolean | null) | undefined, isActiveForSale?: boolean | undefined, price?: (number | null) | undefined, name?: (string | null) | undefined, model?: (string | null) | undefined, modelSKU?: (string | null) | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, productImages?: (Array | null) | undefined, brand?: Brand | undefined, productCategory?: ProductCategory | undefined, productType?: ProductType | undefined, gamaProducto?: GamaProducto | undefined, productIMEICodes?: (Array | null) | undefined}; export type ProductStore = {productStoreID?: number | undefined, productID?: number | undefined, storeID?: number | undefined, puntajeXventa?: number | undefined, isActive?: boolean | undefined, isPromotion?: boolean | undefined, lastPoints?: number | undefined, assignValue?: number | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, product?: Product | undefined, store?: Store | undefined}; export type PremioType = {premioTypeID?: number | undefined, type?: (string | null) | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined}; export type ValidationTransaction = {validationTransactionID?: string | undefined, relatedValidationTransaction?: (string | null) | undefined, tipo?: (string | null) | undefined, paisID?: (number | null) | undefined, validationMonth?: number | undefined, month?: number | undefined, year?: number | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined}; export type PrizeRedemptionPackage = {prizeRedemptionPackageID?: string | undefined, empleadoID?: string | undefined, packageName?: (string | null) | undefined, createdAt?: string | undefined, createdBy?: (string | null) | undefined, empleado?: Empleado | undefined, premiosEmpleado?: (Array | null) | undefined}; export type PremioEmpleadoMes = {premioEmpleadoMesID?: number | undefined, resultadoEmpleadoMesID?: number | undefined, empleadoID?: string | undefined, fromEmpleadoID?: (string | null) | undefined, premioID?: number | undefined, premioInventarioID?: (string | null) | undefined, premioStoreID?: number | undefined, prizeRedemptionPackageID?: (string | null) | undefined, myPrizeRedemptionPackageID?: string | undefined, isReceived?: boolean | undefined, receibedDate?: string | undefined, cantidad?: (number | null) | undefined, costoPremio?: number | undefined, valorPremio?: number | undefined, cantidadActivities?: (number | null) | undefined, costoPremioActivities?: number | undefined, valorPremioActivities?: number | undefined, cantidadTotal?: (number | null) | undefined, costoPremioTotal?: number | undefined, valorPremioTotal?: number | undefined, isVisible?: boolean | undefined, isOnDelivery?: boolean | undefined, isTransferred?: boolean | undefined, year?: number | undefined, month?: number | undefined, week?: number | undefined, prizeCode?: (string | null) | undefined, prizeURL?: (string | null) | undefined, validationTransactionID?: (string | null) | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, empleado?: Empleado | undefined, premioStore?: PremioStore | undefined, premio?: Premio | undefined, validationTransaction?: ValidationTransaction | undefined, premioInventario?: PremioInventario | undefined, prizeRedemptionPackage?: PrizeRedemptionPackage | undefined, fromEmpleado?: Empleado | undefined}; export type PremioInventario = {premioInventarioID?: string | undefined, premioID?: number | undefined, isRedeemed?: boolean | undefined, redeemedDate?: (string | null) | undefined, prizeCode?: (string | null) | undefined, prizeURL?: (string | null) | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, premio?: Premio | undefined, premioEmpleadoMes?: PremioEmpleadoMes | undefined}; export type Premio = {premioID?: number | undefined, premioTypeID?: number | undefined, paisID?: (number | null) | undefined, nombre?: (string | null) | undefined, descripcion?: (string | null) | undefined, foto?: (string | null) | undefined, isActive?: boolean | undefined, posicion?: (number | null) | undefined, valorMonetario?: (number | null) | undefined, terminosCondiciones?: (string | null) | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, premioType?: PremioType | undefined, pais?: Pais | undefined, premioInventarios?: (Array | null) | undefined}; export type PremioStore = {premioStoreID?: number | undefined, premioID?: number | undefined, storeID?: number | undefined, valorPremio?: number | undefined, isActive?: boolean | undefined, productCategoryID?: (number | null) | undefined, isEvaluationPrize?: boolean | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, premio?: Premio | undefined, store?: Store | undefined}; export type Store = {storeID?: number | undefined, accountID?: number | undefined, segmentoID?: (number | null) | undefined, cityID?: (number | null) | undefined, name?: (string | null) | undefined, site_id?: (string | null) | undefined, managementPercent?: number | undefined, isActive?: boolean | undefined, siteGroup?: (string | null) | undefined, mainAccount?: (string | null) | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, account?: Account | undefined, city?: City | undefined, segmento?: Segmento | undefined, listaEmpleados?: (Array | null) | undefined, listaProductos?: (Array | null) | undefined, listaPremios?: (Array | null) | undefined}; export type RolUsuario = {rolUsuarioID?: number | undefined, nombre?: (string | null) | undefined, descripcion?: (string | null) | undefined, isApplicationRole?: boolean | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined}; export type Usuario = {usuarioID?: string | undefined, rolUsuarioID?: (number | null) | undefined, accessFailCount?: number | undefined, email: string, emailConfirmed?: boolean | undefined, codConfirmacionMail: string, activo?: boolean | undefined, fechaUltimoCambioPassword?: (string | null) | undefined, biometricValid?: boolean | undefined, mailingStockOut?: (boolean | null) | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, deletedAt?: (string | null) | undefined, rolUsuario?: RolUsuario | undefined}; export type EmpleadoProductCategory = {empleadoProductCategoryID?: number | undefined, empleadoCategoryID?: number | undefined, productCategoryID?: number | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined}; export type EmpleadoCategory = {empleadoCategoryID?: number | undefined, name?: (string | null) | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, empleadoProductCategories?: (Array | null) | undefined}; export type ResultadoEmpleadoMes = {resultadoEmpleadoMesID?: number | undefined, empleadoID?: string | undefined, month?: number | undefined, year?: number | undefined, puntajeObtenido?: number | undefined, puntajeCanjeado?: number | undefined, puntajeObtenidoMX?: number | undefined, puntajeObtenidoAV?: number | undefined, puntajeObtenidoHA?: number | undefined, puntajeObtenidoEB?: number | undefined, puntajePorcientajeMX?: number | undefined, puntajePorcientajeAV?: number | undefined, puntajePorcientajeHA?: number | undefined, puntajePorcientajeEB?: number | undefined, puntajeTotalMX?: number | undefined, puntajeTotalAV?: number | undefined, puntajeTotalHA?: number | undefined, puntajeTotalEB?: number | undefined, puntajeObtenidoActivitiesMX?: (number | null) | undefined, puntajeObtenidoActivitiesAV?: (number | null) | undefined, puntajeObtenidoActivitiesHA?: (number | null) | undefined, puntajeObtenidoActivitiesEB?: (number | null) | undefined, validationTransactionID?: (string | null) | undefined, incentivoObtenidoMX?: (number | null) | undefined, incentivoObtenidoTrainingMX?: (number | null) | undefined, incentivoTotalMX?: (number | null) | undefined, incentivoObtenidoAV?: (number | null) | undefined, incentivoObtenidoTrainingAV?: (number | null) | undefined, incentivoTotalAV?: (number | null) | undefined, incentivoObtenidoHA?: (number | null) | undefined, incentivoObtenidoTrainingHA?: (number | null) | undefined, incentivoTotalHA?: (number | null) | undefined, incentivoObtenidoEB?: (number | null) | undefined, incentivoObtenidoTrainingEB?: (number | null) | undefined, incentivoTotalEB?: (number | null) | undefined, incentivoCanjeadoMX?: (number | null) | undefined, incentivoCanjeadoHA?: (number | null) | undefined, incentivoCanjeadoAV?: (number | null) | undefined, incentivoCanjeadoEB?: (number | null) | undefined, dineroObtenido?: number | undefined, dineroCanjeado?: number | undefined, dineroRestantePeriodo?: number | undefined, puntajeObtenidoFree?: number | undefined, puntajeCanjeadoFree?: number | undefined, puntajeTotalFree?: number | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, empleado?: Empleado | undefined, validationTransaction?: ValidationTransaction | undefined, premiosEmpleadoMes?: (Array | null) | undefined}; export type CourseLesson = {courseLessonID?: number | undefined, courseID?: number | undefined, order?: number | undefined, title?: (string | null) | undefined, subtitle?: (string | null) | undefined, pdfFile?: (string | null) | undefined, photo?: (string | null) | undefined, video?: (string | null) | undefined, videoStream?: (string | null) | undefined, description?: (string | null) | undefined, isActive?: boolean | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, course?: Course | undefined}; export type CourseEmployee = {courseEmployeeID?: number | undefined, courseID?: number | undefined, empleadoID?: string | undefined, courseLessonID?: (number | null) | undefined, totalLessons?: number | undefined, viewedLessons?: number | undefined, isCompleted?: boolean | undefined, startDate?: (string | null) | undefined, finishDate?: (string | null) | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, deletedAt?: (string | null) | undefined, course?: Course | undefined, empleado?: Empleado | undefined, courseLesson?: CourseLesson | undefined}; export type ReviewEmployee = {reviewEmployeeID?: number | undefined, empleadoID?: string | undefined, reviewID?: number | undefined, qualification?: number | undefined, isCompleted?: boolean | undefined, isWrong?: boolean | undefined, points?: number | undefined, isValidated?: boolean | undefined, validationTransactionID?: (string | null) | undefined, startDate?: (string | null) | undefined, finishDate?: (string | null) | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, review?: Review | undefined, empleado?: Empleado | undefined}; export type SurveyQuestionType = {surveyTypeID?: number | undefined, type?: (string | null) | undefined, isActive?: boolean | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined}; export type SurveyAnswer = {surveyAnswerID?: number | undefined, empleadoID?: string | undefined, surveyQuestionID?: number | undefined, surveyID?: number | undefined, surveyEmployeeID?: number | undefined, surveyAnswerType?: (string | null) | undefined, jsonAnswer?: (string | null) | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, empleado?: Empleado | undefined, surveyQuestion?: SurveyQuestion | undefined, survey?: Survey | undefined, surveyEmployee?: SurveyEmployee | undefined}; export type SurveyQuestionChoice = {surveyQuestionChoiceID?: number | undefined, surveyQuestionID?: number | undefined, txtChoise?: (string | null) | undefined, order?: number | undefined, counter?: number | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, surveyQuestion?: SurveyQuestion | undefined}; export type UpdateProfileInfo = {updateProfileInfoID?: number | undefined, propertyName?: (string | null) | undefined, propertyNameUpdate?: (string | null) | undefined, propertyType?: (string | null) | undefined, isActive?: boolean | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, surveyQuestionChoices?: (Array | null) | undefined}; export type SurveyQuestion = {surveyQuestionID?: number | undefined, surveyID?: number | undefined, surveyQuestionTypeID?: number | undefined, updateProfileInfoID?: (number | null) | undefined, txtQuestion?: (string | null) | undefined, surveyAnswerType?: (string | null) | undefined, isActive?: boolean | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, survey?: Survey | undefined, surveyQuestionType?: SurveyQuestionType | undefined, surveyAnswers?: (Array | null) | undefined, surveyQuestionChoices?: (Array | null) | undefined, updateProfileInfo?: UpdateProfileInfo | undefined}; export type SurveyCountry = {surveyCountryID?: number | undefined, surveyID?: number | undefined, paisID?: number | undefined, accountsIDs?: (Array | null) | undefined, storesIDs?: (Array | null) | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, survey?: Survey | undefined, pais?: Pais | undefined}; export type Survey = {surveyID?: number | undefined, title?: (string | null) | undefined, subtitle?: (string | null) | undefined, description?: (string | null) | undefined, startDate?: string | undefined, finishDate?: string | undefined, timeSeconds?: number | undefined, isActive?: boolean | undefined, isUpdateProfileInfo?: boolean | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, surveyQuestions?: (Array | null) | undefined, surveyAnswers?: (Array | null) | undefined, surveyEmployees?: (Array | null) | undefined, surveyCountries?: (Array | null) | undefined}; export type SurveyEmployee = {surveyEmployeeID?: number | undefined, empleadoID?: string | undefined, surveyID?: number | undefined, surveyCountryID?: number | undefined, isCompleted?: boolean | undefined, startDate?: (string | null) | undefined, finishDate?: (string | null) | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, survey?: Survey | undefined, surveyCountry?: SurveyCountry | undefined, empleado?: Empleado | undefined, surveyAnswers?: (Array | null) | undefined}; export type EnumEmployeeType = 1 | 2; export type EmployeeType = {createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, updatedBy?: (string | null) | undefined, employeeTypeID?: number | undefined, name?: EnumEmployeeType | undefined}; export type Empleado = {empleadoID?: string | undefined, usuarioID?: string | undefined, storeID?: (number | null) | undefined, storeRecibePremiosID?: (number | null) | undefined, accountID?: (number | null) | undefined, paisID?: (number | null) | undefined, employeeTypeID?: (number | null) | undefined, tokenFCM?: (string | null) | undefined, employeeNumber?: (string | null) | undefined, nombres?: (string | null) | undefined, apellidos?: (string | null) | undefined, email?: (string | null) | undefined, documento?: (string | null) | undefined, telefono?: (string | null) | undefined, language?: (string | null) | undefined, fechaNacimiento?: string | undefined, genero?: (string | null) | undefined, appVersion?: (number | null) | undefined, puntos_Actuales?: number | undefined, puntos_ActualesHA?: number | undefined, puntos_ActualesAV?: number | undefined, puntos_ActualesEB?: number | undefined, puntos_Venta?: number | undefined, puntos_Utilizados?: number | undefined, puntos_Pendientes?: number | undefined, puntos_Cursos?: (number | null) | undefined, dolars_Actuales?: number | undefined, fecha_Expiracion_Puntos?: (string | null) | undefined, ultima_Venta_Validada?: (string | null) | undefined, fechaPuntosCumpleanios?: (string | null) | undefined, foto?: (string | null) | undefined, imgDocumento?: (string | null) | undefined, imgDocumento2?: (string | null) | undefined, hasImgDocumento?: (boolean | null) | undefined, registerIsComplete?: (boolean | null) | undefined, fechaImgDocumento?: (string | null) | undefined, imgFirma?: (string | null) | undefined, aceptaTerminos?: (boolean | null) | undefined, fechaFirmaContrato?: (string | null) | undefined, isActive?: boolean | undefined, estado?: (string | null) | undefined, personalQR?: (string | null) | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, lastAccess?: (string | null) | undefined, createdBy?: (string | null) | undefined, biometricID?: (string | null) | undefined, deletedAt?: (string | null) | undefined, unsubscribe?: (boolean | null) | undefined, empleadoCategoryID?: (number | null) | undefined, store?: Store | undefined, storeRecibePremios?: Store | undefined, account?: Account | undefined, usuario?: Usuario | undefined, pais?: Pais | undefined, empleadoCategory?: EmpleadoCategory | undefined, resultadosEmpleadoMes?: (Array | null) | undefined, coursesEmployee?: (Array | null) | undefined, reviewsEmployee?: (Array | null) | undefined, premioEmpleadoMes?: (Array | null) | undefined, transferPremioEmpleadoMes?: (Array | null) | undefined, surveysEmployee?: (Array | null) | undefined, employeeType?: EmployeeType | undefined}; export type CommunicationType = {communicationTypeID?: number | undefined, type?: (string | null) | undefined, isActive?: boolean | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined}; export type NewsImage = {newsImageID?: number | undefined, newsID?: number | undefined, imageName?: (string | null) | undefined, isPrincipal?: boolean | undefined, order?: number | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, news?: News | undefined}; export type NewsEmployee = {newsEmployeeID?: number | undefined, newsID?: number | undefined, empleadoID?: string | undefined, viewed?: boolean | undefined, like?: boolean | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, news?: News | undefined, empleado?: Empleado | undefined}; export type NewsCountry = {newsCountryID?: number | undefined, newsID?: number | undefined, paisID?: number | undefined, listAccountsIDs?: (Array | null) | undefined, accountsIDs?: (string | null) | undefined, listStoresIDs?: (Array | null) | undefined, storesIDs?: (string | null) | undefined, storesIDsString?: (string | null) | undefined, reviewPoints?: (number | null) | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, deletedAt?: (string | null) | undefined, news?: News | undefined, pais?: Pais | undefined, review?: Review | undefined}; export type News = {newsID?: number | undefined, newsCategoryID?: number | undefined, empleadoID?: string | undefined, communicationTypeID?: number | undefined, topicID?: (number | null) | undefined, paisID?: (number | null) | undefined, title?: (string | null) | undefined, txtContent?: (string | null) | undefined, url?: (string | null) | undefined, contentID?: (number | null) | undefined, video?: (string | null) | undefined, startDate?: (string | null) | undefined, finishDate?: (string | null) | undefined, isActive?: boolean | undefined, highlighted?: boolean | undefined, likes?: number | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, newsCategory?: NewsCategory | undefined, publisher?: Empleado | undefined, communicationType?: CommunicationType | undefined, newsImages?: (Array | null) | undefined, newsEmployee?: (Array | null) | undefined, topic?: Topic | undefined, pais?: Pais | undefined, newsCountries?: (Array | null) | undefined}; export type Topic = {topicID?: number | undefined, paisID?: number | undefined, productCategoryID?: (number | null) | undefined, isActive?: boolean | undefined, name?: (string | null) | undefined, description?: (string | null) | undefined, isHardSkill?: boolean | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, courses?: (Array | null) | undefined, news?: (Array | null) | undefined, productCategory?: ProductCategory | undefined}; export type CourseCountry = {courseCountryID?: number | undefined, courseID?: number | undefined, paisID?: number | undefined, reviewID?: (number | null) | undefined, accountsIDs?: (Array | null) | undefined, storesIDs?: (Array | null) | undefined, reviewPoints?: (number | null) | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, deletedAt?: (string | null) | undefined, course?: Course | undefined, pais?: Pais | undefined, review?: Review | undefined}; export type Course = {courseID?: number | undefined, productCategoryID?: (number | null) | undefined, topicID?: (number | null) | undefined, paisID?: (number | null) | undefined, reviewID?: (number | null) | undefined, title?: (string | null) | undefined, subtitle?: (string | null) | undefined, shortDescription?: (string | null) | undefined, description?: (string | null) | undefined, instructions?: (string | null) | undefined, image?: (string | null) | undefined, video?: (string | null) | undefined, points?: number | undefined, totalEmployees?: number | undefined, employeesCompleted?: number | undefined, startDate?: string | undefined, endDate?: string | undefined, isHardSkill?: (boolean | null) | undefined, isRecommended?: boolean | undefined, isActive?: boolean | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, topic?: Topic | undefined, productCategory?: ProductCategory | undefined, pais?: Pais | undefined, review?: Review | undefined, courseCountries?: (Array | null) | undefined, courseLessons?: (Array | null) | undefined, courseEmployees?: (Array | null) | undefined}; export type ReviewAnswer = {reviewAnswerID?: number | undefined, empleadoID?: string | undefined, reviewQuestionID?: number | undefined, reviewID?: number | undefined, reviewAnswerType?: (string | null) | undefined, qualification?: number | undefined, jsonAnswer?: (string | null) | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, empleado?: Empleado | undefined, reviewQuestion?: ReviewQuestion | undefined, review?: Review | undefined}; export type Review = {reviewID?: number | undefined, productCategoryID?: (number | null) | undefined, courseID?: (number | null) | undefined, topicID?: (number | null) | undefined, paisID?: (number | null) | undefined, title?: (string | null) | undefined, subtitle?: (string | null) | undefined, description?: (string | null) | undefined, startDate?: (string | null) | undefined, finishDate?: (string | null) | undefined, timeSeconds?: number | undefined, isActive?: boolean | undefined, isReviewCourse?: boolean | undefined, points?: number | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, course?: Course | undefined, topic?: Topic | undefined, productCategory?: ProductCategory | undefined, reviewQuestions?: (Array | null) | undefined, reviewAnswers?: (Array | null) | undefined, reviewEmployees?: (Array | null) | undefined}; export type ReviewQuestionType = {reviewTypeID?: number | undefined, type?: (string | null) | undefined, isActive?: boolean | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined}; export type ReviewQuestionChoice = {reviewQuestionChoiceID?: number | undefined, reviewQuestionID?: number | undefined, txtChoise?: (string | null) | undefined, isCorrectChoise?: boolean | undefined, order?: number | undefined, counter?: number | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, reviewQuestion?: ReviewQuestion | undefined}; export type ReviewQuestion = {reviewQuestionID?: number | undefined, reviewID?: number | undefined, reviewQuestionTypeID?: number | undefined, txtQuestion?: (string | null) | undefined, reviewAnswerType?: (string | null) | undefined, isActive?: boolean | undefined, createdAt?: string | undefined, updatedAt?: (string | null) | undefined, createdBy?: (string | null) | undefined, review?: Review | undefined, reviewQuestionType?: ReviewQuestionType | undefined, reviewAnswers?: (Array | null) | undefined, reviewQuestionChoices?: (Array | null) | undefined}; export type CreateUpdateReviewRqst = {paisID?: (number | null) | undefined, listaAccounts?: (Array | null) | undefined, listaStores?: (Array | null) | undefined, reviewID?: number | undefined, courseID?: (number | null) | undefined, productCategoryID?: (number | null) | undefined, topicID?: (number | null) | undefined, title?: (string | null) | undefined, subtitle?: (string | null) | undefined, description?: (string | null) | undefined, startDate?: (string | null) | undefined, finishDate?: (string | null) | undefined, timeSeconds?: number | undefined, isActive?: boolean | undefined, isReviewCourse?: boolean | undefined, points?: number | undefined, reviewQuestions?: (Array | null) | undefined}; export type CreateApiV1ApiReviewCreateReviewArgs = {body: CreateUpdateReviewRqst}; export type CreateApiV1ApiReviewCreateReviewOptions = {baseUrl: string, Bearer?: string | undefined, fetch?: typeof fetch | undefined}; /** * POST /v1/api/Review/CreateReview */ export const createApiV1ApiReviewCreateReview = async (args: CreateApiV1ApiReviewCreateReviewArgs, options: CreateApiV1ApiReviewCreateReviewOptions) => { const {baseUrl, fetch: fetchFn = fetch, Bearer} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") if (Bearer !== undefined) headers.set("Authorization", Bearer) const url = `${baseUrl.replace(/\/+$/, '')}/v1/api/Review/CreateReview${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "POST", headers, body: JSON.stringify(args.body)}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };