From 7f95d439f645538a0f61b81eaeb8edc82b90ccb7 Mon Sep 17 00:00:00 2001 From: Sebastian Haesselbarth Date: Wed, 20 Dec 2023 20:31:07 +0100 Subject: [PATCH] Add getting data --- build/authRepository.js | 368 ++++----- build/authRepository.js.map | 8 +- build/lib/tools.js | 159 ++-- build/lib/tools.js.map | 8 +- build/main.js | 352 +++++++++ build/main.js.map | 7 + build/models/Address.js | 145 ++-- build/models/Address.js.map | 8 +- build/models/AddressResponseModel.js | 106 +-- build/models/AddressResponseModel.js.map | 8 +- build/models/AggregationMethod.js | 61 +- build/models/AggregationMethod.js.map | 8 +- build/models/AggregationUnit.js | 61 +- build/models/AggregationUnit.js.map | 8 +- build/models/AidMode.js | 51 +- build/models/AidMode.js.map | 8 +- build/models/AidModeResponseModel.js | 70 +- build/models/AidModeResponseModel.js.map | 8 +- build/models/Alarm.js | 181 +++-- build/models/Alarm.js.map | 8 +- build/models/AlarmSeverity.js | 62 +- build/models/AlarmSeverity.js.map | 8 +- build/models/AlarmStatus.js | 82 +- build/models/AlarmStatus.js.map | 8 +- build/models/AlarmsPaged.js | 109 +-- build/models/AlarmsPaged.js.map | 8 +- build/models/AvailableMethods.js | 370 ++++----- build/models/AvailableMethods.js.map | 8 +- build/models/CloudToDeviceMethodResult.js | 85 +- build/models/CloudToDeviceMethodResult.js.map | 8 +- build/models/Country.js | 73 +- build/models/Country.js.map | 8 +- build/models/Curve.js | 85 +- build/models/Curve.js.map | 8 +- build/models/DataPoint.js | 97 ++- build/models/DataPoint.js.map | 8 +- build/models/DeviceCategoriesModel.js | 85 +- build/models/DeviceCategoriesModel.js.map | 8 +- build/models/DeviceCategory.js | 85 +- build/models/DeviceCategory.js.map | 8 +- build/models/DeviceCategoryModel.js | 85 +- build/models/DeviceCategoryModel.js.map | 8 +- build/models/DeviceConnectionState.js | 54 +- build/models/DeviceConnectionState.js.map | 8 +- build/models/DeviceFirmwareInfoResponse.js | 118 +-- .../models/DeviceFirmwareInfoResponse.js.map | 8 +- build/models/DeviceInfoResponseModel.js | 94 ++- build/models/DeviceInfoResponseModel.js.map | 8 +- .../DeviceInfoResponseModelPagedResult.js | 106 +-- .../DeviceInfoResponseModelPagedResult.js.map | 8 +- build/models/DeviceInfoSyncResponseModel.js | 82 +- .../models/DeviceInfoSyncResponseModel.js.map | 8 +- build/models/DeviceParameterData.js | 145 ++-- build/models/DeviceParameterData.js.map | 8 +- build/models/DevicePremiumResponse.js | 70 +- build/models/DevicePremiumResponse.js.map | 8 +- build/models/DeviceResponseModel.js | 121 +-- build/models/DeviceResponseModel.js.map | 8 +- build/models/EnumValues.js | 94 ++- build/models/EnumValues.js.map | 8 +- build/models/FirmwareResponseModel.js | 85 +- build/models/FirmwareResponseModel.js.map | 8 +- build/models/GroupedDeviceParameterData.js | 85 +- .../models/GroupedDeviceParameterData.js.map | 8 +- build/models/LimitedUserProfile.js | 73 +- build/models/LimitedUserProfile.js.map | 8 +- build/models/ObjectSerializer.js | 746 +++++++++--------- build/models/ObjectSerializer.js.map | 8 +- build/models/PagedSystemResult.js | 109 +-- build/models/PagedSystemResult.js.map | 8 +- build/models/ParameterData.js | 241 +++--- build/models/ParameterData.js.map | 8 +- build/models/ParameterDetail.js | 181 +++-- build/models/ParameterDetail.js.map | 8 +- build/models/PatchSystemModel.js | 97 ++- build/models/PatchSystemModel.js.map | 8 +- build/models/PremiumFeatureResponseModel.js | 82 +- .../models/PremiumFeatureResponseModel.js.map | 8 +- build/models/PremiumFeatures.js | 56 +- build/models/PremiumFeatures.js.map | 8 +- build/models/Product.js | 85 +- build/models/Product.js.map | 8 +- build/models/ProductRegistrationAddress.js | 106 +-- .../models/ProductRegistrationAddress.js.map | 8 +- build/models/ProductRegistrationResponse.js | 253 +++--- .../models/ProductRegistrationResponse.js.map | 8 +- .../ProductRegistrationResponseWithAddress.js | 262 +++--- ...ductRegistrationResponseWithAddress.js.map | 8 +- build/models/ProductResponseModel.js | 85 +- build/models/ProductResponseModel.js.map | 8 +- build/models/Properties.js | 70 +- build/models/Properties.js.map | 8 +- build/models/Reported.js | 178 +++-- build/models/Reported.js.map | 8 +- build/models/ReportedFirmware.js | 118 +-- build/models/ReportedFirmware.js.map | 8 +- build/models/SearchGroupSSG.js | 154 ++-- build/models/SearchGroupSSG.js.map | 8 +- build/models/SecurityLevel.js | 53 +- build/models/SecurityLevel.js.map | 8 +- build/models/Session.js | 18 +- build/models/Session.js.map | 8 +- build/models/SmartHomeModeModel.js | 70 +- build/models/SmartHomeModeModel.js.map | 8 +- build/models/SmartMode.js | 60 +- build/models/SmartMode.js.map | 8 +- build/models/SpotPriceDeliveryModel.js | 70 +- build/models/SpotPriceDeliveryModel.js.map | 8 +- build/models/SsqGroupDevice.js | 109 +-- build/models/SsqGroupDevice.js.map | 8 +- build/models/Status.js | 59 +- build/models/Status.js.map | 8 +- build/models/StoreSet.js | 82 +- build/models/StoreSet.js.map | 8 +- build/models/StoreSetEntry.js | 106 +-- build/models/StoreSetEntry.js.map | 8 +- build/models/SystemDevice.js | 109 +-- build/models/SystemDevice.js.map | 8 +- build/models/SystemWithDevices.js | 133 ++-- build/models/SystemWithDevices.js.map | 8 +- build/models/UpdateGroupRequest.js | 73 +- build/models/UpdateGroupRequest.js.map | 8 +- build/models/UserWithAddress.js | 106 +-- build/models/UserWithAddress.js.map | 8 +- ...viceIdSmartHomeCategoriesGet200Response.js | 586 +++++++------- ...IdSmartHomeCategoriesGet200Response.js.map | 8 +- build/models/VoucherManyRequest.js | 97 ++- build/models/VoucherManyRequest.js.map | 8 +- build/models/VoucherSingleRequest.js | 97 ++- build/models/VoucherSingleRequest.js.map | 8 +- build/models/VoucherType.js | 56 +- build/models/VoucherType.js.map | 8 +- build/models/ZonePatchRequest.js | 94 ++- build/models/ZonePatchRequest.js.map | 8 +- build/models/ZoneResponse.js | 226 +++--- build/models/ZoneResponse.js.map | 8 +- build/models/all.js | 157 ++-- build/models/all.js.map | 8 +- build/myuplinkRepository.js | 81 ++ build/myuplinkRepository.js.map | 7 + src/main.ts | 54 +- src/myuplinkRepository.ts | 7 +- 142 files changed, 5707 insertions(+), 4076 deletions(-) create mode 100644 build/main.js create mode 100644 build/main.js.map create mode 100644 build/myuplinkRepository.js create mode 100644 build/myuplinkRepository.js.map diff --git a/build/authRepository.js b/build/authRepository.js index 4031ef8..dca40ab 100644 --- a/build/authRepository.js +++ b/build/authRepository.js @@ -1,190 +1,194 @@ "use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; +var __create = Object.create; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __getProtoOf = Object.getPrototypeOf; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); }; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; }; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AuthRepository = void 0; -const axios_1 = __importDefault(require("axios")); -const fs = __importStar(require("fs")); -const jsonfile_1 = __importDefault(require("jsonfile")); +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, + mod +)); +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var authRepository_exports = {}; +__export(authRepository_exports, { + AuthRepository: () => AuthRepository +}); +module.exports = __toCommonJS(authRepository_exports); +var import_axios = __toESM(require("axios")); +var fs = __toESM(require("fs")); +var import_jsonfile = __toESM(require("jsonfile")); class AuthRepository { - constructor(options, adapter) { - this.adapter = adapter; - this.options = options; - axios_1.default.defaults.baseURL = options.baseUrl; - axios_1.default.defaults.headers.common['user-agent'] = options.userAgent; - axios_1.default.defaults.timeout = options.timeout; - } - async getAccessToken() { - this.adapter.log.debug('getAccessToken() called'); - if (await this.hasNewAuthCode()) { - await this.clearSesssion(); - } - if (!(await this.hasRefreshToken())) { - if (this.options.authCode) { - const token = await this.getToken(this.options.authCode); - await this.setSesssion(token); - } - else { - this.adapter.log.error('You need to get and set a new Auth-Code. You can do this in the adapter setting.'); - return null; - } - } - if (await this.isTokenExpired()) { - this.adapter.log.debug('Token is expired / expires soon - refreshing'); - const token = await this.getRefreshToken(); - await this.setSesssion(token); - } - return await this.getSessionAccessToken(); - } - async getToken(authCode) { - this.adapter.log.debug('token()'); - const data = { - grant_type: 'authorization_code', - client_id: this.options.clientId, - client_secret: this.options.clientSecret, - code: authCode, - redirect_uri: this.options.redirectUri, - scope: this.options.scope, - }; - return await this.postTokenRequest(data); - } - async getRefreshToken() { - this.adapter.log.debug('Refresh token.'); - const data = { - grant_type: 'refresh_token', - refresh_token: await this.getSessionRefreshToken(), - client_id: this.options.clientId, - client_secret: this.options.clientSecret, - }; - return await this.postTokenRequest(data); - } - async postTokenRequest(body) { - const stringBody = new URLSearchParams(body).toString(); - const url = '/oauth/token'; - try { - const { data } = await axios_1.default.post(url, stringBody, { - headers: { - 'Content-Type': 'application/x-www-form-urlencoded', - }, - }); - const expiresIn = data.expires_in ?? 1800; - data.expires_at = Date.now() + expiresIn * 1000; - return data; - } - catch (error) { - throw await this.checkError(url, error); - } - } - async checkError(suburl, error) { - this.adapter.log.error(`error from ${suburl}`); - if (axios_1.default.isAxiosError(error)) { - const axiosError = error; - if (axiosError.response != null) { - if (axiosError.response.status == 401) { - await this.clearSesssion(); - } - if (axiosError.response.data != null) { - const responseText = JSON.stringify(axiosError.response.data, null, ' '); - const errorMessage = `${axiosError.response.statusText}: ${responseText}`; - return new Error(errorMessage); - } - else { - return new Error(axiosError.response.statusText); - } - } - } - return error; - } - async readSession() { - this.adapter.log.debug('Read session.'); - if (!this.options.sessionStore || !fs.existsSync(this.options.sessionStore)) { - return; + constructor(options, log) { + this.log = log; + this.options = options; + import_axios.default.defaults.baseURL = options.baseUrl; + import_axios.default.defaults.headers.common["user-agent"] = options.userAgent; + import_axios.default.defaults.timeout = options.timeout; + } + async getAccessToken() { + this.log.debug("getAccessToken()"); + if (await this.hasNewAuthCode()) { + await this.clearSesssion(); + } + if (!await this.hasAccessToken()) { + if (this.options.authCode) { + const token = await this.getToken(this.options.authCode); + await this.setSesssion(token); + } else { + this.log.error("You need to get and set a new Auth-Code. You can do this in the adapter setting."); + return null; + } + } + if (await this.isTokenExpired()) { + this.log.debug("Token is expired / expires soon - refreshing"); + const token = await this.getRefreshToken(); + await this.setSesssion(token); + } + return await this.getSessionAccessToken(); + } + async getToken(authCode) { + this.log.debug("getToken()"); + const data = { + grant_type: "authorization_code", + client_id: this.options.clientId, + client_secret: this.options.clientSecret, + code: authCode, + redirect_uri: this.options.redirectUri, + scope: this.options.scope + }; + return await this.postTokenRequest(data); + } + async getRefreshToken() { + this.log.debug("getRefreshToken()"); + const data = { + grant_type: "refresh_token", + refresh_token: await this.getSessionRefreshToken(), + client_id: this.options.clientId, + client_secret: this.options.clientSecret + }; + return await this.postTokenRequest(data); + } + async postTokenRequest(body) { + var _a; + const stringBody = new URLSearchParams(body).toString(); + const url = "/oauth/token"; + this.log.debug(`send to ${url}: ${stringBody}`); + try { + const { data } = await import_axios.default.post(url, stringBody, { + headers: { + "Content-Type": "application/x-www-form-urlencoded" } - this.auth = await jsonfile_1.default.readFile(this.options.sessionStore, { throws: false }); - } - async getSessionAuthCode() { - this.adapter.log.silly('Get session authCode.'); - if (this.auth == null) { - await this.readSession(); - } - return this.auth ? this.auth.authCode : null; - } - async getSessionAccessToken() { - this.adapter.log.silly('Get session access_token.'); - if (this.auth == null) { - await this.readSession(); - } - return this.auth ? this.auth.access_token : null; - } - async getSessionRefreshToken() { - this.adapter.log.silly('Get session refresh_token.'); - if (this.auth == null) { - await this.readSession(); - } - return this.auth ? this.auth.refresh_token : null; - } - async getSessionExpires() { - this.adapter.log.silly('Get session expires.'); - if (this.auth == null) { - await this.readSession(); + }); + const expiresIn = (_a = data.expires_in) != null ? _a : 1800; + data.expires_at = Date.now() + expiresIn * 1e3; + this.log.debug(`TokenData: ${JSON.stringify(data, null, " ")}`); + return data; + } catch (error) { + throw await this.checkError(url, error); + } + } + async checkError(suburl, error) { + this.log.error(`error from ${suburl}`); + if (import_axios.default.isAxiosError(error)) { + const axiosError = error; + if (axiosError.response != null) { + if (axiosError.response.status == 401) { + await this.clearSesssion(); } - return this.auth ? this.auth.expires_at : null; - } - async setSesssion(auth) { - this.adapter.log.debug('Set session.'); - if (auth.authCode == null) { - auth.authCode = this.options.authCode; + if (axiosError.response.data != null) { + const responseText = JSON.stringify(axiosError.response.data, null, " "); + const errorMessage = `${axiosError.response.statusText}: ${responseText}`; + return new Error(errorMessage); + } else { + return new Error(axiosError.response.statusText); } - this.auth = auth; - if (!this.options.sessionStore) { - return; - } - await jsonfile_1.default.writeFile(this.options.sessionStore, this.auth, { spaces: 2 }); - } - async clearSesssion() { - this.adapter.log.debug('Clear session.'); - await this.setSesssion({}); - } - async hasNewAuthCode() { - const authCode = await this.getSessionAuthCode(); - const hasNewAuthCode = authCode != null && authCode != this.options.authCode; - this.adapter.log.debug('Has new auth code: ' + hasNewAuthCode); - return hasNewAuthCode; - } - async isTokenExpired() { - const expired = ((await this.getSessionExpires()) || 0) < Date.now() + this.options.renewBeforeExpiry; - this.adapter.log.debug('Is token expired: ' + expired); - return expired; - } - async hasRefreshToken() { - const hasToken = !!(await this.getSessionRefreshToken()); - this.adapter.log.debug('Has refresh token: ' + hasToken); - return hasToken; - } + } + } + return error; + } + async readSession() { + this.log.debug("Read session."); + if (!this.options.sessionStoreFilePath || !fs.existsSync(this.options.sessionStoreFilePath)) { + return; + } + this.auth = await import_jsonfile.default.readFile(this.options.sessionStoreFilePath, { throws: false }); + } + async getSessionAuthCode() { + this.log.silly("Get session authCode."); + if (this.auth == null) { + await this.readSession(); + } + return this.auth ? this.auth.authCode : null; + } + async getSessionAccessToken() { + this.log.silly("Get session access_token."); + if (this.auth == null) { + await this.readSession(); + } + return this.auth ? this.auth.access_token : null; + } + async getSessionRefreshToken() { + this.log.silly("Get session refresh_token."); + if (this.auth == null) { + await this.readSession(); + } + return this.auth ? this.auth.refresh_token : null; + } + async getSessionExpires() { + this.log.silly("Get session expires."); + if (this.auth == null) { + await this.readSession(); + } + return this.auth ? this.auth.expires_at : null; + } + async setSesssion(auth) { + this.log.debug("Set session."); + if (auth.authCode == null) { + auth.authCode = this.options.authCode; + } + this.auth = auth; + this.log.debug(`sessionStoreFilePath: ${this.options.sessionStoreFilePath}`); + if (!this.options.sessionStoreFilePath) { + return; + } + await import_jsonfile.default.writeFile(this.options.sessionStoreFilePath, this.auth, { spaces: 2 }); + } + async clearSesssion() { + this.log.debug("Clear session."); + await this.setSesssion({}); + } + async hasNewAuthCode() { + const authCode = await this.getSessionAuthCode(); + const hasNewAuthCode = authCode != null && authCode != this.options.authCode; + this.log.debug("Has new auth code: " + hasNewAuthCode); + return hasNewAuthCode; + } + async isTokenExpired() { + const expired = (await this.getSessionExpires() || 0) < Date.now() + this.options.renewBeforeExpiry; + this.log.debug("Is token expired: " + expired); + return expired; + } + async hasAccessToken() { + const hasToken = !!await this.getSessionAccessToken(); + this.log.debug("Has access token: " + hasToken); + return hasToken; + } } -exports.AuthRepository = AuthRepository; -//# sourceMappingURL=authRepository.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + AuthRepository +}); +//# sourceMappingURL=authRepository.js.map diff --git a/build/authRepository.js.map b/build/authRepository.js.map index baf3b63..0f97181 100644 --- a/build/authRepository.js.map +++ b/build/authRepository.js.map @@ -1 +1,7 @@ -{"version":3,"file":"authRepository.js","sourceRoot":"","sources":["../src/authRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kDAA0C;AAC1C,uCAAyB;AACzB,wDAAgC;AA0BhC,MAAa,cAAc;IACvB,YAAY,OAAgB,EAAE,OAA8B;QACxD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QAEvB,eAAK,CAAC,QAAQ,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;QACzC,eAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC;QAChE,eAAK,CAAC,QAAQ,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAC7C,CAAC;IAMD,KAAK,CAAC,cAAc;QAChB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAElD,IAAI,MAAM,IAAI,CAAC,cAAc,EAAE,EAAE;YAC7B,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC;SAC9B;QACD,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC,EAAE;YACjC,IAAI,IAAI,CAAC,OAAO,CA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sources": ["../src/authRepository.ts"], + "sourcesContent": ["import axios, { AxiosError } from 'axios';\nimport * as fs from 'fs';\nimport jsonfile from 'jsonfile';\nimport * as session from './models/Session';\n\nexport default interface AuthOptions {\n clientId: string;\n clientSecret: string;\n redirectUri: string;\n authCode: string;\n sessionStoreFilePath: string;\n baseUrl: string;\n scope: string;\n timeout: number;\n userAgent: string;\n renewBeforeExpiry: number;\n}\n\ninterface Session extends session.Session {\n expires_at?: number;\n authCode?: string;\n}\n\nexport class AuthRepository {\n constructor(options: AuthOptions, log: ioBroker.Log) {\n this.log = log;\n this.options = options;\n\n axios.defaults.baseURL = options.baseUrl;\n axios.defaults.headers.common['user-agent'] = options.userAgent;\n axios.defaults.timeout = options.timeout;\n }\n\n private log: ioBroker.Log;\n private options: AuthOptions;\n private auth: Session | null | undefined;\n\n async getAccessToken(): Promise {\n this.log.debug('getAccessToken()');\n\n if (await this.hasNewAuthCode()) {\n await this.clearSesssion();\n }\n if (!(await this.hasAccessToken())) {\n if (this.options.authCode) {\n const token = await this.getToken(this.options.authCode);\n await this.setSesssion(token);\n } else {\n this.log.error('You need to get and set a new Auth-Code. You can do this in the adapter setting.');\n return null;\n }\n }\n if (await this.isTokenExpired()) {\n this.log.debug('Token is expired / expires soon - refreshing');\n const token = await this.getRefreshToken();\n await this.setSesssion(token);\n }\n\n return await this.getSessionAccessToken();\n }\n\n private async getToken(authCode: string): Promise {\n this.log.debug('getToken()');\n const data = {\n grant_type: 'authorization_code',\n client_id: this.options.clientId,\n client_secret: this.options.clientSecret,\n code: authCode,\n redirect_uri: this.options.redirectUri,\n scope: this.options.scope,\n };\n return await this.postTokenRequest(data);\n }\n\n private async getRefreshToken(): Promise {\n this.log.debug('getRefreshToken()');\n const data = {\n grant_type: 'refresh_token',\n refresh_token: await this.getSessionRefreshToken(),\n client_id: this.options.clientId,\n client_secret: this.options.clientSecret,\n };\n return await this.postTokenRequest(data);\n }\n\n private async postTokenRequest(body: any): Promise {\n const stringBody = new URLSearchParams(body).toString();\n const url = '/oauth/token';\n this.log.debug(`send to ${url}: ${stringBody}`);\n try {\n const { data } = await axios.post(url, stringBody, {\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n },\n });\n const expiresIn = data.expires_in ?? 1800;\n data.expires_at = Date.now() + expiresIn * 1000;\n this.log.debug(`TokenData: ${JSON.stringify(data, null, ' ')}`);\n return data;\n } catch (error) {\n throw await this.checkError(url, error);\n }\n }\n\n private async checkError(suburl: string, error: unknown): Promise {\n this.log.error(`error from ${suburl}`);\n if (axios.isAxiosError(error)) {\n const axiosError = error as AxiosError;\n if (axiosError.response != null) {\n if (axiosError.response.status == 401) {\n await this.clearSesssion();\n }\n if (axiosError.response.data != null) {\n const responseText = JSON.stringify(axiosError.response.data, null, ' ');\n const errorMessage = `${axiosError.response.statusText}: ${responseText}`;\n return new Error(errorMessage);\n } else {\n return new Error(axiosError.response.statusText);\n }\n }\n }\n return error;\n }\n\n private async readSession(): Promise {\n this.log.debug('Read session.');\n if (!this.options.sessionStoreFilePath || !fs.existsSync(this.options.sessionStoreFilePath)) {\n return;\n }\n this.auth = await jsonfile.readFile(this.options.sessionStoreFilePath, { throws: false });\n }\n\n private async getSessionAuthCode(): Promise {\n this.log.silly('Get session authCode.');\n if (this.auth == null) {\n await this.readSession();\n }\n return this.auth ? this.auth.authCode : null;\n }\n\n private async getSessionAccessToken(): Promise {\n this.log.silly('Get session access_token.');\n if (this.auth == null) {\n await this.readSession();\n }\n return this.auth ? this.auth.access_token : null;\n }\n\n private async getSessionRefreshToken(): Promise {\n this.log.silly('Get session refresh_token.');\n if (this.auth == null) {\n await this.readSession();\n }\n return this.auth ? this.auth.refresh_token : null;\n }\n\n private async getSessionExpires(): Promise {\n this.log.silly('Get session expires.');\n if (this.auth == null) {\n await this.readSession();\n }\n return this.auth ? this.auth.expires_at : null;\n }\n\n private async setSesssion(auth: Session): Promise {\n this.log.debug('Set session.');\n if (auth.authCode == null) {\n auth.authCode = this.options.authCode;\n }\n this.auth = auth;\n this.log.debug(`sessionStoreFilePath: ${this.options.sessionStoreFilePath}`);\n if (!this.options.sessionStoreFilePath) {\n return;\n }\n await jsonfile.writeFile(this.options.sessionStoreFilePath, this.auth, { spaces: 2 });\n }\n\n private async clearSesssion(): Promise {\n this.log.debug('Clear session.');\n await this.setSesssion({});\n }\n\n private async hasNewAuthCode(): Promise {\n const authCode = await this.getSessionAuthCode();\n const hasNewAuthCode = authCode != null && authCode != this.options.authCode;\n this.log.debug('Has new auth code: ' + hasNewAuthCode);\n return hasNewAuthCode;\n }\n\n private async isTokenExpired(): Promise {\n const expired = ((await this.getSessionExpires()) || 0) < Date.now() + this.options.renewBeforeExpiry;\n this.log.debug('Is token expired: ' + expired);\n return expired;\n }\n\n private async hasAccessToken(): Promise {\n const hasToken = !!(await this.getSessionAccessToken());\n this.log.debug('Has access token: ' + hasToken);\n return hasToken;\n }\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkC;AAClC,SAAoB;AACpB,sBAAqB;AAqBd,MAAM,eAAe;AAAA,EACxB,YAAY,SAAsB,KAAmB;AACjD,SAAK,MAAM;AACX,SAAK,UAAU;AAEf,iBAAAA,QAAM,SAAS,UAAU,QAAQ;AACjC,iBAAAA,QAAM,SAAS,QAAQ,OAAO,gBAAgB,QAAQ;AACtD,iBAAAA,QAAM,SAAS,UAAU,QAAQ;AAAA,EACrC;AAAA,EAMA,MAAM,iBAAqD;AACvD,SAAK,IAAI,MAAM,kBAAkB;AAEjC,QAAI,MAAM,KAAK,eAAe,GAAG;AAC7B,YAAM,KAAK,cAAc;AAAA,IAC7B;AACA,QAAI,CAAE,MAAM,KAAK,eAAe,GAAI;AAChC,UAAI,KAAK,QAAQ,UAAU;AACvB,cAAM,QAAQ,MAAM,KAAK,SAAS,KAAK,QAAQ,QAAQ;AACvD,cAAM,KAAK,YAAY,KAAK;AAAA,MAChC,OAAO;AACH,aAAK,IAAI,MAAM,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WAAO;AAAA,EACX;AAAA,EAEA,MAAc,iBAAmC;AAC7C,UAAM,WAAW,CAAC,CAAE,MAAM,KAAK,sBAAsB;AACrD,SAAK,IAAI,MAAM,uBAAuB,QAAQ;AAC9C,WAAO;AAAA,EACX;AACJ;", + "names": ["axios", "jsonfile"] +} diff --git a/build/lib/tools.js b/build/lib/tools.js index 2ecea6c..b531300 100644 --- a/build/lib/tools.js +++ b/build/lib/tools.js @@ -1,97 +1,92 @@ "use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; +var __create = Object.create; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __getProtoOf = Object.getPrototypeOf; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); }; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.translateText = exports.isArray = exports.isObject = void 0; -const axios_1 = __importDefault(require("axios")); -/** - * Tests whether the given variable is a real object and not an Array - * @param it The variable to test - */ +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, + mod +)); +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var tools_exports = {}; +__export(tools_exports, { + isArray: () => isArray, + isObject: () => isObject, + translateText: () => translateText +}); +module.exports = __toCommonJS(tools_exports); +var import_axios = __toESM(require("axios")); function isObject(it) { - // This is necessary because: - // typeof null === 'object' - // typeof [] === 'object' - // [] instanceof Object === true - return Object.prototype.toString.call(it) === '[object Object]'; + return Object.prototype.toString.call(it) === "[object Object]"; } -exports.isObject = isObject; -/** - * Tests whether the given variable is really an Array - * @param it The variable to test - */ function isArray(it) { - if (Array.isArray != null) - return Array.isArray(it); - return Object.prototype.toString.call(it) === '[object Array]'; + if (Array.isArray != null) + return Array.isArray(it); + return Object.prototype.toString.call(it) === "[object Array]"; } -exports.isArray = isArray; -/** - * Translates text using the Google Translate API - * @param text The text to translate - * @param targetLang The target languate - * @param yandexApiKey The yandex API key. You can create one for free at https://translate.yandex.com/developers - */ async function translateText(text, targetLang, yandexApiKey) { - if (targetLang === 'en') { - return text; - } - else if (!text) { - return ''; - } - if (yandexApiKey) { - return translateYandex(text, targetLang, yandexApiKey); - } - else { - return translateGoogle(text, targetLang); - } + if (targetLang === "en") { + return text; + } else if (!text) { + return ""; + } + if (yandexApiKey) { + return translateYandex(text, targetLang, yandexApiKey); + } else { + return translateGoogle(text, targetLang); + } } -exports.translateText = translateText; -/** - * Translates text with Yandex API - * @param text The text to translate - * @param targetLang The target languate - * @param apiKey The yandex API key. You can create one for free at https://translate.yandex.com/developers - */ async function translateYandex(text, targetLang, apiKey) { - if (targetLang === 'zh-cn') { - targetLang = 'zh'; - } - try { - const url = `https://translate.yandex.net/api/v1.5/tr.json/translate?key=${apiKey}&text=${encodeURIComponent(text)}&lang=en-${targetLang}`; - const response = await (0, axios_1.default)({ url, timeout: 15000 }); - if (isArray(response.data?.text)) { - return response.data.text[0]; - } - throw new Error('Invalid response for translate request'); - } - catch (e) { - throw new Error(`Could not translate to "${targetLang}": ${e}`); + var _a; + if (targetLang === "zh-cn") { + targetLang = "zh"; + } + try { + const url = `https://translate.yandex.net/api/v1.5/tr.json/translate?key=${apiKey}&text=${encodeURIComponent(text)}&lang=en-${targetLang}`; + const response = await (0, import_axios.default)({ url, timeout: 15e3 }); + if (isArray((_a = response.data) == null ? void 0 : _a.text)) { + return response.data.text[0]; } + throw new Error("Invalid response for translate request"); + } catch (e) { + throw new Error(`Could not translate to "${targetLang}": ${e}`); + } } -/** - * Translates text with Google API - * @param text The text to translate - * @param targetLang The target languate - */ async function translateGoogle(text, targetLang) { - try { - const url = `http://translate.googleapis.com/translate_a/single?client=gtx&sl=en&tl=${targetLang}&dt=t&q=${encodeURIComponent(text)}&ie=UTF-8&oe=UTF-8`; - const response = await (0, axios_1.default)({ url, timeout: 15000 }); - if (isArray(response.data)) { - // we got a valid response - return response.data[0][0][0]; - } - throw new Error('Invalid response for translate request'); + var _a; + try { + const url = `http://translate.googleapis.com/translate_a/single?client=gtx&sl=en&tl=${targetLang}&dt=t&q=${encodeURIComponent(text)}&ie=UTF-8&oe=UTF-8`; + const response = await (0, import_axios.default)({ url, timeout: 15e3 }); + if (isArray(response.data)) { + return response.data[0][0][0]; } - catch (e) { - if (e.response?.status === 429) { - throw new Error(`Could not translate to "${targetLang}": Rate-limited by Google Translate`); - } - else { - throw new Error(`Could not translate to "${targetLang}": ${e}`); - } + throw new Error("Invalid response for translate request"); + } catch (e) { + if (((_a = e.response) == null ? void 0 : _a.status) === 429) { + throw new Error(`Could not translate to "${targetLang}": Rate-limited by Google Translate`); + } else { + throw new Error(`Could not translate to "${targetLang}": ${e}`); } + } } -//# sourceMappingURL=tools.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + isArray, + isObject, + translateText +}); +//# sourceMappingURL=tools.js.map diff --git a/build/lib/tools.js.map b/build/lib/tools.js.map index 7a8090d..168340f 100644 --- a/build/lib/tools.js.map +++ b/build/lib/tools.js.map @@ -1 +1,7 @@ -{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/lib/tools.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B;;;GAGG;AACH,SAAgB,QAAQ,CAAC,EAAW;IAChC,6BAA6B;IAC7B,2BAA2B;IAC3B,yBAAyB;IACzB,gCAAgC;IAChC,OAAO,MAAM,CAAC,SAAS,CAAC,QAAQ,CAA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,KAAK,CAAC,wCAAwC,CAAC,CAAC;KAC7D;IAAC,OAAO,CAAM,EAAE;QACb,MAAM,IAAI,KAAK,CAAC,2BAA2B,UAAU,MAAM,CAAC,EAAE,CAAC,CAAC;KACnE;AACL,CAAC;AAED;;;;GAIG;AACH,KAAK,UAAU,eAAe,CAAC,IAAY,EAAE,UAAkB;IAC3D,IAAI;QACA,MAAM,GAAG,GAAG,0EAA0E,UAAU,WAAW,kBAAkB,CAAC,IAAI,CAAC,oBAAoB,CAAC;QACxJ,MAAM,QAAQ,GAAG,MAAM,IAAA,eAAK,EAAC,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;QACtD,IAAI,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;YACxB,0BAA0B;YAC1B,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;SACjC;QACD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;KAC7D;IAAC,OAAO,CAAM,EAAE;QACb,IAAI,CAAC,CAAC,QAAQ,EAAE,MAAM,KAAK,GAAG,EAAE;YAC5B,MAAM,IAAI,KAAK,CAAC,2BAA2B,UAAU,qCAAqC,CAAC,CAAC;SAC/F;aAAM;YACH,MAAM,IAAI,KAAK,CAAC,2BAA2B,UAAU,MAAM,CAAC,EAAE,CAAC,CAAC;SACnE;KACJ;AACL,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/lib/tools.ts"], + "sourcesContent": ["import axios from 'axios';\n\n/**\n * Tests whether the given variable is a real object and not an Array\n * @param it The variable to test\n */\nexport function isObject(it: unknown): it is Record {\n // This is necessary because:\n // typeof null === 'object'\n // typeof [] === 'object'\n // [] instanceof Object === true\n return Object.prototype.toString.call(it) === '[object Object]';\n}\n\n/**\n * Tests whether the given variable is really an Array\n * @param it The variable to test\n */\nexport function isArray(it: unknown): it is any[] {\n if (Array.isArray != null) return Array.isArray(it);\n return Object.prototype.toString.call(it) === '[object Array]';\n}\n\n/**\n * Translates text using the Google Translate API\n * @param text The text to translate\n * @param targetLang The target languate\n * @param yandexApiKey The yandex API key. You can create one for free at https://translate.yandex.com/developers\n */\nexport async function translateText(text: string, targetLang: string, yandexApiKey?: string): Promise {\n if (targetLang === 'en') {\n return text;\n } else if (!text) {\n return '';\n }\n if (yandexApiKey) {\n return translateYandex(text, targetLang, yandexApiKey);\n } else {\n return translateGoogle(text, targetLang);\n }\n}\n\n/**\n * Translates text with Yandex API\n * @param text The text to translate\n * @param targetLang The target languate\n * @param apiKey The yandex API key. You can create one for free at https://translate.yandex.com/developers\n */\nasync function translateYandex(text: string, targetLang: string, apiKey: string): Promise {\n if (targetLang === 'zh-cn') {\n targetLang = 'zh';\n }\n try {\n const url = `https://translate.yandex.net/api/v1.5/tr.json/translate?key=${apiKey}&text=${encodeURIComponent(text)}&lang=en-${targetLang}`;\n const response = await axios({ url, timeout: 15000 });\n if (isArray(response.data?.text)) {\n return response.data.text[0];\n }\n throw new Error('Invalid response for translate request');\n } catch (e: any) {\n throw new Error(`Could not translate to \"${targetLang}\": ${e}`);\n }\n}\n\n/**\n * Translates text with Google API\n * @param text The text to translate\n * @param targetLang The target languate\n */\nasync function translateGoogle(text: string, targetLang: string): Promise {\n try {\n const url = `http://translate.googleapis.com/translate_a/single?client=gtx&sl=en&tl=${targetLang}&dt=t&q=${encodeURIComponent(text)}&ie=UTF-8&oe=UTF-8`;\n const response = await axios({ url, timeout: 15000 });\n if (isArray(response.data)) {\n // we got a valid response\n return response.data[0][0][0];\n }\n throw new Error('Invalid response for translate request');\n } catch (e: any) {\n if (e.response?.status === 429) {\n throw new Error(`Could not translate to \"${targetLang}\": Rate-limited by Google Translate`);\n } else {\n throw new Error(`Could not translate to \"${targetLang}\": ${e}`);\n }\n }\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,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P;AACE,UAAI,OAAE,aAAF,mBAAY,YAAW,KAAK;AAC5B,YAAM,IAAI,MAAM,2BAA2B,+CAA+C;AAAA,IAC9F,OAAO;AACH,YAAM,IAAI,MAAM,2BAA2B,gBAAgB,GAAG;AAAA,IAClE;AAAA,EACJ;AACJ;", + "names": ["axios"] +} diff --git a/build/main.js b/build/main.js new file mode 100644 index 0000000..4be9e9f --- /dev/null +++ b/build/main.js @@ -0,0 +1,352 @@ +"use strict"; +var __create = Object.create; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __getProtoOf = Object.getPrototypeOf; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, + mod +)); +var utils = __toESM(require("@iobroker/adapter-core")); +var fs = __toESM(require("fs")); +var path = __toESM(require("path")); +var import_authRepository = require("./authRepository"); +var import_myuplinkRepository = require("./myuplinkRepository"); +Date.prototype.today = function() { + return this.getFullYear() + "-" + (this.getMonth() + 1 < 10 ? "0" : "") + (this.getMonth() + 1) + "-" + (this.getDate() < 10 ? "0" : "") + this.getDate(); +}; +Date.prototype.timeNow = function() { + return (this.getHours() < 10 ? "0" : "") + this.getHours() + ":" + (this.getMinutes() < 10 ? "0" : "") + this.getMinutes() + ":" + (this.getSeconds() < 10 ? "0" : "") + this.getSeconds(); +}; +async function createDeviceAsync(adapter, path2, name) { + await adapter.setObjectNotExistsAsync(path2, { + type: "device", + common: { + name, + role: "text" + }, + native: {} + }); +} +async function createChannelAsync(adapter, path2, name) { + await adapter.setObjectNotExistsAsync(path2, { + type: "channel", + common: { + name, + role: "text" + }, + native: {} + }); +} +async function createStringStateAsync(adapter, path2, name, value) { + await adapter.setObjectNotExistsAsync(path2, { + type: "state", + common: { + name, + type: "string", + role: "text", + read: true, + write: false + }, + native: {} + }); + await adapter.setStateAsync(path2, { val: value, ack: true }); +} +async function createBooleanStateAsync(adapter, path2, name, role, value) { + await adapter.setObjectNotExistsAsync(path2, { + type: "state", + common: { + name, + type: "boolean", + role, + read: true, + write: false + }, + native: {} + }); + await adapter.setStateAsync(path2, { val: value, ack: true }); +} +class Myuplink extends utils.Adapter { + constructor(options = {}) { + super({ + ...options, + name: "myuplink" + }); + this.on("ready", this.onReady.bind(this)); + this.on("unload", this.onUnload.bind(this)); + this.refreshInterval = 0; + } + async onReady() { + this.log.info("Starting adapter."); + await this.setInfoObjects(); + this.refreshInterval = this.config.Interval * 60; + if (this.refreshInterval < 60) { + this.refreshInterval = 60; + } + const identifier = this.config.Identifier.trim(); + const secret = this.config.Secret.trim(); + const callbackURL = this.config.CallbackURL.trim(); + const configured = this.config.Configured; + let error = false; + if (identifier == "" || identifier == null) { + if (configured != false) { + this.log.error("Missing Identifier in the settings!"); + } + error = true; + } + if (secret == "" || secret == null) { + if (configured != false) { + this.log.error("Missing Secret in the settings!"); + } + error = true; + } + if (callbackURL == "" || callbackURL == null) { + if (configured != false) { + this.log.error("Missing Callback URL in the settings!"); + } + error = true; + } + if (error) { + this.setState("info.connection", { val: false, ack: true }); + this.setState("info.currentError", { val: "Missing settings!", ack: true }); + return; + } + const dataDir = utils.getAbsoluteDefaultDataDir(); + let storeDir = path.join(dataDir, "myuplink"); + try { + if (!fs.existsSync(storeDir)) { + fs.mkdirSync(storeDir); + } + } catch (err) { + this.log.error("Could not create storage directory (" + storeDir + "): " + err); + storeDir = __dirname; + } + const storeFile = path.join(storeDir, "session." + this.instance + ".json"); + this.authRepository = new import_authRepository.AuthRepository( + { + clientId: identifier, + clientSecret: secret, + redirectUri: callbackURL, + authCode: this.config.AuthCode.trim(), + sessionStoreFilePath: storeFile, + baseUrl: "https://api.myuplink.com", + scope: "READSYSTEM WRITESYSTEM", + timeout: 45e3, + userAgent: "iobroker.myuplink", + renewBeforeExpiry: 5 * 60 * 1e3 + }, + this.log + ); + this.myUplinkRepository = new import_myuplinkRepository.MyUplinkRepository( + { + baseUrl: "https://api.myuplink.com", + timeout: 45e3, + userAgent: "iobroker.myuplink", + language: this.config.Language + }, + this.log + ); + this.interval = setInterval( + async () => { + await this.getData(); + }, + this.refreshInterval * 1e3 + ); + this.log.info("Adapter started."); + this.getData(); + } + async getData() { + var _a; + try { + if (this.authRepository) { + const accessToken = await this.authRepository.getAccessToken(); + if (accessToken && this.myUplinkRepository) { + const systems = await this.myUplinkRepository.getSystemsAndDevices(accessToken); + this.log.debug("Data received."); + this.log.debug(JSON.stringify(systems, null, " ")); + this.setState("info.connection", { val: true, expire: this.refreshInterval + 30, ack: true }); + const newDate = new Date(); + const datetime = newDate.today() + " " + newDate.timeNow(); + this.setState("info.updateTime", { val: datetime, ack: true }); + this.setState("info.currentError", { val: "", ack: true }); + (_a = systems.systems) == null ? void 0 : _a.forEach(async (value) => { + await this.setSystemWithDevices(value, accessToken); + }); + } + } + } catch (error) { + this.log.error("" + error); + this.setState("info.connection", { val: false, ack: true }); + const newDate = new Date(); + const datetime = newDate.today() + " " + newDate.timeNow(); + this.setState("info.lastErrorTime", { val: datetime, ack: true }); + this.setState("info.lastError", { val: "" + error, ack: true }); + this.setState("info.currentError", { val: "" + error, ack: true }); + } + } + async setSystemWithDevices(system, accessToken) { + var _a; + if (system.systemId != void 0 && system.name != void 0) { + const systemPath = system.systemId; + await createDeviceAsync(this, systemPath, system.name); + await createStringStateAsync(this, `${systemPath}.systemId`, "System ID", system.systemId); + await createStringStateAsync(this, `${systemPath}.name`, "Name", system.name); + if (system.country != void 0) { + await createStringStateAsync(this, `${systemPath}.country`, "Country", system.country); + } + if (system.securityLevel != void 0) { + await createStringStateAsync(this, `${systemPath}.securityLevel`, "Security Level", system.securityLevel); + } + if (system.hasAlarm != void 0) { + await createBooleanStateAsync(this, `${systemPath}.hasAlarm`, "Has Alarm", "indicator.alarm", system.hasAlarm); + } + (_a = system.devices) == null ? void 0 : _a.forEach(async (dev) => { + await this.setSystemDevice(dev, systemPath, accessToken); + }); + } + } + async setSystemDevice(device, systemPath, accessToken) { + var _a, _b, _c; + if (device.id != void 0 && ((_a = device.product) == null ? void 0 : _a.name) != void 0) { + const devPath = `${systemPath}.${device.id}`; + await createChannelAsync(this, devPath, device.product.name); + await createStringStateAsync(this, `${devPath}.id`, "Device ID", device.id); + await createStringStateAsync(this, `${devPath}.name`, "Name", device.product.name); + if (device.connectionState != void 0) { + await createStringStateAsync(this, `${devPath}.connectionState`, "Connection State", device.connectionState); + } + if (device.currentFwVersion != void 0) { + await createStringStateAsync(this, `${devPath}.currentFwVersion`, "Current Firmware Version", device.currentFwVersion); + } + if (((_b = device.product) == null ? void 0 : _b.serialNumber) != void 0) { + await createStringStateAsync(this, `${devPath}.serialNumber`, "Serial Number", device.product.serialNumber); + } + const devicePoints = await ((_c = this.myUplinkRepository) == null ? void 0 : _c.getDevicePoints(device.id, accessToken)); + devicePoints == null ? void 0 : devicePoints.forEach(async (data) => { + await this.setParameterData(data, devPath); + }); + } + } + async setParameterData(data, devPath) { + var _a; + if (data.parameterId && data.parameterName) { + const path2 = `${devPath}.${data.parameterId}`; + const objectExists = await this.objectExists(path2); + if (!objectExists) { + const obj = { + type: "state", + common: { + name: data.parameterName, + type: "number", + role: "value", + read: true, + write: (_a = data.writable) != null ? _a : false + }, + native: {} + }; + await this.setObjectNotExistsAsync(path2, obj); + } + await this.setStateAsync(path2, { val: data.value, ack: true }); + } + } + async setInfoObjects() { + await this.setObjectNotExistsAsync("info", { + type: "channel", + common: { + name: "Information" + }, + native: {} + }); + await this.setObjectNotExistsAsync("info.connection", { + type: "state", + common: { + name: "Connected to myUplink", + role: "indicator.connected", + type: "boolean", + read: true, + write: false, + def: false + }, + native: {} + }); + await this.setObjectNotExistsAsync("info.currentError", { + type: "state", + common: { + name: "Current Error", + role: "text", + type: "string", + read: true, + write: false, + def: "" + }, + native: {} + }); + await this.setObjectNotExistsAsync("info.updateTime", { + type: "state", + common: { + name: "Time of the last update", + role: "text", + type: "string", + read: true, + write: false, + def: "" + }, + native: {} + }); + await this.setObjectNotExistsAsync("info.lastError", { + type: "state", + common: { + name: "Last Error", + role: "text", + type: "string", + read: true, + write: false, + def: "" + }, + native: {} + }); + await this.setObjectNotExistsAsync("info.lastErrorTime", { + type: "state", + common: { + name: "Time of the last error", + role: "text", + type: "string", + read: true, + write: false, + def: "" + }, + native: {} + }); + } + onUnload(callback) { + try { + if (this.interval != void 0) { + clearInterval(this.interval); + this.interval = void 0; + } + this.authRepository = void 0; + this.myUplinkRepository = void 0; + this.setState("info.connection", { val: false, ack: true }); + this.log.info("Cleaned everything up..."); + callback(); + } catch (e) { + callback(); + } + } +} +if (require.main !== module) { + module.exports = (options) => new Myuplink(options); +} else { + (() => new Myuplink())(); +} +//# sourceMappingURL=main.js.map diff --git a/build/main.js.map b/build/main.js.map new file mode 100644 index 0000000..8d60bd6 --- /dev/null +++ b/build/main.js.map @@ -0,0 +1,7 @@ +{ + "version": 3, + "sources": ["../src/main.ts"], + "sourcesContent": ["/*\n * Created with @iobroker/create-adapter v2.5.0\n */\n\n// The adapter-core module gives you access to the core ioBroker functions\n// you need to create an adapter\nimport * as utils from '@iobroker/adapter-core';\nimport * as fs from 'fs';\nimport * as path from 'path';\nimport { AuthRepository } from './authRepository';\nimport { ParameterData } from './models/ParameterData';\nimport { SystemDevice } from './models/SystemDevice';\nimport { SystemWithDevices } from './models/SystemWithDevices';\nimport { MyUplinkRepository } from './myuplinkRepository';\n\n// Helper functions:\n\n// For todays date;\ndeclare global {\n interface Date {\n today(): string;\n }\n}\nDate.prototype.today = function (): string {\n return this.getFullYear() + '-' + (this.getMonth() + 1 < 10 ? '0' : '') + (this.getMonth() + 1) + '-' + (this.getDate() < 10 ? '0' : '') + this.getDate();\n};\n\n// For the time now\ndeclare global {\n interface Date {\n timeNow(): string;\n }\n}\nDate.prototype.timeNow = function (): string {\n return (this.getHours() < 10 ? '0' : '') + this.getHours() + ':' + (this.getMinutes() < 10 ? '0' : '') + this.getMinutes() + ':' + (this.getSeconds() < 10 ? '0' : '') + this.getSeconds();\n};\n\n// async function createFolderAsync(adapter: Myuplink, path: string, name: string): Promise {\n// await adapter.setObjectNotExistsAsync(path, {\n// type: 'folder',\n// common: {\n// name: name,\n// role: 'text',\n// },\n// native: {},\n// });\n// }\n\nasync function createDeviceAsync(adapter: Myuplink, path: string, name: string): Promise {\n await adapter.setObjectNotExistsAsync(path, {\n type: 'device',\n common: {\n name: name,\n role: 'text',\n },\n native: {},\n });\n}\n\nasync function createChannelAsync(adapter: Myuplink, path: string, name: string): Promise {\n await adapter.setObjectNotExistsAsync(path, {\n type: 'channel',\n common: {\n name: name,\n role: 'text',\n },\n native: {},\n });\n}\n\nasync function createStringStateAsync(adapter: Myuplink, path: string, name: string, value: string): Promise {\n await adapter.setObjectNotExistsAsync(path, {\n type: 'state',\n common: {\n name: name,\n type: 'string',\n role: 'text',\n read: true,\n write: false,\n },\n native: {},\n });\n await adapter.setStateAsync(path, { val: value, ack: true });\n}\n\nasync function createBooleanStateAsync(adapter: Myuplink, path: string, name: string, role: string, value: boolean): Promise {\n await adapter.setObjectNotExistsAsync(path, {\n type: 'state',\n common: {\n name: name,\n type: 'boolean',\n role: role,\n read: true,\n write: false,\n },\n native: {},\n });\n await adapter.setStateAsync(path, { val: value, ack: true });\n}\n\nclass Myuplink extends utils.Adapter {\n public constructor(options: Partial = {}) {\n super({\n ...options,\n name: 'myuplink',\n });\n this.on('ready', this.onReady.bind(this));\n this.on('unload', this.onUnload.bind(this));\n this.refreshInterval = 0;\n }\n\n private authRepository: AuthRepository | undefined;\n private myUplinkRepository: MyUplinkRepository | undefined;\n private interval: NodeJS.Timeout | undefined;\n private refreshInterval: number;\n\n /**\n * Is called when databases are connected and adapter received configuration.\n */\n private async onReady(): Promise {\n // Initialize your adapter here\n\n this.log.info('Starting adapter.');\n\n await this.setInfoObjects();\n\n this.refreshInterval = this.config.Interval * 60;\n if (this.refreshInterval < 60) {\n this.refreshInterval = 60;\n }\n\n const identifier: string = this.config.Identifier.trim();\n const secret: string = this.config.Secret.trim();\n const callbackURL: string = this.config.CallbackURL.trim();\n const configured: boolean = this.config.Configured;\n\n let error = false;\n if (identifier == '' || identifier == null) {\n if (configured != false) {\n this.log.error('Missing Identifier in the settings!');\n }\n error = true;\n }\n if (secret == '' || secret == null) {\n if (configured != false) {\n this.log.error('Missing Secret in the settings!');\n }\n error = true;\n }\n if (callbackURL == '' || callbackURL == null) {\n if (configured != false) {\n this.log.error('Missing Callback URL in the settings!');\n }\n error = true;\n }\n if (error) {\n this.setState('info.connection', { val: false, ack: true });\n this.setState('info.currentError', { val: 'Missing settings!', ack: true });\n return;\n }\n\n const dataDir: string = utils.getAbsoluteDefaultDataDir();\n let storeDir: string = path.join(dataDir, 'myuplink');\n try {\n // create directory\n if (!fs.existsSync(storeDir)) {\n fs.mkdirSync(storeDir);\n }\n } catch (err) {\n this.log.error('Could not create storage directory (' + storeDir + '): ' + err);\n storeDir = __dirname;\n }\n const storeFile = path.join(storeDir, 'session.' + this.instance + '.json');\n\n this.authRepository = new AuthRepository(\n {\n clientId: identifier,\n clientSecret: secret,\n redirectUri: callbackURL,\n authCode: this.config.AuthCode.trim(),\n sessionStoreFilePath: storeFile,\n baseUrl: 'https://api.myuplink.com',\n scope: 'READSYSTEM WRITESYSTEM',\n timeout: 45000,\n userAgent: 'iobroker.myuplink',\n renewBeforeExpiry: 5 * 60 * 1000,\n },\n this.log,\n );\n\n this.myUplinkRepository = new MyUplinkRepository(\n {\n baseUrl: 'https://api.myuplink.com',\n timeout: 45000,\n userAgent: 'iobroker.myuplink',\n language: this.config.Language,\n },\n this.log,\n );\n\n this.interval = setInterval(\n async () => {\n await this.getData();\n },\n this.refreshInterval * 1000,\n );\n\n this.log.info('Adapter started.');\n\n this.getData();\n }\n\n private async getData(): Promise {\n try {\n if (this.authRepository) {\n const accessToken = await this.authRepository.getAccessToken();\n if (accessToken && this.myUplinkRepository) {\n const systems = await this.myUplinkRepository.getSystemsAndDevices(accessToken);\n this.log.debug('Data received.');\n this.log.debug(JSON.stringify(systems, null, ' '));\n this.setState('info.connection', { val: true, expire: this.refreshInterval + 30, ack: true });\n const newDate = new Date();\n const datetime = newDate.today() + ' ' + newDate.timeNow();\n this.setState('info.updateTime', { val: datetime, ack: true });\n this.setState('info.currentError', { val: '', ack: true });\n\n systems.systems?.forEach(async (value: SystemWithDevices) => {\n await this.setSystemWithDevices(value, accessToken);\n });\n }\n }\n } catch (error) {\n this.log.error('' + error);\n\n this.setState('info.connection', { val: false, ack: true });\n\n const newDate = new Date();\n const datetime = newDate.today() + ' ' + newDate.timeNow();\n this.setState('info.lastErrorTime', { val: datetime, ack: true });\n this.setState('info.lastError', { val: '' + error, ack: true });\n this.setState('info.currentError', { val: '' + error, ack: true });\n }\n }\n\n private async setSystemWithDevices(system: SystemWithDevices, accessToken: string): Promise {\n if (system.systemId != undefined && system.name != undefined) {\n const systemPath = system.systemId;\n await createDeviceAsync(this, systemPath, system.name);\n await createStringStateAsync(this, `${systemPath}.systemId`, 'System ID', system.systemId);\n await createStringStateAsync(this, `${systemPath}.name`, 'Name', system.name);\n if (system.country != undefined) {\n await createStringStateAsync(this, `${systemPath}.country`, 'Country', system.country);\n }\n if (system.securityLevel != undefined) {\n await createStringStateAsync(this, `${systemPath}.securityLevel`, 'Security Level', system.securityLevel);\n }\n if (system.hasAlarm != undefined) {\n await createBooleanStateAsync(this, `${systemPath}.hasAlarm`, 'Has Alarm', 'indicator.alarm', system.hasAlarm);\n }\n system.devices?.forEach(async (dev: SystemDevice) => {\n await this.setSystemDevice(dev, systemPath, accessToken);\n });\n }\n }\n\n private async setSystemDevice(device: SystemDevice, systemPath: string, accessToken: string): Promise {\n if (device.id != undefined && device.product?.name != undefined) {\n const devPath = `${systemPath}.${device.id}`;\n await createChannelAsync(this, devPath, device.product.name);\n await createStringStateAsync(this, `${devPath}.id`, 'Device ID', device.id);\n await createStringStateAsync(this, `${devPath}.name`, 'Name', device.product.name);\n if (device.connectionState != undefined) {\n await createStringStateAsync(this, `${devPath}.connectionState`, 'Connection State', device.connectionState);\n }\n if (device.currentFwVersion != undefined) {\n await createStringStateAsync(this, `${devPath}.currentFwVersion`, 'Current Firmware Version', device.currentFwVersion);\n }\n if (device.product?.serialNumber != undefined) {\n await createStringStateAsync(this, `${devPath}.serialNumber`, 'Serial Number', device.product.serialNumber);\n }\n\n const devicePoints = await this.myUplinkRepository?.getDevicePoints(device.id, accessToken);\n devicePoints?.forEach(async (data: ParameterData) => {\n await this.setParameterData(data, devPath);\n });\n }\n }\n\n private async setParameterData(data: ParameterData, devPath: string): Promise {\n if (data.parameterId && data.parameterName) {\n const path = `${devPath}.${data.parameterId}`;\n\n const objectExists = await this.objectExists(path);\n if (!objectExists) {\n const obj: ioBroker.SettableObject = {\n type: 'state',\n common: {\n name: data.parameterName,\n type: 'number',\n role: 'value',\n read: true,\n write: data.writable ?? false,\n },\n native: {},\n };\n await this.setObjectNotExistsAsync(path, obj);\n }\n await this.setStateAsync(path, { val: data.value, ack: true });\n }\n }\n\n private async setInfoObjects(): Promise {\n await this.setObjectNotExistsAsync('info', {\n type: 'channel',\n common: {\n name: 'Information',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('info.connection', {\n type: 'state',\n common: {\n name: 'Connected to myUplink',\n role: 'indicator.connected',\n type: 'boolean',\n read: true,\n write: false,\n def: false,\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('info.currentError', {\n type: 'state',\n common: {\n name: 'Current Error',\n role: 'text',\n type: 'string',\n read: true,\n write: false,\n def: '',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('info.updateTime', {\n type: 'state',\n common: {\n name: 'Time of the last update',\n role: 'text',\n type: 'string',\n read: true,\n write: false,\n def: '',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('info.lastError', {\n type: 'state',\n common: {\n name: 'Last Error',\n role: 'text',\n type: 'string',\n read: true,\n write: false,\n def: '',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('info.lastErrorTime', {\n type: 'state',\n common: {\n name: 'Time of the last error',\n role: 'text',\n type: 'string',\n read: true,\n write: false,\n def: '',\n },\n native: {},\n });\n }\n\n /**\n * Is called when adapter shuts down - callback has to be called under any circumstances!\n */\n private onUnload(callback: () => void): void {\n try {\n if (this.interval != undefined) {\n clearInterval(this.interval);\n this.interval = undefined;\n }\n this.authRepository = undefined;\n this.myUplinkRepository = undefined;\n this.setState('info.connection', { val: false, ack: true });\n this.log.info('Cleaned everything up...');\n callback();\n } catch (e) {\n callback();\n }\n }\n}\n\nif (require.main !== module) {\n // Export the constructor in compact mode\n module.exports = (options: Partial | undefined) => new Myuplink(options);\n} else {\n // otherwise start the instance directly\n (() => new Myuplink())();\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;;AAMA,YAAuB;AACvB,SAAoB;AACpB,WAAsB;AACtB,4BAA+B;AAI/B,gCAAmC;AAUnC,KAAK,UAAU,QAAQ,WAAoB;AACvC,SAAO,KAAK,YAAY,IAAI,OAAO,KAAK,SAAS,IAAI,IAAI,KAAK,MAAM,OAAO,KAAK,SAAS,IAAI,KAAK,OAAO,KAAK,QAAQ,IAAI,KAAK,MAAM,MAAM,KAAK,QAAQ;AAC5J;AAQA,KAAK,UAAU,UAAU,WAAoB;AACzC,UAAQ,KAAK,SAAS,IAAI,KAAK,MAAM,MAAM,KAAK,SAAS,IAAI,OAAO,KAAK,WAAW,IAAI,KAAK,MAAM,MAAM,KAAK,WAAW,IAAI,OAAO,KAAK,WAAW,IAAI,KAAK,MAAM,MAAM,KAAK,WAAW;AAC7L;AAaA,eAAe,kBAAkB,SAAmBA,OAAc,MAA6B;AAC3F,QA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,QACJ,MAAM;AAAA,QACN,MAAM;AAAA,QACN,MAAM;AAAA,QACN,MAAM;AAAA,QACN,OAAO;AAAA,QACP,KAAK;AAAA,MACT;AAAA,MACA,QAAQ,CAAC;AAAA,IACb,CAAC;AACD,UAAM,KAAK,wBAAwB,sBAAsB;AAAA,MACrD,MAAM;AAAA,MACN,QAAQ;AAAA,QACJ,MAAM;AAAA,QACN,MAAM;AAAA,QACN,MAAM;AAAA,QACN,MAAM;AAAA,QACN,OAAO;AAAA,QACP,KAAK;AAAA,MACT;AAAA,MACA,QAAQ,CAAC;AAAA,IACb,CAAC;AAAA,EACL;AAAA,EAKQ,SAAS,UAA4B;AACzC,QAAI;AACA,UAAI,KAAK,YAAY,QAAW;AAC5B,sBAAc,KAAK,QAAQ;AAC3B,aAAK,WAAW;AAAA,MACpB;AACA,WAAK,iBAAiB;AACtB,WAAK,qBAAqB;AAC1B,WAAK,SAAS,mBAAmB,EAAE,KAAK,OAAO,KAAK,KAAK,CAAC;AAC1D,WAAK,IAAI,KAAK,0BAA0B;AACxC,eAAS;AAAA,IACb,SAAS,GAAP;AACE,eAAS;AAAA,IACb;AAAA,EACJ;AACJ;AAEA,IAAI,QAAQ,SAAS,QAAQ;AAEzB,SAAO,UAAU,CAAC,YAAuD,IAAI,SAAS,OAAO;AACjG,OAAO;AAEH,GAAC,MAAM,IAAI,SAAS,GAAG;AAC3B;", + "names": ["path"] +} diff --git a/build/models/Address.js b/build/models/Address.js index 1a36bed..9f76fb9 100644 --- a/build/models/Address.js +++ b/build/models/Address.js @@ -1,70 +1,81 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.Address = void 0; -/** - * Address model. - */ -class Address { - static getAttributeTypeMap() { - return Address.attributeTypeMap; - } - constructor() { } -} -exports.Address = Address; -Address.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var Address_exports = {}; +__export(Address_exports, { + Address: () => Address +}); +module.exports = __toCommonJS(Address_exports); +const _Address = class { + static getAttributeTypeMap() { + return _Address.attributeTypeMap; + } + constructor() { + } +}; +let Address = _Address; +Address.discriminator = void 0; Address.attributeTypeMap = [ - { - name: 'id', - baseName: 'id', - type: 'string', - format: '', - }, - { - name: 'lineOne', - baseName: 'lineOne', - type: 'string', - format: '', - }, - { - name: 'lineTwo', - baseName: 'lineTwo', - type: 'string', - format: '', - }, - { - name: 'postalCode', - baseName: 'postalCode', - type: 'string', - format: '', - }, - { - name: 'city', - baseName: 'city', - type: 'string', - format: '', - }, - { - name: 'region', - baseName: 'region', - type: 'string', - format: '', - }, - { - name: 'country', - baseName: 'country', - type: 'Country', - format: '', - }, + { + name: "id", + baseName: "id", + type: "string", + format: "" + }, + { + name: "lineOne", + baseName: "lineOne", + type: "string", + format: "" + }, + { + name: "lineTwo", + baseName: "lineTwo", + type: "string", + format: "" + }, + { + name: "postalCode", + baseName: "postalCode", + type: "string", + format: "" + }, + { + name: "city", + baseName: "city", + type: "string", + format: "" + }, + { + name: "region", + baseName: "region", + type: "string", + format: "" + }, + { + name: "country", + baseName: "country", + type: "Country", + format: "" + } ]; -//# sourceMappingURL=Address.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + Address +}); +//# sourceMappingURL=Address.js.map diff --git a/build/models/Address.js.map b/build/models/Address.js.map index 03f9964..65f5314 100644 --- a/build/models/Address.js.map +++ b/build/models/Address.js.map @@ -1 +1,7 @@ -{"version":3,"file":"Address.js","sourceRoot":"","sources":["../../src/models/Address.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAIH;;GAEG;AACH,MAAa,OAAO;IA0EhB,MAAM,CAAC,mBAAmB;QACtB,OAAO,OAAO,CAAC,gBAAgB,CAAC;IACpC,CAAC;IAED,gBAAsB,CAAC;;AA9E3B,0BA+EC;AApDmB,qBAAa,GAAuB,SAAS,CAAC;AAE9C,wBAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/Address.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { Country } from '../models/Country';\n\n/**\n * Address model.\n */\nexport class Address {\n /**\n * Default state of empty Address\n */\n 'id'?: string | null;\n /**\n * LineOne\n */\n 'lineOne'?: string | null;\n /**\n * LineTwo\n */\n 'lineTwo'?: string | null;\n /**\n * PostalCode\n */\n 'postalCode'?: string | null;\n /**\n * City\n */\n 'city'?: string | null;\n /**\n * Region\n */\n 'region'?: string | null;\n 'country'?: Country;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'id',\n baseName: 'id',\n type: 'string',\n format: '',\n },\n {\n name: 'lineOne',\n baseName: 'lineOne',\n type: 'string',\n format: '',\n },\n {\n name: 'lineTwo',\n baseName: 'lineTwo',\n type: 'string',\n format: '',\n },\n {\n name: 'postalCode',\n baseName: 'postalCode',\n type: 'string',\n format: '',\n },\n {\n name: 'city',\n baseName: 'city',\n type: 'string',\n format: '',\n },\n {\n name: 'region',\n baseName: 'region',\n type: 'string',\n format: '',\n },\n {\n name: 'country',\n baseName: 'country',\n type: 'Country',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return Address.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBO,MAAM,WAAN,MAAc;AAAA,EA0EjB,OAAO,sBAAsB;AACzB,WAAO,SAAQ;AAAA,EACnB;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AA/EO,IAAM,UAAN;AAAM,QA2BO,gBAAoC;AA3B3C,QA6BO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/AddressResponseModel.js b/build/models/AddressResponseModel.js index 0f48928..a1282bf 100644 --- a/build/models/AddressResponseModel.js +++ b/build/models/AddressResponseModel.js @@ -1,49 +1,63 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.AddressResponseModel = void 0; -class AddressResponseModel { - static getAttributeTypeMap() { - return AddressResponseModel.attributeTypeMap; - } - constructor() { } -} -exports.AddressResponseModel = AddressResponseModel; -AddressResponseModel.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var AddressResponseModel_exports = {}; +__export(AddressResponseModel_exports, { + AddressResponseModel: () => AddressResponseModel +}); +module.exports = __toCommonJS(AddressResponseModel_exports); +const _AddressResponseModel = class { + static getAttributeTypeMap() { + return _AddressResponseModel.attributeTypeMap; + } + constructor() { + } +}; +let AddressResponseModel = _AddressResponseModel; +AddressResponseModel.discriminator = void 0; AddressResponseModel.attributeTypeMap = [ - { - name: 'city', - baseName: 'city', - type: 'string', - format: '', - }, - { - name: 'region', - baseName: 'region', - type: 'string', - format: '', - }, - { - name: 'country', - baseName: 'country', - type: 'Country', - format: '', - }, - { - name: 'postalCode', - baseName: 'postalCode', - type: 'string', - format: '', - }, + { + name: "city", + baseName: "city", + type: "string", + format: "" + }, + { + name: "region", + baseName: "region", + type: "string", + format: "" + }, + { + name: "country", + baseName: "country", + type: "Country", + format: "" + }, + { + name: "postalCode", + baseName: "postalCode", + type: "string", + format: "" + } ]; -//# sourceMappingURL=AddressResponseModel.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + AddressResponseModel +}); +//# sourceMappingURL=AddressResponseModel.js.map diff --git a/build/models/AddressResponseModel.js.map b/build/models/AddressResponseModel.js.map index ebb859d..918aa84 100644 --- a/build/models/AddressResponseModel.js.map +++ b/build/models/AddressResponseModel.js.map @@ -1 +1,7 @@ -{"version":3,"file":"AddressResponseModel.js","sourceRoot":"","sources":["../../src/models/AddressResponseModel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAIH,MAAa,oBAAoB;IAmC7B,MAAM,CAAC,mBAAmB;QACtB,OAAO,oBAAoB,CAAC,gBAAgB,CAAC;IACjD,CAAC;IAED,gBAAsB,CAAC;;AAvC3B,oDAwCC;AAlCmB,kCAAa,GAAuB,SAAS,CAAC;AAE9C,qCAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/AddressResponseModel.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { Country } from '../models/Country';\n\nexport class AddressResponseModel {\n 'city'?: string | null;\n 'region'?: string | null;\n 'country'?: Country;\n 'postalCode'?: string | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'city',\n baseName: 'city',\n type: 'string',\n format: '',\n },\n {\n name: 'region',\n baseName: 'region',\n type: 'string',\n format: '',\n },\n {\n name: 'country',\n baseName: 'country',\n type: 'Country',\n format: '',\n },\n {\n name: 'postalCode',\n baseName: 'postalCode',\n type: 'string',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return AddressResponseModel.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAcO,MAAM,wBAAN,MAA2B;AAAA,EAmC9B,OAAO,sBAAsB;AACzB,WAAO,sBAAqB;AAAA,EAChC;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAxCO,IAAM,uBAAN;AAAM,qBAMO,gBAAoC;AAN3C,qBAQO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/AggregationMethod.js b/build/models/AggregationMethod.js index 116ee39..c17b78e 100644 --- a/build/models/AggregationMethod.js +++ b/build/models/AggregationMethod.js @@ -1,25 +1,38 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.AggregationMethod = void 0; -var AggregationMethod; -(function (AggregationMethod) { - AggregationMethod["Max"] = "Max"; - AggregationMethod["Min"] = "Min"; - AggregationMethod["Sum"] = "Sum"; - AggregationMethod["Average"] = "Average"; - AggregationMethod["Median"] = "Median"; - AggregationMethod["Diff"] = "Diff"; - AggregationMethod["None"] = "None"; -})(AggregationMethod || (exports.AggregationMethod = AggregationMethod = {})); -//# sourceMappingURL=AggregationMethod.js.map \ No newline at end of file +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var AggregationMethod_exports = {}; +__export(AggregationMethod_exports, { + AggregationMethod: () => AggregationMethod +}); +module.exports = __toCommonJS(AggregationMethod_exports); +var AggregationMethod = /* @__PURE__ */ ((AggregationMethod2) => { + AggregationMethod2["Max"] = "Max"; + AggregationMethod2["Min"] = "Min"; + AggregationMethod2["Sum"] = "Sum"; + AggregationMethod2["Average"] = "Average"; + AggregationMethod2["Median"] = "Median"; + AggregationMethod2["Diff"] = "Diff"; + AggregationMethod2["None"] = "None"; + return AggregationMethod2; +})(AggregationMethod || {}); +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + AggregationMethod +}); +//# sourceMappingURL=AggregationMethod.js.map diff --git a/build/models/AggregationMethod.js.map b/build/models/AggregationMethod.js.map index 8a9abec..56af967 100644 --- a/build/models/AggregationMethod.js.map +++ b/build/models/AggregationMethod.js.map @@ -1 +1,7 @@ -{"version":3,"file":"AggregationMethod.js","sourceRoot":"","sources":["../../src/models/AggregationMethod.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,IAAY,iBAQX;AARD,WAAY,iBAAiB;IACzB,gCAAW,CAAA;IACX,gCAAW,CAAA;IACX,gCAAW,CAAA;IACX,wCAAmB,CAAA;IACnB,sCAAiB,CAAA;IACjB,kCAAa,CAAA;IACb,kCAAa,CAAA;AACjB,CAAC,EARW,iBAAiB,iCAAjB,iBAAiB,QAQ5B"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/AggregationMethod.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nexport enum AggregationMethod {\n Max = 'Max',\n Min = 'Min',\n Sum = 'Sum',\n Average = 'Average',\n Median = 'Median',\n Diff = 'Diff',\n None = 'None',\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAYO,IAAK,oBAAL,kBAAKA,uBAAL;AACH,EAAAA,mBAAA,SAAM;AACN,EAAAA,mBAAA,SAAM;AACN,EAAAA,mBAAA,SAAM;AACN,EAAAA,mBAAA,aAAU;AACV,EAAAA,mBAAA,YAAS;AACT,EAAAA,mBAAA,UAAO;AACP,EAAAA,mBAAA,UAAO;AAPC,SAAAA;AAAA,GAAA;", + "names": ["AggregationMethod"] +} diff --git a/build/models/AggregationUnit.js b/build/models/AggregationUnit.js index 237245c..0f2850d 100644 --- a/build/models/AggregationUnit.js +++ b/build/models/AggregationUnit.js @@ -1,25 +1,38 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.AggregationUnit = void 0; -var AggregationUnit; -(function (AggregationUnit) { - AggregationUnit["None"] = "None"; - AggregationUnit["Hours"] = "Hours"; - AggregationUnit["Days"] = "Days"; - AggregationUnit["Weeks"] = "Weeks"; - AggregationUnit["Months"] = "Months"; - AggregationUnit["WeeksStartingOnSunday"] = "WeeksStartingOnSunday"; - AggregationUnit["Infinite"] = "Infinite"; -})(AggregationUnit || (exports.AggregationUnit = AggregationUnit = {})); -//# sourceMappingURL=AggregationUnit.js.map \ No newline at end of file +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var AggregationUnit_exports = {}; +__export(AggregationUnit_exports, { + AggregationUnit: () => AggregationUnit +}); +module.exports = __toCommonJS(AggregationUnit_exports); +var AggregationUnit = /* @__PURE__ */ ((AggregationUnit2) => { + AggregationUnit2["None"] = "None"; + AggregationUnit2["Hours"] = "Hours"; + AggregationUnit2["Days"] = "Days"; + AggregationUnit2["Weeks"] = "Weeks"; + AggregationUnit2["Months"] = "Months"; + AggregationUnit2["WeeksStartingOnSunday"] = "WeeksStartingOnSunday"; + AggregationUnit2["Infinite"] = "Infinite"; + return AggregationUnit2; +})(AggregationUnit || {}); +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + AggregationUnit +}); +//# sourceMappingURL=AggregationUnit.js.map diff --git a/build/models/AggregationUnit.js.map b/build/models/AggregationUnit.js.map index 467c6da..2be4ebd 100644 --- a/build/models/AggregationUnit.js.map +++ b/build/models/AggregationUnit.js.map @@ -1 +1,7 @@ -{"version":3,"file":"AggregationUnit.js","sourceRoot":"","sources":["../../src/models/AggregationUnit.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,IAAY,eAQX;AARD,WAAY,eAAe;IACvB,gCAAa,CAAA;IACb,kCAAe,CAAA;IACf,gCAAa,CAAA;IACb,kCAAe,CAAA;IACf,oCAAiB,CAAA;IACjB,kEAA+C,CAAA;IAC/C,wCAAqB,CAAA;AACzB,CAAC,EARW,eAAe,+BAAf,eAAe,QAQ1B"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/AggregationUnit.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nexport enum AggregationUnit {\n None = 'None',\n Hours = 'Hours',\n Days = 'Days',\n Weeks = 'Weeks',\n Months = 'Months',\n WeeksStartingOnSunday = 'WeeksStartingOnSunday',\n Infinite = 'Infinite',\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAYO,IAAK,kBAAL,kBAAKA,qBAAL;AACH,EAAAA,iBAAA,UAAO;AACP,EAAAA,iBAAA,WAAQ;AACR,EAAAA,iBAAA,UAAO;AACP,EAAAA,iBAAA,WAAQ;AACR,EAAAA,iBAAA,YAAS;AACT,EAAAA,iBAAA,2BAAwB;AACxB,EAAAA,iBAAA,cAAW;AAPH,SAAAA;AAAA,GAAA;", + "names": ["AggregationUnit"] +} diff --git a/build/models/AidMode.js b/build/models/AidMode.js index b36fc87..2be5b13 100644 --- a/build/models/AidMode.js +++ b/build/models/AidMode.js @@ -1,20 +1,33 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.AidMode = void 0; -var AidMode; -(function (AidMode) { - AidMode[AidMode["NUMBER_0"] = 0] = "NUMBER_0"; - AidMode[AidMode["NUMBER_1"] = 1] = "NUMBER_1"; -})(AidMode || (exports.AidMode = AidMode = {})); -//# sourceMappingURL=AidMode.js.map \ No newline at end of file +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var AidMode_exports = {}; +__export(AidMode_exports, { + AidMode: () => AidMode +}); +module.exports = __toCommonJS(AidMode_exports); +var AidMode = /* @__PURE__ */ ((AidMode2) => { + AidMode2[AidMode2["NUMBER_0"] = 0] = "NUMBER_0"; + AidMode2[AidMode2["NUMBER_1"] = 1] = "NUMBER_1"; + return AidMode2; +})(AidMode || {}); +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + AidMode +}); +//# sourceMappingURL=AidMode.js.map diff --git a/build/models/AidMode.js.map b/build/models/AidMode.js.map index 251c8c4..0eb6eda 100644 --- a/build/models/AidMode.js.map +++ b/build/models/AidMode.js.map @@ -1 +1,7 @@ -{"version":3,"file":"AidMode.js","sourceRoot":"","sources":["../../src/models/AidMode.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,IAAY,OAGX;AAHD,WAAY,OAAO;IACf,6CAAY,CAAA;IACZ,6CAAY,CAAA;AAChB,CAAC,EAHW,OAAO,uBAAP,OAAO,QAGlB"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/AidMode.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nexport enum AidMode {\n NUMBER_0 = 0,\n NUMBER_1 = 1,\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAYO,IAAK,UAAL,kBAAKA,aAAL;AACH,EAAAA,kBAAA,cAAW,KAAX;AACA,EAAAA,kBAAA,cAAW,KAAX;AAFQ,SAAAA;AAAA,GAAA;", + "names": ["AidMode"] +} diff --git a/build/models/AidModeResponseModel.js b/build/models/AidModeResponseModel.js index 6d8141f..dc808ab 100644 --- a/build/models/AidModeResponseModel.js +++ b/build/models/AidModeResponseModel.js @@ -1,31 +1,45 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.AidModeResponseModel = void 0; -class AidModeResponseModel { - static getAttributeTypeMap() { - return AidModeResponseModel.attributeTypeMap; - } - constructor() { } -} -exports.AidModeResponseModel = AidModeResponseModel; -AidModeResponseModel.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var AidModeResponseModel_exports = {}; +__export(AidModeResponseModel_exports, { + AidModeResponseModel: () => AidModeResponseModel +}); +module.exports = __toCommonJS(AidModeResponseModel_exports); +const _AidModeResponseModel = class { + static getAttributeTypeMap() { + return _AidModeResponseModel.attributeTypeMap; + } + constructor() { + } +}; +let AidModeResponseModel = _AidModeResponseModel; +AidModeResponseModel.discriminator = void 0; AidModeResponseModel.attributeTypeMap = [ - { - name: 'aidMode', - baseName: 'aidMode', - type: 'AidMode', - format: '', - }, + { + name: "aidMode", + baseName: "aidMode", + type: "AidMode", + format: "" + } ]; -//# sourceMappingURL=AidModeResponseModel.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + AidModeResponseModel +}); +//# sourceMappingURL=AidModeResponseModel.js.map diff --git a/build/models/AidModeResponseModel.js.map b/build/models/AidModeResponseModel.js.map index 3ba841f..e3a87be 100644 --- a/build/models/AidModeResponseModel.js.map +++ b/build/models/AidModeResponseModel.js.map @@ -1 +1,7 @@ -{"version":3,"file":"AidModeResponseModel.js","sourceRoot":"","sources":["../../src/models/AidModeResponseModel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAIH,MAAa,oBAAoB;IAc7B,MAAM,CAAC,mBAAmB;QACtB,OAAO,oBAAoB,CAAC,gBAAgB,CAAC;IACjD,CAAC;IAED,gBAAsB,CAAC;;AAlB3B,oDAmBC;AAhBmB,kCAAa,GAAuB,SAAS,CAAC;AAE9C,qCAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/AidModeResponseModel.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { AidMode } from '../models/AidMode';\n\nexport class AidModeResponseModel {\n 'aidMode'?: AidMode;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'aidMode',\n baseName: 'aidMode',\n type: 'AidMode',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return AidModeResponseModel.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAcO,MAAM,wBAAN,MAA2B;AAAA,EAc9B,OAAO,sBAAsB;AACzB,WAAO,sBAAqB;AAAA,EAChC;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAnBO,IAAM,uBAAN;AAAM,qBAGO,gBAAoC;AAH3C,qBAKO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/Alarm.js b/build/models/Alarm.js index ba6959f..cdddaf0 100644 --- a/build/models/Alarm.js +++ b/build/models/Alarm.js @@ -1,88 +1,99 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.Alarm = void 0; -/** - * Alarm. - */ -class Alarm { - static getAttributeTypeMap() { - return Alarm.attributeTypeMap; - } - constructor() { } -} -exports.Alarm = Alarm; -Alarm.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var Alarm_exports = {}; +__export(Alarm_exports, { + Alarm: () => Alarm +}); +module.exports = __toCommonJS(Alarm_exports); +const _Alarm = class { + static getAttributeTypeMap() { + return _Alarm.attributeTypeMap; + } + constructor() { + } +}; +let Alarm = _Alarm; +Alarm.discriminator = void 0; Alarm.attributeTypeMap = [ - { - name: 'id', - baseName: 'id', - type: 'string', - format: 'uuid', - }, - { - name: 'alarmNumber', - baseName: 'alarmNumber', - type: 'number', - format: 'int32', - }, - { - name: 'deviceId', - baseName: 'deviceId', - type: 'string', - format: '', - }, - { - name: 'severity', - baseName: 'severity', - type: 'number', - format: 'int32', - }, - { - name: 'status', - baseName: 'status', - type: 'Status', - format: '', - }, - { - name: 'createdDatetime', - baseName: 'createdDatetime', - type: 'string', - format: '', - }, - { - name: 'statusHistory', - baseName: 'statusHistory', - type: 'Array', - format: '', - }, - { - name: 'header', - baseName: 'header', - type: 'string', - format: '', - }, - { - name: 'description', - baseName: 'description', - type: 'string', - format: '', - }, - { - name: 'equipName', - baseName: 'equipName', - type: 'string', - format: '', - }, + { + name: "id", + baseName: "id", + type: "string", + format: "uuid" + }, + { + name: "alarmNumber", + baseName: "alarmNumber", + type: "number", + format: "int32" + }, + { + name: "deviceId", + baseName: "deviceId", + type: "string", + format: "" + }, + { + name: "severity", + baseName: "severity", + type: "number", + format: "int32" + }, + { + name: "status", + baseName: "status", + type: "Status", + format: "" + }, + { + name: "createdDatetime", + baseName: "createdDatetime", + type: "string", + format: "" + }, + { + name: "statusHistory", + baseName: "statusHistory", + type: "Array", + format: "" + }, + { + name: "header", + baseName: "header", + type: "string", + format: "" + }, + { + name: "description", + baseName: "description", + type: "string", + format: "" + }, + { + name: "equipName", + baseName: "equipName", + type: "string", + format: "" + } ]; -//# sourceMappingURL=Alarm.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + Alarm +}); +//# sourceMappingURL=Alarm.js.map diff --git a/build/models/Alarm.js.map b/build/models/Alarm.js.map index 9914883..23eeda7 100644 --- a/build/models/Alarm.js.map +++ b/build/models/Alarm.js.map @@ -1 +1,7 @@ -{"version":3,"file":"Alarm.js","sourceRoot":"","sources":["../../src/models/Alarm.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAKH;;GAEG;AACH,MAAa,KAAK;IAwGd,MAAM,CAAC,mBAAmB;QACtB,OAAO,KAAK,CAAC,gBAAgB,CAAC;IAClC,CAAC;IAED,gBAAsB,CAAC;;AA5G3B,sBA6GC;AAtEmB,mBAAa,GAAuB,SAAS,CAAC;AAE9C,sBAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,MAAM;KACjB;IACD;QACI,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,aAAa;QACvB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,OAAO;KAClB;IACD;QACI,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,OAAO;KAClB;IACD;QACI,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE,iBAAiB;QAC3B,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,eAAe;QACrB,QAAQ,EAAE,eAAe;QACzB,IAAI,EAAE,oBAAoB;QAC1B,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,aAAa;QACvB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,WAAW;QACrB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/Alarm.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { AlarmStatus } from '../models/AlarmStatus';\nimport { Status } from '../models/Status';\n\n/**\n * Alarm.\n */\nexport class Alarm {\n /**\n * The id of the alarm stored in the database.\n */\n 'id'?: string;\n /**\n * The company\u00B4s id of the alarm.\n */\n 'alarmNumber'?: number;\n /**\n * The device which the alarm belongs to.\n */\n 'deviceId'?: string | null;\n /**\n * Determines the severity of the alarm, 1 being the most severe.\n */\n 'severity'?: number;\n 'status'?: Status;\n /**\n * Date of the creation.\n */\n 'createdDatetime'?: string | null;\n /**\n * Status history.\n */\n 'statusHistory'?: Array | null;\n /**\n * Localized alarm title.\n */\n 'header'?: string | null;\n /**\n * Localized alarm description.\n */\n 'description'?: string | null;\n /**\n * The name of the equipment.\n */\n 'equipName'?: string | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'id',\n baseName: 'id',\n type: 'string',\n format: 'uuid',\n },\n {\n name: 'alarmNumber',\n baseName: 'alarmNumber',\n type: 'number',\n format: 'int32',\n },\n {\n name: 'deviceId',\n baseName: 'deviceId',\n type: 'string',\n format: '',\n },\n {\n name: 'severity',\n baseName: 'severity',\n type: 'number',\n format: 'int32',\n },\n {\n name: 'status',\n baseName: 'status',\n type: 'Status',\n format: '',\n },\n {\n name: 'createdDatetime',\n baseName: 'createdDatetime',\n type: 'string',\n format: '',\n },\n {\n name: 'statusHistory',\n baseName: 'statusHistory',\n type: 'Array',\n format: '',\n },\n {\n name: 'header',\n baseName: 'header',\n type: 'string',\n format: '',\n },\n {\n name: 'description',\n baseName: 'description',\n type: 'string',\n format: '',\n },\n {\n name: 'equipName',\n baseName: 'equipName',\n type: 'string',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return Alarm.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAkBO,MAAM,SAAN,MAAY;AAAA,EAwGf,OAAO,sBAAsB;AACzB,WAAO,OAAM;AAAA,EACjB;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AA7GO,IAAM,QAAN;AAAM,MAuCO,gBAAoC;AAvC3C,MAyCO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/AlarmSeverity.js b/build/models/AlarmSeverity.js index b343da7..8881697 100644 --- a/build/models/AlarmSeverity.js +++ b/build/models/AlarmSeverity.js @@ -1,27 +1,37 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.AlarmSeverity = void 0; -/** - * Alarm severity enum. - */ -var AlarmSeverity; -(function (AlarmSeverity) { - AlarmSeverity[AlarmSeverity["NUMBER_0"] = 0] = "NUMBER_0"; - AlarmSeverity[AlarmSeverity["NUMBER_1"] = 1] = "NUMBER_1"; - AlarmSeverity[AlarmSeverity["NUMBER_2"] = 2] = "NUMBER_2"; - AlarmSeverity[AlarmSeverity["NUMBER_3"] = 3] = "NUMBER_3"; - AlarmSeverity[AlarmSeverity["NUMBER_4"] = 4] = "NUMBER_4"; - AlarmSeverity[AlarmSeverity["NUMBER_5"] = 5] = "NUMBER_5"; -})(AlarmSeverity || (exports.AlarmSeverity = AlarmSeverity = {})); -//# sourceMappingURL=AlarmSeverity.js.map \ No newline at end of file +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var AlarmSeverity_exports = {}; +__export(AlarmSeverity_exports, { + AlarmSeverity: () => AlarmSeverity +}); +module.exports = __toCommonJS(AlarmSeverity_exports); +var AlarmSeverity = /* @__PURE__ */ ((AlarmSeverity2) => { + AlarmSeverity2[AlarmSeverity2["NUMBER_0"] = 0] = "NUMBER_0"; + AlarmSeverity2[AlarmSeverity2["NUMBER_1"] = 1] = "NUMBER_1"; + AlarmSeverity2[AlarmSeverity2["NUMBER_2"] = 2] = "NUMBER_2"; + AlarmSeverity2[AlarmSeverity2["NUMBER_3"] = 3] = "NUMBER_3"; + AlarmSeverity2[AlarmSeverity2["NUMBER_4"] = 4] = "NUMBER_4"; + AlarmSeverity2[AlarmSeverity2["NUMBER_5"] = 5] = "NUMBER_5"; + return AlarmSeverity2; +})(AlarmSeverity || {}); +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + AlarmSeverity +}); +//# sourceMappingURL=AlarmSeverity.js.map diff --git a/build/models/AlarmSeverity.js.map b/build/models/AlarmSeverity.js.map index 56afcf4..bd47056 100644 --- a/build/models/AlarmSeverity.js.map +++ b/build/models/AlarmSeverity.js.map @@ -1 +1,7 @@ -{"version":3,"file":"AlarmSeverity.js","sourceRoot":"","sources":["../../src/models/AlarmSeverity.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH;;GAEG;AACH,IAAY,aAOX;AAPD,WAAY,aAAa;IACrB,yDAAY,CAAA;IACZ,yDAAY,CAAA;IACZ,yDAAY,CAAA;IACZ,yDAAY,CAAA;IACZ,yDAAY,CAAA;IACZ,yDAAY,CAAA;AAChB,CAAC,EAPW,aAAa,6BAAb,aAAa,QAOxB"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/AlarmSeverity.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n/**\n * Alarm severity enum.\n */\nexport enum AlarmSeverity {\n NUMBER_0 = 0,\n NUMBER_1 = 1,\n NUMBER_2 = 2,\n NUMBER_3 = 3,\n NUMBER_4 = 4,\n NUMBER_5 = 5,\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAeO,IAAK,gBAAL,kBAAKA,mBAAL;AACH,EAAAA,8BAAA,cAAW,KAAX;AACA,EAAAA,8BAAA,cAAW,KAAX;AACA,EAAAA,8BAAA,cAAW,KAAX;AACA,EAAAA,8BAAA,cAAW,KAAX;AACA,EAAAA,8BAAA,cAAW,KAAX;AACA,EAAAA,8BAAA,cAAW,KAAX;AANQ,SAAAA;AAAA,GAAA;", + "names": ["AlarmSeverity"] +} diff --git a/build/models/AlarmStatus.js b/build/models/AlarmStatus.js index 03efe88..41bdc57 100644 --- a/build/models/AlarmStatus.js +++ b/build/models/AlarmStatus.js @@ -1,37 +1,51 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.AlarmStatus = void 0; -class AlarmStatus { - static getAttributeTypeMap() { - return AlarmStatus.attributeTypeMap; - } - constructor() { } -} -exports.AlarmStatus = AlarmStatus; -AlarmStatus.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var AlarmStatus_exports = {}; +__export(AlarmStatus_exports, { + AlarmStatus: () => AlarmStatus +}); +module.exports = __toCommonJS(AlarmStatus_exports); +const _AlarmStatus = class { + static getAttributeTypeMap() { + return _AlarmStatus.attributeTypeMap; + } + constructor() { + } +}; +let AlarmStatus = _AlarmStatus; +AlarmStatus.discriminator = void 0; AlarmStatus.attributeTypeMap = [ - { - name: 'status', - baseName: 'status', - type: 'Status', - format: '', - }, - { - name: 'datetime', - baseName: 'datetime', - type: 'number', - format: 'int32', - }, + { + name: "status", + baseName: "status", + type: "Status", + format: "" + }, + { + name: "datetime", + baseName: "datetime", + type: "number", + format: "int32" + } ]; -//# sourceMappingURL=AlarmStatus.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + AlarmStatus +}); +//# sourceMappingURL=AlarmStatus.js.map diff --git a/build/models/AlarmStatus.js.map b/build/models/AlarmStatus.js.map index ad2c3f4..85062dd 100644 --- a/build/models/AlarmStatus.js.map +++ b/build/models/AlarmStatus.js.map @@ -1 +1,7 @@ -{"version":3,"file":"AlarmStatus.js","sourceRoot":"","sources":["../../src/models/AlarmStatus.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAIH,MAAa,WAAW;IAwBpB,MAAM,CAAC,mBAAmB;QACtB,OAAO,WAAW,CAAC,gBAAgB,CAAC;IACxC,CAAC;IAED,gBAAsB,CAAC;;AA5B3B,kCA6BC;AAtBmB,yBAAa,GAAuB,SAAS,CAAC;AAE9C,4BAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,OAAO;KAClB;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/AlarmStatus.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { Status } from '../models/Status';\n\nexport class AlarmStatus {\n 'status'?: Status;\n /**\n * Date of the alarm.\n */\n 'datetime'?: number;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'status',\n baseName: 'status',\n type: 'Status',\n format: '',\n },\n {\n name: 'datetime',\n baseName: 'datetime',\n type: 'number',\n format: 'int32',\n },\n ];\n\n static getAttributeTypeMap() {\n return AlarmStatus.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAcO,MAAM,eAAN,MAAkB;AAAA,EAwBrB,OAAO,sBAAsB;AACzB,WAAO,aAAY;AAAA,EACvB;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AA7BO,IAAM,cAAN;AAAM,YAOO,gBAAoC;AAP3C,YASO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/AlarmsPaged.js b/build/models/AlarmsPaged.js index 55d85c9..f32ce9a 100644 --- a/build/models/AlarmsPaged.js +++ b/build/models/AlarmsPaged.js @@ -1,52 +1,63 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.AlarmsPaged = void 0; -/** - * Alarms paged. - */ -class AlarmsPaged { - static getAttributeTypeMap() { - return AlarmsPaged.attributeTypeMap; - } - constructor() { } -} -exports.AlarmsPaged = AlarmsPaged; -AlarmsPaged.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var AlarmsPaged_exports = {}; +__export(AlarmsPaged_exports, { + AlarmsPaged: () => AlarmsPaged +}); +module.exports = __toCommonJS(AlarmsPaged_exports); +const _AlarmsPaged = class { + static getAttributeTypeMap() { + return _AlarmsPaged.attributeTypeMap; + } + constructor() { + } +}; +let AlarmsPaged = _AlarmsPaged; +AlarmsPaged.discriminator = void 0; AlarmsPaged.attributeTypeMap = [ - { - name: 'page', - baseName: 'page', - type: 'number', - format: 'int32', - }, - { - name: 'itemsPerPage', - baseName: 'itemsPerPage', - type: 'number', - format: 'int32', - }, - { - name: 'numItems', - baseName: 'numItems', - type: 'number', - format: 'int32', - }, - { - name: 'notifications', - baseName: 'notifications', - type: 'Array', - format: '', - }, + { + name: "page", + baseName: "page", + type: "number", + format: "int32" + }, + { + name: "itemsPerPage", + baseName: "itemsPerPage", + type: "number", + format: "int32" + }, + { + name: "numItems", + baseName: "numItems", + type: "number", + format: "int32" + }, + { + name: "notifications", + baseName: "notifications", + type: "Array", + format: "" + } ]; -//# sourceMappingURL=AlarmsPaged.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + AlarmsPaged +}); +//# sourceMappingURL=AlarmsPaged.js.map diff --git a/build/models/AlarmsPaged.js.map b/build/models/AlarmsPaged.js.map index 051f966..2413676 100644 --- a/build/models/AlarmsPaged.js.map +++ b/build/models/AlarmsPaged.js.map @@ -1 +1,7 @@ -{"version":3,"file":"AlarmsPaged.js","sourceRoot":"","sources":["../../src/models/AlarmsPaged.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAIH;;GAEG;AACH,MAAa,WAAW;IA+CpB,MAAM,CAAC,mBAAmB;QACtB,OAAO,WAAW,CAAC,gBAAgB,CAAC;IACxC,CAAC;IAED,gBAAsB,CAAC;;AAnD3B,kCAoDC;AAlCmB,yBAAa,GAAuB,SAAS,CAAC;AAE9C,4BAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,OAAO;KAClB;IACD;QACI,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,cAAc;QACxB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,OAAO;KAClB;IACD;QACI,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,OAAO;KAClB;IACD;QACI,IAAI,EAAE,eAAe;QACrB,QAAQ,EAAE,eAAe;QACzB,IAAI,EAAE,cAAc;QACpB,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/AlarmsPaged.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { Alarm } from '../models/Alarm';\n\n/**\n * Alarms paged.\n */\nexport class AlarmsPaged {\n /**\n * Page.\n */\n 'page'?: number;\n /**\n * Items per page.\n */\n 'itemsPerPage'?: number;\n /**\n * Num items.\n */\n 'numItems'?: number;\n /**\n * Notifications.\n */\n 'notifications'?: Array | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'page',\n baseName: 'page',\n type: 'number',\n format: 'int32',\n },\n {\n name: 'itemsPerPage',\n baseName: 'itemsPerPage',\n type: 'number',\n format: 'int32',\n },\n {\n name: 'numItems',\n baseName: 'numItems',\n type: 'number',\n format: 'int32',\n },\n {\n name: 'notifications',\n baseName: 'notifications',\n type: 'Array',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return AlarmsPaged.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBO,MAAM,eAAN,MAAkB;AAAA,EA+CrB,OAAO,sBAAsB;AACzB,WAAO,aAAY;AAAA,EACvB;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AApDO,IAAM,cAAN;AAAM,YAkBO,gBAAoC;AAlB3C,YAoBO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/AvailableMethods.js b/build/models/AvailableMethods.js index 16d0cf7..43f2ae4 100644 --- a/build/models/AvailableMethods.js +++ b/build/models/AvailableMethods.js @@ -1,181 +1,195 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.AvailableMethods = void 0; -class AvailableMethods { - static getAttributeTypeMap() { - return AvailableMethods.attributeTypeMap; - } - constructor() { } -} -exports.AvailableMethods = AvailableMethods; -AvailableMethods.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var AvailableMethods_exports = {}; +__export(AvailableMethods_exports, { + AvailableMethods: () => AvailableMethods +}); +module.exports = __toCommonJS(AvailableMethods_exports); +const _AvailableMethods = class { + static getAttributeTypeMap() { + return _AvailableMethods.attributeTypeMap; + } + constructor() { + } +}; +let AvailableMethods = _AvailableMethods; +AvailableMethods.discriminator = void 0; AvailableMethods.attributeTypeMap = [ - { - name: 'settings', - baseName: 'settings', - type: 'boolean', - format: '', - }, - { - name: 'reboot', - baseName: 'reboot', - type: 'boolean', - format: '', - }, - { - name: 'forcesync', - baseName: 'forcesync', - type: 'boolean', - format: '', - }, - { - name: 'forceUpdate', - baseName: 'forceUpdate', - type: 'boolean', - format: '', - }, - { - name: 'requestUpdate', - baseName: 'requestUpdate', - type: 'boolean', - format: '', - }, - { - name: 'resetAlarm', - baseName: 'resetAlarm', - type: 'boolean', - format: '', - }, - { - name: 'triggerEvent', - baseName: 'triggerEvent', - type: 'boolean', - format: '', - }, - { - name: 'getMenu', - baseName: 'getMenu', - type: 'boolean', - format: '', - }, - { - name: 'getMenuChain', - baseName: 'getMenuChain', - type: 'boolean', - format: '', - }, - { - name: 'getGuideQuestion', - baseName: 'getGuideQuestion', - type: 'boolean', - format: '', - }, - { - name: 'sendHaystack', - baseName: 'sendHaystack', - type: 'boolean', - format: '', - }, - { - name: 'setSmartMode', - baseName: 'setSmartMode', - type: 'boolean', - format: '', - }, - { - name: 'setAidMode', - baseName: 'setAidMode', - type: 'boolean', - format: '', - }, - { - name: 'getZones', - baseName: 'getZones', - type: 'boolean', - format: '', - }, - { - name: 'processIntent', - baseName: 'processIntent', - type: 'boolean', - format: '', - }, - { - name: 'boostHotWater', - baseName: 'boostHotWater', - type: 'boolean', - format: '', - }, - { - name: 'boostVentilation', - baseName: 'boostVentilation', - type: 'boolean', - format: '', - }, - { - name: 'getScheduleConfig', - baseName: 'getScheduleConfig', - type: 'boolean', - format: '', - }, - { - name: 'getScheduleModes', - baseName: 'getScheduleModes', - type: 'boolean', - format: '', - }, - { - name: 'getScheduleWeekly', - baseName: 'getScheduleWeekly', - type: 'boolean', - format: '', - }, - { - name: 'getScheduleVacation', - baseName: 'getScheduleVacation', - type: 'boolean', - format: '', - }, - { - name: 'setScheduleModes', - baseName: 'setScheduleModes', - type: 'boolean', - format: '', - }, - { - name: 'setScheduleWeekly', - baseName: 'setScheduleWeekly', - type: 'boolean', - format: '', - }, - { - name: 'setScheduleOverride', - baseName: 'setScheduleOverride', - type: 'boolean', - format: '', - }, - { - name: 'setScheduleVacation', - baseName: 'setScheduleVacation', - type: 'boolean', - format: '', - }, - { - name: 'setVentilationMode', - baseName: 'setVentilationMode', - type: 'boolean', - format: '', - }, + { + name: "settings", + baseName: "settings", + type: "boolean", + format: "" + }, + { + name: "reboot", + baseName: "reboot", + type: "boolean", + format: "" + }, + { + name: "forcesync", + baseName: "forcesync", + type: "boolean", + format: "" + }, + { + name: "forceUpdate", + baseName: "forceUpdate", + type: "boolean", + format: "" + }, + { + name: "requestUpdate", + baseName: "requestUpdate", + type: "boolean", + format: "" + }, + { + name: "resetAlarm", + baseName: "resetAlarm", + type: "boolean", + format: "" + }, + { + name: "triggerEvent", + baseName: "triggerEvent", + type: "boolean", + format: "" + }, + { + name: "getMenu", + baseName: "getMenu", + type: "boolean", + format: "" + }, + { + name: "getMenuChain", + baseName: "getMenuChain", + type: "boolean", + format: "" + }, + { + name: "getGuideQuestion", + baseName: "getGuideQuestion", + type: "boolean", + format: "" + }, + { + name: "sendHaystack", + baseName: "sendHaystack", + type: "boolean", + format: "" + }, + { + name: "setSmartMode", + baseName: "setSmartMode", + type: "boolean", + format: "" + }, + { + name: "setAidMode", + baseName: "setAidMode", + type: "boolean", + format: "" + }, + { + name: "getZones", + baseName: "getZones", + type: "boolean", + format: "" + }, + { + name: "processIntent", + baseName: "processIntent", + type: "boolean", + format: "" + }, + { + name: "boostHotWater", + baseName: "boostHotWater", + type: "boolean", + format: "" + }, + { + name: "boostVentilation", + baseName: "boostVentilation", + type: "boolean", + format: "" + }, + { + name: "getScheduleConfig", + baseName: "getScheduleConfig", + type: "boolean", + format: "" + }, + { + name: "getScheduleModes", + baseName: "getScheduleModes", + type: "boolean", + format: "" + }, + { + name: "getScheduleWeekly", + baseName: "getScheduleWeekly", + type: "boolean", + format: "" + }, + { + name: "getScheduleVacation", + baseName: "getScheduleVacation", + type: "boolean", + format: "" + }, + { + name: "setScheduleModes", + baseName: "setScheduleModes", + type: "boolean", + format: "" + }, + { + name: "setScheduleWeekly", + baseName: "setScheduleWeekly", + type: "boolean", + format: "" + }, + { + name: "setScheduleOverride", + baseName: "setScheduleOverride", + type: "boolean", + format: "" + }, + { + name: "setScheduleVacation", + baseName: "setScheduleVacation", + type: "boolean", + format: "" + }, + { + name: "setVentilationMode", + baseName: "setVentilationMode", + type: "boolean", + format: "" + } ]; -//# sourceMappingURL=AvailableMethods.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + AvailableMethods +}); +//# sourceMappingURL=AvailableMethods.js.map diff --git a/build/models/AvailableMethods.js.map b/build/models/AvailableMethods.js.map index 1b0de37..1c5d3b9 100644 --- a/build/models/AvailableMethods.js.map +++ b/build/models/AvailableMethods.js.map @@ -1 +1,7 @@ -{"version":3,"file":"AvailableMethods.js","sourceRoot":"","sources":["../../src/models/AvailableMethods.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,MAAa,gBAAgB;IA6LzB,MAAM,CAAC,mBAAmB;QACtB,OAAO,gBAAgB,CAAC,gBAAgB,CAAC;IAC7C,CAAC;IAED,gBAAsB,CAAC;;AAjM3B,4CAkMC;AAtKmB,8BAAa,GAAuB,SAAS,CAAC;AAE9C,iCAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,WAAW;QACrB,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,aAAa;QACvB,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,eAAe;QACrB,QAAQ,EAAE,eAAe;QACzB,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,cAAc;QACxB,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,cAAc;QACxB,IAAI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IAAI,EAAE,qBAAqB;QAC3B,QAAQ,EAAE,qBAAqB;QAC/B,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,kBAAkB;QACxB,QAAQ,EAAE,kBAAkB;QAC5B,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,mBAAmB;QACzB,QAAQ,EAAE,mBAAmB;QAC7B,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,qBAAqB;QAC3B,QAAQ,EAAE,qBAAqB;QAC/B,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,qBAAqB;QAC3B,QAAQ,EAAE,qBAAqB;QAC/B,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,oBAAoB;QAC1B,QAAQ,EAAE,oBAAoB;QAC9B,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/AvailableMethods.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nexport class AvailableMethods {\n 'settings'?: boolean;\n 'reboot'?: boolean;\n 'forcesync'?: boolean;\n 'forceUpdate'?: boolean;\n 'requestUpdate'?: boolean;\n 'resetAlarm'?: boolean;\n 'triggerEvent'?: boolean;\n 'getMenu'?: boolean;\n 'getMenuChain'?: boolean;\n 'getGuideQuestion'?: boolean;\n 'sendHaystack'?: boolean;\n 'setSmartMode'?: boolean;\n 'setAidMode'?: boolean;\n 'getZones'?: boolean;\n 'processIntent'?: boolean;\n 'boostHotWater'?: boolean;\n 'boostVentilation'?: boolean;\n 'getScheduleConfig'?: boolean;\n 'getScheduleModes'?: boolean;\n 'getScheduleWeekly'?: boolean;\n 'getScheduleVacation'?: boolean;\n 'setScheduleModes'?: boolean;\n 'setScheduleWeekly'?: boolean;\n 'setScheduleOverride'?: boolean;\n 'setScheduleVacation'?: boolean;\n 'setVentilationMode'?: boolean;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'settings',\n baseName: 'settings',\n type: 'boolean',\n format: '',\n },\n {\n name: 'reboot',\n baseName: 'reboot',\n type: 'boolean',\n format: '',\n },\n {\n name: 'forcesync',\n baseName: 'forcesync',\n type: 'boolean',\n format: '',\n },\n {\n name: 'forceUpdate',\n baseName: 'forceUpdate',\n type: 'boolean',\n format: '',\n },\n {\n name: 'requestUpdate',\n baseName: 'requestUpdate',\n type: 'boolean',\n format: '',\n },\n {\n name: 'resetAlarm',\n baseName: 'resetAlarm',\n type: 'boolean',\n format: '',\n },\n {\n name: 'triggerEvent',\n baseName: 'triggerEvent',\n type: 'boolean',\n format: '',\n },\n {\n name: 'getMenu',\n baseName: 'getMenu',\n type: 'boolean',\n format: '',\n },\n {\n name: 'getMenuChain',\n baseName: 'getMenuChain',\n type: 'boolean',\n format: '',\n },\n {\n name: 'getGuideQuestion',\n baseName: 'getGuideQuestion',\n type: 'boolean',\n format: '',\n },\n {\n name: 'sendHaystack',\n baseName: 'sendHaystack',\n type: 'boolean',\n format: '',\n },\n {\n name: 'setSmartMode',\n baseName: 'setSmartMode',\n type: 'boolean',\n format: '',\n },\n {\n name: 'setAidMode',\n baseName: 'setAidMode',\n type: 'boolean',\n format: '',\n },\n {\n name: 'getZones',\n baseName: 'getZones',\n type: 'boolean',\n format: '',\n },\n {\n name: 'processIntent',\n baseName: 'processIntent',\n type: 'boolean',\n format: '',\n },\n {\n name: 'boostHotWater',\n baseName: 'boostHotWater',\n type: 'boolean',\n format: '',\n },\n {\n name: 'boostVentilation',\n baseName: 'boostVentilation',\n type: 'boolean',\n format: '',\n },\n {\n name: 'getScheduleConfig',\n baseName: 'getScheduleConfig',\n type: 'boolean',\n format: '',\n },\n {\n name: 'getScheduleModes',\n baseName: 'getScheduleModes',\n type: 'boolean',\n format: '',\n },\n {\n name: 'getScheduleWeekly',\n baseName: 'getScheduleWeekly',\n type: 'boolean',\n format: '',\n },\n {\n name: 'getScheduleVacation',\n baseName: 'getScheduleVacation',\n type: 'boolean',\n format: '',\n },\n {\n name: 'setScheduleModes',\n baseName: 'setScheduleModes',\n type: 'boolean',\n format: '',\n },\n {\n name: 'setScheduleWeekly',\n baseName: 'setScheduleWeekly',\n type: 'boolean',\n format: '',\n },\n {\n name: 'setScheduleOverride',\n baseName: 'setScheduleOverride',\n type: 'boolean',\n format: '',\n },\n {\n name: 'setScheduleVacation',\n baseName: 'setScheduleVacation',\n type: 'boolean',\n format: '',\n },\n {\n name: 'setVentilationMode',\n baseName: 'setVentilationMode',\n type: 'boolean',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return AvailableMethods.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAYO,MAAM,oBAAN,MAAuB;AAAA,EA6L1B,OAAO,sBAAsB;AACzB,WAAO,kBAAiB;AAAA,EAC5B;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAlMO,IAAM,mBAAN;AAAM,iBA4BO,gBAAoC;AA5B3C,iBA8BO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QA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;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/CloudToDeviceMethodResult.js b/build/models/CloudToDeviceMethodResult.js index 2789648..be2e215 100644 --- a/build/models/CloudToDeviceMethodResult.js +++ b/build/models/CloudToDeviceMethodResult.js @@ -1,40 +1,51 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.CloudToDeviceMethodResult = void 0; -/** - * Represents the Device Method Invocation Results. - */ -class CloudToDeviceMethodResult { - static getAttributeTypeMap() { - return CloudToDeviceMethodResult.attributeTypeMap; - } - constructor() { } -} -exports.CloudToDeviceMethodResult = CloudToDeviceMethodResult; -CloudToDeviceMethodResult.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var CloudToDeviceMethodResult_exports = {}; +__export(CloudToDeviceMethodResult_exports, { + CloudToDeviceMethodResult: () => CloudToDeviceMethodResult +}); +module.exports = __toCommonJS(CloudToDeviceMethodResult_exports); +const _CloudToDeviceMethodResult = class { + static getAttributeTypeMap() { + return _CloudToDeviceMethodResult.attributeTypeMap; + } + constructor() { + } +}; +let CloudToDeviceMethodResult = _CloudToDeviceMethodResult; +CloudToDeviceMethodResult.discriminator = void 0; CloudToDeviceMethodResult.attributeTypeMap = [ - { - name: 'status', - baseName: 'status', - type: 'number', - format: 'int32', - }, - { - name: 'payload', - baseName: 'payload', - type: 'any', - format: '', - }, + { + name: "status", + baseName: "status", + type: "number", + format: "int32" + }, + { + name: "payload", + baseName: "payload", + type: "any", + format: "" + } ]; -//# sourceMappingURL=CloudToDeviceMethodResult.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + CloudToDeviceMethodResult +}); +//# sourceMappingURL=CloudToDeviceMethodResult.js.map diff --git a/build/models/CloudToDeviceMethodResult.js.map b/build/models/CloudToDeviceMethodResult.js.map index 23d2d6a..fd7e4c0 100644 --- a/build/models/CloudToDeviceMethodResult.js.map +++ b/build/models/CloudToDeviceMethodResult.js.map @@ -1 +1,7 @@ -{"version":3,"file":"CloudToDeviceMethodResult.js","sourceRoot":"","sources":["../../src/models/CloudToDeviceMethodResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH;;GAEG;AACH,MAAa,yBAAyB;IAwBlC,MAAM,CAAC,mBAAmB;QACtB,OAAO,yBAAyB,CAAC,gBAAgB,CAAC;IACtD,CAAC;IAED,gBAAsB,CAAC;;AA5B3B,8DA6BC;AAtBmB,uCAAa,GAAuB,SAAS,CAAC;AAE9C,0CAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,OAAO;KAClB;IACD;QACI,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/CloudToDeviceMethodResult.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n/**\n * Represents the Device Method Invocation Results.\n */\nexport class CloudToDeviceMethodResult {\n /**\n * Gets or sets the status of device method invocation.\n */\n 'status'?: number;\n 'payload'?: any | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'status',\n baseName: 'status',\n type: 'number',\n format: 'int32',\n },\n {\n name: 'payload',\n baseName: 'payload',\n type: 'any',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return CloudToDeviceMethodResult.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAeO,MAAM,6BAAN,MAAgC;AAAA,EAwBnC,OAAO,sBAAsB;AACzB,WAAO,2BAA0B;AAAA,EACrC;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AA7BO,IAAM,4BAAN;AAAM,0BAOO,gBAAoC;AAP3C,0BASO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/Country.js b/build/models/Country.js index 303d322..f6c8df5 100644 --- a/build/models/Country.js +++ b/build/models/Country.js @@ -1,34 +1,45 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.Country = void 0; -/** - * Country model - */ -class Country { - static getAttributeTypeMap() { - return Country.attributeTypeMap; - } - constructor() { } -} -exports.Country = Country; -Country.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var Country_exports = {}; +__export(Country_exports, { + Country: () => Country +}); +module.exports = __toCommonJS(Country_exports); +const _Country = class { + static getAttributeTypeMap() { + return _Country.attributeTypeMap; + } + constructor() { + } +}; +let Country = _Country; +Country.discriminator = void 0; Country.attributeTypeMap = [ - { - name: 'name', - baseName: 'name', - type: 'string', - format: '', - }, + { + name: "name", + baseName: "name", + type: "string", + format: "" + } ]; -//# sourceMappingURL=Country.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + Country +}); +//# sourceMappingURL=Country.js.map diff --git a/build/models/Country.js.map b/build/models/Country.js.map index bfbcee2..a8ca49b 100644 --- a/build/models/Country.js.map +++ b/build/models/Country.js.map @@ -1 +1,7 @@ -{"version":3,"file":"Country.js","sourceRoot":"","sources":["../../src/models/Country.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH;;GAEG;AACH,MAAa,OAAO;IAiBhB,MAAM,CAAC,mBAAmB;QACtB,OAAO,OAAO,CAAC,gBAAgB,CAAC;IACpC,CAAC;IAED,gBAAsB,CAAC;;AArB3B,0BAsBC;AAhBmB,qBAAa,GAAuB,SAAS,CAAC;AAE9C,wBAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/Country.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n/**\n * Country model\n */\nexport class Country {\n /**\n * Id\n */\n 'name'?: string | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'name',\n baseName: 'name',\n type: 'string',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return Country.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAeO,MAAM,WAAN,MAAc;AAAA,EAiBjB,OAAO,sBAAsB;AACzB,WAAO,SAAQ;AAAA,EACnB;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAtBO,IAAM,UAAN;AAAM,QAMO,gBAAoC;AAN3C,QAQO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/Curve.js b/build/models/Curve.js index 92ae7dd..23ad46e 100644 --- a/build/models/Curve.js +++ b/build/models/Curve.js @@ -1,40 +1,51 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.Curve = void 0; -/** - * Curve. - */ -class Curve { - static getAttributeTypeMap() { - return Curve.attributeTypeMap; - } - constructor() { } -} -exports.Curve = Curve; -Curve.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var Curve_exports = {}; +__export(Curve_exports, { + Curve: () => Curve +}); +module.exports = __toCommonJS(Curve_exports); +const _Curve = class { + static getAttributeTypeMap() { + return _Curve.attributeTypeMap; + } + constructor() { + } +}; +let Curve = _Curve; +Curve.discriminator = void 0; Curve.attributeTypeMap = [ - { - name: 'parameter', - baseName: 'parameter', - type: 'ParameterData', - format: '', - }, - { - name: 'data', - baseName: 'data', - type: 'Array', - format: '', - }, + { + name: "parameter", + baseName: "parameter", + type: "ParameterData", + format: "" + }, + { + name: "data", + baseName: "data", + type: "Array", + format: "" + } ]; -//# sourceMappingURL=Curve.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + Curve +}); +//# sourceMappingURL=Curve.js.map diff --git a/build/models/Curve.js.map b/build/models/Curve.js.map index c19c6fd..466e2a8 100644 --- a/build/models/Curve.js.map +++ b/build/models/Curve.js.map @@ -1 +1,7 @@ -{"version":3,"file":"Curve.js","sourceRoot":"","sources":["../../src/models/Curve.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAKH;;GAEG;AACH,MAAa,KAAK;IAwBd,MAAM,CAAC,mBAAmB;QACtB,OAAO,KAAK,CAAC,gBAAgB,CAAC;IAClC,CAAC;IAED,gBAAsB,CAAC;;AA5B3B,sBA6BC;AAtBmB,mBAAa,GAAuB,SAAS,CAAC;AAE9C,sBAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,WAAW;QACrB,IAAI,EAAE,eAAe;QACrB,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,kBAAkB;QACxB,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/Curve.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { DataPoint } from '../models/DataPoint';\nimport { ParameterData } from '../models/ParameterData';\n\n/**\n * Curve.\n */\nexport class Curve {\n 'parameter'?: ParameterData;\n /**\n * List of curve points.\n */\n 'data'?: Array | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'parameter',\n baseName: 'parameter',\n type: 'ParameterData',\n format: '',\n },\n {\n name: 'data',\n baseName: 'data',\n type: 'Array',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return Curve.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAkBO,MAAM,SAAN,MAAY;AAAA,EAwBf,OAAO,sBAAsB;AACzB,WAAO,OAAM;AAAA,EACjB;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AA7BO,IAAM,QAAN;AAAM,MAOO,gBAAoC;AAP3C,MASO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/DataPoint.js b/build/models/DataPoint.js index 708eaf2..458fec4 100644 --- a/build/models/DataPoint.js +++ b/build/models/DataPoint.js @@ -1,46 +1,57 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.DataPoint = void 0; -/** - * Device data point. - */ -class DataPoint { - static getAttributeTypeMap() { - return DataPoint.attributeTypeMap; - } - constructor() { } -} -exports.DataPoint = DataPoint; -DataPoint.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var DataPoint_exports = {}; +__export(DataPoint_exports, { + DataPoint: () => DataPoint +}); +module.exports = __toCommonJS(DataPoint_exports); +const _DataPoint = class { + static getAttributeTypeMap() { + return _DataPoint.attributeTypeMap; + } + constructor() { + } +}; +let DataPoint = _DataPoint; +DataPoint.discriminator = void 0; DataPoint.attributeTypeMap = [ - { - name: 'timestamp', - baseName: 'timestamp', - type: 'Date', - format: 'date-time', - }, - { - name: 'value', - baseName: 'value', - type: 'number', - format: 'double', - }, - { - name: 'pointId', - baseName: 'pointId', - type: 'string', - format: '', - }, + { + name: "timestamp", + baseName: "timestamp", + type: "Date", + format: "date-time" + }, + { + name: "value", + baseName: "value", + type: "number", + format: "double" + }, + { + name: "pointId", + baseName: "pointId", + type: "string", + format: "" + } ]; -//# sourceMappingURL=DataPoint.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + DataPoint +}); +//# sourceMappingURL=DataPoint.js.map diff --git a/build/models/DataPoint.js.map b/build/models/DataPoint.js.map index 52ff7d3..ca0f631 100644 --- a/build/models/DataPoint.js.map +++ b/build/models/DataPoint.js.map @@ -1 +1,7 @@ -{"version":3,"file":"DataPoint.js","sourceRoot":"","sources":["../../src/models/DataPoint.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH;;GAEG;AACH,MAAa,SAAS;IAqClB,MAAM,CAAC,mBAAmB;QACtB,OAAO,SAAS,CAAC,gBAAgB,CAAC;IACtC,CAAC;IAED,gBAAsB,CAAC;;AAzC3B,8BA0CC;AA5BmB,uBAAa,GAAuB,SAAS,CAAC;AAE9C,0BAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,WAAW;QACrB,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,WAAW;KACtB;IACD;QACI,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,QAAQ;KACnB;IACD;QACI,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/DataPoint.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n/**\n * Device data point.\n */\nexport class DataPoint {\n /**\n * Timestamp property.\n */\n 'timestamp'?: Date;\n /**\n * Value property.\n */\n 'value'?: number | null;\n /**\n * The id of the device variable.\n */\n 'pointId'?: string | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'timestamp',\n baseName: 'timestamp',\n type: 'Date',\n format: 'date-time',\n },\n {\n name: 'value',\n baseName: 'value',\n type: 'number',\n format: 'double',\n },\n {\n name: 'pointId',\n baseName: 'pointId',\n type: 'string',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return DataPoint.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAeO,MAAM,aAAN,MAAgB;AAAA,EAqCnB,OAAO,sBAAsB;AACzB,WAAO,WAAU;AAAA,EACrB;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AA1CO,IAAM,YAAN;AAAM,UAcO,gBAAoC;AAd3C,UAgBO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/DeviceCategoriesModel.js b/build/models/DeviceCategoriesModel.js index be592e2..4f421e3 100644 --- a/build/models/DeviceCategoriesModel.js +++ b/build/models/DeviceCategoriesModel.js @@ -1,40 +1,51 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.DeviceCategoriesModel = void 0; -/** - * Device equip model. - */ -class DeviceCategoriesModel { - static getAttributeTypeMap() { - return DeviceCategoriesModel.attributeTypeMap; - } - constructor() { } -} -exports.DeviceCategoriesModel = DeviceCategoriesModel; -DeviceCategoriesModel.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var DeviceCategoriesModel_exports = {}; +__export(DeviceCategoriesModel_exports, { + DeviceCategoriesModel: () => DeviceCategoriesModel +}); +module.exports = __toCommonJS(DeviceCategoriesModel_exports); +const _DeviceCategoriesModel = class { + static getAttributeTypeMap() { + return _DeviceCategoriesModel.attributeTypeMap; + } + constructor() { + } +}; +let DeviceCategoriesModel = _DeviceCategoriesModel; +DeviceCategoriesModel.discriminator = void 0; DeviceCategoriesModel.attributeTypeMap = [ - { - name: 'deviceId', - baseName: 'deviceId', - type: 'string', - format: '', - }, - { - name: 'categories', - baseName: 'categories', - type: 'Array', - format: '', - }, + { + name: "deviceId", + baseName: "deviceId", + type: "string", + format: "" + }, + { + name: "categories", + baseName: "categories", + type: "Array", + format: "" + } ]; -//# sourceMappingURL=DeviceCategoriesModel.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + DeviceCategoriesModel +}); +//# sourceMappingURL=DeviceCategoriesModel.js.map diff --git a/build/models/DeviceCategoriesModel.js.map b/build/models/DeviceCategoriesModel.js.map index 652521e..ad981e5 100644 --- a/build/models/DeviceCategoriesModel.js.map +++ b/build/models/DeviceCategoriesModel.js.map @@ -1 +1,7 @@ -{"version":3,"file":"DeviceCategoriesModel.js","sourceRoot":"","sources":["../../src/models/DeviceCategoriesModel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAIH;;GAEG;AACH,MAAa,qBAAqB;IA2B9B,MAAM,CAAC,mBAAmB;QACtB,OAAO,qBAAqB,CAAC,gBAAgB,CAAC;IAClD,CAAC;IAED,gBAAsB,CAAC;;AA/B3B,sDAgCC;AAtBmB,mCAAa,GAAuB,SAAS,CAAC;AAE9C,sCAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,uBAAuB;QAC7B,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/DeviceCategoriesModel.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { DeviceCategory } from '../models/DeviceCategory';\n\n/**\n * Device equip model.\n */\nexport class DeviceCategoriesModel {\n /**\n * Device id.\n */\n 'deviceId'?: string | null;\n /**\n * Categories.\n */\n 'categories'?: Array | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'deviceId',\n baseName: 'deviceId',\n type: 'string',\n format: '',\n },\n {\n name: 'categories',\n baseName: 'categories',\n type: 'Array',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return DeviceCategoriesModel.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBO,MAAM,yBAAN,MAA4B;AAAA,EA2B/B,OAAO,sBAAsB;AACzB,WAAO,uBAAsB;AAAA,EACjC;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAhCO,IAAM,wBAAN;AAAM,sBAUO,gBAAoC;AAV3C,sBAYO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/DeviceCategory.js b/build/models/DeviceCategory.js index ddf6f41..594a513 100644 --- a/build/models/DeviceCategory.js +++ b/build/models/DeviceCategory.js @@ -1,40 +1,51 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.DeviceCategory = void 0; -/** - * Equip model. - */ -class DeviceCategory { - static getAttributeTypeMap() { - return DeviceCategory.attributeTypeMap; - } - constructor() { } -} -exports.DeviceCategory = DeviceCategory; -DeviceCategory.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var DeviceCategory_exports = {}; +__export(DeviceCategory_exports, { + DeviceCategory: () => DeviceCategory +}); +module.exports = __toCommonJS(DeviceCategory_exports); +const _DeviceCategory = class { + static getAttributeTypeMap() { + return _DeviceCategory.attributeTypeMap; + } + constructor() { + } +}; +let DeviceCategory = _DeviceCategory; +DeviceCategory.discriminator = void 0; DeviceCategory.attributeTypeMap = [ - { - name: 'categoryName', - baseName: 'categoryName', - type: 'string', - format: '', - }, - { - name: 'parameters', - baseName: 'parameters', - type: 'Array', - format: '', - }, + { + name: "categoryName", + baseName: "categoryName", + type: "string", + format: "" + }, + { + name: "parameters", + baseName: "parameters", + type: "Array", + format: "" + } ]; -//# sourceMappingURL=DeviceCategory.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + DeviceCategory +}); +//# sourceMappingURL=DeviceCategory.js.map diff --git a/build/models/DeviceCategory.js.map b/build/models/DeviceCategory.js.map index f05c663..7bb30f5 100644 --- a/build/models/DeviceCategory.js.map +++ b/build/models/DeviceCategory.js.map @@ -1 +1,7 @@ -{"version":3,"file":"DeviceCategory.js","sourceRoot":"","sources":["../../src/models/DeviceCategory.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAIH;;GAEG;AACH,MAAa,cAAc;IA2BvB,MAAM,CAAC,mBAAmB;QACtB,OAAO,cAAc,CAAC,gBAAgB,CAAC;IAC3C,CAAC;IAED,gBAAsB,CAAC;;AA/B3B,wCAgCC;AAtBmB,4BAAa,GAAuB,SAAS,CAAC;AAE9C,+BAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,cAAc;QACxB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,wBAAwB;QAC9B,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/DeviceCategory.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { ParameterDetail } from '../models/ParameterDetail';\n\n/**\n * Equip model.\n */\nexport class DeviceCategory {\n /**\n * Category name.\n */\n 'categoryName'?: string | null;\n /**\n * Parameters.\n */\n 'parameters'?: Array | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'categoryName',\n baseName: 'categoryName',\n type: 'string',\n format: '',\n },\n {\n name: 'parameters',\n baseName: 'parameters',\n type: 'Array',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return DeviceCategory.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBO,MAAM,kBAAN,MAAqB;AAAA,EA2BxB,OAAO,sBAAsB;AACzB,WAAO,gBAAe;AAAA,EAC1B;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAhCO,IAAM,iBAAN;AAAM,eAUO,gBAAoC;AAV3C,eAYO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/DeviceCategoryModel.js b/build/models/DeviceCategoryModel.js index bd766e9..d7c32b6 100644 --- a/build/models/DeviceCategoryModel.js +++ b/build/models/DeviceCategoryModel.js @@ -1,40 +1,51 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.DeviceCategoryModel = void 0; -/** - * Device equip model. - */ -class DeviceCategoryModel { - static getAttributeTypeMap() { - return DeviceCategoryModel.attributeTypeMap; - } - constructor() { } -} -exports.DeviceCategoryModel = DeviceCategoryModel; -DeviceCategoryModel.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var DeviceCategoryModel_exports = {}; +__export(DeviceCategoryModel_exports, { + DeviceCategoryModel: () => DeviceCategoryModel +}); +module.exports = __toCommonJS(DeviceCategoryModel_exports); +const _DeviceCategoryModel = class { + static getAttributeTypeMap() { + return _DeviceCategoryModel.attributeTypeMap; + } + constructor() { + } +}; +let DeviceCategoryModel = _DeviceCategoryModel; +DeviceCategoryModel.discriminator = void 0; DeviceCategoryModel.attributeTypeMap = [ - { - name: 'deviceId', - baseName: 'deviceId', - type: 'string', - format: '', - }, - { - name: 'categories', - baseName: 'categories', - type: 'Array', - format: '', - }, + { + name: "deviceId", + baseName: "deviceId", + type: "string", + format: "" + }, + { + name: "categories", + baseName: "categories", + type: "Array", + format: "" + } ]; -//# sourceMappingURL=DeviceCategoryModel.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + DeviceCategoryModel +}); +//# sourceMappingURL=DeviceCategoryModel.js.map diff --git a/build/models/DeviceCategoryModel.js.map b/build/models/DeviceCategoryModel.js.map index 4b2d2ae..a5c0a84 100644 --- a/build/models/DeviceCategoryModel.js.map +++ b/build/models/DeviceCategoryModel.js.map @@ -1 +1,7 @@ -{"version":3,"file":"DeviceCategoryModel.js","sourceRoot":"","sources":["../../src/models/DeviceCategoryModel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAIH;;GAEG;AACH,MAAa,mBAAmB;IA2B5B,MAAM,CAAC,mBAAmB;QACtB,OAAO,mBAAmB,CAAC,gBAAgB,CAAC;IAChD,CAAC;IAED,gBAAsB,CAAC;;AA/B3B,kDAgCC;AAtBmB,iCAAa,GAAuB,SAAS,CAAC;AAE9C,oCAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,uBAAuB;QAC7B,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/DeviceCategoryModel.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { DeviceCategory } from '../models/DeviceCategory';\n\n/**\n * Device equip model.\n */\nexport class DeviceCategoryModel {\n /**\n * Device id.\n */\n 'deviceId'?: string | null;\n /**\n * Categories.\n */\n 'categories'?: Array | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'deviceId',\n baseName: 'deviceId',\n type: 'string',\n format: '',\n },\n {\n name: 'categories',\n baseName: 'categories',\n type: 'Array',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return DeviceCategoryModel.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBO,MAAM,uBAAN,MAA0B;AAAA,EA2B7B,OAAO,sBAAsB;AACzB,WAAO,qBAAoB;AAAA,EAC/B;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAhCO,IAAM,sBAAN;AAAM,oBAUO,gBAAoC;AAV3C,oBAYO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/DeviceConnectionState.js b/build/models/DeviceConnectionState.js index 54f7728..2425c9e 100644 --- a/build/models/DeviceConnectionState.js +++ b/build/models/DeviceConnectionState.js @@ -1,23 +1,33 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.DeviceConnectionState = void 0; -/** - * Specifies the different connection states of a device. 0 - Disconnected 1 - Connected - */ -var DeviceConnectionState; -(function (DeviceConnectionState) { - DeviceConnectionState["Disconnected"] = "Disconnected"; - DeviceConnectionState["Connected"] = "Connected"; -})(DeviceConnectionState || (exports.DeviceConnectionState = DeviceConnectionState = {})); -//# sourceMappingURL=DeviceConnectionState.js.map \ No newline at end of file +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var DeviceConnectionState_exports = {}; +__export(DeviceConnectionState_exports, { + DeviceConnectionState: () => DeviceConnectionState +}); +module.exports = __toCommonJS(DeviceConnectionState_exports); +var DeviceConnectionState = /* @__PURE__ */ ((DeviceConnectionState2) => { + DeviceConnectionState2["Disconnected"] = "Disconnected"; + DeviceConnectionState2["Connected"] = "Connected"; + return DeviceConnectionState2; +})(DeviceConnectionState || {}); +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + DeviceConnectionState +}); +//# sourceMappingURL=DeviceConnectionState.js.map diff --git a/build/models/DeviceConnectionState.js.map b/build/models/DeviceConnectionState.js.map index 142079c..b2f24f7 100644 --- a/build/models/DeviceConnectionState.js.map +++ b/build/models/DeviceConnectionState.js.map @@ -1 +1,7 @@ -{"version":3,"file":"DeviceConnectionState.js","sourceRoot":"","sources":["../../src/models/DeviceConnectionState.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH;;GAEG;AACH,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC7B,sDAA6B,CAAA;IAC7B,gDAAuB,CAAA;AAC3B,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/DeviceConnectionState.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n/**\n * Specifies the different connection states of a device. 0 - Disconnected 1 - Connected\n */\nexport enum DeviceConnectionState {\n Disconnected = 'Disconnected',\n Connected = 'Connected',\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAeO,IAAK,wBAAL,kBAAKA,2BAAL;AACH,EAAAA,uBAAA,kBAAe;AACf,EAAAA,uBAAA,eAAY;AAFJ,SAAAA;AAAA,GAAA;", + "names": ["DeviceConnectionState"] +} diff --git a/build/models/DeviceFirmwareInfoResponse.js b/build/models/DeviceFirmwareInfoResponse.js index ae4dec0..2fdc007 100644 --- a/build/models/DeviceFirmwareInfoResponse.js +++ b/build/models/DeviceFirmwareInfoResponse.js @@ -1,55 +1,69 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.DeviceFirmwareInfoResponse = void 0; -class DeviceFirmwareInfoResponse { - static getAttributeTypeMap() { - return DeviceFirmwareInfoResponse.attributeTypeMap; - } - constructor() { } -} -exports.DeviceFirmwareInfoResponse = DeviceFirmwareInfoResponse; -DeviceFirmwareInfoResponse.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var DeviceFirmwareInfoResponse_exports = {}; +__export(DeviceFirmwareInfoResponse_exports, { + DeviceFirmwareInfoResponse: () => DeviceFirmwareInfoResponse +}); +module.exports = __toCommonJS(DeviceFirmwareInfoResponse_exports); +const _DeviceFirmwareInfoResponse = class { + static getAttributeTypeMap() { + return _DeviceFirmwareInfoResponse.attributeTypeMap; + } + constructor() { + } +}; +let DeviceFirmwareInfoResponse = _DeviceFirmwareInfoResponse; +DeviceFirmwareInfoResponse.discriminator = void 0; DeviceFirmwareInfoResponse.attributeTypeMap = [ - { - name: 'deviceId', - baseName: 'deviceId', - type: 'string', - format: '', - }, - { - name: 'firmwareId', - baseName: 'firmwareId', - type: 'string', - format: '', - }, - { - name: 'currentFwVersion', - baseName: 'currentFwVersion', - type: 'string', - format: '', - }, - { - name: 'pendingFwVersion', - baseName: 'pendingFwVersion', - type: 'string', - format: '', - }, - { - name: 'desiredFwVersion', - baseName: 'desiredFwVersion', - type: 'string', - format: '', - }, + { + name: "deviceId", + baseName: "deviceId", + type: "string", + format: "" + }, + { + name: "firmwareId", + baseName: "firmwareId", + type: "string", + format: "" + }, + { + name: "currentFwVersion", + baseName: "currentFwVersion", + type: "string", + format: "" + }, + { + name: "pendingFwVersion", + baseName: "pendingFwVersion", + type: "string", + format: "" + }, + { + name: "desiredFwVersion", + baseName: "desiredFwVersion", + type: "string", + format: "" + } ]; -//# sourceMappingURL=DeviceFirmwareInfoResponse.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + DeviceFirmwareInfoResponse +}); +//# sourceMappingURL=DeviceFirmwareInfoResponse.js.map diff --git a/build/models/DeviceFirmwareInfoResponse.js.map b/build/models/DeviceFirmwareInfoResponse.js.map index d64417a..83968ea 100644 --- a/build/models/DeviceFirmwareInfoResponse.js.map +++ b/build/models/DeviceFirmwareInfoResponse.js.map @@ -1 +1,7 @@ -{"version":3,"file":"DeviceFirmwareInfoResponse.js","sourceRoot":"","sources":["../../src/models/DeviceFirmwareInfoResponse.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,MAAa,0BAA0B;IA0CnC,MAAM,CAAC,mBAAmB;QACtB,OAAO,0BAA0B,CAAC,gBAAgB,CAAC;IACvD,CAAC;IAED,gBAAsB,CAAC;;AA9C3B,gEA+CC;AAxCmB,wCAAa,GAAuB,SAAS,CAAC;AAE9C,2CAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,kBAAkB;QACxB,QAAQ,EAAE,kBAAkB;QAC5B,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,kBAAkB;QACxB,QAAQ,EAAE,kBAAkB;QAC5B,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,kBAAkB;QACxB,QAAQ,EAAE,kBAAkB;QAC5B,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/DeviceFirmwareInfoResponse.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nexport class DeviceFirmwareInfoResponse {\n 'deviceId'?: string | null;\n 'firmwareId'?: string | null;\n 'currentFwVersion'?: string | null;\n 'pendingFwVersion'?: string | null;\n 'desiredFwVersion'?: string | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'deviceId',\n baseName: 'deviceId',\n type: 'string',\n format: '',\n },\n {\n name: 'firmwareId',\n baseName: 'firmwareId',\n type: 'string',\n format: '',\n },\n {\n name: 'currentFwVersion',\n baseName: 'currentFwVersion',\n type: 'string',\n format: '',\n },\n {\n name: 'pendingFwVersion',\n baseName: 'pendingFwVersion',\n type: 'string',\n format: '',\n },\n {\n name: 'desiredFwVersion',\n baseName: 'desiredFwVersion',\n type: 'string',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return DeviceFirmwareInfoResponse.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAYO,MAAM,8BAAN,MAAiC;AAAA,EA0CpC,OAAO,sBAAsB;AACzB,WAAO,4BAA2B;AAAA,EACtC;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AA/CO,IAAM,6BAAN;AAAM,2BAOO,gBAAoC;AAP3C,2BASO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/DeviceInfoResponseModel.js b/build/models/DeviceInfoResponseModel.js index 2b38f76..7d9510c 100644 --- a/build/models/DeviceInfoResponseModel.js +++ b/build/models/DeviceInfoResponseModel.js @@ -1,43 +1,57 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.DeviceInfoResponseModel = void 0; -class DeviceInfoResponseModel { - static getAttributeTypeMap() { - return DeviceInfoResponseModel.attributeTypeMap; - } - constructor() { } -} -exports.DeviceInfoResponseModel = DeviceInfoResponseModel; -DeviceInfoResponseModel.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var DeviceInfoResponseModel_exports = {}; +__export(DeviceInfoResponseModel_exports, { + DeviceInfoResponseModel: () => DeviceInfoResponseModel +}); +module.exports = __toCommonJS(DeviceInfoResponseModel_exports); +const _DeviceInfoResponseModel = class { + static getAttributeTypeMap() { + return _DeviceInfoResponseModel.attributeTypeMap; + } + constructor() { + } +}; +let DeviceInfoResponseModel = _DeviceInfoResponseModel; +DeviceInfoResponseModel.discriminator = void 0; DeviceInfoResponseModel.attributeTypeMap = [ - { - name: 'deviceId', - baseName: 'deviceId', - type: 'string', - format: '', - }, - { - name: 'productName', - baseName: 'productName', - type: 'string', - format: '', - }, - { - name: 'address', - baseName: 'address', - type: 'AddressResponseModel', - format: '', - }, + { + name: "deviceId", + baseName: "deviceId", + type: "string", + format: "" + }, + { + name: "productName", + baseName: "productName", + type: "string", + format: "" + }, + { + name: "address", + baseName: "address", + type: "AddressResponseModel", + format: "" + } ]; -//# sourceMappingURL=DeviceInfoResponseModel.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + DeviceInfoResponseModel +}); +//# sourceMappingURL=DeviceInfoResponseModel.js.map diff --git a/build/models/DeviceInfoResponseModel.js.map b/build/models/DeviceInfoResponseModel.js.map index fa1fb61..d877fe5 100644 --- a/build/models/DeviceInfoResponseModel.js.map +++ b/build/models/DeviceInfoResponseModel.js.map @@ -1 +1,7 @@ -{"version":3,"file":"DeviceInfoResponseModel.js","sourceRoot":"","sources":["../../src/models/DeviceInfoResponseModel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAIH,MAAa,uBAAuB;IA4BhC,MAAM,CAAC,mBAAmB;QACtB,OAAO,uBAAuB,CAAC,gBAAgB,CAAC;IACpD,CAAC;IAED,gBAAsB,CAAC;;AAhC3B,0DAiCC;AA5BmB,qCAAa,GAAuB,SAAS,CAAC;AAE9C,wCAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,aAAa;QACvB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,sBAAsB;QAC5B,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/DeviceInfoResponseModel.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { AddressResponseModel } from '../models/AddressResponseModel';\n\nexport class DeviceInfoResponseModel {\n 'deviceId'?: string | null;\n 'productName'?: string | null;\n 'address'?: AddressResponseModel;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'deviceId',\n baseName: 'deviceId',\n type: 'string',\n format: '',\n },\n {\n name: 'productName',\n baseName: 'productName',\n type: 'string',\n format: '',\n },\n {\n name: 'address',\n baseName: 'address',\n type: 'AddressResponseModel',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return DeviceInfoResponseModel.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAcO,MAAM,2BAAN,MAA8B;AAAA,EA4BjC,OAAO,sBAAsB;AACzB,WAAO,yBAAwB;AAAA,EACnC;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAjCO,IAAM,0BAAN;AAAM,wBAKO,gBAAoC;AAL3C,wBAOO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/DeviceInfoResponseModelPagedResult.js b/build/models/DeviceInfoResponseModelPagedResult.js index 69376c5..26e9f62 100644 --- a/build/models/DeviceInfoResponseModelPagedResult.js +++ b/build/models/DeviceInfoResponseModelPagedResult.js @@ -1,49 +1,63 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.DeviceInfoResponseModelPagedResult = void 0; -class DeviceInfoResponseModelPagedResult { - static getAttributeTypeMap() { - return DeviceInfoResponseModelPagedResult.attributeTypeMap; - } - constructor() { } -} -exports.DeviceInfoResponseModelPagedResult = DeviceInfoResponseModelPagedResult; -DeviceInfoResponseModelPagedResult.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var DeviceInfoResponseModelPagedResult_exports = {}; +__export(DeviceInfoResponseModelPagedResult_exports, { + DeviceInfoResponseModelPagedResult: () => DeviceInfoResponseModelPagedResult +}); +module.exports = __toCommonJS(DeviceInfoResponseModelPagedResult_exports); +const _DeviceInfoResponseModelPagedResult = class { + static getAttributeTypeMap() { + return _DeviceInfoResponseModelPagedResult.attributeTypeMap; + } + constructor() { + } +}; +let DeviceInfoResponseModelPagedResult = _DeviceInfoResponseModelPagedResult; +DeviceInfoResponseModelPagedResult.discriminator = void 0; DeviceInfoResponseModelPagedResult.attributeTypeMap = [ - { - name: 'page', - baseName: 'page', - type: 'number', - format: 'int32', - }, - { - name: 'pageSize', - baseName: 'pageSize', - type: 'number', - format: 'int32', - }, - { - name: 'results', - baseName: 'results', - type: 'Array', - format: '', - }, - { - name: 'total', - baseName: 'total', - type: 'number', - format: 'int32', - }, + { + name: "page", + baseName: "page", + type: "number", + format: "int32" + }, + { + name: "pageSize", + baseName: "pageSize", + type: "number", + format: "int32" + }, + { + name: "results", + baseName: "results", + type: "Array", + format: "" + }, + { + name: "total", + baseName: "total", + type: "number", + format: "int32" + } ]; -//# sourceMappingURL=DeviceInfoResponseModelPagedResult.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + DeviceInfoResponseModelPagedResult +}); +//# sourceMappingURL=DeviceInfoResponseModelPagedResult.js.map diff --git a/build/models/DeviceInfoResponseModelPagedResult.js.map b/build/models/DeviceInfoResponseModelPagedResult.js.map index dd94e5c..1e0b811 100644 --- a/build/models/DeviceInfoResponseModelPagedResult.js.map +++ b/build/models/DeviceInfoResponseModelPagedResult.js.map @@ -1 +1,7 @@ -{"version":3,"file":"DeviceInfoResponseModelPagedResult.js","sourceRoot":"","sources":["../../src/models/DeviceInfoResponseModelPagedResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAIH,MAAa,kCAAkC;IAmC3C,MAAM,CAAC,mBAAmB;QACtB,OAAO,kCAAkC,CAAC,gBAAgB,CAAC;IAC/D,CAAC;IAED,gBAAsB,CAAC;;AAvC3B,gFAwCC;AAlCmB,gDAAa,GAAuB,SAAS,CAAC;AAE9C,mDAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,OAAO;KAClB;IACD;QACI,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,OAAO;KAClB;IACD;QACI,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,gCAAgC;QACtC,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,OAAO;KAClB;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/DeviceInfoResponseModelPagedResult.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { DeviceInfoResponseModel } from '../models/DeviceInfoResponseModel';\n\nexport class DeviceInfoResponseModelPagedResult {\n 'page'?: number;\n 'pageSize'?: number;\n 'results'?: Array | null;\n 'total'?: number;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'page',\n baseName: 'page',\n type: 'number',\n format: 'int32',\n },\n {\n name: 'pageSize',\n baseName: 'pageSize',\n type: 'number',\n format: 'int32',\n },\n {\n name: 'results',\n baseName: 'results',\n type: 'Array',\n format: '',\n },\n {\n name: 'total',\n baseName: 'total',\n type: 'number',\n format: 'int32',\n },\n ];\n\n static getAttributeTypeMap() {\n return DeviceInfoResponseModelPagedResult.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAcO,MAAM,sCAAN,MAAyC;AAAA,EAmC5C,OAAO,sBAAsB;AACzB,WAAO,oCAAmC;AAAA,EAC9C;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAxCO,IAAM,qCAAN;AAAM,mCAMO,gBAAoC;AAN3C,mCAQO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/DeviceInfoSyncResponseModel.js b/build/models/DeviceInfoSyncResponseModel.js index b169246..a75e493 100644 --- a/build/models/DeviceInfoSyncResponseModel.js +++ b/build/models/DeviceInfoSyncResponseModel.js @@ -1,37 +1,51 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.DeviceInfoSyncResponseModel = void 0; -class DeviceInfoSyncResponseModel { - static getAttributeTypeMap() { - return DeviceInfoSyncResponseModel.attributeTypeMap; - } - constructor() { } -} -exports.DeviceInfoSyncResponseModel = DeviceInfoSyncResponseModel; -DeviceInfoSyncResponseModel.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var DeviceInfoSyncResponseModel_exports = {}; +__export(DeviceInfoSyncResponseModel_exports, { + DeviceInfoSyncResponseModel: () => DeviceInfoSyncResponseModel +}); +module.exports = __toCommonJS(DeviceInfoSyncResponseModel_exports); +const _DeviceInfoSyncResponseModel = class { + static getAttributeTypeMap() { + return _DeviceInfoSyncResponseModel.attributeTypeMap; + } + constructor() { + } +}; +let DeviceInfoSyncResponseModel = _DeviceInfoSyncResponseModel; +DeviceInfoSyncResponseModel.discriminator = void 0; DeviceInfoSyncResponseModel.attributeTypeMap = [ - { - name: 'syncId', - baseName: 'syncId', - type: 'number', - format: 'int32', - }, - { - name: 'status', - baseName: 'status', - type: 'string', - format: '', - }, + { + name: "syncId", + baseName: "syncId", + type: "number", + format: "int32" + }, + { + name: "status", + baseName: "status", + type: "string", + format: "" + } ]; -//# sourceMappingURL=DeviceInfoSyncResponseModel.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + DeviceInfoSyncResponseModel +}); +//# sourceMappingURL=DeviceInfoSyncResponseModel.js.map diff --git a/build/models/DeviceInfoSyncResponseModel.js.map b/build/models/DeviceInfoSyncResponseModel.js.map index b68a592..657662d 100644 --- a/build/models/DeviceInfoSyncResponseModel.js.map +++ b/build/models/DeviceInfoSyncResponseModel.js.map @@ -1 +1,7 @@ -{"version":3,"file":"DeviceInfoSyncResponseModel.js","sourceRoot":"","sources":["../../src/models/DeviceInfoSyncResponseModel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,MAAa,2BAA2B;IAqBpC,MAAM,CAAC,mBAAmB;QACtB,OAAO,2BAA2B,CAAC,gBAAgB,CAAC;IACxD,CAAC;IAED,gBAAsB,CAAC;;AAzB3B,kEA0BC;AAtBmB,yCAAa,GAAuB,SAAS,CAAC;AAE9C,4CAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,OAAO;KAClB;IACD;QACI,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/DeviceInfoSyncResponseModel.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nexport class DeviceInfoSyncResponseModel {\n 'syncId'?: number;\n 'status'?: string | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'syncId',\n baseName: 'syncId',\n type: 'number',\n format: 'int32',\n },\n {\n name: 'status',\n baseName: 'status',\n type: 'string',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return DeviceInfoSyncResponseModel.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAYO,MAAM,+BAAN,MAAkC;AAAA,EAqBrC,OAAO,sBAAsB;AACzB,WAAO,6BAA4B;AAAA,EACvC;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AA1BO,IAAM,8BAAN;AAAM,4BAIO,gBAAoC;AAJ3C,4BAMO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/DeviceParameterData.js b/build/models/DeviceParameterData.js index 8361a27..96c0b3d 100644 --- a/build/models/DeviceParameterData.js +++ b/build/models/DeviceParameterData.js @@ -1,70 +1,81 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.DeviceParameterData = void 0; -/** - * Grouped parameter value. - */ -class DeviceParameterData { - static getAttributeTypeMap() { - return DeviceParameterData.attributeTypeMap; - } - constructor() { } -} -exports.DeviceParameterData = DeviceParameterData; -DeviceParameterData.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var DeviceParameterData_exports = {}; +__export(DeviceParameterData_exports, { + DeviceParameterData: () => DeviceParameterData +}); +module.exports = __toCommonJS(DeviceParameterData_exports); +const _DeviceParameterData = class { + static getAttributeTypeMap() { + return _DeviceParameterData.attributeTypeMap; + } + constructor() { + } +}; +let DeviceParameterData = _DeviceParameterData; +DeviceParameterData.discriminator = void 0; DeviceParameterData.attributeTypeMap = [ - { - name: 'parameterId', - baseName: 'parameterId', - type: 'string', - format: '', - }, - { - name: 'parameterName', - baseName: 'parameterName', - type: 'string', - format: '', - }, - { - name: 'parameterUnit', - baseName: 'parameterUnit', - type: 'string', - format: '', - }, - { - name: 'deviceId', - baseName: 'deviceId', - type: 'string', - format: '', - }, - { - name: 'timestamp', - baseName: 'timestamp', - type: 'Date', - format: 'date-time', - }, - { - name: 'value', - baseName: 'value', - type: 'number', - format: 'double', - }, - { - name: 'strVal', - baseName: 'strVal', - type: 'string', - format: '', - }, + { + name: "parameterId", + baseName: "parameterId", + type: "string", + format: "" + }, + { + name: "parameterName", + baseName: "parameterName", + type: "string", + format: "" + }, + { + name: "parameterUnit", + baseName: "parameterUnit", + type: "string", + format: "" + }, + { + name: "deviceId", + baseName: "deviceId", + type: "string", + format: "" + }, + { + name: "timestamp", + baseName: "timestamp", + type: "Date", + format: "date-time" + }, + { + name: "value", + baseName: "value", + type: "number", + format: "double" + }, + { + name: "strVal", + baseName: "strVal", + type: "string", + format: "" + } ]; -//# sourceMappingURL=DeviceParameterData.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + DeviceParameterData +}); +//# sourceMappingURL=DeviceParameterData.js.map diff --git a/build/models/DeviceParameterData.js.map b/build/models/DeviceParameterData.js.map index 6db9227..e7bd5b0 100644 --- a/build/models/DeviceParameterData.js.map +++ b/build/models/DeviceParameterData.js.map @@ -1 +1,7 @@ -{"version":3,"file":"DeviceParameterData.js","sourceRoot":"","sources":["../../src/models/DeviceParameterData.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH;;GAEG;AACH,MAAa,mBAAmB;IA6E5B,MAAM,CAAC,mBAAmB;QACtB,OAAO,mBAAmB,CAAC,gBAAgB,CAAC;IAChD,CAAC;IAED,gBAAsB,CAAC;;AAjF3B,kDAkFC;AApDmB,iCAAa,GAAuB,SAAS,CAAC;AAE9C,oCAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,aAAa;QACvB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,eAAe;QACrB,QAAQ,EAAE,eAAe;QACzB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,eAAe;QACrB,QAAQ,EAAE,eAAe;QACzB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,WAAW;QACrB,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,WAAW;KACtB;IACD;QACI,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,QAAQ;KACnB;IACD;QACI,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/DeviceParameterData.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n/**\n * Grouped parameter value.\n */\nexport class DeviceParameterData {\n /**\n * Parameter id.\n */\n 'parameterId'?: string | null;\n /**\n * Parameter name.\n */\n 'parameterName'?: string | null;\n /**\n * Parameter unit.\n */\n 'parameterUnit'?: string | null;\n /**\n * Device id.\n */\n 'deviceId'?: string | null;\n /**\n * Timestamp property.\n */\n 'timestamp'?: Date;\n /**\n * Value property.\n */\n 'value'?: number | null;\n /**\n * String value property.\n */\n 'strVal'?: string | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'parameterId',\n baseName: 'parameterId',\n type: 'string',\n format: '',\n },\n {\n name: 'parameterName',\n baseName: 'parameterName',\n type: 'string',\n format: '',\n },\n {\n name: 'parameterUnit',\n baseName: 'parameterUnit',\n type: 'string',\n format: '',\n },\n {\n name: 'deviceId',\n baseName: 'deviceId',\n type: 'string',\n format: '',\n },\n {\n name: 'timestamp',\n baseName: 'timestamp',\n type: 'Date',\n format: 'date-time',\n },\n {\n name: 'value',\n baseName: 'value',\n type: 'number',\n format: 'double',\n },\n {\n name: 'strVal',\n baseName: 'strVal',\n type: 'string',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return DeviceParameterData.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAeO,MAAM,uBAAN,MAA0B;AAAA,EA6E7B,OAAO,sBAAsB;AACzB,WAAO,qBAAoB;AAAA,EAC/B;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAlFO,IAAM,sBAAN;AAAM,oBA8BO,gBAAoC;AA9B3C,oBAgCO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/DevicePremiumResponse.js b/build/models/DevicePremiumResponse.js index 7c48077..2bf7047 100644 --- a/build/models/DevicePremiumResponse.js +++ b/build/models/DevicePremiumResponse.js @@ -1,31 +1,45 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.DevicePremiumResponse = void 0; -class DevicePremiumResponse { - static getAttributeTypeMap() { - return DevicePremiumResponse.attributeTypeMap; - } - constructor() { } -} -exports.DevicePremiumResponse = DevicePremiumResponse; -DevicePremiumResponse.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var DevicePremiumResponse_exports = {}; +__export(DevicePremiumResponse_exports, { + DevicePremiumResponse: () => DevicePremiumResponse +}); +module.exports = __toCommonJS(DevicePremiumResponse_exports); +const _DevicePremiumResponse = class { + static getAttributeTypeMap() { + return _DevicePremiumResponse.attributeTypeMap; + } + constructor() { + } +}; +let DevicePremiumResponse = _DevicePremiumResponse; +DevicePremiumResponse.discriminator = void 0; DevicePremiumResponse.attributeTypeMap = [ - { - name: 'subscriptions', - baseName: 'subscriptions', - type: 'Array', - format: '', - }, + { + name: "subscriptions", + baseName: "subscriptions", + type: "Array", + format: "" + } ]; -//# sourceMappingURL=DevicePremiumResponse.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + DevicePremiumResponse +}); +//# sourceMappingURL=DevicePremiumResponse.js.map diff --git a/build/models/DevicePremiumResponse.js.map b/build/models/DevicePremiumResponse.js.map index e8c7f26..2742302 100644 --- a/build/models/DevicePremiumResponse.js.map +++ b/build/models/DevicePremiumResponse.js.map @@ -1 +1,7 @@ -{"version":3,"file":"DevicePremiumResponse.js","sourceRoot":"","sources":["../../src/models/DevicePremiumResponse.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAIH,MAAa,qBAAqB;IAc9B,MAAM,CAAC,mBAAmB;QACtB,OAAO,qBAAqB,CAAC,gBAAgB,CAAC;IAClD,CAAC;IAED,gBAAsB,CAAC;;AAlB3B,sDAmBC;AAhBmB,mCAAa,GAAuB,SAAS,CAAC;AAE9C,sCAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,eAAe;QACrB,QAAQ,EAAE,eAAe;QACzB,IAAI,EAAE,oCAAoC;QAC1C,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/DevicePremiumResponse.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { PremiumFeatureResponseModel } from '../models/PremiumFeatureResponseModel';\n\nexport class DevicePremiumResponse {\n 'subscriptions'?: Array | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'subscriptions',\n baseName: 'subscriptions',\n type: 'Array',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return DevicePremiumResponse.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAcO,MAAM,yBAAN,MAA4B;AAAA,EAc/B,OAAO,sBAAsB;AACzB,WAAO,uBAAsB;AAAA,EACjC;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAnBO,IAAM,wBAAN;AAAM,sBAGO,gBAAoC;AAH3C,sBAKO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/DeviceResponseModel.js b/build/models/DeviceResponseModel.js index fe8cee4..d7a5e20 100644 --- a/build/models/DeviceResponseModel.js +++ b/build/models/DeviceResponseModel.js @@ -1,58 +1,69 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.DeviceResponseModel = void 0; -/** - * DeviceResponseModel. - */ -class DeviceResponseModel { - static getAttributeTypeMap() { - return DeviceResponseModel.attributeTypeMap; - } - constructor() { } -} -exports.DeviceResponseModel = DeviceResponseModel; -DeviceResponseModel.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var DeviceResponseModel_exports = {}; +__export(DeviceResponseModel_exports, { + DeviceResponseModel: () => DeviceResponseModel +}); +module.exports = __toCommonJS(DeviceResponseModel_exports); +const _DeviceResponseModel = class { + static getAttributeTypeMap() { + return _DeviceResponseModel.attributeTypeMap; + } + constructor() { + } +}; +let DeviceResponseModel = _DeviceResponseModel; +DeviceResponseModel.discriminator = void 0; DeviceResponseModel.attributeTypeMap = [ - { - name: 'id', - baseName: 'id', - type: 'string', - format: '', - }, - { - name: 'connectionState', - baseName: 'connectionState', - type: 'DeviceConnectionState', - format: '', - }, - { - name: 'firmware', - baseName: 'firmware', - type: 'FirmwareResponseModel', - format: '', - }, - { - name: 'product', - baseName: 'product', - type: 'ProductResponseModel', - format: '', - }, - { - name: 'availableFeatures', - baseName: 'availableFeatures', - type: 'AvailableMethods', - format: '', - }, + { + name: "id", + baseName: "id", + type: "string", + format: "" + }, + { + name: "connectionState", + baseName: "connectionState", + type: "DeviceConnectionState", + format: "" + }, + { + name: "firmware", + baseName: "firmware", + type: "FirmwareResponseModel", + format: "" + }, + { + name: "product", + baseName: "product", + type: "ProductResponseModel", + format: "" + }, + { + name: "availableFeatures", + baseName: "availableFeatures", + type: "AvailableMethods", + format: "" + } ]; -//# sourceMappingURL=DeviceResponseModel.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + DeviceResponseModel +}); +//# sourceMappingURL=DeviceResponseModel.js.map diff --git a/build/models/DeviceResponseModel.js.map b/build/models/DeviceResponseModel.js.map index b61ae86..eb729b5 100644 --- a/build/models/DeviceResponseModel.js.map +++ b/build/models/DeviceResponseModel.js.map @@ -1 +1,7 @@ -{"version":3,"file":"DeviceResponseModel.js","sourceRoot":"","sources":["../../src/models/DeviceResponseModel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAOH;;GAEG;AACH,MAAa,mBAAmB;IA6C5B,MAAM,CAAC,mBAAmB;QACtB,OAAO,mBAAmB,CAAC,gBAAgB,CAAC;IAChD,CAAC;IAED,gBAAsB,CAAC;;AAjD3B,kDAkDC;AAxCmB,iCAAa,GAAuB,SAAS,CAAC;AAE9C,oCAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE,iBAAiB;QAC3B,IAAI,EAAE,uBAAuB;QAC7B,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,uBAAuB;QAC7B,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,sBAAsB;QAC5B,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,mBAAmB;QACzB,QAAQ,EAAE,mBAAmB;QAC7B,IAAI,EAAE,kBAAkB;QACxB,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/DeviceResponseModel.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { AvailableMethods } from '../models/AvailableMethods';\nimport { DeviceConnectionState } from '../models/DeviceConnectionState';\nimport { FirmwareResponseModel } from '../models/FirmwareResponseModel';\nimport { ProductResponseModel } from '../models/ProductResponseModel';\n\n/**\n * DeviceResponseModel.\n */\nexport class DeviceResponseModel {\n /**\n * Id.\n */\n 'id'?: string | null;\n 'connectionState'?: DeviceConnectionState;\n 'firmware'?: FirmwareResponseModel;\n 'product'?: ProductResponseModel;\n 'availableFeatures'?: AvailableMethods;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'id',\n baseName: 'id',\n type: 'string',\n format: '',\n },\n {\n name: 'connectionState',\n baseName: 'connectionState',\n type: 'DeviceConnectionState',\n format: '',\n },\n {\n name: 'firmware',\n baseName: 'firmware',\n type: 'FirmwareResponseModel',\n format: '',\n },\n {\n name: 'product',\n baseName: 'product',\n type: 'ProductResponseModel',\n format: '',\n },\n {\n name: 'availableFeatures',\n baseName: 'availableFeatures',\n type: 'AvailableMethods',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return DeviceResponseModel.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAoBO,MAAM,uBAAN,MAA0B;AAAA,EA6C7B,OAAO,sBAAsB;AACzB,WAAO,qBAAoB;AAAA,EAC/B;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAlDO,IAAM,sBAAN;AAAM,oBAUO,gBAAoC;AAV3C,oBAYO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/EnumValues.js b/build/models/EnumValues.js index 4bb9438..bea3ba9 100644 --- a/build/models/EnumValues.js +++ b/build/models/EnumValues.js @@ -1,43 +1,57 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.EnumValues = void 0; -class EnumValues { - static getAttributeTypeMap() { - return EnumValues.attributeTypeMap; - } - constructor() { } -} -exports.EnumValues = EnumValues; -EnumValues.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var EnumValues_exports = {}; +__export(EnumValues_exports, { + EnumValues: () => EnumValues +}); +module.exports = __toCommonJS(EnumValues_exports); +const _EnumValues = class { + static getAttributeTypeMap() { + return _EnumValues.attributeTypeMap; + } + constructor() { + } +}; +let EnumValues = _EnumValues; +EnumValues.discriminator = void 0; EnumValues.attributeTypeMap = [ - { - name: 'value', - baseName: 'value', - type: 'string', - format: '', - }, - { - name: 'text', - baseName: 'text', - type: 'string', - format: '', - }, - { - name: 'icon', - baseName: 'icon', - type: 'string', - format: '', - }, + { + name: "value", + baseName: "value", + type: "string", + format: "" + }, + { + name: "text", + baseName: "text", + type: "string", + format: "" + }, + { + name: "icon", + baseName: "icon", + type: "string", + format: "" + } ]; -//# sourceMappingURL=EnumValues.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + EnumValues +}); +//# sourceMappingURL=EnumValues.js.map diff --git a/build/models/EnumValues.js.map b/build/models/EnumValues.js.map index 38fdc1c..6460ba8 100644 --- a/build/models/EnumValues.js.map +++ b/build/models/EnumValues.js.map @@ -1 +1,7 @@ -{"version":3,"file":"EnumValues.js","sourceRoot":"","sources":["../../src/models/EnumValues.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,MAAa,UAAU;IAqCnB,MAAM,CAAC,mBAAmB;QACtB,OAAO,UAAU,CAAC,gBAAgB,CAAC;IACvC,CAAC;IAED,gBAAsB,CAAC;;AAzC3B,gCA0CC;AA5BmB,wBAAa,GAAuB,SAAS,CAAC;AAE9C,2BAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/EnumValues.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nexport class EnumValues {\n /**\n * The EnumValue of the Enum.\n */\n 'value'?: string | null;\n /**\n * The EnumText of the Enum.\n */\n 'text'?: string | null;\n /**\n * The EnumIcon of the Enum.\n */\n 'icon'?: string | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'value',\n baseName: 'value',\n type: 'string',\n format: '',\n },\n {\n name: 'text',\n baseName: 'text',\n type: 'string',\n format: '',\n },\n {\n name: 'icon',\n baseName: 'icon',\n type: 'string',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return EnumValues.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAYO,MAAM,cAAN,MAAiB;AAAA,EAqCpB,OAAO,sBAAsB;AACzB,WAAO,YAAW;AAAA,EACtB;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AA1CO,IAAM,aAAN;AAAM,WAcO,gBAAoC;AAd3C,WAgBO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/FirmwareResponseModel.js b/build/models/FirmwareResponseModel.js index 127d863..9797a76 100644 --- a/build/models/FirmwareResponseModel.js +++ b/build/models/FirmwareResponseModel.js @@ -1,40 +1,51 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.FirmwareResponseModel = void 0; -/** - * Firmware response model - */ -class FirmwareResponseModel { - static getAttributeTypeMap() { - return FirmwareResponseModel.attributeTypeMap; - } - constructor() { } -} -exports.FirmwareResponseModel = FirmwareResponseModel; -FirmwareResponseModel.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var FirmwareResponseModel_exports = {}; +__export(FirmwareResponseModel_exports, { + FirmwareResponseModel: () => FirmwareResponseModel +}); +module.exports = __toCommonJS(FirmwareResponseModel_exports); +const _FirmwareResponseModel = class { + static getAttributeTypeMap() { + return _FirmwareResponseModel.attributeTypeMap; + } + constructor() { + } +}; +let FirmwareResponseModel = _FirmwareResponseModel; +FirmwareResponseModel.discriminator = void 0; FirmwareResponseModel.attributeTypeMap = [ - { - name: 'currentFwVersion', - baseName: 'currentFwVersion', - type: 'string', - format: '', - }, - { - name: 'desiredFwVersion', - baseName: 'desiredFwVersion', - type: 'string', - format: '', - }, + { + name: "currentFwVersion", + baseName: "currentFwVersion", + type: "string", + format: "" + }, + { + name: "desiredFwVersion", + baseName: "desiredFwVersion", + type: "string", + format: "" + } ]; -//# sourceMappingURL=FirmwareResponseModel.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + FirmwareResponseModel +}); +//# sourceMappingURL=FirmwareResponseModel.js.map diff --git a/build/models/FirmwareResponseModel.js.map b/build/models/FirmwareResponseModel.js.map index ae3af0d..2e0cb41 100644 --- a/build/models/FirmwareResponseModel.js.map +++ b/build/models/FirmwareResponseModel.js.map @@ -1 +1,7 @@ -{"version":3,"file":"FirmwareResponseModel.js","sourceRoot":"","sources":["../../src/models/FirmwareResponseModel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH;;GAEG;AACH,MAAa,qBAAqB;IA2B9B,MAAM,CAAC,mBAAmB;QACtB,OAAO,qBAAqB,CAAC,gBAAgB,CAAC;IAClD,CAAC;IAED,gBAAsB,CAAC;;AA/B3B,sDAgCC;AAtBmB,mCAAa,GAAuB,SAAS,CAAC;AAE9C,sCAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,kBAAkB;QACxB,QAAQ,EAAE,kBAAkB;QAC5B,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,kBAAkB;QACxB,QAAQ,EAAE,kBAAkB;QAC5B,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/FirmwareResponseModel.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n/**\n * Firmware response model\n */\nexport class FirmwareResponseModel {\n /**\n * Current Firmware Version\n */\n 'currentFwVersion'?: string | null;\n /**\n * Desired Firmware Version\n */\n 'desiredFwVersion'?: string | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'currentFwVersion',\n baseName: 'currentFwVersion',\n type: 'string',\n format: '',\n },\n {\n name: 'desiredFwVersion',\n baseName: 'desiredFwVersion',\n type: 'string',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return FirmwareResponseModel.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAeO,MAAM,yBAAN,MAA4B;AAAA,EA2B/B,OAAO,sBAAsB;AACzB,WAAO,uBAAsB;AAAA,EACjC;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAhCO,IAAM,wBAAN;AAAM,sBAUO,gBAAoC;AAV3C,sBAYO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/GroupedDeviceParameterData.js b/build/models/GroupedDeviceParameterData.js index e5e5684..1cf1e49 100644 --- a/build/models/GroupedDeviceParameterData.js +++ b/build/models/GroupedDeviceParameterData.js @@ -1,40 +1,51 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.GroupedDeviceParameterData = void 0; -/** - * Grouped parameter value. - */ -class GroupedDeviceParameterData { - static getAttributeTypeMap() { - return GroupedDeviceParameterData.attributeTypeMap; - } - constructor() { } -} -exports.GroupedDeviceParameterData = GroupedDeviceParameterData; -GroupedDeviceParameterData.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var GroupedDeviceParameterData_exports = {}; +__export(GroupedDeviceParameterData_exports, { + GroupedDeviceParameterData: () => GroupedDeviceParameterData +}); +module.exports = __toCommonJS(GroupedDeviceParameterData_exports); +const _GroupedDeviceParameterData = class { + static getAttributeTypeMap() { + return _GroupedDeviceParameterData.attributeTypeMap; + } + constructor() { + } +}; +let GroupedDeviceParameterData = _GroupedDeviceParameterData; +GroupedDeviceParameterData.discriminator = void 0; GroupedDeviceParameterData.attributeTypeMap = [ - { - name: 'categoryName', - baseName: 'categoryName', - type: 'string', - format: '', - }, - { - name: 'parameters', - baseName: 'parameters', - type: 'Array', - format: '', - }, + { + name: "categoryName", + baseName: "categoryName", + type: "string", + format: "" + }, + { + name: "parameters", + baseName: "parameters", + type: "Array", + format: "" + } ]; -//# sourceMappingURL=GroupedDeviceParameterData.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + GroupedDeviceParameterData +}); +//# sourceMappingURL=GroupedDeviceParameterData.js.map diff --git a/build/models/GroupedDeviceParameterData.js.map b/build/models/GroupedDeviceParameterData.js.map index b6f79b0..b6d67d8 100644 --- a/build/models/GroupedDeviceParameterData.js.map +++ b/build/models/GroupedDeviceParameterData.js.map @@ -1 +1,7 @@ -{"version":3,"file":"GroupedDeviceParameterData.js","sourceRoot":"","sources":["../../src/models/GroupedDeviceParameterData.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAIH;;GAEG;AACH,MAAa,0BAA0B;IA2BnC,MAAM,CAAC,mBAAmB;QACtB,OAAO,0BAA0B,CAAC,gBAAgB,CAAC;IACvD,CAAC;IAED,gBAAsB,CAAC;;AA/B3B,gEAgCC;AAtBmB,wCAAa,GAAuB,SAAS,CAAC;AAE9C,2CAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,cAAc;QACxB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,4BAA4B;QAClC,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/GroupedDeviceParameterData.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { DeviceParameterData } from '../models/DeviceParameterData';\n\n/**\n * Grouped parameter value.\n */\nexport class GroupedDeviceParameterData {\n /**\n * Category name.\n */\n 'categoryName'?: string | null;\n /**\n * Device parameter data.\n */\n 'parameters'?: Array | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'categoryName',\n baseName: 'categoryName',\n type: 'string',\n format: '',\n },\n {\n name: 'parameters',\n baseName: 'parameters',\n type: 'Array',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return GroupedDeviceParameterData.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBO,MAAM,8BAAN,MAAiC;AAAA,EA2BpC,OAAO,sBAAsB;AACzB,WAAO,4BAA2B;AAAA,EACtC;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAhCO,IAAM,6BAAN;AAAM,2BAUO,gBAAoC;AAV3C,2BAYO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/LimitedUserProfile.js b/build/models/LimitedUserProfile.js index 429bdd7..88753a4 100644 --- a/build/models/LimitedUserProfile.js +++ b/build/models/LimitedUserProfile.js @@ -1,34 +1,45 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.LimitedUserProfile = void 0; -/** - * User profile model. - */ -class LimitedUserProfile { - static getAttributeTypeMap() { - return LimitedUserProfile.attributeTypeMap; - } - constructor() { } -} -exports.LimitedUserProfile = LimitedUserProfile; -LimitedUserProfile.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var LimitedUserProfile_exports = {}; +__export(LimitedUserProfile_exports, { + LimitedUserProfile: () => LimitedUserProfile +}); +module.exports = __toCommonJS(LimitedUserProfile_exports); +const _LimitedUserProfile = class { + static getAttributeTypeMap() { + return _LimitedUserProfile.attributeTypeMap; + } + constructor() { + } +}; +let LimitedUserProfile = _LimitedUserProfile; +LimitedUserProfile.discriminator = void 0; LimitedUserProfile.attributeTypeMap = [ - { - name: 'fullName', - baseName: 'fullName', - type: 'string', - format: '', - }, + { + name: "fullName", + baseName: "fullName", + type: "string", + format: "" + } ]; -//# sourceMappingURL=LimitedUserProfile.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + LimitedUserProfile +}); +//# sourceMappingURL=LimitedUserProfile.js.map diff --git a/build/models/LimitedUserProfile.js.map b/build/models/LimitedUserProfile.js.map index 4e6efda..66bdfb5 100644 --- a/build/models/LimitedUserProfile.js.map +++ b/build/models/LimitedUserProfile.js.map @@ -1 +1,7 @@ -{"version":3,"file":"LimitedUserProfile.js","sourceRoot":"","sources":["../../src/models/LimitedUserProfile.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH;;GAEG;AACH,MAAa,kBAAkB;IAiB3B,MAAM,CAAC,mBAAmB;QACtB,OAAO,kBAAkB,CAAC,gBAAgB,CAAC;IAC/C,CAAC;IAED,gBAAsB,CAAC;;AArB3B,gDAsBC;AAhBmB,gCAAa,GAAuB,SAAS,CAAC;AAE9C,mCAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/LimitedUserProfile.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n/**\n * User profile model.\n */\nexport class LimitedUserProfile {\n /**\n * Full name.\n */\n 'fullName'?: string | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'fullName',\n baseName: 'fullName',\n type: 'string',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return LimitedUserProfile.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAeO,MAAM,sBAAN,MAAyB;AAAA,EAiB5B,OAAO,sBAAsB;AACzB,WAAO,oBAAmB;AAAA,EAC9B;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAtBO,IAAM,qBAAN;AAAM,mBAMO,gBAAoC;AAN3C,mBAQO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/ObjectSerializer.js b/build/models/ObjectSerializer.js index 70a3e0c..5b2d1a4 100644 --- a/build/models/ObjectSerializer.js +++ b/build/models/ObjectSerializer.js @@ -1,409 +1,375 @@ "use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; }; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ObjectSerializer = void 0; -__exportStar(require("../models/Address"), exports); -__exportStar(require("../models/AddressResponseModel"), exports); -__exportStar(require("../models/AggregationMethod"), exports); -__exportStar(require("../models/AggregationUnit"), exports); -__exportStar(require("../models/AidMode"), exports); -__exportStar(require("../models/AidModeResponseModel"), exports); -__exportStar(require("../models/Alarm"), exports); -__exportStar(require("../models/AlarmSeverity"), exports); -__exportStar(require("../models/AlarmStatus"), exports); -__exportStar(require("../models/AlarmsPaged"), exports); -__exportStar(require("../models/AvailableMethods"), exports); -__exportStar(require("../models/CloudToDeviceMethodResult"), exports); -__exportStar(require("../models/Country"), exports); -__exportStar(require("../models/Curve"), exports); -__exportStar(require("../models/DataPoint"), exports); -__exportStar(require("../models/DeviceCategoriesModel"), exports); -__exportStar(require("../models/DeviceCategory"), exports); -__exportStar(require("../models/DeviceCategoryModel"), exports); -__exportStar(require("../models/DeviceConnectionState"), exports); -__exportStar(require("../models/DeviceFirmwareInfoResponse"), exports); -__exportStar(require("../models/DeviceInfoResponseModel"), exports); -__exportStar(require("../models/DeviceInfoResponseModelPagedResult"), exports); -__exportStar(require("../models/DeviceInfoSyncResponseModel"), exports); -__exportStar(require("../models/DeviceParameterData"), exports); -__exportStar(require("../models/DevicePremiumResponse"), exports); -__exportStar(require("../models/DeviceResponseModel"), exports); -__exportStar(require("../models/EnumValues"), exports); -__exportStar(require("../models/FirmwareResponseModel"), exports); -__exportStar(require("../models/GroupedDeviceParameterData"), exports); -__exportStar(require("../models/LimitedUserProfile"), exports); -__exportStar(require("../models/PagedSystemResult"), exports); -__exportStar(require("../models/ParameterData"), exports); -__exportStar(require("../models/ParameterDetail"), exports); -__exportStar(require("../models/PatchSystemModel"), exports); -__exportStar(require("../models/PremiumFeatureResponseModel"), exports); -__exportStar(require("../models/PremiumFeatures"), exports); -__exportStar(require("../models/Product"), exports); -__exportStar(require("../models/ProductRegistrationAddress"), exports); -__exportStar(require("../models/ProductRegistrationResponse"), exports); -__exportStar(require("../models/ProductRegistrationResponseWithAddress"), exports); -__exportStar(require("../models/ProductResponseModel"), exports); -__exportStar(require("../models/Properties"), exports); -__exportStar(require("../models/Reported"), exports); -__exportStar(require("../models/ReportedFirmware"), exports); -__exportStar(require("../models/SearchGroupSSG"), exports); -__exportStar(require("../models/SecurityLevel"), exports); -__exportStar(require("../models/SmartHomeModeModel"), exports); -__exportStar(require("../models/SmartMode"), exports); -__exportStar(require("../models/SpotPriceDeliveryModel"), exports); -__exportStar(require("../models/SsqGroupDevice"), exports); -__exportStar(require("../models/Status"), exports); -__exportStar(require("../models/StoreSet"), exports); -__exportStar(require("../models/StoreSetEntry"), exports); -__exportStar(require("../models/SystemDevice"), exports); -__exportStar(require("../models/SystemWithDevices"), exports); -__exportStar(require("../models/UpdateGroupRequest"), exports); -__exportStar(require("../models/UserWithAddress"), exports); -__exportStar(require("../models/V2DevicesDeviceIdSmartHomeCategoriesGet200Response"), exports); -__exportStar(require("../models/VoucherManyRequest"), exports); -__exportStar(require("../models/VoucherSingleRequest"), exports); -__exportStar(require("../models/VoucherType"), exports); -__exportStar(require("../models/ZonePatchRequest"), exports); -__exportStar(require("../models/ZoneResponse"), exports); -const Address_1 = require("../models/Address"); -const AddressResponseModel_1 = require("../models/AddressResponseModel"); -const AidModeResponseModel_1 = require("../models/AidModeResponseModel"); -const Alarm_1 = require("../models/Alarm"); -const AlarmStatus_1 = require("../models/AlarmStatus"); -const AlarmsPaged_1 = require("../models/AlarmsPaged"); -const AvailableMethods_1 = require("../models/AvailableMethods"); -const CloudToDeviceMethodResult_1 = require("../models/CloudToDeviceMethodResult"); -const Country_1 = require("../models/Country"); -const Curve_1 = require("../models/Curve"); -const DataPoint_1 = require("../models/DataPoint"); -const DeviceCategoriesModel_1 = require("../models/DeviceCategoriesModel"); -const DeviceCategory_1 = require("../models/DeviceCategory"); -const DeviceCategoryModel_1 = require("../models/DeviceCategoryModel"); -const DeviceFirmwareInfoResponse_1 = require("../models/DeviceFirmwareInfoResponse"); -const DeviceInfoResponseModel_1 = require("../models/DeviceInfoResponseModel"); -const DeviceInfoResponseModelPagedResult_1 = require("../models/DeviceInfoResponseModelPagedResult"); -const DeviceInfoSyncResponseModel_1 = require("../models/DeviceInfoSyncResponseModel"); -const DeviceParameterData_1 = require("../models/DeviceParameterData"); -const DevicePremiumResponse_1 = require("../models/DevicePremiumResponse"); -const DeviceResponseModel_1 = require("../models/DeviceResponseModel"); -const EnumValues_1 = require("../models/EnumValues"); -const FirmwareResponseModel_1 = require("../models/FirmwareResponseModel"); -const GroupedDeviceParameterData_1 = require("../models/GroupedDeviceParameterData"); -const LimitedUserProfile_1 = require("../models/LimitedUserProfile"); -const PagedSystemResult_1 = require("../models/PagedSystemResult"); -const ParameterData_1 = require("../models/ParameterData"); -const ParameterDetail_1 = require("../models/ParameterDetail"); -const PatchSystemModel_1 = require("../models/PatchSystemModel"); -const PremiumFeatureResponseModel_1 = require("../models/PremiumFeatureResponseModel"); -const Product_1 = require("../models/Product"); -const ProductRegistrationAddress_1 = require("../models/ProductRegistrationAddress"); -const ProductRegistrationResponse_1 = require("../models/ProductRegistrationResponse"); -const ProductRegistrationResponseWithAddress_1 = require("../models/ProductRegistrationResponseWithAddress"); -const ProductResponseModel_1 = require("../models/ProductResponseModel"); -const Properties_1 = require("../models/Properties"); -const Reported_1 = require("../models/Reported"); -const ReportedFirmware_1 = require("../models/ReportedFirmware"); -const SearchGroupSSG_1 = require("../models/SearchGroupSSG"); -const SmartHomeModeModel_1 = require("../models/SmartHomeModeModel"); -const SpotPriceDeliveryModel_1 = require("../models/SpotPriceDeliveryModel"); -const SsqGroupDevice_1 = require("../models/SsqGroupDevice"); -const StoreSet_1 = require("../models/StoreSet"); -const StoreSetEntry_1 = require("../models/StoreSetEntry"); -const SystemDevice_1 = require("../models/SystemDevice"); -const SystemWithDevices_1 = require("../models/SystemWithDevices"); -const UpdateGroupRequest_1 = require("../models/UpdateGroupRequest"); -const UserWithAddress_1 = require("../models/UserWithAddress"); -const V2DevicesDeviceIdSmartHomeCategoriesGet200Response_1 = require("../models/V2DevicesDeviceIdSmartHomeCategoriesGet200Response"); -const VoucherManyRequest_1 = require("../models/VoucherManyRequest"); -const VoucherSingleRequest_1 = require("../models/VoucherSingleRequest"); -const ZonePatchRequest_1 = require("../models/ZonePatchRequest"); -const ZoneResponse_1 = require("../models/ZoneResponse"); -/* tslint:disable:no-unused-variable */ -const primitives = ['string', 'boolean', 'double', 'integer', 'long', 'float', 'number', 'any']; +var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default")); +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var ObjectSerializer_exports = {}; +__export(ObjectSerializer_exports, { + ObjectSerializer: () => ObjectSerializer +}); +module.exports = __toCommonJS(ObjectSerializer_exports); +__reExport(ObjectSerializer_exports, require("../models/Address"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/AddressResponseModel"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/AggregationMethod"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/AggregationUnit"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/AidMode"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/AidModeResponseModel"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/Alarm"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/AlarmSeverity"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/AlarmStatus"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/AlarmsPaged"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/AvailableMethods"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/CloudToDeviceMethodResult"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/Country"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/Curve"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/DataPoint"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/DeviceCategoriesModel"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/DeviceCategory"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/DeviceCategoryModel"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/DeviceConnectionState"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/DeviceFirmwareInfoResponse"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/DeviceInfoResponseModel"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/DeviceInfoResponseModelPagedResult"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/DeviceInfoSyncResponseModel"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/DeviceParameterData"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/DevicePremiumResponse"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/DeviceResponseModel"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/EnumValues"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/FirmwareResponseModel"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/GroupedDeviceParameterData"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/LimitedUserProfile"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/PagedSystemResult"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/ParameterData"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/ParameterDetail"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/PatchSystemModel"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/PremiumFeatureResponseModel"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/PremiumFeatures"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/Product"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/ProductRegistrationAddress"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/ProductRegistrationResponse"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/ProductRegistrationResponseWithAddress"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/ProductResponseModel"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/Properties"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/Reported"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/ReportedFirmware"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/SearchGroupSSG"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/SecurityLevel"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/SmartHomeModeModel"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/SmartMode"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/SpotPriceDeliveryModel"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/SsqGroupDevice"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/Status"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/StoreSet"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/StoreSetEntry"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/SystemDevice"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/SystemWithDevices"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/UpdateGroupRequest"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/UserWithAddress"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/V2DevicesDeviceIdSmartHomeCategoriesGet200Response"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/VoucherManyRequest"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/VoucherSingleRequest"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/VoucherType"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/ZonePatchRequest"), module.exports); +__reExport(ObjectSerializer_exports, require("../models/ZoneResponse"), module.exports); +var import_Address = require("../models/Address"); +var import_AddressResponseModel = require("../models/AddressResponseModel"); +var import_AidModeResponseModel = require("../models/AidModeResponseModel"); +var import_Alarm = require("../models/Alarm"); +var import_AlarmStatus = require("../models/AlarmStatus"); +var import_AlarmsPaged = require("../models/AlarmsPaged"); +var import_AvailableMethods = require("../models/AvailableMethods"); +var import_CloudToDeviceMethodResult = require("../models/CloudToDeviceMethodResult"); +var import_Country = require("../models/Country"); +var import_Curve = require("../models/Curve"); +var import_DataPoint = require("../models/DataPoint"); +var import_DeviceCategoriesModel = require("../models/DeviceCategoriesModel"); +var import_DeviceCategory = require("../models/DeviceCategory"); +var import_DeviceCategoryModel = require("../models/DeviceCategoryModel"); +var import_DeviceFirmwareInfoResponse = require("../models/DeviceFirmwareInfoResponse"); +var import_DeviceInfoResponseModel = require("../models/DeviceInfoResponseModel"); +var import_DeviceInfoResponseModelPagedResult = require("../models/DeviceInfoResponseModelPagedResult"); +var import_DeviceInfoSyncResponseModel = require("../models/DeviceInfoSyncResponseModel"); +var import_DeviceParameterData = require("../models/DeviceParameterData"); +var import_DevicePremiumResponse = require("../models/DevicePremiumResponse"); +var import_DeviceResponseModel = require("../models/DeviceResponseModel"); +var import_EnumValues = require("../models/EnumValues"); +var import_FirmwareResponseModel = require("../models/FirmwareResponseModel"); +var import_GroupedDeviceParameterData = require("../models/GroupedDeviceParameterData"); +var import_LimitedUserProfile = require("../models/LimitedUserProfile"); +var import_PagedSystemResult = require("../models/PagedSystemResult"); +var import_ParameterData = require("../models/ParameterData"); +var import_ParameterDetail = require("../models/ParameterDetail"); +var import_PatchSystemModel = require("../models/PatchSystemModel"); +var import_PremiumFeatureResponseModel = require("../models/PremiumFeatureResponseModel"); +var import_Product = require("../models/Product"); +var import_ProductRegistrationAddress = require("../models/ProductRegistrationAddress"); +var import_ProductRegistrationResponse = require("../models/ProductRegistrationResponse"); +var import_ProductRegistrationResponseWithAddress = require("../models/ProductRegistrationResponseWithAddress"); +var import_ProductResponseModel = require("../models/ProductResponseModel"); +var import_Properties = require("../models/Properties"); +var import_Reported = require("../models/Reported"); +var import_ReportedFirmware = require("../models/ReportedFirmware"); +var import_SearchGroupSSG = require("../models/SearchGroupSSG"); +var import_SmartHomeModeModel = require("../models/SmartHomeModeModel"); +var import_SpotPriceDeliveryModel = require("../models/SpotPriceDeliveryModel"); +var import_SsqGroupDevice = require("../models/SsqGroupDevice"); +var import_StoreSet = require("../models/StoreSet"); +var import_StoreSetEntry = require("../models/StoreSetEntry"); +var import_SystemDevice = require("../models/SystemDevice"); +var import_SystemWithDevices = require("../models/SystemWithDevices"); +var import_UpdateGroupRequest = require("../models/UpdateGroupRequest"); +var import_UserWithAddress = require("../models/UserWithAddress"); +var import_V2DevicesDeviceIdSmartHomeCategoriesGet200Response = require("../models/V2DevicesDeviceIdSmartHomeCategoriesGet200Response"); +var import_VoucherManyRequest = require("../models/VoucherManyRequest"); +var import_VoucherSingleRequest = require("../models/VoucherSingleRequest"); +var import_ZonePatchRequest = require("../models/ZonePatchRequest"); +var import_ZoneResponse = require("../models/ZoneResponse"); +const primitives = ["string", "boolean", "double", "integer", "long", "float", "number", "any"]; const supportedMediaTypes = { - 'application/json': Infinity, - 'application/json-patch+json': 1, - 'application/merge-patch+json': 1, - 'application/strategic-merge-patch+json': 1, - 'application/octet-stream': 0, - 'application/x-www-form-urlencoded': 0, + "application/json": Infinity, + "application/json-patch+json": 1, + "application/merge-patch+json": 1, + "application/strategic-merge-patch+json": 1, + "application/octet-stream": 0, + "application/x-www-form-urlencoded": 0 }; -const enumsMap = new Set([ - 'AggregationMethod', - 'AggregationUnit', - 'AidMode', - 'AlarmSeverity', - 'DeviceConnectionState', - 'PremiumFeatures', - 'SecurityLevel', - 'SmartMode', - 'Status', - 'VoucherType', +const enumsMap = /* @__PURE__ */ new Set([ + "AggregationMethod", + "AggregationUnit", + "AidMode", + "AlarmSeverity", + "DeviceConnectionState", + "PremiumFeatures", + "SecurityLevel", + "SmartMode", + "Status", + "VoucherType" ]); const typeMap = { - Address: Address_1.Address, - AddressResponseModel: AddressResponseModel_1.AddressResponseModel, - AidModeResponseModel: AidModeResponseModel_1.AidModeResponseModel, - Alarm: Alarm_1.Alarm, - AlarmStatus: AlarmStatus_1.AlarmStatus, - AlarmsPaged: AlarmsPaged_1.AlarmsPaged, - AvailableMethods: AvailableMethods_1.AvailableMethods, - CloudToDeviceMethodResult: CloudToDeviceMethodResult_1.CloudToDeviceMethodResult, - Country: Country_1.Country, - Curve: Curve_1.Curve, - DataPoint: DataPoint_1.DataPoint, - DeviceCategoriesModel: DeviceCategoriesModel_1.DeviceCategoriesModel, - DeviceCategory: DeviceCategory_1.DeviceCategory, - DeviceCategoryModel: DeviceCategoryModel_1.DeviceCategoryModel, - DeviceFirmwareInfoResponse: DeviceFirmwareInfoResponse_1.DeviceFirmwareInfoResponse, - DeviceInfoResponseModel: DeviceInfoResponseModel_1.DeviceInfoResponseModel, - DeviceInfoResponseModelPagedResult: DeviceInfoResponseModelPagedResult_1.DeviceInfoResponseModelPagedResult, - DeviceInfoSyncResponseModel: DeviceInfoSyncResponseModel_1.DeviceInfoSyncResponseModel, - DeviceParameterData: DeviceParameterData_1.DeviceParameterData, - DevicePremiumResponse: DevicePremiumResponse_1.DevicePremiumResponse, - DeviceResponseModel: DeviceResponseModel_1.DeviceResponseModel, - EnumValues: EnumValues_1.EnumValues, - FirmwareResponseModel: FirmwareResponseModel_1.FirmwareResponseModel, - GroupedDeviceParameterData: GroupedDeviceParameterData_1.GroupedDeviceParameterData, - LimitedUserProfile: LimitedUserProfile_1.LimitedUserProfile, - PagedSystemResult: PagedSystemResult_1.PagedSystemResult, - ParameterData: ParameterData_1.ParameterData, - ParameterDetail: ParameterDetail_1.ParameterDetail, - PatchSystemModel: PatchSystemModel_1.PatchSystemModel, - PremiumFeatureResponseModel: PremiumFeatureResponseModel_1.PremiumFeatureResponseModel, - Product: Product_1.Product, - ProductRegistrationAddress: ProductRegistrationAddress_1.ProductRegistrationAddress, - ProductRegistrationResponse: ProductRegistrationResponse_1.ProductRegistrationResponse, - ProductRegistrationResponseWithAddress: ProductRegistrationResponseWithAddress_1.ProductRegistrationResponseWithAddress, - ProductResponseModel: ProductResponseModel_1.ProductResponseModel, - Properties: Properties_1.Properties, - Reported: Reported_1.Reported, - ReportedFirmware: ReportedFirmware_1.ReportedFirmware, - SearchGroupSSG: SearchGroupSSG_1.SearchGroupSSG, - SmartHomeModeModel: SmartHomeModeModel_1.SmartHomeModeModel, - SpotPriceDeliveryModel: SpotPriceDeliveryModel_1.SpotPriceDeliveryModel, - SsqGroupDevice: SsqGroupDevice_1.SsqGroupDevice, - StoreSet: StoreSet_1.StoreSet, - StoreSetEntry: StoreSetEntry_1.StoreSetEntry, - SystemDevice: SystemDevice_1.SystemDevice, - SystemWithDevices: SystemWithDevices_1.SystemWithDevices, - UpdateGroupRequest: UpdateGroupRequest_1.UpdateGroupRequest, - UserWithAddress: UserWithAddress_1.UserWithAddress, - V2DevicesDeviceIdSmartHomeCategoriesGet200Response: V2DevicesDeviceIdSmartHomeCategoriesGet200Response_1.V2DevicesDeviceIdSmartHomeCategoriesGet200Response, - VoucherManyRequest: VoucherManyRequest_1.VoucherManyRequest, - VoucherSingleRequest: VoucherSingleRequest_1.VoucherSingleRequest, - ZonePatchRequest: ZonePatchRequest_1.ZonePatchRequest, - ZoneResponse: ZoneResponse_1.ZoneResponse, + Address: import_Address.Address, + AddressResponseModel: import_AddressResponseModel.AddressResponseModel, + AidModeResponseModel: import_AidModeResponseModel.AidModeResponseModel, + Alarm: import_Alarm.Alarm, + AlarmStatus: import_AlarmStatus.AlarmStatus, + AlarmsPaged: import_AlarmsPaged.AlarmsPaged, + AvailableMethods: import_AvailableMethods.AvailableMethods, + CloudToDeviceMethodResult: import_CloudToDeviceMethodResult.CloudToDeviceMethodResult, + Country: import_Country.Country, + Curve: import_Curve.Curve, + DataPoint: import_DataPoint.DataPoint, + DeviceCategoriesModel: import_DeviceCategoriesModel.DeviceCategoriesModel, + DeviceCategory: import_DeviceCategory.DeviceCategory, + DeviceCategoryModel: import_DeviceCategoryModel.DeviceCategoryModel, + DeviceFirmwareInfoResponse: import_DeviceFirmwareInfoResponse.DeviceFirmwareInfoResponse, + DeviceInfoResponseModel: import_DeviceInfoResponseModel.DeviceInfoResponseModel, + DeviceInfoResponseModelPagedResult: import_DeviceInfoResponseModelPagedResult.DeviceInfoResponseModelPagedResult, + DeviceInfoSyncResponseModel: import_DeviceInfoSyncResponseModel.DeviceInfoSyncResponseModel, + DeviceParameterData: import_DeviceParameterData.DeviceParameterData, + DevicePremiumResponse: import_DevicePremiumResponse.DevicePremiumResponse, + DeviceResponseModel: import_DeviceResponseModel.DeviceResponseModel, + EnumValues: import_EnumValues.EnumValues, + FirmwareResponseModel: import_FirmwareResponseModel.FirmwareResponseModel, + GroupedDeviceParameterData: import_GroupedDeviceParameterData.GroupedDeviceParameterData, + LimitedUserProfile: import_LimitedUserProfile.LimitedUserProfile, + PagedSystemResult: import_PagedSystemResult.PagedSystemResult, + ParameterData: import_ParameterData.ParameterData, + ParameterDetail: import_ParameterDetail.ParameterDetail, + PatchSystemModel: import_PatchSystemModel.PatchSystemModel, + PremiumFeatureResponseModel: import_PremiumFeatureResponseModel.PremiumFeatureResponseModel, + Product: import_Product.Product, + ProductRegistrationAddress: import_ProductRegistrationAddress.ProductRegistrationAddress, + ProductRegistrationResponse: import_ProductRegistrationResponse.ProductRegistrationResponse, + ProductRegistrationResponseWithAddress: import_ProductRegistrationResponseWithAddress.ProductRegistrationResponseWithAddress, + ProductResponseModel: import_ProductResponseModel.ProductResponseModel, + Properties: import_Properties.Properties, + Reported: import_Reported.Reported, + ReportedFirmware: import_ReportedFirmware.ReportedFirmware, + SearchGroupSSG: import_SearchGroupSSG.SearchGroupSSG, + SmartHomeModeModel: import_SmartHomeModeModel.SmartHomeModeModel, + SpotPriceDeliveryModel: import_SpotPriceDeliveryModel.SpotPriceDeliveryModel, + SsqGroupDevice: import_SsqGroupDevice.SsqGroupDevice, + StoreSet: import_StoreSet.StoreSet, + StoreSetEntry: import_StoreSetEntry.StoreSetEntry, + SystemDevice: import_SystemDevice.SystemDevice, + SystemWithDevices: import_SystemWithDevices.SystemWithDevices, + UpdateGroupRequest: import_UpdateGroupRequest.UpdateGroupRequest, + UserWithAddress: import_UserWithAddress.UserWithAddress, + V2DevicesDeviceIdSmartHomeCategoriesGet200Response: import_V2DevicesDeviceIdSmartHomeCategoriesGet200Response.V2DevicesDeviceIdSmartHomeCategoriesGet200Response, + VoucherManyRequest: import_VoucherManyRequest.VoucherManyRequest, + VoucherSingleRequest: import_VoucherSingleRequest.VoucherSingleRequest, + ZonePatchRequest: import_ZonePatchRequest.ZonePatchRequest, + ZoneResponse: import_ZoneResponse.ZoneResponse }; class ObjectSerializer { - static findCorrectType(data, expectedType) { - if (data == undefined) { - return expectedType; - } - else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + static findCorrectType(data, expectedType) { + if (data == void 0) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap.has(expectedType)) { + return expectedType; + } + if (!typeMap[expectedType]) { + return expectedType; + } + const discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; + } else { + if (data[discriminatorProperty]) { + const discriminatorType = data[discriminatorProperty]; + if (typeMap[discriminatorType]) { + return discriminatorType; + } else { return expectedType; + } + } else { + return expectedType; } - else if (expectedType === 'Date') { - return expectedType; - } - else { - if (enumsMap.has(expectedType)) { - return expectedType; - } - if (!typeMap[expectedType]) { - return expectedType; // w/e we don't know the type - } - // Check the discriminator - const discriminatorProperty = typeMap[expectedType].discriminator; - if (discriminatorProperty == null) { - return expectedType; // the type does not have a discriminator. use it. - } - else { - if (data[discriminatorProperty]) { - const discriminatorType = data[discriminatorProperty]; - if (typeMap[discriminatorType]) { - return discriminatorType; // use the type given in the discriminator - } - else { - return expectedType; // discriminator did not map to a type - } - } - else { - return expectedType; // discriminator was not present (or an empty string) - } - } - } + } } - static serialize(data, type, format) { - if (data == undefined) { - return data; - } - else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } - else if (type.lastIndexOf('Array<', 0) === 0) { - // string.startsWith pre es6 - let subType = type.replace('Array<', ''); // Array => Type> - subType = subType.substring(0, subType.length - 1); // Type> => Type - const transformedData = []; - for (const date of data) { - transformedData.push(ObjectSerializer.serialize(date, subType, format)); - } - return transformedData; - } - else if (type === 'Date') { - if (format == 'date') { - let month = data.getMonth() + 1; - month = month < 10 ? '0' + month.toString() : month.toString(); - let day = data.getDate(); - day = day < 10 ? '0' + day.toString() : day.toString(); - return data.getFullYear() + '-' + month + '-' + day; - } - else { - return data.toISOString(); - } - } - else { - if (enumsMap.has(type)) { - return data; - } - if (!typeMap[type]) { - // in case we dont know the type - return data; - } - // Get the actual type of this object - type = this.findCorrectType(data, type); - // get the map for the correct type. - const attributeTypes = typeMap[type].getAttributeTypeMap(); - const instance = {}; - for (const attributeType of attributeTypes) { - instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format); - } - return instance; - } + } + static serialize(data, type, format) { + if (data == void 0) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { + let subType = type.replace("Array<", ""); + subType = subType.substring(0, subType.length - 1); + const transformedData = []; + for (const date of data) { + transformedData.push(ObjectSerializer.serialize(date, subType, format)); + } + return transformedData; + } else if (type === "Date") { + if (format == "date") { + let month = data.getMonth() + 1; + month = month < 10 ? "0" + month.toString() : month.toString(); + let day = data.getDate(); + day = day < 10 ? "0" + day.toString() : day.toString(); + return data.getFullYear() + "-" + month + "-" + day; + } else { + return data.toISOString(); + } + } else { + if (enumsMap.has(type)) { + return data; + } + if (!typeMap[type]) { + return data; + } + type = this.findCorrectType(data, type); + const attributeTypes = typeMap[type].getAttributeTypeMap(); + const instance = {}; + for (const attributeType of attributeTypes) { + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format); + } + return instance; } - static deserialize(data, type, format) { - // polymorphism may change the actual type. - type = ObjectSerializer.findCorrectType(data, type); - if (data == undefined) { - return data; - } - else if (primitives.indexOf(type.toLowerCase()) !== -1) { - return data; - } - else if (type.lastIndexOf('Array<', 0) === 0) { - // string.startsWith pre es6 - let subType = type.replace('Array<', ''); // Array => Type> - subType = subType.substring(0, subType.length - 1); // Type> => Type - const transformedData = []; - for (const date of data) { - transformedData.push(ObjectSerializer.deserialize(date, subType, format)); - } - return transformedData; - } - else if (type === 'Date') { - return new Date(data); - } - else { - if (enumsMap.has(type)) { - // is Enum - return data; - } - if (!typeMap[type]) { - // dont know the type - return data; - } - const instance = new typeMap[type](); - const attributeTypes = typeMap[type].getAttributeTypeMap(); - for (const attributeType of attributeTypes) { - const value = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format); - if (value !== undefined) { - instance[attributeType.name] = value; - } - } - return instance; + } + static deserialize(data, type, format) { + type = ObjectSerializer.findCorrectType(data, type); + if (data == void 0) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { + let subType = type.replace("Array<", ""); + subType = subType.substring(0, subType.length - 1); + const transformedData = []; + for (const date of data) { + transformedData.push(ObjectSerializer.deserialize(date, subType, format)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap.has(type)) { + return data; + } + if (!typeMap[type]) { + return data; + } + const instance = new typeMap[type](); + const attributeTypes = typeMap[type].getAttributeTypeMap(); + for (const attributeType of attributeTypes) { + const value = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format); + if (value !== void 0) { + instance[attributeType.name] = value; } + } + return instance; } - /** - * Normalize media type - * - * We currently do not handle any media types attributes, i.e. anything - * after a semicolon. All content is assumed to be UTF-8 compatible. - */ - static normalizeMediaType(mediaType) { - if (mediaType === undefined) { - return undefined; - } - return mediaType.split(';')[0].trim().toLowerCase(); + } + static normalizeMediaType(mediaType) { + if (mediaType === void 0) { + return void 0; } - /** - * From a list of possible media types, choose the one we can handle best. - * - * The order of the given media types does not have any impact on the choice - * made. - */ - static getPreferredMediaType(mediaTypes) { - /** According to OAS 3 we should default to json */ - if (mediaTypes.length === 0) { - return 'application/json'; - } - const normalMediaTypes = mediaTypes.map(this.normalizeMediaType); - let selectedMediaType = undefined; - let selectedRank = -Infinity; - for (const mediaType of normalMediaTypes) { - if (supportedMediaTypes[mediaType] > selectedRank) { - selectedMediaType = mediaType; - selectedRank = supportedMediaTypes[mediaType]; - } - } - if (selectedMediaType === undefined) { - throw new Error('None of the given media types are supported: ' + mediaTypes.join(', ')); - } - return selectedMediaType; + return mediaType.split(";")[0].trim().toLowerCase(); + } + static getPreferredMediaType(mediaTypes) { + if (mediaTypes.length === 0) { + return "application/json"; } - /** - * Convert data to a string according the given media type - */ - static stringify(data, mediaType) { - if (mediaType === 'text/plain') { - return String(data); - } - if (mediaType === 'application/json' || mediaType === 'application/json-patch+json' || mediaType === 'application/merge-patch+json' || mediaType === 'application/strategic-merge-patch+json') { - return JSON.stringify(data); - } - throw new Error('The mediaType ' + mediaType + ' is not supported by ObjectSerializer.stringify.'); + const normalMediaTypes = mediaTypes.map(this.normalizeMediaType); + let selectedMediaType = void 0; + let selectedRank = -Infinity; + for (const mediaType of normalMediaTypes) { + if (supportedMediaTypes[mediaType] > selectedRank) { + selectedMediaType = mediaType; + selectedRank = supportedMediaTypes[mediaType]; + } } - /** - * Parse data from a string according to the given media type - */ - static parse(rawData, mediaType) { - if (mediaType === undefined) { - throw new Error('Cannot parse content. No Content-Type defined.'); - } - if (mediaType === 'text/plain') { - return rawData; - } - if (mediaType === 'application/json' || mediaType === 'application/json-patch+json' || mediaType === 'application/merge-patch+json' || mediaType === 'application/strategic-merge-patch+json') { - return JSON.parse(rawData); - } - if (mediaType === 'text/html') { - return rawData; - } - throw new Error('The mediaType ' + mediaType + ' is not supported by ObjectSerializer.parse.'); + if (selectedMediaType === void 0) { + throw new Error("None of the given media types are supported: " + mediaTypes.join(", ")); + } + return selectedMediaType; + } + static stringify(data, mediaType) { + if (mediaType === "text/plain") { + return String(data); + } + if (mediaType === "application/json" || mediaType === "application/json-patch+json" || mediaType === "application/merge-patch+json" || mediaType === "application/strategic-merge-patch+json") { + return JSON.stringify(data); + } + throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify."); + } + static parse(rawData, mediaType) { + if (mediaType === void 0) { + throw new Error("Cannot parse content. No Content-Type defined."); + } + if (mediaType === "text/plain") { + return rawData; + } + if (mediaType === "application/json" || mediaType === "application/json-patch+json" || mediaType === "application/merge-patch+json" || mediaType === "application/strategic-merge-patch+json") { + return JSON.parse(rawData); + } + if (mediaType === "text/html") { + return rawData; } + throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse."); + } } -exports.ObjectSerializer = ObjectSerializer; -//# sourceMappingURL=ObjectSerializer.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + ObjectSerializer +}); +//# sourceMappingURL=ObjectSerializer.js.map diff --git a/build/models/ObjectSerializer.js.map b/build/models/ObjectSerializer.js.map index ee0a0b0..b2e5b13 100644 --- a/build/models/ObjectSerializer.js.map +++ b/build/models/ObjectSerializer.js.map @@ -1 +1,7 @@ -{"version":3,"file":"ObjectSerializer.js","sourceRoot":"","sources":["../../src/models/ObjectSerializer.ts"],"names":[],"mappings":";;;;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AC;IACvG,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,KAAK,CAAC,OAAe,EAAE,SAA6B;QAC9D,IAAI,SAAS,KAAK,SAAS,EAAE;YACzB,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;SACrE;QAED,IAAI,SAAS,KAAK,YAAY,EAAE;YAC5B,OAAO,OAAO,CAAC;SAClB;QAED,IAAI,SAAS,KAAK,kBAAkB,IAAI,SAAS,KAAK,6BAA6B,IAAI,SAAS,KAAK,8BAA8B,IAAI,SAAS,KAAK,wCAAwC,EAAE;YAC3L,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;SAC9B;QAED,IAAI,SAAS,KAAK,WAAW,EAAE;YAC3B,OAAO,OAAO,CAAC;SAClB;QAED,MAAM,IAAI,KAAK,CAAC,gBAAgB,GAAG,SAAS,GAAG,8CAA8C,CAAC,CAAC;IACnG,CAAC;CACJ;AA1MD,4CA0MC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/ObjectSerializer.ts"], + "sourcesContent": ["export * from '../models/Address';\nexport * from '../models/AddressResponseModel';\nexport * from '../models/AggregationMethod';\nexport * from '../models/AggregationUnit';\nexport * from '../models/AidMode';\nexport * from '../models/AidModeResponseModel';\nexport * from '../models/Alarm';\nexport * from '../models/AlarmSeverity';\nexport * from '../models/AlarmStatus';\nexport * from '../models/AlarmsPaged';\nexport * from '../models/AvailableMethods';\nexport * from '../models/CloudToDeviceMethodResult';\nexport * from '../models/Country';\nexport * from '../models/Curve';\nexport * from '../models/DataPoint';\nexport * from '../models/DeviceCategoriesModel';\nexport * from '../models/DeviceCategory';\nexport * from '../models/DeviceCategoryModel';\nexport * from '../models/DeviceConnectionState';\nexport * from '../models/DeviceFirmwareInfoResponse';\nexport * from '../models/DeviceInfoResponseModel';\nexport * from '../models/DeviceInfoResponseModelPagedResult';\nexport * from '../models/DeviceInfoSyncResponseModel';\nexport * from '../models/DeviceParameterData';\nexport * from '../models/DevicePremiumResponse';\nexport * from '../models/DeviceResponseModel';\nexport * from '../models/EnumValues';\nexport * from '../models/FirmwareResponseModel';\nexport * from '../models/GroupedDeviceParameterData';\nexport * from '../models/LimitedUserProfile';\nexport * from '../models/PagedSystemResult';\nexport * from '../models/ParameterData';\nexport * from '../models/ParameterDetail';\nexport * from '../models/PatchSystemModel';\nexport * from '../models/PremiumFeatureResponseModel';\nexport * from '../models/PremiumFeatures';\nexport * from '../models/Product';\nexport * from '../models/ProductRegistrationAddress';\nexport * from '../models/ProductRegistrationResponse';\nexport * from '../models/ProductRegistrationResponseWithAddress';\nexport * from '../models/ProductResponseModel';\nexport * from '../models/Properties';\nexport * from '../models/Reported';\nexport * from '../models/ReportedFirmware';\nexport * from '../models/SearchGroupSSG';\nexport * from '../models/SecurityLevel';\nexport * from '../models/SmartHomeModeModel';\nexport * from '../models/SmartMode';\nexport * from '../models/SpotPriceDeliveryModel';\nexport * from '../models/SsqGroupDevice';\nexport * from '../models/Status';\nexport * from '../models/StoreSet';\nexport * from '../models/StoreSetEntry';\nexport * from '../models/SystemDevice';\nexport * from '../models/SystemWithDevices';\nexport * from '../models/UpdateGroupRequest';\nexport * from '../models/UserWithAddress';\nexport * from '../models/V2DevicesDeviceIdSmartHomeCategoriesGet200Response';\nexport * from '../models/VoucherManyRequest';\nexport * from '../models/VoucherSingleRequest';\nexport * from '../models/VoucherType';\nexport * from '../models/ZonePatchRequest';\nexport * from '../models/ZoneResponse';\n\nimport { Address } from '../models/Address';\nimport { AddressResponseModel } from '../models/AddressResponseModel';\nimport { AidModeResponseModel } from '../models/AidModeResponseModel';\nimport { Alarm } from '../models/Alarm';\nimport { AlarmStatus } from '../models/AlarmStatus';\nimport { AlarmsPaged } from '../models/AlarmsPaged';\nimport { AvailableMethods } from '../models/AvailableMethods';\nimport { CloudToDeviceMethodResult } from '../models/CloudToDeviceMethodResult';\nimport { Country } from '../models/Country';\nimport { Curve } from '../models/Curve';\nimport { DataPoint } from '../models/DataPoint';\nimport { DeviceCategoriesModel } from '../models/DeviceCategoriesModel';\nimport { DeviceCategory } from '../models/DeviceCategory';\nimport { DeviceCategoryModel } from '../models/DeviceCategoryModel';\nimport { DeviceFirmwareInfoResponse } from '../models/DeviceFirmwareInfoResponse';\nimport { DeviceInfoResponseModel } from '../models/DeviceInfoResponseModel';\nimport { DeviceInfoResponseModelPagedResult } from '../models/DeviceInfoResponseModelPagedResult';\nimport { DeviceInfoSyncResponseModel } from '../models/DeviceInfoSyncResponseModel';\nimport { DeviceParameterData } from '../models/DeviceParameterData';\nimport { DevicePremiumResponse } from '../models/DevicePremiumResponse';\nimport { DeviceResponseModel } from '../models/DeviceResponseModel';\nimport { EnumValues } from '../models/EnumValues';\nimport { FirmwareResponseModel } from '../models/FirmwareResponseModel';\nimport { GroupedDeviceParameterData } from '../models/GroupedDeviceParameterData';\nimport { LimitedUserProfile } from '../models/LimitedUserProfile';\nimport { PagedSystemResult } from '../models/PagedSystemResult';\nimport { ParameterData } from '../models/ParameterData';\nimport { ParameterDetail } from '../models/ParameterDetail';\nimport { PatchSystemModel } from '../models/PatchSystemModel';\nimport { PremiumFeatureResponseModel } from '../models/PremiumFeatureResponseModel';\nimport { Product } from '../models/Product';\nimport { ProductRegistrationAddress } from '../models/ProductRegistrationAddress';\nimport { ProductRegistrationResponse } from '../models/ProductRegistrationResponse';\nimport { ProductRegistrationResponseWithAddress } from '../models/ProductRegistrationResponseWithAddress';\nimport { ProductResponseModel } from '../models/ProductResponseModel';\nimport { Properties } from '../models/Properties';\nimport { Reported } from '../models/Reported';\nimport { ReportedFirmware } from '../models/ReportedFirmware';\nimport { SearchGroupSSG } from '../models/SearchGroupSSG';\nimport { SmartHomeModeModel } from '../models/SmartHomeModeModel';\nimport { SpotPriceDeliveryModel } from '../models/SpotPriceDeliveryModel';\nimport { SsqGroupDevice } from '../models/SsqGroupDevice';\nimport { StoreSet } from '../models/StoreSet';\nimport { StoreSetEntry } from '../models/StoreSetEntry';\nimport { SystemDevice } from '../models/SystemDevice';\nimport { SystemWithDevices } from '../models/SystemWithDevices';\nimport { UpdateGroupRequest } from '../models/UpdateGroupRequest';\nimport { UserWithAddress } from '../models/UserWithAddress';\nimport { V2DevicesDeviceIdSmartHomeCategoriesGet200Response } from '../models/V2DevicesDeviceIdSmartHomeCategoriesGet200Response';\nimport { VoucherManyRequest } from '../models/VoucherManyRequest';\nimport { VoucherSingleRequest } from '../models/VoucherSingleRequest';\nimport { ZonePatchRequest } from '../models/ZonePatchRequest';\nimport { ZoneResponse } from '../models/ZoneResponse';\n\n/* tslint:disable:no-unused-variable */\nconst primitives = ['string', 'boolean', 'double', 'integer', 'long', 'float', 'number', 'any'];\n\nconst supportedMediaTypes: { [mediaType: string]: number } = {\n 'application/json': Infinity,\n 'application/json-patch+json': 1,\n 'application/merge-patch+json': 1,\n 'application/strategic-merge-patch+json': 1,\n 'application/octet-stream': 0,\n 'application/x-www-form-urlencoded': 0,\n};\n\nconst enumsMap: Set = new Set([\n 'AggregationMethod',\n 'AggregationUnit',\n 'AidMode',\n 'AlarmSeverity',\n 'DeviceConnectionState',\n 'PremiumFeatures',\n 'SecurityLevel',\n 'SmartMode',\n 'Status',\n 'VoucherType',\n]);\n\nconst typeMap: { [index: string]: any } = {\n Address: Address,\n AddressResponseModel: AddressResponseModel,\n AidModeResponseModel: AidModeResponseModel,\n Alarm: Alarm,\n AlarmStatus: AlarmStatus,\n AlarmsPaged: AlarmsPaged,\n AvailableMethods: AvailableMethods,\n CloudToDeviceMethodResult: CloudToDeviceMethodResult,\n Country: Country,\n Curve: Curve,\n DataPoint: DataPoint,\n DeviceCategoriesModel: DeviceCategoriesModel,\n DeviceCategory: DeviceCategory,\n DeviceCategoryModel: DeviceCategoryModel,\n DeviceFirmwareInfoResponse: DeviceFirmwareInfoResponse,\n DeviceInfoResponseModel: DeviceInfoResponseModel,\n DeviceInfoResponseModelPagedResult: DeviceInfoResponseModelPagedResult,\n DeviceInfoSyncResponseModel: DeviceInfoSyncResponseModel,\n DeviceParameterData: DeviceParameterData,\n DevicePremiumResponse: DevicePremiumResponse,\n DeviceResponseModel: DeviceResponseModel,\n EnumValues: EnumValues,\n FirmwareResponseModel: FirmwareResponseModel,\n GroupedDeviceParameterData: GroupedDeviceParameterData,\n LimitedUserProfile: LimitedUserProfile,\n PagedSystemResult: PagedSystemResult,\n ParameterData: ParameterData,\n ParameterDetail: ParameterDetail,\n PatchSystemModel: PatchSystemModel,\n PremiumFeatureResponseModel: PremiumFeatureResponseModel,\n Product: Product,\n ProductRegistrationAddress: ProductRegistrationAddress,\n ProductRegistrationResponse: ProductRegistrationResponse,\n ProductRegistrationResponseWithAddress: ProductRegistrationResponseWithAddress,\n ProductResponseModel: ProductResponseModel,\n Properties: Properties,\n Reported: Reported,\n ReportedFirmware: ReportedFirmware,\n SearchGroupSSG: SearchGroupSSG,\n SmartHomeModeModel: SmartHomeModeModel,\n SpotPriceDeliveryModel: SpotPriceDeliveryModel,\n SsqGroupDevice: SsqGroupDevice,\n StoreSet: StoreSet,\n StoreSetEntry: StoreSetEntry,\n SystemDevice: SystemDevice,\n SystemWithDevices: SystemWithDevices,\n UpdateGroupRequest: UpdateGroupRequest,\n UserWithAddress: UserWithAddress,\n V2DevicesDeviceIdSmartHomeCategoriesGet200Response: V2DevicesDeviceIdSmartHomeCategoriesGet200Response,\n VoucherManyRequest: VoucherManyRequest,\n VoucherSingleRequest: VoucherSingleRequest,\n ZonePatchRequest: ZonePatchRequest,\n ZoneResponse: ZoneResponse,\n};\n\nexport class ObjectSerializer {\n public static findCorrectType(data: any, expectedType: string): string {\n if (data == undefined) {\n return expectedType;\n } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) {\n return expectedType;\n } else if (expectedType === 'Date') {\n return expectedType;\n } else {\n if (enumsMap.has(expectedType)) {\n return expectedType;\n }\n\n if (!typeMap[expectedType]) {\n return expectedType; // w/e we don't know the type\n }\n\n // Check the discriminator\n const discriminatorProperty = typeMap[expectedType].discriminator;\n if (discriminatorProperty == null) {\n return expectedType; // the type does not have a discriminator. use it.\n } else {\n if (data[discriminatorProperty]) {\n const discriminatorType = data[discriminatorProperty];\n if (typeMap[discriminatorType]) {\n return discriminatorType; // use the type given in the discriminator\n } else {\n return expectedType; // discriminator did not map to a type\n }\n } else {\n return expectedType; // discriminator was not present (or an empty string)\n }\n }\n }\n }\n\n public static serialize(data: any, type: string, format: string): any {\n if (data == undefined) {\n return data;\n } else if (primitives.indexOf(type.toLowerCase()) !== -1) {\n return data;\n } else if (type.lastIndexOf('Array<', 0) === 0) {\n // string.startsWith pre es6\n let subType: string = type.replace('Array<', ''); // Array => Type>\n subType = subType.substring(0, subType.length - 1); // Type> => Type\n const transformedData: any[] = [];\n for (const date of data) {\n transformedData.push(ObjectSerializer.serialize(date, subType, format));\n }\n return transformedData;\n } else if (type === 'Date') {\n if (format == 'date') {\n let month = data.getMonth() + 1;\n month = month < 10 ? '0' + month.toString() : month.toString();\n let day = data.getDate();\n day = day < 10 ? '0' + day.toString() : day.toString();\n\n return data.getFullYear() + '-' + month + '-' + day;\n } else {\n return data.toISOString();\n }\n } else {\n if (enumsMap.has(type)) {\n return data;\n }\n if (!typeMap[type]) {\n // in case we dont know the type\n return data;\n }\n\n // Get the actual type of this object\n type = this.findCorrectType(data, type);\n\n // get the map for the correct type.\n const attributeTypes = typeMap[type].getAttributeTypeMap();\n const instance: { [index: string]: any } = {};\n for (const attributeType of attributeTypes) {\n instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format);\n }\n return instance;\n }\n }\n\n public static deserialize(data: any, type: string, format: string): any {\n // polymorphism may change the actual type.\n type = ObjectSerializer.findCorrectType(data, type);\n if (data == undefined) {\n return data;\n } else if (primitives.indexOf(type.toLowerCase()) !== -1) {\n return data;\n } else if (type.lastIndexOf('Array<', 0) === 0) {\n // string.startsWith pre es6\n let subType: string = type.replace('Array<', ''); // Array => Type>\n subType = subType.substring(0, subType.length - 1); // Type> => Type\n const transformedData: any[] = [];\n for (const date of data) {\n transformedData.push(ObjectSerializer.deserialize(date, subType, format));\n }\n return transformedData;\n } else if (type === 'Date') {\n return new Date(data);\n } else {\n if (enumsMap.has(type)) {\n // is Enum\n return data;\n }\n\n if (!typeMap[type]) {\n // dont know the type\n return data;\n }\n const instance = new typeMap[type]();\n const attributeTypes = typeMap[type].getAttributeTypeMap();\n for (const attributeType of attributeTypes) {\n const value = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format);\n if (value !== undefined) {\n instance[attributeType.name] = value;\n }\n }\n return instance;\n }\n }\n\n /**\n * Normalize media type\n *\n * We currently do not handle any media types attributes, i.e. anything\n * after a semicolon. All content is assumed to be UTF-8 compatible.\n */\n public static normalizeMediaType(mediaType: string | undefined): string | undefined {\n if (mediaType === undefined) {\n return undefined;\n }\n return mediaType.split(';')[0].trim().toLowerCase();\n }\n\n /**\n * From a list of possible media types, choose the one we can handle best.\n *\n * The order of the given media types does not have any impact on the choice\n * made.\n */\n public static getPreferredMediaType(mediaTypes: Array): string {\n /** According to OAS 3 we should default to json */\n if (mediaTypes.length === 0) {\n return 'application/json';\n }\n\n const normalMediaTypes = mediaTypes.map(this.normalizeMediaType);\n let selectedMediaType: string | undefined = undefined;\n let selectedRank: number = -Infinity;\n for (const mediaType of normalMediaTypes) {\n if (supportedMediaTypes[mediaType!] > selectedRank) {\n selectedMediaType = mediaType;\n selectedRank = supportedMediaTypes[mediaType!];\n }\n }\n\n if (selectedMediaType === undefined) {\n throw new Error('None of the given media types are supported: ' + mediaTypes.join(', '));\n }\n\n return selectedMediaType!;\n }\n\n /**\n * Convert data to a string according the given media type\n */\n public static stringify(data: any, mediaType: string): string {\n if (mediaType === 'text/plain') {\n return String(data);\n }\n\n if (mediaType === 'application/json' || mediaType === 'application/json-patch+json' || mediaType === 'application/merge-patch+json' || mediaType === 'application/strategic-merge-patch+json') {\n return JSON.stringify(data);\n }\n\n throw new Error('The mediaType ' + mediaType + ' is not supported by ObjectSerializer.stringify.');\n }\n\n /**\n * Parse data from a string according to the given media type\n */\n public static parse(rawData: string, mediaType: string | undefined): string {\n if (mediaType === undefined) {\n throw new Error('Cannot parse content. No Content-Type defined.');\n }\n\n if (mediaType === 'text/plain') {\n return rawData;\n }\n\n if (mediaType === 'application/json' || mediaType === 'application/json-patch+json' || mediaType === 'application/merge-patch+json' || mediaType === 'application/strategic-merge-patch+json') {\n return JSON.parse(rawData);\n }\n\n if (mediaType === 'text/html') {\n return rawData;\n }\n\n throw new Error('The mediaType ' + mediaType + ' is not supported by ObjectSerializer.parse.');\n }\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qCAAc,8BAAd;AACA,qCAAc,2CADd;AAEA,qCAAc,wCAFd;AAGA,qCAAc,sCAHd;AAIA,qCAAc,8BAJd;AAKA,qCAAc,2CALd;AAMA,qCAAc,4BANd;AAOA,qCAAc,oCAPd;AAQA,qCAAc,kCARd;AASA,qCAAc,kCATd;AAUA,qCAAc,uCAVd;AAWA,qCAAc,gDAXd;AAYA,qCAAc,8BAZd;AAaA,qCAAc,4BAbd;AAcA,qCAAc,gCAdd;AAeA,qCAAc,4CAfd;AAgBA,qCAAc,qCAhBd;AAiBA,qCAAc,0CAjBd;AAkBA,qCAAc,4CAlBd;AAmBA,qCAAc,iDAnBd;AAoBA,qCAAc,8CApBd;AAqBA,qCAAc,yDArBd;AAsBA,qCAAc,kDAtBd;AAuBA,qCAAc,0CAvBd;AAwBA,qCAAc,4CAxBd;AAyBA,qCAAc,0CAzBd;AA0BA,qCAAc,iCA1Bd;AA2BA,qCAAc,4CA3Bd;AA4BA,qCAAc,iDA5Bd;AA6BA,qCAAc,yCA7Bd;AA8BA,qCAAc,wCA9Bd;AA+BA,qCAAc,oCA/Bd;AAgCA,qCAAc,sCAhCd;AAiCA,qCAAc,uCAjCd;AAkCA,qCAAc,kDAlCd;AAmCA,qCAAc,sCAnCd;AAoCA,qCAAc,8BApCd;AAqCA,qCAAc,iDArCd;AAsC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C3F;AAEA,WAAO;AAAA,EACX;AAAA,EAKA,OAAc,UAAU,MAAW,WAA2B;AAC1D,QAAI,cAAc,cAAc;AAC5B,aAAO,OAAO,IAAI;AAAA,IACtB;AAEA,QAAI,cAAc,sBAAsB,cAAc,iCAAiC,cAAc,kCAAkC,cAAc,0CAA0C;AAC3L,aAAO,KAAK,UAAU,IAAI;AAAA,IAC9B;AAEA,UAAM,IAAI,MAAM,mBAAmB,YAAY,kDAAkD;AAAA,EACrG;AAAA,EAKA,OAAc,MAAM,SAAiB,WAAuC;AACxE,QAAI,cAAc,QAAW;AACzB,YAAM,IAAI,MAAM,gDAAgD;AAAA,IACpE;AAEA,QAAI,cAAc,cAAc;AAC5B,aAAO;AAAA,IACX;AAEA,QAAI,cAAc,sBAAsB,cAAc,iCAAiC,cAAc,kCAAkC,cAAc,0CAA0C;AAC3L,aAAO,KAAK,MAAM,OAAO;AAAA,IAC7B;AAEA,QAAI,cAAc,aAAa;AAC3B,aAAO;AAAA,IACX;AAEA,UAAM,IAAI,MAAM,mBAAmB,YAAY,8CAA8C;AAAA,EACjG;AACJ;", + "names": [] +} diff --git a/build/models/PagedSystemResult.js b/build/models/PagedSystemResult.js index bf34907..fd99419 100644 --- a/build/models/PagedSystemResult.js +++ b/build/models/PagedSystemResult.js @@ -1,52 +1,63 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.PagedSystemResult = void 0; -/** - * Group list. - */ -class PagedSystemResult { - static getAttributeTypeMap() { - return PagedSystemResult.attributeTypeMap; - } - constructor() { } -} -exports.PagedSystemResult = PagedSystemResult; -PagedSystemResult.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var PagedSystemResult_exports = {}; +__export(PagedSystemResult_exports, { + PagedSystemResult: () => PagedSystemResult +}); +module.exports = __toCommonJS(PagedSystemResult_exports); +const _PagedSystemResult = class { + static getAttributeTypeMap() { + return _PagedSystemResult.attributeTypeMap; + } + constructor() { + } +}; +let PagedSystemResult = _PagedSystemResult; +PagedSystemResult.discriminator = void 0; PagedSystemResult.attributeTypeMap = [ - { - name: 'page', - baseName: 'page', - type: 'number', - format: 'int32', - }, - { - name: 'itemsPerPage', - baseName: 'itemsPerPage', - type: 'number', - format: 'int32', - }, - { - name: 'numItems', - baseName: 'numItems', - type: 'number', - format: 'int32', - }, - { - name: 'systems', - baseName: 'systems', - type: 'Array', - format: '', - }, + { + name: "page", + baseName: "page", + type: "number", + format: "int32" + }, + { + name: "itemsPerPage", + baseName: "itemsPerPage", + type: "number", + format: "int32" + }, + { + name: "numItems", + baseName: "numItems", + type: "number", + format: "int32" + }, + { + name: "systems", + baseName: "systems", + type: "Array", + format: "" + } ]; -//# sourceMappingURL=PagedSystemResult.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + PagedSystemResult +}); +//# sourceMappingURL=PagedSystemResult.js.map diff --git a/build/models/PagedSystemResult.js.map b/build/models/PagedSystemResult.js.map index e51291e..58d8859 100644 --- a/build/models/PagedSystemResult.js.map +++ b/build/models/PagedSystemResult.js.map @@ -1 +1,7 @@ -{"version":3,"file":"PagedSystemResult.js","sourceRoot":"","sources":["../../src/models/PagedSystemResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAIH;;GAEG;AACH,MAAa,iBAAiB;IA+C1B,MAAM,CAAC,mBAAmB;QACtB,OAAO,iBAAiB,CAAC,gBAAgB,CAAC;IAC9C,CAAC;IAED,gBAAsB,CAAC;;AAnD3B,8CAoDC;AAlCmB,+BAAa,GAAuB,SAAS,CAAC;AAE9C,kCAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,OAAO;KAClB;IACD;QACI,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,cAAc;QACxB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,OAAO;KAClB;IACD;QACI,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,OAAO;KAClB;IACD;QACI,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,0BAA0B;QAChC,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/PagedSystemResult.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { SystemWithDevices } from '../models/SystemWithDevices';\n\n/**\n * Group list.\n */\nexport class PagedSystemResult {\n /**\n * Id.\n */\n 'page'?: number;\n /**\n * Connection state.\n */\n 'itemsPerPage'?: number;\n /**\n * Firmware.\n */\n 'numItems'?: number;\n /**\n * Groups.\n */\n 'systems'?: Array | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'page',\n baseName: 'page',\n type: 'number',\n format: 'int32',\n },\n {\n name: 'itemsPerPage',\n baseName: 'itemsPerPage',\n type: 'number',\n format: 'int32',\n },\n {\n name: 'numItems',\n baseName: 'numItems',\n type: 'number',\n format: 'int32',\n },\n {\n name: 'systems',\n baseName: 'systems',\n type: 'Array',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return PagedSystemResult.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBO,MAAM,qBAAN,MAAwB;AAAA,EA+C3B,OAAO,sBAAsB;AACzB,WAAO,mBAAkB;AAAA,EAC7B;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AApDO,IAAM,oBAAN;AAAM,kBAkBO,gBAAoC;AAlB3C,kBAoBO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/ParameterData.js b/build/models/ParameterData.js index 9d6e6d6..6ff34b0 100644 --- a/build/models/ParameterData.js +++ b/build/models/ParameterData.js @@ -1,118 +1,129 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.ParameterData = void 0; -/** - * Grouped parameter value. - */ -class ParameterData { - static getAttributeTypeMap() { - return ParameterData.attributeTypeMap; - } - constructor() { } -} -exports.ParameterData = ParameterData; -ParameterData.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var ParameterData_exports = {}; +__export(ParameterData_exports, { + ParameterData: () => ParameterData +}); +module.exports = __toCommonJS(ParameterData_exports); +const _ParameterData = class { + static getAttributeTypeMap() { + return _ParameterData.attributeTypeMap; + } + constructor() { + } +}; +let ParameterData = _ParameterData; +ParameterData.discriminator = void 0; ParameterData.attributeTypeMap = [ - { - name: 'category', - baseName: 'category', - type: 'string', - format: '', - }, - { - name: 'parameterId', - baseName: 'parameterId', - type: 'string', - format: '', - }, - { - name: 'parameterName', - baseName: 'parameterName', - type: 'string', - format: '', - }, - { - name: 'parameterUnit', - baseName: 'parameterUnit', - type: 'string', - format: '', - }, - { - name: 'writable', - baseName: 'writable', - type: 'boolean', - format: '', - }, - { - name: 'timestamp', - baseName: 'timestamp', - type: 'Date', - format: 'date-time', - }, - { - name: 'value', - baseName: 'value', - type: 'number', - format: 'double', - }, - { - name: 'strVal', - baseName: 'strVal', - type: 'string', - format: '', - }, - { - name: 'smartHomeCategories', - baseName: 'smartHomeCategories', - type: 'Array', - format: '', - }, - { - name: 'minValue', - baseName: 'minValue', - type: 'number', - format: 'double', - }, - { - name: 'maxValue', - baseName: 'maxValue', - type: 'number', - format: 'double', - }, - { - name: 'stepValue', - baseName: 'stepValue', - type: 'number', - format: 'double', - }, - { - name: 'enumValues', - baseName: 'enumValues', - type: 'Array', - format: '', - }, - { - name: 'scaleValue', - baseName: 'scaleValue', - type: 'string', - format: '', - }, - { - name: 'zoneId', - baseName: 'zoneId', - type: 'string', - format: '', - }, + { + name: "category", + baseName: "category", + type: "string", + format: "" + }, + { + name: "parameterId", + baseName: "parameterId", + type: "string", + format: "" + }, + { + name: "parameterName", + baseName: "parameterName", + type: "string", + format: "" + }, + { + name: "parameterUnit", + baseName: "parameterUnit", + type: "string", + format: "" + }, + { + name: "writable", + baseName: "writable", + type: "boolean", + format: "" + }, + { + name: "timestamp", + baseName: "timestamp", + type: "Date", + format: "date-time" + }, + { + name: "value", + baseName: "value", + type: "number", + format: "double" + }, + { + name: "strVal", + baseName: "strVal", + type: "string", + format: "" + }, + { + name: "smartHomeCategories", + baseName: "smartHomeCategories", + type: "Array", + format: "" + }, + { + name: "minValue", + baseName: "minValue", + type: "number", + format: "double" + }, + { + name: "maxValue", + baseName: "maxValue", + type: "number", + format: "double" + }, + { + name: "stepValue", + baseName: "stepValue", + type: "number", + format: "double" + }, + { + name: "enumValues", + baseName: "enumValues", + type: "Array", + format: "" + }, + { + name: "scaleValue", + baseName: "scaleValue", + type: "string", + format: "" + }, + { + name: "zoneId", + baseName: "zoneId", + type: "string", + format: "" + } ]; -//# sourceMappingURL=ParameterData.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + ParameterData +}); +//# sourceMappingURL=ParameterData.js.map diff --git a/build/models/ParameterData.js.map b/build/models/ParameterData.js.map index 8e81cce..9e0ac3f 100644 --- a/build/models/ParameterData.js.map +++ b/build/models/ParameterData.js.map @@ -1 +1,7 @@ -{"version":3,"file":"ParameterData.js","sourceRoot":"","sources":["../../src/models/ParameterData.ts"],"names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QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,QAAQ;KACnB;IACD;QACI,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,QAAQ;KACnB;IACD;QACI,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,WAAW;QACrB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,QAAQ;KACnB;IACD;QACI,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,mBAAmB;QACzB,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/ParameterData.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { EnumValues } from '../models/EnumValues';\n\n/**\n * Grouped parameter value.\n */\nexport class ParameterData {\n /**\n * Category.\n */\n 'category'?: string | null;\n /**\n * Parameter id.\n */\n 'parameterId'?: string | null;\n /**\n * Parameter name.\n */\n 'parameterName'?: string | null;\n /**\n * Parameter unit.\n */\n 'parameterUnit'?: string | null;\n /**\n * Defines if parameter could be changed.\n */\n 'writable'?: boolean;\n /**\n * Timestamp property.\n */\n 'timestamp'?: Date;\n /**\n * Value property.\n */\n 'value'?: number | null;\n /**\n * String value property.\n */\n 'strVal'?: string | null;\n /**\n * Parameter Smart home categories.\n */\n 'smartHomeCategories'?: Array | null;\n /**\n * Parameter min value.\n */\n 'minValue'?: number | null;\n /**\n * Parameter max value.\n */\n 'maxValue'?: number | null;\n /**\n * Parameter step value, specifies the allowed stepping between valid values when the value is numeric.\n */\n 'stepValue'?: number | null;\n /**\n * Parameter enum values.\n */\n 'enumValues'?: Array | null;\n /**\n * Parameter scale value.\n */\n 'scaleValue'?: string | null;\n /**\n * Reference to a ShZone entity.\n */\n 'zoneId'?: string | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'category',\n baseName: 'category',\n type: 'string',\n format: '',\n },\n {\n name: 'parameterId',\n baseName: 'parameterId',\n type: 'string',\n format: '',\n },\n {\n name: 'parameterName',\n baseName: 'parameterName',\n type: 'string',\n format: '',\n },\n {\n name: 'parameterUnit',\n baseName: 'parameterUnit',\n type: 'string',\n format: '',\n },\n {\n name: 'writable',\n baseName: 'writable',\n type: 'boolean',\n format: '',\n },\n {\n name: 'timestamp',\n baseName: 'timestamp',\n type: 'Date',\n format: 'date-time',\n },\n {\n name: 'value',\n baseName: 'value',\n type: 'number',\n format: 'double',\n },\n {\n name: 'strVal',\n baseName: 'strVal',\n type: 'string',\n format: '',\n },\n {\n name: 'smartHomeCategories',\n baseName: 'smartHomeCategories',\n type: 'Array',\n format: '',\n },\n {\n name: 'minValue',\n baseName: 'minValue',\n type: 'number',\n format: 'double',\n },\n {\n name: 'maxValue',\n baseName: 'maxValue',\n type: 'number',\n format: 'double',\n },\n {\n name: 'stepValue',\n baseName: 'stepValue',\n type: 'number',\n format: 'double',\n },\n {\n name: 'enumValues',\n baseName: 'enumValues',\n type: 'Array',\n format: '',\n },\n {\n name: 'scaleValue',\n baseName: 'scaleValue',\n type: 'string',\n format: '',\n },\n {\n name: 'zoneId',\n baseName: 'zoneId',\n type: 'string',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return ParameterData.attribute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IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/ParameterDetail.js b/build/models/ParameterDetail.js index 8f18d17..6be19b2 100644 --- a/build/models/ParameterDetail.js +++ b/build/models/ParameterDetail.js @@ -1,88 +1,99 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.ParameterDetail = void 0; -/** - * Equip group model. - */ -class ParameterDetail { - static getAttributeTypeMap() { - return ParameterDetail.attributeTypeMap; - } - constructor() { } -} -exports.ParameterDetail = ParameterDetail; -ParameterDetail.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var ParameterDetail_exports = {}; +__export(ParameterDetail_exports, { + ParameterDetail: () => ParameterDetail +}); +module.exports = __toCommonJS(ParameterDetail_exports); +const _ParameterDetail = class { + static getAttributeTypeMap() { + return _ParameterDetail.attributeTypeMap; + } + constructor() { + } +}; +let ParameterDetail = _ParameterDetail; +ParameterDetail.discriminator = void 0; ParameterDetail.attributeTypeMap = [ - { - name: 'parameterId', - baseName: 'parameterId', - type: 'string', - format: '', - }, - { - name: 'parameterName', - baseName: 'parameterName', - type: 'string', - format: '', - }, - { - name: 'parameterUnit', - baseName: 'parameterUnit', - type: 'string', - format: '', - }, - { - name: 'smartHomeCategories', - baseName: 'smartHomeCategories', - type: 'Array', - format: '', - }, - { - name: 'minValue', - baseName: 'minValue', - type: 'number', - format: 'int32', - }, - { - name: 'maxValue', - baseName: 'maxValue', - type: 'number', - format: 'int32', - }, - { - name: 'stepValue', - baseName: 'stepValue', - type: 'number', - format: 'int32', - }, - { - name: 'enumValues', - baseName: 'enumValues', - type: 'Array', - format: '', - }, - { - name: 'scaleValue', - baseName: 'scaleValue', - type: 'string', - format: '', - }, - { - name: 'zoneId', - baseName: 'zoneId', - type: 'string', - format: '', - }, + { + name: "parameterId", + baseName: "parameterId", + type: "string", + format: "" + }, + { + name: "parameterName", + baseName: "parameterName", + type: "string", + format: "" + }, + { + name: "parameterUnit", + baseName: "parameterUnit", + type: "string", + format: "" + }, + { + name: "smartHomeCategories", + baseName: "smartHomeCategories", + type: "Array", + format: "" + }, + { + name: "minValue", + baseName: "minValue", + type: "number", + format: "int32" + }, + { + name: "maxValue", + baseName: "maxValue", + type: "number", + format: "int32" + }, + { + name: "stepValue", + baseName: "stepValue", + type: "number", + format: "int32" + }, + { + name: "enumValues", + baseName: "enumValues", + type: "Array", + format: "" + }, + { + name: "scaleValue", + baseName: "scaleValue", + type: "string", + format: "" + }, + { + name: "zoneId", + baseName: "zoneId", + type: "string", + format: "" + } ]; -//# sourceMappingURL=ParameterDetail.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + ParameterDetail +}); +//# sourceMappingURL=ParameterDetail.js.map diff --git a/build/models/ParameterDetail.js.map b/build/models/ParameterDetail.js.map index 31d8dd4..7733c1e 100644 --- a/build/models/ParameterDetail.js.map +++ b/build/models/ParameterDetail.js.map @@ -1 +1,7 @@ -{"version":3,"file":"ParameterDetail.js","sourceRoot":"","sources":["../../src/models/ParameterDetail.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAIH;;GAEG;AACH,MAAa,eAAe;IA2GxB,MAAM,CAAC,mBAAmB;QACtB,OAAO,eAAe,CAAC,gBAAgB,CAAC;IAC5C,CAAC;IAED,gBAAsB,CAAC;;AA/G3B,0CAgHC;AAtEmB,6BAAa,GAAuB,SAAS,CAAC;AAE9C,gCAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,aAAa;QACvB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,eAAe;QACrB,QAAQ,EAAE,eAAe;QACzB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,eAAe;QACrB,QAAQ,EAAE,eAAe;QACzB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,qBAAqB;QAC3B,QAAQ,EAAE,qBAAqB;QAC/B,IAAI,EAAE,eAAe;QACrB,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,OAAO;KAClB;IACD;QACI,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,OAAO;KAClB;IACD;QACI,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,WAAW;QACrB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,OAAO;KAClB;IACD;QACI,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,mBAAmB;QACzB,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/ParameterDetail.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { EnumValues } from '../models/EnumValues';\n\n/**\n * Equip group model.\n */\nexport class ParameterDetail {\n /**\n * Parameter id.\n */\n 'parameterId'?: string | null;\n /**\n * Parameter name.\n */\n 'parameterName'?: string | null;\n /**\n * Parameter unit.\n */\n 'parameterUnit'?: string | null;\n /**\n * Parameter Smart home categories.\n */\n 'smartHomeCategories'?: Array | null;\n /**\n * Parameter min value.\n */\n 'minValue'?: number | null;\n /**\n * Parameter max value.\n */\n 'maxValue'?: number | null;\n /**\n * Parameter step value, specifies the allowed stepping between valid values when the value is numeric.\n */\n 'stepValue'?: number | null;\n /**\n * Parameter enum values.\n */\n 'enumValues'?: Array | null;\n /**\n * Parameter scale value.\n */\n 'scaleValue'?: string | null;\n /**\n * Reference to a ShZone entity.\n */\n 'zoneId'?: string | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'parameterId',\n baseName: 'parameterId',\n type: 'string',\n format: '',\n },\n {\n name: 'parameterName',\n baseName: 'parameterName',\n type: 'string',\n format: '',\n },\n {\n name: 'parameterUnit',\n baseName: 'parameterUnit',\n type: 'string',\n format: '',\n },\n {\n name: 'smartHomeCategories',\n baseName: 'smartHomeCategories',\n type: 'Array',\n format: '',\n },\n {\n name: 'minValue',\n baseName: 'minValue',\n type: 'number',\n format: 'int32',\n },\n {\n name: 'maxValue',\n baseName: 'maxValue',\n type: 'number',\n format: 'int32',\n },\n {\n name: 'stepValue',\n baseName: 'stepValue',\n type: 'number',\n format: 'int32',\n },\n {\n name: 'enumValues',\n baseName: 'enumValues',\n type: 'Array',\n format: '',\n },\n {\n name: 'scaleValue',\n baseName: 'scaleValue',\n type: 'string',\n format: '',\n },\n {\n name: 'zoneId',\n baseName: 'zoneId',\n type: 'string',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return ParameterDetail.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBO,MAAM,mBAAN,MAAsB;AAAA,EA2GzB,OAAO,sBAAsB;AACzB,WAAO,iBAAgB;AAAA,EAC3B;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAhHO,IAAM,kBAAN;AAAM,gBA0CO,gBAAoC;AA1C3C,gBA4CO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/PatchSystemModel.js b/build/models/PatchSystemModel.js index ab54c40..b3c68c0 100644 --- a/build/models/PatchSystemModel.js +++ b/build/models/PatchSystemModel.js @@ -1,46 +1,57 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.PatchSystemModel = void 0; -/** - * Patch group request. - */ -class PatchSystemModel { - static getAttributeTypeMap() { - return PatchSystemModel.attributeTypeMap; - } - constructor() { } -} -exports.PatchSystemModel = PatchSystemModel; -PatchSystemModel.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var PatchSystemModel_exports = {}; +__export(PatchSystemModel_exports, { + PatchSystemModel: () => PatchSystemModel +}); +module.exports = __toCommonJS(PatchSystemModel_exports); +const _PatchSystemModel = class { + static getAttributeTypeMap() { + return _PatchSystemModel.attributeTypeMap; + } + constructor() { + } +}; +let PatchSystemModel = _PatchSystemModel; +PatchSystemModel.discriminator = void 0; PatchSystemModel.attributeTypeMap = [ - { - name: 'systemId', - baseName: 'systemId', - type: 'string', - format: 'uuid', - }, - { - name: 'name', - baseName: 'name', - type: 'string', - format: '', - }, - { - name: 'isFound', - baseName: 'isFound', - type: 'boolean', - format: '', - }, + { + name: "systemId", + baseName: "systemId", + type: "string", + format: "uuid" + }, + { + name: "name", + baseName: "name", + type: "string", + format: "" + }, + { + name: "isFound", + baseName: "isFound", + type: "boolean", + format: "" + } ]; -//# sourceMappingURL=PatchSystemModel.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + PatchSystemModel +}); +//# sourceMappingURL=PatchSystemModel.js.map diff --git a/build/models/PatchSystemModel.js.map b/build/models/PatchSystemModel.js.map index 753e7ad..21f723f 100644 --- a/build/models/PatchSystemModel.js.map +++ b/build/models/PatchSystemModel.js.map @@ -1 +1,7 @@ -{"version":3,"file":"PatchSystemModel.js","sourceRoot":"","sources":["../../src/models/PatchSystemModel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH;;GAEG;AACH,MAAa,gBAAgB;IAqCzB,MAAM,CAAC,mBAAmB;QACtB,OAAO,gBAAgB,CAAC,gBAAgB,CAAC;IAC7C,CAAC;IAED,gBAAsB,CAAC;;AAzC3B,4CA0CC;AA5BmB,8BAAa,GAAuB,SAAS,CAAC;AAE9C,iCAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,MAAM;KACjB;IACD;QACI,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/PatchSystemModel.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n/**\n * Patch group request.\n */\nexport class PatchSystemModel {\n /**\n * Id.\n */\n 'systemId'?: string;\n /**\n * Name.\n */\n 'name'?: string | null;\n /**\n * Is found.\n */\n 'isFound'?: boolean;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'systemId',\n baseName: 'systemId',\n type: 'string',\n format: 'uuid',\n },\n {\n name: 'name',\n baseName: 'name',\n type: 'string',\n format: '',\n },\n {\n name: 'isFound',\n baseName: 'isFound',\n type: 'boolean',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return PatchSystemModel.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAeO,MAAM,oBAAN,MAAuB;AAAA,EAqC1B,OAAO,sBAAsB;AACzB,WAAO,kBAAiB;AAAA,EAC5B;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AA1CO,IAAM,mBAAN;AAAM,iBAcO,gBAAoC;AAd3C,iBAgBO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/PremiumFeatureResponseModel.js b/build/models/PremiumFeatureResponseModel.js index 772df7a..2c1bee8 100644 --- a/build/models/PremiumFeatureResponseModel.js +++ b/build/models/PremiumFeatureResponseModel.js @@ -1,37 +1,51 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.PremiumFeatureResponseModel = void 0; -class PremiumFeatureResponseModel { - static getAttributeTypeMap() { - return PremiumFeatureResponseModel.attributeTypeMap; - } - constructor() { } -} -exports.PremiumFeatureResponseModel = PremiumFeatureResponseModel; -PremiumFeatureResponseModel.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var PremiumFeatureResponseModel_exports = {}; +__export(PremiumFeatureResponseModel_exports, { + PremiumFeatureResponseModel: () => PremiumFeatureResponseModel +}); +module.exports = __toCommonJS(PremiumFeatureResponseModel_exports); +const _PremiumFeatureResponseModel = class { + static getAttributeTypeMap() { + return _PremiumFeatureResponseModel.attributeTypeMap; + } + constructor() { + } +}; +let PremiumFeatureResponseModel = _PremiumFeatureResponseModel; +PremiumFeatureResponseModel.discriminator = void 0; PremiumFeatureResponseModel.attributeTypeMap = [ - { - name: 'validUntil', - baseName: 'validUntil', - type: 'Date', - format: 'date-time', - }, - { - name: 'type', - baseName: 'type', - type: 'PremiumFeatures', - format: '', - }, + { + name: "validUntil", + baseName: "validUntil", + type: "Date", + format: "date-time" + }, + { + name: "type", + baseName: "type", + type: "PremiumFeatures", + format: "" + } ]; -//# sourceMappingURL=PremiumFeatureResponseModel.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + PremiumFeatureResponseModel +}); +//# sourceMappingURL=PremiumFeatureResponseModel.js.map diff --git a/build/models/PremiumFeatureResponseModel.js.map b/build/models/PremiumFeatureResponseModel.js.map index f855edf..2b4621a 100644 --- a/build/models/PremiumFeatureResponseModel.js.map +++ b/build/models/PremiumFeatureResponseModel.js.map @@ -1 +1,7 @@ -{"version":3,"file":"PremiumFeatureResponseModel.js","sourceRoot":"","sources":["../../src/models/PremiumFeatureResponseModel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAIH,MAAa,2BAA2B;IAqBpC,MAAM,CAAC,mBAAmB;QACtB,OAAO,2BAA2B,CAAC,gBAAgB,CAAC;IACxD,CAAC;IAED,gBAAsB,CAAC;;AAzB3B,kEA0BC;AAtBmB,yCAAa,GAAuB,SAAS,CAAC;AAE9C,4CAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,WAAW;KACtB;IACD;QACI,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,iBAAiB;QACvB,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/PremiumFeatureResponseModel.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { PremiumFeatures } from '../models/PremiumFeatures';\n\nexport class PremiumFeatureResponseModel {\n 'validUntil'?: Date | null;\n 'type'?: PremiumFeatures;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'validUntil',\n baseName: 'validUntil',\n type: 'Date',\n format: 'date-time',\n },\n {\n name: 'type',\n baseName: 'type',\n type: 'PremiumFeatures',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return PremiumFeatureResponseModel.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAcO,MAAM,+BAAN,MAAkC;AAAA,EAqBrC,OAAO,sBAAsB;AACzB,WAAO,6BAA4B;AAAA,EACvC;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AA1BO,IAAM,8BAAN;AAAM,4BAIO,gBAAoC;AAJ3C,4BAMO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/PremiumFeatures.js b/build/models/PremiumFeatures.js index 7f3e61b..fc3b040 100644 --- a/build/models/PremiumFeatures.js +++ b/build/models/PremiumFeatures.js @@ -1,24 +1,34 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.PremiumFeatures = void 0; -/** - * Premium features enum. - */ -var PremiumFeatures; -(function (PremiumFeatures) { - PremiumFeatures["History"] = "history"; - PremiumFeatures["Manage"] = "manage"; - PremiumFeatures["Organization"] = "organization"; -})(PremiumFeatures || (exports.PremiumFeatures = PremiumFeatures = {})); -//# sourceMappingURL=PremiumFeatures.js.map \ No newline at end of file +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var PremiumFeatures_exports = {}; +__export(PremiumFeatures_exports, { + PremiumFeatures: () => PremiumFeatures +}); +module.exports = __toCommonJS(PremiumFeatures_exports); +var PremiumFeatures = /* @__PURE__ */ ((PremiumFeatures2) => { + PremiumFeatures2["History"] = "history"; + PremiumFeatures2["Manage"] = "manage"; + PremiumFeatures2["Organization"] = "organization"; + return PremiumFeatures2; +})(PremiumFeatures || {}); +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + PremiumFeatures +}); +//# sourceMappingURL=PremiumFeatures.js.map diff --git a/build/models/PremiumFeatures.js.map b/build/models/PremiumFeatures.js.map index 1234253..ae082dd 100644 --- a/build/models/PremiumFeatures.js.map +++ b/build/models/PremiumFeatures.js.map @@ -1 +1,7 @@ -{"version":3,"file":"PremiumFeatures.js","sourceRoot":"","sources":["../../src/models/PremiumFeatures.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH;;GAEG;AACH,IAAY,eAIX;AAJD,WAAY,eAAe;IACvB,sCAAmB,CAAA;IACnB,oCAAiB,CAAA;IACjB,gDAA6B,CAAA;AACjC,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/PremiumFeatures.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n/**\n * Premium features enum.\n */\nexport enum PremiumFeatures {\n History = 'history',\n Manage = 'manage',\n Organization = 'organization',\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAeO,IAAK,kBAAL,kBAAKA,qBAAL;AACH,EAAAA,iBAAA,aAAU;AACV,EAAAA,iBAAA,YAAS;AACT,EAAAA,iBAAA,kBAAe;AAHP,SAAAA;AAAA,GAAA;", + "names": ["PremiumFeatures"] +} diff --git a/build/models/Product.js b/build/models/Product.js index 1297419..8372f62 100644 --- a/build/models/Product.js +++ b/build/models/Product.js @@ -1,40 +1,51 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.Product = void 0; -/** - * Product model. - */ -class Product { - static getAttributeTypeMap() { - return Product.attributeTypeMap; - } - constructor() { } -} -exports.Product = Product; -Product.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var Product_exports = {}; +__export(Product_exports, { + Product: () => Product +}); +module.exports = __toCommonJS(Product_exports); +const _Product = class { + static getAttributeTypeMap() { + return _Product.attributeTypeMap; + } + constructor() { + } +}; +let Product = _Product; +Product.discriminator = void 0; Product.attributeTypeMap = [ - { - name: 'serialNumber', - baseName: 'serialNumber', - type: 'string', - format: '', - }, - { - name: 'name', - baseName: 'name', - type: 'string', - format: '', - }, + { + name: "serialNumber", + baseName: "serialNumber", + type: "string", + format: "" + }, + { + name: "name", + baseName: "name", + type: "string", + format: "" + } ]; -//# sourceMappingURL=Product.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + Product +}); +//# sourceMappingURL=Product.js.map diff --git a/build/models/Product.js.map b/build/models/Product.js.map index 6dfdca3..2ab1edd 100644 --- a/build/models/Product.js.map +++ b/build/models/Product.js.map @@ -1 +1,7 @@ -{"version":3,"file":"Product.js","sourceRoot":"","sources":["../../src/models/Product.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH;;GAEG;AACH,MAAa,OAAO;IA2BhB,MAAM,CAAC,mBAAmB;QACtB,OAAO,OAAO,CAAC,gBAAgB,CAAC;IACpC,CAAC;IAED,gBAAsB,CAAC;;AA/B3B,0BAgCC;AAtBmB,qBAAa,GAAuB,SAAS,CAAC;AAE9C,wBAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,cAAc;QACxB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/Product.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n/**\n * Product model.\n */\nexport class Product {\n /**\n * Serial number.\n */\n 'serialNumber'?: string | null;\n /**\n * Name.\n */\n 'name'?: string | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'serialNumber',\n baseName: 'serialNumber',\n type: 'string',\n format: '',\n },\n {\n name: 'name',\n baseName: 'name',\n type: 'string',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return Product.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAeO,MAAM,WAAN,MAAc;AAAA,EA2BjB,OAAO,sBAAsB;AACzB,WAAO,SAAQ;AAAA,EACnB;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAhCO,IAAM,UAAN;AAAM,QAUO,gBAAoC;AAV3C,QAYO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/ProductRegistrationAddress.js b/build/models/ProductRegistrationAddress.js index d19b9fa..324763a 100644 --- a/build/models/ProductRegistrationAddress.js +++ b/build/models/ProductRegistrationAddress.js @@ -1,49 +1,63 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.ProductRegistrationAddress = void 0; -class ProductRegistrationAddress { - static getAttributeTypeMap() { - return ProductRegistrationAddress.attributeTypeMap; - } - constructor() { } -} -exports.ProductRegistrationAddress = ProductRegistrationAddress; -ProductRegistrationAddress.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var ProductRegistrationAddress_exports = {}; +__export(ProductRegistrationAddress_exports, { + ProductRegistrationAddress: () => ProductRegistrationAddress +}); +module.exports = __toCommonJS(ProductRegistrationAddress_exports); +const _ProductRegistrationAddress = class { + static getAttributeTypeMap() { + return _ProductRegistrationAddress.attributeTypeMap; + } + constructor() { + } +}; +let ProductRegistrationAddress = _ProductRegistrationAddress; +ProductRegistrationAddress.discriminator = void 0; ProductRegistrationAddress.attributeTypeMap = [ - { - name: 'city', - baseName: 'city', - type: 'string', - format: '', - }, - { - name: 'region', - baseName: 'region', - type: 'string', - format: '', - }, - { - name: 'country', - baseName: 'country', - type: 'Country', - format: '', - }, - { - name: 'postalCode', - baseName: 'postalCode', - type: 'string', - format: '', - }, + { + name: "city", + baseName: "city", + type: "string", + format: "" + }, + { + name: "region", + baseName: "region", + type: "string", + format: "" + }, + { + name: "country", + baseName: "country", + type: "Country", + format: "" + }, + { + name: "postalCode", + baseName: "postalCode", + type: "string", + format: "" + } ]; -//# sourceMappingURL=ProductRegistrationAddress.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + ProductRegistrationAddress +}); +//# sourceMappingURL=ProductRegistrationAddress.js.map diff --git a/build/models/ProductRegistrationAddress.js.map b/build/models/ProductRegistrationAddress.js.map index 71ee8c1..4ca69c0 100644 --- a/build/models/ProductRegistrationAddress.js.map +++ b/build/models/ProductRegistrationAddress.js.map @@ -1 +1,7 @@ -{"version":3,"file":"ProductRegistrationAddress.js","sourceRoot":"","sources":["../../src/models/ProductRegistrationAddress.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAIH,MAAa,0BAA0B;IAmCnC,MAAM,CAAC,mBAAmB;QACtB,OAAO,0BAA0B,CAAC,gBAAgB,CAAC;IACvD,CAAC;IAED,gBAAsB,CAAC;;AAvC3B,gEAwCC;AAlCmB,wCAAa,GAAuB,SAAS,CAAC;AAE9C,2CAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/ProductRegistrationAddress.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { Country } from '../models/Country';\n\nexport class ProductRegistrationAddress {\n 'city'?: string | null;\n 'region'?: string | null;\n 'country'?: Country;\n 'postalCode'?: string | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'city',\n baseName: 'city',\n type: 'string',\n format: '',\n },\n {\n name: 'region',\n baseName: 'region',\n type: 'string',\n format: '',\n },\n {\n name: 'country',\n baseName: 'country',\n type: 'Country',\n format: '',\n },\n {\n name: 'postalCode',\n baseName: 'postalCode',\n type: 'string',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return ProductRegistrationAddress.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAcO,MAAM,8BAAN,MAAiC;AAAA,EAmCpC,OAAO,sBAAsB;AACzB,WAAO,4BAA2B;AAAA,EACtC;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAxCO,IAAM,6BAAN;AAAM,2BAMO,gBAAoC;AAN3C,2BAQO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/ProductRegistrationResponse.js b/build/models/ProductRegistrationResponse.js index 1411b04..7a95f4e 100644 --- a/build/models/ProductRegistrationResponse.js +++ b/build/models/ProductRegistrationResponse.js @@ -1,124 +1,135 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.ProductRegistrationResponse = void 0; -/** - * Product registration response. - */ -class ProductRegistrationResponse { - static getAttributeTypeMap() { - return ProductRegistrationResponse.attributeTypeMap; - } - constructor() { } -} -exports.ProductRegistrationResponse = ProductRegistrationResponse; -ProductRegistrationResponse.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var ProductRegistrationResponse_exports = {}; +__export(ProductRegistrationResponse_exports, { + ProductRegistrationResponse: () => ProductRegistrationResponse +}); +module.exports = __toCommonJS(ProductRegistrationResponse_exports); +const _ProductRegistrationResponse = class { + static getAttributeTypeMap() { + return _ProductRegistrationResponse.attributeTypeMap; + } + constructor() { + } +}; +let ProductRegistrationResponse = _ProductRegistrationResponse; +ProductRegistrationResponse.discriminator = void 0; ProductRegistrationResponse.attributeTypeMap = [ - { - name: 'serialNumber', - baseName: 'serialNumber', - type: 'string', - format: '', - }, - { - name: 'operatingHours', - baseName: 'operatingHours', - type: 'number', - format: 'int32', - }, - { - name: 'installationDate', - baseName: 'installationDate', - type: 'Date', - format: 'date-time', - }, - { - name: 'registrationDate', - baseName: 'registrationDate', - type: 'Date', - format: 'date-time', - }, - { - name: 'warrantyEndDate', - baseName: 'warrantyEndDate', - type: 'Date', - format: 'date-time', - }, - { - name: 'customerName', - baseName: 'customerName', - type: 'string', - format: '', - }, - { - name: 'userId', - baseName: 'userId', - type: 'string', - format: 'uuid', - }, - { - name: 'userAddressId', - baseName: 'userAddressId', - type: 'string', - format: 'uuid', - }, - { - name: 'servicePartnerId', - baseName: 'servicePartnerId', - type: 'number', - format: 'int32', - }, - { - name: 'userEmail', - baseName: 'userEmail', - type: 'string', - format: '', - }, - { - name: 'systemAddressId', - baseName: 'systemAddressId', - type: 'string', - format: 'uuid', - }, - { - name: 'installerName', - baseName: 'installerName', - type: 'string', - format: '', - }, - { - name: 'site', - baseName: 'site', - type: 'string', - format: '', - }, - { - name: 'modelName', - baseName: 'modelName', - type: 'string', - format: '', - }, - { - name: 'phone', - baseName: 'phone', - type: 'string', - format: '', - }, - { - name: 'productName', - baseName: 'productName', - type: 'string', - format: '', - }, + { + name: "serialNumber", + baseName: "serialNumber", + type: "string", + format: "" + }, + { + name: "operatingHours", + baseName: "operatingHours", + type: "number", + format: "int32" + }, + { + name: "installationDate", + baseName: "installationDate", + type: "Date", + format: "date-time" + }, + { + name: "registrationDate", + baseName: "registrationDate", + type: "Date", + format: "date-time" + }, + { + name: "warrantyEndDate", + baseName: "warrantyEndDate", + type: "Date", + format: "date-time" + }, + { + name: "customerName", + baseName: "customerName", + type: "string", + format: "" + }, + { + name: "userId", + baseName: "userId", + type: "string", + format: "uuid" + }, + { + name: "userAddressId", + baseName: "userAddressId", + type: "string", + format: "uuid" + }, + { + name: "servicePartnerId", + baseName: "servicePartnerId", + type: "number", + format: "int32" + }, + { + name: "userEmail", + baseName: "userEmail", + type: "string", + format: "" + }, + { + name: "systemAddressId", + baseName: "systemAddressId", + type: "string", + format: "uuid" + }, + { + name: "installerName", + baseName: "installerName", + type: "string", + format: "" + }, + { + name: "site", + baseName: "site", + type: "string", + format: "" + }, + { + name: "modelName", + baseName: "modelName", + type: "string", + format: "" + }, + { + name: "phone", + baseName: "phone", + type: "string", + format: "" + }, + { + name: "productName", + baseName: "productName", + type: "string", + format: "" + } ]; -//# sourceMappingURL=ProductRegistrationResponse.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + ProductRegistrationResponse +}); +//# sourceMappingURL=ProductRegistrationResponse.js.map diff --git a/build/models/ProductRegistrationResponse.js.map b/build/models/ProductRegistrationResponse.js.map index eb3b424..a7e2865 100644 --- a/build/models/ProductRegistrationResponse.js.map +++ b/build/models/ProductRegistrationResponse.js.map @@ -1 +1,7 @@ -{"version":3,"file":"ProductRegistrationResponse.js","sourceRoot":"","sources":["../../src/models/ProductRegistrationResponse.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH;;GAEG;AACH,MAAa,2BAA2B;IAuKpC,MAAM,CAAC,mBAAmB;QACtB,OAAO,2BAA2B,CAAC,gBA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,EAAE,iBAAiB;QACvB,QAAQ,EAAE,iBAAiB;QAC3B,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,MAAM;KACjB;IACD;QACI,IAAI,EAAE,eAAe;QACrB,QAAQ,EAAE,eAAe;QACzB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,WAAW;QACrB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,aAAa;QACvB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/ProductRegistrationResponse.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n/**\n * Product registration response.\n */\nexport class ProductRegistrationResponse {\n /**\n * Serial number, and also id, for the product registration.\n */\n 'serialNumber'?: string | null;\n /**\n * The operating hours for the product registration.\n */\n 'operatingHours'?: number | null;\n /**\n * Determines what date the product was installed.\n */\n 'installationDate'?: Date;\n /**\n * Determines what date the product was registered.\n */\n 'registrationDate'?: Date;\n /**\n * Determines what date the warranty expires.\n */\n 'warrantyEndDate'?: Date;\n /**\n * The name of the customer.\n */\n 'customerName'?: string | null;\n /**\n * The id of the user connected to this product registration.\n */\n 'userId'?: string | null;\n /**\n * The id of the user\u00B4s address details.\n */\n 'userAddressId'?: string | null;\n /**\n * The id of the Service Partner, if known.\n */\n 'servicePartnerId'?: number | null;\n /**\n * The user\u00B4s email address.\n */\n 'userEmail'?: string | null;\n /**\n * The id of the system\u00B4s address details.\n */\n 'systemAddressId'?: string;\n /**\n * The name of the installer of the product.\n */\n 'installerName'?: string | null;\n /**\n * The site where the product is installed.\n */\n 'site'?: string | null;\n /**\n * The name of the current model.\n */\n 'modelName'?: string | null;\n /**\n * Phone number to the installation.\n */\n 'phone'?: string | null;\n /**\n * Product name.\n */\n 'productName'?: string | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'serialNumber',\n baseName: 'serialNumber',\n type: 'string',\n format: '',\n },\n {\n name: 'operatingHours',\n baseName: 'operatingHours',\n type: 'number',\n format: 'int32',\n },\n {\n name: 'installationDate',\n baseName: 'installationDate',\n type: 'Date',\n format: 'date-time',\n },\n {\n name: 'registrationDate',\n baseName: 'registrationDate',\n type: 'Date',\n format: 'date-time',\n },\n {\n name: 'warrantyEndDate',\n baseName: 'warrantyEndDate',\n type: 'Date',\n format: 'date-time',\n },\n {\n name: 'customerName',\n baseName: 'customerName',\n type: 'string',\n format: '',\n },\n {\n name: 'userId',\n baseName: 'userId',\n type: 'string',\n format: 'uuid',\n },\n {\n name: 'userAddressId',\n baseName: 'userAddressId',\n type: 'string',\n format: 'uuid',\n },\n {\n name: 'servicePartnerId',\n baseName: 'servicePartnerId',\n type: 'number',\n format: 'int32',\n },\n {\n name: 'userEmail',\n baseName: 'userEmail',\n type: 'string',\n format: '',\n },\n {\n name: 'systemAddressId',\n baseName: 'systemAddressId',\n type: 'string',\n format: 'uuid',\n },\n {\n name: 'installerName',\n baseName: 'installerName',\n type: 'string',\n format: '',\n },\n {\n name: 'site',\n baseName: 'site',\n type: 'string',\n format: '',\n },\n {\n name: 'modelName',\n baseName: 'modelName',\n type: 'string',\n format: '',\n },\n {\n name: 'phone',\n baseName: 'phone',\n type: 'string',\n format: '',\n },\n {\n name: 'productName',\n baseName: 'productName',\n type: 'string',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return ProductRegistrationResponse.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAeO,MAAM,+BAAN,MAAkC;AAAA,EAuKrC,OAAO,sBAAsB;AACzB,WAAO,6BAA4B;AAAA,EACvC;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AA5KO,IAAM,8BAAN;AAAM,4BAkEO,gBAAoC;AAlE3C,4BAoEO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/ProductRegistrationResponseWithAddress.js b/build/models/ProductRegistrationResponseWithAddress.js index 8ea6ae8..ccf60d0 100644 --- a/build/models/ProductRegistrationResponseWithAddress.js +++ b/build/models/ProductRegistrationResponseWithAddress.js @@ -1,127 +1,141 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.ProductRegistrationResponseWithAddress = void 0; -class ProductRegistrationResponseWithAddress { - static getAttributeTypeMap() { - return ProductRegistrationResponseWithAddress.attributeTypeMap; - } - constructor() { } -} -exports.ProductRegistrationResponseWithAddress = ProductRegistrationResponseWithAddress; -ProductRegistrationResponseWithAddress.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var ProductRegistrationResponseWithAddress_exports = {}; +__export(ProductRegistrationResponseWithAddress_exports, { + ProductRegistrationResponseWithAddress: () => ProductRegistrationResponseWithAddress +}); +module.exports = __toCommonJS(ProductRegistrationResponseWithAddress_exports); +const _ProductRegistrationResponseWithAddress = class { + static getAttributeTypeMap() { + return _ProductRegistrationResponseWithAddress.attributeTypeMap; + } + constructor() { + } +}; +let ProductRegistrationResponseWithAddress = _ProductRegistrationResponseWithAddress; +ProductRegistrationResponseWithAddress.discriminator = void 0; ProductRegistrationResponseWithAddress.attributeTypeMap = [ - { - name: 'address', - baseName: 'address', - type: 'ProductRegistrationAddress', - format: '', - }, - { - name: 'serialNumber', - baseName: 'serialNumber', - type: 'string', - format: '', - }, - { - name: 'operatingHours', - baseName: 'operatingHours', - type: 'number', - format: 'int32', - }, - { - name: 'installationDate', - baseName: 'installationDate', - type: 'Date', - format: 'date-time', - }, - { - name: 'registrationDate', - baseName: 'registrationDate', - type: 'Date', - format: 'date-time', - }, - { - name: 'warrantyEndDate', - baseName: 'warrantyEndDate', - type: 'Date', - format: 'date-time', - }, - { - name: 'customerName', - baseName: 'customerName', - type: 'string', - format: '', - }, - { - name: 'userId', - baseName: 'userId', - type: 'string', - format: 'uuid', - }, - { - name: 'userAddressId', - baseName: 'userAddressId', - type: 'string', - format: 'uuid', - }, - { - name: 'servicePartnerId', - baseName: 'servicePartnerId', - type: 'number', - format: 'int32', - }, - { - name: 'userEmail', - baseName: 'userEmail', - type: 'string', - format: '', - }, - { - name: 'systemAddressId', - baseName: 'systemAddressId', - type: 'string', - format: 'uuid', - }, - { - name: 'installerName', - baseName: 'installerName', - type: 'string', - format: '', - }, - { - name: 'site', - baseName: 'site', - type: 'string', - format: '', - }, - { - name: 'modelName', - baseName: 'modelName', - type: 'string', - format: '', - }, - { - name: 'phone', - baseName: 'phone', - type: 'string', - format: '', - }, - { - name: 'productName', - baseName: 'productName', - type: 'string', - format: '', - }, + { + name: "address", + baseName: "address", + type: "ProductRegistrationAddress", + format: "" + }, + { + name: "serialNumber", + baseName: "serialNumber", + type: "string", + format: "" + }, + { + name: "operatingHours", + baseName: "operatingHours", + type: "number", + format: "int32" + }, + { + name: "installationDate", + baseName: "installationDate", + type: "Date", + format: "date-time" + }, + { + name: "registrationDate", + baseName: "registrationDate", + type: "Date", + format: "date-time" + }, + { + name: "warrantyEndDate", + baseName: "warrantyEndDate", + type: "Date", + format: "date-time" + }, + { + name: "customerName", + baseName: "customerName", + type: "string", + format: "" + }, + { + name: "userId", + baseName: "userId", + type: "string", + format: "uuid" + }, + { + name: "userAddressId", + baseName: "userAddressId", + type: "string", + format: "uuid" + }, + { + name: "servicePartnerId", + baseName: "servicePartnerId", + type: "number", + format: "int32" + }, + { + name: "userEmail", + baseName: "userEmail", + type: "string", + format: "" + }, + { + name: "systemAddressId", + baseName: "systemAddressId", + type: "string", + format: "uuid" + }, + { + name: "installerName", + baseName: "installerName", + type: "string", + format: "" + }, + { + name: "site", + baseName: "site", + type: "string", + format: "" + }, + { + name: "modelName", + baseName: "modelName", + type: "string", + format: "" + }, + { + name: "phone", + baseName: "phone", + type: "string", + format: "" + }, + { + name: "productName", + baseName: "productName", + type: "string", + format: "" + } ]; -//# sourceMappingURL=ProductRegistrationResponseWithAddress.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + ProductRegistrationResponseWithAddress +}); +//# sourceMappingURL=ProductRegistrationResponseWithAddress.js.map diff --git a/build/models/ProductRegistrationResponseWithAddress.js.map b/build/models/ProductRegistrationResponseWithAddress.js.map index 823e5e9..e0ed964 100644 --- a/build/models/ProductRegistrationResponseWithAddress.js.map +++ b/build/models/ProductRegistrationResponseWithAddress.js.map @@ -1 +1,7 @@ -{"version":3,"file":"ProductRegistrationResponseWithAddress.js","sourceRoot":"","sources":["../../src/models/ProductRegistrationResponseWithAddress.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAIH,MAAa,sCAAsC;IA8K/C,MAAM,CAAC,mBAAmB;QACtB,OAAO,sCAAsC,CAAC,gBAAgB,CAAC;IACnE,CAAC;IAED,gBAAsB,CAAC;;AAlL3B,wFAmLC;AAhHmB,oDAAa,GAAuB,SAAS,CAAC;AAE9C,uDAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,4BAA4B;QAClC,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,cAAc;QACxB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,gBAAgB;QACtB,QAAQ,EAAE,gBAAgB;QAC1B,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,OAAO;KAClB;IACD;QACI,IAAI,EAAE,kBAAkB;QACxB,QAAQ,EAAE,kBAAkB;QAC5B,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,WAAW;KACtB;IACD;QACI,IAAI,EAAE,kBAAkB;QACxB,QAAQ,EAAE,kBAAkB;QAC5B,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,WAAW;KACtB;IACD;QACI,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE,iBAAiB;QAC3B,IAAI,EAAE,MAAM;QACZ,MAAM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": 3, + "sources": ["../../src/models/ProductRegistrationResponseWithAddress.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { ProductRegistrationAddress } from '../models/ProductRegistrationAddress';\n\nexport class ProductRegistrationResponseWithAddress {\n 'address'?: ProductRegistrationAddress;\n /**\n * Serial number, and also id, for the product registration.\n */\n 'serialNumber'?: string | null;\n /**\n * The operating hours for the product registration.\n */\n 'operatingHours'?: number | null;\n /**\n * Determines what date the product was installed.\n */\n 'installationDate'?: Date;\n /**\n * Determines what date the product was registered.\n */\n 'registrationDate'?: Date;\n /**\n * Determines what date the warranty expires.\n */\n 'warrantyEndDate'?: Date;\n /**\n * The name of the customer.\n */\n 'customerName'?: string | null;\n /**\n * The id of the user connected to this product registration.\n */\n 'userId'?: string | null;\n /**\n * The id of the user\u00B4s address details.\n */\n 'userAddressId'?: string | null;\n /**\n * The id of the Service Partner, if known.\n */\n 'servicePartnerId'?: number | null;\n /**\n * The user\u00B4s email address.\n */\n 'userEmail'?: string | null;\n /**\n * The id of the system\u00B4s address details.\n */\n 'systemAddressId'?: string;\n /**\n * The name of the installer of the product.\n */\n 'installerName'?: string | null;\n /**\n * The site where the product is installed.\n */\n 'site'?: string | null;\n /**\n * The name of the current model.\n */\n 'modelName'?: string | null;\n /**\n * Phone number to the installation.\n */\n 'phone'?: string | null;\n /**\n * Product name.\n */\n 'productName'?: string | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'address',\n baseName: 'address',\n type: 'ProductRegistrationAddress',\n format: '',\n },\n {\n name: 'serialNumber',\n baseName: 'serialNumber',\n type: 'string',\n format: '',\n },\n {\n name: 'operatingHours',\n baseName: 'operatingHours',\n type: 'number',\n format: 'int32',\n },\n {\n name: 'installationDate',\n baseName: 'installationDate',\n type: 'Date',\n format: 'date-time',\n },\n {\n name: 'registrationDate',\n baseName: 'registrationDate',\n type: 'Date',\n format: 'date-time',\n },\n {\n name: 'warrantyEndDate',\n baseName: 'warrantyEndDate',\n type: 'Date',\n format: 'date-time',\n },\n {\n name: 'customerName',\n baseName: 'customerName',\n type: 'string',\n format: '',\n },\n {\n name: 'userId',\n baseName: 'userId',\n type: 'string',\n format: 'uuid',\n },\n {\n name: 'userAddressId',\n baseName: 'userAddressId',\n type: 'string',\n format: 'uuid',\n },\n {\n name: 'servicePartnerId',\n baseName: 'servicePartnerId',\n type: 'number',\n format: 'int32',\n },\n {\n name: 'userEmail',\n baseName: 'userEmail',\n type: 'string',\n format: '',\n },\n {\n name: 'systemAddressId',\n baseName: 'systemAddressId',\n type: 'string',\n format: 'uuid',\n },\n {\n name: 'installerName',\n baseName: 'installerName',\n type: 'string',\n format: '',\n },\n {\n name: 'site',\n baseName: 'site',\n type: 'string',\n format: '',\n },\n {\n name: 'modelName',\n baseName: 'modelName',\n type: 'string',\n format: '',\n },\n {\n name: 'phone',\n baseName: 'phone',\n type: 'string',\n format: '',\n },\n {\n name: 'productName',\n baseName: 'productName',\n type: 'string',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return ProductRegistrationResponseWithAddress.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAcO,MAAM,0CAAN,MAA6C;AAAA,EA8KhD,OAAO,sBAAsB;AACzB,WAAO,wCAAuC;AAAA,EAClD;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAnLO,IAAM,yCAAN;AAAM,uCAmEO,gBAAoC;AAnE3C,uCAqEO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;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;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/ProductResponseModel.js b/build/models/ProductResponseModel.js index f5b042a..2ea159a 100644 --- a/build/models/ProductResponseModel.js +++ b/build/models/ProductResponseModel.js @@ -1,40 +1,51 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.ProductResponseModel = void 0; -/** - * ProductResponseModel - */ -class ProductResponseModel { - static getAttributeTypeMap() { - return ProductResponseModel.attributeTypeMap; - } - constructor() { } -} -exports.ProductResponseModel = ProductResponseModel; -ProductResponseModel.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var ProductResponseModel_exports = {}; +__export(ProductResponseModel_exports, { + ProductResponseModel: () => ProductResponseModel +}); +module.exports = __toCommonJS(ProductResponseModel_exports); +const _ProductResponseModel = class { + static getAttributeTypeMap() { + return _ProductResponseModel.attributeTypeMap; + } + constructor() { + } +}; +let ProductResponseModel = _ProductResponseModel; +ProductResponseModel.discriminator = void 0; ProductResponseModel.attributeTypeMap = [ - { - name: 'serialNumber', - baseName: 'serialNumber', - type: 'string', - format: '', - }, - { - name: 'name', - baseName: 'name', - type: 'string', - format: '', - }, + { + name: "serialNumber", + baseName: "serialNumber", + type: "string", + format: "" + }, + { + name: "name", + baseName: "name", + type: "string", + format: "" + } ]; -//# sourceMappingURL=ProductResponseModel.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + ProductResponseModel +}); +//# sourceMappingURL=ProductResponseModel.js.map diff --git a/build/models/ProductResponseModel.js.map b/build/models/ProductResponseModel.js.map index e447f12..9f8a257 100644 --- a/build/models/ProductResponseModel.js.map +++ b/build/models/ProductResponseModel.js.map @@ -1 +1,7 @@ -{"version":3,"file":"ProductResponseModel.js","sourceRoot":"","sources":["../../src/models/ProductResponseModel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH;;GAEG;AACH,MAAa,oBAAoB;IA2B7B,MAAM,CAAC,mBAAmB;QACtB,OAAO,oBAAoB,CAAC,gBAAgB,CAAC;IACjD,CAAC;IAED,gBAAsB,CAAC;;AA/B3B,oDAgCC;AAtBmB,kCAAa,GAAuB,SAAS,CAAC;AAE9C,qCAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,cAAc;QACxB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/ProductResponseModel.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n/**\n * ProductResponseModel\n */\nexport class ProductResponseModel {\n /**\n * SerialNumber\n */\n 'serialNumber'?: string | null;\n /**\n * Name\n */\n 'name'?: string | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'serialNumber',\n baseName: 'serialNumber',\n type: 'string',\n format: '',\n },\n {\n name: 'name',\n baseName: 'name',\n type: 'string',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return ProductResponseModel.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAeO,MAAM,wBAAN,MAA2B;AAAA,EA2B9B,OAAO,sBAAsB;AACzB,WAAO,sBAAqB;AAAA,EAChC;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAhCO,IAAM,uBAAN;AAAM,qBAUO,gBAAoC;AAV3C,qBAYO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/Properties.js b/build/models/Properties.js index d5b0320..7827a37 100644 --- a/build/models/Properties.js +++ b/build/models/Properties.js @@ -1,31 +1,45 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.Properties = void 0; -class Properties { - static getAttributeTypeMap() { - return Properties.attributeTypeMap; - } - constructor() { } -} -exports.Properties = Properties; -Properties.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var Properties_exports = {}; +__export(Properties_exports, { + Properties: () => Properties +}); +module.exports = __toCommonJS(Properties_exports); +const _Properties = class { + static getAttributeTypeMap() { + return _Properties.attributeTypeMap; + } + constructor() { + } +}; +let Properties = _Properties; +Properties.discriminator = void 0; Properties.attributeTypeMap = [ - { - name: 'reported', - baseName: 'reported', - type: 'Reported', - format: '', - }, + { + name: "reported", + baseName: "reported", + type: "Reported", + format: "" + } ]; -//# sourceMappingURL=Properties.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + Properties +}); +//# sourceMappingURL=Properties.js.map diff --git a/build/models/Properties.js.map b/build/models/Properties.js.map index 9ac4b79..6b83427 100644 --- a/build/models/Properties.js.map +++ b/build/models/Properties.js.map @@ -1 +1,7 @@ -{"version":3,"file":"Properties.js","sourceRoot":"","sources":["../../src/models/Properties.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAIH,MAAa,UAAU;IAcnB,MAAM,CAAC,mBAAmB;QACtB,OAAO,UAAU,CAAC,gBAAgB,CAAC;IACvC,CAAC;IAED,gBAAsB,CAAC;;AAlB3B,gCAmBC;AAhBmB,wBAAa,GAAuB,SAAS,CAAC;AAE9C,2BAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/Properties.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { Reported } from '../models/Reported';\n\nexport class Properties {\n 'reported'?: Reported;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'reported',\n baseName: 'reported',\n type: 'Reported',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return Properties.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAcO,MAAM,cAAN,MAAiB;AAAA,EAcpB,OAAO,sBAAsB;AACzB,WAAO,YAAW;AAAA,EACtB;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAnBO,IAAM,aAAN;AAAM,WAGO,gBAAoC;AAH3C,WAKO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/Reported.js b/build/models/Reported.js index 0925d03..5e965e4 100644 --- a/build/models/Reported.js +++ b/build/models/Reported.js @@ -1,85 +1,99 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.Reported = void 0; -class Reported { - static getAttributeTypeMap() { - return Reported.attributeTypeMap; - } - constructor() { } -} -exports.Reported = Reported; -Reported.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var Reported_exports = {}; +__export(Reported_exports, { + Reported: () => Reported +}); +module.exports = __toCommonJS(Reported_exports); +const _Reported = class { + static getAttributeTypeMap() { + return _Reported.attributeTypeMap; + } + constructor() { + } +}; +let Reported = _Reported; +Reported.discriminator = void 0; Reported.attributeTypeMap = [ - { - name: 'deviceName', - baseName: 'deviceName', - type: 'string', - format: '', - }, - { - name: 'productName', - baseName: 'productName', - type: 'string', - format: '', - }, - { - name: 'brand', - baseName: 'brand', - type: 'string', - format: '', - }, - { - name: 'version', - baseName: 'version', - type: 'string', - format: '', - }, - { - name: 'serialId', - baseName: 'serialId', - type: 'string', - format: '', - }, - { - name: 'firmware', - baseName: 'firmware', - type: 'ReportedFirmware', - format: '', - }, - { - name: 'aidMode', - baseName: 'aidMode', - type: 'string', - format: '', - }, - { - name: 'smartMode', - baseName: 'smartMode', - type: 'string', - format: '', - }, - { - name: 'country', - baseName: 'country', - type: 'string', - format: '', - }, - { - name: 'version', - baseName: '$version', - type: 'string', - format: '', - }, + { + name: "deviceName", + baseName: "deviceName", + type: "string", + format: "" + }, + { + name: "productName", + baseName: "productName", + type: "string", + format: "" + }, + { + name: "brand", + baseName: "brand", + type: "string", + format: "" + }, + { + name: "version", + baseName: "version", + type: "string", + format: "" + }, + { + name: "serialId", + baseName: "serialId", + type: "string", + format: "" + }, + { + name: "firmware", + baseName: "firmware", + type: "ReportedFirmware", + format: "" + }, + { + name: "aidMode", + baseName: "aidMode", + type: "string", + format: "" + }, + { + name: "smartMode", + baseName: "smartMode", + type: "string", + format: "" + }, + { + name: "country", + baseName: "country", + type: "string", + format: "" + }, + { + name: "version", + baseName: "$version", + type: "string", + format: "" + } ]; -//# sourceMappingURL=Reported.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + Reported +}); +//# sourceMappingURL=Reported.js.map diff --git a/build/models/Reported.js.map b/build/models/Reported.js.map index e376a14..eee9f06 100644 --- a/build/models/Reported.js.map +++ b/build/models/Reported.js.map @@ -1 +1,7 @@ -{"version":3,"file":"Reported.js","sourceRoot":"","sources":["../../src/models/Reported.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAIH,MAAa,QAAQ;IA4EjB,MAAM,CAAC,mBAAmB;QACtB,OAAO,QAAQ,CAAC,gBAAgB,CAAC;IACrC,CAAC;IAED,gBAAsB,CAAC;;AAhF3B,4BAiFC;AAtEmB,sBAAa,GAAuB,SAAS,CAAC;AAE9C,yBAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,aAAa;QACvB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,kBAAkB;QACxB,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,WAAW;QACrB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/Reported.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { ReportedFirmware } from '../models/ReportedFirmware';\n\nexport class Reported {\n 'deviceName'?: string | null;\n 'productName'?: string | null;\n 'brand'?: string | null;\n 'version'?: string | null;\n 'serialId'?: string | null;\n 'firmware'?: ReportedFirmware;\n 'aidMode'?: string | null;\n 'smartMode'?: string | null;\n 'country'?: string | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'deviceName',\n baseName: 'deviceName',\n type: 'string',\n format: '',\n },\n {\n name: 'productName',\n baseName: 'productName',\n type: 'string',\n format: '',\n },\n {\n name: 'brand',\n baseName: 'brand',\n type: 'string',\n format: '',\n },\n {\n name: 'version',\n baseName: 'version',\n type: 'string',\n format: '',\n },\n {\n name: 'serialId',\n baseName: 'serialId',\n type: 'string',\n format: '',\n },\n {\n name: 'firmware',\n baseName: 'firmware',\n type: 'ReportedFirmware',\n format: '',\n },\n {\n name: 'aidMode',\n baseName: 'aidMode',\n type: 'string',\n format: '',\n },\n {\n name: 'smartMode',\n baseName: 'smartMode',\n type: 'string',\n format: '',\n },\n {\n name: 'country',\n baseName: 'country',\n type: 'string',\n format: '',\n },\n {\n name: 'version',\n baseName: '$version',\n type: 'string',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return Reported.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAcO,MAAM,YAAN,MAAe;AAAA,EA4ElB,OAAO,sBAAsB;AACzB,WAAO,UAAS;AAAA,EACpB;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAjFO,IAAM,WAAN;AAAM,SAWO,gBAAoC;AAX3C,SAaO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/ReportedFirmware.js b/build/models/ReportedFirmware.js index 3f5c1a8..d6fb33e 100644 --- a/build/models/ReportedFirmware.js +++ b/build/models/ReportedFirmware.js @@ -1,55 +1,69 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.ReportedFirmware = void 0; -class ReportedFirmware { - static getAttributeTypeMap() { - return ReportedFirmware.attributeTypeMap; - } - constructor() { } -} -exports.ReportedFirmware = ReportedFirmware; -ReportedFirmware.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var ReportedFirmware_exports = {}; +__export(ReportedFirmware_exports, { + ReportedFirmware: () => ReportedFirmware +}); +module.exports = __toCommonJS(ReportedFirmware_exports); +const _ReportedFirmware = class { + static getAttributeTypeMap() { + return _ReportedFirmware.attributeTypeMap; + } + constructor() { + } +}; +let ReportedFirmware = _ReportedFirmware; +ReportedFirmware.discriminator = void 0; ReportedFirmware.attributeTypeMap = [ - { - name: 'firmwareId', - baseName: 'firmwareId', - type: 'string', - format: '', - }, - { - name: 'pendingFwVersion', - baseName: 'pendingFwVersion', - type: 'string', - format: '', - }, - { - name: 'lastFwUpdateStartTime', - baseName: 'lastFwUpdateStartTime', - type: 'string', - format: '', - }, - { - name: 'currentFwVersion', - baseName: 'currentFwVersion', - type: 'string', - format: '', - }, - { - name: 'lastFwUpdateEndTime', - baseName: 'lastFwUpdateEndTime', - type: 'string', - format: '', - }, + { + name: "firmwareId", + baseName: "firmwareId", + type: "string", + format: "" + }, + { + name: "pendingFwVersion", + baseName: "pendingFwVersion", + type: "string", + format: "" + }, + { + name: "lastFwUpdateStartTime", + baseName: "lastFwUpdateStartTime", + type: "string", + format: "" + }, + { + name: "currentFwVersion", + baseName: "currentFwVersion", + type: "string", + format: "" + }, + { + name: "lastFwUpdateEndTime", + baseName: "lastFwUpdateEndTime", + type: "string", + format: "" + } ]; -//# sourceMappingURL=ReportedFirmware.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + ReportedFirmware +}); +//# sourceMappingURL=ReportedFirmware.js.map diff --git a/build/models/ReportedFirmware.js.map b/build/models/ReportedFirmware.js.map index 09a04a3..89e747f 100644 --- a/build/models/ReportedFirmware.js.map +++ b/build/models/ReportedFirmware.js.map @@ -1 +1,7 @@ -{"version":3,"file":"ReportedFirmware.js","sourceRoot":"","sources":["../../src/models/ReportedFirmware.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,MAAa,gBAAgB;IA0CzB,MAAM,CAAC,mBAAmB;QACtB,OAAO,gBAAgB,CAAC,gBAAgB,CAAC;IAC7C,CAAC;IAED,gBAAsB,CAAC;;AA9C3B,4CA+CC;AAxCmB,8BAAa,GAAuB,SAAS,CAAC;AAE9C,iCAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,kBAAkB;QACxB,QAAQ,EAAE,kBAAkB;QAC5B,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,uBAAuB;QAC7B,QAAQ,EAAE,uBAAuB;QACjC,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,kBAAkB;QACxB,QAAQ,EAAE,kBAAkB;QAC5B,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,qBAAqB;QAC3B,QAAQ,EAAE,qBAAqB;QAC/B,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/ReportedFirmware.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nexport class ReportedFirmware {\n 'firmwareId'?: string | null;\n 'pendingFwVersion'?: string | null;\n 'lastFwUpdateStartTime'?: string | null;\n 'currentFwVersion'?: string | null;\n 'lastFwUpdateEndTime'?: string | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'firmwareId',\n baseName: 'firmwareId',\n type: 'string',\n format: '',\n },\n {\n name: 'pendingFwVersion',\n baseName: 'pendingFwVersion',\n type: 'string',\n format: '',\n },\n {\n name: 'lastFwUpdateStartTime',\n baseName: 'lastFwUpdateStartTime',\n type: 'string',\n format: '',\n },\n {\n name: 'currentFwVersion',\n baseName: 'currentFwVersion',\n type: 'string',\n format: '',\n },\n {\n name: 'lastFwUpdateEndTime',\n baseName: 'lastFwUpdateEndTime',\n type: 'string',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return ReportedFirmware.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAYO,MAAM,oBAAN,MAAuB;AAAA,EA0C1B,OAAO,sBAAsB;AACzB,WAAO,kBAAiB;AAAA,EAC5B;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AA/CO,IAAM,mBAAN;AAAM,iBAOO,gBAAoC;AAP3C,iBASO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/SearchGroupSSG.js b/build/models/SearchGroupSSG.js index 1e92c05..e4c3219 100644 --- a/build/models/SearchGroupSSG.js +++ b/build/models/SearchGroupSSG.js @@ -1,73 +1,87 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.SearchGroupSSG = void 0; -class SearchGroupSSG { - static getAttributeTypeMap() { - return SearchGroupSSG.attributeTypeMap; - } - constructor() { } -} -exports.SearchGroupSSG = SearchGroupSSG; -SearchGroupSSG.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var SearchGroupSSG_exports = {}; +__export(SearchGroupSSG_exports, { + SearchGroupSSG: () => SearchGroupSSG +}); +module.exports = __toCommonJS(SearchGroupSSG_exports); +const _SearchGroupSSG = class { + static getAttributeTypeMap() { + return _SearchGroupSSG.attributeTypeMap; + } + constructor() { + } +}; +let SearchGroupSSG = _SearchGroupSSG; +SearchGroupSSG.discriminator = void 0; SearchGroupSSG.attributeTypeMap = [ - { - name: 'deviceId', - baseName: 'deviceId', - type: 'string', - format: '', - }, - { - name: 'systemId', - baseName: 'systemId', - type: 'string', - format: 'uuid', - }, - { - name: 'version', - baseName: 'version', - type: 'number', - format: 'int64', - }, - { - name: 'status', - baseName: 'status', - type: 'string', - format: '', - }, - { - name: 'connectionState', - baseName: 'connectionState', - type: 'string', - format: '', - }, - { - name: 'lastActivityTime', - baseName: 'lastActivityTime', - type: 'Date', - format: 'date-time', - }, - { - name: 'authenticationType', - baseName: 'authenticationType', - type: 'string', - format: '', - }, - { - name: 'properties', - baseName: 'properties', - type: 'Properties', - format: '', - }, + { + name: "deviceId", + baseName: "deviceId", + type: "string", + format: "" + }, + { + name: "systemId", + baseName: "systemId", + type: "string", + format: "uuid" + }, + { + name: "version", + baseName: "version", + type: "number", + format: "int64" + }, + { + name: "status", + baseName: "status", + type: "string", + format: "" + }, + { + name: "connectionState", + baseName: "connectionState", + type: "string", + format: "" + }, + { + name: "lastActivityTime", + baseName: "lastActivityTime", + type: "Date", + format: "date-time" + }, + { + name: "authenticationType", + baseName: "authenticationType", + type: "string", + format: "" + }, + { + name: "properties", + baseName: "properties", + type: "Properties", + format: "" + } ]; -//# sourceMappingURL=SearchGroupSSG.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + SearchGroupSSG +}); +//# sourceMappingURL=SearchGroupSSG.js.map diff --git a/build/models/SearchGroupSSG.js.map b/build/models/SearchGroupSSG.js.map index 3823cbf..65e9c72 100644 --- a/build/models/SearchGroupSSG.js.map +++ b/build/models/SearchGroupSSG.js.map @@ -1 +1,7 @@ -{"version":3,"file":"SearchGroupSSG.js","sourceRoot":"","sources":["../../src/models/SearchGroupSSG.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAIH,MAAa,cAAc;IA+DvB,MAAM,CAAC,mBAAmB;QACtB,OAAO,cAAc,CAAC,gBAAgB,CAAC;IAC3C,CAAC;IAED,gBAAsB,CAAC;;AAnE3B,wCAoEC;AA1DmB,4BAAa,GAAuB,SAAS,CAAC;AAE9C,+BAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,MAAM;KACjB;IACD;QACI,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,OAAO;KAClB;IACD;QACI,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE,iBAAiB;QAC3B,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,kBAAkB;QACxB,QAAQ,EAAE,kBAAkB;QAC5B,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,WAAW;KACtB;IACD;QACI,IAAI,EAAE,oBAAoB;QAC1B,QAAQ,EAAE,oBAAoB;QAC9B,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/SearchGroupSSG.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { Properties } from '../models/Properties';\n\nexport class SearchGroupSSG {\n 'deviceId'?: string | null;\n 'systemId'?: string | null;\n 'version'?: number | null;\n 'status'?: string | null;\n 'connectionState'?: string | null;\n 'lastActivityTime'?: Date;\n 'authenticationType'?: string | null;\n 'properties'?: Properties;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'deviceId',\n baseName: 'deviceId',\n type: 'string',\n format: '',\n },\n {\n name: 'systemId',\n baseName: 'systemId',\n type: 'string',\n format: 'uuid',\n },\n {\n name: 'version',\n baseName: 'version',\n type: 'number',\n format: 'int64',\n },\n {\n name: 'status',\n baseName: 'status',\n type: 'string',\n format: '',\n },\n {\n name: 'connectionState',\n baseName: 'connectionState',\n type: 'string',\n format: '',\n },\n {\n name: 'lastActivityTime',\n baseName: 'lastActivityTime',\n type: 'Date',\n format: 'date-time',\n },\n {\n name: 'authenticationType',\n baseName: 'authenticationType',\n type: 'string',\n format: '',\n },\n {\n name: 'properties',\n baseName: 'properties',\n type: 'Properties',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return SearchGroupSSG.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAcO,MAAM,kBAAN,MAAqB;AAAA,EA+DxB,OAAO,sBAAsB;AACzB,WAAO,gBAAe;AAAA,EAC1B;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AApEO,IAAM,iBAAN;AAAM,eAUO,gBAAoC;AAV3C,eAYO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/SecurityLevel.js b/build/models/SecurityLevel.js index 13ca86d..7017fc4 100644 --- a/build/models/SecurityLevel.js +++ b/build/models/SecurityLevel.js @@ -1,21 +1,34 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.SecurityLevel = void 0; -var SecurityLevel; -(function (SecurityLevel) { - SecurityLevel["Admin"] = "admin"; - SecurityLevel["Manager"] = "manager"; - SecurityLevel["Viewer"] = "viewer"; -})(SecurityLevel || (exports.SecurityLevel = SecurityLevel = {})); -//# sourceMappingURL=SecurityLevel.js.map \ No newline at end of file +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var SecurityLevel_exports = {}; +__export(SecurityLevel_exports, { + SecurityLevel: () => SecurityLevel +}); +module.exports = __toCommonJS(SecurityLevel_exports); +var SecurityLevel = /* @__PURE__ */ ((SecurityLevel2) => { + SecurityLevel2["Admin"] = "admin"; + SecurityLevel2["Manager"] = "manager"; + SecurityLevel2["Viewer"] = "viewer"; + return SecurityLevel2; +})(SecurityLevel || {}); +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + SecurityLevel +}); +//# sourceMappingURL=SecurityLevel.js.map diff --git a/build/models/SecurityLevel.js.map b/build/models/SecurityLevel.js.map index 40a0160..7e0bf43 100644 --- a/build/models/SecurityLevel.js.map +++ b/build/models/SecurityLevel.js.map @@ -1 +1,7 @@ -{"version":3,"file":"SecurityLevel.js","sourceRoot":"","sources":["../../src/models/SecurityLevel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,IAAY,aAIX;AAJD,WAAY,aAAa;IACrB,gCAAe,CAAA;IACf,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;AACrB,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/SecurityLevel.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nexport enum SecurityLevel {\n Admin = 'admin',\n Manager = 'manager',\n Viewer = 'viewer',\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAYO,IAAK,gBAAL,kBAAKA,mBAAL;AACH,EAAAA,eAAA,WAAQ;AACR,EAAAA,eAAA,aAAU;AACV,EAAAA,eAAA,YAAS;AAHD,SAAAA;AAAA,GAAA;", + "names": ["SecurityLevel"] +} diff --git a/build/models/Session.js b/build/models/Session.js index 3fbe6bf..67f6e90 100644 --- a/build/models/Session.js +++ b/build/models/Session.js @@ -1,3 +1,17 @@ "use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=Session.js.map \ No newline at end of file +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var Session_exports = {}; +module.exports = __toCommonJS(Session_exports); +//# sourceMappingURL=Session.js.map diff --git a/build/models/Session.js.map b/build/models/Session.js.map index e4cd12a..6f41d17 100644 --- a/build/models/Session.js.map +++ b/build/models/Session.js.map @@ -1 +1,7 @@ -{"version":3,"file":"Session.js","sourceRoot":"","sources":["../../src/models/Session.ts"],"names":[],"mappings":""} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/Session.ts"], + "sourcesContent": ["export interface Session {\n token_type?: string;\n access_token?: string;\n refresh_token?: string;\n scope?: string;\n expires_in?: number;\n}\n"], + "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;", + "names": [] +} diff --git a/build/models/SmartHomeModeModel.js b/build/models/SmartHomeModeModel.js index 48c6782..14d98e9 100644 --- a/build/models/SmartHomeModeModel.js +++ b/build/models/SmartHomeModeModel.js @@ -1,31 +1,45 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.SmartHomeModeModel = void 0; -class SmartHomeModeModel { - static getAttributeTypeMap() { - return SmartHomeModeModel.attributeTypeMap; - } - constructor() { } -} -exports.SmartHomeModeModel = SmartHomeModeModel; -SmartHomeModeModel.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var SmartHomeModeModel_exports = {}; +__export(SmartHomeModeModel_exports, { + SmartHomeModeModel: () => SmartHomeModeModel +}); +module.exports = __toCommonJS(SmartHomeModeModel_exports); +const _SmartHomeModeModel = class { + static getAttributeTypeMap() { + return _SmartHomeModeModel.attributeTypeMap; + } + constructor() { + } +}; +let SmartHomeModeModel = _SmartHomeModeModel; +SmartHomeModeModel.discriminator = void 0; SmartHomeModeModel.attributeTypeMap = [ - { - name: 'smartHomeMode', - baseName: 'smartHomeMode', - type: 'SmartMode', - format: '', - }, + { + name: "smartHomeMode", + baseName: "smartHomeMode", + type: "SmartMode", + format: "" + } ]; -//# sourceMappingURL=SmartHomeModeModel.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + SmartHomeModeModel +}); +//# sourceMappingURL=SmartHomeModeModel.js.map diff --git a/build/models/SmartHomeModeModel.js.map b/build/models/SmartHomeModeModel.js.map index 5498c10..601c84f 100644 --- a/build/models/SmartHomeModeModel.js.map +++ b/build/models/SmartHomeModeModel.js.map @@ -1 +1,7 @@ -{"version":3,"file":"SmartHomeModeModel.js","sourceRoot":"","sources":["../../src/models/SmartHomeModeModel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAIH,MAAa,kBAAkB;IAc3B,MAAM,CAAC,mBAAmB;QACtB,OAAO,kBAAkB,CAAC,gBAAgB,CAAC;IAC/C,CAAC;IAED,gBAAsB,CAAC;;AAlB3B,gDAmBC;AAhBmB,gCAAa,GAAuB,SAAS,CAAC;AAE9C,mCAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,eAAe;QACrB,QAAQ,EAAE,eAAe;QACzB,IAAI,EAAE,WAAW;QACjB,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/SmartHomeModeModel.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { SmartMode } from '../models/SmartMode';\n\nexport class SmartHomeModeModel {\n 'smartHomeMode'?: SmartMode;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'smartHomeMode',\n baseName: 'smartHomeMode',\n type: 'SmartMode',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return SmartHomeModeModel.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAcO,MAAM,sBAAN,MAAyB;AAAA,EAc5B,OAAO,sBAAsB;AACzB,WAAO,oBAAmB;AAAA,EAC9B;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAnBO,IAAM,qBAAN;AAAM,mBAGO,gBAAoC;AAH3C,mBAKO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/SmartMode.js b/build/models/SmartMode.js index 4014f3b..73a3d9a 100644 --- a/build/models/SmartMode.js +++ b/build/models/SmartMode.js @@ -1,26 +1,36 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.SmartMode = void 0; -/** - * Smart mode enum. - */ -var SmartMode; -(function (SmartMode) { - SmartMode["Default"] = "Default"; - SmartMode["Normal"] = "Normal"; - SmartMode["Away"] = "Away"; - SmartMode["Vacation"] = "Vacation"; - SmartMode["Home"] = "Home"; -})(SmartMode || (exports.SmartMode = SmartMode = {})); -//# sourceMappingURL=SmartMode.js.map \ No newline at end of file +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var SmartMode_exports = {}; +__export(SmartMode_exports, { + SmartMode: () => SmartMode +}); +module.exports = __toCommonJS(SmartMode_exports); +var SmartMode = /* @__PURE__ */ ((SmartMode2) => { + SmartMode2["Default"] = "Default"; + SmartMode2["Normal"] = "Normal"; + SmartMode2["Away"] = "Away"; + SmartMode2["Vacation"] = "Vacation"; + SmartMode2["Home"] = "Home"; + return SmartMode2; +})(SmartMode || {}); +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + SmartMode +}); +//# sourceMappingURL=SmartMode.js.map diff --git a/build/models/SmartMode.js.map b/build/models/SmartMode.js.map index 8072dc7..ae8a704 100644 --- a/build/models/SmartMode.js.map +++ b/build/models/SmartMode.js.map @@ -1 +1,7 @@ -{"version":3,"file":"SmartMode.js","sourceRoot":"","sources":["../../src/models/SmartMode.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH;;GAEG;AACH,IAAY,SAMX;AAND,WAAY,SAAS;IACjB,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;IACjB,0BAAa,CAAA;IACb,kCAAqB,CAAA;IACrB,0BAAa,CAAA;AACjB,CAAC,EANW,SAAS,yBAAT,SAAS,QAMpB"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/SmartMode.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n/**\n * Smart mode enum.\n */\nexport enum SmartMode {\n Default = 'Default',\n Normal = 'Normal',\n Away = 'Away',\n Vacation = 'Vacation',\n Home = 'Home',\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAeO,IAAK,YAAL,kBAAKA,eAAL;AACH,EAAAA,WAAA,aAAU;AACV,EAAAA,WAAA,YAAS;AACT,EAAAA,WAAA,UAAO;AACP,EAAAA,WAAA,cAAW;AACX,EAAAA,WAAA,UAAO;AALC,SAAAA;AAAA,GAAA;", + "names": ["SmartMode"] +} diff --git a/build/models/SpotPriceDeliveryModel.js b/build/models/SpotPriceDeliveryModel.js index 855f13e..bf6e2b2 100644 --- a/build/models/SpotPriceDeliveryModel.js +++ b/build/models/SpotPriceDeliveryModel.js @@ -1,31 +1,45 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.SpotPriceDeliveryModel = void 0; -class SpotPriceDeliveryModel { - static getAttributeTypeMap() { - return SpotPriceDeliveryModel.attributeTypeMap; - } - constructor() { } -} -exports.SpotPriceDeliveryModel = SpotPriceDeliveryModel; -SpotPriceDeliveryModel.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var SpotPriceDeliveryModel_exports = {}; +__export(SpotPriceDeliveryModel_exports, { + SpotPriceDeliveryModel: () => SpotPriceDeliveryModel +}); +module.exports = __toCommonJS(SpotPriceDeliveryModel_exports); +const _SpotPriceDeliveryModel = class { + static getAttributeTypeMap() { + return _SpotPriceDeliveryModel.attributeTypeMap; + } + constructor() { + } +}; +let SpotPriceDeliveryModel = _SpotPriceDeliveryModel; +SpotPriceDeliveryModel.discriminator = void 0; SpotPriceDeliveryModel.attributeTypeMap = [ - { - name: 'prices', - baseName: 'prices', - type: '{ [key: string]: number | null; }', - format: 'int32', - }, + { + name: "prices", + baseName: "prices", + type: "{ [key: string]: number | null; }", + format: "int32" + } ]; -//# sourceMappingURL=SpotPriceDeliveryModel.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + SpotPriceDeliveryModel +}); +//# sourceMappingURL=SpotPriceDeliveryModel.js.map diff --git a/build/models/SpotPriceDeliveryModel.js.map b/build/models/SpotPriceDeliveryModel.js.map index d990228..eb143bd 100644 --- a/build/models/SpotPriceDeliveryModel.js.map +++ b/build/models/SpotPriceDeliveryModel.js.map @@ -1 +1,7 @@ -{"version":3,"file":"SpotPriceDeliveryModel.js","sourceRoot":"","sources":["../../src/models/SpotPriceDeliveryModel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,MAAa,sBAAsB;IAiB/B,MAAM,CAAC,mBAAmB;QACtB,OAAO,sBAAsB,CAAC,gBAAgB,CAAC;IACnD,CAAC;IAED,gBAAsB,CAAC;;AArB3B,wDAsBC;AAhBmB,oCAAa,GAAuB,SAAS,CAAC;AAE9C,uCAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,mCAAmC;QACzC,MAAM,EAAE,OAAO;KAClB;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/SpotPriceDeliveryModel.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nexport class SpotPriceDeliveryModel {\n /**\n * Dictionary with prices. Key is the start date and time in UTC and the value is the price in (Currency*100)/MWh\n */\n 'prices': { [key: string]: number | null };\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'prices',\n baseName: 'prices',\n type: '{ [key: string]: number | null; }',\n format: 'int32',\n },\n ];\n\n static getAttributeTypeMap() {\n return SpotPriceDeliveryModel.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAYO,MAAM,0BAAN,MAA6B;AAAA,EAiBhC,OAAO,sBAAsB;AACzB,WAAO,wBAAuB;AAAA,EAClC;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAtBO,IAAM,yBAAN;AAAM,uBAMO,gBAAoC;AAN3C,uBAQO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/SsqGroupDevice.js b/build/models/SsqGroupDevice.js index a5f1e55..f29fcb2 100644 --- a/build/models/SsqGroupDevice.js +++ b/build/models/SsqGroupDevice.js @@ -1,52 +1,63 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.SsqGroupDevice = void 0; -/** - * Ssq group device. - */ -class SsqGroupDevice { - static getAttributeTypeMap() { - return SsqGroupDevice.attributeTypeMap; - } - constructor() { } -} -exports.SsqGroupDevice = SsqGroupDevice; -SsqGroupDevice.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var SsqGroupDevice_exports = {}; +__export(SsqGroupDevice_exports, { + SsqGroupDevice: () => SsqGroupDevice +}); +module.exports = __toCommonJS(SsqGroupDevice_exports); +const _SsqGroupDevice = class { + static getAttributeTypeMap() { + return _SsqGroupDevice.attributeTypeMap; + } + constructor() { + } +}; +let SsqGroupDevice = _SsqGroupDevice; +SsqGroupDevice.discriminator = void 0; SsqGroupDevice.attributeTypeMap = [ - { - name: 'name', - baseName: 'name', - type: 'string', - format: '', - }, - { - name: 'description', - baseName: 'description', - type: 'string', - format: '', - }, - { - name: 'id', - baseName: 'id', - type: 'string', - format: '', - }, - { - name: 'type', - baseName: 'type', - type: 'string', - format: '', - }, + { + name: "name", + baseName: "name", + type: "string", + format: "" + }, + { + name: "description", + baseName: "description", + type: "string", + format: "" + }, + { + name: "id", + baseName: "id", + type: "string", + format: "" + }, + { + name: "type", + baseName: "type", + type: "string", + format: "" + } ]; -//# sourceMappingURL=SsqGroupDevice.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + SsqGroupDevice +}); +//# sourceMappingURL=SsqGroupDevice.js.map diff --git a/build/models/SsqGroupDevice.js.map b/build/models/SsqGroupDevice.js.map index 3b6a47b..cefcd92 100644 --- a/build/models/SsqGroupDevice.js.map +++ b/build/models/SsqGroupDevice.js.map @@ -1 +1,7 @@ -{"version":3,"file":"SsqGroupDevice.js","sourceRoot":"","sources":["../../src/models/SsqGroupDevice.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH;;GAEG;AACH,MAAa,cAAc;IA+CvB,MAAM,CAAC,mBAAmB;QACtB,OAAO,cAAc,CAAC,gBAAgB,CAAC;IAC3C,CAAC;IAED,gBAAsB,CAAC;;AAnD3B,wCAoDC;AAlCmB,4BAAa,GAAuB,SAAS,CAAC;AAE9C,+BAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,aAAa;QACvB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/SsqGroupDevice.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n/**\n * Ssq group device.\n */\nexport class SsqGroupDevice {\n /**\n * Name.\n */\n 'name'?: string | null;\n /**\n * Description.\n */\n 'description'?: string | null;\n /**\n * Device Id.\n */\n 'id'?: string | null;\n /**\n * Type.\n */\n 'type'?: string | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'name',\n baseName: 'name',\n type: 'string',\n format: '',\n },\n {\n name: 'description',\n baseName: 'description',\n type: 'string',\n format: '',\n },\n {\n name: 'id',\n baseName: 'id',\n type: 'string',\n format: '',\n },\n {\n name: 'type',\n baseName: 'type',\n type: 'string',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return SsqGroupDevice.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAeO,MAAM,kBAAN,MAAqB;AAAA,EA+CxB,OAAO,sBAAsB;AACzB,WAAO,gBAAe;AAAA,EAC1B;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AApDO,IAAM,iBAAN;AAAM,eAkBO,gBAAoC;AAlB3C,eAoBO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/Status.js b/build/models/Status.js index 125d140..dd4f6a8 100644 --- a/build/models/Status.js +++ b/build/models/Status.js @@ -1,24 +1,37 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.Status = void 0; -var Status; -(function (Status) { - Status["None"] = "None"; - Status["Active"] = "Active"; - Status["DismissedByDevice"] = "DismissedByDevice"; - Status["ResetByUserOnDevice"] = "ResetByUserOnDevice"; - Status["ResetByUserFromCloud"] = "ResetByUserFromCloud"; - Status["Unknown"] = "Unknown"; -})(Status || (exports.Status = Status = {})); -//# sourceMappingURL=Status.js.map \ No newline at end of file +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var Status_exports = {}; +__export(Status_exports, { + Status: () => Status +}); +module.exports = __toCommonJS(Status_exports); +var Status = /* @__PURE__ */ ((Status2) => { + Status2["None"] = "None"; + Status2["Active"] = "Active"; + Status2["DismissedByDevice"] = "DismissedByDevice"; + Status2["ResetByUserOnDevice"] = "ResetByUserOnDevice"; + Status2["ResetByUserFromCloud"] = "ResetByUserFromCloud"; + Status2["Unknown"] = "Unknown"; + return Status2; +})(Status || {}); +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + Status +}); +//# sourceMappingURL=Status.js.map diff --git a/build/models/Status.js.map b/build/models/Status.js.map index 61b96ca..820f547 100644 --- a/build/models/Status.js.map +++ b/build/models/Status.js.map @@ -1 +1,7 @@ -{"version":3,"file":"Status.js","sourceRoot":"","sources":["../../src/models/Status.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,IAAY,MAOX;AAPD,WAAY,MAAM;IACd,uBAAa,CAAA;IACb,2BAAiB,CAAA;IACjB,iDAAuC,CAAA;IACvC,qDAA2C,CAAA;IAC3C,uDAA6C,CAAA;IAC7C,6BAAmB,CAAA;AACvB,CAAC,EAPW,MAAM,sBAAN,MAAM,QAOjB"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/Status.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nexport enum Status {\n None = 'None',\n Active = 'Active',\n DismissedByDevice = 'DismissedByDevice',\n ResetByUserOnDevice = 'ResetByUserOnDevice',\n ResetByUserFromCloud = 'ResetByUserFromCloud',\n Unknown = 'Unknown',\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAYO,IAAK,SAAL,kBAAKA,YAAL;AACH,EAAAA,QAAA,UAAO;AACP,EAAAA,QAAA,YAAS;AACT,EAAAA,QAAA,uBAAoB;AACpB,EAAAA,QAAA,yBAAsB;AACtB,EAAAA,QAAA,0BAAuB;AACvB,EAAAA,QAAA,aAAU;AANF,SAAAA;AAAA,GAAA;", + "names": ["Status"] +} diff --git a/build/models/StoreSet.js b/build/models/StoreSet.js index dcae152..5674c91 100644 --- a/build/models/StoreSet.js +++ b/build/models/StoreSet.js @@ -1,37 +1,51 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.StoreSet = void 0; -class StoreSet { - static getAttributeTypeMap() { - return StoreSet.attributeTypeMap; - } - constructor() { } -} -exports.StoreSet = StoreSet; -StoreSet.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var StoreSet_exports = {}; +__export(StoreSet_exports, { + StoreSet: () => StoreSet +}); +module.exports = __toCommonJS(StoreSet_exports); +const _StoreSet = class { + static getAttributeTypeMap() { + return _StoreSet.attributeTypeMap; + } + constructor() { + } +}; +let StoreSet = _StoreSet; +StoreSet.discriminator = void 0; StoreSet.attributeTypeMap = [ - { - name: 'title', - baseName: 'title', - type: 'string', - format: '', - }, - { - name: 'rows', - baseName: 'rows', - type: 'Array', - format: '', - }, + { + name: "title", + baseName: "title", + type: "string", + format: "" + }, + { + name: "rows", + baseName: "rows", + type: "Array", + format: "" + } ]; -//# sourceMappingURL=StoreSet.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + StoreSet +}); +//# sourceMappingURL=StoreSet.js.map diff --git a/build/models/StoreSet.js.map b/build/models/StoreSet.js.map index 08fb418..188c0a9 100644 --- a/build/models/StoreSet.js.map +++ b/build/models/StoreSet.js.map @@ -1 +1,7 @@ -{"version":3,"file":"StoreSet.js","sourceRoot":"","sources":["../../src/models/StoreSet.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAIH,MAAa,QAAQ;IAqBjB,MAAM,CAAC,mBAAmB;QACtB,OAAO,QAAQ,CAAC,gBAAgB,CAAC;IACrC,CAAC;IAED,gBAAsB,CAAC;;AAzB3B,4BA0BC;AAtBmB,sBAAa,GAAuB,SAAS,CAAC;AAE9C,yBAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,sBAAsB;QAC5B,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/StoreSet.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { StoreSetEntry } from '../models/StoreSetEntry';\n\nexport class StoreSet {\n 'title'?: string | null;\n 'rows'?: Array | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'title',\n baseName: 'title',\n type: 'string',\n format: '',\n },\n {\n name: 'rows',\n baseName: 'rows',\n type: 'Array',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return StoreSet.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAcO,MAAM,YAAN,MAAe;AAAA,EAqBlB,OAAO,sBAAsB;AACzB,WAAO,UAAS;AAAA,EACpB;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AA1BO,IAAM,WAAN;AAAM,SAIO,gBAAoC;AAJ3C,SAMO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/StoreSetEntry.js b/build/models/StoreSetEntry.js index 8696f5e..24800b5 100644 --- a/build/models/StoreSetEntry.js +++ b/build/models/StoreSetEntry.js @@ -1,49 +1,63 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.StoreSetEntry = void 0; -class StoreSetEntry { - static getAttributeTypeMap() { - return StoreSetEntry.attributeTypeMap; - } - constructor() { } -} -exports.StoreSetEntry = StoreSetEntry; -StoreSetEntry.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var StoreSetEntry_exports = {}; +__export(StoreSetEntry_exports, { + StoreSetEntry: () => StoreSetEntry +}); +module.exports = __toCommonJS(StoreSetEntry_exports); +const _StoreSetEntry = class { + static getAttributeTypeMap() { + return _StoreSetEntry.attributeTypeMap; + } + constructor() { + } +}; +let StoreSetEntry = _StoreSetEntry; +StoreSetEntry.discriminator = void 0; StoreSetEntry.attributeTypeMap = [ - { - name: 'variableId', - baseName: 'variableId', - type: 'string', - format: '', - }, - { - name: 'description', - baseName: 'description', - type: 'string', - format: '', - }, - { - name: 'currentValue', - baseName: 'currentValue', - type: 'number', - format: 'int32', - }, - { - name: 'defaultValue', - baseName: 'defaultValue', - type: 'number', - format: 'int32', - }, + { + name: "variableId", + baseName: "variableId", + type: "string", + format: "" + }, + { + name: "description", + baseName: "description", + type: "string", + format: "" + }, + { + name: "currentValue", + baseName: "currentValue", + type: "number", + format: "int32" + }, + { + name: "defaultValue", + baseName: "defaultValue", + type: "number", + format: "int32" + } ]; -//# sourceMappingURL=StoreSetEntry.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + StoreSetEntry +}); +//# sourceMappingURL=StoreSetEntry.js.map diff --git a/build/models/StoreSetEntry.js.map b/build/models/StoreSetEntry.js.map index 868837c..188f6eb 100644 --- a/build/models/StoreSetEntry.js.map +++ b/build/models/StoreSetEntry.js.map @@ -1 +1,7 @@ -{"version":3,"file":"StoreSetEntry.js","sourceRoot":"","sources":["../../src/models/StoreSetEntry.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,MAAa,aAAa;IAmCtB,MAAM,CAAC,mBAAmB;QACtB,OAAO,aAAa,CAAC,gBAAgB,CAAC;IAC1C,CAAC;IAED,gBAAsB,CAAC;;AAvC3B,sCAwCC;AAlCmB,2BAAa,GAAuB,SAAS,CAAC;AAE9C,8BAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,aAAa;QACvB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,cAAc;QACxB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,OAAO;KAClB;IACD;QACI,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,cAAc;QACxB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,OAAO;KAClB;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/StoreSetEntry.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nexport class StoreSetEntry {\n 'variableId'?: string | null;\n 'description'?: string | null;\n 'currentValue'?: number;\n 'defaultValue'?: number;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'variableId',\n baseName: 'variableId',\n type: 'string',\n format: '',\n },\n {\n name: 'description',\n baseName: 'description',\n type: 'string',\n format: '',\n },\n {\n name: 'currentValue',\n baseName: 'currentValue',\n type: 'number',\n format: 'int32',\n },\n {\n name: 'defaultValue',\n baseName: 'defaultValue',\n type: 'number',\n format: 'int32',\n },\n ];\n\n static getAttributeTypeMap() {\n return StoreSetEntry.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAYO,MAAM,iBAAN,MAAoB;AAAA,EAmCvB,OAAO,sBAAsB;AACzB,WAAO,eAAc;AAAA,EACzB;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAxCO,IAAM,gBAAN;AAAM,cAMO,gBAAoC;AAN3C,cAQO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/SystemDevice.js b/build/models/SystemDevice.js index d477797..972658f 100644 --- a/build/models/SystemDevice.js +++ b/build/models/SystemDevice.js @@ -1,52 +1,63 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.SystemDevice = void 0; -/** - * Device model. - */ -class SystemDevice { - static getAttributeTypeMap() { - return SystemDevice.attributeTypeMap; - } - constructor() { } -} -exports.SystemDevice = SystemDevice; -SystemDevice.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var SystemDevice_exports = {}; +__export(SystemDevice_exports, { + SystemDevice: () => SystemDevice +}); +module.exports = __toCommonJS(SystemDevice_exports); +const _SystemDevice = class { + static getAttributeTypeMap() { + return _SystemDevice.attributeTypeMap; + } + constructor() { + } +}; +let SystemDevice = _SystemDevice; +SystemDevice.discriminator = void 0; SystemDevice.attributeTypeMap = [ - { - name: 'id', - baseName: 'id', - type: 'string', - format: '', - }, - { - name: 'connectionState', - baseName: 'connectionState', - type: 'DeviceConnectionState', - format: '', - }, - { - name: 'currentFwVersion', - baseName: 'currentFwVersion', - type: 'string', - format: '', - }, - { - name: 'product', - baseName: 'product', - type: 'Product', - format: '', - }, + { + name: "id", + baseName: "id", + type: "string", + format: "" + }, + { + name: "connectionState", + baseName: "connectionState", + type: "DeviceConnectionState", + format: "" + }, + { + name: "currentFwVersion", + baseName: "currentFwVersion", + type: "string", + format: "" + }, + { + name: "product", + baseName: "product", + type: "Product", + format: "" + } ]; -//# sourceMappingURL=SystemDevice.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + SystemDevice +}); +//# sourceMappingURL=SystemDevice.js.map diff --git a/build/models/SystemDevice.js.map b/build/models/SystemDevice.js.map index 5101307..cf19afb 100644 --- a/build/models/SystemDevice.js.map +++ b/build/models/SystemDevice.js.map @@ -1 +1,7 @@ -{"version":3,"file":"SystemDevice.js","sourceRoot":"","sources":["../../src/models/SystemDevice.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAKH;;GAEG;AACH,MAAa,YAAY;IAyCrB,MAAM,CAAC,mBAAmB;QACtB,OAAO,YAAY,CAAC,gBAAgB,CAAC;IACzC,CAAC;IAED,gBAAsB,CAAC;;AA7C3B,oCA8CC;AAlCmB,0BAAa,GAAuB,SAAS,CAAC;AAE9C,6BAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE,iBAAiB;QAC3B,IAAI,EAAE,uBAAuB;QAC7B,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,kBAAkB;QACxB,QAAQ,EAAE,kBAAkB;QAC5B,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/SystemDevice.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { DeviceConnectionState } from '../models/DeviceConnectionState';\nimport { Product } from '../models/Product';\n\n/**\n * Device model.\n */\nexport class SystemDevice {\n /**\n * Id.\n */\n 'id'?: string | null;\n 'connectionState'?: DeviceConnectionState;\n /**\n * Current firmware version.\n */\n 'currentFwVersion'?: string | null;\n 'product'?: Product;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'id',\n baseName: 'id',\n type: 'string',\n format: '',\n },\n {\n name: 'connectionState',\n baseName: 'connectionState',\n type: 'DeviceConnectionState',\n format: '',\n },\n {\n name: 'currentFwVersion',\n baseName: 'currentFwVersion',\n type: 'string',\n format: '',\n },\n {\n name: 'product',\n baseName: 'product',\n type: 'Product',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return SystemDevice.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAkBO,MAAM,gBAAN,MAAmB;AAAA,EAyCtB,OAAO,sBAAsB;AACzB,WAAO,cAAa;AAAA,EACxB;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AA9CO,IAAM,eAAN;AAAM,aAYO,gBAAoC;AAZ3C,aAcO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/SystemWithDevices.js b/build/models/SystemWithDevices.js index 43f9a5b..87aae31 100644 --- a/build/models/SystemWithDevices.js +++ b/build/models/SystemWithDevices.js @@ -1,64 +1,75 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.SystemWithDevices = void 0; -/** - * Group. - */ -class SystemWithDevices { - static getAttributeTypeMap() { - return SystemWithDevices.attributeTypeMap; - } - constructor() { } -} -exports.SystemWithDevices = SystemWithDevices; -SystemWithDevices.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var SystemWithDevices_exports = {}; +__export(SystemWithDevices_exports, { + SystemWithDevices: () => SystemWithDevices +}); +module.exports = __toCommonJS(SystemWithDevices_exports); +const _SystemWithDevices = class { + static getAttributeTypeMap() { + return _SystemWithDevices.attributeTypeMap; + } + constructor() { + } +}; +let SystemWithDevices = _SystemWithDevices; +SystemWithDevices.discriminator = void 0; SystemWithDevices.attributeTypeMap = [ - { - name: 'systemId', - baseName: 'systemId', - type: 'string', - format: 'uuid', - }, - { - name: 'name', - baseName: 'name', - type: 'string', - format: '', - }, - { - name: 'securityLevel', - baseName: 'securityLevel', - type: 'SecurityLevel', - format: '', - }, - { - name: 'hasAlarm', - baseName: 'hasAlarm', - type: 'boolean', - format: '', - }, - { - name: 'country', - baseName: 'country', - type: 'string', - format: '', - }, - { - name: 'devices', - baseName: 'devices', - type: 'Array', - format: '', - }, + { + name: "systemId", + baseName: "systemId", + type: "string", + format: "uuid" + }, + { + name: "name", + baseName: "name", + type: "string", + format: "" + }, + { + name: "securityLevel", + baseName: "securityLevel", + type: "SecurityLevel", + format: "" + }, + { + name: "hasAlarm", + baseName: "hasAlarm", + type: "boolean", + format: "" + }, + { + name: "country", + baseName: "country", + type: "string", + format: "" + }, + { + name: "devices", + baseName: "devices", + type: "Array", + format: "" + } ]; -//# sourceMappingURL=SystemWithDevices.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + SystemWithDevices +}); +//# sourceMappingURL=SystemWithDevices.js.map diff --git a/build/models/SystemWithDevices.js.map b/build/models/SystemWithDevices.js.map index e55eebd..5007dda 100644 --- a/build/models/SystemWithDevices.js.map +++ b/build/models/SystemWithDevices.js.map @@ -1 +1,7 @@ -{"version":3,"file":"SystemWithDevices.js","sourceRoot":"","sources":["../../src/models/SystemWithDevices.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAKH;;GAEG;AACH,MAAa,iBAAiB;IAgE1B,MAAM,CAAC,mBAAmB;QACtB,OAAO,iBAAiB,CAAC,gBAAgB,CAAC;IAC9C,CAAC;IAED,gBAAsB,CAAC;;AApE3B,8CAqEC;AA9CmB,+BAAa,GAAuB,SAAS,CAAC;AAE9C,kCAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,MAAM;KACjB;IACD;QACI,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,eAAe;QACrB,QAAQ,EAAE,eAAe;QACzB,IAAI,EAAE,eAAe;QACrB,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,qBAAqB;QAC3B,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/SystemWithDevices.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { SecurityLevel } from '../models/SecurityLevel';\nimport { SystemDevice } from '../models/SystemDevice';\n\n/**\n * Group.\n */\nexport class SystemWithDevices {\n /**\n * System identifier.\n */\n 'systemId'?: string;\n /**\n * System name.\n */\n 'name'?: string | null;\n 'securityLevel'?: SecurityLevel;\n /**\n * Whether system currently has an active alarm.\n */\n 'hasAlarm'?: boolean;\n /**\n * System country.\n */\n 'country'?: string | null;\n /**\n * List of devices.\n */\n 'devices'?: Array | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'systemId',\n baseName: 'systemId',\n type: 'string',\n format: 'uuid',\n },\n {\n name: 'name',\n baseName: 'name',\n type: 'string',\n format: '',\n },\n {\n name: 'securityLevel',\n baseName: 'securityLevel',\n type: 'SecurityLevel',\n format: '',\n },\n {\n name: 'hasAlarm',\n baseName: 'hasAlarm',\n type: 'boolean',\n format: '',\n },\n {\n name: 'country',\n baseName: 'country',\n type: 'string',\n format: '',\n },\n {\n name: 'devices',\n baseName: 'devices',\n type: 'Array',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return SystemWithDevices.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAkBO,MAAM,qBAAN,MAAwB;AAAA,EAgE3B,OAAO,sBAAsB;AACzB,WAAO,mBAAkB;AAAA,EAC7B;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AArEO,IAAM,oBAAN;AAAM,kBAuBO,gBAAoC;AAvB3C,kBAyBO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/UpdateGroupRequest.js b/build/models/UpdateGroupRequest.js index 6fa57f4..532ca88 100644 --- a/build/models/UpdateGroupRequest.js +++ b/build/models/UpdateGroupRequest.js @@ -1,34 +1,45 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.UpdateGroupRequest = void 0; -/** - * Patch group request. - */ -class UpdateGroupRequest { - static getAttributeTypeMap() { - return UpdateGroupRequest.attributeTypeMap; - } - constructor() { } -} -exports.UpdateGroupRequest = UpdateGroupRequest; -UpdateGroupRequest.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var UpdateGroupRequest_exports = {}; +__export(UpdateGroupRequest_exports, { + UpdateGroupRequest: () => UpdateGroupRequest +}); +module.exports = __toCommonJS(UpdateGroupRequest_exports); +const _UpdateGroupRequest = class { + static getAttributeTypeMap() { + return _UpdateGroupRequest.attributeTypeMap; + } + constructor() { + } +}; +let UpdateGroupRequest = _UpdateGroupRequest; +UpdateGroupRequest.discriminator = void 0; UpdateGroupRequest.attributeTypeMap = [ - { - name: 'name', - baseName: 'name', - type: 'string', - format: '', - }, + { + name: "name", + baseName: "name", + type: "string", + format: "" + } ]; -//# sourceMappingURL=UpdateGroupRequest.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + UpdateGroupRequest +}); +//# sourceMappingURL=UpdateGroupRequest.js.map diff --git a/build/models/UpdateGroupRequest.js.map b/build/models/UpdateGroupRequest.js.map index 43bc815..1095e8b 100644 --- a/build/models/UpdateGroupRequest.js.map +++ b/build/models/UpdateGroupRequest.js.map @@ -1 +1,7 @@ -{"version":3,"file":"UpdateGroupRequest.js","sourceRoot":"","sources":["../../src/models/UpdateGroupRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH;;GAEG;AACH,MAAa,kBAAkB;IAiB3B,MAAM,CAAC,mBAAmB;QACtB,OAAO,kBAAkB,CAAC,gBAAgB,CAAC;IAC/C,CAAC;IAED,gBAAsB,CAAC;;AArB3B,gDAsBC;AAhBmB,gCAAa,GAAuB,SAAS,CAAC;AAE9C,mCAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/UpdateGroupRequest.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n/**\n * Patch group request.\n */\nexport class UpdateGroupRequest {\n /**\n * Name.\n */\n 'name'?: string | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'name',\n baseName: 'name',\n type: 'string',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return UpdateGroupRequest.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAeO,MAAM,sBAAN,MAAyB;AAAA,EAiB5B,OAAO,sBAAsB;AACzB,WAAO,oBAAmB;AAAA,EAC9B;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAtBO,IAAM,qBAAN;AAAM,mBAMO,gBAAoC;AAN3C,mBAQO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/UserWithAddress.js b/build/models/UserWithAddress.js index 5e25331..1628214 100644 --- a/build/models/UserWithAddress.js +++ b/build/models/UserWithAddress.js @@ -1,49 +1,63 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.UserWithAddress = void 0; -class UserWithAddress { - static getAttributeTypeMap() { - return UserWithAddress.attributeTypeMap; - } - constructor() { } -} -exports.UserWithAddress = UserWithAddress; -UserWithAddress.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var UserWithAddress_exports = {}; +__export(UserWithAddress_exports, { + UserWithAddress: () => UserWithAddress +}); +module.exports = __toCommonJS(UserWithAddress_exports); +const _UserWithAddress = class { + static getAttributeTypeMap() { + return _UserWithAddress.attributeTypeMap; + } + constructor() { + } +}; +let UserWithAddress = _UserWithAddress; +UserWithAddress.discriminator = void 0; UserWithAddress.attributeTypeMap = [ - { - name: 'userId', - baseName: 'userId', - type: 'string', - format: 'uuid', - }, - { - name: 'email', - baseName: 'email', - type: 'string', - format: '', - }, - { - name: 'fullName', - baseName: 'fullName', - type: 'string', - format: '', - }, - { - name: 'address', - baseName: 'address', - type: 'Address', - format: '', - }, + { + name: "userId", + baseName: "userId", + type: "string", + format: "uuid" + }, + { + name: "email", + baseName: "email", + type: "string", + format: "" + }, + { + name: "fullName", + baseName: "fullName", + type: "string", + format: "" + }, + { + name: "address", + baseName: "address", + type: "Address", + format: "" + } ]; -//# sourceMappingURL=UserWithAddress.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + UserWithAddress +}); +//# sourceMappingURL=UserWithAddress.js.map diff --git a/build/models/UserWithAddress.js.map b/build/models/UserWithAddress.js.map index 45b06c2..30c73f5 100644 --- a/build/models/UserWithAddress.js.map +++ b/build/models/UserWithAddress.js.map @@ -1 +1,7 @@ -{"version":3,"file":"UserWithAddress.js","sourceRoot":"","sources":["../../src/models/UserWithAddress.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAIH,MAAa,eAAe;IAmCxB,MAAM,CAAC,mBAAmB;QACtB,OAAO,eAAe,CAAC,gBAAgB,CAAC;IAC5C,CAAC;IAED,gBAAsB,CAAC;;AAvC3B,0CAwCC;AAlCmB,6BAAa,GAAuB,SAAS,CAAC;AAE9C,gCAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,MAAM;KACjB;IACD;QACI,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/UserWithAddress.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { Address } from '../models/Address';\n\nexport class UserWithAddress {\n 'userId'?: string;\n 'email'?: string | null;\n 'fullName'?: string | null;\n 'address'?: Address;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'userId',\n baseName: 'userId',\n type: 'string',\n format: 'uuid',\n },\n {\n name: 'email',\n baseName: 'email',\n type: 'string',\n format: '',\n },\n {\n name: 'fullName',\n baseName: 'fullName',\n type: 'string',\n format: '',\n },\n {\n name: 'address',\n baseName: 'address',\n type: 'Address',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return UserWithAddress.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAcO,MAAM,mBAAN,MAAsB;AAAA,EAmCzB,OAAO,sBAAsB;AACzB,WAAO,iBAAgB;AAAA,EAC3B;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAxCO,IAAM,kBAAN;AAAM,gBAMO,gBAAoC;AAN3C,gBAQO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/V2DevicesDeviceIdSmartHomeCategoriesGet200Response.js b/build/models/V2DevicesDeviceIdSmartHomeCategoriesGet200Response.js index 5399ee3..fb31f9d 100644 --- a/build/models/V2DevicesDeviceIdSmartHomeCategoriesGet200Response.js +++ b/build/models/V2DevicesDeviceIdSmartHomeCategoriesGet200Response.js @@ -1,289 +1,303 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.V2DevicesDeviceIdSmartHomeCategoriesGet200Response = void 0; -class V2DevicesDeviceIdSmartHomeCategoriesGet200Response { - static getAttributeTypeMap() { - return V2DevicesDeviceIdSmartHomeCategoriesGet200Response.attributeTypeMap; - } - constructor() { } -} -exports.V2DevicesDeviceIdSmartHomeCategoriesGet200Response = V2DevicesDeviceIdSmartHomeCategoriesGet200Response; -V2DevicesDeviceIdSmartHomeCategoriesGet200Response.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var V2DevicesDeviceIdSmartHomeCategoriesGet200Response_exports = {}; +__export(V2DevicesDeviceIdSmartHomeCategoriesGet200Response_exports, { + V2DevicesDeviceIdSmartHomeCategoriesGet200Response: () => V2DevicesDeviceIdSmartHomeCategoriesGet200Response +}); +module.exports = __toCommonJS(V2DevicesDeviceIdSmartHomeCategoriesGet200Response_exports); +const _V2DevicesDeviceIdSmartHomeCategoriesGet200Response = class { + static getAttributeTypeMap() { + return _V2DevicesDeviceIdSmartHomeCategoriesGet200Response.attributeTypeMap; + } + constructor() { + } +}; +let V2DevicesDeviceIdSmartHomeCategoriesGet200Response = _V2DevicesDeviceIdSmartHomeCategoriesGet200Response; +V2DevicesDeviceIdSmartHomeCategoriesGet200Response.discriminator = void 0; V2DevicesDeviceIdSmartHomeCategoriesGet200Response.attributeTypeMap = [ - { - name: 'shEnergyMetered', - baseName: 'sh-energyMetered', - type: 'boolean', - format: '', - }, - { - name: 'shHwBoost', - baseName: 'sh-hwBoost', - type: 'boolean', - format: '', - }, - { - name: 'shHwTemp', - baseName: 'sh-hwTemp', - type: 'boolean', - format: '', - }, - { - name: 'shIndoorCO2', - baseName: 'sh-indoorCO2', - type: 'boolean', - format: '', - }, - { - name: 'shIndoorHumidity', - baseName: 'sh-indoorHumidity', - type: 'boolean', - format: '', - }, - { - name: 'shIndoorSpHeat', - baseName: 'sh-indoorSpHeat', - type: 'boolean', - format: '', - }, - { - name: 'shIndoorSpCool', - baseName: 'sh-indoorSpCool', - type: 'boolean', - format: '', - }, - { - name: 'shIndoorSpOffsHeat', - baseName: 'sh-indoorSpOffsHeat', - type: 'boolean', - format: '', - }, - { - name: 'shIndoorSpOffsCool', - baseName: 'sh-indoorSpOffsCool', - type: 'boolean', - format: '', - }, - { - name: 'shIndoorTemp', - baseName: 'sh-indoorTemp', - type: 'boolean', - format: '', - }, - { - name: 'shOutdoorTemp', - baseName: 'sh-outdoorTemp', - type: 'boolean', - format: '', - }, - { - name: 'shPoolTemp', - baseName: 'sh-poolTemp', - type: 'boolean', - format: '', - }, - { - name: 'shReturnTemp', - baseName: 'sh-returnTemp', - type: 'boolean', - format: '', - }, - { - name: 'shSmartMode', - baseName: 'sh-smartMode', - type: 'boolean', - format: '', - }, - { - name: 'shSolarEnergyProducedDay', - baseName: 'sh-solarEnergyProducedDay', - type: 'boolean', - format: '', - }, - { - name: 'shSolarEnergyProducedWeek', - baseName: 'sh-solarEnergyProducedWeek', - type: 'boolean', - format: '', - }, - { - name: 'shSolarEnergyProducedMonth', - baseName: 'sh-solarEnergyProducedMonth', - type: 'boolean', - format: '', - }, - { - name: 'shSolarEnergyProducedYear', - baseName: 'sh-solarEnergyProducedYear', - type: 'boolean', - format: '', - }, - { - name: 'shSolarEnergyProducedTotal', - baseName: 'sh-solarEnergyProducedTotal', - type: 'boolean', - format: '', - }, - { - name: 'shSupplyTemp', - baseName: 'sh-supplyTemp', - type: 'boolean', - format: '', - }, - { - name: 'shVentBoost', - baseName: 'sh-ventBoost', - type: 'boolean', - format: '', - }, - { - name: 'shVentMode', - baseName: 'sh-ventMode', - type: 'boolean', - format: '', - }, - { - name: 'shZones', - baseName: 'sh-zones', - type: 'boolean', - format: '', - }, - { - name: 'shZoneMode', - baseName: 'sh-zoneMode', - type: 'boolean', - format: '', - }, - { - name: 'shElectricPowerUsedCurrently', - baseName: 'sh-electricPowerUsedCurrently', - type: 'boolean', - format: '', - }, - { - name: 'shHwMode', - baseName: 'sh-hwMode', - type: 'boolean', - format: '', - }, - { - name: 'shIndoorCO2Sp', - baseName: 'sh-indoorCO2Sp', - type: 'boolean', - format: '', - }, - { - name: 'shIndoorHumiditySp', - baseName: 'sh-indoorHumiditySp', - type: 'boolean', - format: '', - }, - { - name: 'shPoolSp', - baseName: 'sh-poolSp', - type: 'boolean', - format: '', - }, - { - name: 'shSolarPowerAvailableCurrently', - baseName: 'sh-solarPowerAvailableCurrently', - type: 'boolean', - format: '', - }, - { - name: 'shElectricalPriceMode', - baseName: 'sh-electricalPriceMode', - type: 'boolean', - format: '', - }, - { - name: 'shElectricalPriceModeDuration', - baseName: 'sh-electricalPriceModeDuration', - type: 'boolean', - format: '', - }, - { - name: 'shIndoorHumidityMode', - baseName: 'sh-indoorHumidityMode', - type: 'boolean', - format: '', - }, - { - name: 'shIndoorDeHumiditySp', - baseName: 'sh-indoorDeHumiditySp', - type: 'boolean', - format: '', - }, - { - name: 'shFanMode', - baseName: 'sh-fanMode', - type: 'boolean', - format: '', - }, - { - name: 'shFanStatus', - baseName: 'sh-fanStatus', - type: 'boolean', - format: '', - }, - { - name: 'shEnergyStateOfCharge', - baseName: 'sh-energyStateOfCharge', - type: 'boolean', - format: '', - }, - { - name: 'shEnergyMeteredDay', - baseName: 'sh-energyMeteredDay', - type: 'boolean', - format: '', - }, - { - name: 'shEnergyMeteredMonth', - baseName: 'sh-energyMeteredMonth', - type: 'boolean', - format: '', - }, - { - name: 'shEnergyMeteredYear', - baseName: 'sh-energyMeteredYear', - type: 'boolean', - format: '', - }, - { - name: 'shElectricalPriceNextLow', - baseName: 'sh-electricalPriceNextLow', - type: 'boolean', - format: '', - }, - { - name: 'shElectricalPriceNextHigh', - baseName: 'sh-electricalPriceNextHigh', - type: 'boolean', - format: '', - }, - { - name: 'shHeatMode', - baseName: 'sh-heatMode', - type: 'boolean', - format: '', - }, - { - name: 'shHeatBoost', - baseName: 'sh-heatBoost', - type: 'boolean', - format: '', - }, + { + name: "shEnergyMetered", + baseName: "sh-energyMetered", + type: "boolean", + format: "" + }, + { + name: "shHwBoost", + baseName: "sh-hwBoost", + type: "boolean", + format: "" + }, + { + name: "shHwTemp", + baseName: "sh-hwTemp", + type: "boolean", + format: "" + }, + { + name: "shIndoorCO2", + baseName: "sh-indoorCO2", + type: "boolean", + format: "" + }, + { + name: "shIndoorHumidity", + baseName: "sh-indoorHumidity", + type: "boolean", + format: "" + }, + { + name: "shIndoorSpHeat", + baseName: "sh-indoorSpHeat", + type: "boolean", + format: "" + }, + { + name: "shIndoorSpCool", + baseName: "sh-indoorSpCool", + type: "boolean", + format: "" + }, + { + name: "shIndoorSpOffsHeat", + baseName: "sh-indoorSpOffsHeat", + type: "boolean", + format: "" + }, + { + name: "shIndoorSpOffsCool", + baseName: "sh-indoorSpOffsCool", + type: "boolean", + format: "" + }, + { + name: "shIndoorTemp", + baseName: "sh-indoorTemp", + type: "boolean", + format: "" + }, + { + name: "shOutdoorTemp", + baseName: "sh-outdoorTemp", + type: "boolean", + format: "" + }, + { + name: "shPoolTemp", + baseName: "sh-poolTemp", + type: "boolean", + format: "" + }, + { + name: "shReturnTemp", + baseName: "sh-returnTemp", + type: "boolean", + format: "" + }, + { + name: "shSmartMode", + baseName: "sh-smartMode", + type: "boolean", + format: "" + }, + { + name: "shSolarEnergyProducedDay", + baseName: "sh-solarEnergyProducedDay", + type: "boolean", + format: "" + }, + { + name: "shSolarEnergyProducedWeek", + baseName: "sh-solarEnergyProducedWeek", + type: "boolean", + format: "" + }, + { + name: "shSolarEnergyProducedMonth", + baseName: "sh-solarEnergyProducedMonth", + type: "boolean", + format: "" + }, + { + name: "shSolarEnergyProducedYear", + baseName: "sh-solarEnergyProducedYear", + type: "boolean", + format: "" + }, + { + name: "shSolarEnergyProducedTotal", + baseName: "sh-solarEnergyProducedTotal", + type: "boolean", + format: "" + }, + { + name: "shSupplyTemp", + baseName: "sh-supplyTemp", + type: "boolean", + format: "" + }, + { + name: "shVentBoost", + baseName: "sh-ventBoost", + type: "boolean", + format: "" + }, + { + name: "shVentMode", + baseName: "sh-ventMode", + type: "boolean", + format: "" + }, + { + name: "shZones", + baseName: "sh-zones", + type: "boolean", + format: "" + }, + { + name: "shZoneMode", + baseName: "sh-zoneMode", + type: "boolean", + format: "" + }, + { + name: "shElectricPowerUsedCurrently", + baseName: "sh-electricPowerUsedCurrently", + type: "boolean", + format: "" + }, + { + name: "shHwMode", + baseName: "sh-hwMode", + type: "boolean", + format: "" + }, + { + name: "shIndoorCO2Sp", + baseName: "sh-indoorCO2Sp", + type: "boolean", + format: "" + }, + { + name: "shIndoorHumiditySp", + baseName: "sh-indoorHumiditySp", + type: "boolean", + format: "" + }, + { + name: "shPoolSp", + baseName: "sh-poolSp", + type: "boolean", + format: "" + }, + { + name: "shSolarPowerAvailableCurrently", + baseName: "sh-solarPowerAvailableCurrently", + type: "boolean", + format: "" + }, + { + name: "shElectricalPriceMode", + baseName: "sh-electricalPriceMode", + type: "boolean", + format: "" + }, + { + name: "shElectricalPriceModeDuration", + baseName: "sh-electricalPriceModeDuration", + type: "boolean", + format: "" + }, + { + name: "shIndoorHumidityMode", + baseName: "sh-indoorHumidityMode", + type: "boolean", + format: "" + }, + { + name: "shIndoorDeHumiditySp", + baseName: "sh-indoorDeHumiditySp", + type: "boolean", + format: "" + }, + { + name: "shFanMode", + baseName: "sh-fanMode", + type: "boolean", + format: "" + }, + { + name: "shFanStatus", + baseName: "sh-fanStatus", + type: "boolean", + format: "" + }, + { + name: "shEnergyStateOfCharge", + baseName: "sh-energyStateOfCharge", + type: "boolean", + format: "" + }, + { + name: "shEnergyMeteredDay", + baseName: "sh-energyMeteredDay", + type: "boolean", + format: "" + }, + { + name: "shEnergyMeteredMonth", + baseName: "sh-energyMeteredMonth", + type: "boolean", + format: "" + }, + { + name: "shEnergyMeteredYear", + baseName: "sh-energyMeteredYear", + type: "boolean", + format: "" + }, + { + name: "shElectricalPriceNextLow", + baseName: "sh-electricalPriceNextLow", + type: "boolean", + format: "" + }, + { + name: "shElectricalPriceNextHigh", + baseName: "sh-electricalPriceNextHigh", + type: "boolean", + format: "" + }, + { + name: "shHeatMode", + baseName: "sh-heatMode", + type: "boolean", + format: "" + }, + { + name: "shHeatBoost", + baseName: "sh-heatBoost", + type: "boolean", + format: "" + } ]; -//# sourceMappingURL=V2DevicesDeviceIdSmartHomeCategoriesGet200Response.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + V2DevicesDeviceIdSmartHomeCategoriesGet200Response +}); +//# sourceMappingURL=V2DevicesDeviceIdSmartHomeCategoriesGet200Response.js.map diff --git a/build/models/V2DevicesDeviceIdSmartHomeCategoriesGet200Response.js.map b/build/models/V2DevicesDeviceIdSmartHomeCategoriesGet200Response.js.map index 51775fa..27659cc 100644 --- a/build/models/V2DevicesDeviceIdSmartHomeCategoriesGet200Response.js.map +++ b/build/models/V2DevicesDeviceIdSmartHomeCategoriesGet200Response.js.map @@ -1 +1,7 @@ -{"version":3,"file":"V2DevicesDeviceIdSmartHomeCategoriesGet200Response.js","sourceRoot":"","sources":["../../src/models/V2DevicesDeviceIdSmartHomeCategoriesGet200Response.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,MAAa,kDAAkD;IA2T3D,MAAM,CAAC,mBAAmB;QACtB,OAAO,kDAAkD,CAAC,gBAAgB,CAAC;IAC/E,CAAC;IAED,gBAAsB,CAAC;;AA/T3B,gHAgUC;AAlRmB,gEAAa,GAAuB,SAAS,CAAC;AAE9C,mEAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE,kBAAkB;QAC5B,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,WAAW;QACjB,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,WAAW;QACrB,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,cAAc;QACxB,IAA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MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,sBAAsB;QAC5B,QAAQ,EAAE,uBAAuB;QACjC,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,qBAAqB;QAC3B,QAAQ,EAAE,sBAAsB;QAChC,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,0BAA0B;QAChC,QAAQ,EAAE,2BAA2B;QACrC,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,2BAA2B;QACjC,QAAQ,EAAE,4BAA4B;QACtC,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,aAAa;QACvB,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,cAAc;QACxB,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/V2DevicesDeviceIdSmartHomeCategoriesGet200Response.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nexport class V2DevicesDeviceIdSmartHomeCategoriesGet200Response {\n 'shEnergyMetered'?: boolean;\n 'shHwBoost'?: boolean;\n 'shHwTemp'?: boolean;\n 'shIndoorCO2'?: boolean;\n 'shIndoorHumidity'?: boolean;\n 'shIndoorSpHeat'?: boolean;\n 'shIndoorSpCool'?: boolean;\n 'shIndoorSpOffsHeat'?: boolean;\n 'shIndoorSpOffsCool'?: boolean;\n 'shIndoorTemp'?: boolean;\n 'shOutdoorTemp'?: boolean;\n 'shPoolTemp'?: boolean;\n 'shReturnTemp'?: boolean;\n 'shSmartMode'?: boolean;\n 'shSolarEnergyProducedDay'?: boolean;\n 'shSolarEnergyProducedWeek'?: boolean;\n 'shSolarEnergyProducedMonth'?: boolean;\n 'shSolarEnergyProducedYear'?: boolean;\n 'shSolarEnergyProducedTotal'?: boolean;\n 'shSupplyTemp'?: boolean;\n 'shVentBoost'?: boolean;\n 'shVentMode'?: boolean;\n 'shZones'?: boolean;\n 'shZoneMode'?: boolean;\n 'shElectricPowerUsedCurrently'?: boolean;\n 'shHwMode'?: boolean;\n 'shIndoorCO2Sp'?: boolean;\n 'shIndoorHumiditySp'?: boolean;\n 'shPoolSp'?: boolean;\n 'shSolarPowerAvailableCurrently'?: boolean;\n 'shElectricalPriceMode'?: boolean;\n 'shElectricalPriceModeDuration'?: boolean;\n 'shIndoorHumidityMode'?: boolean;\n 'shIndoorDeHumiditySp'?: boolean;\n 'shFanMode'?: boolean;\n 'shFanStatus'?: boolean;\n 'shEnergyStateOfCharge'?: boolean;\n 'shEnergyMeteredDay'?: boolean;\n 'shEnergyMeteredMonth'?: boolean;\n 'shEnergyMeteredYear'?: boolean;\n 'shElectricalPriceNextLow'?: boolean;\n 'shElectricalPriceNextHigh'?: boolean;\n 'shHeatMode'?: boolean;\n 'shHeatBoost'?: boolean;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'shEnergyMetered',\n baseName: 'sh-energyMetered',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shHwBoost',\n baseName: 'sh-hwBoost',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shHwTemp',\n baseName: 'sh-hwTemp',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shIndoorCO2',\n baseName: 'sh-indoorCO2',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shIndoorHumidity',\n baseName: 'sh-indoorHumidity',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shIndoorSpHeat',\n baseName: 'sh-indoorSpHeat',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shIndoorSpCool',\n baseName: 'sh-indoorSpCool',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shIndoorSpOffsHeat',\n baseName: 'sh-indoorSpOffsHeat',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shIndoorSpOffsCool',\n baseName: 'sh-indoorSpOffsCool',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shIndoorTemp',\n baseName: 'sh-indoorTemp',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shOutdoorTemp',\n baseName: 'sh-outdoorTemp',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shPoolTemp',\n baseName: 'sh-poolTemp',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shReturnTemp',\n baseName: 'sh-returnTemp',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shSmartMode',\n baseName: 'sh-smartMode',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shSolarEnergyProducedDay',\n baseName: 'sh-solarEnergyProducedDay',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shSolarEnergyProducedWeek',\n baseName: 'sh-solarEnergyProducedWeek',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shSolarEnergyProducedMonth',\n baseName: 'sh-solarEnergyProducedMonth',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shSolarEnergyProducedYear',\n baseName: 'sh-solarEnergyProducedYear',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shSolarEnergyProducedTotal',\n baseName: 'sh-solarEnergyProducedTotal',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shSupplyTemp',\n baseName: 'sh-supplyTemp',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shVentBoost',\n baseName: 'sh-ventBoost',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shVentMode',\n baseName: 'sh-ventMode',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shZones',\n baseName: 'sh-zones',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shZoneMode',\n baseName: 'sh-zoneMode',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shElectricPowerUsedCurrently',\n baseName: 'sh-electricPowerUsedCurrently',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shHwMode',\n baseName: 'sh-hwMode',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shIndoorCO2Sp',\n baseName: 'sh-indoorCO2Sp',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shIndoorHumiditySp',\n baseName: 'sh-indoorHumiditySp',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shPoolSp',\n baseName: 'sh-poolSp',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shSolarPowerAvailableCurrently',\n baseName: 'sh-solarPowerAvailableCurrently',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shElectricalPriceMode',\n baseName: 'sh-electricalPriceMode',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shElectricalPriceModeDuration',\n baseName: 'sh-electricalPriceModeDuration',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shIndoorHumidityMode',\n baseName: 'sh-indoorHumidityMode',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shIndoorDeHumiditySp',\n baseName: 'sh-indoorDeHumiditySp',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shFanMode',\n baseName: 'sh-fanMode',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shFanStatus',\n baseName: 'sh-fanStatus',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shEnergyStateOfCharge',\n baseName: 'sh-energyStateOfCharge',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shEnergyMeteredDay',\n baseName: 'sh-energyMeteredDay',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shEnergyMeteredMonth',\n baseName: 'sh-energyMeteredMonth',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shEnergyMeteredYear',\n baseName: 'sh-energyMeteredYear',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shElectricalPriceNextLow',\n baseName: 'sh-electricalPriceNextLow',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shElectricalPriceNextHigh',\n baseName: 'sh-electricalPriceNextHigh',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shHeatMode',\n baseName: 'sh-heatMode',\n type: 'boolean',\n format: '',\n },\n {\n name: 'shHeatBoost',\n baseName: 'sh-heatBoost',\n type: 'boolean',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return V2DevicesDeviceIdSmartHomeCategoriesGet200Response.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAYO,MAAM,sDAAN,MAAyD;AAAA,EA2T5D,OAAO,sBAAsB;AACzB,WAAO,oDAAmD;AAAA,EAC9D;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAhUO,IAAM,qDAAN;AAAM,mDA8CO,gBAAoC;AA9C3C,mDAgDO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM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MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/VoucherManyRequest.js b/build/models/VoucherManyRequest.js index cc2fc90..f710aa0 100644 --- a/build/models/VoucherManyRequest.js +++ b/build/models/VoucherManyRequest.js @@ -1,46 +1,57 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.VoucherManyRequest = void 0; -/** - * Voucher single request. - */ -class VoucherManyRequest { - static getAttributeTypeMap() { - return VoucherManyRequest.attributeTypeMap; - } - constructor() { } -} -exports.VoucherManyRequest = VoucherManyRequest; -VoucherManyRequest.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var VoucherManyRequest_exports = {}; +__export(VoucherManyRequest_exports, { + VoucherManyRequest: () => VoucherManyRequest +}); +module.exports = __toCommonJS(VoucherManyRequest_exports); +const _VoucherManyRequest = class { + static getAttributeTypeMap() { + return _VoucherManyRequest.attributeTypeMap; + } + constructor() { + } +}; +let VoucherManyRequest = _VoucherManyRequest; +VoucherManyRequest.discriminator = void 0; VoucherManyRequest.attributeTypeMap = [ - { - name: 'numDays', - baseName: 'numDays', - type: 'number', - format: 'int32', - }, - { - name: 'voucherType', - baseName: 'voucherType', - type: 'VoucherType', - format: '', - }, - { - name: 'numVouchers', - baseName: 'numVouchers', - type: 'number', - format: 'int32', - }, + { + name: "numDays", + baseName: "numDays", + type: "number", + format: "int32" + }, + { + name: "voucherType", + baseName: "voucherType", + type: "VoucherType", + format: "" + }, + { + name: "numVouchers", + baseName: "numVouchers", + type: "number", + format: "int32" + } ]; -//# sourceMappingURL=VoucherManyRequest.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + VoucherManyRequest +}); +//# sourceMappingURL=VoucherManyRequest.js.map diff --git a/build/models/VoucherManyRequest.js.map b/build/models/VoucherManyRequest.js.map index 21d9759..13474da 100644 --- a/build/models/VoucherManyRequest.js.map +++ b/build/models/VoucherManyRequest.js.map @@ -1 +1,7 @@ -{"version":3,"file":"VoucherManyRequest.js","sourceRoot":"","sources":["../../src/models/VoucherManyRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAIH;;GAEG;AACH,MAAa,kBAAkB;IAkC3B,MAAM,CAAC,mBAAmB;QACtB,OAAO,kBAAkB,CAAC,gBAAgB,CAAC;IAC/C,CAAC;IAED,gBAAsB,CAAC;;AAtC3B,gDAuCC;AA5BmB,gCAAa,GAAuB,SAAS,CAAC;AAE9C,mCAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,OAAO;KAClB;IACD;QACI,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,aAAa;QACvB,IAAI,EAAE,aAAa;QACnB,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,aAAa;QACvB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,OAAO;KAClB;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/VoucherManyRequest.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { VoucherType } from '../models/VoucherType';\n\n/**\n * Voucher single request.\n */\nexport class VoucherManyRequest {\n /**\n * Num days.\n */\n 'numDays'?: number;\n 'voucherType'?: VoucherType;\n /**\n * Serial number.\n */\n 'numVouchers'?: number;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'numDays',\n baseName: 'numDays',\n type: 'number',\n format: 'int32',\n },\n {\n name: 'voucherType',\n baseName: 'voucherType',\n type: 'VoucherType',\n format: '',\n },\n {\n name: 'numVouchers',\n baseName: 'numVouchers',\n type: 'number',\n format: 'int32',\n },\n ];\n\n static getAttributeTypeMap() {\n return VoucherManyRequest.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBO,MAAM,sBAAN,MAAyB;AAAA,EAkC5B,OAAO,sBAAsB;AACzB,WAAO,oBAAmB;AAAA,EAC9B;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAvCO,IAAM,qBAAN;AAAM,mBAWO,gBAAoC;AAX3C,mBAaO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/VoucherSingleRequest.js b/build/models/VoucherSingleRequest.js index 7f3c528..4b3e252 100644 --- a/build/models/VoucherSingleRequest.js +++ b/build/models/VoucherSingleRequest.js @@ -1,46 +1,57 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.VoucherSingleRequest = void 0; -/** - * Voucher single request. - */ -class VoucherSingleRequest { - static getAttributeTypeMap() { - return VoucherSingleRequest.attributeTypeMap; - } - constructor() { } -} -exports.VoucherSingleRequest = VoucherSingleRequest; -VoucherSingleRequest.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var VoucherSingleRequest_exports = {}; +__export(VoucherSingleRequest_exports, { + VoucherSingleRequest: () => VoucherSingleRequest +}); +module.exports = __toCommonJS(VoucherSingleRequest_exports); +const _VoucherSingleRequest = class { + static getAttributeTypeMap() { + return _VoucherSingleRequest.attributeTypeMap; + } + constructor() { + } +}; +let VoucherSingleRequest = _VoucherSingleRequest; +VoucherSingleRequest.discriminator = void 0; VoucherSingleRequest.attributeTypeMap = [ - { - name: 'numDays', - baseName: 'numDays', - type: 'number', - format: 'int32', - }, - { - name: 'voucherType', - baseName: 'voucherType', - type: 'VoucherType', - format: '', - }, - { - name: 'serialNumber', - baseName: 'serialNumber', - type: 'string', - format: '', - }, + { + name: "numDays", + baseName: "numDays", + type: "number", + format: "int32" + }, + { + name: "voucherType", + baseName: "voucherType", + type: "VoucherType", + format: "" + }, + { + name: "serialNumber", + baseName: "serialNumber", + type: "string", + format: "" + } ]; -//# sourceMappingURL=VoucherSingleRequest.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + VoucherSingleRequest +}); +//# sourceMappingURL=VoucherSingleRequest.js.map diff --git a/build/models/VoucherSingleRequest.js.map b/build/models/VoucherSingleRequest.js.map index fac7e55..d87ce17 100644 --- a/build/models/VoucherSingleRequest.js.map +++ b/build/models/VoucherSingleRequest.js.map @@ -1 +1,7 @@ -{"version":3,"file":"VoucherSingleRequest.js","sourceRoot":"","sources":["../../src/models/VoucherSingleRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAIH;;GAEG;AACH,MAAa,oBAAoB;IAkC7B,MAAM,CAAC,mBAAmB;QACtB,OAAO,oBAAoB,CAAC,gBAAgB,CAAC;IACjD,CAAC;IAED,gBAAsB,CAAC;;AAtC3B,oDAuCC;AA5BmB,kCAAa,GAAuB,SAAS,CAAC;AAE9C,qCAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS;QACnB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,OAAO;KAClB;IACD;QACI,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,aAAa;QACvB,IAAI,EAAE,aAAa;QACnB,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,cAAc;QACxB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/VoucherSingleRequest.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport { VoucherType } from '../models/VoucherType';\n\n/**\n * Voucher single request.\n */\nexport class VoucherSingleRequest {\n /**\n * Num days.\n */\n 'numDays'?: number;\n 'voucherType'?: VoucherType;\n /**\n * Serial number.\n */\n 'serialNumber'?: string | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'numDays',\n baseName: 'numDays',\n type: 'number',\n format: 'int32',\n },\n {\n name: 'voucherType',\n baseName: 'voucherType',\n type: 'VoucherType',\n format: '',\n },\n {\n name: 'serialNumber',\n baseName: 'serialNumber',\n type: 'string',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return VoucherSingleRequest.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBO,MAAM,wBAAN,MAA2B;AAAA,EAkC9B,OAAO,sBAAsB;AACzB,WAAO,sBAAqB;AAAA,EAChC;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAvCO,IAAM,uBAAN;AAAM,qBAWO,gBAAoC;AAX3C,qBAaO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/VoucherType.js b/build/models/VoucherType.js index ce8859f..5eb37ea 100644 --- a/build/models/VoucherType.js +++ b/build/models/VoucherType.js @@ -1,24 +1,34 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.VoucherType = void 0; -/** - * Voucher types. - */ -var VoucherType; -(function (VoucherType) { - VoucherType[VoucherType["NUMBER_0"] = 0] = "NUMBER_0"; - VoucherType[VoucherType["NUMBER_1"] = 1] = "NUMBER_1"; - VoucherType[VoucherType["NUMBER_2"] = 2] = "NUMBER_2"; -})(VoucherType || (exports.VoucherType = VoucherType = {})); -//# sourceMappingURL=VoucherType.js.map \ No newline at end of file +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var VoucherType_exports = {}; +__export(VoucherType_exports, { + VoucherType: () => VoucherType +}); +module.exports = __toCommonJS(VoucherType_exports); +var VoucherType = /* @__PURE__ */ ((VoucherType2) => { + VoucherType2[VoucherType2["NUMBER_0"] = 0] = "NUMBER_0"; + VoucherType2[VoucherType2["NUMBER_1"] = 1] = "NUMBER_1"; + VoucherType2[VoucherType2["NUMBER_2"] = 2] = "NUMBER_2"; + return VoucherType2; +})(VoucherType || {}); +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + VoucherType +}); +//# sourceMappingURL=VoucherType.js.map diff --git a/build/models/VoucherType.js.map b/build/models/VoucherType.js.map index ffae6c8..1e7dcf3 100644 --- a/build/models/VoucherType.js.map +++ b/build/models/VoucherType.js.map @@ -1 +1,7 @@ -{"version":3,"file":"VoucherType.js","sourceRoot":"","sources":["../../src/models/VoucherType.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH;;GAEG;AACH,IAAY,WAIX;AAJD,WAAY,WAAW;IACnB,qDAAY,CAAA;IACZ,qDAAY,CAAA;IACZ,qDAAY,CAAA;AAChB,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/VoucherType.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n/**\n * Voucher types.\n */\nexport enum VoucherType {\n NUMBER_0 = 0,\n NUMBER_1 = 1,\n NUMBER_2 = 2,\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAeO,IAAK,cAAL,kBAAKA,iBAAL;AACH,EAAAA,0BAAA,cAAW,KAAX;AACA,EAAAA,0BAAA,cAAW,KAAX;AACA,EAAAA,0BAAA,cAAW,KAAX;AAHQ,SAAAA;AAAA,GAAA;", + "names": ["VoucherType"] +} diff --git a/build/models/ZonePatchRequest.js b/build/models/ZonePatchRequest.js index cbf430f..fc66d9f 100644 --- a/build/models/ZonePatchRequest.js +++ b/build/models/ZonePatchRequest.js @@ -1,43 +1,57 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.ZonePatchRequest = void 0; -class ZonePatchRequest { - static getAttributeTypeMap() { - return ZonePatchRequest.attributeTypeMap; - } - constructor() { } -} -exports.ZonePatchRequest = ZonePatchRequest; -ZonePatchRequest.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var ZonePatchRequest_exports = {}; +__export(ZonePatchRequest_exports, { + ZonePatchRequest: () => ZonePatchRequest +}); +module.exports = __toCommonJS(ZonePatchRequest_exports); +const _ZonePatchRequest = class { + static getAttributeTypeMap() { + return _ZonePatchRequest.attributeTypeMap; + } + constructor() { + } +}; +let ZonePatchRequest = _ZonePatchRequest; +ZonePatchRequest.discriminator = void 0; ZonePatchRequest.attributeTypeMap = [ - { - name: 'setpointHeat', - baseName: 'setpointHeat', - type: 'number', - format: 'double', - }, - { - name: 'setpointCool', - baseName: 'setpointCool', - type: 'number', - format: 'double', - }, - { - name: 'mode', - baseName: 'mode', - type: 'string', - format: '', - }, + { + name: "setpointHeat", + baseName: "setpointHeat", + type: "number", + format: "double" + }, + { + name: "setpointCool", + baseName: "setpointCool", + type: "number", + format: "double" + }, + { + name: "mode", + baseName: "mode", + type: "string", + format: "" + } ]; -//# sourceMappingURL=ZonePatchRequest.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + ZonePatchRequest +}); +//# sourceMappingURL=ZonePatchRequest.js.map diff --git a/build/models/ZonePatchRequest.js.map b/build/models/ZonePatchRequest.js.map index 71382f7..77ba2ce 100644 --- a/build/models/ZonePatchRequest.js.map +++ b/build/models/ZonePatchRequest.js.map @@ -1 +1,7 @@ -{"version":3,"file":"ZonePatchRequest.js","sourceRoot":"","sources":["../../src/models/ZonePatchRequest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,MAAa,gBAAgB;IA4BzB,MAAM,CAAC,mBAAmB;QACtB,OAAO,gBAAgB,CAAC,gBAAgB,CAAC;IAC7C,CAAC;IAED,gBAAsB,CAAC;;AAhC3B,4CAiCC;AA5BmB,8BAAa,GAAuB,SAAS,CAAC;AAE9C,iCAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,cAAc;QACxB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,QAAQ;KACnB;IACD;QACI,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,cAAc;QACxB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,QAAQ;KACnB;IACD;QACI,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/ZonePatchRequest.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nexport class ZonePatchRequest {\n 'setpointHeat'?: number | null;\n 'setpointCool'?: number | null;\n 'mode'?: string | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'setpointHeat',\n baseName: 'setpointHeat',\n type: 'number',\n format: 'double',\n },\n {\n name: 'setpointCool',\n baseName: 'setpointCool',\n type: 'number',\n format: 'double',\n },\n {\n name: 'mode',\n baseName: 'mode',\n type: 'string',\n format: '',\n },\n ];\n\n static getAttributeTypeMap() {\n return ZonePatchRequest.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAYO,MAAM,oBAAN,MAAuB;AAAA,EA4B1B,OAAO,sBAAsB;AACzB,WAAO,kBAAiB;AAAA,EAC5B;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAjCO,IAAM,mBAAN;AAAM,iBAKO,gBAAoC;AAL3C,iBAOO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/ZoneResponse.js b/build/models/ZoneResponse.js index 7e4b81d..071c991 100644 --- a/build/models/ZoneResponse.js +++ b/build/models/ZoneResponse.js @@ -1,109 +1,123 @@ "use strict"; -/** - * myUplink Public API - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * OpenAPI spec version: v2 - * - * - * 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.ZoneResponse = void 0; -class ZoneResponse { - static getAttributeTypeMap() { - return ZoneResponse.attributeTypeMap; - } - constructor() { } -} -exports.ZoneResponse = ZoneResponse; -ZoneResponse.discriminator = undefined; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var ZoneResponse_exports = {}; +__export(ZoneResponse_exports, { + ZoneResponse: () => ZoneResponse +}); +module.exports = __toCommonJS(ZoneResponse_exports); +const _ZoneResponse = class { + static getAttributeTypeMap() { + return _ZoneResponse.attributeTypeMap; + } + constructor() { + } +}; +let ZoneResponse = _ZoneResponse; +ZoneResponse.discriminator = void 0; ZoneResponse.attributeTypeMap = [ - { - name: 'zoneId', - baseName: 'zoneId', - type: 'string', - format: '', - }, - { - name: 'name', - baseName: 'name', - type: 'string', - format: '', - }, - { - name: 'commandOnly', - baseName: 'commandOnly', - type: 'boolean', - format: '', - }, - { - name: 'supportedModes', - baseName: 'supportedModes', - type: 'string', - format: '', - }, - { - name: 'mode', - baseName: 'mode', - type: 'string', - format: '', - }, - { - name: 'temperature', - baseName: 'temperature', - type: 'number', - format: 'double', - }, - { - name: 'setpoint', - baseName: 'setpoint', - type: 'number', - format: 'double', - }, - { - name: 'setpointHeat', - baseName: 'setpointHeat', - type: 'number', - format: 'double', - }, - { - name: 'setpointCool', - baseName: 'setpointCool', - type: 'number', - format: 'double', - }, - { - name: 'setpointRangeMin', - baseName: 'setpointRangeMin', - type: 'number', - format: 'int32', - }, - { - name: 'setpointRangeMax', - baseName: 'setpointRangeMax', - type: 'number', - format: 'int32', - }, - { - name: 'isCelsius', - baseName: 'isCelsius', - type: 'boolean', - format: '', - }, - { - name: 'indoorCo2', - baseName: 'indoorCo2', - type: 'number', - format: 'int32', - }, - { - name: 'indoorHumidity', - baseName: 'indoorHumidity', - type: 'number', - format: 'double', - }, + { + name: "zoneId", + baseName: "zoneId", + type: "string", + format: "" + }, + { + name: "name", + baseName: "name", + type: "string", + format: "" + }, + { + name: "commandOnly", + baseName: "commandOnly", + type: "boolean", + format: "" + }, + { + name: "supportedModes", + baseName: "supportedModes", + type: "string", + format: "" + }, + { + name: "mode", + baseName: "mode", + type: "string", + format: "" + }, + { + name: "temperature", + baseName: "temperature", + type: "number", + format: "double" + }, + { + name: "setpoint", + baseName: "setpoint", + type: "number", + format: "double" + }, + { + name: "setpointHeat", + baseName: "setpointHeat", + type: "number", + format: "double" + }, + { + name: "setpointCool", + baseName: "setpointCool", + type: "number", + format: "double" + }, + { + name: "setpointRangeMin", + baseName: "setpointRangeMin", + type: "number", + format: "int32" + }, + { + name: "setpointRangeMax", + baseName: "setpointRangeMax", + type: "number", + format: "int32" + }, + { + name: "isCelsius", + baseName: "isCelsius", + type: "boolean", + format: "" + }, + { + name: "indoorCo2", + baseName: "indoorCo2", + type: "number", + format: "int32" + }, + { + name: "indoorHumidity", + baseName: "indoorHumidity", + type: "number", + format: "double" + } ]; -//# sourceMappingURL=ZoneResponse.js.map \ No newline at end of file +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + ZoneResponse +}); +//# sourceMappingURL=ZoneResponse.js.map diff --git a/build/models/ZoneResponse.js.map b/build/models/ZoneResponse.js.map index 359b813..0a5c99f 100644 --- a/build/models/ZoneResponse.js.map +++ b/build/models/ZoneResponse.js.map @@ -1 +1,7 @@ -{"version":3,"file":"ZoneResponse.js","sourceRoot":"","sources":["../../src/models/ZoneResponse.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAEH,MAAa,YAAY;IAmJrB,MAAM,CAAC,mBAAmB;QACtB,OAAO,YAAY,CAAC,gBAAgB,CAAC;IACzC,CAAC;IAED,gBAAsB,CAAC;;AAvJ3B,oCAwJC;AA9FmB,0BAAa,GAAuB,SAAS,CAAC;AAE9C,6BAAgB,GAA4E;IACxG;QACI,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACb;IACD;QACI,IAAI,EAAE,MAAM;QACZ,QAAQ,EA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MAAM,EAAE,OAAO;KAClB;IACD;QACI,IAAI,EAAE,gBAAgB;QACtB,QAAQ,EAAE,gBAAgB;QAC1B,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,QAAQ;KACnB;CACJ,CAAC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/ZoneResponse.ts"], + "sourcesContent": ["/**\n * myUplink Public API\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * OpenAPI spec version: v2\n *\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nexport class ZoneResponse {\n /**\n * sh-zone\\'s parameter id.\n */\n 'zoneId'?: string | null;\n /**\n * sh-zone\\'s parameter name.\n */\n 'name'?: string | null;\n /**\n * If true, zone is command-only and no temperature readings are available. Setpoint will be an unspecified value (not degrees).\n */\n 'commandOnly'?: boolean;\n /**\n * sh-zone\\'s supported modes.\n */\n 'supportedModes'?: string | null;\n /**\n * Sh-zone\\'s current mode.\n */\n 'mode'?: string | null;\n /**\n * Current temperature in target unit.\n */\n 'temperature'?: number | null;\n /**\n * Target temperature in target unit.\n */\n 'setpoint'?: number | null;\n /**\n * Heating setpoint current value.\n */\n 'setpointHeat'?: number | null;\n /**\n * Cooling setpoint current value.\n */\n 'setpointCool'?: number | null;\n /**\n * Minimum temperature range.\n */\n 'setpointRangeMin'?: number | null;\n /**\n * Maximum temperature range.\n */\n 'setpointRangeMax'?: number | null;\n /**\n * Specified temperature unit in haystack. If \\\"isCelsius\\\" is false then all temperatures are in Fahrenheit. Otherwies it is in Celsius.\n */\n 'isCelsius'?: boolean;\n /**\n * Indoor CO2 levels (0-40000ppm)\n */\n 'indoorCo2'?: number | null;\n /**\n * Indoor humidity (0-100%RH)\n */\n 'indoorHumidity'?: number | null;\n\n static readonly discriminator: string | undefined = undefined;\n\n static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string }> = [\n {\n name: 'zoneId',\n baseName: 'zoneId',\n type: 'string',\n format: '',\n },\n {\n name: 'name',\n baseName: 'name',\n type: 'string',\n format: '',\n },\n {\n name: 'commandOnly',\n baseName: 'commandOnly',\n type: 'boolean',\n format: '',\n },\n {\n name: 'supportedModes',\n baseName: 'supportedModes',\n type: 'string',\n format: '',\n },\n {\n name: 'mode',\n baseName: 'mode',\n type: 'string',\n format: '',\n },\n {\n name: 'temperature',\n baseName: 'temperature',\n type: 'number',\n format: 'double',\n },\n {\n name: 'setpoint',\n baseName: 'setpoint',\n type: 'number',\n format: 'double',\n },\n {\n name: 'setpointHeat',\n baseName: 'setpointHeat',\n type: 'number',\n format: 'double',\n },\n {\n name: 'setpointCool',\n baseName: 'setpointCool',\n type: 'number',\n format: 'double',\n },\n {\n name: 'setpointRangeMin',\n baseName: 'setpointRangeMin',\n type: 'number',\n format: 'int32',\n },\n {\n name: 'setpointRangeMax',\n baseName: 'setpointRangeMax',\n type: 'number',\n format: 'int32',\n },\n {\n name: 'isCelsius',\n baseName: 'isCelsius',\n type: 'boolean',\n format: '',\n },\n {\n name: 'indoorCo2',\n baseName: 'indoorCo2',\n type: 'number',\n format: 'int32',\n },\n {\n name: 'indoorHumidity',\n baseName: 'indoorHumidity',\n type: 'number',\n format: 'double',\n },\n ];\n\n static getAttributeTypeMap() {\n return ZoneResponse.attributeTypeMap;\n }\n\n public constructor() {}\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAYO,MAAM,gBAAN,MAAmB;AAAA,EAmJtB,OAAO,sBAAsB;AACzB,WAAO,cAAa;AAAA,EACxB;AAAA,EAEO,cAAc;AAAA,EAAC;AAC1B;AAxJO,IAAM,eAAN;AAAM,aA0DO,gBAAoC;AA1D3C,aA4DO,mBAA4F;AAAA,EACxG;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,UAAU;AAAA,IACV,MAAM;AAAA,IACN,QAAQ;AAAA,EACZ;AACJ;", + "names": [] +} diff --git a/build/models/all.js b/build/models/all.js index 49cc260..5205a13 100644 --- a/build/models/all.js +++ b/build/models/all.js @@ -1,80 +1,81 @@ "use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; }; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("../models/Address"), exports); -__exportStar(require("../models/AddressResponseModel"), exports); -__exportStar(require("../models/AggregationMethod"), exports); -__exportStar(require("../models/AggregationUnit"), exports); -__exportStar(require("../models/AidMode"), exports); -__exportStar(require("../models/AidModeResponseModel"), exports); -__exportStar(require("../models/Alarm"), exports); -__exportStar(require("../models/AlarmSeverity"), exports); -__exportStar(require("../models/AlarmStatus"), exports); -__exportStar(require("../models/AlarmsPaged"), exports); -__exportStar(require("../models/AvailableMethods"), exports); -__exportStar(require("../models/CloudToDeviceMethodResult"), exports); -__exportStar(require("../models/Country"), exports); -__exportStar(require("../models/Curve"), exports); -__exportStar(require("../models/DataPoint"), exports); -__exportStar(require("../models/DeviceCategoriesModel"), exports); -__exportStar(require("../models/DeviceCategory"), exports); -__exportStar(require("../models/DeviceCategoryModel"), exports); -__exportStar(require("../models/DeviceConnectionState"), exports); -__exportStar(require("../models/DeviceFirmwareInfoResponse"), exports); -__exportStar(require("../models/DeviceInfoResponseModel"), exports); -__exportStar(require("../models/DeviceInfoResponseModelPagedResult"), exports); -__exportStar(require("../models/DeviceInfoSyncResponseModel"), exports); -__exportStar(require("../models/DeviceParameterData"), exports); -__exportStar(require("../models/DevicePremiumResponse"), exports); -__exportStar(require("../models/DeviceResponseModel"), exports); -__exportStar(require("../models/EnumValues"), exports); -__exportStar(require("../models/FirmwareResponseModel"), exports); -__exportStar(require("../models/GroupedDeviceParameterData"), exports); -__exportStar(require("../models/LimitedUserProfile"), exports); -__exportStar(require("../models/PagedSystemResult"), exports); -__exportStar(require("../models/ParameterData"), exports); -__exportStar(require("../models/ParameterDetail"), exports); -__exportStar(require("../models/PatchSystemModel"), exports); -__exportStar(require("../models/PremiumFeatureResponseModel"), exports); -__exportStar(require("../models/PremiumFeatures"), exports); -__exportStar(require("../models/Product"), exports); -__exportStar(require("../models/ProductRegistrationAddress"), exports); -__exportStar(require("../models/ProductRegistrationResponse"), exports); -__exportStar(require("../models/ProductRegistrationResponseWithAddress"), exports); -__exportStar(require("../models/ProductResponseModel"), exports); -__exportStar(require("../models/Properties"), exports); -__exportStar(require("../models/Reported"), exports); -__exportStar(require("../models/ReportedFirmware"), exports); -__exportStar(require("../models/SearchGroupSSG"), exports); -__exportStar(require("../models/SecurityLevel"), exports); -__exportStar(require("../models/SmartHomeModeModel"), exports); -__exportStar(require("../models/SmartMode"), exports); -__exportStar(require("../models/SpotPriceDeliveryModel"), exports); -__exportStar(require("../models/SsqGroupDevice"), exports); -__exportStar(require("../models/Status"), exports); -__exportStar(require("../models/StoreSet"), exports); -__exportStar(require("../models/StoreSetEntry"), exports); -__exportStar(require("../models/SystemDevice"), exports); -__exportStar(require("../models/SystemWithDevices"), exports); -__exportStar(require("../models/UpdateGroupRequest"), exports); -__exportStar(require("../models/UserWithAddress"), exports); -__exportStar(require("../models/V2DevicesDeviceIdSmartHomeCategoriesGet200Response"), exports); -__exportStar(require("../models/VoucherManyRequest"), exports); -__exportStar(require("../models/VoucherSingleRequest"), exports); -__exportStar(require("../models/VoucherType"), exports); -__exportStar(require("../models/ZonePatchRequest"), exports); -__exportStar(require("../models/ZoneResponse"), exports); -//# sourceMappingURL=all.js.map \ No newline at end of file +var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default")); +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var all_exports = {}; +module.exports = __toCommonJS(all_exports); +__reExport(all_exports, require("../models/Address"), module.exports); +__reExport(all_exports, require("../models/AddressResponseModel"), module.exports); +__reExport(all_exports, require("../models/AggregationMethod"), module.exports); +__reExport(all_exports, require("../models/AggregationUnit"), module.exports); +__reExport(all_exports, require("../models/AidMode"), module.exports); +__reExport(all_exports, require("../models/AidModeResponseModel"), module.exports); +__reExport(all_exports, require("../models/Alarm"), module.exports); +__reExport(all_exports, require("../models/AlarmSeverity"), module.exports); +__reExport(all_exports, require("../models/AlarmStatus"), module.exports); +__reExport(all_exports, require("../models/AlarmsPaged"), module.exports); +__reExport(all_exports, require("../models/AvailableMethods"), module.exports); +__reExport(all_exports, require("../models/CloudToDeviceMethodResult"), module.exports); +__reExport(all_exports, require("../models/Country"), module.exports); +__reExport(all_exports, require("../models/Curve"), module.exports); +__reExport(all_exports, require("../models/DataPoint"), module.exports); +__reExport(all_exports, require("../models/DeviceCategoriesModel"), module.exports); +__reExport(all_exports, require("../models/DeviceCategory"), module.exports); +__reExport(all_exports, require("../models/DeviceCategoryModel"), module.exports); +__reExport(all_exports, require("../models/DeviceConnectionState"), module.exports); +__reExport(all_exports, require("../models/DeviceFirmwareInfoResponse"), module.exports); +__reExport(all_exports, require("../models/DeviceInfoResponseModel"), module.exports); +__reExport(all_exports, require("../models/DeviceInfoResponseModelPagedResult"), module.exports); +__reExport(all_exports, require("../models/DeviceInfoSyncResponseModel"), module.exports); +__reExport(all_exports, require("../models/DeviceParameterData"), module.exports); +__reExport(all_exports, require("../models/DevicePremiumResponse"), module.exports); +__reExport(all_exports, require("../models/DeviceResponseModel"), module.exports); +__reExport(all_exports, require("../models/EnumValues"), module.exports); +__reExport(all_exports, require("../models/FirmwareResponseModel"), module.exports); +__reExport(all_exports, require("../models/GroupedDeviceParameterData"), module.exports); +__reExport(all_exports, require("../models/LimitedUserProfile"), module.exports); +__reExport(all_exports, require("../models/PagedSystemResult"), module.exports); +__reExport(all_exports, require("../models/ParameterData"), module.exports); +__reExport(all_exports, require("../models/ParameterDetail"), module.exports); +__reExport(all_exports, require("../models/PatchSystemModel"), module.exports); +__reExport(all_exports, require("../models/PremiumFeatureResponseModel"), module.exports); +__reExport(all_exports, require("../models/PremiumFeatures"), module.exports); +__reExport(all_exports, require("../models/Product"), module.exports); +__reExport(all_exports, require("../models/ProductRegistrationAddress"), module.exports); +__reExport(all_exports, require("../models/ProductRegistrationResponse"), module.exports); +__reExport(all_exports, require("../models/ProductRegistrationResponseWithAddress"), module.exports); +__reExport(all_exports, require("../models/ProductResponseModel"), module.exports); +__reExport(all_exports, require("../models/Properties"), module.exports); +__reExport(all_exports, require("../models/Reported"), module.exports); +__reExport(all_exports, require("../models/ReportedFirmware"), module.exports); +__reExport(all_exports, require("../models/SearchGroupSSG"), module.exports); +__reExport(all_exports, require("../models/SecurityLevel"), module.exports); +__reExport(all_exports, require("../models/SmartHomeModeModel"), module.exports); +__reExport(all_exports, require("../models/SmartMode"), module.exports); +__reExport(all_exports, require("../models/SpotPriceDeliveryModel"), module.exports); +__reExport(all_exports, require("../models/SsqGroupDevice"), module.exports); +__reExport(all_exports, require("../models/Status"), module.exports); +__reExport(all_exports, require("../models/StoreSet"), module.exports); +__reExport(all_exports, require("../models/StoreSetEntry"), module.exports); +__reExport(all_exports, require("../models/SystemDevice"), module.exports); +__reExport(all_exports, require("../models/SystemWithDevices"), module.exports); +__reExport(all_exports, require("../models/UpdateGroupRequest"), module.exports); +__reExport(all_exports, require("../models/UserWithAddress"), module.exports); +__reExport(all_exports, require("../models/V2DevicesDeviceIdSmartHomeCategoriesGet200Response"), module.exports); +__reExport(all_exports, require("../models/VoucherManyRequest"), module.exports); +__reExport(all_exports, require("../models/VoucherSingleRequest"), module.exports); +__reExport(all_exports, require("../models/VoucherType"), module.exports); +__reExport(all_exports, require("../models/ZonePatchRequest"), module.exports); +__reExport(all_exports, require("../models/ZoneResponse"), module.exports); +//# sourceMappingURL=all.js.map diff --git a/build/models/all.js.map b/build/models/all.js.map index ca0ff4d..7b2d1a8 100644 --- a/build/models/all.js.map +++ b/build/models/all.js.map @@ -1 +1,7 @@ -{"version":3,"file":"all.js","sourceRoot":"","sources":["../../src/models/all.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,iEAA+C;AAC/C,8DAA4C;AAC5C,4DAA0C;AAC1C,oDAAkC;AAClC,iEAA+C;AAC/C,kDAAgC;AAChC,0DAAwC;AACxC,wDAAsC;AACtC,wDAAsC;AACtC,6DAA2C;AAC3C,sEAAoD;AACpD,oDAAkC;AAClC,kDAAgC;AAChC,sDAAoC;AACpC,kEAAgD;AAChD,2DAAyC;AACzC,gEAA8C;AAC9C,kEAAgD;AAChD,uEAAqD;AACrD,oEAAkD;AAClD,+EAA6D;AAC7D,wEAAsD;AACtD,gEAA8C;AAC9C,kEAAgD;AAChD,gEAA8C;AAC9C,uDAAqC;AACrC,kEAAgD;AAChD,uEAAqD;AACrD,+DAA6C;AAC7C,8DAA4C;AAC5C,0DAAwC;AACxC,4DAA0C;AAC1C,6DAA2C;AAC3C,wEAAsD;AACtD,4DAA0C;AAC1C,oDAAkC;AAClC,uEAAqD;AACrD,wEAAsD;AACtD,mFAAiE;AACjE,iEAA+C;AAC/C,uDAAqC;AACrC,qDAAmC;AACnC,6DAA2C;AAC3C,2DAAyC;AACzC,0DAAwC;AACxC,+DAA6C;AAC7C,sDAAoC;AACpC,mEAAiD;AACjD,2DAAyC;AACzC,mDAAiC;AACjC,qDAAmC;AACnC,0DAAwC;AACxC,yDAAuC;AACvC,8DAA4C;AAC5C,+DAA6C;AAC7C,4DAA0C;AAC1C,+FAA6E;AAC7E,+DAA6C;AAC7C,iEAA+C;AAC/C,wDAAsC;AACtC,6DAA2C;AAC3C,yDAAuC"} \ No newline at end of file +{ + "version": 3, + "sources": ["../../src/models/all.ts"], + "sourcesContent": ["export * from '../models/Address';\nexport * from '../models/AddressResponseModel';\nexport * from '../models/AggregationMethod';\nexport * from '../models/AggregationUnit';\nexport * from '../models/AidMode';\nexport * from '../models/AidModeResponseModel';\nexport * from '../models/Alarm';\nexport * from '../models/AlarmSeverity';\nexport * from '../models/AlarmStatus';\nexport * from '../models/AlarmsPaged';\nexport * from '../models/AvailableMethods';\nexport * from '../models/CloudToDeviceMethodResult';\nexport * from '../models/Country';\nexport * from '../models/Curve';\nexport * from '../models/DataPoint';\nexport * from '../models/DeviceCategoriesModel';\nexport * from '../models/DeviceCategory';\nexport * from '../models/DeviceCategoryModel';\nexport * from '../models/DeviceConnectionState';\nexport * from '../models/DeviceFirmwareInfoResponse';\nexport * from '../models/DeviceInfoResponseModel';\nexport * from '../models/DeviceInfoResponseModelPagedResult';\nexport * from '../models/DeviceInfoSyncResponseModel';\nexport * from '../models/DeviceParameterData';\nexport * from '../models/DevicePremiumResponse';\nexport * from '../models/DeviceResponseModel';\nexport * from '../models/EnumValues';\nexport * from '../models/FirmwareResponseModel';\nexport * from '../models/GroupedDeviceParameterData';\nexport * from '../models/LimitedUserProfile';\nexport * from '../models/PagedSystemResult';\nexport * from '../models/ParameterData';\nexport * from '../models/ParameterDetail';\nexport * from '../models/PatchSystemModel';\nexport * from '../models/PremiumFeatureResponseModel';\nexport * from '../models/PremiumFeatures';\nexport * from '../models/Product';\nexport * from '../models/ProductRegistrationAddress';\nexport * from '../models/ProductRegistrationResponse';\nexport * from '../models/ProductRegistrationResponseWithAddress';\nexport * from '../models/ProductResponseModel';\nexport * from '../models/Properties';\nexport * from '../models/Reported';\nexport * from '../models/ReportedFirmware';\nexport * from '../models/SearchGroupSSG';\nexport * from '../models/SecurityLevel';\nexport * from '../models/SmartHomeModeModel';\nexport * from '../models/SmartMode';\nexport * from '../models/SpotPriceDeliveryModel';\nexport * from '../models/SsqGroupDevice';\nexport * from '../models/Status';\nexport * from '../models/StoreSet';\nexport * from '../models/StoreSetEntry';\nexport * from '../models/SystemDevice';\nexport * from '../models/SystemWithDevices';\nexport * from '../models/UpdateGroupRequest';\nexport * from '../models/UserWithAddress';\nexport * from '../models/V2DevicesDeviceIdSmartHomeCategoriesGet200Response';\nexport * from '../models/VoucherManyRequest';\nexport * from '../models/VoucherSingleRequest';\nexport * from '../models/VoucherType';\nexport * from '../models/ZonePatchRequest';\nexport * from '../models/ZoneResponse';\n"], + "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,8BAAd;AACA,wBAAc,2CADd;AAEA,wBAAc,wCAFd;AAGA,wBAAc,sCAHd;AAIA,wBAAc,8BAJd;AAKA,wBAAc,2CALd;AAMA,wBAAc,4BANd;AAOA,wBAAc,oCAPd;AAQA,wBAAc,kCARd;AASA,wBAAc,kCATd;AAUA,wBAAc,uCAVd;AAWA,wBAAc,gDAXd;AAYA,wBAAc,8BAZd;AAaA,wBAAc,4BAbd;AAcA,wBAAc,gCAdd;AAeA,wBAAc,4CAfd;AAgBA,wBAAc,qCAhBd;AAiBA,wBAAc,0CAjBd;AAkBA,wBAAc,4CAlBd;AAmBA,wBAAc,iDAnBd;AAoBA,wBAAc,8CApBd;AAqBA,wBAAc,yDArBd;AAsBA,wBAAc,kDAtBd;AAuBA,wBAAc,0CAvBd;AAwBA,wBAAc,4CAxBd;AAyBA,wBAAc,0CAzBd;AA0BA,wBAAc,iCA1Bd;AA2BA,wBAAc,4CA3Bd;AA4BA,wBAAc,iDA5Bd;AA6BA,wBAAc,yCA7Bd;AA8BA,wBAAc,wCA9Bd;AA+BA,wBAAc,oCA/Bd;AAgCA,wBAAc,sCAhCd;AAiCA,wBAAc,uCAjCd;AAkCA,wBAAc,kDAlCd;AAmCA,wBAAc,sCAnCd;AAoCA,wBAAc,8BApCd;AAqCA,wBAAc,iDArCd;AAsCA,wBAAc,kDAtCd;AAuCA,wBAAc,6DAvCd;AAwCA,wBAAc,2CAxCd;AAyCA,wBAAc,iCAzCd;AA0CA,wBAAc,+BA1Cd;AA2CA,wBAAc,uCA3Cd;AA4CA,wBAAc,qCA5Cd;AA6CA,wBAAc,oCA7Cd;AA8CA,wBAAc,yCA9Cd;AA+CA,wBAAc,gCA/Cd;AAgDA,wBAAc,6CAhDd;AAiDA,wBAAc,qCAjDd;AAkDA,wBAAc,6BAlDd;AAmDA,wBAAc,+BAnDd;AAoDA,wBAAc,oCApDd;AAqDA,wBAAc,mCArDd;AAsDA,wBAAc,wCAtDd;AAuDA,wBAAc,yCAvDd;AAwDA,wBAAc,sCAxDd;AAyDA,wBAAc,yEAzDd;AA0DA,wBAAc,yCA1Dd;AA2DA,wBAAc,2CA3Dd;AA4DA,wBAAc,kCA5Dd;AA6DA,wBAAc,uCA7Dd;AA8DA,wBAAc,mCA9Dd;", + "names": [] +} diff --git a/build/myuplinkRepository.js b/build/myuplinkRepository.js new file mode 100644 index 0000000..90bdb21 --- /dev/null +++ b/build/myuplinkRepository.js @@ -0,0 +1,81 @@ +"use strict"; +var __create = Object.create; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __getProtoOf = Object.getPrototypeOf; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, + mod +)); +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var myuplinkRepository_exports = {}; +__export(myuplinkRepository_exports, { + MyUplinkRepository: () => MyUplinkRepository +}); +module.exports = __toCommonJS(myuplinkRepository_exports); +var import_axios = __toESM(require("axios")); +class MyUplinkRepository { + constructor(options, log) { + this.log = log; + this.options = options; + import_axios.default.defaults.baseURL = options.baseUrl; + import_axios.default.defaults.headers.common["user-agent"] = options.userAgent; + import_axios.default.defaults.timeout = options.timeout; + } + async getSystemsAndDevices(accessToken) { + return await this.getFromMyUplink("/v2/systems/me", accessToken); + } + async getDevicePoints(deviceId, accessToken) { + return await this.getFromMyUplink(`/v2/devices/${deviceId}/points`, accessToken); + } + async getFromMyUplink(suburl, accessToken) { + const lang = this.options.language; + this.log.debug(`GET ${suburl} (lang: ${lang})`); + try { + const { data } = await import_axios.default.get(suburl, { + headers: { + Authorization: "Bearer " + accessToken, + "Accept-Language": lang + } + }); + return data; + } catch (error) { + throw this.checkError(suburl, error); + } + } + checkError(suburl, error) { + this.log.error(`error from ${suburl}`); + if (import_axios.default.isAxiosError(error)) { + const axiosError = error; + if (axiosError.response != null) { + if (axiosError.response.data != null) { + const responseText = JSON.stringify(axiosError.response.data, null, " "); + const errorMessage = `${axiosError.response.statusText}: ${responseText}`; + return new Error(errorMessage); + } else { + return new Error(axiosError.response.statusText); + } + } + } + return error; + } +} +// Annotate the CommonJS export names for ESM import in node: +0 && (module.exports = { + MyUplinkRepository +}); +//# sourceMappingURL=myuplinkRepository.js.map diff --git a/build/myuplinkRepository.js.map b/build/myuplinkRepository.js.map new file mode 100644 index 0000000..5f135c1 --- /dev/null +++ b/build/myuplinkRepository.js.map @@ -0,0 +1,7 @@ +{ + "version": 3, + "sources": ["../src/myuplinkRepository.ts"], + "sourcesContent": ["import axios, { AxiosError } from 'axios';\nimport { PagedSystemResult } from './models/PagedSystemResult';\nimport { ParameterData } from './models/ParameterData';\n\nexport default interface MyUplinkOptions {\n baseUrl: string;\n timeout: number;\n userAgent: string;\n language: string;\n}\n\nexport class MyUplinkRepository {\n constructor(options: MyUplinkOptions, log: ioBroker.Log) {\n this.log = log;\n this.options = options;\n\n axios.defaults.baseURL = options.baseUrl;\n axios.defaults.headers.common['user-agent'] = options.userAgent;\n axios.defaults.timeout = options.timeout;\n }\n\n private log: ioBroker.Log;\n private options: MyUplinkOptions;\n\n async getSystemsAndDevices(accessToken: string): Promise {\n return await this.getFromMyUplink('/v2/systems/me', accessToken);\n }\n\n async getDevicePoints(deviceId: string, accessToken: string): Promise {\n return await this.getFromMyUplink(`/v2/devices/${deviceId}/points`, accessToken);\n }\n\n private async getFromMyUplink(suburl: string, accessToken: string): Promise {\n const lang = this.options.language;\n this.log.debug(`GET ${suburl} (lang: ${lang})`);\n try {\n const { data } = await axios.get(suburl, {\n headers: {\n Authorization: 'Bearer ' + accessToken,\n 'Accept-Language': lang,\n },\n });\n return data;\n } catch (error) {\n throw this.checkError(suburl, error);\n }\n }\n\n private checkError(suburl: string, error: unknown): unknown {\n this.log.error(`error from ${suburl}`);\n if (axios.isAxiosError(error)) {\n const axiosError = error as AxiosError;\n if (axiosError.response != null) {\n if (axiosError.response.data != null) {\n const responseText = JSON.stringify(axiosError.response.data, null, ' ');\n const errorMessage = `${axiosError.response.statusText}: ${responseText}`;\n return new Error(errorMessage);\n } else {\n return new Error(axiosError.response.statusText);\n }\n }\n }\n return error;\n }\n}\n"], + "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkC;AAW3B,MAAM,mBAAmB;AAAA,EAC5B,YAAY,SAA0B,KAAmB;AACrD,SAAK,MAAM;AACX,SAAK,UAAU;AAEf,iBAAAA,QAAM,SAA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ts +++ b/src/main.ts @@ -8,6 +8,7 @@ import * as utils from '@iobroker/adapter-core'; import * as fs from 'fs'; import * as path from 'path'; import { AuthRepository } from './authRepository'; +import { ParameterData } from './models/ParameterData'; import { SystemDevice } from './models/SystemDevice'; import { SystemWithDevices } from './models/SystemWithDevices'; import { MyUplinkRepository } from './myuplinkRepository'; @@ -34,17 +35,6 @@ Date.prototype.timeNow = function (): string { return (this.getHours() < 10 ? '0' : '') + this.getHours() + ':' + (this.getMinutes() < 10 ? '0' : '') + this.getMinutes() + ':' + (this.getSeconds() < 10 ? '0' : '') + this.getSeconds(); }; -async function createFolderAsync(adapter: Myuplink, path: string, name: string): Promise { - await adapter.setObjectNotExistsAsync(path, { - type: 'folder', - common: { - name: name, - role: 'text', - }, - native: {}, - }); -} - async function createDeviceAsync(adapter: Myuplink, path: string, name: string): Promise { await adapter.setObjectNotExistsAsync(path, { type: 'device', @@ -224,7 +214,7 @@ class Myuplink extends utils.Adapter { this.setState('info.currentError', { val: '', ack: true }); systems.systems?.forEach(async (value: SystemWithDevices) => { - await this.setSystemWithDevices(value); + await this.setSystemWithDevices(value, accessToken); }); } } @@ -241,10 +231,10 @@ class Myuplink extends utils.Adapter { } } - private async setSystemWithDevices(system: SystemWithDevices): Promise { + private async setSystemWithDevices(system: SystemWithDevices, accessToken: string): Promise { if (system.systemId != undefined && system.name != undefined) { const systemPath = system.systemId; - await createFolderAsync(this, systemPath, system.name); + await createDeviceAsync(this, systemPath, system.name); await createStringStateAsync(this, `${systemPath}.systemId`, 'System ID', system.systemId); await createStringStateAsync(this, `${systemPath}.name`, 'Name', system.name); if (system.country != undefined) { @@ -257,15 +247,15 @@ class Myuplink extends utils.Adapter { await createBooleanStateAsync(this, `${systemPath}.hasAlarm`, 'Has Alarm', 'indicator.alarm', system.hasAlarm); } system.devices?.forEach(async (dev: SystemDevice) => { - await this.setSystemDevice(dev, systemPath); + await this.setSystemDevice(dev, systemPath, accessToken); }); } } - private async setSystemDevice(device: SystemDevice, path: string): Promise { + private async setSystemDevice(device: SystemDevice, systemPath: string, accessToken: string): Promise { if (device.id != undefined && device.product?.name != undefined) { - const devPath = `${path}.${device.id}`; - await createDeviceAsync(this, devPath, device.product.name); + const devPath = `${systemPath}.${device.id}`; + await createChannelAsync(this, devPath, device.product.name); await createStringStateAsync(this, `${devPath}.id`, 'Device ID', device.id); await createStringStateAsync(this, `${devPath}.name`, 'Name', device.product.name); if (device.connectionState != undefined) { @@ -277,6 +267,34 @@ class Myuplink extends utils.Adapter { if (device.product?.serialNumber != undefined) { await createStringStateAsync(this, `${devPath}.serialNumber`, 'Serial Number', device.product.serialNumber); } + + const devicePoints = await this.myUplinkRepository?.getDevicePoints(device.id, accessToken); + devicePoints?.forEach(async (data: ParameterData) => { + await this.setParameterData(data, devPath); + }); + } + } + + private async setParameterData(data: ParameterData, devPath: string): Promise { + if (data.parameterId && data.parameterName) { + const path = `${devPath}.${data.parameterId}`; + + const objectExists = await this.objectExists(path); + if (!objectExists) { + const obj: ioBroker.SettableObject = { + type: 'state', + common: { + name: data.parameterName, + type: 'number', + role: 'value', + read: true, + write: data.writable ?? false, + }, + native: {}, + }; + await this.setObjectNotExistsAsync(path, obj); + } + await this.setStateAsync(path, { val: data.value, ack: true }); } } diff --git a/src/myuplinkRepository.ts b/src/myuplinkRepository.ts index 9d02838..0896ede 100644 --- a/src/myuplinkRepository.ts +++ b/src/myuplinkRepository.ts @@ -1,5 +1,6 @@ import axios, { AxiosError } from 'axios'; import { PagedSystemResult } from './models/PagedSystemResult'; +import { ParameterData } from './models/ParameterData'; export default interface MyUplinkOptions { baseUrl: string; @@ -22,7 +23,11 @@ export class MyUplinkRepository { private options: MyUplinkOptions; async getSystemsAndDevices(accessToken: string): Promise { - return await this.getFromMyUplink('/v2/systems/me', accessToken); + return await this.getFromMyUplink('/v2/systems/me', accessToken); + } + + async getDevicePoints(deviceId: string, accessToken: string): Promise { + return await this.getFromMyUplink(`/v2/devices/${deviceId}/points`, accessToken); } private async getFromMyUplink(suburl: string, accessToken: string): Promise {