UNPKG

fastcomments-sdk

Version:

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

64 lines 1.99 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.SpamRuleActionsEnum = void 0; exports.instanceOfSpamRule = instanceOfSpamRule; exports.SpamRuleFromJSON = SpamRuleFromJSON; exports.SpamRuleFromJSONTyped = SpamRuleFromJSONTyped; exports.SpamRuleToJSON = SpamRuleToJSON; exports.SpamRuleToJSONTyped = SpamRuleToJSONTyped; /** * @export * @enum {string} */ var SpamRuleActionsEnum; (function (SpamRuleActionsEnum) { SpamRuleActionsEnum["spam"] = "spam"; SpamRuleActionsEnum["not_spam"] = "not-spam"; SpamRuleActionsEnum["ignore_repeat"] = "ignore-repeat"; })(SpamRuleActionsEnum || (exports.SpamRuleActionsEnum = SpamRuleActionsEnum = {})); /** * Check if a given object implements the SpamRule interface. */ function instanceOfSpamRule(value) { if (!('actions' in value) || value['actions'] === undefined) return false; return true; } function SpamRuleFromJSON(json) { return SpamRuleFromJSONTyped(json, false); } function SpamRuleFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'actions': json['actions'], 'commentContains': json['commentContains'] == null ? undefined : json['commentContains'], }; } function SpamRuleToJSON(json) { return SpamRuleToJSONTyped(json, false); } function SpamRuleToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'actions': value['actions'], 'commentContains': value['commentContains'], }; } //# sourceMappingURL=SpamRule.js.map