@orangefox-recovery/foxclient 5.1.1 → 5.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -1
- package/README.md +13 -13
- package/api.ts +173 -235
- package/base.ts +3 -3
- package/common.ts +2 -2
- package/configuration.ts +2 -2
- package/dist/api.d.ts +116 -106
- package/dist/api.js +146 -192
- 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 +116 -106
- package/dist/esm/api.js +147 -193
- 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 +40 -40
- package/docs/ReleaseApi.md +22 -22
- package/docs/{ResponseGetReleasesReleasesGet.md → ResponseGetReleases.md} +3 -3
- package/docs/StatsApi.md +6 -6
- 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 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.
|
|
8
|
+
* The version of the OpenAPI document: 5.2.1
|
|
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
|
+
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
|
+
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
|
+
getDeviceDeprecated: (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)('getDeviceDeprecated', '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
|
+
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 = {}) {
|
|
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
|
}
|
|
@@ -213,11 +196,11 @@ const DeviceApiAxiosParamCreator = function (configuration) {
|
|
|
213
196
|
}),
|
|
214
197
|
/**
|
|
215
198
|
* Lists all OEM names
|
|
216
|
-
* @summary Get Oems
|
|
199
|
+
* @summary Get Oems
|
|
217
200
|
* @param {*} [options] Override http request option.
|
|
218
201
|
* @throws {RequiredError}
|
|
219
202
|
*/
|
|
220
|
-
|
|
203
|
+
getOems: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
221
204
|
const localVarPath = `/oems/`;
|
|
222
205
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
223
206
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -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
|
+
getDevice(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.getDevice(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.getDevice']) === 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
|
+
getDeviceDeprecated(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.getDeviceDeprecated(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.getDeviceDeprecated']) === 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,27 +281,27 @@ const DeviceApiFp = function (configuration) {
|
|
|
303
281
|
* @param {*} [options] Override http request option.
|
|
304
282
|
* @throws {RequiredError}
|
|
305
283
|
*/
|
|
306
|
-
|
|
284
|
+
getDevices(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.getDevices(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.getDevices']) === 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
|
},
|
|
315
293
|
/**
|
|
316
294
|
* Lists all OEM names
|
|
317
|
-
* @summary Get Oems
|
|
295
|
+
* @summary Get Oems
|
|
318
296
|
* @param {*} [options] Override http request option.
|
|
319
297
|
* @throws {RequiredError}
|
|
320
298
|
*/
|
|
321
|
-
|
|
299
|
+
getOems(options) {
|
|
322
300
|
return __awaiter(this, void 0, void 0, function* () {
|
|
323
301
|
var _a, _b, _c;
|
|
324
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
302
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOems(options);
|
|
325
303
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
326
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DeviceApi.
|
|
304
|
+
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;
|
|
327
305
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
328
306
|
});
|
|
329
307
|
},
|
|
@@ -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
|
+
getDevice(deviceId, id, codename, options) {
|
|
328
|
+
return localVarFp.getDevice(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
|
+
getDeviceDeprecated(deviceId, options) {
|
|
339
|
+
return localVarFp.getDeviceDeprecated(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,17 +355,17 @@ 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
|
+
getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options) {
|
|
359
|
+
return localVarFp.getDevices(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
|
|
384
|
-
* @summary Get Oems
|
|
363
|
+
* @summary Get Oems
|
|
385
364
|
* @param {*} [options] Override http request option.
|
|
386
365
|
* @throws {RequiredError}
|
|
387
366
|
*/
|
|
388
|
-
|
|
389
|
-
return localVarFp.
|
|
367
|
+
getOems(options) {
|
|
368
|
+
return localVarFp.getOems(options).then((request) => request(axios, basePath));
|
|
390
369
|
},
|
|
391
370
|
};
|
|
392
371
|
};
|
|
@@ -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
|
+
getDevice(deviceId, id, codename, options) {
|
|
391
|
+
return (0, exports.DeviceApiFp)(this.configuration).getDevice(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
|
+
getDeviceDeprecated(deviceId, options) {
|
|
403
|
+
return (0, exports.DeviceApiFp)(this.configuration).getDeviceDeprecated(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,18 +420,18 @@ 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
|
+
getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options) {
|
|
424
|
+
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));
|
|
445
425
|
}
|
|
446
426
|
/**
|
|
447
427
|
* Lists all OEM names
|
|
448
|
-
* @summary Get Oems
|
|
428
|
+
* @summary Get Oems
|
|
449
429
|
* @param {*} [options] Override http request option.
|
|
450
430
|
* @throws {RequiredError}
|
|
451
431
|
* @memberof DeviceApi
|
|
452
432
|
*/
|
|
453
|
-
|
|
454
|
-
return (0, exports.DeviceApiFp)(this.configuration).
|
|
433
|
+
getOems(options) {
|
|
434
|
+
return (0, exports.DeviceApiFp)(this.configuration).getOems(options).then((request) => request(this.axios, this.basePath));
|
|
455
435
|
}
|
|
456
436
|
}
|
|
457
437
|
exports.DeviceApi = DeviceApi;
|
|
@@ -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
|
+
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 = {}) {
|
|
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
|
+
getReleaseDeprecated: (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)('getReleaseDeprecated', '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);
|
|
@@ -569,7 +538,7 @@ const ReleaseApiAxiosParamCreator = function (configuration) {
|
|
|
569
538
|
* @param {*} [options] Override http request option.
|
|
570
539
|
* @throws {RequiredError}
|
|
571
540
|
*/
|
|
572
|
-
|
|
541
|
+
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 = {}) {
|
|
573
542
|
const localVarPath = `/releases/`;
|
|
574
543
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
575
544
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -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
|
}
|
|
@@ -657,9 +620,9 @@ const ReleaseApiAxiosParamCreator = function (configuration) {
|
|
|
657
620
|
* @deprecated
|
|
658
621
|
* @throws {RequiredError}
|
|
659
622
|
*/
|
|
660
|
-
|
|
623
|
+
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 = {}) {
|
|
661
624
|
// verify required parameter 'lastKnownId' is not null or undefined
|
|
662
|
-
(0, common_1.assertParamExists)('
|
|
625
|
+
(0, common_1.assertParamExists)('getUpdatesDeprecated', 'lastKnownId', lastKnownId);
|
|
663
626
|
const localVarPath = `/updates/{last_known_id}`
|
|
664
627
|
.replace(`{${"last_known_id"}}`, encodeURIComponent(String(lastKnownId)));
|
|
665
628
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -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
|
+
getRelease(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.getRelease(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.getRelease']) === 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
|
+
getReleaseDeprecated(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.getReleaseDeprecated(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.getReleaseDeprecated']) === 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
|
},
|
|
@@ -767,12 +725,12 @@ const ReleaseApiFp = function (configuration) {
|
|
|
767
725
|
* @param {*} [options] Override http request option.
|
|
768
726
|
* @throws {RequiredError}
|
|
769
727
|
*/
|
|
770
|
-
|
|
728
|
+
getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options) {
|
|
771
729
|
return __awaiter(this, void 0, void 0, function* () {
|
|
772
730
|
var _a, _b, _c;
|
|
773
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
731
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options);
|
|
774
732
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
775
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReleaseApi.
|
|
733
|
+
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;
|
|
776
734
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
777
735
|
});
|
|
778
736
|
},
|
|
@@ -789,12 +747,12 @@ const ReleaseApiFp = function (configuration) {
|
|
|
789
747
|
* @deprecated
|
|
790
748
|
* @throws {RequiredError}
|
|
791
749
|
*/
|
|
792
|
-
|
|
750
|
+
getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options) {
|
|
793
751
|
return __awaiter(this, void 0, void 0, function* () {
|
|
794
752
|
var _a, _b, _c;
|
|
795
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
753
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options);
|
|
796
754
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
797
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ReleaseApi.
|
|
755
|
+
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;
|
|
798
756
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
799
757
|
});
|
|
800
758
|
},
|
|
@@ -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
|
+
getRelease(releaseId, id, buildId, filename, options) {
|
|
780
|
+
return localVarFp.getRelease(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
|
+
getReleaseDeprecated(releaseId, options) {
|
|
791
|
+
return localVarFp.getReleaseDeprecated(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.
|
|
@@ -853,8 +812,8 @@ const ReleaseApiFactory = function (configuration, basePath, axios) {
|
|
|
853
812
|
* @param {*} [options] Override http request option.
|
|
854
813
|
* @throws {RequiredError}
|
|
855
814
|
*/
|
|
856
|
-
|
|
857
|
-
return localVarFp.
|
|
815
|
+
getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options) {
|
|
816
|
+
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));
|
|
858
817
|
},
|
|
859
818
|
/**
|
|
860
819
|
* 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!
|
|
@@ -869,8 +828,8 @@ const ReleaseApiFactory = function (configuration, basePath, axios) {
|
|
|
869
828
|
* @deprecated
|
|
870
829
|
* @throws {RequiredError}
|
|
871
830
|
*/
|
|
872
|
-
|
|
873
|
-
return localVarFp.
|
|
831
|
+
getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options) {
|
|
832
|
+
return localVarFp.getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options).then((request) => request(axios, basePath));
|
|
874
833
|
},
|
|
875
834
|
};
|
|
876
835
|
};
|
|
@@ -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
|
+
getRelease(releaseId, id, buildId, filename, options) {
|
|
856
|
+
return (0, exports.ReleaseApiFp)(this.configuration).getRelease(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
|
+
getReleaseDeprecated(releaseId, options) {
|
|
868
|
+
return (0, exports.ReleaseApiFp)(this.configuration).getReleaseDeprecated(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.
|
|
@@ -930,8 +890,8 @@ class ReleaseApi extends base_1.BaseAPI {
|
|
|
930
890
|
* @throws {RequiredError}
|
|
931
891
|
* @memberof ReleaseApi
|
|
932
892
|
*/
|
|
933
|
-
|
|
934
|
-
return (0, exports.ReleaseApiFp)(this.configuration).
|
|
893
|
+
getReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit, options) {
|
|
894
|
+
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));
|
|
935
895
|
}
|
|
936
896
|
/**
|
|
937
897
|
* 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!
|
|
@@ -947,8 +907,8 @@ class ReleaseApi extends base_1.BaseAPI {
|
|
|
947
907
|
* @throws {RequiredError}
|
|
948
908
|
* @memberof ReleaseApi
|
|
949
909
|
*/
|
|
950
|
-
|
|
951
|
-
return (0, exports.ReleaseApiFp)(this.configuration).
|
|
910
|
+
getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options) {
|
|
911
|
+
return (0, exports.ReleaseApiFp)(this.configuration).getUpdatesDeprecated(lastKnownId, deviceId, type, releaseType, skip, limit, options).then((request) => request(this.axios, this.basePath));
|
|
952
912
|
}
|
|
953
913
|
}
|
|
954
914
|
exports.ReleaseApi = ReleaseApi;
|
|
@@ -964,7 +924,7 @@ const StatsApiAxiosParamCreator = function (configuration) {
|
|
|
964
924
|
* @param {*} [options] Override http request option.
|
|
965
925
|
* @throws {RequiredError}
|
|
966
926
|
*/
|
|
967
|
-
|
|
927
|
+
getPublicStats: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
968
928
|
const localVarPath = `/stats/`;
|
|
969
929
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
970
930
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -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);
|
|
@@ -1005,12 +959,12 @@ const StatsApiFp = function (configuration) {
|
|
|
1005
959
|
* @param {*} [options] Override http request option.
|
|
1006
960
|
* @throws {RequiredError}
|
|
1007
961
|
*/
|
|
1008
|
-
|
|
962
|
+
getPublicStats(options) {
|
|
1009
963
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1010
964
|
var _a, _b, _c;
|
|
1011
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
965
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublicStats(options);
|
|
1012
966
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1013
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StatsApi.
|
|
967
|
+
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;
|
|
1014
968
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1015
969
|
});
|
|
1016
970
|
},
|
|
@@ -1030,8 +984,8 @@ const StatsApiFactory = function (configuration, basePath, axios) {
|
|
|
1030
984
|
* @param {*} [options] Override http request option.
|
|
1031
985
|
* @throws {RequiredError}
|
|
1032
986
|
*/
|
|
1033
|
-
|
|
1034
|
-
return localVarFp.
|
|
987
|
+
getPublicStats(options) {
|
|
988
|
+
return localVarFp.getPublicStats(options).then((request) => request(axios, basePath));
|
|
1035
989
|
},
|
|
1036
990
|
};
|
|
1037
991
|
};
|
|
@@ -1050,8 +1004,8 @@ class StatsApi extends base_1.BaseAPI {
|
|
|
1050
1004
|
* @throws {RequiredError}
|
|
1051
1005
|
* @memberof StatsApi
|
|
1052
1006
|
*/
|
|
1053
|
-
|
|
1054
|
-
return (0, exports.StatsApiFp)(this.configuration).
|
|
1007
|
+
getPublicStats(options) {
|
|
1008
|
+
return (0, exports.StatsApiFp)(this.configuration).getPublicStats(options).then((request) => request(this.axios, this.basePath));
|
|
1055
1009
|
}
|
|
1056
1010
|
}
|
|
1057
1011
|
exports.StatsApi = StatsApi;
|