fetch-jsd
Version:
A simple and typed library, based on OpenAPI spec from developer.atlassian.com, for accessing product APIs.
52 lines • 1.91 kB
JavaScript
// 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.
*/
import { exists } from '../runtime';
import { DateDTOFromJSON, DateDTOToJSON, } from './';
export function CustomerRequestStatusDTOFromJSON(json) {
return CustomerRequestStatusDTOFromJSONTyped(json, false);
}
export function CustomerRequestStatusDTOFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'status': !exists(json, 'status') ? undefined : json['status'],
'statusCategory': !exists(json, 'statusCategory') ? undefined : json['statusCategory'],
'statusDate': !exists(json, 'statusDate') ? undefined : DateDTOFromJSON(json['statusDate']),
};
}
export function CustomerRequestStatusDTOToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'status': value.status,
'statusCategory': value.statusCategory,
'statusDate': DateDTOToJSON(value.statusDate),
};
}
/**
* @export
* @enum {string}
*/
export var CustomerRequestStatusDTOStatusCategoryEnum;
(function (CustomerRequestStatusDTOStatusCategoryEnum) {
CustomerRequestStatusDTOStatusCategoryEnum["UNDEFINED"] = "UNDEFINED";
CustomerRequestStatusDTOStatusCategoryEnum["NEW"] = "NEW";
CustomerRequestStatusDTOStatusCategoryEnum["INDETERMINATE"] = "INDETERMINATE";
CustomerRequestStatusDTOStatusCategoryEnum["DONE"] = "DONE";
})(CustomerRequestStatusDTOStatusCategoryEnum || (CustomerRequestStatusDTOStatusCategoryEnum = {}));
//# sourceMappingURL=CustomerRequestStatusDTO.js.map