@kohost/api-client 3.0.0-beta.99 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Client/index.js +374 -67
- package/dist/cjs/Commands/CreateShortLinkCommand.js +2 -2
- package/dist/cjs/Commands/OCRDocumentCommand.js +2 -2
- package/dist/cjs/Commands/SetAlarmCommand.js +2 -2
- package/dist/cjs/Commands/SetCourtesyCommand.js +2 -2
- package/dist/cjs/Commands/SetDimmerCommand.js +2 -2
- package/dist/cjs/Commands/SetLockCommand.js +2 -2
- package/dist/cjs/Commands/SetSwitchCommand.js +2 -2
- package/dist/cjs/Commands/SetThermostatCommand.js +2 -2
- package/dist/cjs/Commands/SetWindowCoveringCommand.js +2 -2
- package/dist/cjs/Events/ReservationCheckInEvent.js +23 -0
- package/dist/cjs/Events/ReservationCheckOutEvent.js +23 -0
- package/dist/cjs/Events/index.js +6 -0
- package/dist/cjs/SocketIoClient/index.js +23 -4
- package/dist/cjs/schemas/AlarmSchema.d.ts +14 -2
- package/dist/cjs/schemas/CameraSchema.d.ts +1 -0
- package/dist/cjs/schemas/CategorySchema.d.ts +1 -0
- package/dist/cjs/schemas/CourtesySchema.d.ts +1 -0
- package/dist/cjs/schemas/CredentialSchema.d.ts +2 -1
- package/dist/cjs/schemas/DimmerSchema.d.ts +1 -0
- package/dist/cjs/schemas/DiscoveredDeviceSchema.d.ts +4 -0
- package/dist/cjs/schemas/GatewaySchema.d.ts +1 -0
- package/dist/cjs/schemas/LockSchema.d.ts +1 -0
- package/dist/cjs/schemas/MediaSourceSchema.d.ts +4 -1
- package/dist/cjs/schemas/MotionSensorSchema.d.ts +1 -0
- package/dist/cjs/schemas/OrganizationSchema.d.ts +30 -0
- package/dist/cjs/schemas/ProductSchema.d.ts +1 -0
- package/dist/cjs/schemas/PropertySchema.d.ts +26 -35
- package/dist/cjs/schemas/ReservationSchema.d.ts +2 -0
- package/dist/cjs/schemas/RoomSchema.d.ts +28 -4
- package/dist/cjs/schemas/SceneSchema.d.ts +2 -1
- package/dist/cjs/schemas/SpaceSchema.d.ts +1 -0
- package/dist/cjs/schemas/SwitchSchema.d.ts +1 -0
- package/dist/cjs/schemas/SystemUserSchema.d.ts +1 -0
- package/dist/cjs/schemas/ThermostatSchema.d.ts +1 -0
- package/dist/cjs/schemas/UserSchema.d.ts +2 -0
- package/dist/cjs/schemas/WindowCoveringSchema.d.ts +3 -1
- package/dist/cjs/schemas/alarm.json +4 -4
- package/dist/cjs/schemas/credential.json +1 -0
- package/dist/cjs/schemas/definitions.json +1 -0
- package/dist/cjs/schemas/discoveredDevice.json +4 -0
- package/dist/cjs/schemas/mediaSource.json +11 -1
- package/dist/cjs/schemas/organization.json +109 -0
- package/dist/cjs/schemas/property.json +39 -116
- package/dist/cjs/schemas/reservation.json +3 -0
- package/dist/cjs/schemas/scene.json +3 -0
- package/dist/cjs/schemas/windowCovering.json +8 -2
- package/dist/esm/Client.js +504 -193
- package/dist/esm/Client.js.map +4 -4
- package/dist/esm/Commands.js +18 -18
- package/dist/esm/Commands.js.map +2 -2
- package/dist/esm/Events.js +55 -1
- package/dist/esm/Events.js.map +3 -3
- package/dist/esm/Models.js +182 -122
- package/dist/esm/Models.js.map +2 -2
- package/dist/esm/SocketIoClient.js +26 -7
- package/dist/esm/SocketIoClient.js.map +2 -2
- package/dist/esm/defs.js +162 -131
- package/dist/esm/defs.js.map +4 -4
- package/dist/esm/utils.js +1 -0
- package/dist/esm/utils.js.map +2 -2
- package/dist/useCases/{LoginUser.js → CreateScene.js} +2 -2
- package/dist/useCases/DescribeAlarmConfig.js +32 -0
- package/dist/useCases/{DescribeMyProperty.js → DescribeMyOrganization.js} +2 -2
- package/dist/useCases/DescribeMyPasskeyRegistrations.js +32 -0
- package/dist/useCases/FinishRegisterPasskey.js +32 -0
- package/dist/useCases/{RequestLoginLink.js → ListMyProperties.js} +3 -3
- package/dist/useCases/{RequestPWAToken.js → LoginFinish.js} +3 -3
- package/dist/useCases/LoginStart.js +32 -0
- package/dist/useCases/{RequestMyKeyToken.js → RequestLoginToken.js} +3 -3
- package/dist/useCases/SetAlarm.js +32 -0
- package/dist/useCases/SetCustomScene.js +32 -0
- package/dist/useCases/StartRegisterPasskey.js +32 -0
- package/package.json +3 -4
package/dist/esm/Client.js
CHANGED
|
@@ -5,15 +5,15 @@ var __commonJS = (cb, mod) => function __require() {
|
|
|
5
5
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
6
6
|
};
|
|
7
7
|
|
|
8
|
-
// dist/useCases/
|
|
9
|
-
var
|
|
10
|
-
"dist/useCases/
|
|
11
|
-
module.exports = /* @__PURE__ */ __name(function
|
|
8
|
+
// dist/useCases/LoginStart.js
|
|
9
|
+
var require_LoginStart = __commonJS({
|
|
10
|
+
"dist/useCases/LoginStart.js"(exports, module) {
|
|
11
|
+
module.exports = /* @__PURE__ */ __name(function LoginStart(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
12
12
|
if (!requestData)
|
|
13
13
|
requestData = {};
|
|
14
14
|
const pathParams = null;
|
|
15
15
|
const { data, query, headers } = requestData;
|
|
16
|
-
let url = "/auth/
|
|
16
|
+
let url = "/auth/start";
|
|
17
17
|
if (pathParams && data) {
|
|
18
18
|
for (const param of pathParams) {
|
|
19
19
|
const paramName = param.replace(":", "");
|
|
@@ -39,7 +39,7 @@ var require_LoginUser = __commonJS({
|
|
|
39
39
|
if (headers)
|
|
40
40
|
config.headers = headers;
|
|
41
41
|
return this._http.request(config);
|
|
42
|
-
}, "
|
|
42
|
+
}, "LoginStart");
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -81,15 +81,15 @@ var require_RefreshToken = __commonJS({
|
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
83
|
|
|
84
|
-
// dist/useCases/
|
|
85
|
-
var
|
|
86
|
-
"dist/useCases/
|
|
87
|
-
module.exports = /* @__PURE__ */ __name(function
|
|
84
|
+
// dist/useCases/LoginFinish.js
|
|
85
|
+
var require_LoginFinish = __commonJS({
|
|
86
|
+
"dist/useCases/LoginFinish.js"(exports, module) {
|
|
87
|
+
module.exports = /* @__PURE__ */ __name(function LoginFinish(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
88
88
|
if (!requestData)
|
|
89
89
|
requestData = {};
|
|
90
90
|
const pathParams = null;
|
|
91
91
|
const { data, query, headers } = requestData;
|
|
92
|
-
let url = "/auth/
|
|
92
|
+
let url = "/auth/finish";
|
|
93
93
|
if (pathParams && data) {
|
|
94
94
|
for (const param of pathParams) {
|
|
95
95
|
const paramName = param.replace(":", "");
|
|
@@ -115,19 +115,57 @@ var require_RequestLoginLink = __commonJS({
|
|
|
115
115
|
if (headers)
|
|
116
116
|
config.headers = headers;
|
|
117
117
|
return this._http.request(config);
|
|
118
|
-
}, "
|
|
118
|
+
}, "LoginFinish");
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
121
|
|
|
122
|
-
// dist/useCases/
|
|
123
|
-
var
|
|
124
|
-
"dist/useCases/
|
|
125
|
-
module.exports = /* @__PURE__ */ __name(function
|
|
122
|
+
// dist/useCases/RequestLoginToken.js
|
|
123
|
+
var require_RequestLoginToken = __commonJS({
|
|
124
|
+
"dist/useCases/RequestLoginToken.js"(exports, module) {
|
|
125
|
+
module.exports = /* @__PURE__ */ __name(function RequestLoginToken(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
126
126
|
if (!requestData)
|
|
127
127
|
requestData = {};
|
|
128
128
|
const pathParams = null;
|
|
129
129
|
const { data, query, headers } = requestData;
|
|
130
|
-
let url = "/auth/
|
|
130
|
+
let url = "/auth/loginToken";
|
|
131
|
+
if (pathParams && data) {
|
|
132
|
+
for (const param of pathParams) {
|
|
133
|
+
const paramName = param.replace(":", "");
|
|
134
|
+
url = url.replace(param, data[paramName]);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
if (url.match(/:[a-zA-Z0-9]+/g)) {
|
|
138
|
+
const missingParams = url.match(/:[a-zA-Z0-9]+/g);
|
|
139
|
+
const missing = missingParams.map((param) => param.replace(":", ""));
|
|
140
|
+
return Promise.reject(
|
|
141
|
+
new Error("Missing parameters: " + missing.join(", "))
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
const config = {
|
|
145
|
+
method: "get",
|
|
146
|
+
url,
|
|
147
|
+
...httpConfigOptions
|
|
148
|
+
};
|
|
149
|
+
if (data)
|
|
150
|
+
config.data = data;
|
|
151
|
+
if (query)
|
|
152
|
+
config.params = query;
|
|
153
|
+
if (headers)
|
|
154
|
+
config.headers = headers;
|
|
155
|
+
return this._http.request(config);
|
|
156
|
+
}, "RequestLoginToken");
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
// dist/useCases/LogoutUser.js
|
|
161
|
+
var require_LogoutUser = __commonJS({
|
|
162
|
+
"dist/useCases/LogoutUser.js"(exports, module) {
|
|
163
|
+
module.exports = /* @__PURE__ */ __name(function LogoutUser(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
164
|
+
if (!requestData)
|
|
165
|
+
requestData = {};
|
|
166
|
+
const pathParams = [":id"];
|
|
167
|
+
const { data, query, headers } = requestData;
|
|
168
|
+
let url = "/auth/user/:id/logout";
|
|
131
169
|
if (pathParams && data) {
|
|
132
170
|
for (const param of pathParams) {
|
|
133
171
|
const paramName = param.replace(":", "");
|
|
@@ -153,19 +191,19 @@ var require_RequestMyKeyToken = __commonJS({
|
|
|
153
191
|
if (headers)
|
|
154
192
|
config.headers = headers;
|
|
155
193
|
return this._http.request(config);
|
|
156
|
-
}, "
|
|
194
|
+
}, "LogoutUser");
|
|
157
195
|
}
|
|
158
196
|
});
|
|
159
197
|
|
|
160
|
-
// dist/useCases/
|
|
161
|
-
var
|
|
162
|
-
"dist/useCases/
|
|
163
|
-
module.exports = /* @__PURE__ */ __name(function
|
|
198
|
+
// dist/useCases/StartRegisterPasskey.js
|
|
199
|
+
var require_StartRegisterPasskey = __commonJS({
|
|
200
|
+
"dist/useCases/StartRegisterPasskey.js"(exports, module) {
|
|
201
|
+
module.exports = /* @__PURE__ */ __name(function StartRegisterPasskey(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
164
202
|
if (!requestData)
|
|
165
203
|
requestData = {};
|
|
166
204
|
const pathParams = null;
|
|
167
205
|
const { data, query, headers } = requestData;
|
|
168
|
-
let url = "/auth/
|
|
206
|
+
let url = "/auth/registerPasskey/start";
|
|
169
207
|
if (pathParams && data) {
|
|
170
208
|
for (const param of pathParams) {
|
|
171
209
|
const paramName = param.replace(":", "");
|
|
@@ -180,7 +218,7 @@ var require_RequestPWAToken = __commonJS({
|
|
|
180
218
|
);
|
|
181
219
|
}
|
|
182
220
|
const config = {
|
|
183
|
-
method: "
|
|
221
|
+
method: "post",
|
|
184
222
|
url,
|
|
185
223
|
...httpConfigOptions
|
|
186
224
|
};
|
|
@@ -191,19 +229,19 @@ var require_RequestPWAToken = __commonJS({
|
|
|
191
229
|
if (headers)
|
|
192
230
|
config.headers = headers;
|
|
193
231
|
return this._http.request(config);
|
|
194
|
-
}, "
|
|
232
|
+
}, "StartRegisterPasskey");
|
|
195
233
|
}
|
|
196
234
|
});
|
|
197
235
|
|
|
198
|
-
// dist/useCases/
|
|
199
|
-
var
|
|
200
|
-
"dist/useCases/
|
|
201
|
-
module.exports = /* @__PURE__ */ __name(function
|
|
236
|
+
// dist/useCases/FinishRegisterPasskey.js
|
|
237
|
+
var require_FinishRegisterPasskey = __commonJS({
|
|
238
|
+
"dist/useCases/FinishRegisterPasskey.js"(exports, module) {
|
|
239
|
+
module.exports = /* @__PURE__ */ __name(function FinishRegisterPasskey(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
202
240
|
if (!requestData)
|
|
203
241
|
requestData = {};
|
|
204
|
-
const pathParams =
|
|
242
|
+
const pathParams = null;
|
|
205
243
|
const { data, query, headers } = requestData;
|
|
206
|
-
let url = "/auth/
|
|
244
|
+
let url = "/auth/registerPasskey/finish";
|
|
207
245
|
if (pathParams && data) {
|
|
208
246
|
for (const param of pathParams) {
|
|
209
247
|
const paramName = param.replace(":", "");
|
|
@@ -229,7 +267,7 @@ var require_LogoutUser = __commonJS({
|
|
|
229
267
|
if (headers)
|
|
230
268
|
config.headers = headers;
|
|
231
269
|
return this._http.request(config);
|
|
232
|
-
}, "
|
|
270
|
+
}, "FinishRegisterPasskey");
|
|
233
271
|
}
|
|
234
272
|
});
|
|
235
273
|
|
|
@@ -803,6 +841,44 @@ var require_DescribeMyAccessCredentials = __commonJS({
|
|
|
803
841
|
}
|
|
804
842
|
});
|
|
805
843
|
|
|
844
|
+
// dist/useCases/DescribeMyPasskeyRegistrations.js
|
|
845
|
+
var require_DescribeMyPasskeyRegistrations = __commonJS({
|
|
846
|
+
"dist/useCases/DescribeMyPasskeyRegistrations.js"(exports, module) {
|
|
847
|
+
module.exports = /* @__PURE__ */ __name(function DescribeMyPasskeyRegistrations(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
848
|
+
if (!requestData)
|
|
849
|
+
requestData = {};
|
|
850
|
+
const pathParams = null;
|
|
851
|
+
const { data, query, headers } = requestData;
|
|
852
|
+
let url = "/users/me/passkeyRegistrations";
|
|
853
|
+
if (pathParams && data) {
|
|
854
|
+
for (const param of pathParams) {
|
|
855
|
+
const paramName = param.replace(":", "");
|
|
856
|
+
url = url.replace(param, data[paramName]);
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
if (url.match(/:[a-zA-Z0-9]+/g)) {
|
|
860
|
+
const missingParams = url.match(/:[a-zA-Z0-9]+/g);
|
|
861
|
+
const missing = missingParams.map((param) => param.replace(":", ""));
|
|
862
|
+
return Promise.reject(
|
|
863
|
+
new Error("Missing parameters: " + missing.join(", "))
|
|
864
|
+
);
|
|
865
|
+
}
|
|
866
|
+
const config = {
|
|
867
|
+
method: "get",
|
|
868
|
+
url,
|
|
869
|
+
...httpConfigOptions
|
|
870
|
+
};
|
|
871
|
+
if (data)
|
|
872
|
+
config.data = data;
|
|
873
|
+
if (query)
|
|
874
|
+
config.params = query;
|
|
875
|
+
if (headers)
|
|
876
|
+
config.headers = headers;
|
|
877
|
+
return this._http.request(config);
|
|
878
|
+
}, "DescribeMyPasskeyRegistrations");
|
|
879
|
+
}
|
|
880
|
+
});
|
|
881
|
+
|
|
806
882
|
// dist/useCases/TipUser.js
|
|
807
883
|
var require_TipUser = __commonJS({
|
|
808
884
|
"dist/useCases/TipUser.js"(exports, module) {
|
|
@@ -1753,15 +1829,53 @@ var require_DescribeAlarm = __commonJS({
|
|
|
1753
1829
|
}
|
|
1754
1830
|
});
|
|
1755
1831
|
|
|
1756
|
-
// dist/useCases/
|
|
1757
|
-
var
|
|
1758
|
-
"dist/useCases/
|
|
1759
|
-
module.exports = /* @__PURE__ */ __name(function
|
|
1832
|
+
// dist/useCases/DescribeAlarmConfig.js
|
|
1833
|
+
var require_DescribeAlarmConfig = __commonJS({
|
|
1834
|
+
"dist/useCases/DescribeAlarmConfig.js"(exports, module) {
|
|
1835
|
+
module.exports = /* @__PURE__ */ __name(function DescribeAlarmConfig(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
1760
1836
|
if (!requestData)
|
|
1761
1837
|
requestData = {};
|
|
1762
1838
|
const pathParams = [":roomId", ":id"];
|
|
1763
1839
|
const { data, query, headers } = requestData;
|
|
1764
|
-
let url = "/rooms/:roomId/
|
|
1840
|
+
let url = "/rooms/:roomId/alarms/:id/config";
|
|
1841
|
+
if (pathParams && data) {
|
|
1842
|
+
for (const param of pathParams) {
|
|
1843
|
+
const paramName = param.replace(":", "");
|
|
1844
|
+
url = url.replace(param, data[paramName]);
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1847
|
+
if (url.match(/:[a-zA-Z0-9]+/g)) {
|
|
1848
|
+
const missingParams = url.match(/:[a-zA-Z0-9]+/g);
|
|
1849
|
+
const missing = missingParams.map((param) => param.replace(":", ""));
|
|
1850
|
+
return Promise.reject(
|
|
1851
|
+
new Error("Missing parameters: " + missing.join(", "))
|
|
1852
|
+
);
|
|
1853
|
+
}
|
|
1854
|
+
const config = {
|
|
1855
|
+
method: "get",
|
|
1856
|
+
url,
|
|
1857
|
+
...httpConfigOptions
|
|
1858
|
+
};
|
|
1859
|
+
if (data)
|
|
1860
|
+
config.data = data;
|
|
1861
|
+
if (query)
|
|
1862
|
+
config.params = query;
|
|
1863
|
+
if (headers)
|
|
1864
|
+
config.headers = headers;
|
|
1865
|
+
return this._http.request(config);
|
|
1866
|
+
}, "DescribeAlarmConfig");
|
|
1867
|
+
}
|
|
1868
|
+
});
|
|
1869
|
+
|
|
1870
|
+
// dist/useCases/SetAlarm.js
|
|
1871
|
+
var require_SetAlarm = __commonJS({
|
|
1872
|
+
"dist/useCases/SetAlarm.js"(exports, module) {
|
|
1873
|
+
module.exports = /* @__PURE__ */ __name(function SetAlarm(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
1874
|
+
if (!requestData)
|
|
1875
|
+
requestData = {};
|
|
1876
|
+
const pathParams = [":roomId", ":id"];
|
|
1877
|
+
const { data, query, headers } = requestData;
|
|
1878
|
+
let url = "/rooms/:roomId/alarms/:id";
|
|
1765
1879
|
if (pathParams && data) {
|
|
1766
1880
|
for (const param of pathParams) {
|
|
1767
1881
|
const paramName = param.replace(":", "");
|
|
@@ -1787,7 +1901,7 @@ var require_SetLock = __commonJS({
|
|
|
1787
1901
|
if (headers)
|
|
1788
1902
|
config.headers = headers;
|
|
1789
1903
|
return this._http.request(config);
|
|
1790
|
-
}, "
|
|
1904
|
+
}, "SetAlarm");
|
|
1791
1905
|
}
|
|
1792
1906
|
});
|
|
1793
1907
|
|
|
@@ -2665,6 +2779,44 @@ var require_DescribeLock = __commonJS({
|
|
|
2665
2779
|
}
|
|
2666
2780
|
});
|
|
2667
2781
|
|
|
2782
|
+
// dist/useCases/SetLock.js
|
|
2783
|
+
var require_SetLock = __commonJS({
|
|
2784
|
+
"dist/useCases/SetLock.js"(exports, module) {
|
|
2785
|
+
module.exports = /* @__PURE__ */ __name(function SetLock(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
2786
|
+
if (!requestData)
|
|
2787
|
+
requestData = {};
|
|
2788
|
+
const pathParams = [":roomId", ":id"];
|
|
2789
|
+
const { data, query, headers } = requestData;
|
|
2790
|
+
let url = "/rooms/:roomId/locks/:id";
|
|
2791
|
+
if (pathParams && data) {
|
|
2792
|
+
for (const param of pathParams) {
|
|
2793
|
+
const paramName = param.replace(":", "");
|
|
2794
|
+
url = url.replace(param, data[paramName]);
|
|
2795
|
+
}
|
|
2796
|
+
}
|
|
2797
|
+
if (url.match(/:[a-zA-Z0-9]+/g)) {
|
|
2798
|
+
const missingParams = url.match(/:[a-zA-Z0-9]+/g);
|
|
2799
|
+
const missing = missingParams.map((param) => param.replace(":", ""));
|
|
2800
|
+
return Promise.reject(
|
|
2801
|
+
new Error("Missing parameters: " + missing.join(", "))
|
|
2802
|
+
);
|
|
2803
|
+
}
|
|
2804
|
+
const config = {
|
|
2805
|
+
method: "post",
|
|
2806
|
+
url,
|
|
2807
|
+
...httpConfigOptions
|
|
2808
|
+
};
|
|
2809
|
+
if (data)
|
|
2810
|
+
config.data = data;
|
|
2811
|
+
if (query)
|
|
2812
|
+
config.params = query;
|
|
2813
|
+
if (headers)
|
|
2814
|
+
config.headers = headers;
|
|
2815
|
+
return this._http.request(config);
|
|
2816
|
+
}, "SetLock");
|
|
2817
|
+
}
|
|
2818
|
+
});
|
|
2819
|
+
|
|
2668
2820
|
// dist/useCases/DescribeLockCredential.js
|
|
2669
2821
|
var require_DescribeLockCredential = __commonJS({
|
|
2670
2822
|
"dist/useCases/DescribeLockCredential.js"(exports, module) {
|
|
@@ -3653,6 +3805,44 @@ var require_SetRoomScene = __commonJS({
|
|
|
3653
3805
|
}
|
|
3654
3806
|
});
|
|
3655
3807
|
|
|
3808
|
+
// dist/useCases/SetCustomScene.js
|
|
3809
|
+
var require_SetCustomScene = __commonJS({
|
|
3810
|
+
"dist/useCases/SetCustomScene.js"(exports, module) {
|
|
3811
|
+
module.exports = /* @__PURE__ */ __name(function SetCustomScene(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
3812
|
+
if (!requestData)
|
|
3813
|
+
requestData = {};
|
|
3814
|
+
const pathParams = [":id"];
|
|
3815
|
+
const { data, query, headers } = requestData;
|
|
3816
|
+
let url = "/scenes/:id";
|
|
3817
|
+
if (pathParams && data) {
|
|
3818
|
+
for (const param of pathParams) {
|
|
3819
|
+
const paramName = param.replace(":", "");
|
|
3820
|
+
url = url.replace(param, data[paramName]);
|
|
3821
|
+
}
|
|
3822
|
+
}
|
|
3823
|
+
if (url.match(/:[a-zA-Z0-9]+/g)) {
|
|
3824
|
+
const missingParams = url.match(/:[a-zA-Z0-9]+/g);
|
|
3825
|
+
const missing = missingParams.map((param) => param.replace(":", ""));
|
|
3826
|
+
return Promise.reject(
|
|
3827
|
+
new Error("Missing parameters: " + missing.join(", "))
|
|
3828
|
+
);
|
|
3829
|
+
}
|
|
3830
|
+
const config = {
|
|
3831
|
+
method: "post",
|
|
3832
|
+
url,
|
|
3833
|
+
...httpConfigOptions
|
|
3834
|
+
};
|
|
3835
|
+
if (data)
|
|
3836
|
+
config.data = data;
|
|
3837
|
+
if (query)
|
|
3838
|
+
config.params = query;
|
|
3839
|
+
if (headers)
|
|
3840
|
+
config.headers = headers;
|
|
3841
|
+
return this._http.request(config);
|
|
3842
|
+
}, "SetCustomScene");
|
|
3843
|
+
}
|
|
3844
|
+
});
|
|
3845
|
+
|
|
3656
3846
|
// dist/useCases/AddScenesToRoom.js
|
|
3657
3847
|
var require_AddScenesToRoom = __commonJS({
|
|
3658
3848
|
"dist/useCases/AddScenesToRoom.js"(exports, module) {
|
|
@@ -4109,6 +4299,44 @@ var require_ListScenes = __commonJS({
|
|
|
4109
4299
|
}
|
|
4110
4300
|
});
|
|
4111
4301
|
|
|
4302
|
+
// dist/useCases/CreateScene.js
|
|
4303
|
+
var require_CreateScene = __commonJS({
|
|
4304
|
+
"dist/useCases/CreateScene.js"(exports, module) {
|
|
4305
|
+
module.exports = /* @__PURE__ */ __name(function CreateScene(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
4306
|
+
if (!requestData)
|
|
4307
|
+
requestData = {};
|
|
4308
|
+
const pathParams = null;
|
|
4309
|
+
const { data, query, headers } = requestData;
|
|
4310
|
+
let url = "/scenes";
|
|
4311
|
+
if (pathParams && data) {
|
|
4312
|
+
for (const param of pathParams) {
|
|
4313
|
+
const paramName = param.replace(":", "");
|
|
4314
|
+
url = url.replace(param, data[paramName]);
|
|
4315
|
+
}
|
|
4316
|
+
}
|
|
4317
|
+
if (url.match(/:[a-zA-Z0-9]+/g)) {
|
|
4318
|
+
const missingParams = url.match(/:[a-zA-Z0-9]+/g);
|
|
4319
|
+
const missing = missingParams.map((param) => param.replace(":", ""));
|
|
4320
|
+
return Promise.reject(
|
|
4321
|
+
new Error("Missing parameters: " + missing.join(", "))
|
|
4322
|
+
);
|
|
4323
|
+
}
|
|
4324
|
+
const config = {
|
|
4325
|
+
method: "post",
|
|
4326
|
+
url,
|
|
4327
|
+
...httpConfigOptions
|
|
4328
|
+
};
|
|
4329
|
+
if (data)
|
|
4330
|
+
config.data = data;
|
|
4331
|
+
if (query)
|
|
4332
|
+
config.params = query;
|
|
4333
|
+
if (headers)
|
|
4334
|
+
config.headers = headers;
|
|
4335
|
+
return this._http.request(config);
|
|
4336
|
+
}, "CreateScene");
|
|
4337
|
+
}
|
|
4338
|
+
});
|
|
4339
|
+
|
|
4112
4340
|
// dist/useCases/CreateDefaultScenes.js
|
|
4113
4341
|
var require_CreateDefaultScenes = __commonJS({
|
|
4114
4342
|
"dist/useCases/CreateDefaultScenes.js"(exports, module) {
|
|
@@ -5439,6 +5667,44 @@ var require_OCRDocument = __commonJS({
|
|
|
5439
5667
|
}
|
|
5440
5668
|
});
|
|
5441
5669
|
|
|
5670
|
+
// dist/useCases/DescribeMyOrganization.js
|
|
5671
|
+
var require_DescribeMyOrganization = __commonJS({
|
|
5672
|
+
"dist/useCases/DescribeMyOrganization.js"(exports, module) {
|
|
5673
|
+
module.exports = /* @__PURE__ */ __name(function DescribeMyOrganization(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
5674
|
+
if (!requestData)
|
|
5675
|
+
requestData = {};
|
|
5676
|
+
const pathParams = null;
|
|
5677
|
+
const { data, query, headers } = requestData;
|
|
5678
|
+
let url = "/organizations/mine";
|
|
5679
|
+
if (pathParams && data) {
|
|
5680
|
+
for (const param of pathParams) {
|
|
5681
|
+
const paramName = param.replace(":", "");
|
|
5682
|
+
url = url.replace(param, data[paramName]);
|
|
5683
|
+
}
|
|
5684
|
+
}
|
|
5685
|
+
if (url.match(/:[a-zA-Z0-9]+/g)) {
|
|
5686
|
+
const missingParams = url.match(/:[a-zA-Z0-9]+/g);
|
|
5687
|
+
const missing = missingParams.map((param) => param.replace(":", ""));
|
|
5688
|
+
return Promise.reject(
|
|
5689
|
+
new Error("Missing parameters: " + missing.join(", "))
|
|
5690
|
+
);
|
|
5691
|
+
}
|
|
5692
|
+
const config = {
|
|
5693
|
+
method: "get",
|
|
5694
|
+
url,
|
|
5695
|
+
...httpConfigOptions
|
|
5696
|
+
};
|
|
5697
|
+
if (data)
|
|
5698
|
+
config.data = data;
|
|
5699
|
+
if (query)
|
|
5700
|
+
config.params = query;
|
|
5701
|
+
if (headers)
|
|
5702
|
+
config.headers = headers;
|
|
5703
|
+
return this._http.request(config);
|
|
5704
|
+
}, "DescribeMyOrganization");
|
|
5705
|
+
}
|
|
5706
|
+
});
|
|
5707
|
+
|
|
5442
5708
|
// dist/useCases/CreateOrganization.js
|
|
5443
5709
|
var require_CreateOrganization = __commonJS({
|
|
5444
5710
|
"dist/useCases/CreateOrganization.js"(exports, module) {
|
|
@@ -5591,15 +5857,15 @@ var require_ListOrganizations = __commonJS({
|
|
|
5591
5857
|
}
|
|
5592
5858
|
});
|
|
5593
5859
|
|
|
5594
|
-
// dist/useCases/
|
|
5595
|
-
var
|
|
5596
|
-
"dist/useCases/
|
|
5597
|
-
module.exports = /* @__PURE__ */ __name(function
|
|
5860
|
+
// dist/useCases/ListProperties.js
|
|
5861
|
+
var require_ListProperties = __commonJS({
|
|
5862
|
+
"dist/useCases/ListProperties.js"(exports, module) {
|
|
5863
|
+
module.exports = /* @__PURE__ */ __name(function ListProperties(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
5598
5864
|
if (!requestData)
|
|
5599
5865
|
requestData = {};
|
|
5600
5866
|
const pathParams = null;
|
|
5601
5867
|
const { data, query, headers } = requestData;
|
|
5602
|
-
let url = "/properties
|
|
5868
|
+
let url = "/properties";
|
|
5603
5869
|
if (pathParams && data) {
|
|
5604
5870
|
for (const param of pathParams) {
|
|
5605
5871
|
const paramName = param.replace(":", "");
|
|
@@ -5625,19 +5891,19 @@ var require_DescribeMyProperty = __commonJS({
|
|
|
5625
5891
|
if (headers)
|
|
5626
5892
|
config.headers = headers;
|
|
5627
5893
|
return this._http.request(config);
|
|
5628
|
-
}, "
|
|
5894
|
+
}, "ListProperties");
|
|
5629
5895
|
}
|
|
5630
5896
|
});
|
|
5631
5897
|
|
|
5632
|
-
// dist/useCases/
|
|
5633
|
-
var
|
|
5634
|
-
"dist/useCases/
|
|
5635
|
-
module.exports = /* @__PURE__ */ __name(function
|
|
5898
|
+
// dist/useCases/ListMyProperties.js
|
|
5899
|
+
var require_ListMyProperties = __commonJS({
|
|
5900
|
+
"dist/useCases/ListMyProperties.js"(exports, module) {
|
|
5901
|
+
module.exports = /* @__PURE__ */ __name(function ListMyProperties(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
|
|
5636
5902
|
if (!requestData)
|
|
5637
5903
|
requestData = {};
|
|
5638
5904
|
const pathParams = null;
|
|
5639
5905
|
const { data, query, headers } = requestData;
|
|
5640
|
-
let url = "/properties";
|
|
5906
|
+
let url = "/properties/mine";
|
|
5641
5907
|
if (pathParams && data) {
|
|
5642
5908
|
for (const param of pathParams) {
|
|
5643
5909
|
const paramName = param.replace(":", "");
|
|
@@ -5663,7 +5929,7 @@ var require_ListProperties = __commonJS({
|
|
|
5663
5929
|
if (headers)
|
|
5664
5930
|
config.headers = headers;
|
|
5665
5931
|
return this._http.request(config);
|
|
5666
|
-
}, "
|
|
5932
|
+
}, "ListMyProperties");
|
|
5667
5933
|
}
|
|
5668
5934
|
});
|
|
5669
5935
|
|
|
@@ -6945,7 +7211,7 @@ var require_axios = __commonJS({
|
|
|
6945
7211
|
}, "toJSONObject");
|
|
6946
7212
|
var isAsyncFn = kindOfTest("AsyncFunction");
|
|
6947
7213
|
var isThenable = /* @__PURE__ */ __name((thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch), "isThenable");
|
|
6948
|
-
var utils = {
|
|
7214
|
+
var utils$1 = {
|
|
6949
7215
|
isArray,
|
|
6950
7216
|
isArrayBuffer,
|
|
6951
7217
|
isBuffer,
|
|
@@ -7014,7 +7280,7 @@ var require_axios = __commonJS({
|
|
|
7014
7280
|
response && (this.response = response);
|
|
7015
7281
|
}
|
|
7016
7282
|
__name(AxiosError, "AxiosError");
|
|
7017
|
-
utils.inherits(AxiosError, Error, {
|
|
7283
|
+
utils$1.inherits(AxiosError, Error, {
|
|
7018
7284
|
toJSON: /* @__PURE__ */ __name(function toJSON() {
|
|
7019
7285
|
return {
|
|
7020
7286
|
// Standard
|
|
@@ -7029,7 +7295,7 @@ var require_axios = __commonJS({
|
|
|
7029
7295
|
columnNumber: this.columnNumber,
|
|
7030
7296
|
stack: this.stack,
|
|
7031
7297
|
// Axios
|
|
7032
|
-
config: utils.toJSONObject(this.config),
|
|
7298
|
+
config: utils$1.toJSONObject(this.config),
|
|
7033
7299
|
code: this.code,
|
|
7034
7300
|
status: this.response && this.response.status ? this.response.status : null
|
|
7035
7301
|
};
|
|
@@ -7058,7 +7324,7 @@ var require_axios = __commonJS({
|
|
|
7058
7324
|
Object.defineProperty(prototype$1, "isAxiosError", { value: true });
|
|
7059
7325
|
AxiosError.from = (error, code, config, request, response, customProps) => {
|
|
7060
7326
|
const axiosError = Object.create(prototype$1);
|
|
7061
|
-
utils.toFlatObject(error, axiosError, /* @__PURE__ */ __name(function filter(obj) {
|
|
7327
|
+
utils$1.toFlatObject(error, axiosError, /* @__PURE__ */ __name(function filter(obj) {
|
|
7062
7328
|
return obj !== Error.prototype;
|
|
7063
7329
|
}, "filter"), (prop) => {
|
|
7064
7330
|
return prop !== "isAxiosError";
|
|
@@ -7071,11 +7337,11 @@ var require_axios = __commonJS({
|
|
|
7071
7337
|
};
|
|
7072
7338
|
var httpAdapter = null;
|
|
7073
7339
|
function isVisitable(thing) {
|
|
7074
|
-
return utils.isPlainObject(thing) || utils.isArray(thing);
|
|
7340
|
+
return utils$1.isPlainObject(thing) || utils$1.isArray(thing);
|
|
7075
7341
|
}
|
|
7076
7342
|
__name(isVisitable, "isVisitable");
|
|
7077
7343
|
function removeBrackets(key) {
|
|
7078
|
-
return utils.endsWith(key, "[]") ? key.slice(0, -2) : key;
|
|
7344
|
+
return utils$1.endsWith(key, "[]") ? key.slice(0, -2) : key;
|
|
7079
7345
|
}
|
|
7080
7346
|
__name(removeBrackets, "removeBrackets");
|
|
7081
7347
|
function renderKey(path, key, dots) {
|
|
@@ -7088,43 +7354,43 @@ var require_axios = __commonJS({
|
|
|
7088
7354
|
}
|
|
7089
7355
|
__name(renderKey, "renderKey");
|
|
7090
7356
|
function isFlatArray(arr) {
|
|
7091
|
-
return utils.isArray(arr) && !arr.some(isVisitable);
|
|
7357
|
+
return utils$1.isArray(arr) && !arr.some(isVisitable);
|
|
7092
7358
|
}
|
|
7093
7359
|
__name(isFlatArray, "isFlatArray");
|
|
7094
|
-
var predicates = utils.toFlatObject(utils, {}, null, /* @__PURE__ */ __name(function filter(prop) {
|
|
7360
|
+
var predicates = utils$1.toFlatObject(utils$1, {}, null, /* @__PURE__ */ __name(function filter(prop) {
|
|
7095
7361
|
return /^is[A-Z]/.test(prop);
|
|
7096
7362
|
}, "filter"));
|
|
7097
7363
|
function toFormData(obj, formData, options) {
|
|
7098
|
-
if (!utils.isObject(obj)) {
|
|
7364
|
+
if (!utils$1.isObject(obj)) {
|
|
7099
7365
|
throw new TypeError("target must be an object");
|
|
7100
7366
|
}
|
|
7101
7367
|
formData = formData || new FormData();
|
|
7102
|
-
options = utils.toFlatObject(options, {
|
|
7368
|
+
options = utils$1.toFlatObject(options, {
|
|
7103
7369
|
metaTokens: true,
|
|
7104
7370
|
dots: false,
|
|
7105
7371
|
indexes: false
|
|
7106
7372
|
}, false, /* @__PURE__ */ __name(function defined(option, source) {
|
|
7107
|
-
return !utils.isUndefined(source[option]);
|
|
7373
|
+
return !utils$1.isUndefined(source[option]);
|
|
7108
7374
|
}, "defined"));
|
|
7109
7375
|
const metaTokens = options.metaTokens;
|
|
7110
7376
|
const visitor = options.visitor || defaultVisitor;
|
|
7111
7377
|
const dots = options.dots;
|
|
7112
7378
|
const indexes = options.indexes;
|
|
7113
7379
|
const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
|
|
7114
|
-
const useBlob = _Blob && utils.isSpecCompliantForm(formData);
|
|
7115
|
-
if (!utils.isFunction(visitor)) {
|
|
7380
|
+
const useBlob = _Blob && utils$1.isSpecCompliantForm(formData);
|
|
7381
|
+
if (!utils$1.isFunction(visitor)) {
|
|
7116
7382
|
throw new TypeError("visitor must be a function");
|
|
7117
7383
|
}
|
|
7118
7384
|
function convertValue(value) {
|
|
7119
7385
|
if (value === null)
|
|
7120
7386
|
return "";
|
|
7121
|
-
if (utils.isDate(value)) {
|
|
7387
|
+
if (utils$1.isDate(value)) {
|
|
7122
7388
|
return value.toISOString();
|
|
7123
7389
|
}
|
|
7124
|
-
if (!useBlob && utils.isBlob(value)) {
|
|
7390
|
+
if (!useBlob && utils$1.isBlob(value)) {
|
|
7125
7391
|
throw new AxiosError("Blob is not supported. Use a Buffer instead.");
|
|
7126
7392
|
}
|
|
7127
|
-
if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {
|
|
7393
|
+
if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) {
|
|
7128
7394
|
return useBlob && typeof Blob === "function" ? new Blob([value]) : Buffer.from(value);
|
|
7129
7395
|
}
|
|
7130
7396
|
return value;
|
|
@@ -7133,13 +7399,13 @@ var require_axios = __commonJS({
|
|
|
7133
7399
|
function defaultVisitor(value, key, path) {
|
|
7134
7400
|
let arr = value;
|
|
7135
7401
|
if (value && !path && typeof value === "object") {
|
|
7136
|
-
if (utils.endsWith(key, "{}")) {
|
|
7402
|
+
if (utils$1.endsWith(key, "{}")) {
|
|
7137
7403
|
key = metaTokens ? key : key.slice(0, -2);
|
|
7138
7404
|
value = JSON.stringify(value);
|
|
7139
|
-
} else if (utils.isArray(value) && isFlatArray(value) || (utils.isFileList(value) || utils.endsWith(key, "[]")) && (arr = utils.toArray(value))) {
|
|
7405
|
+
} else if (utils$1.isArray(value) && isFlatArray(value) || (utils$1.isFileList(value) || utils$1.endsWith(key, "[]")) && (arr = utils$1.toArray(value))) {
|
|
7140
7406
|
key = removeBrackets(key);
|
|
7141
7407
|
arr.forEach(/* @__PURE__ */ __name(function each(el, index) {
|
|
7142
|
-
!(utils.isUndefined(el) || el === null) && formData.append(
|
|
7408
|
+
!(utils$1.isUndefined(el) || el === null) && formData.append(
|
|
7143
7409
|
// eslint-disable-next-line no-nested-ternary
|
|
7144
7410
|
indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + "[]",
|
|
7145
7411
|
convertValue(el)
|
|
@@ -7162,17 +7428,17 @@ var require_axios = __commonJS({
|
|
|
7162
7428
|
isVisitable
|
|
7163
7429
|
});
|
|
7164
7430
|
function build(value, path) {
|
|
7165
|
-
if (utils.isUndefined(value))
|
|
7431
|
+
if (utils$1.isUndefined(value))
|
|
7166
7432
|
return;
|
|
7167
7433
|
if (stack.indexOf(value) !== -1) {
|
|
7168
7434
|
throw Error("Circular reference detected in " + path.join("."));
|
|
7169
7435
|
}
|
|
7170
7436
|
stack.push(value);
|
|
7171
|
-
utils.forEach(value, /* @__PURE__ */ __name(function each(el, key) {
|
|
7172
|
-
const result = !(utils.isUndefined(el) || el === null) && visitor.call(
|
|
7437
|
+
utils$1.forEach(value, /* @__PURE__ */ __name(function each(el, key) {
|
|
7438
|
+
const result = !(utils$1.isUndefined(el) || el === null) && visitor.call(
|
|
7173
7439
|
formData,
|
|
7174
7440
|
el,
|
|
7175
|
-
utils.isString(key) ? key.trim() : key,
|
|
7441
|
+
utils$1.isString(key) ? key.trim() : key,
|
|
7176
7442
|
path,
|
|
7177
7443
|
exposedHelpers
|
|
7178
7444
|
);
|
|
@@ -7183,7 +7449,7 @@ var require_axios = __commonJS({
|
|
|
7183
7449
|
stack.pop();
|
|
7184
7450
|
}
|
|
7185
7451
|
__name(build, "build");
|
|
7186
|
-
if (!utils.isObject(obj)) {
|
|
7452
|
+
if (!utils$1.isObject(obj)) {
|
|
7187
7453
|
throw new TypeError("data must be an object");
|
|
7188
7454
|
}
|
|
7189
7455
|
build(obj);
|
|
@@ -7236,7 +7502,7 @@ var require_axios = __commonJS({
|
|
|
7236
7502
|
if (serializeFn) {
|
|
7237
7503
|
serializedParams = serializeFn(params, options);
|
|
7238
7504
|
} else {
|
|
7239
|
-
serializedParams = utils.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, options).toString(_encode);
|
|
7505
|
+
serializedParams = utils$1.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, options).toString(_encode);
|
|
7240
7506
|
}
|
|
7241
7507
|
if (serializedParams) {
|
|
7242
7508
|
const hashmarkIndex = url.indexOf("#");
|
|
@@ -7305,7 +7571,7 @@ var require_axios = __commonJS({
|
|
|
7305
7571
|
* @returns {void}
|
|
7306
7572
|
*/
|
|
7307
7573
|
forEach(fn) {
|
|
7308
|
-
utils.forEach(this.handlers, /* @__PURE__ */ __name(function forEachHandler(h) {
|
|
7574
|
+
utils$1.forEach(this.handlers, /* @__PURE__ */ __name(function forEachHandler(h) {
|
|
7309
7575
|
if (h !== null) {
|
|
7310
7576
|
fn(h);
|
|
7311
7577
|
}
|
|
@@ -7321,32 +7587,37 @@ var require_axios = __commonJS({
|
|
|
7321
7587
|
var URLSearchParams$1 = typeof URLSearchParams !== "undefined" ? URLSearchParams : AxiosURLSearchParams;
|
|
7322
7588
|
var FormData$1 = typeof FormData !== "undefined" ? FormData : null;
|
|
7323
7589
|
var Blob$1 = typeof Blob !== "undefined" ? Blob : null;
|
|
7324
|
-
var
|
|
7325
|
-
let product;
|
|
7326
|
-
if (typeof navigator !== "undefined" && ((product = navigator.product) === "ReactNative" || product === "NativeScript" || product === "NS")) {
|
|
7327
|
-
return false;
|
|
7328
|
-
}
|
|
7329
|
-
return typeof window !== "undefined" && typeof document !== "undefined";
|
|
7330
|
-
})();
|
|
7331
|
-
var isStandardBrowserWebWorkerEnv = (() => {
|
|
7332
|
-
return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
|
|
7333
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
|
|
7334
|
-
})();
|
|
7335
|
-
var platform = {
|
|
7590
|
+
var platform$1 = {
|
|
7336
7591
|
isBrowser: true,
|
|
7337
7592
|
classes: {
|
|
7338
7593
|
URLSearchParams: URLSearchParams$1,
|
|
7339
7594
|
FormData: FormData$1,
|
|
7340
7595
|
Blob: Blob$1
|
|
7341
7596
|
},
|
|
7342
|
-
isStandardBrowserEnv,
|
|
7343
|
-
isStandardBrowserWebWorkerEnv,
|
|
7344
7597
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
7345
7598
|
};
|
|
7599
|
+
var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
|
|
7600
|
+
var hasStandardBrowserEnv = ((product) => {
|
|
7601
|
+
return hasBrowserEnv && ["ReactNative", "NativeScript", "NS"].indexOf(product) < 0;
|
|
7602
|
+
})(typeof navigator !== "undefined" && navigator.product);
|
|
7603
|
+
var hasStandardBrowserWebWorkerEnv = (() => {
|
|
7604
|
+
return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
|
|
7605
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
|
|
7606
|
+
})();
|
|
7607
|
+
var utils = /* @__PURE__ */ Object.freeze({
|
|
7608
|
+
__proto__: null,
|
|
7609
|
+
hasBrowserEnv,
|
|
7610
|
+
hasStandardBrowserWebWorkerEnv,
|
|
7611
|
+
hasStandardBrowserEnv
|
|
7612
|
+
});
|
|
7613
|
+
var platform = {
|
|
7614
|
+
...utils,
|
|
7615
|
+
...platform$1
|
|
7616
|
+
};
|
|
7346
7617
|
function toURLEncodedForm(data, options) {
|
|
7347
7618
|
return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
|
|
7348
7619
|
visitor: function(value, key, path, helpers) {
|
|
7349
|
-
if (platform.isNode && utils.isBuffer(value)) {
|
|
7620
|
+
if (platform.isNode && utils$1.isBuffer(value)) {
|
|
7350
7621
|
this.append(key, value.toString("base64"));
|
|
7351
7622
|
return false;
|
|
7352
7623
|
}
|
|
@@ -7356,7 +7627,7 @@ var require_axios = __commonJS({
|
|
|
7356
7627
|
}
|
|
7357
7628
|
__name(toURLEncodedForm, "toURLEncodedForm");
|
|
7358
7629
|
function parsePropPath(name) {
|
|
7359
|
-
return utils.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
|
|
7630
|
+
return utils$1.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
|
|
7360
7631
|
return match[0] === "[]" ? "" : match[1] || match[0];
|
|
7361
7632
|
});
|
|
7362
7633
|
}
|
|
@@ -7379,28 +7650,28 @@ var require_axios = __commonJS({
|
|
|
7379
7650
|
let name = path[index++];
|
|
7380
7651
|
const isNumericKey = Number.isFinite(+name);
|
|
7381
7652
|
const isLast = index >= path.length;
|
|
7382
|
-
name = !name && utils.isArray(target) ? target.length : name;
|
|
7653
|
+
name = !name && utils$1.isArray(target) ? target.length : name;
|
|
7383
7654
|
if (isLast) {
|
|
7384
|
-
if (utils.hasOwnProp(target, name)) {
|
|
7655
|
+
if (utils$1.hasOwnProp(target, name)) {
|
|
7385
7656
|
target[name] = [target[name], value];
|
|
7386
7657
|
} else {
|
|
7387
7658
|
target[name] = value;
|
|
7388
7659
|
}
|
|
7389
7660
|
return !isNumericKey;
|
|
7390
7661
|
}
|
|
7391
|
-
if (!target[name] || !utils.isObject(target[name])) {
|
|
7662
|
+
if (!target[name] || !utils$1.isObject(target[name])) {
|
|
7392
7663
|
target[name] = [];
|
|
7393
7664
|
}
|
|
7394
7665
|
const result = buildPath(path, value, target[name], index);
|
|
7395
|
-
if (result && utils.isArray(target[name])) {
|
|
7666
|
+
if (result && utils$1.isArray(target[name])) {
|
|
7396
7667
|
target[name] = arrayToObject(target[name]);
|
|
7397
7668
|
}
|
|
7398
7669
|
return !isNumericKey;
|
|
7399
7670
|
}
|
|
7400
7671
|
__name(buildPath, "buildPath");
|
|
7401
|
-
if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {
|
|
7672
|
+
if (utils$1.isFormData(formData) && utils$1.isFunction(formData.entries)) {
|
|
7402
7673
|
const obj = {};
|
|
7403
|
-
utils.forEachEntry(formData, (name, value) => {
|
|
7674
|
+
utils$1.forEachEntry(formData, (name, value) => {
|
|
7404
7675
|
buildPath(parsePropPath(name), value, obj, 0);
|
|
7405
7676
|
});
|
|
7406
7677
|
return obj;
|
|
@@ -7409,10 +7680,10 @@ var require_axios = __commonJS({
|
|
|
7409
7680
|
}
|
|
7410
7681
|
__name(formDataToJSON, "formDataToJSON");
|
|
7411
7682
|
function stringifySafely(rawValue, parser, encoder) {
|
|
7412
|
-
if (utils.isString(rawValue)) {
|
|
7683
|
+
if (utils$1.isString(rawValue)) {
|
|
7413
7684
|
try {
|
|
7414
7685
|
(parser || JSON.parse)(rawValue);
|
|
7415
|
-
return utils.trim(rawValue);
|
|
7686
|
+
return utils$1.trim(rawValue);
|
|
7416
7687
|
} catch (e) {
|
|
7417
7688
|
if (e.name !== "SyntaxError") {
|
|
7418
7689
|
throw e;
|
|
@@ -7428,24 +7699,24 @@ var require_axios = __commonJS({
|
|
|
7428
7699
|
transformRequest: [/* @__PURE__ */ __name(function transformRequest(data, headers) {
|
|
7429
7700
|
const contentType = headers.getContentType() || "";
|
|
7430
7701
|
const hasJSONContentType = contentType.indexOf("application/json") > -1;
|
|
7431
|
-
const isObjectPayload = utils.isObject(data);
|
|
7432
|
-
if (isObjectPayload && utils.isHTMLForm(data)) {
|
|
7702
|
+
const isObjectPayload = utils$1.isObject(data);
|
|
7703
|
+
if (isObjectPayload && utils$1.isHTMLForm(data)) {
|
|
7433
7704
|
data = new FormData(data);
|
|
7434
7705
|
}
|
|
7435
|
-
const isFormData2 = utils.isFormData(data);
|
|
7706
|
+
const isFormData2 = utils$1.isFormData(data);
|
|
7436
7707
|
if (isFormData2) {
|
|
7437
7708
|
if (!hasJSONContentType) {
|
|
7438
7709
|
return data;
|
|
7439
7710
|
}
|
|
7440
7711
|
return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
|
|
7441
7712
|
}
|
|
7442
|
-
if (utils.isArrayBuffer(data) || utils.isBuffer(data) || utils.isStream(data) || utils.isFile(data) || utils.isBlob(data)) {
|
|
7713
|
+
if (utils$1.isArrayBuffer(data) || utils$1.isBuffer(data) || utils$1.isStream(data) || utils$1.isFile(data) || utils$1.isBlob(data)) {
|
|
7443
7714
|
return data;
|
|
7444
7715
|
}
|
|
7445
|
-
if (utils.isArrayBufferView(data)) {
|
|
7716
|
+
if (utils$1.isArrayBufferView(data)) {
|
|
7446
7717
|
return data.buffer;
|
|
7447
7718
|
}
|
|
7448
|
-
if (utils.isURLSearchParams(data)) {
|
|
7719
|
+
if (utils$1.isURLSearchParams(data)) {
|
|
7449
7720
|
headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
|
|
7450
7721
|
return data.toString();
|
|
7451
7722
|
}
|
|
@@ -7454,7 +7725,7 @@ var require_axios = __commonJS({
|
|
|
7454
7725
|
if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
|
|
7455
7726
|
return toURLEncodedForm(data, this.formSerializer).toString();
|
|
7456
7727
|
}
|
|
7457
|
-
if ((isFileList2 = utils.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
7728
|
+
if ((isFileList2 = utils$1.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
7458
7729
|
const _FormData = this.env && this.env.FormData;
|
|
7459
7730
|
return toFormData(
|
|
7460
7731
|
isFileList2 ? { "files[]": data } : data,
|
|
@@ -7473,7 +7744,7 @@ var require_axios = __commonJS({
|
|
|
7473
7744
|
const transitional = this.transitional || defaults.transitional;
|
|
7474
7745
|
const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
|
7475
7746
|
const JSONRequested = this.responseType === "json";
|
|
7476
|
-
if (data && utils.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
|
7747
|
+
if (data && utils$1.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
|
7477
7748
|
const silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
7478
7749
|
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
7479
7750
|
try {
|
|
@@ -7512,11 +7783,11 @@ var require_axios = __commonJS({
|
|
|
7512
7783
|
}
|
|
7513
7784
|
}
|
|
7514
7785
|
};
|
|
7515
|
-
utils.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
|
|
7786
|
+
utils$1.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
|
|
7516
7787
|
defaults.headers[method] = {};
|
|
7517
7788
|
});
|
|
7518
7789
|
var defaults$1 = defaults;
|
|
7519
|
-
var ignoreDuplicateOf = utils.toObjectSet([
|
|
7790
|
+
var ignoreDuplicateOf = utils$1.toObjectSet([
|
|
7520
7791
|
"age",
|
|
7521
7792
|
"authorization",
|
|
7522
7793
|
"content-length",
|
|
@@ -7568,7 +7839,7 @@ var require_axios = __commonJS({
|
|
|
7568
7839
|
if (value === false || value == null) {
|
|
7569
7840
|
return value;
|
|
7570
7841
|
}
|
|
7571
|
-
return utils.isArray(value) ? value.map(normalizeValue) : String(value);
|
|
7842
|
+
return utils$1.isArray(value) ? value.map(normalizeValue) : String(value);
|
|
7572
7843
|
}
|
|
7573
7844
|
__name(normalizeValue, "normalizeValue");
|
|
7574
7845
|
function parseTokens(str) {
|
|
@@ -7583,18 +7854,18 @@ var require_axios = __commonJS({
|
|
|
7583
7854
|
__name(parseTokens, "parseTokens");
|
|
7584
7855
|
var isValidHeaderName = /* @__PURE__ */ __name((str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim()), "isValidHeaderName");
|
|
7585
7856
|
function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
|
|
7586
|
-
if (utils.isFunction(filter)) {
|
|
7857
|
+
if (utils$1.isFunction(filter)) {
|
|
7587
7858
|
return filter.call(this, value, header);
|
|
7588
7859
|
}
|
|
7589
7860
|
if (isHeaderNameFilter) {
|
|
7590
7861
|
value = header;
|
|
7591
7862
|
}
|
|
7592
|
-
if (!utils.isString(value))
|
|
7863
|
+
if (!utils$1.isString(value))
|
|
7593
7864
|
return;
|
|
7594
|
-
if (utils.isString(filter)) {
|
|
7865
|
+
if (utils$1.isString(filter)) {
|
|
7595
7866
|
return value.indexOf(filter) !== -1;
|
|
7596
7867
|
}
|
|
7597
|
-
if (utils.isRegExp(filter)) {
|
|
7868
|
+
if (utils$1.isRegExp(filter)) {
|
|
7598
7869
|
return filter.test(value);
|
|
7599
7870
|
}
|
|
7600
7871
|
}
|
|
@@ -7606,7 +7877,7 @@ var require_axios = __commonJS({
|
|
|
7606
7877
|
}
|
|
7607
7878
|
__name(formatHeader, "formatHeader");
|
|
7608
7879
|
function buildAccessors(obj, header) {
|
|
7609
|
-
const accessorName = utils.toCamelCase(" " + header);
|
|
7880
|
+
const accessorName = utils$1.toCamelCase(" " + header);
|
|
7610
7881
|
["get", "set", "has"].forEach((methodName) => {
|
|
7611
7882
|
Object.defineProperty(obj, methodName + accessorName, {
|
|
7612
7883
|
value: function(arg1, arg2, arg3) {
|
|
@@ -7631,16 +7902,16 @@ var require_axios = __commonJS({
|
|
|
7631
7902
|
if (!lHeader) {
|
|
7632
7903
|
throw new Error("header name must be a non-empty string");
|
|
7633
7904
|
}
|
|
7634
|
-
const key = utils.findKey(self2, lHeader);
|
|
7905
|
+
const key = utils$1.findKey(self2, lHeader);
|
|
7635
7906
|
if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
|
|
7636
7907
|
self2[key || _header] = normalizeValue(_value);
|
|
7637
7908
|
}
|
|
7638
7909
|
}
|
|
7639
7910
|
__name(setHeader, "setHeader");
|
|
7640
|
-
const setHeaders = /* @__PURE__ */ __name((headers, _rewrite) => utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite)), "setHeaders");
|
|
7641
|
-
if (utils.isPlainObject(header) || header instanceof this.constructor) {
|
|
7911
|
+
const setHeaders = /* @__PURE__ */ __name((headers, _rewrite) => utils$1.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite)), "setHeaders");
|
|
7912
|
+
if (utils$1.isPlainObject(header) || header instanceof this.constructor) {
|
|
7642
7913
|
setHeaders(header, valueOrRewrite);
|
|
7643
|
-
} else if (utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
7914
|
+
} else if (utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
7644
7915
|
setHeaders(parseHeaders(header), valueOrRewrite);
|
|
7645
7916
|
} else {
|
|
7646
7917
|
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
@@ -7650,7 +7921,7 @@ var require_axios = __commonJS({
|
|
|
7650
7921
|
get(header, parser) {
|
|
7651
7922
|
header = normalizeHeader(header);
|
|
7652
7923
|
if (header) {
|
|
7653
|
-
const key = utils.findKey(this, header);
|
|
7924
|
+
const key = utils$1.findKey(this, header);
|
|
7654
7925
|
if (key) {
|
|
7655
7926
|
const value = this[key];
|
|
7656
7927
|
if (!parser) {
|
|
@@ -7659,10 +7930,10 @@ var require_axios = __commonJS({
|
|
|
7659
7930
|
if (parser === true) {
|
|
7660
7931
|
return parseTokens(value);
|
|
7661
7932
|
}
|
|
7662
|
-
if (utils.isFunction(parser)) {
|
|
7933
|
+
if (utils$1.isFunction(parser)) {
|
|
7663
7934
|
return parser.call(this, value, key);
|
|
7664
7935
|
}
|
|
7665
|
-
if (utils.isRegExp(parser)) {
|
|
7936
|
+
if (utils$1.isRegExp(parser)) {
|
|
7666
7937
|
return parser.exec(value);
|
|
7667
7938
|
}
|
|
7668
7939
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
@@ -7672,7 +7943,7 @@ var require_axios = __commonJS({
|
|
|
7672
7943
|
has(header, matcher) {
|
|
7673
7944
|
header = normalizeHeader(header);
|
|
7674
7945
|
if (header) {
|
|
7675
|
-
const key = utils.findKey(this, header);
|
|
7946
|
+
const key = utils$1.findKey(this, header);
|
|
7676
7947
|
return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
|
7677
7948
|
}
|
|
7678
7949
|
return false;
|
|
@@ -7683,7 +7954,7 @@ var require_axios = __commonJS({
|
|
|
7683
7954
|
function deleteHeader(_header) {
|
|
7684
7955
|
_header = normalizeHeader(_header);
|
|
7685
7956
|
if (_header) {
|
|
7686
|
-
const key = utils.findKey(self2, _header);
|
|
7957
|
+
const key = utils$1.findKey(self2, _header);
|
|
7687
7958
|
if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
|
|
7688
7959
|
delete self2[key];
|
|
7689
7960
|
deleted = true;
|
|
@@ -7691,7 +7962,7 @@ var require_axios = __commonJS({
|
|
|
7691
7962
|
}
|
|
7692
7963
|
}
|
|
7693
7964
|
__name(deleteHeader, "deleteHeader");
|
|
7694
|
-
if (utils.isArray(header)) {
|
|
7965
|
+
if (utils$1.isArray(header)) {
|
|
7695
7966
|
header.forEach(deleteHeader);
|
|
7696
7967
|
} else {
|
|
7697
7968
|
deleteHeader(header);
|
|
@@ -7714,8 +7985,8 @@ var require_axios = __commonJS({
|
|
|
7714
7985
|
normalize(format) {
|
|
7715
7986
|
const self2 = this;
|
|
7716
7987
|
const headers = {};
|
|
7717
|
-
utils.forEach(this, (value, header) => {
|
|
7718
|
-
const key = utils.findKey(headers, header);
|
|
7988
|
+
utils$1.forEach(this, (value, header) => {
|
|
7989
|
+
const key = utils$1.findKey(headers, header);
|
|
7719
7990
|
if (key) {
|
|
7720
7991
|
self2[key] = normalizeValue(value);
|
|
7721
7992
|
delete self2[header];
|
|
@@ -7735,8 +8006,8 @@ var require_axios = __commonJS({
|
|
|
7735
8006
|
}
|
|
7736
8007
|
toJSON(asStrings) {
|
|
7737
8008
|
const obj = /* @__PURE__ */ Object.create(null);
|
|
7738
|
-
utils.forEach(this, (value, header) => {
|
|
7739
|
-
value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(", ") : value);
|
|
8009
|
+
utils$1.forEach(this, (value, header) => {
|
|
8010
|
+
value != null && value !== false && (obj[header] = asStrings && utils$1.isArray(value) ? value.join(", ") : value);
|
|
7740
8011
|
});
|
|
7741
8012
|
return obj;
|
|
7742
8013
|
}
|
|
@@ -7771,12 +8042,12 @@ var require_axios = __commonJS({
|
|
|
7771
8042
|
}
|
|
7772
8043
|
}
|
|
7773
8044
|
__name(defineAccessor, "defineAccessor");
|
|
7774
|
-
utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
|
8045
|
+
utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
|
7775
8046
|
return this;
|
|
7776
8047
|
}
|
|
7777
8048
|
};
|
|
7778
8049
|
AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
7779
|
-
utils.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
8050
|
+
utils$1.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key) => {
|
|
7780
8051
|
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
7781
8052
|
return {
|
|
7782
8053
|
get: () => value,
|
|
@@ -7785,14 +8056,14 @@ var require_axios = __commonJS({
|
|
|
7785
8056
|
}
|
|
7786
8057
|
};
|
|
7787
8058
|
});
|
|
7788
|
-
utils.freezeMethods(AxiosHeaders);
|
|
8059
|
+
utils$1.freezeMethods(AxiosHeaders);
|
|
7789
8060
|
var AxiosHeaders$1 = AxiosHeaders;
|
|
7790
8061
|
function transformData(fns, response) {
|
|
7791
8062
|
const config = this || defaults$1;
|
|
7792
8063
|
const context = response || config;
|
|
7793
8064
|
const headers = AxiosHeaders$1.from(context.headers);
|
|
7794
8065
|
let data = context.data;
|
|
7795
|
-
utils.forEach(fns, /* @__PURE__ */ __name(function transform(fn) {
|
|
8066
|
+
utils$1.forEach(fns, /* @__PURE__ */ __name(function transform(fn) {
|
|
7796
8067
|
data = fn.call(config, data, headers.normalize(), response ? response.status : void 0);
|
|
7797
8068
|
}, "transform"));
|
|
7798
8069
|
headers.normalize();
|
|
@@ -7808,7 +8079,7 @@ var require_axios = __commonJS({
|
|
|
7808
8079
|
this.name = "CanceledError";
|
|
7809
8080
|
}
|
|
7810
8081
|
__name(CanceledError, "CanceledError");
|
|
7811
|
-
utils.inherits(CanceledError, AxiosError, {
|
|
8082
|
+
utils$1.inherits(CanceledError, AxiosError, {
|
|
7812
8083
|
__CANCEL__: true
|
|
7813
8084
|
});
|
|
7814
8085
|
function settle(resolve, reject, response) {
|
|
@@ -7826,20 +8097,20 @@ var require_axios = __commonJS({
|
|
|
7826
8097
|
}
|
|
7827
8098
|
}
|
|
7828
8099
|
__name(settle, "settle");
|
|
7829
|
-
var cookies = platform.
|
|
8100
|
+
var cookies = platform.hasStandardBrowserEnv ? (
|
|
7830
8101
|
// Standard browser envs support document.cookie
|
|
7831
8102
|
(/* @__PURE__ */ __name(function standardBrowserEnv() {
|
|
7832
8103
|
return {
|
|
7833
8104
|
write: /* @__PURE__ */ __name(function write(name, value, expires, path, domain, secure) {
|
|
7834
8105
|
const cookie = [];
|
|
7835
8106
|
cookie.push(name + "=" + encodeURIComponent(value));
|
|
7836
|
-
if (utils.isNumber(expires)) {
|
|
8107
|
+
if (utils$1.isNumber(expires)) {
|
|
7837
8108
|
cookie.push("expires=" + new Date(expires).toGMTString());
|
|
7838
8109
|
}
|
|
7839
|
-
if (utils.isString(path)) {
|
|
8110
|
+
if (utils$1.isString(path)) {
|
|
7840
8111
|
cookie.push("path=" + path);
|
|
7841
8112
|
}
|
|
7842
|
-
if (utils.isString(domain)) {
|
|
8113
|
+
if (utils$1.isString(domain)) {
|
|
7843
8114
|
cookie.push("domain=" + domain);
|
|
7844
8115
|
}
|
|
7845
8116
|
if (secure === true) {
|
|
@@ -7885,7 +8156,7 @@ var require_axios = __commonJS({
|
|
|
7885
8156
|
return requestedURL;
|
|
7886
8157
|
}
|
|
7887
8158
|
__name(buildFullPath, "buildFullPath");
|
|
7888
|
-
var isURLSameOrigin = platform.
|
|
8159
|
+
var isURLSameOrigin = platform.hasStandardBrowserEnv ? (
|
|
7889
8160
|
// Standard browser envs have full support of the APIs needed to test
|
|
7890
8161
|
// whether the request URL is of the same origin as current location.
|
|
7891
8162
|
(/* @__PURE__ */ __name(function standardBrowserEnv() {
|
|
@@ -7913,7 +8184,7 @@ var require_axios = __commonJS({
|
|
|
7913
8184
|
__name(resolveURL, "resolveURL");
|
|
7914
8185
|
originURL = resolveURL(window.location.href);
|
|
7915
8186
|
return /* @__PURE__ */ __name(function isURLSameOrigin2(requestURL) {
|
|
7916
|
-
const parsed = utils.isString(requestURL) ? resolveURL(requestURL) : requestURL;
|
|
8187
|
+
const parsed = utils$1.isString(requestURL) ? resolveURL(requestURL) : requestURL;
|
|
7917
8188
|
return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
|
|
7918
8189
|
}, "isURLSameOrigin");
|
|
7919
8190
|
}, "standardBrowserEnv"))()
|
|
@@ -8005,13 +8276,12 @@ var require_axios = __commonJS({
|
|
|
8005
8276
|
}
|
|
8006
8277
|
__name(done, "done");
|
|
8007
8278
|
let contentType;
|
|
8008
|
-
if (utils.isFormData(requestData)) {
|
|
8009
|
-
if (platform.
|
|
8279
|
+
if (utils$1.isFormData(requestData)) {
|
|
8280
|
+
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
|
|
8010
8281
|
requestHeaders.setContentType(false);
|
|
8011
|
-
} else if (
|
|
8012
|
-
|
|
8013
|
-
|
|
8014
|
-
requestHeaders.setContentType(contentType.replace(/^\s*(multipart\/form-data);+/, "$1"));
|
|
8282
|
+
} else if ((contentType = requestHeaders.getContentType()) !== false) {
|
|
8283
|
+
const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];
|
|
8284
|
+
requestHeaders.setContentType([type || "multipart/form-data", ...tokens].join("; "));
|
|
8015
8285
|
}
|
|
8016
8286
|
}
|
|
8017
8287
|
let request = new XMLHttpRequest();
|
|
@@ -8087,19 +8357,19 @@ var require_axios = __commonJS({
|
|
|
8087
8357
|
));
|
|
8088
8358
|
request = null;
|
|
8089
8359
|
}, "handleTimeout");
|
|
8090
|
-
if (platform.
|
|
8091
|
-
const xsrfValue =
|
|
8360
|
+
if (platform.hasStandardBrowserEnv) {
|
|
8361
|
+
const xsrfValue = isURLSameOrigin(fullPath) && config.xsrfCookieName && cookies.read(config.xsrfCookieName);
|
|
8092
8362
|
if (xsrfValue) {
|
|
8093
8363
|
requestHeaders.set(config.xsrfHeaderName, xsrfValue);
|
|
8094
8364
|
}
|
|
8095
8365
|
}
|
|
8096
8366
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
8097
8367
|
if ("setRequestHeader" in request) {
|
|
8098
|
-
utils.forEach(requestHeaders.toJSON(), /* @__PURE__ */ __name(function setRequestHeader(val, key) {
|
|
8368
|
+
utils$1.forEach(requestHeaders.toJSON(), /* @__PURE__ */ __name(function setRequestHeader(val, key) {
|
|
8099
8369
|
request.setRequestHeader(key, val);
|
|
8100
8370
|
}, "setRequestHeader"));
|
|
8101
8371
|
}
|
|
8102
|
-
if (!utils.isUndefined(config.withCredentials)) {
|
|
8372
|
+
if (!utils$1.isUndefined(config.withCredentials)) {
|
|
8103
8373
|
request.withCredentials = !!config.withCredentials;
|
|
8104
8374
|
}
|
|
8105
8375
|
if (responseType && responseType !== "json") {
|
|
@@ -8137,7 +8407,7 @@ var require_axios = __commonJS({
|
|
|
8137
8407
|
http: httpAdapter,
|
|
8138
8408
|
xhr: xhrAdapter
|
|
8139
8409
|
};
|
|
8140
|
-
utils.forEach(knownAdapters, (fn, value) => {
|
|
8410
|
+
utils$1.forEach(knownAdapters, (fn, value) => {
|
|
8141
8411
|
if (fn) {
|
|
8142
8412
|
try {
|
|
8143
8413
|
Object.defineProperty(fn, "name", { value });
|
|
@@ -8147,10 +8417,10 @@ var require_axios = __commonJS({
|
|
|
8147
8417
|
}
|
|
8148
8418
|
});
|
|
8149
8419
|
var renderReason = /* @__PURE__ */ __name((reason) => `- ${reason}`, "renderReason");
|
|
8150
|
-
var isResolvedHandle = /* @__PURE__ */ __name((adapter) => utils.isFunction(adapter) || adapter === null || adapter === false, "isResolvedHandle");
|
|
8420
|
+
var isResolvedHandle = /* @__PURE__ */ __name((adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false, "isResolvedHandle");
|
|
8151
8421
|
var adapters = {
|
|
8152
8422
|
getAdapter: (adapters2) => {
|
|
8153
|
-
adapters2 = utils.isArray(adapters2) ? adapters2 : [adapters2];
|
|
8423
|
+
adapters2 = utils$1.isArray(adapters2) ? adapters2 : [adapters2];
|
|
8154
8424
|
const { length } = adapters2;
|
|
8155
8425
|
let nameOrAdapter;
|
|
8156
8426
|
let adapter;
|
|
@@ -8234,34 +8504,34 @@ var require_axios = __commonJS({
|
|
|
8234
8504
|
config2 = config2 || {};
|
|
8235
8505
|
const config = {};
|
|
8236
8506
|
function getMergedValue(target, source, caseless) {
|
|
8237
|
-
if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
|
|
8238
|
-
return utils.merge.call({ caseless }, target, source);
|
|
8239
|
-
} else if (utils.isPlainObject(source)) {
|
|
8240
|
-
return utils.merge({}, source);
|
|
8241
|
-
} else if (utils.isArray(source)) {
|
|
8507
|
+
if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
|
|
8508
|
+
return utils$1.merge.call({ caseless }, target, source);
|
|
8509
|
+
} else if (utils$1.isPlainObject(source)) {
|
|
8510
|
+
return utils$1.merge({}, source);
|
|
8511
|
+
} else if (utils$1.isArray(source)) {
|
|
8242
8512
|
return source.slice();
|
|
8243
8513
|
}
|
|
8244
8514
|
return source;
|
|
8245
8515
|
}
|
|
8246
8516
|
__name(getMergedValue, "getMergedValue");
|
|
8247
8517
|
function mergeDeepProperties(a, b, caseless) {
|
|
8248
|
-
if (!utils.isUndefined(b)) {
|
|
8518
|
+
if (!utils$1.isUndefined(b)) {
|
|
8249
8519
|
return getMergedValue(a, b, caseless);
|
|
8250
|
-
} else if (!utils.isUndefined(a)) {
|
|
8520
|
+
} else if (!utils$1.isUndefined(a)) {
|
|
8251
8521
|
return getMergedValue(void 0, a, caseless);
|
|
8252
8522
|
}
|
|
8253
8523
|
}
|
|
8254
8524
|
__name(mergeDeepProperties, "mergeDeepProperties");
|
|
8255
8525
|
function valueFromConfig2(a, b) {
|
|
8256
|
-
if (!utils.isUndefined(b)) {
|
|
8526
|
+
if (!utils$1.isUndefined(b)) {
|
|
8257
8527
|
return getMergedValue(void 0, b);
|
|
8258
8528
|
}
|
|
8259
8529
|
}
|
|
8260
8530
|
__name(valueFromConfig2, "valueFromConfig2");
|
|
8261
8531
|
function defaultToConfig2(a, b) {
|
|
8262
|
-
if (!utils.isUndefined(b)) {
|
|
8532
|
+
if (!utils$1.isUndefined(b)) {
|
|
8263
8533
|
return getMergedValue(void 0, b);
|
|
8264
|
-
} else if (!utils.isUndefined(a)) {
|
|
8534
|
+
} else if (!utils$1.isUndefined(a)) {
|
|
8265
8535
|
return getMergedValue(void 0, a);
|
|
8266
8536
|
}
|
|
8267
8537
|
}
|
|
@@ -8304,15 +8574,15 @@ var require_axios = __commonJS({
|
|
|
8304
8574
|
validateStatus: mergeDirectKeys,
|
|
8305
8575
|
headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
|
|
8306
8576
|
};
|
|
8307
|
-
utils.forEach(Object.keys(Object.assign({}, config1, config2)), /* @__PURE__ */ __name(function computeConfigValue(prop) {
|
|
8577
|
+
utils$1.forEach(Object.keys(Object.assign({}, config1, config2)), /* @__PURE__ */ __name(function computeConfigValue(prop) {
|
|
8308
8578
|
const merge2 = mergeMap[prop] || mergeDeepProperties;
|
|
8309
8579
|
const configValue = merge2(config1[prop], config2[prop], prop);
|
|
8310
|
-
utils.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
8580
|
+
utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
8311
8581
|
}, "computeConfigValue"));
|
|
8312
8582
|
return config;
|
|
8313
8583
|
}
|
|
8314
8584
|
__name(mergeConfig, "mergeConfig");
|
|
8315
|
-
var VERSION = "1.
|
|
8585
|
+
var VERSION = "1.6.1";
|
|
8316
8586
|
var validators$1 = {};
|
|
8317
8587
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
8318
8588
|
validators$1[type] = /* @__PURE__ */ __name(function validator2(thing) {
|
|
@@ -8408,7 +8678,7 @@ var require_axios = __commonJS({
|
|
|
8408
8678
|
}, false);
|
|
8409
8679
|
}
|
|
8410
8680
|
if (paramsSerializer != null) {
|
|
8411
|
-
if (utils.isFunction(paramsSerializer)) {
|
|
8681
|
+
if (utils$1.isFunction(paramsSerializer)) {
|
|
8412
8682
|
config.paramsSerializer = {
|
|
8413
8683
|
serialize: paramsSerializer
|
|
8414
8684
|
};
|
|
@@ -8420,11 +8690,11 @@ var require_axios = __commonJS({
|
|
|
8420
8690
|
}
|
|
8421
8691
|
}
|
|
8422
8692
|
config.method = (config.method || this.defaults.method || "get").toLowerCase();
|
|
8423
|
-
let contextHeaders = headers && utils.merge(
|
|
8693
|
+
let contextHeaders = headers && utils$1.merge(
|
|
8424
8694
|
headers.common,
|
|
8425
8695
|
headers[config.method]
|
|
8426
8696
|
);
|
|
8427
|
-
headers && utils.forEach(
|
|
8697
|
+
headers && utils$1.forEach(
|
|
8428
8698
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
8429
8699
|
(method) => {
|
|
8430
8700
|
delete headers[method];
|
|
@@ -8489,7 +8759,7 @@ var require_axios = __commonJS({
|
|
|
8489
8759
|
return buildURL(fullPath, config.params, config.paramsSerializer);
|
|
8490
8760
|
}
|
|
8491
8761
|
};
|
|
8492
|
-
utils.forEach(["delete", "get", "head", "options"], /* @__PURE__ */ __name(function forEachMethodNoData(method) {
|
|
8762
|
+
utils$1.forEach(["delete", "get", "head", "options"], /* @__PURE__ */ __name(function forEachMethodNoData(method) {
|
|
8493
8763
|
Axios.prototype[method] = function(url, config) {
|
|
8494
8764
|
return this.request(mergeConfig(config || {}, {
|
|
8495
8765
|
method,
|
|
@@ -8498,7 +8768,7 @@ var require_axios = __commonJS({
|
|
|
8498
8768
|
}));
|
|
8499
8769
|
};
|
|
8500
8770
|
}, "forEachMethodNoData"));
|
|
8501
|
-
utils.forEach(["post", "put", "patch"], /* @__PURE__ */ __name(function forEachMethodWithData(method) {
|
|
8771
|
+
utils$1.forEach(["post", "put", "patch"], /* @__PURE__ */ __name(function forEachMethodWithData(method) {
|
|
8502
8772
|
function generateHTTPMethod(isForm) {
|
|
8503
8773
|
return /* @__PURE__ */ __name(function httpMethod(url, data, config) {
|
|
8504
8774
|
return this.request(mergeConfig(config || {}, {
|
|
@@ -8614,7 +8884,7 @@ var require_axios = __commonJS({
|
|
|
8614
8884
|
}
|
|
8615
8885
|
__name(spread, "spread");
|
|
8616
8886
|
function isAxiosError(payload) {
|
|
8617
|
-
return utils.isObject(payload) && payload.isAxiosError === true;
|
|
8887
|
+
return utils$1.isObject(payload) && payload.isAxiosError === true;
|
|
8618
8888
|
}
|
|
8619
8889
|
__name(isAxiosError, "isAxiosError");
|
|
8620
8890
|
var HttpStatusCode = {
|
|
@@ -8689,8 +8959,8 @@ var require_axios = __commonJS({
|
|
|
8689
8959
|
function createInstance(defaultConfig) {
|
|
8690
8960
|
const context = new Axios$1(defaultConfig);
|
|
8691
8961
|
const instance = bind(Axios$1.prototype.request, context);
|
|
8692
|
-
utils.extend(instance, Axios$1.prototype, context, { allOwnKeys: true });
|
|
8693
|
-
utils.extend(instance, context, null, { allOwnKeys: true });
|
|
8962
|
+
utils$1.extend(instance, Axios$1.prototype, context, { allOwnKeys: true });
|
|
8963
|
+
utils$1.extend(instance, context, null, { allOwnKeys: true });
|
|
8694
8964
|
instance.create = /* @__PURE__ */ __name(function create(instanceConfig) {
|
|
8695
8965
|
return createInstance(mergeConfig(defaultConfig, instanceConfig));
|
|
8696
8966
|
}, "create");
|
|
@@ -8713,7 +8983,7 @@ var require_axios = __commonJS({
|
|
|
8713
8983
|
axios.isAxiosError = isAxiosError;
|
|
8714
8984
|
axios.mergeConfig = mergeConfig;
|
|
8715
8985
|
axios.AxiosHeaders = AxiosHeaders$1;
|
|
8716
|
-
axios.formToJSON = (thing) => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);
|
|
8986
|
+
axios.formToJSON = (thing) => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
|
|
8717
8987
|
axios.getAdapter = adapters.getAdapter;
|
|
8718
8988
|
axios.HttpStatusCode = HttpStatusCode$1;
|
|
8719
8989
|
axios.default = axios;
|
|
@@ -8724,12 +8994,13 @@ var require_axios = __commonJS({
|
|
|
8724
8994
|
// src/Client/index.js
|
|
8725
8995
|
var require_Client = __commonJS({
|
|
8726
8996
|
"src/Client/index.js"(exports, module) {
|
|
8727
|
-
var
|
|
8997
|
+
var LoginStart = require_LoginStart();
|
|
8728
8998
|
var RefreshToken = require_RefreshToken();
|
|
8729
|
-
var
|
|
8730
|
-
var
|
|
8731
|
-
var RequestPWAToken = require_RequestPWAToken();
|
|
8999
|
+
var LoginFinish = require_LoginFinish();
|
|
9000
|
+
var RequestLoginToken = require_RequestLoginToken();
|
|
8732
9001
|
var LogoutUser = require_LogoutUser();
|
|
9002
|
+
var StartRegisterPasskey = require_StartRegisterPasskey();
|
|
9003
|
+
var FinishRegisterPasskey = require_FinishRegisterPasskey();
|
|
8733
9004
|
var DescribeSelf = require_DescribeSelf();
|
|
8734
9005
|
var DescribeUser = require_DescribeUser();
|
|
8735
9006
|
var CreateUser = require_CreateUser();
|
|
@@ -8745,6 +9016,7 @@ var require_Client = __commonJS({
|
|
|
8745
9016
|
var ListUserOrders = require_ListUserOrders();
|
|
8746
9017
|
var ListTeam = require_ListTeam();
|
|
8747
9018
|
var DescribeMyAccessCredentials = require_DescribeMyAccessCredentials();
|
|
9019
|
+
var DescribeMyPasskeyRegistrations = require_DescribeMyPasskeyRegistrations();
|
|
8748
9020
|
var TipUser = require_TipUser();
|
|
8749
9021
|
var ListSpaces = require_ListSpaces();
|
|
8750
9022
|
var ListMySpaces = require_ListMySpaces();
|
|
@@ -8770,7 +9042,8 @@ var require_Client = __commonJS({
|
|
|
8770
9042
|
var UpdateAlarm = require_UpdateAlarm();
|
|
8771
9043
|
var DeleteAlarm = require_DeleteAlarm();
|
|
8772
9044
|
var DescribeAlarm = require_DescribeAlarm();
|
|
8773
|
-
var
|
|
9045
|
+
var DescribeAlarmConfig = require_DescribeAlarmConfig();
|
|
9046
|
+
var SetAlarm = require_SetAlarm();
|
|
8774
9047
|
var CreateCamera = require_CreateCamera();
|
|
8775
9048
|
var ListCameras = require_ListCameras();
|
|
8776
9049
|
var UpdateCamera = require_UpdateCamera();
|
|
@@ -8794,6 +9067,7 @@ var require_Client = __commonJS({
|
|
|
8794
9067
|
var UpdateLock = require_UpdateLock();
|
|
8795
9068
|
var DeleteLock = require_DeleteLock();
|
|
8796
9069
|
var DescribeLock = require_DescribeLock();
|
|
9070
|
+
var SetLock = require_SetLock();
|
|
8797
9071
|
var DescribeLockCredential = require_DescribeLockCredential();
|
|
8798
9072
|
var CreateSwitch = require_CreateSwitch();
|
|
8799
9073
|
var ListSwitches = require_ListSwitches();
|
|
@@ -8820,6 +9094,7 @@ var require_Client = __commonJS({
|
|
|
8820
9094
|
var DescribeWindowCovering = require_DescribeWindowCovering();
|
|
8821
9095
|
var SetWindowCovering = require_SetWindowCovering();
|
|
8822
9096
|
var SetRoomScene = require_SetRoomScene();
|
|
9097
|
+
var SetCustomScene = require_SetCustomScene();
|
|
8823
9098
|
var AddScenesToRoom = require_AddScenesToRoom();
|
|
8824
9099
|
var AddDefaultScenesToRooms = require_AddDefaultScenesToRooms();
|
|
8825
9100
|
var CreateTicket = require_CreateTicket();
|
|
@@ -8832,6 +9107,7 @@ var require_Client = __commonJS({
|
|
|
8832
9107
|
var UpdateTicket = require_UpdateTicket();
|
|
8833
9108
|
var UpdateTicketStatus = require_UpdateTicketStatus();
|
|
8834
9109
|
var ListScenes = require_ListScenes();
|
|
9110
|
+
var CreateScene = require_CreateScene();
|
|
8835
9111
|
var CreateDefaultScenes = require_CreateDefaultScenes();
|
|
8836
9112
|
var CreateDiscoveredDevice = require_CreateDiscoveredDevice();
|
|
8837
9113
|
var ListDiscoveredDevices = require_ListDiscoveredDevices();
|
|
@@ -8867,12 +9143,13 @@ var require_Client = __commonJS({
|
|
|
8867
9143
|
var PurchaseReservationLateCheckOutProducts = require_PurchaseReservationLateCheckOutProducts();
|
|
8868
9144
|
var UpdateReservationExpectedArrivalTime = require_UpdateReservationExpectedArrivalTime();
|
|
8869
9145
|
var OCRDocument = require_OCRDocument();
|
|
9146
|
+
var DescribeMyOrganization = require_DescribeMyOrganization();
|
|
8870
9147
|
var CreateOrganization = require_CreateOrganization();
|
|
8871
9148
|
var AdminUpdateCustomer = require_AdminUpdateCustomer();
|
|
8872
9149
|
var DescribeOrganization = require_DescribeOrganization();
|
|
8873
9150
|
var ListOrganizations = require_ListOrganizations();
|
|
8874
|
-
var DescribeMyProperty = require_DescribeMyProperty();
|
|
8875
9151
|
var ListProperties = require_ListProperties();
|
|
9152
|
+
var ListMyProperties = require_ListMyProperties();
|
|
8876
9153
|
var CreateProperty = require_CreateProperty();
|
|
8877
9154
|
var UpdateProperty = require_UpdateProperty();
|
|
8878
9155
|
var DescribeProperty = require_DescribeProperty();
|
|
@@ -8894,8 +9171,9 @@ var require_Client = __commonJS({
|
|
|
8894
9171
|
static {
|
|
8895
9172
|
__name(this, "KohostApiClient");
|
|
8896
9173
|
}
|
|
8897
|
-
|
|
9174
|
+
/**
|
|
8898
9175
|
@param {Object} options - The options to create the client
|
|
9176
|
+
@param {String} options.organizationId - The organization ID
|
|
8899
9177
|
@param {String} options.propertyId - The property ID
|
|
8900
9178
|
@param {String} options.url - The base URL for the API endpint
|
|
8901
9179
|
@param {Object} options.headers - Additional headers to send with each request
|
|
@@ -8911,8 +9189,6 @@ var require_Client = __commonJS({
|
|
|
8911
9189
|
super();
|
|
8912
9190
|
if (!options.url)
|
|
8913
9191
|
throw new Error("options.url is required");
|
|
8914
|
-
if (!options.propertyId)
|
|
8915
|
-
throw new Error("options.property is required");
|
|
8916
9192
|
this.options = options;
|
|
8917
9193
|
this.isBrowser = typeof window !== "undefined";
|
|
8918
9194
|
this.isRefreshingToken = false;
|
|
@@ -8923,23 +9199,51 @@ var require_Client = __commonJS({
|
|
|
8923
9199
|
headers: {
|
|
8924
9200
|
"Content-Type": "application/json",
|
|
8925
9201
|
Accept: "application/json",
|
|
8926
|
-
[_KohostApiClient.defs.propertyHeader]: options.propertyId,
|
|
8927
9202
|
...options.headers
|
|
8928
9203
|
}
|
|
8929
9204
|
};
|
|
8930
9205
|
if (options.apiKey) {
|
|
8931
9206
|
config.headers[_KohostApiClient.defs.apiKeyHeader] = options.apiKey;
|
|
8932
9207
|
}
|
|
9208
|
+
if (options.propertyId) {
|
|
9209
|
+
config.headers[_KohostApiClient.defs.propertyHeader] = options.propertyId;
|
|
9210
|
+
}
|
|
9211
|
+
if (options.organizationId) {
|
|
9212
|
+
config.headers[_KohostApiClient.defs.organizationHeader] = options.organizationId;
|
|
9213
|
+
}
|
|
8933
9214
|
this._http = axios.create(config);
|
|
8934
9215
|
this._http.interceptors.response.use(
|
|
8935
9216
|
this._handleResponse.bind(this),
|
|
8936
9217
|
this._handleResponseError.bind(this)
|
|
8937
9218
|
);
|
|
8938
9219
|
}
|
|
9220
|
+
/**
|
|
9221
|
+
* @param {string} orgId
|
|
9222
|
+
* @returns {void}
|
|
9223
|
+
* @memberof KohostApiClient
|
|
9224
|
+
* @example
|
|
9225
|
+
* client.organizationId = "1234";
|
|
9226
|
+
*/
|
|
9227
|
+
set organizationId(orgId) {
|
|
9228
|
+
const key = _KohostApiClient.defs.organizationHeader;
|
|
9229
|
+
this._http.defaults.headers.common[key] = orgId;
|
|
9230
|
+
}
|
|
9231
|
+
/**
|
|
9232
|
+
* @param {string} propertyId
|
|
9233
|
+
* @returns {void}
|
|
9234
|
+
* @memberof KohostApiClient
|
|
9235
|
+
* @example
|
|
9236
|
+
* client.propertyId = "1234";
|
|
9237
|
+
*/
|
|
9238
|
+
set propertyId(propertyId) {
|
|
9239
|
+
const key = _KohostApiClient.defs.propertyHeader;
|
|
9240
|
+
this._http.defaults.headers.common[key] = propertyId;
|
|
9241
|
+
}
|
|
8939
9242
|
static get defs() {
|
|
8940
9243
|
return {
|
|
8941
9244
|
apiKeyHeader: "X-Api-Key",
|
|
8942
|
-
propertyHeader: "X-Property-Id"
|
|
9245
|
+
propertyHeader: "X-Property-Id",
|
|
9246
|
+
organizationHeader: "X-Organization-Id"
|
|
8943
9247
|
};
|
|
8944
9248
|
}
|
|
8945
9249
|
_handleResponse(response) {
|
|
@@ -9000,12 +9304,13 @@ var require_Client = __commonJS({
|
|
|
9000
9304
|
this.emit("PhoneVerificationRequired");
|
|
9001
9305
|
}
|
|
9002
9306
|
};
|
|
9003
|
-
KohostApiClient.prototype.
|
|
9307
|
+
KohostApiClient.prototype.LoginStart = LoginStart;
|
|
9004
9308
|
KohostApiClient.prototype.RefreshToken = RefreshToken;
|
|
9005
|
-
KohostApiClient.prototype.
|
|
9006
|
-
KohostApiClient.prototype.
|
|
9007
|
-
KohostApiClient.prototype.RequestPWAToken = RequestPWAToken;
|
|
9309
|
+
KohostApiClient.prototype.LoginFinish = LoginFinish;
|
|
9310
|
+
KohostApiClient.prototype.RequestLoginToken = RequestLoginToken;
|
|
9008
9311
|
KohostApiClient.prototype.LogoutUser = LogoutUser;
|
|
9312
|
+
KohostApiClient.prototype.StartRegisterPasskey = StartRegisterPasskey;
|
|
9313
|
+
KohostApiClient.prototype.FinishRegisterPasskey = FinishRegisterPasskey;
|
|
9009
9314
|
KohostApiClient.prototype.DescribeSelf = DescribeSelf;
|
|
9010
9315
|
KohostApiClient.prototype.DescribeUser = DescribeUser;
|
|
9011
9316
|
KohostApiClient.prototype.CreateUser = CreateUser;
|
|
@@ -9021,6 +9326,7 @@ var require_Client = __commonJS({
|
|
|
9021
9326
|
KohostApiClient.prototype.ListUserOrders = ListUserOrders;
|
|
9022
9327
|
KohostApiClient.prototype.ListTeam = ListTeam;
|
|
9023
9328
|
KohostApiClient.prototype.DescribeMyAccessCredentials = DescribeMyAccessCredentials;
|
|
9329
|
+
KohostApiClient.prototype.DescribeMyPasskeyRegistrations = DescribeMyPasskeyRegistrations;
|
|
9024
9330
|
KohostApiClient.prototype.TipUser = TipUser;
|
|
9025
9331
|
KohostApiClient.prototype.ListSpaces = ListSpaces;
|
|
9026
9332
|
KohostApiClient.prototype.ListMySpaces = ListMySpaces;
|
|
@@ -9046,7 +9352,8 @@ var require_Client = __commonJS({
|
|
|
9046
9352
|
KohostApiClient.prototype.UpdateAlarm = UpdateAlarm;
|
|
9047
9353
|
KohostApiClient.prototype.DeleteAlarm = DeleteAlarm;
|
|
9048
9354
|
KohostApiClient.prototype.DescribeAlarm = DescribeAlarm;
|
|
9049
|
-
KohostApiClient.prototype.
|
|
9355
|
+
KohostApiClient.prototype.DescribeAlarmConfig = DescribeAlarmConfig;
|
|
9356
|
+
KohostApiClient.prototype.SetAlarm = SetAlarm;
|
|
9050
9357
|
KohostApiClient.prototype.CreateCamera = CreateCamera;
|
|
9051
9358
|
KohostApiClient.prototype.ListCameras = ListCameras;
|
|
9052
9359
|
KohostApiClient.prototype.UpdateCamera = UpdateCamera;
|
|
@@ -9070,6 +9377,7 @@ var require_Client = __commonJS({
|
|
|
9070
9377
|
KohostApiClient.prototype.UpdateLock = UpdateLock;
|
|
9071
9378
|
KohostApiClient.prototype.DeleteLock = DeleteLock;
|
|
9072
9379
|
KohostApiClient.prototype.DescribeLock = DescribeLock;
|
|
9380
|
+
KohostApiClient.prototype.SetLock = SetLock;
|
|
9073
9381
|
KohostApiClient.prototype.DescribeLockCredential = DescribeLockCredential;
|
|
9074
9382
|
KohostApiClient.prototype.CreateSwitch = CreateSwitch;
|
|
9075
9383
|
KohostApiClient.prototype.ListSwitches = ListSwitches;
|
|
@@ -9096,6 +9404,7 @@ var require_Client = __commonJS({
|
|
|
9096
9404
|
KohostApiClient.prototype.DescribeWindowCovering = DescribeWindowCovering;
|
|
9097
9405
|
KohostApiClient.prototype.SetWindowCovering = SetWindowCovering;
|
|
9098
9406
|
KohostApiClient.prototype.SetRoomScene = SetRoomScene;
|
|
9407
|
+
KohostApiClient.prototype.SetCustomScene = SetCustomScene;
|
|
9099
9408
|
KohostApiClient.prototype.AddScenesToRoom = AddScenesToRoom;
|
|
9100
9409
|
KohostApiClient.prototype.AddDefaultScenesToRooms = AddDefaultScenesToRooms;
|
|
9101
9410
|
KohostApiClient.prototype.CreateTicket = CreateTicket;
|
|
@@ -9108,6 +9417,7 @@ var require_Client = __commonJS({
|
|
|
9108
9417
|
KohostApiClient.prototype.UpdateTicket = UpdateTicket;
|
|
9109
9418
|
KohostApiClient.prototype.UpdateTicketStatus = UpdateTicketStatus;
|
|
9110
9419
|
KohostApiClient.prototype.ListScenes = ListScenes;
|
|
9420
|
+
KohostApiClient.prototype.CreateScene = CreateScene;
|
|
9111
9421
|
KohostApiClient.prototype.CreateDefaultScenes = CreateDefaultScenes;
|
|
9112
9422
|
KohostApiClient.prototype.CreateDiscoveredDevice = CreateDiscoveredDevice;
|
|
9113
9423
|
KohostApiClient.prototype.ListDiscoveredDevices = ListDiscoveredDevices;
|
|
@@ -9143,12 +9453,13 @@ var require_Client = __commonJS({
|
|
|
9143
9453
|
KohostApiClient.prototype.PurchaseReservationLateCheckOutProducts = PurchaseReservationLateCheckOutProducts;
|
|
9144
9454
|
KohostApiClient.prototype.UpdateReservationExpectedArrivalTime = UpdateReservationExpectedArrivalTime;
|
|
9145
9455
|
KohostApiClient.prototype.OCRDocument = OCRDocument;
|
|
9456
|
+
KohostApiClient.prototype.DescribeMyOrganization = DescribeMyOrganization;
|
|
9146
9457
|
KohostApiClient.prototype.CreateOrganization = CreateOrganization;
|
|
9147
9458
|
KohostApiClient.prototype.AdminUpdateCustomer = AdminUpdateCustomer;
|
|
9148
9459
|
KohostApiClient.prototype.DescribeOrganization = DescribeOrganization;
|
|
9149
9460
|
KohostApiClient.prototype.ListOrganizations = ListOrganizations;
|
|
9150
|
-
KohostApiClient.prototype.DescribeMyProperty = DescribeMyProperty;
|
|
9151
9461
|
KohostApiClient.prototype.ListProperties = ListProperties;
|
|
9462
|
+
KohostApiClient.prototype.ListMyProperties = ListMyProperties;
|
|
9152
9463
|
KohostApiClient.prototype.CreateProperty = CreateProperty;
|
|
9153
9464
|
KohostApiClient.prototype.UpdateProperty = UpdateProperty;
|
|
9154
9465
|
KohostApiClient.prototype.DescribeProperty = DescribeProperty;
|