@orangefox-recovery/foxclient 5.4.0 → 6.0.5
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 +20 -22
- package/README.md +29 -37
- package/dist/apis/DeviceApi.d.ts +89 -107
- package/dist/apis/DeviceApi.js +60 -71
- package/dist/apis/PasteApi.d.ts +33 -39
- package/dist/apis/PasteApi.js +23 -27
- package/dist/apis/ReleaseApi.d.ts +145 -143
- package/dist/apis/ReleaseApi.js +108 -95
- package/dist/apis/ReportApi.d.ts +64 -0
- package/dist/apis/ReportApi.js +89 -0
- package/dist/apis/StatsApi.d.ts +19 -19
- package/dist/apis/StatsApi.js +14 -14
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/DeviceApi.d.ts +89 -107
- package/dist/esm/apis/DeviceApi.js +61 -72
- package/dist/esm/apis/PasteApi.d.ts +33 -39
- package/dist/esm/apis/PasteApi.js +24 -28
- package/dist/esm/apis/ReleaseApi.d.ts +145 -143
- package/dist/esm/apis/ReleaseApi.js +109 -96
- package/dist/esm/apis/ReportApi.d.ts +64 -0
- package/dist/esm/apis/ReportApi.js +85 -0
- package/dist/esm/apis/StatsApi.d.ts +19 -19
- package/dist/esm/apis/StatsApi.js +15 -15
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/DeviceResponse.d.ts +33 -29
- package/dist/esm/models/DeviceResponse.js +34 -26
- package/dist/esm/models/ErrorResponse.d.ts +32 -0
- package/dist/esm/models/ErrorResponse.js +43 -0
- package/dist/esm/models/GlobalStatsResponse.d.ts +52 -0
- package/dist/esm/models/{GlobalStatsAggregationModel.js → GlobalStatsResponse.js} +14 -14
- package/dist/esm/models/ListResponseReleaseResponse.d.ts +8 -8
- package/dist/esm/models/ListResponseReleaseResponse.js +8 -7
- package/dist/esm/models/ListResponseReleaseResponseDataInner.d.ts +155 -0
- package/dist/esm/models/ListResponseReleaseResponseDataInner.js +114 -0
- package/dist/esm/models/ListResponseShortDeviceResponse.d.ts +8 -8
- package/dist/esm/models/ListResponseShortDeviceResponse.js +8 -7
- package/dist/esm/models/ListResponseShortDeviceResponseDataInner.d.ts +98 -0
- package/dist/esm/models/ListResponseShortDeviceResponseDataInner.js +85 -0
- package/dist/esm/models/ListResponseString.d.ts +38 -0
- package/dist/esm/models/ListResponseString.js +47 -0
- package/dist/esm/models/MaintainerShortResponse.d.ts +50 -0
- package/dist/esm/models/MaintainerShortResponse.js +55 -0
- package/dist/esm/models/NewReportRequest.d.ts +58 -0
- package/dist/esm/models/NewReportRequest.js +55 -0
- package/dist/esm/models/PasteInput.d.ts +3 -3
- package/dist/esm/models/PasteInput.js +2 -2
- package/dist/esm/models/PasteResponse.d.ts +50 -0
- package/dist/esm/models/PasteResponse.js +53 -0
- package/dist/esm/models/RecoveryImgResponse.d.ts +6 -6
- package/dist/esm/models/RecoveryImgResponse.js +6 -6
- package/dist/esm/models/ReleaseGroupsResponse.d.ts +2 -2
- package/dist/esm/models/ReleaseGroupsResponse.js +2 -2
- package/dist/esm/models/ReleaseResponse.d.ts +46 -42
- package/dist/esm/models/ReleaseResponse.js +45 -44
- package/dist/esm/models/ShortDeviceResponse.d.ts +29 -25
- package/dist/esm/models/ShortDeviceResponse.js +26 -18
- package/dist/esm/models/ShortReleaseResponse.d.ts +31 -27
- package/dist/esm/models/ShortReleaseResponse.js +35 -32
- package/dist/esm/models/TokenResponse.d.ts +38 -0
- package/dist/esm/models/TokenResponse.js +47 -0
- package/dist/esm/models/index.d.ts +9 -11
- package/dist/esm/models/index.js +9 -11
- package/dist/esm/runtime.d.ts +2 -2
- package/dist/esm/runtime.js +2 -2
- package/dist/models/DeviceResponse.d.ts +33 -29
- package/dist/models/DeviceResponse.js +34 -26
- package/dist/models/ErrorResponse.d.ts +32 -0
- package/dist/models/ErrorResponse.js +50 -0
- package/dist/models/GlobalStatsResponse.d.ts +52 -0
- package/dist/models/GlobalStatsResponse.js +62 -0
- package/dist/models/ListResponseReleaseResponse.d.ts +8 -8
- package/dist/models/ListResponseReleaseResponse.js +8 -7
- package/dist/models/ListResponseReleaseResponseDataInner.d.ts +155 -0
- package/dist/models/ListResponseReleaseResponseDataInner.js +121 -0
- package/dist/models/ListResponseShortDeviceResponse.d.ts +8 -8
- package/dist/models/ListResponseShortDeviceResponse.js +8 -7
- package/dist/models/ListResponseShortDeviceResponseDataInner.d.ts +98 -0
- package/dist/models/ListResponseShortDeviceResponseDataInner.js +92 -0
- package/dist/models/ListResponseString.d.ts +38 -0
- package/dist/models/ListResponseString.js +54 -0
- package/dist/models/MaintainerShortResponse.d.ts +50 -0
- package/dist/models/MaintainerShortResponse.js +62 -0
- package/dist/models/NewReportRequest.d.ts +58 -0
- package/dist/models/NewReportRequest.js +62 -0
- package/dist/models/PasteInput.d.ts +3 -3
- package/dist/models/PasteInput.js +2 -2
- package/dist/models/PasteResponse.d.ts +50 -0
- package/dist/models/PasteResponse.js +60 -0
- package/dist/models/RecoveryImgResponse.d.ts +6 -6
- package/dist/models/RecoveryImgResponse.js +6 -6
- package/dist/models/ReleaseGroupsResponse.d.ts +2 -2
- package/dist/models/ReleaseGroupsResponse.js +2 -2
- package/dist/models/ReleaseResponse.d.ts +46 -42
- package/dist/models/ReleaseResponse.js +45 -44
- package/dist/models/ShortDeviceResponse.d.ts +29 -25
- package/dist/models/ShortDeviceResponse.js +26 -18
- package/dist/models/ShortReleaseResponse.d.ts +31 -27
- package/dist/models/ShortReleaseResponse.js +35 -32
- package/dist/models/TokenResponse.d.ts +38 -0
- package/dist/models/TokenResponse.js +54 -0
- package/dist/models/index.d.ts +9 -11
- package/dist/models/index.js +9 -11
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.js +2 -2
- package/docs/DeviceApi.md +83 -90
- package/docs/DeviceResponse.md +19 -17
- package/docs/{LocationInner.md → ErrorResponse.md} +6 -4
- package/docs/{GlobalStatsAggregationModel.md → GlobalStatsResponse.md} +6 -6
- package/docs/ListResponseReleaseResponse.md +2 -2
- package/docs/ListResponseReleaseResponseDataInner.md +74 -0
- package/docs/ListResponseShortDeviceResponse.md +2 -2
- package/docs/ListResponseShortDeviceResponseDataInner.md +56 -0
- package/docs/{ListResponseStr.md → ListResponseString.md} +6 -6
- package/docs/{MaintainerShortModel.md → MaintainerShortResponse.md} +9 -7
- package/docs/{HTTPValidationError.md → NewReportRequest.md} +14 -6
- package/docs/PasteApi.md +25 -29
- package/docs/{PasteOutput.md → PasteResponse.md} +7 -7
- package/docs/RecoveryImgResponse.md +2 -2
- package/docs/ReleaseApi.md +176 -118
- package/docs/ReleaseResponse.md +28 -26
- package/docs/ReportApi.md +84 -0
- package/docs/ShortDeviceResponse.md +14 -12
- package/docs/ShortReleaseResponse.md +22 -20
- package/docs/StatsApi.md +10 -10
- package/docs/{ReleasesSort.md → TokenResponse.md} +8 -4
- package/package.json +3 -12
- package/src/apis/DeviceApi.ts +130 -148
- package/src/apis/PasteApi.ts +47 -53
- package/src/apis/ReleaseApi.ts +237 -228
- package/src/apis/ReportApi.ts +139 -0
- package/src/apis/StatsApi.ts +28 -25
- package/src/apis/index.ts +1 -0
- package/src/models/DeviceResponse.ts +65 -55
- package/src/models/ErrorResponse.ts +66 -0
- package/src/models/GlobalStatsResponse.ts +93 -0
- package/src/models/ListResponseReleaseResponse.ts +17 -16
- package/src/models/ListResponseReleaseResponseDataInner.ts +249 -0
- package/src/models/ListResponseShortDeviceResponse.ts +17 -16
- package/src/models/ListResponseShortDeviceResponseDataInner.ts +164 -0
- package/src/models/ListResponseString.ts +75 -0
- package/src/models/MaintainerShortResponse.ts +93 -0
- package/src/models/NewReportRequest.ts +100 -0
- package/src/models/PasteInput.ts +3 -3
- package/src/models/PasteResponse.ts +92 -0
- package/src/models/RecoveryImgResponse.ts +9 -9
- package/src/models/ReleaseGroupsResponse.ts +2 -2
- package/src/models/ReleaseResponse.ts +85 -86
- package/src/models/ShortDeviceResponse.ts +50 -40
- package/src/models/ShortReleaseResponse.ts +62 -64
- package/src/models/TokenResponse.ts +75 -0
- package/src/models/index.ts +9 -11
- package/src/runtime.ts +2 -2
- package/dist/esm/models/GlobalStatsAggregationModel.d.ts +0 -52
- package/dist/esm/models/HTTPValidationError.d.ts +0 -33
- package/dist/esm/models/HTTPValidationError.js +0 -42
- package/dist/esm/models/ListResponseShortReleaseResponse.d.ts +0 -39
- package/dist/esm/models/ListResponseShortReleaseResponse.js +0 -47
- package/dist/esm/models/ListResponseStr.d.ts +0 -38
- package/dist/esm/models/ListResponseStr.js +0 -46
- package/dist/esm/models/LocationInner.d.ts +0 -26
- package/dist/esm/models/LocationInner.js +0 -31
- package/dist/esm/models/MaintainerShortModel.d.ts +0 -44
- package/dist/esm/models/MaintainerShortModel.js +0 -51
- package/dist/esm/models/PasteOutput.d.ts +0 -50
- package/dist/esm/models/PasteOutput.js +0 -53
- package/dist/esm/models/ReleaseType.d.ts +0 -26
- package/dist/esm/models/ReleaseType.js +0 -44
- package/dist/esm/models/ReleasesSort.d.ts +0 -25
- package/dist/esm/models/ReleasesSort.js +0 -43
- package/dist/esm/models/ResponseGetReleases.d.ts +0 -41
- package/dist/esm/models/ResponseGetReleases.js +0 -46
- package/dist/esm/models/ValidationError.d.ts +0 -57
- package/dist/esm/models/ValidationError.js +0 -56
- package/dist/models/GlobalStatsAggregationModel.d.ts +0 -52
- package/dist/models/GlobalStatsAggregationModel.js +0 -62
- package/dist/models/HTTPValidationError.d.ts +0 -33
- package/dist/models/HTTPValidationError.js +0 -49
- package/dist/models/ListResponseShortReleaseResponse.d.ts +0 -39
- package/dist/models/ListResponseShortReleaseResponse.js +0 -54
- package/dist/models/ListResponseStr.d.ts +0 -38
- package/dist/models/ListResponseStr.js +0 -53
- package/dist/models/LocationInner.d.ts +0 -26
- package/dist/models/LocationInner.js +0 -38
- package/dist/models/MaintainerShortModel.d.ts +0 -44
- package/dist/models/MaintainerShortModel.js +0 -58
- package/dist/models/PasteOutput.d.ts +0 -50
- package/dist/models/PasteOutput.js +0 -60
- package/dist/models/ReleaseType.d.ts +0 -26
- package/dist/models/ReleaseType.js +0 -52
- package/dist/models/ReleasesSort.d.ts +0 -25
- package/dist/models/ReleasesSort.js +0 -51
- package/dist/models/ResponseGetReleases.d.ts +0 -41
- package/dist/models/ResponseGetReleases.js +0 -53
- package/dist/models/ValidationError.d.ts +0 -57
- package/dist/models/ValidationError.js +0 -63
- package/docs/ListResponseShortReleaseResponse.md +0 -36
- package/docs/ReleaseType.md +0 -32
- package/docs/ResponseGetReleases.md +0 -36
- package/docs/ValidationError.md +0 -42
- package/src/models/GlobalStatsAggregationModel.ts +0 -93
- package/src/models/HTTPValidationError.ts +0 -73
- package/src/models/ListResponseShortReleaseResponse.ts +0 -82
- package/src/models/ListResponseStr.ts +0 -74
- package/src/models/LocationInner.ts +0 -46
- package/src/models/MaintainerShortModel.ts +0 -84
- package/src/models/PasteOutput.ts +0 -92
- package/src/models/ReleaseType.ts +0 -54
- package/src/models/ReleasesSort.ts +0 -53
- package/src/models/ResponseGetReleases.ts +0 -96
- package/src/models/ValidationError.ts +0 -108
|
@@ -1,52 +0,0 @@
|
|
|
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: 5.4.0
|
|
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.ReleaseType = void 0;
|
|
17
|
-
exports.instanceOfReleaseType = instanceOfReleaseType;
|
|
18
|
-
exports.ReleaseTypeFromJSON = ReleaseTypeFromJSON;
|
|
19
|
-
exports.ReleaseTypeFromJSONTyped = ReleaseTypeFromJSONTyped;
|
|
20
|
-
exports.ReleaseTypeToJSON = ReleaseTypeToJSON;
|
|
21
|
-
exports.ReleaseTypeToJSONTyped = ReleaseTypeToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.ReleaseType = {
|
|
27
|
-
Stable: 'stable',
|
|
28
|
-
Beta: 'beta',
|
|
29
|
-
Alpha: 'alpha'
|
|
30
|
-
};
|
|
31
|
-
function instanceOfReleaseType(value) {
|
|
32
|
-
for (const key in exports.ReleaseType) {
|
|
33
|
-
if (Object.prototype.hasOwnProperty.call(exports.ReleaseType, key)) {
|
|
34
|
-
if (exports.ReleaseType[key] === value) {
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return false;
|
|
40
|
-
}
|
|
41
|
-
function ReleaseTypeFromJSON(json) {
|
|
42
|
-
return ReleaseTypeFromJSONTyped(json, false);
|
|
43
|
-
}
|
|
44
|
-
function ReleaseTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
-
return json;
|
|
46
|
-
}
|
|
47
|
-
function ReleaseTypeToJSON(value) {
|
|
48
|
-
return value;
|
|
49
|
-
}
|
|
50
|
-
function ReleaseTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
-
return value;
|
|
52
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
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: 5.4.0
|
|
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
|
-
*/
|
|
16
|
-
export declare const ReleasesSort: {
|
|
17
|
-
readonly DateAsc: "date_asc";
|
|
18
|
-
readonly DateDesc: "date_desc";
|
|
19
|
-
};
|
|
20
|
-
export type ReleasesSort = typeof ReleasesSort[keyof typeof ReleasesSort];
|
|
21
|
-
export declare function instanceOfReleasesSort(value: any): boolean;
|
|
22
|
-
export declare function ReleasesSortFromJSON(json: any): ReleasesSort;
|
|
23
|
-
export declare function ReleasesSortFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReleasesSort;
|
|
24
|
-
export declare function ReleasesSortToJSON(value?: ReleasesSort | null): any;
|
|
25
|
-
export declare function ReleasesSortToJSONTyped(value: any, ignoreDiscriminator: boolean): ReleasesSort;
|
|
@@ -1,51 +0,0 @@
|
|
|
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: 5.4.0
|
|
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.ReleasesSort = void 0;
|
|
17
|
-
exports.instanceOfReleasesSort = instanceOfReleasesSort;
|
|
18
|
-
exports.ReleasesSortFromJSON = ReleasesSortFromJSON;
|
|
19
|
-
exports.ReleasesSortFromJSONTyped = ReleasesSortFromJSONTyped;
|
|
20
|
-
exports.ReleasesSortToJSON = ReleasesSortToJSON;
|
|
21
|
-
exports.ReleasesSortToJSONTyped = ReleasesSortToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.ReleasesSort = {
|
|
27
|
-
DateAsc: 'date_asc',
|
|
28
|
-
DateDesc: 'date_desc'
|
|
29
|
-
};
|
|
30
|
-
function instanceOfReleasesSort(value) {
|
|
31
|
-
for (const key in exports.ReleasesSort) {
|
|
32
|
-
if (Object.prototype.hasOwnProperty.call(exports.ReleasesSort, key)) {
|
|
33
|
-
if (exports.ReleasesSort[key] === value) {
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return false;
|
|
39
|
-
}
|
|
40
|
-
function ReleasesSortFromJSON(json) {
|
|
41
|
-
return ReleasesSortFromJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function ReleasesSortFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
function ReleasesSortToJSON(value) {
|
|
47
|
-
return value;
|
|
48
|
-
}
|
|
49
|
-
function ReleasesSortToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
-
return value;
|
|
51
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
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: 5.4.0
|
|
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
|
-
import type { ReleaseResponse } from './ReleaseResponse';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface ResponseGetReleases
|
|
17
|
-
*/
|
|
18
|
-
export interface ResponseGetReleases {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {{ [key: string]: Array<ReleaseResponse>; }}
|
|
22
|
-
* @memberof ResponseGetReleases
|
|
23
|
-
*/
|
|
24
|
-
data: {
|
|
25
|
-
[key: string]: Array<ReleaseResponse>;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {number}
|
|
30
|
-
* @memberof ResponseGetReleases
|
|
31
|
-
*/
|
|
32
|
-
readonly count: number;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Check if a given object implements the ResponseGetReleases interface.
|
|
36
|
-
*/
|
|
37
|
-
export declare function instanceOfResponseGetReleases(value: object): value is ResponseGetReleases;
|
|
38
|
-
export declare function ResponseGetReleasesFromJSON(json: any): ResponseGetReleases;
|
|
39
|
-
export declare function ResponseGetReleasesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResponseGetReleases;
|
|
40
|
-
export declare function ResponseGetReleasesToJSON(json: any): ResponseGetReleases;
|
|
41
|
-
export declare function ResponseGetReleasesToJSONTyped(value?: Omit<ResponseGetReleases, 'count'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,53 +0,0 @@
|
|
|
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: 5.4.0
|
|
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.instanceOfResponseGetReleases = instanceOfResponseGetReleases;
|
|
17
|
-
exports.ResponseGetReleasesFromJSON = ResponseGetReleasesFromJSON;
|
|
18
|
-
exports.ResponseGetReleasesFromJSONTyped = ResponseGetReleasesFromJSONTyped;
|
|
19
|
-
exports.ResponseGetReleasesToJSON = ResponseGetReleasesToJSON;
|
|
20
|
-
exports.ResponseGetReleasesToJSONTyped = ResponseGetReleasesToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the ResponseGetReleases interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfResponseGetReleases(value) {
|
|
25
|
-
if (!('data' in value) || value['data'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('count' in value) || value['count'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
function ResponseGetReleasesFromJSON(json) {
|
|
32
|
-
return ResponseGetReleasesFromJSONTyped(json, false);
|
|
33
|
-
}
|
|
34
|
-
function ResponseGetReleasesFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
-
if (json == null) {
|
|
36
|
-
return json;
|
|
37
|
-
}
|
|
38
|
-
return {
|
|
39
|
-
'data': json['data'],
|
|
40
|
-
'count': json['count'],
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
function ResponseGetReleasesToJSON(json) {
|
|
44
|
-
return ResponseGetReleasesToJSONTyped(json, false);
|
|
45
|
-
}
|
|
46
|
-
function ResponseGetReleasesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
-
if (value == null) {
|
|
48
|
-
return value;
|
|
49
|
-
}
|
|
50
|
-
return {
|
|
51
|
-
'data': value['data'],
|
|
52
|
-
};
|
|
53
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
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: 5.4.0
|
|
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
|
-
import type { LocationInner } from './LocationInner';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface ValidationError
|
|
17
|
-
*/
|
|
18
|
-
export interface ValidationError {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<LocationInner>}
|
|
22
|
-
* @memberof ValidationError
|
|
23
|
-
*/
|
|
24
|
-
loc: Array<LocationInner>;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof ValidationError
|
|
29
|
-
*/
|
|
30
|
-
msg: string;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof ValidationError
|
|
35
|
-
*/
|
|
36
|
-
type: string;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {any}
|
|
40
|
-
* @memberof ValidationError
|
|
41
|
-
*/
|
|
42
|
-
input?: any | null;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {object}
|
|
46
|
-
* @memberof ValidationError
|
|
47
|
-
*/
|
|
48
|
-
ctx?: object;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Check if a given object implements the ValidationError interface.
|
|
52
|
-
*/
|
|
53
|
-
export declare function instanceOfValidationError(value: object): value is ValidationError;
|
|
54
|
-
export declare function ValidationErrorFromJSON(json: any): ValidationError;
|
|
55
|
-
export declare function ValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationError;
|
|
56
|
-
export declare function ValidationErrorToJSON(json: any): ValidationError;
|
|
57
|
-
export declare function ValidationErrorToJSONTyped(value?: ValidationError | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,63 +0,0 @@
|
|
|
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: 5.4.0
|
|
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.instanceOfValidationError = instanceOfValidationError;
|
|
17
|
-
exports.ValidationErrorFromJSON = ValidationErrorFromJSON;
|
|
18
|
-
exports.ValidationErrorFromJSONTyped = ValidationErrorFromJSONTyped;
|
|
19
|
-
exports.ValidationErrorToJSON = ValidationErrorToJSON;
|
|
20
|
-
exports.ValidationErrorToJSONTyped = ValidationErrorToJSONTyped;
|
|
21
|
-
const LocationInner_1 = require("./LocationInner");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the ValidationError interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfValidationError(value) {
|
|
26
|
-
if (!('loc' in value) || value['loc'] === undefined)
|
|
27
|
-
return false;
|
|
28
|
-
if (!('msg' in value) || value['msg'] === undefined)
|
|
29
|
-
return false;
|
|
30
|
-
if (!('type' in value) || value['type'] === undefined)
|
|
31
|
-
return false;
|
|
32
|
-
return true;
|
|
33
|
-
}
|
|
34
|
-
function ValidationErrorFromJSON(json) {
|
|
35
|
-
return ValidationErrorFromJSONTyped(json, false);
|
|
36
|
-
}
|
|
37
|
-
function ValidationErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
-
if (json == null) {
|
|
39
|
-
return json;
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
'loc': (json['loc'].map(LocationInner_1.LocationInnerFromJSON)),
|
|
43
|
-
'msg': json['msg'],
|
|
44
|
-
'type': json['type'],
|
|
45
|
-
'input': json['input'] == null ? undefined : json['input'],
|
|
46
|
-
'ctx': json['ctx'] == null ? undefined : json['ctx'],
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
function ValidationErrorToJSON(json) {
|
|
50
|
-
return ValidationErrorToJSONTyped(json, false);
|
|
51
|
-
}
|
|
52
|
-
function ValidationErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
-
if (value == null) {
|
|
54
|
-
return value;
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
'loc': (value['loc'].map(LocationInner_1.LocationInnerToJSON)),
|
|
58
|
-
'msg': value['msg'],
|
|
59
|
-
'type': value['type'],
|
|
60
|
-
'input': value['input'],
|
|
61
|
-
'ctx': value['ctx'],
|
|
62
|
-
};
|
|
63
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ListResponseShortReleaseResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<ShortReleaseResponse>](ShortReleaseResponse.md)
|
|
10
|
-
`count` | number
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import type { ListResponseShortReleaseResponse } from '@orangefox-recovery/foxclient'
|
|
16
|
-
|
|
17
|
-
// TODO: Update the object below with actual values
|
|
18
|
-
const example = {
|
|
19
|
-
"data": null,
|
|
20
|
-
"count": null,
|
|
21
|
-
} satisfies ListResponseShortReleaseResponse
|
|
22
|
-
|
|
23
|
-
console.log(example)
|
|
24
|
-
|
|
25
|
-
// Convert the instance to a JSON string
|
|
26
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
-
console.log(exampleJSON)
|
|
28
|
-
|
|
29
|
-
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as ListResponseShortReleaseResponse
|
|
31
|
-
console.log(exampleParsed)
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
-
|
|
36
|
-
|
package/docs/ReleaseType.md
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ReleaseType
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import type { ReleaseType } from '@orangefox-recovery/foxclient'
|
|
14
|
-
|
|
15
|
-
// TODO: Update the object below with actual values
|
|
16
|
-
const example = {
|
|
17
|
-
} satisfies ReleaseType
|
|
18
|
-
|
|
19
|
-
console.log(example)
|
|
20
|
-
|
|
21
|
-
// Convert the instance to a JSON string
|
|
22
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
23
|
-
console.log(exampleJSON)
|
|
24
|
-
|
|
25
|
-
// Parse the JSON string back to an object
|
|
26
|
-
const exampleParsed = JSON.parse(exampleJSON) as ReleaseType
|
|
27
|
-
console.log(exampleParsed)
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
31
|
-
|
|
32
|
-
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ResponseGetReleases
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | { [key: string]: Array<ReleaseResponse>; }
|
|
10
|
-
`count` | number
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import type { ResponseGetReleases } from '@orangefox-recovery/foxclient'
|
|
16
|
-
|
|
17
|
-
// TODO: Update the object below with actual values
|
|
18
|
-
const example = {
|
|
19
|
-
"data": null,
|
|
20
|
-
"count": null,
|
|
21
|
-
} satisfies ResponseGetReleases
|
|
22
|
-
|
|
23
|
-
console.log(example)
|
|
24
|
-
|
|
25
|
-
// Convert the instance to a JSON string
|
|
26
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
-
console.log(exampleJSON)
|
|
28
|
-
|
|
29
|
-
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as ResponseGetReleases
|
|
31
|
-
console.log(exampleParsed)
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
-
|
|
36
|
-
|
package/docs/ValidationError.md
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ValidationError
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`loc` | [Array<LocationInner>](LocationInner.md)
|
|
10
|
-
`msg` | string
|
|
11
|
-
`type` | string
|
|
12
|
-
`input` | any
|
|
13
|
-
`ctx` | object
|
|
14
|
-
|
|
15
|
-
## Example
|
|
16
|
-
|
|
17
|
-
```typescript
|
|
18
|
-
import type { ValidationError } from '@orangefox-recovery/foxclient'
|
|
19
|
-
|
|
20
|
-
// TODO: Update the object below with actual values
|
|
21
|
-
const example = {
|
|
22
|
-
"loc": null,
|
|
23
|
-
"msg": null,
|
|
24
|
-
"type": null,
|
|
25
|
-
"input": null,
|
|
26
|
-
"ctx": null,
|
|
27
|
-
} satisfies ValidationError
|
|
28
|
-
|
|
29
|
-
console.log(example)
|
|
30
|
-
|
|
31
|
-
// Convert the instance to a JSON string
|
|
32
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
-
console.log(exampleJSON)
|
|
34
|
-
|
|
35
|
-
// Parse the JSON string back to an object
|
|
36
|
-
const exampleParsed = JSON.parse(exampleJSON) as ValidationError
|
|
37
|
-
console.log(exampleParsed)
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
-
|
|
42
|
-
|
|
@@ -1,93 +0,0 @@
|
|
|
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: 5.4.0
|
|
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
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface GlobalStatsAggregationModel
|
|
20
|
-
*/
|
|
21
|
-
export interface GlobalStatsAggregationModel {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof GlobalStatsAggregationModel
|
|
26
|
-
*/
|
|
27
|
-
count: number;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof GlobalStatsAggregationModel
|
|
32
|
-
*/
|
|
33
|
-
deviceCount: number;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {number}
|
|
37
|
-
* @memberof GlobalStatsAggregationModel
|
|
38
|
-
*/
|
|
39
|
-
releaseCount: number;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {{ [key: string]: number; }}
|
|
43
|
-
* @memberof GlobalStatsAggregationModel
|
|
44
|
-
*/
|
|
45
|
-
days: { [key: string]: number; };
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Check if a given object implements the GlobalStatsAggregationModel interface.
|
|
50
|
-
*/
|
|
51
|
-
export function instanceOfGlobalStatsAggregationModel(value: object): value is GlobalStatsAggregationModel {
|
|
52
|
-
if (!('count' in value) || value['count'] === undefined) return false;
|
|
53
|
-
if (!('deviceCount' in value) || value['deviceCount'] === undefined) return false;
|
|
54
|
-
if (!('releaseCount' in value) || value['releaseCount'] === undefined) return false;
|
|
55
|
-
if (!('days' in value) || value['days'] === undefined) return false;
|
|
56
|
-
return true;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function GlobalStatsAggregationModelFromJSON(json: any): GlobalStatsAggregationModel {
|
|
60
|
-
return GlobalStatsAggregationModelFromJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function GlobalStatsAggregationModelFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalStatsAggregationModel {
|
|
64
|
-
if (json == null) {
|
|
65
|
-
return json;
|
|
66
|
-
}
|
|
67
|
-
return {
|
|
68
|
-
|
|
69
|
-
'count': json['count'],
|
|
70
|
-
'deviceCount': json['deviceCount'],
|
|
71
|
-
'releaseCount': json['releaseCount'],
|
|
72
|
-
'days': json['days'],
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export function GlobalStatsAggregationModelToJSON(json: any): GlobalStatsAggregationModel {
|
|
77
|
-
return GlobalStatsAggregationModelToJSONTyped(json, false);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export function GlobalStatsAggregationModelToJSONTyped(value?: GlobalStatsAggregationModel | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
-
if (value == null) {
|
|
82
|
-
return value;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
return {
|
|
86
|
-
|
|
87
|
-
'count': value['count'],
|
|
88
|
-
'deviceCount': value['deviceCount'],
|
|
89
|
-
'releaseCount': value['releaseCount'],
|
|
90
|
-
'days': value['days'],
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
|
|
@@ -1,73 +0,0 @@
|
|
|
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: 5.4.0
|
|
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 { ValidationError } from './ValidationError';
|
|
17
|
-
import {
|
|
18
|
-
ValidationErrorFromJSON,
|
|
19
|
-
ValidationErrorFromJSONTyped,
|
|
20
|
-
ValidationErrorToJSON,
|
|
21
|
-
ValidationErrorToJSONTyped,
|
|
22
|
-
} from './ValidationError';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface HTTPValidationError
|
|
28
|
-
*/
|
|
29
|
-
export interface HTTPValidationError {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<ValidationError>}
|
|
33
|
-
* @memberof HTTPValidationError
|
|
34
|
-
*/
|
|
35
|
-
detail?: Array<ValidationError>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the HTTPValidationError interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfHTTPValidationError(value: object): value is HTTPValidationError {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function HTTPValidationErrorFromJSON(json: any): HTTPValidationError {
|
|
46
|
-
return HTTPValidationErrorFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function HTTPValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): HTTPValidationError {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'detail': json['detail'] == null ? undefined : ((json['detail'] as Array<any>).map(ValidationErrorFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function HTTPValidationErrorToJSON(json: any): HTTPValidationError {
|
|
60
|
-
return HTTPValidationErrorToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function HTTPValidationErrorToJSONTyped(value?: HTTPValidationError | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
-
if (value == null) {
|
|
65
|
-
return value;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'detail': value['detail'] == null ? undefined : ((value['detail'] as Array<any>).map(ValidationErrorToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|