@orangefox-recovery/foxclient 5.3.3 → 6.0.4

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.
Files changed (213) hide show
  1. package/.openapi-generator/FILES +20 -22
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +30 -38
  4. package/dist/apis/DeviceApi.d.ts +116 -77
  5. package/dist/apis/DeviceApi.js +85 -59
  6. package/dist/apis/PasteApi.d.ts +46 -30
  7. package/dist/apis/PasteApi.js +39 -25
  8. package/dist/apis/ReleaseApi.d.ts +177 -104
  9. package/dist/apis/ReleaseApi.js +132 -81
  10. package/dist/apis/ReportApi.d.ts +64 -0
  11. package/dist/apis/ReportApi.js +89 -0
  12. package/dist/apis/StatsApi.d.ts +25 -15
  13. package/dist/apis/StatsApi.js +22 -13
  14. package/dist/apis/index.d.ts +1 -0
  15. package/dist/apis/index.js +1 -0
  16. package/dist/esm/apis/DeviceApi.d.ts +116 -77
  17. package/dist/esm/apis/DeviceApi.js +86 -60
  18. package/dist/esm/apis/PasteApi.d.ts +46 -30
  19. package/dist/esm/apis/PasteApi.js +40 -26
  20. package/dist/esm/apis/ReleaseApi.d.ts +177 -104
  21. package/dist/esm/apis/ReleaseApi.js +133 -82
  22. package/dist/esm/apis/ReportApi.d.ts +64 -0
  23. package/dist/esm/apis/ReportApi.js +85 -0
  24. package/dist/esm/apis/StatsApi.d.ts +25 -15
  25. package/dist/esm/apis/StatsApi.js +23 -14
  26. package/dist/esm/apis/index.d.ts +1 -0
  27. package/dist/esm/apis/index.js +1 -0
  28. package/dist/esm/models/DeviceResponse.d.ts +33 -29
  29. package/dist/esm/models/DeviceResponse.js +34 -26
  30. package/dist/esm/models/ErrorResponse.d.ts +32 -0
  31. package/dist/esm/models/ErrorResponse.js +43 -0
  32. package/dist/esm/models/GlobalStatsResponse.d.ts +52 -0
  33. package/dist/esm/models/{GlobalStatsAggregationModel.js → GlobalStatsResponse.js} +14 -14
  34. package/dist/esm/models/ListResponseReleaseResponse.d.ts +8 -8
  35. package/dist/esm/models/ListResponseReleaseResponse.js +8 -7
  36. package/dist/esm/models/ListResponseReleaseResponseDataInner.d.ts +155 -0
  37. package/dist/esm/models/ListResponseReleaseResponseDataInner.js +114 -0
  38. package/dist/esm/models/ListResponseShortDeviceResponse.d.ts +8 -8
  39. package/dist/esm/models/ListResponseShortDeviceResponse.js +8 -7
  40. package/dist/esm/models/ListResponseShortDeviceResponseDataInner.d.ts +98 -0
  41. package/dist/esm/models/ListResponseShortDeviceResponseDataInner.js +85 -0
  42. package/dist/esm/models/ListResponseString.d.ts +38 -0
  43. package/dist/esm/models/ListResponseString.js +47 -0
  44. package/dist/esm/models/MaintainerShortResponse.d.ts +50 -0
  45. package/dist/esm/models/MaintainerShortResponse.js +55 -0
  46. package/dist/esm/models/NewReportRequest.d.ts +58 -0
  47. package/dist/esm/models/NewReportRequest.js +55 -0
  48. package/dist/esm/models/PasteInput.d.ts +3 -3
  49. package/dist/esm/models/PasteInput.js +2 -2
  50. package/dist/esm/models/PasteResponse.d.ts +50 -0
  51. package/dist/esm/models/PasteResponse.js +53 -0
  52. package/dist/esm/models/RecoveryImgResponse.d.ts +6 -6
  53. package/dist/esm/models/RecoveryImgResponse.js +6 -6
  54. package/dist/esm/models/ReleaseGroupsResponse.d.ts +2 -2
  55. package/dist/esm/models/ReleaseGroupsResponse.js +2 -2
  56. package/dist/esm/models/ReleaseResponse.d.ts +46 -42
  57. package/dist/esm/models/ReleaseResponse.js +45 -44
  58. package/dist/esm/models/ShortDeviceResponse.d.ts +29 -25
  59. package/dist/esm/models/ShortDeviceResponse.js +26 -18
  60. package/dist/esm/models/ShortReleaseResponse.d.ts +31 -27
  61. package/dist/esm/models/ShortReleaseResponse.js +35 -32
  62. package/dist/esm/models/TokenResponse.d.ts +38 -0
  63. package/dist/esm/models/TokenResponse.js +47 -0
  64. package/dist/esm/models/index.d.ts +9 -11
  65. package/dist/esm/models/index.js +9 -11
  66. package/dist/esm/runtime.d.ts +2 -2
  67. package/dist/esm/runtime.js +17 -2
  68. package/dist/models/DeviceResponse.d.ts +33 -29
  69. package/dist/models/DeviceResponse.js +34 -26
  70. package/dist/models/ErrorResponse.d.ts +32 -0
  71. package/dist/models/ErrorResponse.js +50 -0
  72. package/dist/models/GlobalStatsResponse.d.ts +52 -0
  73. package/dist/models/GlobalStatsResponse.js +62 -0
  74. package/dist/models/ListResponseReleaseResponse.d.ts +8 -8
  75. package/dist/models/ListResponseReleaseResponse.js +8 -7
  76. package/dist/models/ListResponseReleaseResponseDataInner.d.ts +155 -0
  77. package/dist/models/ListResponseReleaseResponseDataInner.js +121 -0
  78. package/dist/models/ListResponseShortDeviceResponse.d.ts +8 -8
  79. package/dist/models/ListResponseShortDeviceResponse.js +8 -7
  80. package/dist/models/ListResponseShortDeviceResponseDataInner.d.ts +98 -0
  81. package/dist/models/ListResponseShortDeviceResponseDataInner.js +92 -0
  82. package/dist/models/ListResponseString.d.ts +38 -0
  83. package/dist/models/ListResponseString.js +54 -0
  84. package/dist/models/MaintainerShortResponse.d.ts +50 -0
  85. package/dist/models/MaintainerShortResponse.js +62 -0
  86. package/dist/models/NewReportRequest.d.ts +58 -0
  87. package/dist/models/NewReportRequest.js +62 -0
  88. package/dist/models/PasteInput.d.ts +3 -3
  89. package/dist/models/PasteInput.js +2 -2
  90. package/dist/models/PasteResponse.d.ts +50 -0
  91. package/dist/models/PasteResponse.js +60 -0
  92. package/dist/models/RecoveryImgResponse.d.ts +6 -6
  93. package/dist/models/RecoveryImgResponse.js +6 -6
  94. package/dist/models/ReleaseGroupsResponse.d.ts +2 -2
  95. package/dist/models/ReleaseGroupsResponse.js +2 -2
  96. package/dist/models/ReleaseResponse.d.ts +46 -42
  97. package/dist/models/ReleaseResponse.js +45 -44
  98. package/dist/models/ShortDeviceResponse.d.ts +29 -25
  99. package/dist/models/ShortDeviceResponse.js +26 -18
  100. package/dist/models/ShortReleaseResponse.d.ts +31 -27
  101. package/dist/models/ShortReleaseResponse.js +35 -32
  102. package/dist/models/TokenResponse.d.ts +38 -0
  103. package/dist/models/TokenResponse.js +54 -0
  104. package/dist/models/index.d.ts +9 -11
  105. package/dist/models/index.js +9 -11
  106. package/dist/runtime.d.ts +2 -2
  107. package/dist/runtime.js +17 -2
  108. package/docs/DeviceApi.md +83 -90
  109. package/docs/DeviceResponse.md +19 -17
  110. package/docs/{ReleasesSort.md → ErrorResponse.md} +6 -4
  111. package/docs/{GlobalStatsAggregationModel.md → GlobalStatsResponse.md} +6 -6
  112. package/docs/ListResponseReleaseResponse.md +2 -2
  113. package/docs/ListResponseReleaseResponseDataInner.md +74 -0
  114. package/docs/ListResponseShortDeviceResponse.md +2 -2
  115. package/docs/ListResponseShortDeviceResponseDataInner.md +56 -0
  116. package/docs/{ListResponseStr.md → ListResponseString.md} +6 -6
  117. package/docs/{MaintainerShortModel.md → MaintainerShortResponse.md} +9 -7
  118. package/docs/{ListResponseShortReleaseResponse.md → NewReportRequest.md} +14 -8
  119. package/docs/PasteApi.md +25 -29
  120. package/docs/{PasteOutput.md → PasteResponse.md} +7 -7
  121. package/docs/RecoveryImgResponse.md +2 -2
  122. package/docs/ReleaseApi.md +176 -118
  123. package/docs/ReleaseResponse.md +28 -26
  124. package/docs/ReportApi.md +84 -0
  125. package/docs/ShortDeviceResponse.md +14 -12
  126. package/docs/ShortReleaseResponse.md +22 -20
  127. package/docs/StatsApi.md +10 -10
  128. package/docs/{ValidationErrorLocInner.md → TokenResponse.md} +8 -4
  129. package/package.json +3 -13
  130. package/src/apis/DeviceApi.ts +175 -116
  131. package/src/apis/PasteApi.ts +72 -46
  132. package/src/apis/ReleaseApi.ts +281 -181
  133. package/src/apis/ReportApi.ts +139 -0
  134. package/src/apis/StatsApi.ts +40 -22
  135. package/src/apis/index.ts +1 -0
  136. package/src/models/DeviceResponse.ts +65 -55
  137. package/src/models/ErrorResponse.ts +66 -0
  138. package/src/models/GlobalStatsResponse.ts +93 -0
  139. package/src/models/ListResponseReleaseResponse.ts +17 -16
  140. package/src/models/ListResponseReleaseResponseDataInner.ts +249 -0
  141. package/src/models/ListResponseShortDeviceResponse.ts +17 -16
  142. package/src/models/ListResponseShortDeviceResponseDataInner.ts +164 -0
  143. package/src/models/ListResponseString.ts +75 -0
  144. package/src/models/MaintainerShortResponse.ts +93 -0
  145. package/src/models/NewReportRequest.ts +100 -0
  146. package/src/models/PasteInput.ts +3 -3
  147. package/src/models/PasteResponse.ts +92 -0
  148. package/src/models/RecoveryImgResponse.ts +9 -9
  149. package/src/models/ReleaseGroupsResponse.ts +2 -2
  150. package/src/models/ReleaseResponse.ts +85 -86
  151. package/src/models/ShortDeviceResponse.ts +50 -40
  152. package/src/models/ShortReleaseResponse.ts +62 -64
  153. package/src/models/TokenResponse.ts +75 -0
  154. package/src/models/index.ts +9 -11
  155. package/src/runtime.ts +20 -2
  156. package/dist/esm/models/GlobalStatsAggregationModel.d.ts +0 -52
  157. package/dist/esm/models/HTTPValidationError.d.ts +0 -33
  158. package/dist/esm/models/HTTPValidationError.js +0 -42
  159. package/dist/esm/models/ListResponseShortReleaseResponse.d.ts +0 -39
  160. package/dist/esm/models/ListResponseShortReleaseResponse.js +0 -47
  161. package/dist/esm/models/ListResponseStr.d.ts +0 -38
  162. package/dist/esm/models/ListResponseStr.js +0 -46
  163. package/dist/esm/models/MaintainerShortModel.d.ts +0 -44
  164. package/dist/esm/models/MaintainerShortModel.js +0 -51
  165. package/dist/esm/models/PasteOutput.d.ts +0 -50
  166. package/dist/esm/models/PasteOutput.js +0 -53
  167. package/dist/esm/models/ReleaseType.d.ts +0 -26
  168. package/dist/esm/models/ReleaseType.js +0 -44
  169. package/dist/esm/models/ReleasesSort.d.ts +0 -25
  170. package/dist/esm/models/ReleasesSort.js +0 -43
  171. package/dist/esm/models/ResponseGetReleases.d.ts +0 -41
  172. package/dist/esm/models/ResponseGetReleases.js +0 -46
  173. package/dist/esm/models/ValidationError.d.ts +0 -45
  174. package/dist/esm/models/ValidationError.js +0 -52
  175. package/dist/esm/models/ValidationErrorLocInner.d.ts +0 -26
  176. package/dist/esm/models/ValidationErrorLocInner.js +0 -31
  177. package/dist/models/GlobalStatsAggregationModel.d.ts +0 -52
  178. package/dist/models/GlobalStatsAggregationModel.js +0 -62
  179. package/dist/models/HTTPValidationError.d.ts +0 -33
  180. package/dist/models/HTTPValidationError.js +0 -49
  181. package/dist/models/ListResponseShortReleaseResponse.d.ts +0 -39
  182. package/dist/models/ListResponseShortReleaseResponse.js +0 -54
  183. package/dist/models/ListResponseStr.d.ts +0 -38
  184. package/dist/models/ListResponseStr.js +0 -53
  185. package/dist/models/MaintainerShortModel.d.ts +0 -44
  186. package/dist/models/MaintainerShortModel.js +0 -58
  187. package/dist/models/PasteOutput.d.ts +0 -50
  188. package/dist/models/PasteOutput.js +0 -60
  189. package/dist/models/ReleaseType.d.ts +0 -26
  190. package/dist/models/ReleaseType.js +0 -52
  191. package/dist/models/ReleasesSort.d.ts +0 -25
  192. package/dist/models/ReleasesSort.js +0 -51
  193. package/dist/models/ResponseGetReleases.d.ts +0 -41
  194. package/dist/models/ResponseGetReleases.js +0 -53
  195. package/dist/models/ValidationError.d.ts +0 -45
  196. package/dist/models/ValidationError.js +0 -59
  197. package/dist/models/ValidationErrorLocInner.d.ts +0 -26
  198. package/dist/models/ValidationErrorLocInner.js +0 -38
  199. package/docs/HTTPValidationError.md +0 -34
  200. package/docs/ReleaseType.md +0 -32
  201. package/docs/ResponseGetReleases.md +0 -36
  202. package/docs/ValidationError.md +0 -38
  203. package/src/models/GlobalStatsAggregationModel.ts +0 -93
  204. package/src/models/HTTPValidationError.ts +0 -73
  205. package/src/models/ListResponseShortReleaseResponse.ts +0 -82
  206. package/src/models/ListResponseStr.ts +0 -74
  207. package/src/models/MaintainerShortModel.ts +0 -84
  208. package/src/models/PasteOutput.ts +0 -92
  209. package/src/models/ReleaseType.ts +0 -54
  210. package/src/models/ReleasesSort.ts +0 -53
  211. package/src/models/ResponseGetReleases.ts +0 -96
  212. package/src/models/ValidationError.ts +0 -92
  213. package/src/models/ValidationErrorLocInner.ts +0 -46
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fox API
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 6.0.4
8
+ * Contact: admin@orangefox.tech
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the TokenResponse interface.
16
+ */
17
+ export function instanceOfTokenResponse(value) {
18
+ if (!('accessToken' in value) || value['accessToken'] === undefined)
19
+ return false;
20
+ if (!('tokenType' in value) || value['tokenType'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function TokenResponseFromJSON(json) {
25
+ return TokenResponseFromJSONTyped(json, false);
26
+ }
27
+ export function TokenResponseFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'accessToken': json['access_token'],
33
+ 'tokenType': json['token_type'],
34
+ };
35
+ }
36
+ export function TokenResponseToJSON(json) {
37
+ return TokenResponseToJSONTyped(json, false);
38
+ }
39
+ export function TokenResponseToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'access_token': value['accessToken'],
45
+ 'token_type': value['tokenType'],
46
+ };
47
+ }
@@ -1,20 +1,18 @@
1
1
  export * from './DeviceResponse';
2
- export * from './GlobalStatsAggregationModel';
3
- export * from './HTTPValidationError';
2
+ export * from './ErrorResponse';
3
+ export * from './GlobalStatsResponse';
4
4
  export * from './ListResponseReleaseResponse';
5
+ export * from './ListResponseReleaseResponseDataInner';
5
6
  export * from './ListResponseShortDeviceResponse';
6
- export * from './ListResponseShortReleaseResponse';
7
- export * from './ListResponseStr';
8
- export * from './MaintainerShortModel';
7
+ export * from './ListResponseShortDeviceResponseDataInner';
8
+ export * from './ListResponseString';
9
+ export * from './MaintainerShortResponse';
10
+ export * from './NewReportRequest';
9
11
  export * from './PasteInput';
10
- export * from './PasteOutput';
12
+ export * from './PasteResponse';
11
13
  export * from './RecoveryImgResponse';
12
14
  export * from './ReleaseGroupsResponse';
13
15
  export * from './ReleaseResponse';
14
- export * from './ReleaseType';
15
- export * from './ReleasesSort';
16
- export * from './ResponseGetReleases';
17
16
  export * from './ShortDeviceResponse';
18
17
  export * from './ShortReleaseResponse';
19
- export * from './ValidationError';
20
- export * from './ValidationErrorLocInner';
18
+ export * from './TokenResponse';
@@ -1,22 +1,20 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './DeviceResponse';
4
- export * from './GlobalStatsAggregationModel';
5
- export * from './HTTPValidationError';
4
+ export * from './ErrorResponse';
5
+ export * from './GlobalStatsResponse';
6
6
  export * from './ListResponseReleaseResponse';
7
+ export * from './ListResponseReleaseResponseDataInner';
7
8
  export * from './ListResponseShortDeviceResponse';
8
- export * from './ListResponseShortReleaseResponse';
9
- export * from './ListResponseStr';
10
- export * from './MaintainerShortModel';
9
+ export * from './ListResponseShortDeviceResponseDataInner';
10
+ export * from './ListResponseString';
11
+ export * from './MaintainerShortResponse';
12
+ export * from './NewReportRequest';
11
13
  export * from './PasteInput';
12
- export * from './PasteOutput';
14
+ export * from './PasteResponse';
13
15
  export * from './RecoveryImgResponse';
14
16
  export * from './ReleaseGroupsResponse';
15
17
  export * from './ReleaseResponse';
16
- export * from './ReleaseType';
17
- export * from './ReleasesSort';
18
- export * from './ResponseGetReleases';
19
18
  export * from './ShortDeviceResponse';
20
19
  export * from './ShortReleaseResponse';
21
- export * from './ValidationError';
22
- export * from './ValidationErrorLocInner';
20
+ export * from './TokenResponse';
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Fox API
3
- * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
3
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
4
4
  *
5
- * The version of the OpenAPI document: 5.3.3
5
+ * The version of the OpenAPI document: 6.0.4
6
6
  * Contact: admin@orangefox.tech
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Fox API
5
- * 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.
5
+ * 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.
6
6
  *
7
- * The version of the OpenAPI document: 5.3.3
7
+ * The version of the OpenAPI document: 6.0.4
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -223,6 +223,11 @@ export class ResponseError extends Error {
223
223
  super(msg);
224
224
  this.response = response;
225
225
  this.name = "ResponseError";
226
+ // restore prototype chain
227
+ const actualProto = new.target.prototype;
228
+ if (Object.setPrototypeOf) {
229
+ Object.setPrototypeOf(this, actualProto);
230
+ }
226
231
  }
227
232
  }
228
233
  export class FetchError extends Error {
@@ -230,6 +235,11 @@ export class FetchError extends Error {
230
235
  super(msg);
231
236
  this.cause = cause;
232
237
  this.name = "FetchError";
238
+ // restore prototype chain
239
+ const actualProto = new.target.prototype;
240
+ if (Object.setPrototypeOf) {
241
+ Object.setPrototypeOf(this, actualProto);
242
+ }
233
243
  }
234
244
  }
235
245
  export class RequiredError extends Error {
@@ -237,6 +247,11 @@ export class RequiredError extends Error {
237
247
  super(msg);
238
248
  this.field = field;
239
249
  this.name = "RequiredError";
250
+ // restore prototype chain
251
+ const actualProto = new.target.prototype;
252
+ if (Object.setPrototypeOf) {
253
+ Object.setPrototypeOf(this, actualProto);
254
+ }
240
255
  }
241
256
  }
242
257
  export const COLLECTION_FORMATS = {
@@ -1,15 +1,15 @@
1
1
  /**
2
2
  * Fox API
3
- * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
3
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
4
4
  *
5
- * The version of the OpenAPI document: 5.3.3
5
+ * The version of the OpenAPI document: 6.0.4
6
6
  * Contact: admin@orangefox.tech
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { MaintainerShortModel } from './MaintainerShortModel';
12
+ import type { MaintainerShortResponse } from './MaintainerShortResponse';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -17,73 +17,77 @@ import type { MaintainerShortModel } from './MaintainerShortModel';
17
17
  */
18
18
  export interface DeviceResponse {
19
19
  /**
20
- * Device codename, legacy
20
+ *
21
21
  * @type {string}
22
22
  * @memberof DeviceResponse
23
- * @deprecated
24
23
  */
25
- codename: string;
24
+ legacyId: string;
26
25
  /**
27
- * Model name of device, does not include the OEM part, legacy
26
+ *
28
27
  * @type {string}
29
28
  * @memberof DeviceResponse
30
- * @deprecated
31
29
  */
32
- modelName: string;
30
+ codename: string;
33
31
  /**
34
32
  *
35
- * @type {string}
33
+ * @type {Array<string>}
36
34
  * @memberof DeviceResponse
37
35
  */
38
- oemName: string;
36
+ codenames: Array<string>;
39
37
  /**
40
38
  *
41
39
  * @type {string}
42
40
  * @memberof DeviceResponse
43
41
  */
44
- id: string;
42
+ featuredText?: string;
45
43
  /**
46
44
  *
47
- * @type {Array<string>}
45
+ * @type {string}
48
46
  * @memberof DeviceResponse
49
47
  */
50
- codenames: Array<string>;
48
+ fullName: string;
51
49
  /**
52
50
  *
53
- * @type {Array<string>}
51
+ * @type {string}
54
52
  * @memberof DeviceResponse
55
53
  */
56
- modelNames: Array<string>;
54
+ id: string;
57
55
  /**
58
56
  *
59
57
  * @type {boolean}
60
58
  * @memberof DeviceResponse
61
59
  */
62
- supported: boolean;
60
+ isFeatured: boolean;
63
61
  /**
64
62
  *
65
- * @type {boolean}
63
+ * @type {string}
66
64
  * @memberof DeviceResponse
67
65
  */
68
- isFeatured?: boolean;
66
+ modelName: string;
67
+ /**
68
+ *
69
+ * @type {Array<string>}
70
+ * @memberof DeviceResponse
71
+ */
72
+ modelNames: Array<string>;
69
73
  /**
70
74
  *
71
75
  * @type {string}
72
76
  * @memberof DeviceResponse
73
77
  */
74
- featuredText?: string | null;
78
+ oemName: string;
75
79
  /**
76
80
  *
77
- * @type {MaintainerShortModel}
81
+ * @type {boolean}
78
82
  * @memberof DeviceResponse
79
83
  */
80
- maintainer: MaintainerShortModel;
84
+ supported: boolean;
81
85
  /**
82
86
  *
83
87
  * @type {string}
84
88
  * @memberof DeviceResponse
85
89
  */
86
- notes?: string | null;
90
+ url: string;
87
91
  /**
88
92
  *
89
93
  * @type {string}
@@ -91,17 +95,17 @@ export interface DeviceResponse {
91
95
  */
92
96
  deviceTree?: string | null;
93
97
  /**
94
- * Full name of device / devices, legacy
95
- * @type {string}
98
+ *
99
+ * @type {MaintainerShortResponse}
96
100
  * @memberof DeviceResponse
97
101
  */
98
- readonly fullName: string;
102
+ maintainer: MaintainerShortResponse;
99
103
  /**
100
- * URL of the device on the official website
104
+ *
101
105
  * @type {string}
102
106
  * @memberof DeviceResponse
103
107
  */
104
- readonly url: string;
108
+ notes?: string | null;
105
109
  }
106
110
  /**
107
111
  * Check if a given object implements the DeviceResponse interface.
@@ -110,4 +114,4 @@ export declare function instanceOfDeviceResponse(value: object): value is Device
110
114
  export declare function DeviceResponseFromJSON(json: any): DeviceResponse;
111
115
  export declare function DeviceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceResponse;
112
116
  export declare function DeviceResponseToJSON(json: any): DeviceResponse;
113
- export declare function DeviceResponseToJSONTyped(value?: Omit<DeviceResponse, 'fullName' | 'url'> | null, ignoreDiscriminator?: boolean): any;
117
+ export declare function DeviceResponseToJSONTyped(value?: DeviceResponse | null, ignoreDiscriminator?: boolean): any;
@@ -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 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
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.3.3
8
+ * The version of the OpenAPI document: 6.0.4
9
9
  * Contact: admin@orangefox.tech
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -18,31 +18,35 @@ exports.DeviceResponseFromJSON = DeviceResponseFromJSON;
18
18
  exports.DeviceResponseFromJSONTyped = DeviceResponseFromJSONTyped;
19
19
  exports.DeviceResponseToJSON = DeviceResponseToJSON;
20
20
  exports.DeviceResponseToJSONTyped = DeviceResponseToJSONTyped;
21
- const MaintainerShortModel_1 = require("./MaintainerShortModel");
21
+ const MaintainerShortResponse_1 = require("./MaintainerShortResponse");
22
22
  /**
23
23
  * Check if a given object implements the DeviceResponse interface.
24
24
  */
25
25
  function instanceOfDeviceResponse(value) {
26
+ if (!('legacyId' in value) || value['legacyId'] === undefined)
27
+ return false;
26
28
  if (!('codename' in value) || value['codename'] === undefined)
27
29
  return false;
28
- if (!('modelName' in value) || value['modelName'] === undefined)
30
+ if (!('codenames' in value) || value['codenames'] === undefined)
29
31
  return false;
30
- if (!('oemName' in value) || value['oemName'] === undefined)
32
+ if (!('fullName' in value) || value['fullName'] === undefined)
31
33
  return false;
32
34
  if (!('id' in value) || value['id'] === undefined)
33
35
  return false;
34
- if (!('codenames' in value) || value['codenames'] === undefined)
36
+ if (!('isFeatured' in value) || value['isFeatured'] === undefined)
35
37
  return false;
36
- if (!('modelNames' in value) || value['modelNames'] === undefined)
38
+ if (!('modelName' in value) || value['modelName'] === undefined)
37
39
  return false;
38
- if (!('supported' in value) || value['supported'] === undefined)
40
+ if (!('modelNames' in value) || value['modelNames'] === undefined)
39
41
  return false;
40
- if (!('maintainer' in value) || value['maintainer'] === undefined)
42
+ if (!('oemName' in value) || value['oemName'] === undefined)
41
43
  return false;
42
- if (!('fullName' in value) || value['fullName'] === undefined)
44
+ if (!('supported' in value) || value['supported'] === undefined)
43
45
  return false;
44
46
  if (!('url' in value) || value['url'] === undefined)
45
47
  return false;
48
+ if (!('maintainer' in value) || value['maintainer'] === undefined)
49
+ return false;
46
50
  return true;
47
51
  }
48
52
  function DeviceResponseFromJSON(json) {
@@ -53,20 +57,21 @@ function DeviceResponseFromJSONTyped(json, ignoreDiscriminator) {
53
57
  return json;
54
58
  }
55
59
  return {
60
+ 'legacyId': json['_id'],
56
61
  'codename': json['codename'],
57
- 'modelName': json['model_name'],
58
- 'oemName': json['oem_name'],
59
- 'id': json['id'],
60
62
  'codenames': json['codenames'],
61
- 'modelNames': json['model_names'],
62
- 'supported': json['supported'],
63
- 'isFeatured': json['is_featured'] == null ? undefined : json['is_featured'],
64
63
  'featuredText': json['featured_text'] == null ? undefined : json['featured_text'],
65
- 'maintainer': (0, MaintainerShortModel_1.MaintainerShortModelFromJSON)(json['maintainer']),
66
- 'notes': json['notes'] == null ? undefined : json['notes'],
67
- 'deviceTree': json['device_tree'] == null ? undefined : json['device_tree'],
68
64
  'fullName': json['full_name'],
65
+ 'id': json['id'],
66
+ 'isFeatured': json['is_featured'],
67
+ 'modelName': json['model_name'],
68
+ 'modelNames': json['model_names'],
69
+ 'oemName': json['oem_name'],
70
+ 'supported': json['supported'],
69
71
  'url': json['url'],
72
+ 'deviceTree': json['device_tree'] == null ? undefined : json['device_tree'],
73
+ 'maintainer': (0, MaintainerShortResponse_1.MaintainerShortResponseFromJSON)(json['maintainer']),
74
+ 'notes': json['notes'] == null ? undefined : json['notes'],
70
75
  };
71
76
  }
72
77
  function DeviceResponseToJSON(json) {
@@ -77,17 +82,20 @@ function DeviceResponseToJSONTyped(value, ignoreDiscriminator = false) {
77
82
  return value;
78
83
  }
79
84
  return {
85
+ '_id': value['legacyId'],
80
86
  'codename': value['codename'],
81
- 'model_name': value['modelName'],
82
- 'oem_name': value['oemName'],
83
- 'id': value['id'],
84
87
  'codenames': value['codenames'],
88
+ 'featured_text': value['featuredText'],
89
+ 'full_name': value['fullName'],
90
+ 'id': value['id'],
91
+ 'is_featured': value['isFeatured'],
92
+ 'model_name': value['modelName'],
85
93
  'model_names': value['modelNames'],
94
+ 'oem_name': value['oemName'],
86
95
  'supported': value['supported'],
87
- 'is_featured': value['isFeatured'],
88
- 'featured_text': value['featuredText'],
89
- 'maintainer': (0, MaintainerShortModel_1.MaintainerShortModelToJSON)(value['maintainer']),
90
- 'notes': value['notes'],
96
+ 'url': value['url'],
91
97
  'device_tree': value['deviceTree'],
98
+ 'maintainer': (0, MaintainerShortResponse_1.MaintainerShortResponseToJSON)(value['maintainer']),
99
+ 'notes': value['notes'],
92
100
  };
93
101
  }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Fox API
3
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
4
+ *
5
+ * The version of the OpenAPI document: 6.0.4
6
+ * Contact: admin@orangefox.tech
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ErrorResponse
16
+ */
17
+ export interface ErrorResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ErrorResponse
22
+ */
23
+ detail: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the ErrorResponse interface.
27
+ */
28
+ export declare function instanceOfErrorResponse(value: object): value is ErrorResponse;
29
+ export declare function ErrorResponseFromJSON(json: any): ErrorResponse;
30
+ export declare function ErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorResponse;
31
+ export declare function ErrorResponseToJSON(json: any): ErrorResponse;
32
+ export declare function ErrorResponseToJSONTyped(value?: ErrorResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
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 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
+ *
8
+ * The version of the OpenAPI document: 6.0.4
9
+ * Contact: admin@orangefox.tech
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfErrorResponse = instanceOfErrorResponse;
17
+ exports.ErrorResponseFromJSON = ErrorResponseFromJSON;
18
+ exports.ErrorResponseFromJSONTyped = ErrorResponseFromJSONTyped;
19
+ exports.ErrorResponseToJSON = ErrorResponseToJSON;
20
+ exports.ErrorResponseToJSONTyped = ErrorResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ErrorResponse interface.
23
+ */
24
+ function instanceOfErrorResponse(value) {
25
+ if (!('detail' in value) || value['detail'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function ErrorResponseFromJSON(json) {
30
+ return ErrorResponseFromJSONTyped(json, false);
31
+ }
32
+ function ErrorResponseFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'detail': json['detail'],
38
+ };
39
+ }
40
+ function ErrorResponseToJSON(json) {
41
+ return ErrorResponseToJSONTyped(json, false);
42
+ }
43
+ function ErrorResponseToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'detail': value['detail'],
49
+ };
50
+ }
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Fox API
3
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
4
+ *
5
+ * The version of the OpenAPI document: 6.0.4
6
+ * Contact: admin@orangefox.tech
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface GlobalStatsResponse
16
+ */
17
+ export interface GlobalStatsResponse {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof GlobalStatsResponse
22
+ */
23
+ count: number;
24
+ /**
25
+ *
26
+ * @type {{ [key: string]: number; }}
27
+ * @memberof GlobalStatsResponse
28
+ */
29
+ days: {
30
+ [key: string]: number;
31
+ };
32
+ /**
33
+ *
34
+ * @type {number}
35
+ * @memberof GlobalStatsResponse
36
+ */
37
+ deviceCount: number;
38
+ /**
39
+ *
40
+ * @type {number}
41
+ * @memberof GlobalStatsResponse
42
+ */
43
+ releaseCount: number;
44
+ }
45
+ /**
46
+ * Check if a given object implements the GlobalStatsResponse interface.
47
+ */
48
+ export declare function instanceOfGlobalStatsResponse(value: object): value is GlobalStatsResponse;
49
+ export declare function GlobalStatsResponseFromJSON(json: any): GlobalStatsResponse;
50
+ export declare function GlobalStatsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalStatsResponse;
51
+ export declare function GlobalStatsResponseToJSON(json: any): GlobalStatsResponse;
52
+ export declare function GlobalStatsResponseToJSONTyped(value?: GlobalStatsResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
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 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
+ *
8
+ * The version of the OpenAPI document: 6.0.4
9
+ * Contact: admin@orangefox.tech
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfGlobalStatsResponse = instanceOfGlobalStatsResponse;
17
+ exports.GlobalStatsResponseFromJSON = GlobalStatsResponseFromJSON;
18
+ exports.GlobalStatsResponseFromJSONTyped = GlobalStatsResponseFromJSONTyped;
19
+ exports.GlobalStatsResponseToJSON = GlobalStatsResponseToJSON;
20
+ exports.GlobalStatsResponseToJSONTyped = GlobalStatsResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the GlobalStatsResponse interface.
23
+ */
24
+ function instanceOfGlobalStatsResponse(value) {
25
+ if (!('count' in value) || value['count'] === undefined)
26
+ return false;
27
+ if (!('days' in value) || value['days'] === undefined)
28
+ return false;
29
+ if (!('deviceCount' in value) || value['deviceCount'] === undefined)
30
+ return false;
31
+ if (!('releaseCount' in value) || value['releaseCount'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function GlobalStatsResponseFromJSON(json) {
36
+ return GlobalStatsResponseFromJSONTyped(json, false);
37
+ }
38
+ function GlobalStatsResponseFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'count': json['count'],
44
+ 'days': json['days'],
45
+ 'deviceCount': json['deviceCount'],
46
+ 'releaseCount': json['releaseCount'],
47
+ };
48
+ }
49
+ function GlobalStatsResponseToJSON(json) {
50
+ return GlobalStatsResponseToJSONTyped(json, false);
51
+ }
52
+ function GlobalStatsResponseToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'count': value['count'],
58
+ 'days': value['days'],
59
+ 'deviceCount': value['deviceCount'],
60
+ 'releaseCount': value['releaseCount'],
61
+ };
62
+ }