UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

64 lines 2.41 kB
"use strict"; /* 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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.PaginatedEmployeeInvoicesToJSON = exports.PaginatedEmployeeInvoicesFromJSONTyped = exports.PaginatedEmployeeInvoicesFromJSON = exports.instanceOfPaginatedEmployeeInvoices = void 0; const EmployeeInvoiceDTO_1 = require("./EmployeeInvoiceDTO"); /** * Check if a given object implements the PaginatedEmployeeInvoices interface. */ function instanceOfPaginatedEmployeeInvoices(value) { 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; } exports.instanceOfPaginatedEmployeeInvoices = instanceOfPaginatedEmployeeInvoices; function PaginatedEmployeeInvoicesFromJSON(json) { return PaginatedEmployeeInvoicesFromJSONTyped(json, false); } exports.PaginatedEmployeeInvoicesFromJSON = PaginatedEmployeeInvoicesFromJSON; function PaginatedEmployeeInvoicesFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'items': (json['items'].map(EmployeeInvoiceDTO_1.EmployeeInvoiceDTOFromJSON)), 'page': json['page'], 'pageSize': json['pageSize'], 'totalItems': json['totalItems'], 'totalPages': json['totalPages'], }; } exports.PaginatedEmployeeInvoicesFromJSONTyped = PaginatedEmployeeInvoicesFromJSONTyped; function PaginatedEmployeeInvoicesToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'items': (value.items.map(EmployeeInvoiceDTO_1.EmployeeInvoiceDTOToJSON)), 'page': value.page, 'pageSize': value.pageSize, 'totalItems': value.totalItems, 'totalPages': value.totalPages, }; } exports.PaginatedEmployeeInvoicesToJSON = PaginatedEmployeeInvoicesToJSON; //# sourceMappingURL=PaginatedEmployeeInvoices.js.map