tuix-timesheets-api
Version:
This package facilitates the client request to tuix timesheets api
130 lines (120 loc) • 2.99 kB
text/typescript
/* tslint:disable */
/* eslint-disable */
/**
* Tuix Services
* Tuix Services API
*
* The version of the OpenAPI document: 1.0.0
*
*
* 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, mapValues } from '../runtime';
/**
*
* @export
* @interface JiraUserDto
*/
export interface JiraUserDto {
/**
*
* @type {string}
* @memberof JiraUserDto
*/
id: string;
/**
*
* @type {Date}
* @memberof JiraUserDto
*/
createdAt: Date;
/**
*
* @type {Date}
* @memberof JiraUserDto
*/
updatedAt: Date;
/**
*
* @type {string}
* @memberof JiraUserDto
*/
email: string;
/**
*
* @type {object}
* @memberof JiraUserDto
*/
firstName: object;
/**
*
* @type {object}
* @memberof JiraUserDto
*/
lastName: object;
/**
*
* @type {number}
* @memberof JiraUserDto
*/
workingHours: number;
/**
*
* @type {string}
* @memberof JiraUserDto
*/
timeZone: string;
}
/**
* Check if a given object implements the JiraUserDto interface.
*/
export function instanceOfJiraUserDto(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "createdAt" in value;
isInstance = isInstance && "updatedAt" in value;
isInstance = isInstance && "email" in value;
isInstance = isInstance && "firstName" in value;
isInstance = isInstance && "lastName" in value;
isInstance = isInstance && "workingHours" in value;
isInstance = isInstance && "timeZone" in value;
return isInstance;
}
export function JiraUserDtoFromJSON(json: any): JiraUserDto {
return JiraUserDtoFromJSONTyped(json, false);
}
export function JiraUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): JiraUserDto {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'id': json['id'],
'createdAt': (new Date(json['createdAt'])),
'updatedAt': (new Date(json['updatedAt'])),
'email': json['email'],
'firstName': json['firstName'],
'lastName': json['lastName'],
'workingHours': json['workingHours'],
'timeZone': json['timeZone'],
};
}
export function JiraUserDtoToJSON(value?: JiraUserDto | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'id': value.id,
'createdAt': (value.createdAt.toISOString()),
'updatedAt': (value.updatedAt.toISOString()),
'email': value.email,
'firstName': value.firstName,
'lastName': value.lastName,
'workingHours': value.workingHours,
'timeZone': value.timeZone,
};
}