UNPKG

fastcomments-sdk

Version:

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

99 lines 5.09 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.instanceOfCreateTenantUserBody = instanceOfCreateTenantUserBody; exports.CreateTenantUserBodyFromJSON = CreateTenantUserBodyFromJSON; exports.CreateTenantUserBodyFromJSONTyped = CreateTenantUserBodyFromJSONTyped; exports.CreateTenantUserBodyToJSON = CreateTenantUserBodyToJSON; exports.CreateTenantUserBodyToJSONTyped = CreateTenantUserBodyToJSONTyped; /** * Check if a given object implements the CreateTenantUserBody interface. */ function instanceOfCreateTenantUserBody(value) { if (!('username' in value) || value['username'] === undefined) return false; if (!('email' in value) || value['email'] === undefined) return false; return true; } function CreateTenantUserBodyFromJSON(json) { return CreateTenantUserBodyFromJSONTyped(json, false); } function CreateTenantUserBodyFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'username': json['username'], 'email': json['email'], 'displayName': json['displayName'] == null ? undefined : json['displayName'], 'websiteUrl': json['websiteUrl'] == null ? undefined : json['websiteUrl'], 'signUpDate': json['signUpDate'] == null ? undefined : json['signUpDate'], 'locale': json['locale'] == null ? undefined : json['locale'], 'verified': json['verified'] == null ? undefined : json['verified'], 'loginCount': json['loginCount'] == null ? undefined : json['loginCount'], 'optedInNotifications': json['optedInNotifications'] == null ? undefined : json['optedInNotifications'], 'optedInTenantNotifications': json['optedInTenantNotifications'] == null ? undefined : json['optedInTenantNotifications'], 'hideAccountCode': json['hideAccountCode'] == null ? undefined : json['hideAccountCode'], 'avatarSrc': json['avatarSrc'] == null ? undefined : json['avatarSrc'], 'isHelpRequestAdmin': json['isHelpRequestAdmin'] == null ? undefined : json['isHelpRequestAdmin'], 'isAccountOwner': json['isAccountOwner'] == null ? undefined : json['isAccountOwner'], 'isAdminAdmin': json['isAdminAdmin'] == null ? undefined : json['isAdminAdmin'], 'isBillingAdmin': json['isBillingAdmin'] == null ? undefined : json['isBillingAdmin'], 'isAnalyticsAdmin': json['isAnalyticsAdmin'] == null ? undefined : json['isAnalyticsAdmin'], 'isCustomizationAdmin': json['isCustomizationAdmin'] == null ? undefined : json['isCustomizationAdmin'], 'isManageDataAdmin': json['isManageDataAdmin'] == null ? undefined : json['isManageDataAdmin'], 'isCommentModeratorAdmin': json['isCommentModeratorAdmin'] == null ? undefined : json['isCommentModeratorAdmin'], 'isAPIAdmin': json['isAPIAdmin'] == null ? undefined : json['isAPIAdmin'], 'moderatorIds': json['moderatorIds'] == null ? undefined : json['moderatorIds'], 'digestEmailFrequency': json['digestEmailFrequency'] == null ? undefined : json['digestEmailFrequency'], 'displayLabel': json['displayLabel'] == null ? undefined : json['displayLabel'], }; } function CreateTenantUserBodyToJSON(json) { return CreateTenantUserBodyToJSONTyped(json, false); } function CreateTenantUserBodyToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'username': value['username'], 'email': value['email'], 'displayName': value['displayName'], 'websiteUrl': value['websiteUrl'], 'signUpDate': value['signUpDate'], 'locale': value['locale'], 'verified': value['verified'], 'loginCount': value['loginCount'], 'optedInNotifications': value['optedInNotifications'], 'optedInTenantNotifications': value['optedInTenantNotifications'], 'hideAccountCode': value['hideAccountCode'], 'avatarSrc': value['avatarSrc'], 'isHelpRequestAdmin': value['isHelpRequestAdmin'], 'isAccountOwner': value['isAccountOwner'], 'isAdminAdmin': value['isAdminAdmin'], 'isBillingAdmin': value['isBillingAdmin'], 'isAnalyticsAdmin': value['isAnalyticsAdmin'], 'isCustomizationAdmin': value['isCustomizationAdmin'], 'isManageDataAdmin': value['isManageDataAdmin'], 'isCommentModeratorAdmin': value['isCommentModeratorAdmin'], 'isAPIAdmin': value['isAPIAdmin'], 'moderatorIds': value['moderatorIds'], 'digestEmailFrequency': value['digestEmailFrequency'], 'displayLabel': value['displayLabel'], }; } //# sourceMappingURL=CreateTenantUserBody.js.map