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.PaginatedGlobalTimesheetsToJSON = exports.PaginatedGlobalTimesheetsFromJSONTyped = exports.PaginatedGlobalTimesheetsFromJSON = exports.instanceOfPaginatedGlobalTimesheets = void 0; const GlobalTimesheetDTO_1 = require("./GlobalTimesheetDTO"); /** * Check if a given object implements the PaginatedGlobalTimesheets interface. */ function instanceOfPaginatedGlobalTimesheets(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.instanceOfPaginatedGlobalTimesheets = instanceOfPaginatedGlobalTimesheets; function PaginatedGlobalTimesheetsFromJSON(json) { return PaginatedGlobalTimesheetsFromJSONTyped(json, false); } exports.PaginatedGlobalTimesheetsFromJSON = PaginatedGlobalTimesheetsFromJSON; function PaginatedGlobalTimesheetsFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'items': (json['items'].map(GlobalTimesheetDTO_1.GlobalTimesheetDTOFromJSON)), 'page': json['page'], 'pageSize': json['pageSize'], 'totalItems': json['totalItems'], 'totalPages': json['totalPages'], }; } exports.PaginatedGlobalTimesheetsFromJSONTyped = PaginatedGlobalTimesheetsFromJSONTyped; function PaginatedGlobalTimesheetsToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'items': (value.items.map(GlobalTimesheetDTO_1.GlobalTimesheetDTOToJSON)), 'page': value.page, 'pageSize': value.pageSize, 'totalItems': value.totalItems, 'totalPages': value.totalPages, }; } exports.PaginatedGlobalTimesheetsToJSON = PaginatedGlobalTimesheetsToJSON; //# sourceMappingURL=PaginatedGlobalTimesheets.js.map