UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

110 lines (99 loc) 2.83 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'; import type { EmployeeInvoiceDTO } from './EmployeeInvoiceDTO'; import { EmployeeInvoiceDTOFromJSON, EmployeeInvoiceDTOFromJSONTyped, EmployeeInvoiceDTOToJSON, } from './EmployeeInvoiceDTO'; /** * * @export * @interface PaginatedEmployeeInvoices */ export interface PaginatedEmployeeInvoices { /** * * @type {Array<EmployeeInvoiceDTO>} * @memberof PaginatedEmployeeInvoices */ items: Array<EmployeeInvoiceDTO>; /** * * @type {number} * @memberof PaginatedEmployeeInvoices */ page: number; /** * * @type {number} * @memberof PaginatedEmployeeInvoices */ pageSize: number; /** * * @type {number} * @memberof PaginatedEmployeeInvoices */ totalItems: number; /** * * @type {number} * @memberof PaginatedEmployeeInvoices */ totalPages: number; } /** * Check if a given object implements the PaginatedEmployeeInvoices interface. */ export function instanceOfPaginatedEmployeeInvoices(value: object): boolean { let isInstance = true; isInstance = isInstance && "items" in value; isInstance = isInstance && "page" in value; isInstance = isInstance && "pageSize" in value; isInstance = isInstance && "totalItems" in value; isInstance = isInstance && "totalPages" in value; return isInstance; } export function PaginatedEmployeeInvoicesFromJSON(json: any): PaginatedEmployeeInvoices { return PaginatedEmployeeInvoicesFromJSONTyped(json, false); } export function PaginatedEmployeeInvoicesFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedEmployeeInvoices { if ((json === undefined) || (json === null)) { return json; } return { 'items': ((json['items'] as Array<any>).map(EmployeeInvoiceDTOFromJSON)), 'page': json['page'], 'pageSize': json['pageSize'], 'totalItems': json['totalItems'], 'totalPages': json['totalPages'], }; } export function PaginatedEmployeeInvoicesToJSON(value?: PaginatedEmployeeInvoices | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'items': ((value.items as Array<any>).map(EmployeeInvoiceDTOToJSON)), 'page': value.page, 'pageSize': value.pageSize, 'totalItems': value.totalItems, 'totalPages': value.totalPages, }; }