@orangefox-recovery/foxclient 5.2.0 → 5.2.2
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/.openapi-generator/FILES +1 -1
- package/README.md +12 -12
- package/api.ts +170 -180
- package/base.ts +2 -2
- package/common.ts +2 -2
- package/configuration.ts +2 -2
- package/dist/api.d.ts +126 -126
- package/dist/api.js +142 -152
- package/dist/base.d.ts +2 -2
- package/dist/base.js +2 -2
- 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 +126 -126
- package/dist/esm/api.js +142 -152
- package/dist/esm/base.d.ts +2 -2
- package/dist/esm/base.js +2 -2
- 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 +25 -27
- package/docs/ReleaseApi.md +39 -42
- package/docs/{ResponseGetReleasesReleasesGet.md → ResponseGetReleases.md} +3 -3
- package/docs/StatsApi.md +4 -4
- 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 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
|
|
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 30 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.2.
|
|
8
|
+
* The version of the OpenAPI document: 5.2.2
|
|
9
9
|
* Contact: admin@orangefox.tech
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -57,13 +57,13 @@ const DeviceApiAxiosParamCreator = function (configuration) {
|
|
|
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 { | null} [deviceId]
|
|
61
|
-
* @param { | null} [id] Filter by Device ID (deprecated)
|
|
60
|
+
* @param {string | null} [deviceId]
|
|
61
|
+
* @param {string | null} [id] Filter by Device ID (deprecated)
|
|
62
62
|
* @param {string | null} [codename] Not recommended to use when you can
|
|
63
63
|
* @param {*} [options] Override http request option.
|
|
64
64
|
* @throws {RequiredError}
|
|
65
65
|
*/
|
|
66
|
-
|
|
66
|
+
getDevice: (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
67
|
const localVarPath = `/devices/get`;
|
|
68
68
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
69
69
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -75,14 +75,10 @@ const DeviceApiAxiosParamCreator = function (configuration) {
|
|
|
75
75
|
const localVarHeaderParameter = {};
|
|
76
76
|
const localVarQueryParameter = {};
|
|
77
77
|
if (deviceId !== undefined) {
|
|
78
|
-
|
|
79
|
-
localVarQueryParameter[key] = value;
|
|
80
|
-
}
|
|
78
|
+
localVarQueryParameter['device_id'] = deviceId;
|
|
81
79
|
}
|
|
82
80
|
if (id !== undefined) {
|
|
83
|
-
|
|
84
|
-
localVarQueryParameter[key] = value;
|
|
85
|
-
}
|
|
81
|
+
localVarQueryParameter['_id'] = id;
|
|
86
82
|
}
|
|
87
83
|
if (codename !== undefined) {
|
|
88
84
|
localVarQueryParameter['codename'] = codename;
|
|
@@ -103,9 +99,9 @@ const DeviceApiAxiosParamCreator = function (configuration) {
|
|
|
103
99
|
* @deprecated
|
|
104
100
|
* @throws {RequiredError}
|
|
105
101
|
*/
|
|
106
|
-
|
|
102
|
+
getDeviceDeprecated: (deviceId_1, ...args_1) => __awaiter(this, [deviceId_1, ...args_1], void 0, function* (deviceId, options = {}) {
|
|
107
103
|
// verify required parameter 'deviceId' is not null or undefined
|
|
108
|
-
(0, common_1.assertParamExists)('
|
|
104
|
+
(0, common_1.assertParamExists)('getDeviceDeprecated', 'deviceId', deviceId);
|
|
109
105
|
const localVarPath = `/devices/{device_id}`
|
|
110
106
|
.replace(`{${"device_id"}}`, encodeURIComponent(String(deviceId)));
|
|
111
107
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -128,8 +124,8 @@ const DeviceApiAxiosParamCreator = function (configuration) {
|
|
|
128
124
|
/**
|
|
129
125
|
* 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.
|
|
130
126
|
* @summary Get Devices
|
|
131
|
-
* @param {Array<
|
|
132
|
-
* @param {Array<
|
|
127
|
+
* @param {Array<string>} [id] Filter by Device IDs
|
|
128
|
+
* @param {Array<string>} [id2] Filter by Device IDs (deprecated)
|
|
133
129
|
* @param {Array<string>} [oemName] Filter by OEM names
|
|
134
130
|
* @param {Array<string>} [codename] Filter by device codenames
|
|
135
131
|
* @param {Array<string>} [modelName] Filter by model names
|
|
@@ -142,7 +138,7 @@ const DeviceApiAxiosParamCreator = function (configuration) {
|
|
|
142
138
|
* @param {*} [options] Override http request option.
|
|
143
139
|
* @throws {RequiredError}
|
|
144
140
|
*/
|
|
145
|
-
|
|
141
|
+
getDevices: (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 = {}) {
|
|
146
142
|
const localVarPath = `/devices/`;
|
|
147
143
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
148
144
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -196,11 +192,11 @@ const DeviceApiAxiosParamCreator = function (configuration) {
|
|
|
196
192
|
}),
|
|
197
193
|
/**
|
|
198
194
|
* Lists all OEM names
|
|
199
|
-
* @summary Get Oems
|
|
195
|
+
* @summary Get Oems
|
|
200
196
|
* @param {*} [options] Override http request option.
|
|
201
197
|
* @throws {RequiredError}
|
|
202
198
|
*/
|
|
203
|
-
|
|
199
|
+
getOems: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
204
200
|
const localVarPath = `/oems/`;
|
|
205
201
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
206
202
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -232,18 +228,18 @@ const DeviceApiFp = function (configuration) {
|
|
|
232
228
|
/**
|
|
233
229
|
* 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.
|
|
234
230
|
* @summary Get Device
|
|
235
|
-
* @param { | null} [deviceId]
|
|
236
|
-
* @param { | null} [id] Filter by Device ID (deprecated)
|
|
231
|
+
* @param {string | null} [deviceId]
|
|
232
|
+
* @param {string | null} [id] Filter by Device ID (deprecated)
|
|
237
233
|
* @param {string | null} [codename] Not recommended to use when you can
|
|
238
234
|
* @param {*} [options] Override http request option.
|
|
239
235
|
* @throws {RequiredError}
|
|
240
236
|
*/
|
|
241
|
-
|
|
237
|
+
getDevice(deviceId, id, codename, options) {
|
|
242
238
|
return __awaiter(this, void 0, void 0, function* () {
|
|
243
239
|
var _a, _b, _c;
|
|
244
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
240
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDevice(deviceId, id, codename, options);
|
|
245
241
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
246
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeviceApi.
|
|
242
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeviceApi.getDevice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
247
243
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
248
244
|
});
|
|
249
245
|
},
|
|
@@ -255,20 +251,20 @@ const DeviceApiFp = function (configuration) {
|
|
|
255
251
|
* @deprecated
|
|
256
252
|
* @throws {RequiredError}
|
|
257
253
|
*/
|
|
258
|
-
|
|
254
|
+
getDeviceDeprecated(deviceId, options) {
|
|
259
255
|
return __awaiter(this, void 0, void 0, function* () {
|
|
260
256
|
var _a, _b, _c;
|
|
261
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
257
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDeviceDeprecated(deviceId, options);
|
|
262
258
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
263
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeviceApi.
|
|
259
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeviceApi.getDeviceDeprecated']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
264
260
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
265
261
|
});
|
|
266
262
|
},
|
|
267
263
|
/**
|
|
268
264
|
* 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.
|
|
269
265
|
* @summary Get Devices
|
|
270
|
-
* @param {Array<
|
|
271
|
-
* @param {Array<
|
|
266
|
+
* @param {Array<string>} [id] Filter by Device IDs
|
|
267
|
+
* @param {Array<string>} [id2] Filter by Device IDs (deprecated)
|
|
272
268
|
* @param {Array<string>} [oemName] Filter by OEM names
|
|
273
269
|
* @param {Array<string>} [codename] Filter by device codenames
|
|
274
270
|
* @param {Array<string>} [modelName] Filter by model names
|
|
@@ -281,27 +277,27 @@ const DeviceApiFp = function (configuration) {
|
|
|
281
277
|
* @param {*} [options] Override http request option.
|
|
282
278
|
* @throws {RequiredError}
|
|
283
279
|
*/
|
|
284
|
-
|
|
280
|
+
getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options) {
|
|
285
281
|
return __awaiter(this, void 0, void 0, function* () {
|
|
286
282
|
var _a, _b, _c;
|
|
287
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
283
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options);
|
|
288
284
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
289
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeviceApi.
|
|
285
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeviceApi.getDevices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
290
286
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
291
287
|
});
|
|
292
288
|
},
|
|
293
289
|
/**
|
|
294
290
|
* Lists all OEM names
|
|
295
|
-
* @summary Get Oems
|
|
291
|
+
* @summary Get Oems
|
|
296
292
|
* @param {*} [options] Override http request option.
|
|
297
293
|
* @throws {RequiredError}
|
|
298
294
|
*/
|
|
299
|
-
|
|
295
|
+
getOems(options) {
|
|
300
296
|
return __awaiter(this, void 0, void 0, function* () {
|
|
301
297
|
var _a, _b, _c;
|
|
302
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
298
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOems(options);
|
|
303
299
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
304
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeviceApi.
|
|
300
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeviceApi.getOems']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
305
301
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
306
302
|
});
|
|
307
303
|
},
|
|
@@ -318,14 +314,14 @@ const DeviceApiFactory = function (configuration, basePath, axios) {
|
|
|
318
314
|
/**
|
|
319
315
|
* 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.
|
|
320
316
|
* @summary Get Device
|
|
321
|
-
* @param { | null} [deviceId]
|
|
322
|
-
* @param { | null} [id] Filter by Device ID (deprecated)
|
|
317
|
+
* @param {string | null} [deviceId]
|
|
318
|
+
* @param {string | null} [id] Filter by Device ID (deprecated)
|
|
323
319
|
* @param {string | null} [codename] Not recommended to use when you can
|
|
324
320
|
* @param {*} [options] Override http request option.
|
|
325
321
|
* @throws {RequiredError}
|
|
326
322
|
*/
|
|
327
|
-
|
|
328
|
-
return localVarFp.
|
|
323
|
+
getDevice(deviceId, id, codename, options) {
|
|
324
|
+
return localVarFp.getDevice(deviceId, id, codename, options).then((request) => request(axios, basePath));
|
|
329
325
|
},
|
|
330
326
|
/**
|
|
331
327
|
* Gets device info using device ID.
|
|
@@ -335,14 +331,14 @@ const DeviceApiFactory = function (configuration, basePath, axios) {
|
|
|
335
331
|
* @deprecated
|
|
336
332
|
* @throws {RequiredError}
|
|
337
333
|
*/
|
|
338
|
-
|
|
339
|
-
return localVarFp.
|
|
334
|
+
getDeviceDeprecated(deviceId, options) {
|
|
335
|
+
return localVarFp.getDeviceDeprecated(deviceId, options).then((request) => request(axios, basePath));
|
|
340
336
|
},
|
|
341
337
|
/**
|
|
342
338
|
* 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.
|
|
343
339
|
* @summary Get Devices
|
|
344
|
-
* @param {Array<
|
|
345
|
-
* @param {Array<
|
|
340
|
+
* @param {Array<string>} [id] Filter by Device IDs
|
|
341
|
+
* @param {Array<string>} [id2] Filter by Device IDs (deprecated)
|
|
346
342
|
* @param {Array<string>} [oemName] Filter by OEM names
|
|
347
343
|
* @param {Array<string>} [codename] Filter by device codenames
|
|
348
344
|
* @param {Array<string>} [modelName] Filter by model names
|
|
@@ -355,17 +351,17 @@ const DeviceApiFactory = function (configuration, basePath, axios) {
|
|
|
355
351
|
* @param {*} [options] Override http request option.
|
|
356
352
|
* @throws {RequiredError}
|
|
357
353
|
*/
|
|
358
|
-
|
|
359
|
-
return localVarFp.
|
|
354
|
+
getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options) {
|
|
355
|
+
return localVarFp.getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options).then((request) => request(axios, basePath));
|
|
360
356
|
},
|
|
361
357
|
/**
|
|
362
358
|
* Lists all OEM names
|
|
363
|
-
* @summary Get Oems
|
|
359
|
+
* @summary Get Oems
|
|
364
360
|
* @param {*} [options] Override http request option.
|
|
365
361
|
* @throws {RequiredError}
|
|
366
362
|
*/
|
|
367
|
-
|
|
368
|
-
return localVarFp.
|
|
363
|
+
getOems(options) {
|
|
364
|
+
return localVarFp.getOems(options).then((request) => request(axios, basePath));
|
|
369
365
|
},
|
|
370
366
|
};
|
|
371
367
|
};
|
|
@@ -380,15 +376,15 @@ class DeviceApi extends base_1.BaseAPI {
|
|
|
380
376
|
/**
|
|
381
377
|
* 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.
|
|
382
378
|
* @summary Get Device
|
|
383
|
-
* @param { | null} [deviceId]
|
|
384
|
-
* @param { | null} [id] Filter by Device ID (deprecated)
|
|
379
|
+
* @param {string | null} [deviceId]
|
|
380
|
+
* @param {string | null} [id] Filter by Device ID (deprecated)
|
|
385
381
|
* @param {string | null} [codename] Not recommended to use when you can
|
|
386
382
|
* @param {*} [options] Override http request option.
|
|
387
383
|
* @throws {RequiredError}
|
|
388
384
|
* @memberof DeviceApi
|
|
389
385
|
*/
|
|
390
|
-
|
|
391
|
-
return (0, exports.DeviceApiFp)(this.configuration).
|
|
386
|
+
getDevice(deviceId, id, codename, options) {
|
|
387
|
+
return (0, exports.DeviceApiFp)(this.configuration).getDevice(deviceId, id, codename, options).then((request) => request(this.axios, this.basePath));
|
|
392
388
|
}
|
|
393
389
|
/**
|
|
394
390
|
* Gets device info using device ID.
|
|
@@ -399,14 +395,14 @@ class DeviceApi extends base_1.BaseAPI {
|
|
|
399
395
|
* @throws {RequiredError}
|
|
400
396
|
* @memberof DeviceApi
|
|
401
397
|
*/
|
|
402
|
-
|
|
403
|
-
return (0, exports.DeviceApiFp)(this.configuration).
|
|
398
|
+
getDeviceDeprecated(deviceId, options) {
|
|
399
|
+
return (0, exports.DeviceApiFp)(this.configuration).getDeviceDeprecated(deviceId, options).then((request) => request(this.axios, this.basePath));
|
|
404
400
|
}
|
|
405
401
|
/**
|
|
406
402
|
* 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.
|
|
407
403
|
* @summary Get Devices
|
|
408
|
-
* @param {Array<
|
|
409
|
-
* @param {Array<
|
|
404
|
+
* @param {Array<string>} [id] Filter by Device IDs
|
|
405
|
+
* @param {Array<string>} [id2] Filter by Device IDs (deprecated)
|
|
410
406
|
* @param {Array<string>} [oemName] Filter by OEM names
|
|
411
407
|
* @param {Array<string>} [codename] Filter by device codenames
|
|
412
408
|
* @param {Array<string>} [modelName] Filter by model names
|
|
@@ -420,18 +416,18 @@ class DeviceApi extends base_1.BaseAPI {
|
|
|
420
416
|
* @throws {RequiredError}
|
|
421
417
|
* @memberof DeviceApi
|
|
422
418
|
*/
|
|
423
|
-
|
|
424
|
-
return (0, exports.DeviceApiFp)(this.configuration).
|
|
419
|
+
getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options) {
|
|
420
|
+
return (0, exports.DeviceApiFp)(this.configuration).getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options).then((request) => request(this.axios, this.basePath));
|
|
425
421
|
}
|
|
426
422
|
/**
|
|
427
423
|
* Lists all OEM names
|
|
428
|
-
* @summary Get Oems
|
|
424
|
+
* @summary Get Oems
|
|
429
425
|
* @param {*} [options] Override http request option.
|
|
430
426
|
* @throws {RequiredError}
|
|
431
427
|
* @memberof DeviceApi
|
|
432
428
|
*/
|
|
433
|
-
|
|
434
|
-
return (0, exports.DeviceApiFp)(this.configuration).
|
|
429
|
+
getOems(options) {
|
|
430
|
+
return (0, exports.DeviceApiFp)(this.configuration).getOems(options).then((request) => request(this.axios, this.basePath));
|
|
435
431
|
}
|
|
436
432
|
}
|
|
437
433
|
exports.DeviceApi = DeviceApi;
|
|
@@ -444,14 +440,14 @@ const ReleaseApiAxiosParamCreator = function (configuration) {
|
|
|
444
440
|
/**
|
|
445
441
|
* 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!
|
|
446
442
|
* @summary Get Release
|
|
447
|
-
* @param { | null} [releaseId] Release ID
|
|
448
|
-
* @param { | null} [id] Release ID (deprecated)
|
|
443
|
+
* @param {string | null} [releaseId] Release ID
|
|
444
|
+
* @param {string | null} [id] Release ID (deprecated)
|
|
449
445
|
* @param {string | null} [buildId] Build ID, `ro.build.fox_id` prop
|
|
450
446
|
* @param {string | null} [filename]
|
|
451
447
|
* @param {*} [options] Override http request option.
|
|
452
448
|
* @throws {RequiredError}
|
|
453
449
|
*/
|
|
454
|
-
|
|
450
|
+
getRelease: (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 = {}) {
|
|
455
451
|
const localVarPath = `/releases/get`;
|
|
456
452
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
457
453
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -463,14 +459,10 @@ const ReleaseApiAxiosParamCreator = function (configuration) {
|
|
|
463
459
|
const localVarHeaderParameter = {};
|
|
464
460
|
const localVarQueryParameter = {};
|
|
465
461
|
if (releaseId !== undefined) {
|
|
466
|
-
|
|
467
|
-
localVarQueryParameter[key] = value;
|
|
468
|
-
}
|
|
462
|
+
localVarQueryParameter['release_id'] = releaseId;
|
|
469
463
|
}
|
|
470
464
|
if (id !== undefined) {
|
|
471
|
-
|
|
472
|
-
localVarQueryParameter[key] = value;
|
|
473
|
-
}
|
|
465
|
+
localVarQueryParameter['_id'] = id;
|
|
474
466
|
}
|
|
475
467
|
if (buildId !== undefined) {
|
|
476
468
|
localVarQueryParameter['build_id'] = buildId;
|
|
@@ -489,14 +481,14 @@ const ReleaseApiAxiosParamCreator = function (configuration) {
|
|
|
489
481
|
/**
|
|
490
482
|
* Gets release information using the release ID, nothing to discuss really.
|
|
491
483
|
* @summary Get Release Short
|
|
492
|
-
* @param {
|
|
484
|
+
* @param {string} releaseId
|
|
493
485
|
* @param {*} [options] Override http request option.
|
|
494
486
|
* @deprecated
|
|
495
487
|
* @throws {RequiredError}
|
|
496
488
|
*/
|
|
497
|
-
|
|
489
|
+
getReleaseDeprecated: (releaseId_1, ...args_1) => __awaiter(this, [releaseId_1, ...args_1], void 0, function* (releaseId, options = {}) {
|
|
498
490
|
// verify required parameter 'releaseId' is not null or undefined
|
|
499
|
-
(0, common_1.assertParamExists)('
|
|
491
|
+
(0, common_1.assertParamExists)('getReleaseDeprecated', 'releaseId', releaseId);
|
|
500
492
|
const localVarPath = `/releases/{release_id}`
|
|
501
493
|
.replace(`{${"release_id"}}`, encodeURIComponent(String(releaseId)));
|
|
502
494
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -519,17 +511,17 @@ const ReleaseApiAxiosParamCreator = function (configuration) {
|
|
|
519
511
|
/**
|
|
520
512
|
* 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.
|
|
521
513
|
* @summary Get Releases
|
|
522
|
-
* @param {Array<
|
|
523
|
-
* @param {Array<
|
|
514
|
+
* @param {Array<string>} [id] Filter by Release IDs
|
|
515
|
+
* @param {Array<string>} [id2] Filter by Release IDs (deprecated)
|
|
524
516
|
* @param {Array<string>} [buildId] Filter by Build IDs
|
|
525
|
-
* @param {Array<
|
|
526
|
-
* @param {Array<
|
|
517
|
+
* @param {Array<string>} [deviceId] Filter by Device IDs
|
|
518
|
+
* @param {Array<string>} [maintainerId] Filter by Maintainer IDs
|
|
527
519
|
* @param {Array<string>} [codename] Filter by device codenames
|
|
528
520
|
* @param {Array<string>} [version] Filter by release version
|
|
529
521
|
* @param {Array<ReleaseType>} [type] Filter by release type
|
|
530
522
|
* @param {boolean | null} [archived] Filter by the archived status
|
|
531
523
|
* @param {boolean | null} [freezed] Filter by the freezed status
|
|
532
|
-
* @param { | null} [afterReleaseId] Show releases after the provided one
|
|
524
|
+
* @param {string | null} [afterReleaseId] Show releases after the provided one
|
|
533
525
|
* @param {number | null} [afterDate] Show releases after the provided timestamp
|
|
534
526
|
* @param {ReleasesSort} [sort] Sort mode
|
|
535
527
|
* @param {boolean | null} [group] Group releases by version + variant. This will change the response!
|
|
@@ -538,7 +530,7 @@ const ReleaseApiAxiosParamCreator = function (configuration) {
|
|
|
538
530
|
* @param {*} [options] Override http request option.
|
|
539
531
|
* @throws {RequiredError}
|
|
540
532
|
*/
|
|
541
|
-
|
|
533
|
+
getReleases: (id_1, id2_1, buildId_1, deviceId_1, maintainerId_1, codename_1, version_1, type_1, archived_1, freezed_1, afterReleaseId_1, afterDate_1, sort_1, group_1, skip_1, limit_1, ...args_1) => __awaiter(this, [id_1, id2_1, buildId_1, deviceId_1, maintainerId_1, codename_1, version_1, type_1, archived_1, freezed_1, afterReleaseId_1, afterDate_1, sort_1, group_1, skip_1, limit_1, ...args_1], void 0, function* (id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options = {}) {
|
|
542
534
|
const localVarPath = `/releases/`;
|
|
543
535
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
544
536
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -580,9 +572,7 @@ const ReleaseApiAxiosParamCreator = function (configuration) {
|
|
|
580
572
|
localVarQueryParameter['freezed'] = freezed;
|
|
581
573
|
}
|
|
582
574
|
if (afterReleaseId !== undefined) {
|
|
583
|
-
|
|
584
|
-
localVarQueryParameter[key] = value;
|
|
585
|
-
}
|
|
575
|
+
localVarQueryParameter['after_release_id'] = afterReleaseId;
|
|
586
576
|
}
|
|
587
577
|
if (afterDate !== undefined) {
|
|
588
578
|
localVarQueryParameter['after_date'] = afterDate;
|
|
@@ -610,8 +600,8 @@ const ReleaseApiAxiosParamCreator = function (configuration) {
|
|
|
610
600
|
/**
|
|
611
601
|
* Get updates method. Returns all new releases with release IDs. For example, \"/updates/<id>\" will return a list of all releases that were created after. You can also use \"device_id\" or / and \"release_type\" params. The first one will filter releases by specific devices, the second one will filter by release type. This can be useful, for example, if you want to notify users only with stable releases for this specific device. Warning: This method is obsolete! Please use /release/?after_release_id= instead!
|
|
612
602
|
* @summary Get Updates
|
|
613
|
-
* @param {
|
|
614
|
-
* @param {Array<
|
|
603
|
+
* @param {string} lastKnownId
|
|
604
|
+
* @param {Array<string>} [deviceId] Filter by device ID
|
|
615
605
|
* @param {Array<ReleaseType>} [type] Filter by release type
|
|
616
606
|
* @param {Array<ReleaseType>} [releaseType] Filter by release type (legacy)
|
|
617
607
|
* @param {number | null} [skip] Skip query results
|
|
@@ -620,9 +610,9 @@ const ReleaseApiAxiosParamCreator = function (configuration) {
|
|
|
620
610
|
* @deprecated
|
|
621
611
|
* @throws {RequiredError}
|
|
622
612
|
*/
|
|
623
|
-
|
|
613
|
+
getUpdatesDeprecated: (lastKnownId_1, deviceId_1, type_1, releaseType_1, skip_1, limit_1, ...args_1) => __awaiter(this, [lastKnownId_1, deviceId_1, type_1, releaseType_1, skip_1, limit_1, ...args_1], void 0, function* (lastKnownId, deviceId, type, releaseType, skip, limit, options = {}) {
|
|
624
614
|
// verify required parameter 'lastKnownId' is not null or undefined
|
|
625
|
-
(0, common_1.assertParamExists)('
|
|
615
|
+
(0, common_1.assertParamExists)('getUpdatesDeprecated', 'lastKnownId', lastKnownId);
|
|
626
616
|
const localVarPath = `/updates/{last_known_id}`
|
|
627
617
|
.replace(`{${"last_known_id"}}`, encodeURIComponent(String(lastKnownId)));
|
|
628
618
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -670,53 +660,53 @@ const ReleaseApiFp = function (configuration) {
|
|
|
670
660
|
/**
|
|
671
661
|
* 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!
|
|
672
662
|
* @summary Get Release
|
|
673
|
-
* @param { | null} [releaseId] Release ID
|
|
674
|
-
* @param { | null} [id] Release ID (deprecated)
|
|
663
|
+
* @param {string | null} [releaseId] Release ID
|
|
664
|
+
* @param {string | null} [id] Release ID (deprecated)
|
|
675
665
|
* @param {string | null} [buildId] Build ID, `ro.build.fox_id` prop
|
|
676
666
|
* @param {string | null} [filename]
|
|
677
667
|
* @param {*} [options] Override http request option.
|
|
678
668
|
* @throws {RequiredError}
|
|
679
669
|
*/
|
|
680
|
-
|
|
670
|
+
getRelease(releaseId, id, buildId, filename, options) {
|
|
681
671
|
return __awaiter(this, void 0, void 0, function* () {
|
|
682
672
|
var _a, _b, _c;
|
|
683
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
673
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRelease(releaseId, id, buildId, filename, options);
|
|
684
674
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
685
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReleaseApi.
|
|
675
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReleaseApi.getRelease']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
686
676
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
687
677
|
});
|
|
688
678
|
},
|
|
689
679
|
/**
|
|
690
680
|
* Gets release information using the release ID, nothing to discuss really.
|
|
691
681
|
* @summary Get Release Short
|
|
692
|
-
* @param {
|
|
682
|
+
* @param {string} releaseId
|
|
693
683
|
* @param {*} [options] Override http request option.
|
|
694
684
|
* @deprecated
|
|
695
685
|
* @throws {RequiredError}
|
|
696
686
|
*/
|
|
697
|
-
|
|
687
|
+
getReleaseDeprecated(releaseId, options) {
|
|
698
688
|
return __awaiter(this, void 0, void 0, function* () {
|
|
699
689
|
var _a, _b, _c;
|
|
700
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
690
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getReleaseDeprecated(releaseId, options);
|
|
701
691
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
702
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReleaseApi.
|
|
692
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReleaseApi.getReleaseDeprecated']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
703
693
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
704
694
|
});
|
|
705
695
|
},
|
|
706
696
|
/**
|
|
707
697
|
* 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.
|
|
708
698
|
* @summary Get Releases
|
|
709
|
-
* @param {Array<
|
|
710
|
-
* @param {Array<
|
|
699
|
+
* @param {Array<string>} [id] Filter by Release IDs
|
|
700
|
+
* @param {Array<string>} [id2] Filter by Release IDs (deprecated)
|
|
711
701
|
* @param {Array<string>} [buildId] Filter by Build IDs
|
|
712
|
-
* @param {Array<
|
|
713
|
-
* @param {Array<
|
|
702
|
+
* @param {Array<string>} [deviceId] Filter by Device IDs
|
|
703
|
+
* @param {Array<string>} [maintainerId] Filter by Maintainer IDs
|
|
714
704
|
* @param {Array<string>} [codename] Filter by device codenames
|
|
715
705
|
* @param {Array<string>} [version] Filter by release version
|
|
716
706
|
* @param {Array<ReleaseType>} [type] Filter by release type
|
|
717
707
|
* @param {boolean | null} [archived] Filter by the archived status
|
|
718
708
|
* @param {boolean | null} [freezed] Filter by the freezed status
|
|
719
|
-
* @param { | null} [afterReleaseId] Show releases after the provided one
|
|
709
|
+
* @param {string | null} [afterReleaseId] Show releases after the provided one
|
|
720
710
|
* @param {number | null} [afterDate] Show releases after the provided timestamp
|
|
721
711
|
* @param {ReleasesSort} [sort] Sort mode
|
|
722
712
|
* @param {boolean | null} [group] Group releases by version + variant. This will change the response!
|
|
@@ -725,20 +715,20 @@ const ReleaseApiFp = function (configuration) {
|
|
|
725
715
|
* @param {*} [options] Override http request option.
|
|
726
716
|
* @throws {RequiredError}
|
|
727
717
|
*/
|
|
728
|
-
|
|
718
|
+
getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options) {
|
|
729
719
|
return __awaiter(this, void 0, void 0, function* () {
|
|
730
720
|
var _a, _b, _c;
|
|
731
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
721
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options);
|
|
732
722
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
733
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReleaseApi.
|
|
723
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReleaseApi.getReleases']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
734
724
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
735
725
|
});
|
|
736
726
|
},
|
|
737
727
|
/**
|
|
738
728
|
* Get updates method. Returns all new releases with release IDs. For example, \"/updates/<id>\" will return a list of all releases that were created after. You can also use \"device_id\" or / and \"release_type\" params. The first one will filter releases by specific devices, the second one will filter by release type. This can be useful, for example, if you want to notify users only with stable releases for this specific device. Warning: This method is obsolete! Please use /release/?after_release_id= instead!
|
|
739
729
|
* @summary Get Updates
|
|
740
|
-
* @param {
|
|
741
|
-
* @param {Array<
|
|
730
|
+
* @param {string} lastKnownId
|
|
731
|
+
* @param {Array<string>} [deviceId] Filter by device ID
|
|
742
732
|
* @param {Array<ReleaseType>} [type] Filter by release type
|
|
743
733
|
* @param {Array<ReleaseType>} [releaseType] Filter by release type (legacy)
|
|
744
734
|
* @param {number | null} [skip] Skip query results
|
|
@@ -747,12 +737,12 @@ const ReleaseApiFp = function (configuration) {
|
|
|
747
737
|
* @deprecated
|
|
748
738
|
* @throws {RequiredError}
|
|
749
739
|
*/
|
|
750
|
-
|
|
740
|
+
getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options) {
|
|
751
741
|
return __awaiter(this, void 0, void 0, function* () {
|
|
752
742
|
var _a, _b, _c;
|
|
753
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
743
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options);
|
|
754
744
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
755
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReleaseApi.
|
|
745
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReleaseApi.getUpdatesDeprecated']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
756
746
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
757
747
|
});
|
|
758
748
|
},
|
|
@@ -769,41 +759,41 @@ const ReleaseApiFactory = function (configuration, basePath, axios) {
|
|
|
769
759
|
/**
|
|
770
760
|
* 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!
|
|
771
761
|
* @summary Get Release
|
|
772
|
-
* @param { | null} [releaseId] Release ID
|
|
773
|
-
* @param { | null} [id] Release ID (deprecated)
|
|
762
|
+
* @param {string | null} [releaseId] Release ID
|
|
763
|
+
* @param {string | null} [id] Release ID (deprecated)
|
|
774
764
|
* @param {string | null} [buildId] Build ID, `ro.build.fox_id` prop
|
|
775
765
|
* @param {string | null} [filename]
|
|
776
766
|
* @param {*} [options] Override http request option.
|
|
777
767
|
* @throws {RequiredError}
|
|
778
768
|
*/
|
|
779
|
-
|
|
780
|
-
return localVarFp.
|
|
769
|
+
getRelease(releaseId, id, buildId, filename, options) {
|
|
770
|
+
return localVarFp.getRelease(releaseId, id, buildId, filename, options).then((request) => request(axios, basePath));
|
|
781
771
|
},
|
|
782
772
|
/**
|
|
783
773
|
* Gets release information using the release ID, nothing to discuss really.
|
|
784
774
|
* @summary Get Release Short
|
|
785
|
-
* @param {
|
|
775
|
+
* @param {string} releaseId
|
|
786
776
|
* @param {*} [options] Override http request option.
|
|
787
777
|
* @deprecated
|
|
788
778
|
* @throws {RequiredError}
|
|
789
779
|
*/
|
|
790
|
-
|
|
791
|
-
return localVarFp.
|
|
780
|
+
getReleaseDeprecated(releaseId, options) {
|
|
781
|
+
return localVarFp.getReleaseDeprecated(releaseId, options).then((request) => request(axios, basePath));
|
|
792
782
|
},
|
|
793
783
|
/**
|
|
794
784
|
* 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.
|
|
795
785
|
* @summary Get Releases
|
|
796
|
-
* @param {Array<
|
|
797
|
-
* @param {Array<
|
|
786
|
+
* @param {Array<string>} [id] Filter by Release IDs
|
|
787
|
+
* @param {Array<string>} [id2] Filter by Release IDs (deprecated)
|
|
798
788
|
* @param {Array<string>} [buildId] Filter by Build IDs
|
|
799
|
-
* @param {Array<
|
|
800
|
-
* @param {Array<
|
|
789
|
+
* @param {Array<string>} [deviceId] Filter by Device IDs
|
|
790
|
+
* @param {Array<string>} [maintainerId] Filter by Maintainer IDs
|
|
801
791
|
* @param {Array<string>} [codename] Filter by device codenames
|
|
802
792
|
* @param {Array<string>} [version] Filter by release version
|
|
803
793
|
* @param {Array<ReleaseType>} [type] Filter by release type
|
|
804
794
|
* @param {boolean | null} [archived] Filter by the archived status
|
|
805
795
|
* @param {boolean | null} [freezed] Filter by the freezed status
|
|
806
|
-
* @param { | null} [afterReleaseId] Show releases after the provided one
|
|
796
|
+
* @param {string | null} [afterReleaseId] Show releases after the provided one
|
|
807
797
|
* @param {number | null} [afterDate] Show releases after the provided timestamp
|
|
808
798
|
* @param {ReleasesSort} [sort] Sort mode
|
|
809
799
|
* @param {boolean | null} [group] Group releases by version + variant. This will change the response!
|
|
@@ -812,14 +802,14 @@ const ReleaseApiFactory = function (configuration, basePath, axios) {
|
|
|
812
802
|
* @param {*} [options] Override http request option.
|
|
813
803
|
* @throws {RequiredError}
|
|
814
804
|
*/
|
|
815
|
-
|
|
816
|
-
return localVarFp.
|
|
805
|
+
getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options) {
|
|
806
|
+
return localVarFp.getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options).then((request) => request(axios, basePath));
|
|
817
807
|
},
|
|
818
808
|
/**
|
|
819
809
|
* Get updates method. Returns all new releases with release IDs. For example, \"/updates/<id>\" will return a list of all releases that were created after. You can also use \"device_id\" or / and \"release_type\" params. The first one will filter releases by specific devices, the second one will filter by release type. This can be useful, for example, if you want to notify users only with stable releases for this specific device. Warning: This method is obsolete! Please use /release/?after_release_id= instead!
|
|
820
810
|
* @summary Get Updates
|
|
821
|
-
* @param {
|
|
822
|
-
* @param {Array<
|
|
811
|
+
* @param {string} lastKnownId
|
|
812
|
+
* @param {Array<string>} [deviceId] Filter by device ID
|
|
823
813
|
* @param {Array<ReleaseType>} [type] Filter by release type
|
|
824
814
|
* @param {Array<ReleaseType>} [releaseType] Filter by release type (legacy)
|
|
825
815
|
* @param {number | null} [skip] Skip query results
|
|
@@ -828,8 +818,8 @@ const ReleaseApiFactory = function (configuration, basePath, axios) {
|
|
|
828
818
|
* @deprecated
|
|
829
819
|
* @throws {RequiredError}
|
|
830
820
|
*/
|
|
831
|
-
|
|
832
|
-
return localVarFp.
|
|
821
|
+
getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options) {
|
|
822
|
+
return localVarFp.getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options).then((request) => request(axios, basePath));
|
|
833
823
|
},
|
|
834
824
|
};
|
|
835
825
|
};
|
|
@@ -844,43 +834,43 @@ class ReleaseApi extends base_1.BaseAPI {
|
|
|
844
834
|
/**
|
|
845
835
|
* 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!
|
|
846
836
|
* @summary Get Release
|
|
847
|
-
* @param { | null} [releaseId] Release ID
|
|
848
|
-
* @param { | null} [id] Release ID (deprecated)
|
|
837
|
+
* @param {string | null} [releaseId] Release ID
|
|
838
|
+
* @param {string | null} [id] Release ID (deprecated)
|
|
849
839
|
* @param {string | null} [buildId] Build ID, `ro.build.fox_id` prop
|
|
850
840
|
* @param {string | null} [filename]
|
|
851
841
|
* @param {*} [options] Override http request option.
|
|
852
842
|
* @throws {RequiredError}
|
|
853
843
|
* @memberof ReleaseApi
|
|
854
844
|
*/
|
|
855
|
-
|
|
856
|
-
return (0, exports.ReleaseApiFp)(this.configuration).
|
|
845
|
+
getRelease(releaseId, id, buildId, filename, options) {
|
|
846
|
+
return (0, exports.ReleaseApiFp)(this.configuration).getRelease(releaseId, id, buildId, filename, options).then((request) => request(this.axios, this.basePath));
|
|
857
847
|
}
|
|
858
848
|
/**
|
|
859
849
|
* Gets release information using the release ID, nothing to discuss really.
|
|
860
850
|
* @summary Get Release Short
|
|
861
|
-
* @param {
|
|
851
|
+
* @param {string} releaseId
|
|
862
852
|
* @param {*} [options] Override http request option.
|
|
863
853
|
* @deprecated
|
|
864
854
|
* @throws {RequiredError}
|
|
865
855
|
* @memberof ReleaseApi
|
|
866
856
|
*/
|
|
867
|
-
|
|
868
|
-
return (0, exports.ReleaseApiFp)(this.configuration).
|
|
857
|
+
getReleaseDeprecated(releaseId, options) {
|
|
858
|
+
return (0, exports.ReleaseApiFp)(this.configuration).getReleaseDeprecated(releaseId, options).then((request) => request(this.axios, this.basePath));
|
|
869
859
|
}
|
|
870
860
|
/**
|
|
871
861
|
* 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.
|
|
872
862
|
* @summary Get Releases
|
|
873
|
-
* @param {Array<
|
|
874
|
-
* @param {Array<
|
|
863
|
+
* @param {Array<string>} [id] Filter by Release IDs
|
|
864
|
+
* @param {Array<string>} [id2] Filter by Release IDs (deprecated)
|
|
875
865
|
* @param {Array<string>} [buildId] Filter by Build IDs
|
|
876
|
-
* @param {Array<
|
|
877
|
-
* @param {Array<
|
|
866
|
+
* @param {Array<string>} [deviceId] Filter by Device IDs
|
|
867
|
+
* @param {Array<string>} [maintainerId] Filter by Maintainer IDs
|
|
878
868
|
* @param {Array<string>} [codename] Filter by device codenames
|
|
879
869
|
* @param {Array<string>} [version] Filter by release version
|
|
880
870
|
* @param {Array<ReleaseType>} [type] Filter by release type
|
|
881
871
|
* @param {boolean | null} [archived] Filter by the archived status
|
|
882
872
|
* @param {boolean | null} [freezed] Filter by the freezed status
|
|
883
|
-
* @param { | null} [afterReleaseId] Show releases after the provided one
|
|
873
|
+
* @param {string | null} [afterReleaseId] Show releases after the provided one
|
|
884
874
|
* @param {number | null} [afterDate] Show releases after the provided timestamp
|
|
885
875
|
* @param {ReleasesSort} [sort] Sort mode
|
|
886
876
|
* @param {boolean | null} [group] Group releases by version + variant. This will change the response!
|
|
@@ -890,14 +880,14 @@ class ReleaseApi extends base_1.BaseAPI {
|
|
|
890
880
|
* @throws {RequiredError}
|
|
891
881
|
* @memberof ReleaseApi
|
|
892
882
|
*/
|
|
893
|
-
|
|
894
|
-
return (0, exports.ReleaseApiFp)(this.configuration).
|
|
883
|
+
getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options) {
|
|
884
|
+
return (0, exports.ReleaseApiFp)(this.configuration).getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options).then((request) => request(this.axios, this.basePath));
|
|
895
885
|
}
|
|
896
886
|
/**
|
|
897
887
|
* Get updates method. Returns all new releases with release IDs. For example, \"/updates/<id>\" will return a list of all releases that were created after. You can also use \"device_id\" or / and \"release_type\" params. The first one will filter releases by specific devices, the second one will filter by release type. This can be useful, for example, if you want to notify users only with stable releases for this specific device. Warning: This method is obsolete! Please use /release/?after_release_id= instead!
|
|
898
888
|
* @summary Get Updates
|
|
899
|
-
* @param {
|
|
900
|
-
* @param {Array<
|
|
889
|
+
* @param {string} lastKnownId
|
|
890
|
+
* @param {Array<string>} [deviceId] Filter by device ID
|
|
901
891
|
* @param {Array<ReleaseType>} [type] Filter by release type
|
|
902
892
|
* @param {Array<ReleaseType>} [releaseType] Filter by release type (legacy)
|
|
903
893
|
* @param {number | null} [skip] Skip query results
|
|
@@ -907,8 +897,8 @@ class ReleaseApi extends base_1.BaseAPI {
|
|
|
907
897
|
* @throws {RequiredError}
|
|
908
898
|
* @memberof ReleaseApi
|
|
909
899
|
*/
|
|
910
|
-
|
|
911
|
-
return (0, exports.ReleaseApiFp)(this.configuration).
|
|
900
|
+
getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options) {
|
|
901
|
+
return (0, exports.ReleaseApiFp)(this.configuration).getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options).then((request) => request(this.axios, this.basePath));
|
|
912
902
|
}
|
|
913
903
|
}
|
|
914
904
|
exports.ReleaseApi = ReleaseApi;
|
|
@@ -924,7 +914,7 @@ const StatsApiAxiosParamCreator = function (configuration) {
|
|
|
924
914
|
* @param {*} [options] Override http request option.
|
|
925
915
|
* @throws {RequiredError}
|
|
926
916
|
*/
|
|
927
|
-
|
|
917
|
+
getPublicStats: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
928
918
|
const localVarPath = `/stats/`;
|
|
929
919
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
930
920
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -959,12 +949,12 @@ const StatsApiFp = function (configuration) {
|
|
|
959
949
|
* @param {*} [options] Override http request option.
|
|
960
950
|
* @throws {RequiredError}
|
|
961
951
|
*/
|
|
962
|
-
|
|
952
|
+
getPublicStats(options) {
|
|
963
953
|
return __awaiter(this, void 0, void 0, function* () {
|
|
964
954
|
var _a, _b, _c;
|
|
965
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
955
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublicStats(options);
|
|
966
956
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
967
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StatsApi.
|
|
957
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StatsApi.getPublicStats']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
968
958
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
969
959
|
});
|
|
970
960
|
},
|
|
@@ -984,8 +974,8 @@ const StatsApiFactory = function (configuration, basePath, axios) {
|
|
|
984
974
|
* @param {*} [options] Override http request option.
|
|
985
975
|
* @throws {RequiredError}
|
|
986
976
|
*/
|
|
987
|
-
|
|
988
|
-
return localVarFp.
|
|
977
|
+
getPublicStats(options) {
|
|
978
|
+
return localVarFp.getPublicStats(options).then((request) => request(axios, basePath));
|
|
989
979
|
},
|
|
990
980
|
};
|
|
991
981
|
};
|
|
@@ -1004,8 +994,8 @@ class StatsApi extends base_1.BaseAPI {
|
|
|
1004
994
|
* @throws {RequiredError}
|
|
1005
995
|
* @memberof StatsApi
|
|
1006
996
|
*/
|
|
1007
|
-
|
|
1008
|
-
return (0, exports.StatsApiFp)(this.configuration).
|
|
997
|
+
getPublicStats(options) {
|
|
998
|
+
return (0, exports.StatsApiFp)(this.configuration).getPublicStats(options).then((request) => request(this.axios, this.basePath));
|
|
1009
999
|
}
|
|
1010
1000
|
}
|
|
1011
1001
|
exports.StatsApi = StatsApi;
|