UNPKG

@nevis-security/nevis-mobile-authentication-sdk-react

Version:

React Native plugin for Nevis Mobile Authentication SDK. Supports only mobile.

46 lines (43 loc) 1.58 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DeviceInformationSyncResultImpl = exports.DeviceInformationSyncResult = void 0; var _DeviceInformationSyncErrorConverter = require("../../error/deviceInformation/sync/DeviceInformationSyncErrorConverter"); /** * Copyright © 2024 Nevis Security AG. All rights reserved. */ /** * This is the result of the {@link DeviceInformationSync} operation. * * @see {@link DeviceInformationSync} */ class DeviceInformationSyncResult { /** * Returns the errors that occurred retrieving the configuration mismatches. * * @return the errors that occurred retrieving the configuration mismatches. */ /** * Alternate constructor that creates a {@link DeviceInformationSyncResult} from a json. * * @returns the created {@link DeviceInformationSyncResult} instance. */ static fromJson(json) { return DeviceInformationSyncResultImpl.fromJson(json); } } exports.DeviceInformationSyncResult = DeviceInformationSyncResult; class DeviceInformationSyncResultImpl extends DeviceInformationSyncResult { constructor(errors) { super(); this.errors = errors; } static fromJson(json) { const errorsData = json.errors; const errors = errorsData?.map(error => new _DeviceInformationSyncErrorConverter.DeviceInformationSyncErrorConverter(error).convert()); return new DeviceInformationSyncResultImpl(errors || []); } } exports.DeviceInformationSyncResultImpl = DeviceInformationSyncResultImpl; //# sourceMappingURL=DeviceInformationSyncResult.js.map