/* tslint:disable */ /* eslint-disable */ /** * Mubicon v1 API * Api with Swagger, Swashbuckle, and Manual API versioning. * * The version of the OpenAPI document: 1 * Contact: support@mubicloud.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; import type { Role } from './Role'; import { RoleFromJSON, RoleFromJSONTyped, RoleToJSON, RoleToJSONTyped, } from './Role'; import type { UserGetFeed } from './UserGetFeed'; import { UserGetFeedFromJSON, UserGetFeedFromJSONTyped, UserGetFeedToJSON, UserGetFeedToJSONTyped, } from './UserGetFeed'; import type { PlaylistGetCompany } from './PlaylistGetCompany'; import { PlaylistGetCompanyFromJSON, PlaylistGetCompanyFromJSONTyped, PlaylistGetCompanyToJSON, PlaylistGetCompanyToJSONTyped, } from './PlaylistGetCompany'; import type { UserGetTicket } from './UserGetTicket'; import { UserGetTicketFromJSON, UserGetTicketFromJSONTyped, UserGetTicketToJSON, UserGetTicketToJSONTyped, } from './UserGetTicket'; import type { UserGetPlace } from './UserGetPlace'; import { UserGetPlaceFromJSON, UserGetPlaceFromJSONTyped, UserGetPlaceToJSON, UserGetPlaceToJSONTyped, } from './UserGetPlace'; import type { UserGetPlaylist } from './UserGetPlaylist'; import { UserGetPlaylistFromJSON, UserGetPlaylistFromJSONTyped, UserGetPlaylistToJSON, UserGetPlaylistToJSONTyped, } from './UserGetPlaylist'; /** * * @export * @interface UserGetResponse */ export interface UserGetResponse { /** * * @type {string} * @memberof UserGetResponse */ id?: string | null; /** * * @type {string} * @memberof UserGetResponse */ name?: string | null; /** * * @type {string} * @memberof UserGetResponse */ anketaUrl?: string | null; /** * * @type {string} * @memberof UserGetResponse */ userName?: string | null; /** * * @type {boolean} * @memberof UserGetResponse */ editable?: boolean; /** * * @type {string} * @memberof UserGetResponse */ phoneNumber?: string | null; /** * * @type {string} * @memberof UserGetResponse */ email?: string | null; /** * * @type {string} * @memberof UserGetResponse */ emailFinancial?: string | null; /** * * @type {string} * @memberof UserGetResponse */ imageFile?: string | null; /** * * @type {string} * @memberof UserGetResponse */ objectAddress?: string | null; /** * * @type {string} * @memberof UserGetResponse */ objectTitle?: string | null; /** * * @type {string} * @memberof UserGetResponse */ companyName?: string | null; /** * * @type {string} * @memberof UserGetResponse */ contractNumber?: string | null; /** * * @type {string} * @memberof UserGetResponse */ contactFIO?: string | null; /** * * @type {string} * @memberof UserGetResponse */ bankName?: string | null; /** * * @type {string} * @memberof UserGetResponse */ bankBIK?: string | null; /** * * @type {string} * @memberof UserGetResponse */ bankCorrAccount?: string | null; /** * * @type {string} * @memberof UserGetResponse */ bankPayAccount?: string | null; /** * * @type {string} * @memberof UserGetResponse */ signerFIO?: string | null; /** * * @type {string} * @memberof UserGetResponse */ signerJob?: string | null; /** * * @type {string} * @memberof UserGetResponse */ signerDoc?: string | null; /** * * @type {string} * @memberof UserGetResponse */ financeFIO?: string | null; /** * * @type {string} * @memberof UserGetResponse */ financeEmail?: string | null; /** * * @type {string} * @memberof UserGetResponse */ financePhone?: string | null; /** * * @type {boolean} * @memberof UserGetResponse */ edo?: boolean; /** * * @type {string} * @memberof UserGetResponse */ techFIO?: string | null; /** * * @type {string} * @memberof UserGetResponse */ techEmail?: string | null; /** * * @type {string} * @memberof UserGetResponse */ techPhone?: string | null; /** * * @type {boolean} * @memberof UserGetResponse */ locked?: boolean; /** * * @type {Date} * @memberof UserGetResponse */ registrationDate?: Date | null; /** * * @type {Date} * @memberof UserGetResponse */ accessDate?: Date | null; /** * * @type {Date} * @memberof UserGetResponse */ contractDate?: Date | null; /** * * @type {Role} * @memberof UserGetResponse */ role?: Role; /** * * @type {string} * @memberof UserGetResponse */ legalFormShort?: string | null; /** * * @type {string} * @memberof UserGetResponse */ legalFormFull?: string | null; /** * * @type {string} * @memberof UserGetResponse */ addressLegal?: string | null; /** * * @type {string} * @memberof UserGetResponse */ addressPostal?: string | null; /** * * @type {string} * @memberof UserGetResponse */ addressActual?: string | null; /** * * @type {string} * @memberof UserGetResponse */ iNN?: string | null; /** * * @type {string} * @memberof UserGetResponse */ kPP?: string | null; /** * * @type {string} * @memberof UserGetResponse */ oGRN?: string | null; /** * * @type {string} * @memberof UserGetResponse */ changes?: string | null; /** * * @type {Array} * @memberof UserGetResponse */ companyTypeUsers?: Array | null; /** * * @type {Array} * @memberof UserGetResponse */ playlists?: Array | null; /** * * @type {Array} * @memberof UserGetResponse */ feeds?: Array | null; /** * * @type {Array} * @memberof UserGetResponse */ tickets?: Array | null; /** * * @type {Array} * @memberof UserGetResponse */ places?: Array | null; } /** * Check if a given object implements the UserGetResponse interface. */ export function instanceOfUserGetResponse(value: object): value is UserGetResponse { return true; } export function UserGetResponseFromJSON(json: any): UserGetResponse { return UserGetResponseFromJSONTyped(json, false); } export function UserGetResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserGetResponse { if (json == null) { return json; } return { 'id': json['Id'] == null ? undefined : json['Id'], 'name': json['Name'] == null ? undefined : json['Name'], 'anketaUrl': json['AnketaUrl'] == null ? undefined : json['AnketaUrl'], 'userName': json['UserName'] == null ? undefined : json['UserName'], 'editable': json['Editable'] == null ? undefined : json['Editable'], 'phoneNumber': json['PhoneNumber'] == null ? undefined : json['PhoneNumber'], 'email': json['Email'] == null ? undefined : json['Email'], 'emailFinancial': json['EmailFinancial'] == null ? undefined : json['EmailFinancial'], 'imageFile': json['ImageFile'] == null ? undefined : json['ImageFile'], 'objectAddress': json['ObjectAddress'] == null ? undefined : json['ObjectAddress'], 'objectTitle': json['ObjectTitle'] == null ? undefined : json['ObjectTitle'], 'companyName': json['CompanyName'] == null ? undefined : json['CompanyName'], 'contractNumber': json['ContractNumber'] == null ? undefined : json['ContractNumber'], 'contactFIO': json['ContactFIO'] == null ? undefined : json['ContactFIO'], 'bankName': json['BankName'] == null ? undefined : json['BankName'], 'bankBIK': json['BankBIK'] == null ? undefined : json['BankBIK'], 'bankCorrAccount': json['BankCorrAccount'] == null ? undefined : json['BankCorrAccount'], 'bankPayAccount': json['BankPayAccount'] == null ? undefined : json['BankPayAccount'], 'signerFIO': json['SignerFIO'] == null ? undefined : json['SignerFIO'], 'signerJob': json['SignerJob'] == null ? undefined : json['SignerJob'], 'signerDoc': json['SignerDoc'] == null ? undefined : json['SignerDoc'], 'financeFIO': json['FinanceFIO'] == null ? undefined : json['FinanceFIO'], 'financeEmail': json['FinanceEmail'] == null ? undefined : json['FinanceEmail'], 'financePhone': json['FinancePhone'] == null ? undefined : json['FinancePhone'], 'edo': json['Edo'] == null ? undefined : json['Edo'], 'techFIO': json['TechFIO'] == null ? undefined : json['TechFIO'], 'techEmail': json['TechEmail'] == null ? undefined : json['TechEmail'], 'techPhone': json['TechPhone'] == null ? undefined : json['TechPhone'], 'locked': json['Locked'] == null ? undefined : json['Locked'], 'registrationDate': json['RegistrationDate'] == null ? undefined : (new Date(json['RegistrationDate'])), 'accessDate': json['AccessDate'] == null ? undefined : (new Date(json['AccessDate'])), 'contractDate': json['ContractDate'] == null ? undefined : (new Date(json['ContractDate'])), 'role': json['Role'] == null ? undefined : RoleFromJSON(json['Role']), 'legalFormShort': json['LegalFormShort'] == null ? undefined : json['LegalFormShort'], 'legalFormFull': json['LegalFormFull'] == null ? undefined : json['LegalFormFull'], 'addressLegal': json['AddressLegal'] == null ? undefined : json['AddressLegal'], 'addressPostal': json['AddressPostal'] == null ? undefined : json['AddressPostal'], 'addressActual': json['AddressActual'] == null ? undefined : json['AddressActual'], 'iNN': json['INN'] == null ? undefined : json['INN'], 'kPP': json['KPP'] == null ? undefined : json['KPP'], 'oGRN': json['OGRN'] == null ? undefined : json['OGRN'], 'changes': json['Changes'] == null ? undefined : json['Changes'], 'companyTypeUsers': json['CompanyTypeUsers'] == null ? undefined : ((json['CompanyTypeUsers'] as Array).map(PlaylistGetCompanyFromJSON)), 'playlists': json['Playlists'] == null ? undefined : ((json['Playlists'] as Array).map(UserGetPlaylistFromJSON)), 'feeds': json['Feeds'] == null ? undefined : ((json['Feeds'] as Array).map(UserGetFeedFromJSON)), 'tickets': json['Tickets'] == null ? undefined : ((json['Tickets'] as Array).map(UserGetTicketFromJSON)), 'places': json['Places'] == null ? undefined : ((json['Places'] as Array).map(UserGetPlaceFromJSON)), }; } export function UserGetResponseToJSON(json: any): UserGetResponse { return UserGetResponseToJSONTyped(json, false); } export function UserGetResponseToJSONTyped(value?: UserGetResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'Id': value['id'], 'Name': value['name'], 'AnketaUrl': value['anketaUrl'], 'UserName': value['userName'], 'Editable': value['editable'], 'PhoneNumber': value['phoneNumber'], 'Email': value['email'], 'EmailFinancial': value['emailFinancial'], 'ImageFile': value['imageFile'], 'ObjectAddress': value['objectAddress'], 'ObjectTitle': value['objectTitle'], 'CompanyName': value['companyName'], 'ContractNumber': value['contractNumber'], 'ContactFIO': value['contactFIO'], 'BankName': value['bankName'], 'BankBIK': value['bankBIK'], 'BankCorrAccount': value['bankCorrAccount'], 'BankPayAccount': value['bankPayAccount'], 'SignerFIO': value['signerFIO'], 'SignerJob': value['signerJob'], 'SignerDoc': value['signerDoc'], 'FinanceFIO': value['financeFIO'], 'FinanceEmail': value['financeEmail'], 'FinancePhone': value['financePhone'], 'Edo': value['edo'], 'TechFIO': value['techFIO'], 'TechEmail': value['techEmail'], 'TechPhone': value['techPhone'], 'Locked': value['locked'], 'RegistrationDate': value['registrationDate'] == null ? undefined : ((value['registrationDate'] as any).toISOString()), 'AccessDate': value['accessDate'] == null ? undefined : ((value['accessDate'] as any).toISOString()), 'ContractDate': value['contractDate'] == null ? undefined : ((value['contractDate'] as any).toISOString()), 'Role': RoleToJSON(value['role']), 'LegalFormShort': value['legalFormShort'], 'LegalFormFull': value['legalFormFull'], 'AddressLegal': value['addressLegal'], 'AddressPostal': value['addressPostal'], 'AddressActual': value['addressActual'], 'INN': value['iNN'], 'KPP': value['kPP'], 'OGRN': value['oGRN'], 'Changes': value['changes'], 'CompanyTypeUsers': value['companyTypeUsers'] == null ? undefined : ((value['companyTypeUsers'] as Array).map(PlaylistGetCompanyToJSON)), 'Playlists': value['playlists'] == null ? undefined : ((value['playlists'] as Array).map(UserGetPlaylistToJSON)), 'Feeds': value['feeds'] == null ? undefined : ((value['feeds'] as Array).map(UserGetFeedToJSON)), 'Tickets': value['tickets'] == null ? undefined : ((value['tickets'] as Array).map(UserGetTicketToJSON)), 'Places': value['places'] == null ? undefined : ((value['places'] as Array).map(UserGetPlaceToJSON)), }; }