UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

236 lines (226 loc) 6.1 kB
/* 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 ProjectInputDTO */ export interface ProjectInputDTO { /** * * @type {string} * @memberof ProjectInputDTO */ city: string; /** * * @type {string} * @memberof ProjectInputDTO */ clientId?: string; /** * * @type {boolean} * @memberof ProjectInputDTO */ closed?: boolean; /** * * @type {string} * @memberof ProjectInputDTO */ companyContactPerson: string; /** * * @type {string} * @memberof ProjectInputDTO */ contactEmail: string; /** * * @type {string} * @memberof ProjectInputDTO */ contactName: string; /** * * @type {string} * @memberof ProjectInputDTO */ contactPhoneNumber: string; /** * * @type {string} * @memberof ProjectInputDTO */ description: string; /** * * @type {string} * @memberof ProjectInputDTO */ endDate: string; /** * * @type {string} * @memberof ProjectInputDTO */ gitPrefix: string; /** * * @type {string} * @memberof ProjectInputDTO */ githubOrganization: string; /** * * @type {number} * @memberof ProjectInputDTO */ hourlyRate: number; /** * * @type {string} * @memberof ProjectInputDTO */ houseNumber: string; /** * * @type {string} * @memberof ProjectInputDTO */ jiraOrganization: string; /** * * @type {string} * @memberof ProjectInputDTO */ jiraPrefix: string; /** * * @type {number} * @memberof ProjectInputDTO */ paymentMonthDay: number; /** * * @type {string} * @memberof ProjectInputDTO */ postalCode: string; /** * * @type {string} * @memberof ProjectInputDTO */ projectName: string; /** * * @type {string} * @memberof ProjectInputDTO */ startDate: string; /** * * @type {string} * @memberof ProjectInputDTO */ street: string; } /** * Check if a given object implements the ProjectInputDTO interface. */ export function instanceOfProjectInputDTO(value: object): boolean { let isInstance = true; isInstance = isInstance && "city" in value; isInstance = isInstance && "companyContactPerson" in value; isInstance = isInstance && "contactEmail" in value; isInstance = isInstance && "contactName" in value; isInstance = isInstance && "contactPhoneNumber" in value; isInstance = isInstance && "description" in value; isInstance = isInstance && "endDate" in value; isInstance = isInstance && "gitPrefix" in value; isInstance = isInstance && "githubOrganization" in value; isInstance = isInstance && "hourlyRate" in value; isInstance = isInstance && "houseNumber" in value; isInstance = isInstance && "jiraOrganization" in value; isInstance = isInstance && "jiraPrefix" in value; isInstance = isInstance && "paymentMonthDay" in value; isInstance = isInstance && "postalCode" in value; isInstance = isInstance && "projectName" in value; isInstance = isInstance && "startDate" in value; isInstance = isInstance && "street" in value; return isInstance; } export function ProjectInputDTOFromJSON(json: any): ProjectInputDTO { return ProjectInputDTOFromJSONTyped(json, false); } export function ProjectInputDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectInputDTO { if ((json === undefined) || (json === null)) { return json; } return { 'city': json['city'], 'clientId': !exists(json, 'clientId') ? undefined : json['clientId'], 'closed': !exists(json, 'closed') ? undefined : json['closed'], 'companyContactPerson': json['companyContactPerson'], 'contactEmail': json['contactEmail'], 'contactName': json['contactName'], 'contactPhoneNumber': json['contactPhoneNumber'], 'description': json['description'], 'endDate': json['endDate'], 'gitPrefix': json['gitPrefix'], 'githubOrganization': json['githubOrganization'], 'hourlyRate': json['hourlyRate'], 'houseNumber': json['houseNumber'], 'jiraOrganization': json['jiraOrganization'], 'jiraPrefix': json['jiraPrefix'], 'paymentMonthDay': json['paymentMonthDay'], 'postalCode': json['postalCode'], 'projectName': json['projectName'], 'startDate': json['startDate'], 'street': json['street'], }; } export function ProjectInputDTOToJSON(value?: ProjectInputDTO | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'city': value.city, 'clientId': value.clientId, 'closed': value.closed, 'companyContactPerson': value.companyContactPerson, 'contactEmail': value.contactEmail, 'contactName': value.contactName, 'contactPhoneNumber': value.contactPhoneNumber, 'description': value.description, 'endDate': value.endDate, 'gitPrefix': value.gitPrefix, 'githubOrganization': value.githubOrganization, 'hourlyRate': value.hourlyRate, 'houseNumber': value.houseNumber, 'jiraOrganization': value.jiraOrganization, 'jiraPrefix': value.jiraPrefix, 'paymentMonthDay': value.paymentMonthDay, 'postalCode': value.postalCode, 'projectName': value.projectName, 'startDate': value.startDate, 'street': value.street, }; }