UNPKG

@fnt-eve/esi-client-typescript

Version:

[![npm version](https://img.shields.io/npm/v/@fnt-eve/esi-client-typescript)](https://www.npmjs.com/package/@fnt-eve/esi-client-typescript)

123 lines (122 loc) 5.26 kB
/* tslint:disable */ /* eslint-disable */ /** * EVE Swagger Interface * An OpenAPI for EVE Online * * The version of the OpenAPI document: 1.33 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * @export */ export const GetCharactersCharacterIdIndustryJobs200OkStatusEnum = { Active: 'active', Cancelled: 'cancelled', Delivered: 'delivered', Paused: 'paused', Ready: 'ready', Reverted: 'reverted' }; /** * Check if a given object implements the GetCharactersCharacterIdIndustryJobs200Ok interface. */ export function instanceOfGetCharactersCharacterIdIndustryJobs200Ok(value) { if (!('activityId' in value) || value['activityId'] === undefined) return false; if (!('blueprintId' in value) || value['blueprintId'] === undefined) return false; if (!('blueprintLocationId' in value) || value['blueprintLocationId'] === undefined) return false; if (!('blueprintTypeId' in value) || value['blueprintTypeId'] === undefined) return false; if (!('duration' in value) || value['duration'] === undefined) return false; if (!('endDate' in value) || value['endDate'] === undefined) return false; if (!('facilityId' in value) || value['facilityId'] === undefined) return false; if (!('installerId' in value) || value['installerId'] === undefined) return false; if (!('jobId' in value) || value['jobId'] === undefined) return false; if (!('outputLocationId' in value) || value['outputLocationId'] === undefined) return false; if (!('runs' in value) || value['runs'] === undefined) return false; if (!('startDate' in value) || value['startDate'] === undefined) return false; if (!('stationId' in value) || value['stationId'] === undefined) return false; if (!('status' in value) || value['status'] === undefined) return false; return true; } export function GetCharactersCharacterIdIndustryJobs200OkFromJSON(json) { return GetCharactersCharacterIdIndustryJobs200OkFromJSONTyped(json, false); } export function GetCharactersCharacterIdIndustryJobs200OkFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'activityId': json['activity_id'], 'blueprintId': json['blueprint_id'], 'blueprintLocationId': json['blueprint_location_id'], 'blueprintTypeId': json['blueprint_type_id'], 'completedCharacterId': json['completed_character_id'] == null ? undefined : json['completed_character_id'], 'completedDate': json['completed_date'] == null ? undefined : (new Date(json['completed_date'])), 'cost': json['cost'] == null ? undefined : json['cost'], 'duration': json['duration'], 'endDate': (new Date(json['end_date'])), 'facilityId': json['facility_id'], 'installerId': json['installer_id'], 'jobId': json['job_id'], 'licensedRuns': json['licensed_runs'] == null ? undefined : json['licensed_runs'], 'outputLocationId': json['output_location_id'], 'pauseDate': json['pause_date'] == null ? undefined : (new Date(json['pause_date'])), 'probability': json['probability'] == null ? undefined : json['probability'], 'productTypeId': json['product_type_id'] == null ? undefined : json['product_type_id'], 'runs': json['runs'], 'startDate': (new Date(json['start_date'])), 'stationId': json['station_id'], 'status': json['status'], 'successfulRuns': json['successful_runs'] == null ? undefined : json['successful_runs'], }; } export function GetCharactersCharacterIdIndustryJobs200OkToJSON(json) { return GetCharactersCharacterIdIndustryJobs200OkToJSONTyped(json, false); } export function GetCharactersCharacterIdIndustryJobs200OkToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'activity_id': value['activityId'], 'blueprint_id': value['blueprintId'], 'blueprint_location_id': value['blueprintLocationId'], 'blueprint_type_id': value['blueprintTypeId'], 'completed_character_id': value['completedCharacterId'], 'completed_date': value['completedDate'] == null ? undefined : ((value['completedDate']).toISOString()), 'cost': value['cost'], 'duration': value['duration'], 'end_date': ((value['endDate']).toISOString()), 'facility_id': value['facilityId'], 'installer_id': value['installerId'], 'job_id': value['jobId'], 'licensed_runs': value['licensedRuns'], 'output_location_id': value['outputLocationId'], 'pause_date': value['pauseDate'] == null ? undefined : ((value['pauseDate']).toISOString()), 'probability': value['probability'], 'product_type_id': value['productTypeId'], 'runs': value['runs'], 'start_date': ((value['startDate']).toISOString()), 'station_id': value['stationId'], 'status': value['status'], 'successful_runs': value['successfulRuns'], }; }