@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,82 +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 { ShortReleaseResponse } from './ShortReleaseResponse';
|
|
17
|
-
import {
|
|
18
|
-
ShortReleaseResponseFromJSON,
|
|
19
|
-
ShortReleaseResponseFromJSONTyped,
|
|
20
|
-
ShortReleaseResponseToJSON,
|
|
21
|
-
ShortReleaseResponseToJSONTyped,
|
|
22
|
-
} from './ShortReleaseResponse';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface ListResponseShortReleaseResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface ListResponseShortReleaseResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<ShortReleaseResponse>}
|
|
33
|
-
* @memberof ListResponseShortReleaseResponse
|
|
34
|
-
*/
|
|
35
|
-
data: Array<ShortReleaseResponse>;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof ListResponseShortReleaseResponse
|
|
40
|
-
*/
|
|
41
|
-
readonly count: number;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Check if a given object implements the ListResponseShortReleaseResponse interface.
|
|
46
|
-
*/
|
|
47
|
-
export function instanceOfListResponseShortReleaseResponse(value: object): value is ListResponseShortReleaseResponse {
|
|
48
|
-
if (!('data' in value) || value['data'] === undefined) return false;
|
|
49
|
-
if (!('count' in value) || value['count'] === undefined) return false;
|
|
50
|
-
return true;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export function ListResponseShortReleaseResponseFromJSON(json: any): ListResponseShortReleaseResponse {
|
|
54
|
-
return ListResponseShortReleaseResponseFromJSONTyped(json, false);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export function ListResponseShortReleaseResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListResponseShortReleaseResponse {
|
|
58
|
-
if (json == null) {
|
|
59
|
-
return json;
|
|
60
|
-
}
|
|
61
|
-
return {
|
|
62
|
-
|
|
63
|
-
'data': ((json['data'] as Array<any>).map(ShortReleaseResponseFromJSON)),
|
|
64
|
-
'count': json['count'],
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export function ListResponseShortReleaseResponseToJSON(json: any): ListResponseShortReleaseResponse {
|
|
69
|
-
return ListResponseShortReleaseResponseToJSONTyped(json, false);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function ListResponseShortReleaseResponseToJSONTyped(value?: Omit<ListResponseShortReleaseResponse, 'count'> | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
-
if (value == null) {
|
|
74
|
-
return value;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
return {
|
|
78
|
-
|
|
79
|
-
'data': ((value['data'] as Array<any>).map(ShortReleaseResponseToJSON)),
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
|
|
@@ -1,74 +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 ListResponseStr
|
|
20
|
-
*/
|
|
21
|
-
export interface ListResponseStr {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {Array<string>}
|
|
25
|
-
* @memberof ListResponseStr
|
|
26
|
-
*/
|
|
27
|
-
data: Array<string>;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof ListResponseStr
|
|
32
|
-
*/
|
|
33
|
-
readonly count: number;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Check if a given object implements the ListResponseStr interface.
|
|
38
|
-
*/
|
|
39
|
-
export function instanceOfListResponseStr(value: object): value is ListResponseStr {
|
|
40
|
-
if (!('data' in value) || value['data'] === undefined) return false;
|
|
41
|
-
if (!('count' in value) || value['count'] === undefined) return false;
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function ListResponseStrFromJSON(json: any): ListResponseStr {
|
|
46
|
-
return ListResponseStrFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function ListResponseStrFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListResponseStr {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'],
|
|
56
|
-
'count': json['count'],
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function ListResponseStrToJSON(json: any): ListResponseStr {
|
|
61
|
-
return ListResponseStrToJSONTyped(json, false);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function ListResponseStrToJSONTyped(value?: Omit<ListResponseStr, 'count'> | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
-
if (value == null) {
|
|
66
|
-
return value;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
return {
|
|
70
|
-
|
|
71
|
-
'data': value['data'],
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|
|
@@ -1,46 +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 LocationInner
|
|
20
|
-
*/
|
|
21
|
-
export interface LocationInner {
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Check if a given object implements the LocationInner interface.
|
|
26
|
-
*/
|
|
27
|
-
export function instanceOfLocationInner(value: object): value is LocationInner {
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export function LocationInnerFromJSON(json: any): LocationInner {
|
|
32
|
-
return LocationInnerFromJSONTyped(json, false);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export function LocationInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): LocationInner {
|
|
36
|
-
return json;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export function LocationInnerToJSON(json: any): LocationInner {
|
|
40
|
-
return LocationInnerToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function LocationInnerToJSONTyped(value?: LocationInner | null, ignoreDiscriminator: boolean = false): any {
|
|
44
|
-
return value;
|
|
45
|
-
}
|
|
46
|
-
|
|
@@ -1,84 +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 MaintainerShortModel
|
|
20
|
-
*/
|
|
21
|
-
export interface MaintainerShortModel {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof MaintainerShortModel
|
|
26
|
-
*/
|
|
27
|
-
id: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof MaintainerShortModel
|
|
32
|
-
*/
|
|
33
|
-
name: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof MaintainerShortModel
|
|
38
|
-
*/
|
|
39
|
-
username: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Check if a given object implements the MaintainerShortModel interface.
|
|
44
|
-
*/
|
|
45
|
-
export function instanceOfMaintainerShortModel(value: object): value is MaintainerShortModel {
|
|
46
|
-
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
-
if (!('name' in value) || value['name'] === undefined) return false;
|
|
48
|
-
if (!('username' in value) || value['username'] === undefined) return false;
|
|
49
|
-
return true;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function MaintainerShortModelFromJSON(json: any): MaintainerShortModel {
|
|
53
|
-
return MaintainerShortModelFromJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function MaintainerShortModelFromJSONTyped(json: any, ignoreDiscriminator: boolean): MaintainerShortModel {
|
|
57
|
-
if (json == null) {
|
|
58
|
-
return json;
|
|
59
|
-
}
|
|
60
|
-
return {
|
|
61
|
-
|
|
62
|
-
'id': json['id'],
|
|
63
|
-
'name': json['name'],
|
|
64
|
-
'username': json['username'],
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export function MaintainerShortModelToJSON(json: any): MaintainerShortModel {
|
|
69
|
-
return MaintainerShortModelToJSONTyped(json, false);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function MaintainerShortModelToJSONTyped(value?: MaintainerShortModel | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
-
if (value == null) {
|
|
74
|
-
return value;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
return {
|
|
78
|
-
|
|
79
|
-
'id': value['id'],
|
|
80
|
-
'name': value['name'],
|
|
81
|
-
'username': value['username'],
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
|
|
@@ -1,92 +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 PasteOutput
|
|
20
|
-
*/
|
|
21
|
-
export interface PasteOutput {
|
|
22
|
-
/**
|
|
23
|
-
* Paste ID
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof PasteOutput
|
|
26
|
-
*/
|
|
27
|
-
id: string;
|
|
28
|
-
/**
|
|
29
|
-
* The text content of the paste
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof PasteOutput
|
|
32
|
-
*/
|
|
33
|
-
content: string;
|
|
34
|
-
/**
|
|
35
|
-
* When the paste was created
|
|
36
|
-
* @type {Date}
|
|
37
|
-
* @memberof PasteOutput
|
|
38
|
-
*/
|
|
39
|
-
createdAt: Date;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {boolean}
|
|
43
|
-
* @memberof PasteOutput
|
|
44
|
-
*/
|
|
45
|
-
isOwner?: boolean | null;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Check if a given object implements the PasteOutput interface.
|
|
50
|
-
*/
|
|
51
|
-
export function instanceOfPasteOutput(value: object): value is PasteOutput {
|
|
52
|
-
if (!('id' in value) || value['id'] === undefined) return false;
|
|
53
|
-
if (!('content' in value) || value['content'] === undefined) return false;
|
|
54
|
-
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
55
|
-
return true;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export function PasteOutputFromJSON(json: any): PasteOutput {
|
|
59
|
-
return PasteOutputFromJSONTyped(json, false);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function PasteOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): PasteOutput {
|
|
63
|
-
if (json == null) {
|
|
64
|
-
return json;
|
|
65
|
-
}
|
|
66
|
-
return {
|
|
67
|
-
|
|
68
|
-
'id': json['id'],
|
|
69
|
-
'content': json['content'],
|
|
70
|
-
'createdAt': (new Date(json['created_at'])),
|
|
71
|
-
'isOwner': json['isOwner'] == null ? undefined : json['isOwner'],
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function PasteOutputToJSON(json: any): PasteOutput {
|
|
76
|
-
return PasteOutputToJSONTyped(json, false);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function PasteOutputToJSONTyped(value?: PasteOutput | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
-
if (value == null) {
|
|
81
|
-
return value;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
return {
|
|
85
|
-
|
|
86
|
-
'id': value['id'],
|
|
87
|
-
'content': value['content'],
|
|
88
|
-
'created_at': value['createdAt'].toISOString(),
|
|
89
|
-
'isOwner': value['isOwner'],
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
|
|
@@ -1,54 +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
|
-
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
*/
|
|
20
|
-
export const ReleaseType = {
|
|
21
|
-
Stable: 'stable',
|
|
22
|
-
Beta: 'beta',
|
|
23
|
-
Alpha: 'alpha'
|
|
24
|
-
} as const;
|
|
25
|
-
export type ReleaseType = typeof ReleaseType[keyof typeof ReleaseType];
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
export function instanceOfReleaseType(value: any): boolean {
|
|
29
|
-
for (const key in ReleaseType) {
|
|
30
|
-
if (Object.prototype.hasOwnProperty.call(ReleaseType, key)) {
|
|
31
|
-
if (ReleaseType[key as keyof typeof ReleaseType] === value) {
|
|
32
|
-
return true;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
return false;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export function ReleaseTypeFromJSON(json: any): ReleaseType {
|
|
40
|
-
return ReleaseTypeFromJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function ReleaseTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReleaseType {
|
|
44
|
-
return json as ReleaseType;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export function ReleaseTypeToJSON(value?: ReleaseType | null): any {
|
|
48
|
-
return value as any;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function ReleaseTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ReleaseType {
|
|
52
|
-
return value as ReleaseType;
|
|
53
|
-
}
|
|
54
|
-
|
|
@@ -1,53 +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
|
-
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
*/
|
|
20
|
-
export const ReleasesSort = {
|
|
21
|
-
DateAsc: 'date_asc',
|
|
22
|
-
DateDesc: 'date_desc'
|
|
23
|
-
} as const;
|
|
24
|
-
export type ReleasesSort = typeof ReleasesSort[keyof typeof ReleasesSort];
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export function instanceOfReleasesSort(value: any): boolean {
|
|
28
|
-
for (const key in ReleasesSort) {
|
|
29
|
-
if (Object.prototype.hasOwnProperty.call(ReleasesSort, key)) {
|
|
30
|
-
if (ReleasesSort[key as keyof typeof ReleasesSort] === value) {
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
return false;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function ReleasesSortFromJSON(json: any): ReleasesSort {
|
|
39
|
-
return ReleasesSortFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function ReleasesSortFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReleasesSort {
|
|
43
|
-
return json as ReleasesSort;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export function ReleasesSortToJSON(value?: ReleasesSort | null): any {
|
|
47
|
-
return value as any;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export function ReleasesSortToJSONTyped(value: any, ignoreDiscriminator: boolean): ReleasesSort {
|
|
51
|
-
return value as ReleasesSort;
|
|
52
|
-
}
|
|
53
|
-
|
|
@@ -1,96 +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 { ReleaseResponse } from './ReleaseResponse';
|
|
17
|
-
import {
|
|
18
|
-
ReleaseResponseFromJSON,
|
|
19
|
-
ReleaseResponseFromJSONTyped,
|
|
20
|
-
ReleaseResponseToJSON,
|
|
21
|
-
ReleaseResponseToJSONTyped,
|
|
22
|
-
} from './ReleaseResponse';
|
|
23
|
-
import type { ListResponseReleaseResponse } from './ListResponseReleaseResponse';
|
|
24
|
-
import {
|
|
25
|
-
ListResponseReleaseResponseFromJSON,
|
|
26
|
-
ListResponseReleaseResponseFromJSONTyped,
|
|
27
|
-
ListResponseReleaseResponseToJSON,
|
|
28
|
-
ListResponseReleaseResponseToJSONTyped,
|
|
29
|
-
} from './ListResponseReleaseResponse';
|
|
30
|
-
import type { ReleaseGroupsResponse } from './ReleaseGroupsResponse';
|
|
31
|
-
import {
|
|
32
|
-
ReleaseGroupsResponseFromJSON,
|
|
33
|
-
ReleaseGroupsResponseFromJSONTyped,
|
|
34
|
-
ReleaseGroupsResponseToJSON,
|
|
35
|
-
ReleaseGroupsResponseToJSONTyped,
|
|
36
|
-
} from './ReleaseGroupsResponse';
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @export
|
|
41
|
-
* @interface ResponseGetReleases
|
|
42
|
-
*/
|
|
43
|
-
export interface ResponseGetReleases {
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {{ [key: string]: Array<ReleaseResponse>; }}
|
|
47
|
-
* @memberof ResponseGetReleases
|
|
48
|
-
*/
|
|
49
|
-
data: { [key: string]: Array<ReleaseResponse>; };
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {number}
|
|
53
|
-
* @memberof ResponseGetReleases
|
|
54
|
-
*/
|
|
55
|
-
readonly count: number;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Check if a given object implements the ResponseGetReleases interface.
|
|
60
|
-
*/
|
|
61
|
-
export function instanceOfResponseGetReleases(value: object): value is ResponseGetReleases {
|
|
62
|
-
if (!('data' in value) || value['data'] === undefined) return false;
|
|
63
|
-
if (!('count' in value) || value['count'] === undefined) return false;
|
|
64
|
-
return true;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export function ResponseGetReleasesFromJSON(json: any): ResponseGetReleases {
|
|
68
|
-
return ResponseGetReleasesFromJSONTyped(json, false);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export function ResponseGetReleasesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResponseGetReleases {
|
|
72
|
-
if (json == null) {
|
|
73
|
-
return json;
|
|
74
|
-
}
|
|
75
|
-
return {
|
|
76
|
-
|
|
77
|
-
'data': json['data'],
|
|
78
|
-
'count': json['count'],
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export function ResponseGetReleasesToJSON(json: any): ResponseGetReleases {
|
|
83
|
-
return ResponseGetReleasesToJSONTyped(json, false);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export function ResponseGetReleasesToJSONTyped(value?: Omit<ResponseGetReleases, 'count'> | null, ignoreDiscriminator: boolean = false): any {
|
|
87
|
-
if (value == null) {
|
|
88
|
-
return value;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
return {
|
|
92
|
-
|
|
93
|
-
'data': value['data'],
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
|
|
@@ -1,108 +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 { LocationInner } from './LocationInner';
|
|
17
|
-
import {
|
|
18
|
-
LocationInnerFromJSON,
|
|
19
|
-
LocationInnerFromJSONTyped,
|
|
20
|
-
LocationInnerToJSON,
|
|
21
|
-
LocationInnerToJSONTyped,
|
|
22
|
-
} from './LocationInner';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface ValidationError
|
|
28
|
-
*/
|
|
29
|
-
export interface ValidationError {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<LocationInner>}
|
|
33
|
-
* @memberof ValidationError
|
|
34
|
-
*/
|
|
35
|
-
loc: Array<LocationInner>;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof ValidationError
|
|
40
|
-
*/
|
|
41
|
-
msg: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof ValidationError
|
|
46
|
-
*/
|
|
47
|
-
type: string;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {any}
|
|
51
|
-
* @memberof ValidationError
|
|
52
|
-
*/
|
|
53
|
-
input?: any | null;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {object}
|
|
57
|
-
* @memberof ValidationError
|
|
58
|
-
*/
|
|
59
|
-
ctx?: object;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Check if a given object implements the ValidationError interface.
|
|
64
|
-
*/
|
|
65
|
-
export function instanceOfValidationError(value: object): value is ValidationError {
|
|
66
|
-
if (!('loc' in value) || value['loc'] === undefined) return false;
|
|
67
|
-
if (!('msg' in value) || value['msg'] === undefined) return false;
|
|
68
|
-
if (!('type' in value) || value['type'] === undefined) return false;
|
|
69
|
-
return true;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function ValidationErrorFromJSON(json: any): ValidationError {
|
|
73
|
-
return ValidationErrorFromJSONTyped(json, false);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export function ValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationError {
|
|
77
|
-
if (json == null) {
|
|
78
|
-
return json;
|
|
79
|
-
}
|
|
80
|
-
return {
|
|
81
|
-
|
|
82
|
-
'loc': ((json['loc'] as Array<any>).map(LocationInnerFromJSON)),
|
|
83
|
-
'msg': json['msg'],
|
|
84
|
-
'type': json['type'],
|
|
85
|
-
'input': json['input'] == null ? undefined : json['input'],
|
|
86
|
-
'ctx': json['ctx'] == null ? undefined : json['ctx'],
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export function ValidationErrorToJSON(json: any): ValidationError {
|
|
91
|
-
return ValidationErrorToJSONTyped(json, false);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export function ValidationErrorToJSONTyped(value?: ValidationError | null, ignoreDiscriminator: boolean = false): any {
|
|
95
|
-
if (value == null) {
|
|
96
|
-
return value;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
return {
|
|
100
|
-
|
|
101
|
-
'loc': ((value['loc'] as Array<any>).map(LocationInnerToJSON)),
|
|
102
|
-
'msg': value['msg'],
|
|
103
|
-
'type': value['type'],
|
|
104
|
-
'input': value['input'],
|
|
105
|
-
'ctx': value['ctx'],
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
|