@orangefox-recovery/foxclient 1.0.0 → 5.2.0
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/README.md +8 -8
- package/api.ts +127 -189
- package/base.ts +3 -3
- package/common.ts +2 -2
- package/configuration.ts +2 -2
- package/dist/api.d.ts +87 -77
- package/dist/api.js +109 -155
- package/dist/base.d.ts +2 -2
- package/dist/base.js +3 -3
- package/dist/common.d.ts +2 -2
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +2 -2
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +87 -77
- package/dist/esm/api.js +110 -156
- package/dist/esm/base.d.ts +2 -2
- package/dist/esm/base.js +3 -3
- package/dist/esm/common.d.ts +2 -2
- package/dist/esm/common.js +2 -2
- package/dist/esm/configuration.d.ts +2 -2
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/docs/DeviceApi.md +36 -36
- package/docs/ReleaseApi.md +13 -13
- package/docs/StatsApi.md +2 -2
- package/index.ts +2 -2
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Fox API
|
|
6
|
-
* Warning: Please add a custom
|
|
6
|
+
* Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 20 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 5.
|
|
8
|
+
* The version of the OpenAPI document: 5.2.0
|
|
9
9
|
* Contact: admin@orangefox.tech
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -55,17 +55,16 @@ exports.ReleasesSort = {
|
|
|
55
55
|
const DeviceApiAxiosParamCreator = function (configuration) {
|
|
56
56
|
return {
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
|
|
59
59
|
* @summary Get Device
|
|
60
|
-
* @param {
|
|
60
|
+
* @param { | null} [deviceId]
|
|
61
|
+
* @param { | null} [id] Filter by Device ID (deprecated)
|
|
62
|
+
* @param {string | null} [codename] Not recommended to use when you can
|
|
61
63
|
* @param {*} [options] Override http request option.
|
|
62
64
|
* @throws {RequiredError}
|
|
63
65
|
*/
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
(0, common_1.assertParamExists)('getDeviceDevicesDeviceIdGet', 'deviceId', deviceId);
|
|
67
|
-
const localVarPath = `/devices/{device_id}`
|
|
68
|
-
.replace(`{${"device_id"}}`, encodeURIComponent(String(deviceId)));
|
|
66
|
+
getDeviceDevicesGetGet: (deviceId_1, id_1, codename_1, ...args_1) => __awaiter(this, [deviceId_1, id_1, codename_1, ...args_1], void 0, function* (deviceId, id, codename, options = {}) {
|
|
67
|
+
const localVarPath = `/devices/get`;
|
|
69
68
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
70
69
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
71
70
|
let baseOptions;
|
|
@@ -75,12 +74,19 @@ const DeviceApiAxiosParamCreator = function (configuration) {
|
|
|
75
74
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
76
75
|
const localVarHeaderParameter = {};
|
|
77
76
|
const localVarQueryParameter = {};
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
77
|
+
if (deviceId !== undefined) {
|
|
78
|
+
for (const [key, value] of Object.entries(deviceId)) {
|
|
79
|
+
localVarQueryParameter[key] = value;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
if (id !== undefined) {
|
|
83
|
+
for (const [key, value] of Object.entries(id)) {
|
|
84
|
+
localVarQueryParameter[key] = value;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
if (codename !== undefined) {
|
|
88
|
+
localVarQueryParameter['codename'] = codename;
|
|
89
|
+
}
|
|
84
90
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
85
91
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
86
92
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -90,16 +96,18 @@ const DeviceApiAxiosParamCreator = function (configuration) {
|
|
|
90
96
|
};
|
|
91
97
|
}),
|
|
92
98
|
/**
|
|
93
|
-
*
|
|
94
|
-
* @summary Get Device
|
|
95
|
-
* @param {
|
|
96
|
-
* @param { | null} [id] Filter by Device ID (deprecated)
|
|
97
|
-
* @param {string | null} [codename] Not recommended to use when you can
|
|
99
|
+
* Gets device info using device ID.
|
|
100
|
+
* @summary Get Device Short
|
|
101
|
+
* @param {string} deviceId
|
|
98
102
|
* @param {*} [options] Override http request option.
|
|
103
|
+
* @deprecated
|
|
99
104
|
* @throws {RequiredError}
|
|
100
105
|
*/
|
|
101
|
-
|
|
102
|
-
|
|
106
|
+
getDeviceShortDevicesDeviceIdGet: (deviceId_1, ...args_1) => __awaiter(this, [deviceId_1, ...args_1], void 0, function* (deviceId, options = {}) {
|
|
107
|
+
// verify required parameter 'deviceId' is not null or undefined
|
|
108
|
+
(0, common_1.assertParamExists)('getDeviceShortDevicesDeviceIdGet', 'deviceId', deviceId);
|
|
109
|
+
const localVarPath = `/devices/{device_id}`
|
|
110
|
+
.replace(`{${"device_id"}}`, encodeURIComponent(String(deviceId)));
|
|
103
111
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
104
112
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
105
113
|
let baseOptions;
|
|
@@ -109,25 +117,6 @@ const DeviceApiAxiosParamCreator = function (configuration) {
|
|
|
109
117
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
110
118
|
const localVarHeaderParameter = {};
|
|
111
119
|
const localVarQueryParameter = {};
|
|
112
|
-
// authentication oauth2_password required
|
|
113
|
-
// oauth required
|
|
114
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
|
|
115
|
-
// authentication bearer_auth required
|
|
116
|
-
// http bearer authentication required
|
|
117
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
118
|
-
if (deviceId !== undefined) {
|
|
119
|
-
for (const [key, value] of Object.entries(deviceId)) {
|
|
120
|
-
localVarQueryParameter[key] = value;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
if (id !== undefined) {
|
|
124
|
-
for (const [key, value] of Object.entries(id)) {
|
|
125
|
-
localVarQueryParameter[key] = value;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
if (codename !== undefined) {
|
|
129
|
-
localVarQueryParameter['codename'] = codename;
|
|
130
|
-
}
|
|
131
120
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
132
121
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
133
122
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -138,7 +127,7 @@ const DeviceApiAxiosParamCreator = function (configuration) {
|
|
|
138
127
|
}),
|
|
139
128
|
/**
|
|
140
129
|
* Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
|
|
141
|
-
* @summary Get Devices
|
|
130
|
+
* @summary Get Devices
|
|
142
131
|
* @param {Array<any>} [id] Filter by Device IDs
|
|
143
132
|
* @param {Array<any>} [id2] Filter by Device IDs (deprecated)
|
|
144
133
|
* @param {Array<string>} [oemName] Filter by OEM names
|
|
@@ -153,7 +142,7 @@ const DeviceApiAxiosParamCreator = function (configuration) {
|
|
|
153
142
|
* @param {*} [options] Override http request option.
|
|
154
143
|
* @throws {RequiredError}
|
|
155
144
|
*/
|
|
156
|
-
|
|
145
|
+
getDevicesDevicesGet: (id_1, id2_1, oemName_1, codename_1, modelName_1, supported_1, maintainer_1, freezed_1, hasReleases_1, skip_1, limit_1, ...args_1) => __awaiter(this, [id_1, id2_1, oemName_1, codename_1, modelName_1, supported_1, maintainer_1, freezed_1, hasReleases_1, skip_1, limit_1, ...args_1], void 0, function* (id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options = {}) {
|
|
157
146
|
const localVarPath = `/devices/`;
|
|
158
147
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
159
148
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -164,12 +153,6 @@ const DeviceApiAxiosParamCreator = function (configuration) {
|
|
|
164
153
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
165
154
|
const localVarHeaderParameter = {};
|
|
166
155
|
const localVarQueryParameter = {};
|
|
167
|
-
// authentication oauth2_password required
|
|
168
|
-
// oauth required
|
|
169
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
|
|
170
|
-
// authentication bearer_auth required
|
|
171
|
-
// http bearer authentication required
|
|
172
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
173
156
|
if (id) {
|
|
174
157
|
localVarQueryParameter['id'] = id;
|
|
175
158
|
}
|
|
@@ -228,12 +211,6 @@ const DeviceApiAxiosParamCreator = function (configuration) {
|
|
|
228
211
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
229
212
|
const localVarHeaderParameter = {};
|
|
230
213
|
const localVarQueryParameter = {};
|
|
231
|
-
// authentication oauth2_password required
|
|
232
|
-
// oauth required
|
|
233
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
|
|
234
|
-
// authentication bearer_auth required
|
|
235
|
-
// http bearer authentication required
|
|
236
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
237
214
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
238
215
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
239
216
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -253,42 +230,43 @@ const DeviceApiFp = function (configuration) {
|
|
|
253
230
|
const localVarAxiosParamCreator = (0, exports.DeviceApiAxiosParamCreator)(configuration);
|
|
254
231
|
return {
|
|
255
232
|
/**
|
|
256
|
-
*
|
|
233
|
+
* Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
|
|
257
234
|
* @summary Get Device
|
|
258
|
-
* @param {
|
|
235
|
+
* @param { | null} [deviceId]
|
|
236
|
+
* @param { | null} [id] Filter by Device ID (deprecated)
|
|
237
|
+
* @param {string | null} [codename] Not recommended to use when you can
|
|
259
238
|
* @param {*} [options] Override http request option.
|
|
260
239
|
* @throws {RequiredError}
|
|
261
240
|
*/
|
|
262
|
-
|
|
241
|
+
getDeviceDevicesGetGet(deviceId, id, codename, options) {
|
|
263
242
|
return __awaiter(this, void 0, void 0, function* () {
|
|
264
243
|
var _a, _b, _c;
|
|
265
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
244
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDeviceDevicesGetGet(deviceId, id, codename, options);
|
|
266
245
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
267
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeviceApi.
|
|
246
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeviceApi.getDeviceDevicesGetGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
268
247
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
269
248
|
});
|
|
270
249
|
},
|
|
271
250
|
/**
|
|
272
|
-
*
|
|
273
|
-
* @summary Get Device
|
|
274
|
-
* @param {
|
|
275
|
-
* @param { | null} [id] Filter by Device ID (deprecated)
|
|
276
|
-
* @param {string | null} [codename] Not recommended to use when you can
|
|
251
|
+
* Gets device info using device ID.
|
|
252
|
+
* @summary Get Device Short
|
|
253
|
+
* @param {string} deviceId
|
|
277
254
|
* @param {*} [options] Override http request option.
|
|
255
|
+
* @deprecated
|
|
278
256
|
* @throws {RequiredError}
|
|
279
257
|
*/
|
|
280
|
-
|
|
258
|
+
getDeviceShortDevicesDeviceIdGet(deviceId, options) {
|
|
281
259
|
return __awaiter(this, void 0, void 0, function* () {
|
|
282
260
|
var _a, _b, _c;
|
|
283
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
261
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDeviceShortDevicesDeviceIdGet(deviceId, options);
|
|
284
262
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
285
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeviceApi.
|
|
263
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeviceApi.getDeviceShortDevicesDeviceIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
286
264
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
287
265
|
});
|
|
288
266
|
},
|
|
289
267
|
/**
|
|
290
268
|
* Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
|
|
291
|
-
* @summary Get Devices
|
|
269
|
+
* @summary Get Devices
|
|
292
270
|
* @param {Array<any>} [id] Filter by Device IDs
|
|
293
271
|
* @param {Array<any>} [id2] Filter by Device IDs (deprecated)
|
|
294
272
|
* @param {Array<string>} [oemName] Filter by OEM names
|
|
@@ -303,12 +281,12 @@ const DeviceApiFp = function (configuration) {
|
|
|
303
281
|
* @param {*} [options] Override http request option.
|
|
304
282
|
* @throws {RequiredError}
|
|
305
283
|
*/
|
|
306
|
-
|
|
284
|
+
getDevicesDevicesGet(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options) {
|
|
307
285
|
return __awaiter(this, void 0, void 0, function* () {
|
|
308
286
|
var _a, _b, _c;
|
|
309
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
287
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDevicesDevicesGet(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options);
|
|
310
288
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
311
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeviceApi.
|
|
289
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeviceApi.getDevicesDevicesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
312
290
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
313
291
|
});
|
|
314
292
|
},
|
|
@@ -338,30 +316,31 @@ const DeviceApiFactory = function (configuration, basePath, axios) {
|
|
|
338
316
|
const localVarFp = (0, exports.DeviceApiFp)(configuration);
|
|
339
317
|
return {
|
|
340
318
|
/**
|
|
341
|
-
*
|
|
319
|
+
* Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
|
|
342
320
|
* @summary Get Device
|
|
343
|
-
* @param {
|
|
321
|
+
* @param { | null} [deviceId]
|
|
322
|
+
* @param { | null} [id] Filter by Device ID (deprecated)
|
|
323
|
+
* @param {string | null} [codename] Not recommended to use when you can
|
|
344
324
|
* @param {*} [options] Override http request option.
|
|
345
325
|
* @throws {RequiredError}
|
|
346
326
|
*/
|
|
347
|
-
|
|
348
|
-
return localVarFp.
|
|
327
|
+
getDeviceDevicesGetGet(deviceId, id, codename, options) {
|
|
328
|
+
return localVarFp.getDeviceDevicesGetGet(deviceId, id, codename, options).then((request) => request(axios, basePath));
|
|
349
329
|
},
|
|
350
330
|
/**
|
|
351
|
-
*
|
|
352
|
-
* @summary Get Device
|
|
353
|
-
* @param {
|
|
354
|
-
* @param { | null} [id] Filter by Device ID (deprecated)
|
|
355
|
-
* @param {string | null} [codename] Not recommended to use when you can
|
|
331
|
+
* Gets device info using device ID.
|
|
332
|
+
* @summary Get Device Short
|
|
333
|
+
* @param {string} deviceId
|
|
356
334
|
* @param {*} [options] Override http request option.
|
|
335
|
+
* @deprecated
|
|
357
336
|
* @throws {RequiredError}
|
|
358
337
|
*/
|
|
359
|
-
|
|
360
|
-
return localVarFp.
|
|
338
|
+
getDeviceShortDevicesDeviceIdGet(deviceId, options) {
|
|
339
|
+
return localVarFp.getDeviceShortDevicesDeviceIdGet(deviceId, options).then((request) => request(axios, basePath));
|
|
361
340
|
},
|
|
362
341
|
/**
|
|
363
342
|
* Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
|
|
364
|
-
* @summary Get Devices
|
|
343
|
+
* @summary Get Devices
|
|
365
344
|
* @param {Array<any>} [id] Filter by Device IDs
|
|
366
345
|
* @param {Array<any>} [id2] Filter by Device IDs (deprecated)
|
|
367
346
|
* @param {Array<string>} [oemName] Filter by OEM names
|
|
@@ -376,8 +355,8 @@ const DeviceApiFactory = function (configuration, basePath, axios) {
|
|
|
376
355
|
* @param {*} [options] Override http request option.
|
|
377
356
|
* @throws {RequiredError}
|
|
378
357
|
*/
|
|
379
|
-
|
|
380
|
-
return localVarFp.
|
|
358
|
+
getDevicesDevicesGet(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options) {
|
|
359
|
+
return localVarFp.getDevicesDevicesGet(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options).then((request) => request(axios, basePath));
|
|
381
360
|
},
|
|
382
361
|
/**
|
|
383
362
|
* Lists all OEM names
|
|
@@ -399,32 +378,33 @@ exports.DeviceApiFactory = DeviceApiFactory;
|
|
|
399
378
|
*/
|
|
400
379
|
class DeviceApi extends base_1.BaseAPI {
|
|
401
380
|
/**
|
|
402
|
-
*
|
|
381
|
+
* Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
|
|
403
382
|
* @summary Get Device
|
|
404
|
-
* @param {
|
|
383
|
+
* @param { | null} [deviceId]
|
|
384
|
+
* @param { | null} [id] Filter by Device ID (deprecated)
|
|
385
|
+
* @param {string | null} [codename] Not recommended to use when you can
|
|
405
386
|
* @param {*} [options] Override http request option.
|
|
406
387
|
* @throws {RequiredError}
|
|
407
388
|
* @memberof DeviceApi
|
|
408
389
|
*/
|
|
409
|
-
|
|
410
|
-
return (0, exports.DeviceApiFp)(this.configuration).
|
|
390
|
+
getDeviceDevicesGetGet(deviceId, id, codename, options) {
|
|
391
|
+
return (0, exports.DeviceApiFp)(this.configuration).getDeviceDevicesGetGet(deviceId, id, codename, options).then((request) => request(this.axios, this.basePath));
|
|
411
392
|
}
|
|
412
393
|
/**
|
|
413
|
-
*
|
|
414
|
-
* @summary Get Device
|
|
415
|
-
* @param {
|
|
416
|
-
* @param { | null} [id] Filter by Device ID (deprecated)
|
|
417
|
-
* @param {string | null} [codename] Not recommended to use when you can
|
|
394
|
+
* Gets device info using device ID.
|
|
395
|
+
* @summary Get Device Short
|
|
396
|
+
* @param {string} deviceId
|
|
418
397
|
* @param {*} [options] Override http request option.
|
|
398
|
+
* @deprecated
|
|
419
399
|
* @throws {RequiredError}
|
|
420
400
|
* @memberof DeviceApi
|
|
421
401
|
*/
|
|
422
|
-
|
|
423
|
-
return (0, exports.DeviceApiFp)(this.configuration).
|
|
402
|
+
getDeviceShortDevicesDeviceIdGet(deviceId, options) {
|
|
403
|
+
return (0, exports.DeviceApiFp)(this.configuration).getDeviceShortDevicesDeviceIdGet(deviceId, options).then((request) => request(this.axios, this.basePath));
|
|
424
404
|
}
|
|
425
405
|
/**
|
|
426
406
|
* Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
|
|
427
|
-
* @summary Get Devices
|
|
407
|
+
* @summary Get Devices
|
|
428
408
|
* @param {Array<any>} [id] Filter by Device IDs
|
|
429
409
|
* @param {Array<any>} [id2] Filter by Device IDs (deprecated)
|
|
430
410
|
* @param {Array<string>} [oemName] Filter by OEM names
|
|
@@ -440,8 +420,8 @@ class DeviceApi extends base_1.BaseAPI {
|
|
|
440
420
|
* @throws {RequiredError}
|
|
441
421
|
* @memberof DeviceApi
|
|
442
422
|
*/
|
|
443
|
-
|
|
444
|
-
return (0, exports.DeviceApiFp)(this.configuration).
|
|
423
|
+
getDevicesDevicesGet(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options) {
|
|
424
|
+
return (0, exports.DeviceApiFp)(this.configuration).getDevicesDevicesGet(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options).then((request) => request(this.axios, this.basePath));
|
|
445
425
|
}
|
|
446
426
|
/**
|
|
447
427
|
* Lists all OEM names
|
|
@@ -463,7 +443,7 @@ const ReleaseApiAxiosParamCreator = function (configuration) {
|
|
|
463
443
|
return {
|
|
464
444
|
/**
|
|
465
445
|
* Extended get device method, including the ability to get a device using device codename instead of the ID and Build ID. Example: /device/get?codename=lavender Calling this method without parameters will return the latest available release in the database Warning: the filename identification is deprecated! Use /release/<release_id> instead!
|
|
466
|
-
* @summary Get Release
|
|
446
|
+
* @summary Get Release
|
|
467
447
|
* @param { | null} [releaseId] Release ID
|
|
468
448
|
* @param { | null} [id] Release ID (deprecated)
|
|
469
449
|
* @param {string | null} [buildId] Build ID, `ro.build.fox_id` prop
|
|
@@ -471,7 +451,7 @@ const ReleaseApiAxiosParamCreator = function (configuration) {
|
|
|
471
451
|
* @param {*} [options] Override http request option.
|
|
472
452
|
* @throws {RequiredError}
|
|
473
453
|
*/
|
|
474
|
-
|
|
454
|
+
getReleaseReleasesGetGet: (releaseId_1, id_1, buildId_1, filename_1, ...args_1) => __awaiter(this, [releaseId_1, id_1, buildId_1, filename_1, ...args_1], void 0, function* (releaseId, id, buildId, filename, options = {}) {
|
|
475
455
|
const localVarPath = `/releases/get`;
|
|
476
456
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
477
457
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -482,12 +462,6 @@ const ReleaseApiAxiosParamCreator = function (configuration) {
|
|
|
482
462
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
483
463
|
const localVarHeaderParameter = {};
|
|
484
464
|
const localVarQueryParameter = {};
|
|
485
|
-
// authentication oauth2_password required
|
|
486
|
-
// oauth required
|
|
487
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
|
|
488
|
-
// authentication bearer_auth required
|
|
489
|
-
// http bearer authentication required
|
|
490
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
491
465
|
if (releaseId !== undefined) {
|
|
492
466
|
for (const [key, value] of Object.entries(releaseId)) {
|
|
493
467
|
localVarQueryParameter[key] = value;
|
|
@@ -514,14 +488,15 @@ const ReleaseApiAxiosParamCreator = function (configuration) {
|
|
|
514
488
|
}),
|
|
515
489
|
/**
|
|
516
490
|
* Gets release information using the release ID, nothing to discuss really.
|
|
517
|
-
* @summary Get Release
|
|
491
|
+
* @summary Get Release Short
|
|
518
492
|
* @param {any} releaseId
|
|
519
493
|
* @param {*} [options] Override http request option.
|
|
494
|
+
* @deprecated
|
|
520
495
|
* @throws {RequiredError}
|
|
521
496
|
*/
|
|
522
|
-
|
|
497
|
+
getReleaseShortReleasesReleaseIdGet: (releaseId_1, ...args_1) => __awaiter(this, [releaseId_1, ...args_1], void 0, function* (releaseId, options = {}) {
|
|
523
498
|
// verify required parameter 'releaseId' is not null or undefined
|
|
524
|
-
(0, common_1.assertParamExists)('
|
|
499
|
+
(0, common_1.assertParamExists)('getReleaseShortReleasesReleaseIdGet', 'releaseId', releaseId);
|
|
525
500
|
const localVarPath = `/releases/{release_id}`
|
|
526
501
|
.replace(`{${"release_id"}}`, encodeURIComponent(String(releaseId)));
|
|
527
502
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -533,12 +508,6 @@ const ReleaseApiAxiosParamCreator = function (configuration) {
|
|
|
533
508
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
534
509
|
const localVarHeaderParameter = {};
|
|
535
510
|
const localVarQueryParameter = {};
|
|
536
|
-
// authentication oauth2_password required
|
|
537
|
-
// oauth required
|
|
538
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
|
|
539
|
-
// authentication bearer_auth required
|
|
540
|
-
// http bearer authentication required
|
|
541
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
542
511
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
543
512
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
544
513
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -580,12 +549,6 @@ const ReleaseApiAxiosParamCreator = function (configuration) {
|
|
|
580
549
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
581
550
|
const localVarHeaderParameter = {};
|
|
582
551
|
const localVarQueryParameter = {};
|
|
583
|
-
// authentication oauth2_password required
|
|
584
|
-
// oauth required
|
|
585
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
|
|
586
|
-
// authentication bearer_auth required
|
|
587
|
-
// http bearer authentication required
|
|
588
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
589
552
|
if (id) {
|
|
590
553
|
localVarQueryParameter['id'] = id;
|
|
591
554
|
}
|
|
@@ -671,12 +634,6 @@ const ReleaseApiAxiosParamCreator = function (configuration) {
|
|
|
671
634
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
672
635
|
const localVarHeaderParameter = {};
|
|
673
636
|
const localVarQueryParameter = {};
|
|
674
|
-
// authentication oauth2_password required
|
|
675
|
-
// oauth required
|
|
676
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
|
|
677
|
-
// authentication bearer_auth required
|
|
678
|
-
// http bearer authentication required
|
|
679
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
680
637
|
if (deviceId) {
|
|
681
638
|
localVarQueryParameter['device_id'] = deviceId;
|
|
682
639
|
}
|
|
@@ -712,7 +669,7 @@ const ReleaseApiFp = function (configuration) {
|
|
|
712
669
|
return {
|
|
713
670
|
/**
|
|
714
671
|
* Extended get device method, including the ability to get a device using device codename instead of the ID and Build ID. Example: /device/get?codename=lavender Calling this method without parameters will return the latest available release in the database Warning: the filename identification is deprecated! Use /release/<release_id> instead!
|
|
715
|
-
* @summary Get Release
|
|
672
|
+
* @summary Get Release
|
|
716
673
|
* @param { | null} [releaseId] Release ID
|
|
717
674
|
* @param { | null} [id] Release ID (deprecated)
|
|
718
675
|
* @param {string | null} [buildId] Build ID, `ro.build.fox_id` prop
|
|
@@ -720,28 +677,29 @@ const ReleaseApiFp = function (configuration) {
|
|
|
720
677
|
* @param {*} [options] Override http request option.
|
|
721
678
|
* @throws {RequiredError}
|
|
722
679
|
*/
|
|
723
|
-
|
|
680
|
+
getReleaseReleasesGetGet(releaseId, id, buildId, filename, options) {
|
|
724
681
|
return __awaiter(this, void 0, void 0, function* () {
|
|
725
682
|
var _a, _b, _c;
|
|
726
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
683
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getReleaseReleasesGetGet(releaseId, id, buildId, filename, options);
|
|
727
684
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
728
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReleaseApi.
|
|
685
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReleaseApi.getReleaseReleasesGetGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
729
686
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
730
687
|
});
|
|
731
688
|
},
|
|
732
689
|
/**
|
|
733
690
|
* Gets release information using the release ID, nothing to discuss really.
|
|
734
|
-
* @summary Get Release
|
|
691
|
+
* @summary Get Release Short
|
|
735
692
|
* @param {any} releaseId
|
|
736
693
|
* @param {*} [options] Override http request option.
|
|
694
|
+
* @deprecated
|
|
737
695
|
* @throws {RequiredError}
|
|
738
696
|
*/
|
|
739
|
-
|
|
697
|
+
getReleaseShortReleasesReleaseIdGet(releaseId, options) {
|
|
740
698
|
return __awaiter(this, void 0, void 0, function* () {
|
|
741
699
|
var _a, _b, _c;
|
|
742
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
700
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getReleaseShortReleasesReleaseIdGet(releaseId, options);
|
|
743
701
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
744
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReleaseApi.
|
|
702
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReleaseApi.getReleaseShortReleasesReleaseIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
745
703
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
746
704
|
});
|
|
747
705
|
},
|
|
@@ -810,7 +768,7 @@ const ReleaseApiFactory = function (configuration, basePath, axios) {
|
|
|
810
768
|
return {
|
|
811
769
|
/**
|
|
812
770
|
* Extended get device method, including the ability to get a device using device codename instead of the ID and Build ID. Example: /device/get?codename=lavender Calling this method without parameters will return the latest available release in the database Warning: the filename identification is deprecated! Use /release/<release_id> instead!
|
|
813
|
-
* @summary Get Release
|
|
771
|
+
* @summary Get Release
|
|
814
772
|
* @param { | null} [releaseId] Release ID
|
|
815
773
|
* @param { | null} [id] Release ID (deprecated)
|
|
816
774
|
* @param {string | null} [buildId] Build ID, `ro.build.fox_id` prop
|
|
@@ -818,18 +776,19 @@ const ReleaseApiFactory = function (configuration, basePath, axios) {
|
|
|
818
776
|
* @param {*} [options] Override http request option.
|
|
819
777
|
* @throws {RequiredError}
|
|
820
778
|
*/
|
|
821
|
-
|
|
822
|
-
return localVarFp.
|
|
779
|
+
getReleaseReleasesGetGet(releaseId, id, buildId, filename, options) {
|
|
780
|
+
return localVarFp.getReleaseReleasesGetGet(releaseId, id, buildId, filename, options).then((request) => request(axios, basePath));
|
|
823
781
|
},
|
|
824
782
|
/**
|
|
825
783
|
* Gets release information using the release ID, nothing to discuss really.
|
|
826
|
-
* @summary Get Release
|
|
784
|
+
* @summary Get Release Short
|
|
827
785
|
* @param {any} releaseId
|
|
828
786
|
* @param {*} [options] Override http request option.
|
|
787
|
+
* @deprecated
|
|
829
788
|
* @throws {RequiredError}
|
|
830
789
|
*/
|
|
831
|
-
|
|
832
|
-
return localVarFp.
|
|
790
|
+
getReleaseShortReleasesReleaseIdGet(releaseId, options) {
|
|
791
|
+
return localVarFp.getReleaseShortReleasesReleaseIdGet(releaseId, options).then((request) => request(axios, basePath));
|
|
833
792
|
},
|
|
834
793
|
/**
|
|
835
794
|
* Lists releases. This method contains a bunch of different parameters to filter releases for different cases. For example, you may use ?after_release_id param to get only releases that came after the last known one (aka get updates). You can filter releases by maintainer_id to get releases from a specific maintainer. This is the maintainer who released the build, not the current maintainer of the device. Getting releases by device codename is obsolete thought. The reason for this is that devices could change codenames eventually. Unfortunately, some OEMs and community make a total mess of them. Please use /device methods to determine the right device (preferably with the user decision), save the device ID somewhere and use it afterward. Version tag is deprecated for the same reason, it\'s not really consistent, as it might contain patch and mod versions and very different by each maintainer.
|
|
@@ -884,7 +843,7 @@ exports.ReleaseApiFactory = ReleaseApiFactory;
|
|
|
884
843
|
class ReleaseApi extends base_1.BaseAPI {
|
|
885
844
|
/**
|
|
886
845
|
* Extended get device method, including the ability to get a device using device codename instead of the ID and Build ID. Example: /device/get?codename=lavender Calling this method without parameters will return the latest available release in the database Warning: the filename identification is deprecated! Use /release/<release_id> instead!
|
|
887
|
-
* @summary Get Release
|
|
846
|
+
* @summary Get Release
|
|
888
847
|
* @param { | null} [releaseId] Release ID
|
|
889
848
|
* @param { | null} [id] Release ID (deprecated)
|
|
890
849
|
* @param {string | null} [buildId] Build ID, `ro.build.fox_id` prop
|
|
@@ -893,19 +852,20 @@ class ReleaseApi extends base_1.BaseAPI {
|
|
|
893
852
|
* @throws {RequiredError}
|
|
894
853
|
* @memberof ReleaseApi
|
|
895
854
|
*/
|
|
896
|
-
|
|
897
|
-
return (0, exports.ReleaseApiFp)(this.configuration).
|
|
855
|
+
getReleaseReleasesGetGet(releaseId, id, buildId, filename, options) {
|
|
856
|
+
return (0, exports.ReleaseApiFp)(this.configuration).getReleaseReleasesGetGet(releaseId, id, buildId, filename, options).then((request) => request(this.axios, this.basePath));
|
|
898
857
|
}
|
|
899
858
|
/**
|
|
900
859
|
* Gets release information using the release ID, nothing to discuss really.
|
|
901
|
-
* @summary Get Release
|
|
860
|
+
* @summary Get Release Short
|
|
902
861
|
* @param {any} releaseId
|
|
903
862
|
* @param {*} [options] Override http request option.
|
|
863
|
+
* @deprecated
|
|
904
864
|
* @throws {RequiredError}
|
|
905
865
|
* @memberof ReleaseApi
|
|
906
866
|
*/
|
|
907
|
-
|
|
908
|
-
return (0, exports.ReleaseApiFp)(this.configuration).
|
|
867
|
+
getReleaseShortReleasesReleaseIdGet(releaseId, options) {
|
|
868
|
+
return (0, exports.ReleaseApiFp)(this.configuration).getReleaseShortReleasesReleaseIdGet(releaseId, options).then((request) => request(this.axios, this.basePath));
|
|
909
869
|
}
|
|
910
870
|
/**
|
|
911
871
|
* Lists releases. This method contains a bunch of different parameters to filter releases for different cases. For example, you may use ?after_release_id param to get only releases that came after the last known one (aka get updates). You can filter releases by maintainer_id to get releases from a specific maintainer. This is the maintainer who released the build, not the current maintainer of the device. Getting releases by device codename is obsolete thought. The reason for this is that devices could change codenames eventually. Unfortunately, some OEMs and community make a total mess of them. Please use /device methods to determine the right device (preferably with the user decision), save the device ID somewhere and use it afterward. Version tag is deprecated for the same reason, it\'s not really consistent, as it might contain patch and mod versions and very different by each maintainer.
|
|
@@ -975,12 +935,6 @@ const StatsApiAxiosParamCreator = function (configuration) {
|
|
|
975
935
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
976
936
|
const localVarHeaderParameter = {};
|
|
977
937
|
const localVarQueryParameter = {};
|
|
978
|
-
// authentication oauth2_password required
|
|
979
|
-
// oauth required
|
|
980
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
|
|
981
|
-
// authentication bearer_auth required
|
|
982
|
-
// http bearer authentication required
|
|
983
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
984
938
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
985
939
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
986
940
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
package/dist/base.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Fox API
|
|
3
|
-
* Warning: Please add a custom
|
|
3
|
+
* Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 20 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 5.
|
|
5
|
+
* The version of the OpenAPI document: 5.2.0
|
|
6
6
|
* Contact: admin@orangefox.tech
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/base.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Fox API
|
|
6
|
-
* Warning: Please add a custom
|
|
6
|
+
* Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 20 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 5.
|
|
8
|
+
* The version of the OpenAPI document: 5.2.0
|
|
9
9
|
* Contact: admin@orangefox.tech
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
17
17
|
const axios_1 = require("axios");
|
|
18
|
-
exports.BASE_PATH = "
|
|
18
|
+
exports.BASE_PATH = "https://api.orangefox.download".replace(/\/+$/, "");
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
21
|
* @export
|
package/dist/common.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Fox API
|
|
3
|
-
* Warning: Please add a custom
|
|
3
|
+
* Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 20 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 5.
|
|
5
|
+
* The version of the OpenAPI document: 5.2.0
|
|
6
6
|
* Contact: admin@orangefox.tech
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|