/* 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 { CompanyTypeUser } from './CompanyTypeUser'; import { CompanyTypeUserFromJSON, CompanyTypeUserFromJSONTyped, CompanyTypeUserToJSON, CompanyTypeUserToJSONTyped, } from './CompanyTypeUser'; import type { Ticket } from './Ticket'; import { TicketFromJSON, TicketFromJSONTyped, TicketToJSON, TicketToJSONTyped, } from './Ticket'; import type { Playlist } from './Playlist'; import { PlaylistFromJSON, PlaylistFromJSONTyped, PlaylistToJSON, PlaylistToJSONTyped, } from './Playlist'; import type { CopyRightOwner } from './CopyRightOwner'; import { CopyRightOwnerFromJSON, CopyRightOwnerFromJSONTyped, CopyRightOwnerToJSON, CopyRightOwnerToJSONTyped, } from './CopyRightOwner'; import type { AuditLog } from './AuditLog'; import { AuditLogFromJSON, AuditLogFromJSONTyped, AuditLogToJSON, AuditLogToJSONTyped, } from './AuditLog'; import type { Place } from './Place'; import { PlaceFromJSON, PlaceFromJSONTyped, PlaceToJSON, PlaceToJSONTyped, } from './Place'; import type { Feed } from './Feed'; import { FeedFromJSON, FeedFromJSONTyped, FeedToJSON, FeedToJSONTyped, } from './Feed'; /** * * @export * @interface ApplicationUser */ export interface ApplicationUser { /** * * @type {boolean} * @memberof ApplicationUser */ locked?: boolean; /** * * @type {Date} * @memberof ApplicationUser */ registrationDate: Date; /** * * @type {string} * @memberof ApplicationUser */ name: string; /** * * @type {Role} * @memberof ApplicationUser */ role?: Role; /** * * @type {string} * @memberof ApplicationUser */ imageFile?: string | null; /** * * @type {boolean} * @memberof ApplicationUser */ editable?: boolean; /** * * @type {string} * @memberof ApplicationUser */ objectAddress?: string | null; /** * * @type {string} * @memberof ApplicationUser */ objectTitle?: string | null; /** * * @type {string} * @memberof ApplicationUser */ emailFinancial?: string | null; /** * * @type {string} * @memberof ApplicationUser */ companyName?: string | null; /** * * @type {string} * @memberof ApplicationUser */ contractNumber?: string | null; /** * * @type {Date} * @memberof ApplicationUser */ contractDate?: Date | null; /** * * @type {Date} * @memberof ApplicationUser */ accessDate?: Date | null; /** * * @type {string} * @memberof ApplicationUser */ key?: string | null; /** * * @type {string} * @memberof ApplicationUser */ bankName?: string | null; /** * * @type {string} * @memberof ApplicationUser */ bankBIK?: string | null; /** * * @type {string} * @memberof ApplicationUser */ bankCorrAccount?: string | null; /** * * @type {string} * @memberof ApplicationUser */ bankPayAccount?: string | null; /** * * @type {string} * @memberof ApplicationUser */ signerFIO?: string | null; /** * * @type {string} * @memberof ApplicationUser */ signerJob?: string | null; /** * * @type {string} * @memberof ApplicationUser */ signerDoc?: string | null; /** * * @type {string} * @memberof ApplicationUser */ financeFIO?: string | null; /** * * @type {string} * @memberof ApplicationUser */ financeEmail?: string | null; /** * * @type {string} * @memberof ApplicationUser */ financePhone?: string | null; /** * * @type {boolean} * @memberof ApplicationUser */ edo?: boolean; /** * * @type {string} * @memberof ApplicationUser */ techFIO?: string | null; /** * * @type {string} * @memberof ApplicationUser */ contactFIO?: string | null; /** * * @type {string} * @memberof ApplicationUser */ techEmail?: string | null; /** * * @type {string} * @memberof ApplicationUser */ techPhone?: string | null; /** * * @type {string} * @memberof ApplicationUser */ legalFormShort?: string | null; /** * * @type {string} * @memberof ApplicationUser */ legalFormFull?: string | null; /** * * @type {string} * @memberof ApplicationUser */ addressLegal?: string | null; /** * * @type {string} * @memberof ApplicationUser */ addressPostal?: string | null; /** * * @type {string} * @memberof ApplicationUser */ addressActual?: string | null; /** * * @type {string} * @memberof ApplicationUser */ iNN?: string | null; /** * * @type {boolean} * @memberof ApplicationUser */ hidden?: boolean; /** * * @type {string} * @memberof ApplicationUser */ kPP?: string | null; /** * * @type {string} * @memberof ApplicationUser */ oGRN?: string | null; /** * * @type {string} * @memberof ApplicationUser */ changes?: string | null; /** * * @type {Array} * @memberof ApplicationUser */ tickets?: Array | null; /** * * @type {Array} * @memberof ApplicationUser */ logs?: Array | null; /** * * @type {number} * @memberof ApplicationUser */ copyRightOwnerId?: number | null; /** * * @type {CopyRightOwner} * @memberof ApplicationUser */ copyRightOwner?: CopyRightOwner; /** * * @type {Array} * @memberof ApplicationUser */ playlists?: Array | null; /** * * @type {Array} * @memberof ApplicationUser */ feeds?: Array | null; /** * * @type {Array} * @memberof ApplicationUser */ places?: Array | null; /** * * @type {Array} * @memberof ApplicationUser */ companyTypeUsers?: Array | null; /** * * @type {string} * @memberof ApplicationUser */ id?: string | null; /** * * @type {string} * @memberof ApplicationUser */ userName?: string | null; /** * * @type {string} * @memberof ApplicationUser */ normalizedUserName?: string | null; /** * * @type {string} * @memberof ApplicationUser */ email?: string | null; /** * * @type {string} * @memberof ApplicationUser */ normalizedEmail?: string | null; /** * * @type {boolean} * @memberof ApplicationUser */ emailConfirmed?: boolean; /** * * @type {string} * @memberof ApplicationUser */ passwordHash?: string | null; /** * * @type {string} * @memberof ApplicationUser */ securityStamp?: string | null; /** * * @type {string} * @memberof ApplicationUser */ concurrencyStamp?: string | null; /** * * @type {string} * @memberof ApplicationUser */ phoneNumber?: string | null; /** * * @type {boolean} * @memberof ApplicationUser */ phoneNumberConfirmed?: boolean; /** * * @type {boolean} * @memberof ApplicationUser */ twoFactorEnabled?: boolean; /** * * @type {Date} * @memberof ApplicationUser */ lockoutEnd?: Date | null; /** * * @type {boolean} * @memberof ApplicationUser */ lockoutEnabled?: boolean; /** * * @type {number} * @memberof ApplicationUser */ accessFailedCount?: number; } /** * Check if a given object implements the ApplicationUser interface. */ export function instanceOfApplicationUser(value: object): value is ApplicationUser { if (!('registrationDate' in value) || value['registrationDate'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; return true; } export function ApplicationUserFromJSON(json: any): ApplicationUser { return ApplicationUserFromJSONTyped(json, false); } export function ApplicationUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationUser { if (json == null) { return json; } return { 'locked': json['Locked'] == null ? undefined : json['Locked'], 'registrationDate': (new Date(json['RegistrationDate'])), 'name': json['Name'], 'role': json['Role'] == null ? undefined : RoleFromJSON(json['Role']), 'imageFile': json['ImageFile'] == null ? undefined : json['ImageFile'], 'editable': json['Editable'] == null ? undefined : json['Editable'], 'objectAddress': json['ObjectAddress'] == null ? undefined : json['ObjectAddress'], 'objectTitle': json['ObjectTitle'] == null ? undefined : json['ObjectTitle'], 'emailFinancial': json['EmailFinancial'] == null ? undefined : json['EmailFinancial'], 'companyName': json['CompanyName'] == null ? undefined : json['CompanyName'], 'contractNumber': json['ContractNumber'] == null ? undefined : json['ContractNumber'], 'contractDate': json['ContractDate'] == null ? undefined : (new Date(json['ContractDate'])), 'accessDate': json['AccessDate'] == null ? undefined : (new Date(json['AccessDate'])), 'key': json['Key'] == null ? undefined : json['Key'], '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'], 'contactFIO': json['ContactFIO'] == null ? undefined : json['ContactFIO'], 'techEmail': json['TechEmail'] == null ? undefined : json['TechEmail'], 'techPhone': json['TechPhone'] == null ? undefined : json['TechPhone'], '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'], 'hidden': json['Hidden'] == null ? undefined : json['Hidden'], 'kPP': json['KPP'] == null ? undefined : json['KPP'], 'oGRN': json['OGRN'] == null ? undefined : json['OGRN'], 'changes': json['Changes'] == null ? undefined : json['Changes'], 'tickets': json['Tickets'] == null ? undefined : ((json['Tickets'] as Array).map(TicketFromJSON)), 'logs': json['Logs'] == null ? undefined : ((json['Logs'] as Array).map(AuditLogFromJSON)), 'copyRightOwnerId': json['CopyRightOwnerId'] == null ? undefined : json['CopyRightOwnerId'], 'copyRightOwner': json['CopyRightOwner'] == null ? undefined : CopyRightOwnerFromJSON(json['CopyRightOwner']), 'playlists': json['Playlists'] == null ? undefined : ((json['Playlists'] as Array).map(PlaylistFromJSON)), 'feeds': json['Feeds'] == null ? undefined : ((json['Feeds'] as Array).map(FeedFromJSON)), 'places': json['Places'] == null ? undefined : ((json['Places'] as Array).map(PlaceFromJSON)), 'companyTypeUsers': json['CompanyTypeUsers'] == null ? undefined : ((json['CompanyTypeUsers'] as Array).map(CompanyTypeUserFromJSON)), 'id': json['Id'] == null ? undefined : json['Id'], 'userName': json['UserName'] == null ? undefined : json['UserName'], 'normalizedUserName': json['NormalizedUserName'] == null ? undefined : json['NormalizedUserName'], 'email': json['Email'] == null ? undefined : json['Email'], 'normalizedEmail': json['NormalizedEmail'] == null ? undefined : json['NormalizedEmail'], 'emailConfirmed': json['EmailConfirmed'] == null ? undefined : json['EmailConfirmed'], 'passwordHash': json['PasswordHash'] == null ? undefined : json['PasswordHash'], 'securityStamp': json['SecurityStamp'] == null ? undefined : json['SecurityStamp'], 'concurrencyStamp': json['ConcurrencyStamp'] == null ? undefined : json['ConcurrencyStamp'], 'phoneNumber': json['PhoneNumber'] == null ? undefined : json['PhoneNumber'], 'phoneNumberConfirmed': json['PhoneNumberConfirmed'] == null ? undefined : json['PhoneNumberConfirmed'], 'twoFactorEnabled': json['TwoFactorEnabled'] == null ? undefined : json['TwoFactorEnabled'], 'lockoutEnd': json['LockoutEnd'] == null ? undefined : (new Date(json['LockoutEnd'])), 'lockoutEnabled': json['LockoutEnabled'] == null ? undefined : json['LockoutEnabled'], 'accessFailedCount': json['AccessFailedCount'] == null ? undefined : json['AccessFailedCount'], }; } export function ApplicationUserToJSON(json: any): ApplicationUser { return ApplicationUserToJSONTyped(json, false); } export function ApplicationUserToJSONTyped(value?: ApplicationUser | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'Locked': value['locked'], 'RegistrationDate': ((value['registrationDate']).toISOString()), 'Name': value['name'], 'Role': RoleToJSON(value['role']), 'ImageFile': value['imageFile'], 'Editable': value['editable'], 'ObjectAddress': value['objectAddress'], 'ObjectTitle': value['objectTitle'], 'EmailFinancial': value['emailFinancial'], 'CompanyName': value['companyName'], 'ContractNumber': value['contractNumber'], 'ContractDate': value['contractDate'] == null ? undefined : ((value['contractDate'] as any).toISOString()), 'AccessDate': value['accessDate'] == null ? undefined : ((value['accessDate'] as any).toISOString()), 'Key': value['key'], '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'], 'ContactFIO': value['contactFIO'], 'TechEmail': value['techEmail'], 'TechPhone': value['techPhone'], 'LegalFormShort': value['legalFormShort'], 'LegalFormFull': value['legalFormFull'], 'AddressLegal': value['addressLegal'], 'AddressPostal': value['addressPostal'], 'AddressActual': value['addressActual'], 'INN': value['iNN'], 'Hidden': value['hidden'], 'KPP': value['kPP'], 'OGRN': value['oGRN'], 'Changes': value['changes'], 'Tickets': value['tickets'] == null ? undefined : ((value['tickets'] as Array).map(TicketToJSON)), 'Logs': value['logs'] == null ? undefined : ((value['logs'] as Array).map(AuditLogToJSON)), 'CopyRightOwnerId': value['copyRightOwnerId'], 'CopyRightOwner': CopyRightOwnerToJSON(value['copyRightOwner']), 'Playlists': value['playlists'] == null ? undefined : ((value['playlists'] as Array).map(PlaylistToJSON)), 'Feeds': value['feeds'] == null ? undefined : ((value['feeds'] as Array).map(FeedToJSON)), 'Places': value['places'] == null ? undefined : ((value['places'] as Array).map(PlaceToJSON)), 'CompanyTypeUsers': value['companyTypeUsers'] == null ? undefined : ((value['companyTypeUsers'] as Array).map(CompanyTypeUserToJSON)), 'Id': value['id'], 'UserName': value['userName'], 'NormalizedUserName': value['normalizedUserName'], 'Email': value['email'], 'NormalizedEmail': value['normalizedEmail'], 'EmailConfirmed': value['emailConfirmed'], 'PasswordHash': value['passwordHash'], 'SecurityStamp': value['securityStamp'], 'ConcurrencyStamp': value['concurrencyStamp'], 'PhoneNumber': value['phoneNumber'], 'PhoneNumberConfirmed': value['phoneNumberConfirmed'], 'TwoFactorEnabled': value['twoFactorEnabled'], 'LockoutEnd': value['lockoutEnd'] == null ? undefined : ((value['lockoutEnd'] as any).toISOString()), 'LockoutEnabled': value['lockoutEnabled'], 'AccessFailedCount': value['accessFailedCount'], }; }