UNPKG

fastcomments-sdk

Version:

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

240 lines 19 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.instanceOfCustomConfigParameters = instanceOfCustomConfigParameters; exports.CustomConfigParametersFromJSON = CustomConfigParametersFromJSON; exports.CustomConfigParametersFromJSONTyped = CustomConfigParametersFromJSONTyped; exports.CustomConfigParametersToJSON = CustomConfigParametersToJSON; exports.CustomConfigParametersToJSONTyped = CustomConfigParametersToJSONTyped; const TOSConfig_1 = require("./TOSConfig"); const MentionAutoCompleteMode_1 = require("./MentionAutoCompleteMode"); const CommentQuestionResultsRenderingType_1 = require("./CommentQuestionResultsRenderingType"); const CommenterNameFormats_1 = require("./CommenterNameFormats"); const SSOSecurityLevel_1 = require("./SSOSecurityLevel"); const QuestionWhenSave_1 = require("./QuestionWhenSave"); const UsersListLocation_1 = require("./UsersListLocation"); const GifRating_1 = require("./GifRating"); const SpamRule_1 = require("./SpamRule"); const ImageContentProfanityLevel_1 = require("./ImageContentProfanityLevel"); const CommentQuestionsRequired_1 = require("./CommentQuestionsRequired"); const VoteStyle_1 = require("./VoteStyle"); const CommentThreadDeletionMode_1 = require("./CommentThreadDeletionMode"); const SortDirections_1 = require("./SortDirections"); const QuestionSubQuestionVisibility_1 = require("./QuestionSubQuestionVisibility"); const QuestionRenderingType_1 = require("./QuestionRenderingType"); const CommentHTMLRenderingMode_1 = require("./CommentHTMLRenderingMode"); /** * Check if a given object implements the CustomConfigParameters interface. */ function instanceOfCustomConfigParameters(value) { return true; } function CustomConfigParametersFromJSON(json) { return CustomConfigParametersFromJSONTyped(json, false); } function CustomConfigParametersFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'absoluteAndRelativeDates': json['absoluteAndRelativeDates'] == null ? undefined : json['absoluteAndRelativeDates'], 'absoluteDates': json['absoluteDates'] == null ? undefined : json['absoluteDates'], 'allowAnon': json['allowAnon'] == null ? undefined : json['allowAnon'], 'allowAnonFlag': json['allowAnonFlag'] == null ? undefined : json['allowAnonFlag'], 'allowAnonVotes': json['allowAnonVotes'] == null ? undefined : json['allowAnonVotes'], 'allowedLanguages': json['allowedLanguages'] == null ? undefined : json['allowedLanguages'], 'collapseReplies': json['collapseReplies'] == null ? undefined : json['collapseReplies'], 'commentCountFormat': json['commentCountFormat'] == null ? undefined : json['commentCountFormat'], 'commentHTMLRenderingMode': json['commentHTMLRenderingMode'] == null ? undefined : (0, CommentHTMLRenderingMode_1.CommentHTMLRenderingModeFromJSON)(json['commentHTMLRenderingMode']), 'commentThreadDeleteMode': json['commentThreadDeleteMode'] == null ? undefined : (0, CommentThreadDeletionMode_1.CommentThreadDeletionModeFromJSON)(json['commentThreadDeleteMode']), 'commenterNameFormat': json['commenterNameFormat'] == null ? undefined : (0, CommenterNameFormats_1.CommenterNameFormatsFromJSON)(json['commenterNameFormat']), 'countAboveToggle': json['countAboveToggle'] == null ? undefined : json['countAboveToggle'], 'customCSS': json['customCSS'] == null ? undefined : json['customCSS'], 'defaultAvatarSrc': json['defaultAvatarSrc'] == null ? undefined : json['defaultAvatarSrc'], 'defaultSortDirection': json['defaultSortDirection'] == null ? undefined : (0, SortDirections_1.SortDirectionsFromJSON)(json['defaultSortDirection']), 'defaultUsername': json['defaultUsername'] == null ? undefined : json['defaultUsername'], 'disableAutoAdminMigration': json['disableAutoAdminMigration'] == null ? undefined : json['disableAutoAdminMigration'], 'disableAutoHashTagCreation': json['disableAutoHashTagCreation'] == null ? undefined : json['disableAutoHashTagCreation'], 'disableBlocking': json['disableBlocking'] == null ? undefined : json['disableBlocking'], 'disableCommenterCommentDelete': json['disableCommenterCommentDelete'] == null ? undefined : json['disableCommenterCommentDelete'], 'disableCommenterCommentEdit': json['disableCommenterCommentEdit'] == null ? undefined : json['disableCommenterCommentEdit'], 'disableEmailInputs': json['disableEmailInputs'] == null ? undefined : json['disableEmailInputs'], 'disableLiveCommenting': json['disableLiveCommenting'] == null ? undefined : json['disableLiveCommenting'], 'disableNotificationBell': json['disableNotificationBell'] == null ? undefined : json['disableNotificationBell'], 'disableProfileComments': json['disableProfileComments'] == null ? undefined : json['disableProfileComments'], 'disableProfileDirectMessages': json['disableProfileDirectMessages'] == null ? undefined : json['disableProfileDirectMessages'], 'disableProfiles': json['disableProfiles'] == null ? undefined : json['disableProfiles'], 'disableSuccessMessage': json['disableSuccessMessage'] == null ? undefined : json['disableSuccessMessage'], 'disableToolbar': json['disableToolbar'] == null ? undefined : json['disableToolbar'], 'disableUnverifiedLabel': json['disableUnverifiedLabel'] == null ? undefined : json['disableUnverifiedLabel'], 'disableVoting': json['disableVoting'] == null ? undefined : json['disableVoting'], 'enableCommenterLinks': json['enableCommenterLinks'] == null ? undefined : json['enableCommenterLinks'], 'enableSearch': json['enableSearch'] == null ? undefined : json['enableSearch'], 'enableSpoilers': json['enableSpoilers'] == null ? undefined : json['enableSpoilers'], 'enableThirdPartyCookieBypass': json['enableThirdPartyCookieBypass'] == null ? undefined : json['enableThirdPartyCookieBypass'], 'enableViewCounts': json['enableViewCounts'] == null ? undefined : json['enableViewCounts'], 'enableVoteList': json['enableVoteList'] == null ? undefined : json['enableVoteList'], 'enableWYSIWYG': json['enableWYSIWYG'] == null ? undefined : json['enableWYSIWYG'], 'gifRating': json['gifRating'] == null ? undefined : (0, GifRating_1.GifRatingFromJSON)(json['gifRating']), 'hasDarkBackground': json['hasDarkBackground'] == null ? undefined : json['hasDarkBackground'], 'headerHTML': json['headerHTML'] == null ? undefined : json['headerHTML'], 'hideAvatars': json['hideAvatars'] == null ? undefined : json['hideAvatars'], 'hideCommentsUnderCountTextFormat': json['hideCommentsUnderCountTextFormat'] == null ? undefined : json['hideCommentsUnderCountTextFormat'], 'imageContentProfanityLevel': json['imageContentProfanityLevel'] == null ? undefined : (0, ImageContentProfanityLevel_1.ImageContentProfanityLevelFromJSON)(json['imageContentProfanityLevel']), 'inputAfterComments': json['inputAfterComments'] == null ? undefined : json['inputAfterComments'], 'limitCommentsByGroups': json['limitCommentsByGroups'] == null ? undefined : json['limitCommentsByGroups'], 'locale': json['locale'] == null ? undefined : json['locale'], 'maxCommentCharacterLength': json['maxCommentCharacterLength'] == null ? undefined : json['maxCommentCharacterLength'], 'maxCommentCreatedCountPUPM': json['maxCommentCreatedCountPUPM'] == null ? undefined : json['maxCommentCreatedCountPUPM'], 'noCustomConfig': json['noCustomConfig'] == null ? undefined : json['noCustomConfig'], 'mentionAutoCompleteMode': json['mentionAutoCompleteMode'] == null ? undefined : (0, MentionAutoCompleteMode_1.MentionAutoCompleteModeFromJSON)(json['mentionAutoCompleteMode']), 'noImageUploads': json['noImageUploads'] == null ? undefined : json['noImageUploads'], 'allowEmbeds': json['allowEmbeds'] == null ? undefined : json['allowEmbeds'], 'allowedEmbedDomains': json['allowedEmbedDomains'] == null ? undefined : json['allowedEmbedDomains'], 'noStyles': json['noStyles'] == null ? undefined : json['noStyles'], 'pageSize': json['pageSize'] == null ? undefined : json['pageSize'], 'readonly': json['readonly'] == null ? undefined : json['readonly'], 'noNewRootComments': json['noNewRootComments'] == null ? undefined : json['noNewRootComments'], 'requireSSO': json['requireSSO'] == null ? undefined : json['requireSSO'], 'enableFChat': json['enableFChat'] == null ? undefined : json['enableFChat'], 'enableResizeHandle': json['enableResizeHandle'] == null ? undefined : json['enableResizeHandle'], 'restrictedLinkDomains': json['restrictedLinkDomains'] == null ? undefined : json['restrictedLinkDomains'], 'showBadgesInTopBar': json['showBadgesInTopBar'] == null ? undefined : json['showBadgesInTopBar'], 'showCommentSaveSuccess': json['showCommentSaveSuccess'] == null ? undefined : json['showCommentSaveSuccess'], 'showLiveRightAway': json['showLiveRightAway'] == null ? undefined : json['showLiveRightAway'], 'showQuestion': json['showQuestion'] == null ? undefined : json['showQuestion'], 'spamRules': json['spamRules'] == null ? undefined : (json['spamRules'].map(SpamRule_1.SpamRuleFromJSON)), 'ssoSecLvl': json['ssoSecLvl'] == null ? undefined : (0, SSOSecurityLevel_1.SSOSecurityLevelFromJSON)(json['ssoSecLvl']), 'translations': json['translations'] == null ? undefined : json['translations'], 'useShowCommentsToggle': json['useShowCommentsToggle'] == null ? undefined : json['useShowCommentsToggle'], 'useSingleLineCommentInput': json['useSingleLineCommentInput'] == null ? undefined : json['useSingleLineCommentInput'], 'voteStyle': json['voteStyle'] == null ? undefined : (0, VoteStyle_1.VoteStyleFromJSON)(json['voteStyle']), 'widgetQuestionId': json['widgetQuestionId'] == null ? undefined : json['widgetQuestionId'], 'widgetQuestionResultsStyle': json['widgetQuestionResultsStyle'] == null ? undefined : (0, CommentQuestionResultsRenderingType_1.CommentQuestionResultsRenderingTypeFromJSON)(json['widgetQuestionResultsStyle']), 'widgetQuestionShowBreakdown': json['widgetQuestionShowBreakdown'] == null ? undefined : json['widgetQuestionShowBreakdown'], 'widgetQuestionStyle': json['widgetQuestionStyle'] == null ? undefined : (0, QuestionRenderingType_1.QuestionRenderingTypeFromJSON)(json['widgetQuestionStyle']), 'widgetQuestionWhenToSave': json['widgetQuestionWhenToSave'] == null ? undefined : (0, QuestionWhenSave_1.QuestionWhenSaveFromJSON)(json['widgetQuestionWhenToSave']), 'widgetQuestionsRequired': json['widgetQuestionsRequired'] == null ? undefined : (0, CommentQuestionsRequired_1.CommentQuestionsRequiredFromJSON)(json['widgetQuestionsRequired']), 'widgetSubQuestionVisibility': json['widgetSubQuestionVisibility'] == null ? undefined : (0, QuestionSubQuestionVisibility_1.QuestionSubQuestionVisibilityFromJSON)(json['widgetSubQuestionVisibility']), 'wrap': json['wrap'] == null ? undefined : json['wrap'], 'usersListLocation': json['usersListLocation'] == null ? undefined : (0, UsersListLocation_1.UsersListLocationFromJSON)(json['usersListLocation']), 'usersListIncludeOffline': json['usersListIncludeOffline'] == null ? undefined : json['usersListIncludeOffline'], 'ticketBaseUrl': json['ticketBaseUrl'] == null ? undefined : json['ticketBaseUrl'], 'ticketKBSearchEndpoint': json['ticketKBSearchEndpoint'] == null ? undefined : json['ticketKBSearchEndpoint'], 'ticketFileUploadsEnabled': json['ticketFileUploadsEnabled'] == null ? undefined : json['ticketFileUploadsEnabled'], 'ticketMaxFileSize': json['ticketMaxFileSize'] == null ? undefined : json['ticketMaxFileSize'], 'ticketAutoAssignUserIds': json['ticketAutoAssignUserIds'] == null ? undefined : json['ticketAutoAssignUserIds'], 'tos': json['tos'] == null ? undefined : (0, TOSConfig_1.TOSConfigFromJSON)(json['tos']), }; } function CustomConfigParametersToJSON(json) { return CustomConfigParametersToJSONTyped(json, false); } function CustomConfigParametersToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'absoluteAndRelativeDates': value['absoluteAndRelativeDates'], 'absoluteDates': value['absoluteDates'], 'allowAnon': value['allowAnon'], 'allowAnonFlag': value['allowAnonFlag'], 'allowAnonVotes': value['allowAnonVotes'], 'allowedLanguages': value['allowedLanguages'], 'collapseReplies': value['collapseReplies'], 'commentCountFormat': value['commentCountFormat'], 'commentHTMLRenderingMode': (0, CommentHTMLRenderingMode_1.CommentHTMLRenderingModeToJSON)(value['commentHTMLRenderingMode']), 'commentThreadDeleteMode': (0, CommentThreadDeletionMode_1.CommentThreadDeletionModeToJSON)(value['commentThreadDeleteMode']), 'commenterNameFormat': (0, CommenterNameFormats_1.CommenterNameFormatsToJSON)(value['commenterNameFormat']), 'countAboveToggle': value['countAboveToggle'], 'customCSS': value['customCSS'], 'defaultAvatarSrc': value['defaultAvatarSrc'], 'defaultSortDirection': (0, SortDirections_1.SortDirectionsToJSON)(value['defaultSortDirection']), 'defaultUsername': value['defaultUsername'], 'disableAutoAdminMigration': value['disableAutoAdminMigration'], 'disableAutoHashTagCreation': value['disableAutoHashTagCreation'], 'disableBlocking': value['disableBlocking'], 'disableCommenterCommentDelete': value['disableCommenterCommentDelete'], 'disableCommenterCommentEdit': value['disableCommenterCommentEdit'], 'disableEmailInputs': value['disableEmailInputs'], 'disableLiveCommenting': value['disableLiveCommenting'], 'disableNotificationBell': value['disableNotificationBell'], 'disableProfileComments': value['disableProfileComments'], 'disableProfileDirectMessages': value['disableProfileDirectMessages'], 'disableProfiles': value['disableProfiles'], 'disableSuccessMessage': value['disableSuccessMessage'], 'disableToolbar': value['disableToolbar'], 'disableUnverifiedLabel': value['disableUnverifiedLabel'], 'disableVoting': value['disableVoting'], 'enableCommenterLinks': value['enableCommenterLinks'], 'enableSearch': value['enableSearch'], 'enableSpoilers': value['enableSpoilers'], 'enableThirdPartyCookieBypass': value['enableThirdPartyCookieBypass'], 'enableViewCounts': value['enableViewCounts'], 'enableVoteList': value['enableVoteList'], 'enableWYSIWYG': value['enableWYSIWYG'], 'gifRating': (0, GifRating_1.GifRatingToJSON)(value['gifRating']), 'hasDarkBackground': value['hasDarkBackground'], 'headerHTML': value['headerHTML'], 'hideAvatars': value['hideAvatars'], 'hideCommentsUnderCountTextFormat': value['hideCommentsUnderCountTextFormat'], 'imageContentProfanityLevel': (0, ImageContentProfanityLevel_1.ImageContentProfanityLevelToJSON)(value['imageContentProfanityLevel']), 'inputAfterComments': value['inputAfterComments'], 'limitCommentsByGroups': value['limitCommentsByGroups'], 'locale': value['locale'], 'maxCommentCharacterLength': value['maxCommentCharacterLength'], 'maxCommentCreatedCountPUPM': value['maxCommentCreatedCountPUPM'], 'noCustomConfig': value['noCustomConfig'], 'mentionAutoCompleteMode': (0, MentionAutoCompleteMode_1.MentionAutoCompleteModeToJSON)(value['mentionAutoCompleteMode']), 'noImageUploads': value['noImageUploads'], 'allowEmbeds': value['allowEmbeds'], 'allowedEmbedDomains': value['allowedEmbedDomains'], 'noStyles': value['noStyles'], 'pageSize': value['pageSize'], 'readonly': value['readonly'], 'noNewRootComments': value['noNewRootComments'], 'requireSSO': value['requireSSO'], 'enableFChat': value['enableFChat'], 'enableResizeHandle': value['enableResizeHandle'], 'restrictedLinkDomains': value['restrictedLinkDomains'], 'showBadgesInTopBar': value['showBadgesInTopBar'], 'showCommentSaveSuccess': value['showCommentSaveSuccess'], 'showLiveRightAway': value['showLiveRightAway'], 'showQuestion': value['showQuestion'], 'spamRules': value['spamRules'] == null ? undefined : (value['spamRules'].map(SpamRule_1.SpamRuleToJSON)), 'ssoSecLvl': (0, SSOSecurityLevel_1.SSOSecurityLevelToJSON)(value['ssoSecLvl']), 'translations': value['translations'], 'useShowCommentsToggle': value['useShowCommentsToggle'], 'useSingleLineCommentInput': value['useSingleLineCommentInput'], 'voteStyle': (0, VoteStyle_1.VoteStyleToJSON)(value['voteStyle']), 'widgetQuestionId': value['widgetQuestionId'], 'widgetQuestionResultsStyle': (0, CommentQuestionResultsRenderingType_1.CommentQuestionResultsRenderingTypeToJSON)(value['widgetQuestionResultsStyle']), 'widgetQuestionShowBreakdown': value['widgetQuestionShowBreakdown'], 'widgetQuestionStyle': (0, QuestionRenderingType_1.QuestionRenderingTypeToJSON)(value['widgetQuestionStyle']), 'widgetQuestionWhenToSave': (0, QuestionWhenSave_1.QuestionWhenSaveToJSON)(value['widgetQuestionWhenToSave']), 'widgetQuestionsRequired': (0, CommentQuestionsRequired_1.CommentQuestionsRequiredToJSON)(value['widgetQuestionsRequired']), 'widgetSubQuestionVisibility': (0, QuestionSubQuestionVisibility_1.QuestionSubQuestionVisibilityToJSON)(value['widgetSubQuestionVisibility']), 'wrap': value['wrap'], 'usersListLocation': (0, UsersListLocation_1.UsersListLocationToJSON)(value['usersListLocation']), 'usersListIncludeOffline': value['usersListIncludeOffline'], 'ticketBaseUrl': value['ticketBaseUrl'], 'ticketKBSearchEndpoint': value['ticketKBSearchEndpoint'], 'ticketFileUploadsEnabled': value['ticketFileUploadsEnabled'], 'ticketMaxFileSize': value['ticketMaxFileSize'], 'ticketAutoAssignUserIds': value['ticketAutoAssignUserIds'], 'tos': (0, TOSConfig_1.TOSConfigToJSON)(value['tos']), }; } //# sourceMappingURL=CustomConfigParameters.js.map