UNPKG

fastcomments-sdk

Version:

FastComments API Client - A SDK for interacting with the FastComments API

65 lines 2.24 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * fastcomments * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 0.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.AggregationRequestSortDirEnum = void 0; exports.instanceOfAggregationRequestSort = instanceOfAggregationRequestSort; exports.AggregationRequestSortFromJSON = AggregationRequestSortFromJSON; exports.AggregationRequestSortFromJSONTyped = AggregationRequestSortFromJSONTyped; exports.AggregationRequestSortToJSON = AggregationRequestSortToJSON; exports.AggregationRequestSortToJSONTyped = AggregationRequestSortToJSONTyped; /** * @export * @enum {string} */ var AggregationRequestSortDirEnum; (function (AggregationRequestSortDirEnum) { AggregationRequestSortDirEnum["asc"] = "asc"; AggregationRequestSortDirEnum["desc"] = "desc"; })(AggregationRequestSortDirEnum || (exports.AggregationRequestSortDirEnum = AggregationRequestSortDirEnum = {})); /** * Check if a given object implements the AggregationRequestSort interface. */ function instanceOfAggregationRequestSort(value) { if (!('dir' in value) || value['dir'] === undefined) return false; if (!('field' in value) || value['field'] === undefined) return false; return true; } function AggregationRequestSortFromJSON(json) { return AggregationRequestSortFromJSONTyped(json, false); } function AggregationRequestSortFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'dir': json['dir'], 'field': json['field'], }; } function AggregationRequestSortToJSON(json) { return AggregationRequestSortToJSONTyped(json, false); } function AggregationRequestSortToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'dir': value['dir'], 'field': value['field'], }; } //# sourceMappingURL=AggregationRequestSort.js.map