umbraco-management-api-client
Version:
TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)
64 lines (63 loc) • 2.99 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.instanceOfCurrentUserConfigurationResponseModel = instanceOfCurrentUserConfigurationResponseModel;
exports.CurrentUserConfigurationResponseModelFromJSON = CurrentUserConfigurationResponseModelFromJSON;
exports.CurrentUserConfigurationResponseModelFromJSONTyped = CurrentUserConfigurationResponseModelFromJSONTyped;
exports.CurrentUserConfigurationResponseModelToJSON = CurrentUserConfigurationResponseModelToJSON;
exports.CurrentUserConfigurationResponseModelToJSONTyped = CurrentUserConfigurationResponseModelToJSONTyped;
const PasswordConfigurationResponseModel_1 = require("./PasswordConfigurationResponseModel");
/**
* Check if a given object implements the CurrentUserConfigurationResponseModel interface.
*/
function instanceOfCurrentUserConfigurationResponseModel(value) {
if (!('keepUserLoggedIn' in value) || value['keepUserLoggedIn'] === 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 CurrentUserConfigurationResponseModelFromJSON(json) {
return CurrentUserConfigurationResponseModelFromJSONTyped(json, false);
}
function CurrentUserConfigurationResponseModelFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'keepUserLoggedIn': json['keepUserLoggedIn'],
'passwordConfiguration': (0, PasswordConfigurationResponseModel_1.PasswordConfigurationResponseModelFromJSON)(json['passwordConfiguration']),
'allowChangePassword': json['allowChangePassword'],
'allowTwoFactor': json['allowTwoFactor'],
};
}
function CurrentUserConfigurationResponseModelToJSON(json) {
return CurrentUserConfigurationResponseModelToJSONTyped(json, false);
}
function CurrentUserConfigurationResponseModelToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'keepUserLoggedIn': value['keepUserLoggedIn'],
'passwordConfiguration': (0, PasswordConfigurationResponseModel_1.PasswordConfigurationResponseModelToJSON)(value['passwordConfiguration']),
'allowChangePassword': value['allowChangePassword'],
'allowTwoFactor': value['allowTwoFactor'],
};
}