UNPKG

fetch-jsd

Version:

57 lines (56 loc) 2.21 kB
"use strict"; // tslint:disable /** * Service Desk Public REST API * Public REST API for Jira Service Desk * * The version of the OpenAPI document: 1001.0.0-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); const runtime_1 = require("../runtime"); const _1 = require("./"); function CustomerRequestStatusDTOFromJSON(json) { return CustomerRequestStatusDTOFromJSONTyped(json, false); } exports.CustomerRequestStatusDTOFromJSON = CustomerRequestStatusDTOFromJSON; function CustomerRequestStatusDTOFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'status': !runtime_1.exists(json, 'status') ? undefined : json['status'], 'statusCategory': !runtime_1.exists(json, 'statusCategory') ? undefined : json['statusCategory'], 'statusDate': !runtime_1.exists(json, 'statusDate') ? undefined : _1.DateDTOFromJSON(json['statusDate']), }; } exports.CustomerRequestStatusDTOFromJSONTyped = CustomerRequestStatusDTOFromJSONTyped; function CustomerRequestStatusDTOToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'status': value.status, 'statusCategory': value.statusCategory, 'statusDate': _1.DateDTOToJSON(value.statusDate), }; } exports.CustomerRequestStatusDTOToJSON = CustomerRequestStatusDTOToJSON; /** * @export * @enum {string} */ var CustomerRequestStatusDTOStatusCategoryEnum; (function (CustomerRequestStatusDTOStatusCategoryEnum) { CustomerRequestStatusDTOStatusCategoryEnum["UNDEFINED"] = "UNDEFINED"; CustomerRequestStatusDTOStatusCategoryEnum["NEW"] = "NEW"; CustomerRequestStatusDTOStatusCategoryEnum["INDETERMINATE"] = "INDETERMINATE"; CustomerRequestStatusDTOStatusCategoryEnum["DONE"] = "DONE"; })(CustomerRequestStatusDTOStatusCategoryEnum = exports.CustomerRequestStatusDTOStatusCategoryEnum || (exports.CustomerRequestStatusDTOStatusCategoryEnum = {}));