UNPKG

fastcomments-sdk

Version:

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

126 lines 6.88 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.instanceOfUpdatableCommentParams = instanceOfUpdatableCommentParams; exports.UpdatableCommentParamsFromJSON = UpdatableCommentParamsFromJSON; exports.UpdatableCommentParamsFromJSONTyped = UpdatableCommentParamsFromJSONTyped; exports.UpdatableCommentParamsToJSON = UpdatableCommentParamsToJSON; exports.UpdatableCommentParamsToJSONTyped = UpdatableCommentParamsToJSONTyped; const APICommentBaseMeta_1 = require("./APICommentBaseMeta"); /** * Check if a given object implements the UpdatableCommentParams interface. */ function instanceOfUpdatableCommentParams(value) { return true; } function UpdatableCommentParamsFromJSON(json) { return UpdatableCommentParamsFromJSONTyped(json, false); } function UpdatableCommentParamsFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'urlId': json['urlId'] == null ? undefined : json['urlId'], 'urlIdRaw': json['urlIdRaw'] == null ? undefined : json['urlIdRaw'], 'url': json['url'] == null ? undefined : json['url'], 'pageTitle': json['pageTitle'] == null ? undefined : json['pageTitle'], 'userId': json['userId'] == null ? undefined : json['userId'], 'commenterEmail': json['commenterEmail'] == null ? undefined : json['commenterEmail'], 'commenterName': json['commenterName'] == null ? undefined : json['commenterName'], 'commenterLink': json['commenterLink'] == null ? undefined : json['commenterLink'], 'comment': json['comment'] == null ? undefined : json['comment'], 'commentHTML': json['commentHTML'] == null ? undefined : json['commentHTML'], 'parentId': json['parentId'] == null ? undefined : json['parentId'], 'date': json['date'] == null ? undefined : json['date'], 'localDateString': json['localDateString'] == null ? undefined : json['localDateString'], 'localDateHours': json['localDateHours'] == null ? undefined : json['localDateHours'], 'votes': json['votes'] == null ? undefined : json['votes'], 'votesUp': json['votesUp'] == null ? undefined : json['votesUp'], 'votesDown': json['votesDown'] == null ? undefined : json['votesDown'], 'expireAt': json['expireAt'] == null ? undefined : (new Date(json['expireAt'])), 'verified': json['verified'] == null ? undefined : json['verified'], 'verifiedDate': json['verifiedDate'] == null ? undefined : (new Date(json['verifiedDate'])), 'notificationSentForParent': json['notificationSentForParent'] == null ? undefined : json['notificationSentForParent'], 'notificationSentForParentTenant': json['notificationSentForParentTenant'] == null ? undefined : json['notificationSentForParentTenant'], 'reviewed': json['reviewed'] == null ? undefined : json['reviewed'], 'externalId': json['externalId'] == null ? undefined : json['externalId'], 'externalParentId': json['externalParentId'] == null ? undefined : json['externalParentId'], 'avatarSrc': json['avatarSrc'] == null ? undefined : json['avatarSrc'], 'isSpam': json['isSpam'] == null ? undefined : json['isSpam'], 'approved': json['approved'] == null ? undefined : json['approved'], 'isDeleted': json['isDeleted'] == null ? undefined : json['isDeleted'], 'isDeletedUser': json['isDeletedUser'] == null ? undefined : json['isDeletedUser'], 'isByAdmin': json['isByAdmin'] == null ? undefined : json['isByAdmin'], 'isByModerator': json['isByModerator'] == null ? undefined : json['isByModerator'], 'isPinned': json['isPinned'] == null ? undefined : json['isPinned'], 'isLocked': json['isLocked'] == null ? undefined : json['isLocked'], 'flagCount': json['flagCount'] == null ? undefined : json['flagCount'], 'displayLabel': json['displayLabel'] == null ? undefined : json['displayLabel'], 'meta': json['meta'] == null ? undefined : (0, APICommentBaseMeta_1.APICommentBaseMetaFromJSON)(json['meta']), 'moderationGroupIds': json['moderationGroupIds'] == null ? undefined : json['moderationGroupIds'], 'feedbackIds': json['feedbackIds'] == null ? undefined : json['feedbackIds'], }; } function UpdatableCommentParamsToJSON(json) { return UpdatableCommentParamsToJSONTyped(json, false); } function UpdatableCommentParamsToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'urlId': value['urlId'], 'urlIdRaw': value['urlIdRaw'], 'url': value['url'], 'pageTitle': value['pageTitle'], 'userId': value['userId'], 'commenterEmail': value['commenterEmail'], 'commenterName': value['commenterName'], 'commenterLink': value['commenterLink'], 'comment': value['comment'], 'commentHTML': value['commentHTML'], 'parentId': value['parentId'], 'date': value['date'], 'localDateString': value['localDateString'], 'localDateHours': value['localDateHours'], 'votes': value['votes'], 'votesUp': value['votesUp'], 'votesDown': value['votesDown'], 'expireAt': value['expireAt'] == null ? undefined : (value['expireAt'].toISOString()), 'verified': value['verified'], 'verifiedDate': value['verifiedDate'] == null ? undefined : (value['verifiedDate'].toISOString()), 'notificationSentForParent': value['notificationSentForParent'], 'notificationSentForParentTenant': value['notificationSentForParentTenant'], 'reviewed': value['reviewed'], 'externalId': value['externalId'], 'externalParentId': value['externalParentId'], 'avatarSrc': value['avatarSrc'], 'isSpam': value['isSpam'], 'approved': value['approved'], 'isDeleted': value['isDeleted'], 'isDeletedUser': value['isDeletedUser'], 'isByAdmin': value['isByAdmin'], 'isByModerator': value['isByModerator'], 'isPinned': value['isPinned'], 'isLocked': value['isLocked'], 'flagCount': value['flagCount'], 'displayLabel': value['displayLabel'], 'meta': (0, APICommentBaseMeta_1.APICommentBaseMetaToJSON)(value['meta']), 'moderationGroupIds': value['moderationGroupIds'], 'feedbackIds': value['feedbackIds'], }; } //# sourceMappingURL=UpdatableCommentParams.js.map