UNPKG

fastcomments-sdk

Version:

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

84 lines 3.94 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.instanceOfAPIDomainConfiguration = instanceOfAPIDomainConfiguration; exports.APIDomainConfigurationFromJSON = APIDomainConfigurationFromJSON; exports.APIDomainConfigurationFromJSONTyped = APIDomainConfigurationFromJSONTyped; exports.APIDomainConfigurationToJSON = APIDomainConfigurationToJSON; exports.APIDomainConfigurationToJSONTyped = APIDomainConfigurationToJSONTyped; const ImportedSiteType_1 = require("./ImportedSiteType"); /** * Check if a given object implements the APIDomainConfiguration interface. */ function instanceOfAPIDomainConfiguration(value) { if (!('id' in value) || value['id'] === undefined) return false; if (!('domain' in value) || value['domain'] === undefined) return false; if (!('createdAt' in value) || value['createdAt'] === undefined) return false; return true; } function APIDomainConfigurationFromJSON(json) { return APIDomainConfigurationFromJSONTyped(json, false); } function APIDomainConfigurationFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'id': json['id'], 'domain': json['domain'], 'emailFromName': json['emailFromName'] == null ? undefined : json['emailFromName'], 'emailFromEmail': json['emailFromEmail'] == null ? undefined : json['emailFromEmail'], 'emailHeaders': json['emailHeaders'] == null ? undefined : json['emailHeaders'], 'wpSyncToken': json['wpSyncToken'] == null ? undefined : json['wpSyncToken'], 'wpSynced': json['wpSynced'] == null ? undefined : json['wpSynced'], 'wpURL': json['wpURL'] == null ? undefined : json['wpURL'], 'createdAt': (new Date(json['createdAt'])), 'autoAddedDate': json['autoAddedDate'] == null ? undefined : (new Date(json['autoAddedDate'])), 'siteType': json['siteType'] == null ? undefined : (0, ImportedSiteType_1.ImportedSiteTypeFromJSON)(json['siteType']), 'logoSrc': json['logoSrc'] == null ? undefined : json['logoSrc'], 'logoSrc100px': json['logoSrc100px'] == null ? undefined : json['logoSrc100px'], 'footerUnsubscribeURL': json['footerUnsubscribeURL'] == null ? undefined : json['footerUnsubscribeURL'], 'disableUnsubscribeLinks': json['disableUnsubscribeLinks'] == null ? undefined : json['disableUnsubscribeLinks'], }; } function APIDomainConfigurationToJSON(json) { return APIDomainConfigurationToJSONTyped(json, false); } function APIDomainConfigurationToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'id': value['id'], 'domain': value['domain'], 'emailFromName': value['emailFromName'], 'emailFromEmail': value['emailFromEmail'], 'emailHeaders': value['emailHeaders'], 'wpSyncToken': value['wpSyncToken'], 'wpSynced': value['wpSynced'], 'wpURL': value['wpURL'], 'createdAt': ((value['createdAt']).toISOString()), 'autoAddedDate': value['autoAddedDate'] == null ? undefined : ((value['autoAddedDate']).toISOString()), 'siteType': (0, ImportedSiteType_1.ImportedSiteTypeToJSON)(value['siteType']), 'logoSrc': value['logoSrc'], 'logoSrc100px': value['logoSrc100px'], 'footerUnsubscribeURL': value['footerUnsubscribeURL'], 'disableUnsubscribeLinks': value['disableUnsubscribeLinks'], }; } //# sourceMappingURL=APIDomainConfiguration.js.map