@orangefox-recovery/foxclient 6.0.6 → 6.0.8
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 +16 -0
- package/README.md +11 -3
- package/dist/apis/DeviceApi.d.ts +1 -1
- package/dist/apis/DeviceApi.js +1 -1
- package/dist/apis/PasteApi.d.ts +1 -1
- package/dist/apis/PasteApi.js +1 -1
- package/dist/apis/ReleaseApi.d.ts +6 -6
- package/dist/apis/ReleaseApi.js +2 -2
- package/dist/apis/ReportApi.d.ts +1 -1
- package/dist/apis/ReportApi.js +1 -1
- package/dist/apis/StatsApi.d.ts +1 -1
- package/dist/apis/StatsApi.js +1 -1
- package/dist/apis/UptimeApi.d.ts +59 -0
- package/dist/apis/UptimeApi.js +70 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/DeviceApi.d.ts +1 -1
- package/dist/esm/apis/DeviceApi.js +1 -1
- package/dist/esm/apis/PasteApi.d.ts +1 -1
- package/dist/esm/apis/PasteApi.js +1 -1
- package/dist/esm/apis/ReleaseApi.d.ts +6 -6
- package/dist/esm/apis/ReleaseApi.js +3 -3
- package/dist/esm/apis/ReportApi.d.ts +1 -1
- package/dist/esm/apis/ReportApi.js +1 -1
- package/dist/esm/apis/StatsApi.d.ts +1 -1
- package/dist/esm/apis/StatsApi.js +1 -1
- package/dist/esm/apis/UptimeApi.d.ts +59 -0
- package/dist/esm/apis/UptimeApi.js +66 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/DeviceResponse.d.ts +1 -1
- package/dist/esm/models/DeviceResponse.js +1 -1
- package/dist/esm/models/ErrorResponse.d.ts +1 -1
- package/dist/esm/models/ErrorResponse.js +1 -1
- package/dist/esm/models/GlobalStatsResponse.d.ts +1 -1
- package/dist/esm/models/GlobalStatsResponse.js +1 -1
- package/dist/esm/models/ListResponseReleaseResponse.d.ts +1 -1
- package/dist/esm/models/ListResponseReleaseResponse.js +1 -1
- package/dist/esm/models/ListResponseReleaseResponseDataInner.d.ts +13 -1
- package/dist/esm/models/ListResponseReleaseResponseDataInner.js +9 -1
- package/dist/esm/models/ListResponseShortDeviceResponse.d.ts +1 -1
- package/dist/esm/models/ListResponseShortDeviceResponse.js +1 -1
- package/dist/esm/models/ListResponseShortDeviceResponseDataInner.d.ts +1 -1
- package/dist/esm/models/ListResponseShortDeviceResponseDataInner.js +1 -1
- package/dist/esm/models/ListResponseString.d.ts +1 -1
- package/dist/esm/models/ListResponseString.js +1 -1
- package/dist/esm/models/MaintainerShortResponse.d.ts +1 -1
- package/dist/esm/models/MaintainerShortResponse.js +1 -1
- package/dist/esm/models/NewReportRequest.d.ts +1 -1
- package/dist/esm/models/NewReportRequest.js +1 -1
- package/dist/esm/models/PasteInput.d.ts +1 -1
- package/dist/esm/models/PasteInput.js +1 -1
- package/dist/esm/models/PasteResponse.d.ts +1 -1
- package/dist/esm/models/PasteResponse.js +1 -1
- package/dist/esm/models/RecoveryImgResponse.d.ts +1 -1
- package/dist/esm/models/RecoveryImgResponse.js +1 -1
- package/dist/esm/models/ReleaseGroupsResponse.d.ts +1 -1
- package/dist/esm/models/ReleaseGroupsResponse.js +1 -1
- package/dist/esm/models/ReleaseListResponse.d.ts +29 -0
- package/dist/esm/models/ReleaseListResponse.js +51 -0
- package/dist/esm/models/ReleaseResponse.d.ts +13 -1
- package/dist/esm/models/ReleaseResponse.js +9 -1
- package/dist/esm/models/ShortDeviceResponse.d.ts +1 -1
- package/dist/esm/models/ShortDeviceResponse.js +1 -1
- package/dist/esm/models/ShortReleaseResponse.d.ts +1 -1
- package/dist/esm/models/ShortReleaseResponse.js +1 -1
- package/dist/esm/models/TokenResponse.d.ts +1 -1
- package/dist/esm/models/TokenResponse.js +1 -1
- package/dist/esm/models/UptimeHealth.d.ts +57 -0
- package/dist/esm/models/UptimeHealth.js +60 -0
- package/dist/esm/models/UptimeHealthHost.d.ts +50 -0
- package/dist/esm/models/UptimeHealthHost.js +53 -0
- package/dist/esm/models/UptimeMonitor.d.ts +74 -0
- package/dist/esm/models/UptimeMonitor.js +63 -0
- package/dist/esm/models/UptimeMonitorGroup.d.ts +39 -0
- package/dist/esm/models/UptimeMonitorGroup.js +48 -0
- package/dist/esm/models/UptimeMonitors.d.ts +39 -0
- package/dist/esm/models/UptimeMonitors.js +48 -0
- package/dist/esm/models/UptimeResponse.d.ts +46 -0
- package/dist/esm/models/UptimeResponse.js +49 -0
- package/dist/esm/models/index.d.ts +7 -0
- package/dist/esm/models/index.js +7 -0
- package/dist/esm/runtime.d.ts +1 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/DeviceResponse.d.ts +1 -1
- package/dist/models/DeviceResponse.js +1 -1
- package/dist/models/ErrorResponse.d.ts +1 -1
- package/dist/models/ErrorResponse.js +1 -1
- package/dist/models/GlobalStatsResponse.d.ts +1 -1
- package/dist/models/GlobalStatsResponse.js +1 -1
- package/dist/models/ListResponseReleaseResponse.d.ts +1 -1
- package/dist/models/ListResponseReleaseResponse.js +1 -1
- package/dist/models/ListResponseReleaseResponseDataInner.d.ts +13 -1
- package/dist/models/ListResponseReleaseResponseDataInner.js +9 -1
- package/dist/models/ListResponseShortDeviceResponse.d.ts +1 -1
- package/dist/models/ListResponseShortDeviceResponse.js +1 -1
- package/dist/models/ListResponseShortDeviceResponseDataInner.d.ts +1 -1
- package/dist/models/ListResponseShortDeviceResponseDataInner.js +1 -1
- package/dist/models/ListResponseString.d.ts +1 -1
- package/dist/models/ListResponseString.js +1 -1
- package/dist/models/MaintainerShortResponse.d.ts +1 -1
- package/dist/models/MaintainerShortResponse.js +1 -1
- package/dist/models/NewReportRequest.d.ts +1 -1
- package/dist/models/NewReportRequest.js +1 -1
- package/dist/models/PasteInput.d.ts +1 -1
- package/dist/models/PasteInput.js +1 -1
- package/dist/models/PasteResponse.d.ts +1 -1
- package/dist/models/PasteResponse.js +1 -1
- package/dist/models/RecoveryImgResponse.d.ts +1 -1
- package/dist/models/RecoveryImgResponse.js +1 -1
- package/dist/models/ReleaseGroupsResponse.d.ts +1 -1
- package/dist/models/ReleaseGroupsResponse.js +1 -1
- package/dist/models/ReleaseListResponse.d.ts +29 -0
- package/dist/models/ReleaseListResponse.js +57 -0
- package/dist/models/ReleaseResponse.d.ts +13 -1
- package/dist/models/ReleaseResponse.js +9 -1
- package/dist/models/ShortDeviceResponse.d.ts +1 -1
- package/dist/models/ShortDeviceResponse.js +1 -1
- package/dist/models/ShortReleaseResponse.d.ts +1 -1
- package/dist/models/ShortReleaseResponse.js +1 -1
- package/dist/models/TokenResponse.d.ts +1 -1
- package/dist/models/TokenResponse.js +1 -1
- package/dist/models/UptimeHealth.d.ts +57 -0
- package/dist/models/UptimeHealth.js +67 -0
- package/dist/models/UptimeHealthHost.d.ts +50 -0
- package/dist/models/UptimeHealthHost.js +60 -0
- package/dist/models/UptimeMonitor.d.ts +74 -0
- package/dist/models/UptimeMonitor.js +70 -0
- package/dist/models/UptimeMonitorGroup.d.ts +39 -0
- package/dist/models/UptimeMonitorGroup.js +55 -0
- package/dist/models/UptimeMonitors.d.ts +39 -0
- package/dist/models/UptimeMonitors.js +55 -0
- package/dist/models/UptimeResponse.d.ts +46 -0
- package/dist/models/UptimeResponse.js +56 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/docs/ListResponseReleaseResponseDataInner.md +4 -0
- package/docs/ReleaseApi.md +2 -2
- package/docs/ReleaseListResponse.md +37 -0
- package/docs/ReleaseResponse.md +4 -0
- package/docs/UptimeApi.md +69 -0
- package/docs/UptimeHealth.md +43 -0
- package/docs/UptimeHealthHost.md +41 -0
- package/docs/UptimeMonitor.md +49 -0
- package/docs/UptimeMonitorGroup.md +37 -0
- package/docs/UptimeMonitors.md +37 -0
- package/docs/UptimeResponse.md +39 -0
- package/package.json +1 -1
- package/src/apis/DeviceApi.ts +1 -1
- package/src/apis/PasteApi.ts +1 -1
- package/src/apis/ReleaseApi.ts +9 -6
- package/src/apis/ReportApi.ts +1 -1
- package/src/apis/StatsApi.ts +1 -1
- package/src/apis/UptimeApi.ts +103 -0
- package/src/apis/index.ts +1 -0
- package/src/models/DeviceResponse.ts +1 -1
- package/src/models/ErrorResponse.ts +1 -1
- package/src/models/GlobalStatsResponse.ts +1 -1
- package/src/models/ListResponseReleaseResponse.ts +1 -1
- package/src/models/ListResponseReleaseResponseDataInner.ts +19 -1
- package/src/models/ListResponseShortDeviceResponse.ts +1 -1
- package/src/models/ListResponseShortDeviceResponseDataInner.ts +1 -1
- package/src/models/ListResponseString.ts +1 -1
- package/src/models/MaintainerShortResponse.ts +1 -1
- package/src/models/NewReportRequest.ts +1 -1
- package/src/models/PasteInput.ts +1 -1
- package/src/models/PasteResponse.ts +1 -1
- package/src/models/RecoveryImgResponse.ts +1 -1
- package/src/models/ReleaseGroupsResponse.ts +1 -1
- package/src/models/ReleaseListResponse.ts +82 -0
- package/src/models/ReleaseResponse.ts +19 -1
- package/src/models/ShortDeviceResponse.ts +1 -1
- package/src/models/ShortReleaseResponse.ts +1 -1
- package/src/models/TokenResponse.ts +1 -1
- package/src/models/UptimeHealth.ts +110 -0
- package/src/models/UptimeHealthHost.ts +92 -0
- package/src/models/UptimeMonitor.ts +125 -0
- package/src/models/UptimeMonitorGroup.ts +83 -0
- package/src/models/UptimeMonitors.ts +83 -0
- package/src/models/UptimeResponse.ts +97 -0
- package/src/models/index.ts +7 -0
- package/src/runtime.ts +1 -1
|
@@ -0,0 +1,103 @@
|
|
|
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.8
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
ErrorResponse,
|
|
19
|
+
UptimeResponse,
|
|
20
|
+
} from '../models/index';
|
|
21
|
+
import {
|
|
22
|
+
ErrorResponseFromJSON,
|
|
23
|
+
ErrorResponseToJSON,
|
|
24
|
+
UptimeResponseFromJSON,
|
|
25
|
+
UptimeResponseToJSON,
|
|
26
|
+
} from '../models/index';
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* UptimeApi - interface
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface UptimeApiInterface
|
|
33
|
+
*/
|
|
34
|
+
export interface UptimeApiInterface {
|
|
35
|
+
/**
|
|
36
|
+
* Creates request options for getUptime without sending the request
|
|
37
|
+
* @throws {RequiredError}
|
|
38
|
+
* @memberof UptimeApiInterface
|
|
39
|
+
*/
|
|
40
|
+
getUptimeRequestOpts(): Promise<runtime.RequestOpts>;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Combines the FoxHealth report with the Uptime Kuma status page into a single JSON object. Each upstream is fetched independently: if one fails its section is set to null. If both fail, a 502 is returned.
|
|
44
|
+
* @summary GET /uptime - Aggregated public infrastructure status.
|
|
45
|
+
* @param {*} [options] Override http request option.
|
|
46
|
+
* @throws {RequiredError}
|
|
47
|
+
* @memberof UptimeApiInterface
|
|
48
|
+
*/
|
|
49
|
+
getUptimeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UptimeResponse>>;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Combines the FoxHealth report with the Uptime Kuma status page into a single JSON object. Each upstream is fetched independently: if one fails its section is set to null. If both fail, a 502 is returned.
|
|
53
|
+
* GET /uptime - Aggregated public infrastructure status.
|
|
54
|
+
*/
|
|
55
|
+
getUptime(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UptimeResponse>;
|
|
56
|
+
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
62
|
+
export class UptimeApi extends runtime.BaseAPI implements UptimeApiInterface {
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Creates request options for getUptime without sending the request
|
|
66
|
+
*/
|
|
67
|
+
async getUptimeRequestOpts(): Promise<runtime.RequestOpts> {
|
|
68
|
+
const queryParameters: any = {};
|
|
69
|
+
|
|
70
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
let urlPath = `/uptime`;
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
path: urlPath,
|
|
77
|
+
method: 'GET',
|
|
78
|
+
headers: headerParameters,
|
|
79
|
+
query: queryParameters,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Combines the FoxHealth report with the Uptime Kuma status page into a single JSON object. Each upstream is fetched independently: if one fails its section is set to null. If both fail, a 502 is returned.
|
|
85
|
+
* GET /uptime - Aggregated public infrastructure status.
|
|
86
|
+
*/
|
|
87
|
+
async getUptimeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UptimeResponse>> {
|
|
88
|
+
const requestOptions = await this.getUptimeRequestOpts();
|
|
89
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
90
|
+
|
|
91
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UptimeResponseFromJSON(jsonValue));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Combines the FoxHealth report with the Uptime Kuma status page into a single JSON object. Each upstream is fetched independently: if one fails its section is set to null. If both fail, a 502 is returned.
|
|
96
|
+
* GET /uptime - Aggregated public infrastructure status.
|
|
97
|
+
*/
|
|
98
|
+
async getUptime(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UptimeResponse> {
|
|
99
|
+
const response = await this.getUptimeRaw(initOverrides);
|
|
100
|
+
return await response.value();
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
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: 6.0.
|
|
7
|
+
* The version of the OpenAPI document: 6.0.8
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
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: 6.0.
|
|
7
|
+
* The version of the OpenAPI document: 6.0.8
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
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: 6.0.
|
|
7
|
+
* The version of the OpenAPI document: 6.0.8
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
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: 6.0.
|
|
7
|
+
* The version of the OpenAPI document: 6.0.8
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
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: 6.0.
|
|
7
|
+
* The version of the OpenAPI document: 6.0.8
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -147,12 +147,24 @@ export interface ListResponseReleaseResponseDataInner {
|
|
|
147
147
|
* @memberof ListResponseReleaseResponseDataInner
|
|
148
148
|
*/
|
|
149
149
|
recoveryImg: RecoveryImgResponse;
|
|
150
|
+
/**
|
|
151
|
+
* Total number of downloads recorded for this release.
|
|
152
|
+
* @type {number}
|
|
153
|
+
* @memberof ListResponseReleaseResponseDataInner
|
|
154
|
+
*/
|
|
155
|
+
totalDownloads: number;
|
|
150
156
|
/**
|
|
151
157
|
*
|
|
152
158
|
* @type {string}
|
|
153
159
|
* @memberof ListResponseReleaseResponseDataInner
|
|
154
160
|
*/
|
|
155
161
|
url: string;
|
|
162
|
+
/**
|
|
163
|
+
* Downloads in the last 7 UTC days (today plus the previous 6).
|
|
164
|
+
* @type {number}
|
|
165
|
+
* @memberof ListResponseReleaseResponseDataInner
|
|
166
|
+
*/
|
|
167
|
+
weeklyDownloads: number;
|
|
156
168
|
}
|
|
157
169
|
|
|
158
170
|
/**
|
|
@@ -174,7 +186,9 @@ export function instanceOfListResponseReleaseResponseDataInner(value: object): v
|
|
|
174
186
|
if (!('changelog' in value) || value['changelog'] === undefined) return false;
|
|
175
187
|
if (!('mirrors' in value) || value['mirrors'] === undefined) return false;
|
|
176
188
|
if (!('recoveryImg' in value) || value['recoveryImg'] === undefined) return false;
|
|
189
|
+
if (!('totalDownloads' in value) || value['totalDownloads'] === undefined) return false;
|
|
177
190
|
if (!('url' in value) || value['url'] === undefined) return false;
|
|
191
|
+
if (!('weeklyDownloads' in value) || value['weeklyDownloads'] === undefined) return false;
|
|
178
192
|
return true;
|
|
179
193
|
}
|
|
180
194
|
|
|
@@ -208,7 +222,9 @@ export function ListResponseReleaseResponseDataInnerFromJSONTyped(json: any, ign
|
|
|
208
222
|
'mirrors': json['mirrors'],
|
|
209
223
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
210
224
|
'recoveryImg': RecoveryImgResponseFromJSON(json['recovery_img']),
|
|
225
|
+
'totalDownloads': json['total_downloads'],
|
|
211
226
|
'url': json['url'],
|
|
227
|
+
'weeklyDownloads': json['weekly_downloads'],
|
|
212
228
|
};
|
|
213
229
|
}
|
|
214
230
|
|
|
@@ -243,7 +259,9 @@ export function ListResponseReleaseResponseDataInnerToJSONTyped(value?: ListResp
|
|
|
243
259
|
'mirrors': value['mirrors'],
|
|
244
260
|
'notes': value['notes'],
|
|
245
261
|
'recovery_img': RecoveryImgResponseToJSON(value['recoveryImg']),
|
|
262
|
+
'total_downloads': value['totalDownloads'],
|
|
246
263
|
'url': value['url'],
|
|
264
|
+
'weekly_downloads': value['weeklyDownloads'],
|
|
247
265
|
};
|
|
248
266
|
}
|
|
249
267
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
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: 6.0.
|
|
7
|
+
* The version of the OpenAPI document: 6.0.8
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
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: 6.0.
|
|
7
|
+
* The version of the OpenAPI document: 6.0.8
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
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: 6.0.
|
|
7
|
+
* The version of the OpenAPI document: 6.0.8
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
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: 6.0.
|
|
7
|
+
* The version of the OpenAPI document: 6.0.8
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
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: 6.0.
|
|
7
|
+
* The version of the OpenAPI document: 6.0.8
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/src/models/PasteInput.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
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: 6.0.
|
|
7
|
+
* The version of the OpenAPI document: 6.0.8
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
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: 6.0.
|
|
7
|
+
* The version of the OpenAPI document: 6.0.8
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
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: 6.0.
|
|
7
|
+
* The version of the OpenAPI document: 6.0.8
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
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: 6.0.
|
|
7
|
+
* The version of the OpenAPI document: 6.0.8
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,82 @@
|
|
|
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.8
|
|
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
|
+
import type { ListResponseReleaseResponse } from './ListResponseReleaseResponse';
|
|
16
|
+
import {
|
|
17
|
+
instanceOfListResponseReleaseResponse,
|
|
18
|
+
ListResponseReleaseResponseFromJSON,
|
|
19
|
+
ListResponseReleaseResponseFromJSONTyped,
|
|
20
|
+
ListResponseReleaseResponseToJSON,
|
|
21
|
+
} from './ListResponseReleaseResponse';
|
|
22
|
+
import type { ReleaseGroupsResponse } from './ReleaseGroupsResponse';
|
|
23
|
+
import {
|
|
24
|
+
instanceOfReleaseGroupsResponse,
|
|
25
|
+
ReleaseGroupsResponseFromJSON,
|
|
26
|
+
ReleaseGroupsResponseFromJSONTyped,
|
|
27
|
+
ReleaseGroupsResponseToJSON,
|
|
28
|
+
} from './ReleaseGroupsResponse';
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @type ReleaseListResponse
|
|
32
|
+
* Response body for `GET /releases`.
|
|
33
|
+
*
|
|
34
|
+
* The shape of `data` depends on the `group` query parameter: a flat list by
|
|
35
|
+
* default (`ListResponse`), or a version-keyed map when `group=true`
|
|
36
|
+
* (`ReleaseGroupsResponse`). Modeled as an untagged `oneOf` so generated
|
|
37
|
+
* clients deserialize both shapes instead of assuming `data` is always an
|
|
38
|
+
* array (which made them call `.map` on the grouped object and throw).
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
export type ReleaseListResponse = ListResponseReleaseResponse | ReleaseGroupsResponse;
|
|
42
|
+
|
|
43
|
+
export function ReleaseListResponseFromJSON(json: any): ReleaseListResponse {
|
|
44
|
+
return ReleaseListResponseFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function ReleaseListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReleaseListResponse {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
if (typeof json !== 'object') {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
if (instanceOfListResponseReleaseResponse(json)) {
|
|
55
|
+
return ListResponseReleaseResponseFromJSONTyped(json, true);
|
|
56
|
+
}
|
|
57
|
+
if (instanceOfReleaseGroupsResponse(json)) {
|
|
58
|
+
return ReleaseGroupsResponseFromJSONTyped(json, true);
|
|
59
|
+
}
|
|
60
|
+
return {} as any;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ReleaseListResponseToJSON(json: any): any {
|
|
64
|
+
return ReleaseListResponseToJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function ReleaseListResponseToJSONTyped(value?: ReleaseListResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
if (typeof value !== 'object') {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
if (instanceOfListResponseReleaseResponse(value)) {
|
|
75
|
+
return ListResponseReleaseResponseToJSON(value as ListResponseReleaseResponse);
|
|
76
|
+
}
|
|
77
|
+
if (instanceOfReleaseGroupsResponse(value)) {
|
|
78
|
+
return ReleaseGroupsResponseToJSON(value as ReleaseGroupsResponse);
|
|
79
|
+
}
|
|
80
|
+
return {};
|
|
81
|
+
}
|
|
82
|
+
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
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: 6.0.
|
|
7
|
+
* The version of the OpenAPI document: 6.0.8
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -147,12 +147,24 @@ export interface ReleaseResponse {
|
|
|
147
147
|
* @memberof ReleaseResponse
|
|
148
148
|
*/
|
|
149
149
|
recoveryImg: RecoveryImgResponse;
|
|
150
|
+
/**
|
|
151
|
+
* Total number of downloads recorded for this release.
|
|
152
|
+
* @type {number}
|
|
153
|
+
* @memberof ReleaseResponse
|
|
154
|
+
*/
|
|
155
|
+
totalDownloads: number;
|
|
150
156
|
/**
|
|
151
157
|
*
|
|
152
158
|
* @type {string}
|
|
153
159
|
* @memberof ReleaseResponse
|
|
154
160
|
*/
|
|
155
161
|
url: string;
|
|
162
|
+
/**
|
|
163
|
+
* Downloads in the last 7 UTC days (today plus the previous 6).
|
|
164
|
+
* @type {number}
|
|
165
|
+
* @memberof ReleaseResponse
|
|
166
|
+
*/
|
|
167
|
+
weeklyDownloads: number;
|
|
156
168
|
}
|
|
157
169
|
|
|
158
170
|
/**
|
|
@@ -174,7 +186,9 @@ export function instanceOfReleaseResponse(value: object): value is ReleaseRespon
|
|
|
174
186
|
if (!('changelog' in value) || value['changelog'] === undefined) return false;
|
|
175
187
|
if (!('mirrors' in value) || value['mirrors'] === undefined) return false;
|
|
176
188
|
if (!('recoveryImg' in value) || value['recoveryImg'] === undefined) return false;
|
|
189
|
+
if (!('totalDownloads' in value) || value['totalDownloads'] === undefined) return false;
|
|
177
190
|
if (!('url' in value) || value['url'] === undefined) return false;
|
|
191
|
+
if (!('weeklyDownloads' in value) || value['weeklyDownloads'] === undefined) return false;
|
|
178
192
|
return true;
|
|
179
193
|
}
|
|
180
194
|
|
|
@@ -208,7 +222,9 @@ export function ReleaseResponseFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
208
222
|
'mirrors': json['mirrors'],
|
|
209
223
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
210
224
|
'recoveryImg': RecoveryImgResponseFromJSON(json['recovery_img']),
|
|
225
|
+
'totalDownloads': json['total_downloads'],
|
|
211
226
|
'url': json['url'],
|
|
227
|
+
'weeklyDownloads': json['weekly_downloads'],
|
|
212
228
|
};
|
|
213
229
|
}
|
|
214
230
|
|
|
@@ -243,7 +259,9 @@ export function ReleaseResponseToJSONTyped(value?: ReleaseResponse | null, ignor
|
|
|
243
259
|
'mirrors': value['mirrors'],
|
|
244
260
|
'notes': value['notes'],
|
|
245
261
|
'recovery_img': RecoveryImgResponseToJSON(value['recoveryImg']),
|
|
262
|
+
'total_downloads': value['totalDownloads'],
|
|
246
263
|
'url': value['url'],
|
|
264
|
+
'weekly_downloads': value['weeklyDownloads'],
|
|
247
265
|
};
|
|
248
266
|
}
|
|
249
267
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
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: 6.0.
|
|
7
|
+
* The version of the OpenAPI document: 6.0.8
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
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: 6.0.
|
|
7
|
+
* The version of the OpenAPI document: 6.0.8
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
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: 6.0.
|
|
7
|
+
* The version of the OpenAPI document: 6.0.8
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,110 @@
|
|
|
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.8
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { UptimeHealthHost } from './UptimeHealthHost';
|
|
17
|
+
import {
|
|
18
|
+
UptimeHealthHostFromJSON,
|
|
19
|
+
UptimeHealthHostFromJSONTyped,
|
|
20
|
+
UptimeHealthHostToJSON,
|
|
21
|
+
UptimeHealthHostToJSONTyped,
|
|
22
|
+
} from './UptimeHealthHost';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* FoxHealth summary (without internal endpoint addresses).
|
|
26
|
+
* @export
|
|
27
|
+
* @interface UptimeHealth
|
|
28
|
+
*/
|
|
29
|
+
export interface UptimeHealth {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof UptimeHealth
|
|
34
|
+
*/
|
|
35
|
+
allUp: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Array<UptimeHealthHost>}
|
|
39
|
+
* @memberof UptimeHealth
|
|
40
|
+
*/
|
|
41
|
+
hosts: Array<UptimeHealthHost>;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof UptimeHealth
|
|
46
|
+
*/
|
|
47
|
+
requiredUp: boolean;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof UptimeHealth
|
|
52
|
+
*/
|
|
53
|
+
role: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof UptimeHealth
|
|
58
|
+
*/
|
|
59
|
+
status: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the UptimeHealth interface.
|
|
64
|
+
*/
|
|
65
|
+
export function instanceOfUptimeHealth(value: object): value is UptimeHealth {
|
|
66
|
+
if (!('allUp' in value) || value['allUp'] === undefined) return false;
|
|
67
|
+
if (!('hosts' in value) || value['hosts'] === undefined) return false;
|
|
68
|
+
if (!('requiredUp' in value) || value['requiredUp'] === undefined) return false;
|
|
69
|
+
if (!('role' in value) || value['role'] === undefined) return false;
|
|
70
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function UptimeHealthFromJSON(json: any): UptimeHealth {
|
|
75
|
+
return UptimeHealthFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function UptimeHealthFromJSONTyped(json: any, ignoreDiscriminator: boolean): UptimeHealth {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'allUp': json['allUp'],
|
|
85
|
+
'hosts': ((json['hosts'] as Array<any>).map(UptimeHealthHostFromJSON)),
|
|
86
|
+
'requiredUp': json['requiredUp'],
|
|
87
|
+
'role': json['role'],
|
|
88
|
+
'status': json['status'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function UptimeHealthToJSON(json: any): UptimeHealth {
|
|
93
|
+
return UptimeHealthToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function UptimeHealthToJSONTyped(value?: UptimeHealth | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'allUp': value['allUp'],
|
|
104
|
+
'hosts': ((value['hosts'] as Array<any>).map(UptimeHealthHostToJSON)),
|
|
105
|
+
'requiredUp': value['requiredUp'],
|
|
106
|
+
'role': value['role'],
|
|
107
|
+
'status': value['status'],
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|