UNPKG

fastcomments-sdk

Version:

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

73 lines 2.58 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.QueryPredicateOperatorEnum = void 0; exports.instanceOfQueryPredicate = instanceOfQueryPredicate; exports.QueryPredicateFromJSON = QueryPredicateFromJSON; exports.QueryPredicateFromJSONTyped = QueryPredicateFromJSONTyped; exports.QueryPredicateToJSON = QueryPredicateToJSON; exports.QueryPredicateToJSONTyped = QueryPredicateToJSONTyped; const QueryPredicateValue_1 = require("./QueryPredicateValue"); /** * @export * @enum {string} */ var QueryPredicateOperatorEnum; (function (QueryPredicateOperatorEnum) { QueryPredicateOperatorEnum["eq"] = "eq"; QueryPredicateOperatorEnum["not_eq"] = "not_eq"; QueryPredicateOperatorEnum["greater_than"] = "greater_than"; QueryPredicateOperatorEnum["less_than"] = "less_than"; QueryPredicateOperatorEnum["contains"] = "contains"; })(QueryPredicateOperatorEnum || (exports.QueryPredicateOperatorEnum = QueryPredicateOperatorEnum = {})); /** * Check if a given object implements the QueryPredicate interface. */ function instanceOfQueryPredicate(value) { if (!('key' in value) || value['key'] === undefined) return false; if (!('value' in value) || value['value'] === undefined) return false; if (!('operator' in value) || value['operator'] === undefined) return false; return true; } function QueryPredicateFromJSON(json) { return QueryPredicateFromJSONTyped(json, false); } function QueryPredicateFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'key': json['key'], 'value': (0, QueryPredicateValue_1.QueryPredicateValueFromJSON)(json['value']), 'operator': json['operator'], }; } function QueryPredicateToJSON(json) { return QueryPredicateToJSONTyped(json, false); } function QueryPredicateToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'key': value['key'], 'value': (0, QueryPredicateValue_1.QueryPredicateValueToJSON)(value['value']), 'operator': value['operator'], }; } //# sourceMappingURL=QueryPredicate.js.map