umbraco-management-api-client
Version:
TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)
68 lines (67 loc) • 3.06 kB
JavaScript
;
/* tslint:disable */
/* eslint-disable */
/**
* Umbraco Management API
* This shows all APIs available in this version of Umbraco - including all the legacy apis that are available for backward compatibility
*
* The version of the OpenAPI document: Latest
*
*
* 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.instanceOfUserConfigurationResponseModel = instanceOfUserConfigurationResponseModel;
exports.UserConfigurationResponseModelFromJSON = UserConfigurationResponseModelFromJSON;
exports.UserConfigurationResponseModelFromJSONTyped = UserConfigurationResponseModelFromJSONTyped;
exports.UserConfigurationResponseModelToJSON = UserConfigurationResponseModelToJSON;
exports.UserConfigurationResponseModelToJSONTyped = UserConfigurationResponseModelToJSONTyped;
const PasswordConfigurationResponseModel_1 = require("./PasswordConfigurationResponseModel");
/**
* Check if a given object implements the UserConfigurationResponseModel interface.
*/
function instanceOfUserConfigurationResponseModel(value) {
if (!('canInviteUsers' in value) || value['canInviteUsers'] === undefined)
return false;
if (!('usernameIsEmail' in value) || value['usernameIsEmail'] === undefined)
return false;
if (!('passwordConfiguration' in value) || value['passwordConfiguration'] === undefined)
return false;
if (!('allowChangePassword' in value) || value['allowChangePassword'] === undefined)
return false;
if (!('allowTwoFactor' in value) || value['allowTwoFactor'] === undefined)
return false;
return true;
}
function UserConfigurationResponseModelFromJSON(json) {
return UserConfigurationResponseModelFromJSONTyped(json, false);
}
function UserConfigurationResponseModelFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'canInviteUsers': json['canInviteUsers'],
'usernameIsEmail': json['usernameIsEmail'],
'passwordConfiguration': (0, PasswordConfigurationResponseModel_1.PasswordConfigurationResponseModelFromJSON)(json['passwordConfiguration']),
'allowChangePassword': json['allowChangePassword'],
'allowTwoFactor': json['allowTwoFactor'],
};
}
function UserConfigurationResponseModelToJSON(json) {
return UserConfigurationResponseModelToJSONTyped(json, false);
}
function UserConfigurationResponseModelToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'canInviteUsers': value['canInviteUsers'],
'usernameIsEmail': value['usernameIsEmail'],
'passwordConfiguration': (0, PasswordConfigurationResponseModel_1.PasswordConfigurationResponseModelToJSON)(value['passwordConfiguration']),
'allowChangePassword': value['allowChangePassword'],
'allowTwoFactor': value['allowTwoFactor'],
};
}