@orangefox-recovery/foxinternalclient 5.2.6 → 5.2.7
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 +58 -60
- package/README.md +3 -122
- package/dist/apis/DeviceApi.d.ts +158 -0
- package/dist/apis/DeviceApi.js +188 -0
- package/dist/apis/FoxFactoryApi.d.ts +298 -0
- package/dist/apis/FoxFactoryApi.js +507 -0
- package/dist/apis/GitlabApi.d.ts +51 -0
- package/dist/apis/GitlabApi.js +71 -0
- package/dist/apis/InternalApi.d.ts +549 -0
- package/dist/apis/InternalApi.js +957 -0
- package/dist/apis/PasteApi.d.ts +80 -0
- package/dist/apis/PasteApi.js +95 -0
- package/dist/apis/ReleaseApi.d.ts +188 -0
- package/dist/apis/ReleaseApi.js +226 -0
- package/dist/apis/StatsApi.d.ts +49 -0
- package/dist/apis/StatsApi.js +60 -0
- package/dist/apis/index.d.ts +7 -0
- package/dist/apis/index.js +25 -0
- package/dist/esm/apis/DeviceApi.d.ts +158 -0
- package/dist/esm/apis/DeviceApi.js +184 -0
- package/dist/esm/apis/FoxFactoryApi.d.ts +298 -0
- package/dist/esm/apis/FoxFactoryApi.js +503 -0
- package/dist/esm/apis/GitlabApi.d.ts +51 -0
- package/dist/esm/apis/GitlabApi.js +67 -0
- package/dist/esm/apis/InternalApi.d.ts +549 -0
- package/dist/esm/apis/InternalApi.js +953 -0
- package/dist/esm/apis/PasteApi.d.ts +80 -0
- package/dist/esm/apis/PasteApi.js +91 -0
- package/dist/esm/apis/ReleaseApi.d.ts +188 -0
- package/dist/esm/apis/ReleaseApi.js +222 -0
- package/dist/esm/apis/StatsApi.d.ts +49 -0
- package/dist/esm/apis/StatsApi.js +56 -0
- package/dist/esm/apis/index.d.ts +7 -0
- package/dist/esm/apis/index.js +9 -0
- package/dist/esm/index.d.ts +3 -13
- package/dist/esm/index.js +3 -13
- package/dist/esm/models/BodyChangePasswordProfileChangePasswordPost.d.ts +38 -0
- package/dist/esm/models/BodyChangePasswordProfileChangePasswordPost.js +47 -0
- package/dist/esm/models/BuildStatusEnum.d.ts +30 -0
- package/dist/esm/models/BuildStatusEnum.js +48 -0
- package/dist/esm/models/BuildTaskResponse.d.ts +103 -0
- package/dist/esm/models/BuildTaskResponse.js +78 -0
- package/dist/esm/models/BuildTaskShortResponse.d.ts +89 -0
- package/dist/esm/models/BuildTaskShortResponse.js +74 -0
- package/dist/esm/models/DeviceInternalResponse.d.ts +114 -0
- package/dist/esm/models/DeviceInternalResponse.js +91 -0
- package/dist/esm/models/DeviceResponse.d.ts +101 -0
- package/dist/esm/models/DeviceResponse.js +82 -0
- package/dist/esm/models/DeviceStatsResponse.d.ts +48 -0
- package/dist/esm/models/DeviceStatsResponse.js +51 -0
- package/dist/esm/models/DeviceUpdateBody.d.ts +62 -0
- package/dist/esm/models/DeviceUpdateBody.js +51 -0
- package/dist/esm/models/FFStatusEnum.d.ts +26 -0
- package/dist/esm/models/FFStatusEnum.js +44 -0
- package/dist/esm/models/FFStatusResponse.d.ts +33 -0
- package/dist/esm/models/FFStatusResponse.js +44 -0
- package/dist/esm/models/GlobalStatsAggregationModel.d.ts +52 -0
- package/dist/esm/models/GlobalStatsAggregationModel.js +55 -0
- package/dist/esm/models/HTTPValidationError.d.ts +33 -0
- package/dist/esm/models/HTTPValidationError.js +42 -0
- package/dist/esm/models/ListResponseBuildTaskShortResponse.d.ts +39 -0
- package/dist/esm/models/ListResponseBuildTaskShortResponse.js +47 -0
- package/dist/esm/models/ListResponseReleaseResponse.d.ts +39 -0
- package/dist/esm/models/ListResponseReleaseResponse.js +47 -0
- package/dist/esm/models/ListResponseShortDeviceResponse.d.ts +39 -0
- package/dist/esm/models/ListResponseShortDeviceResponse.js +47 -0
- package/dist/esm/models/ListResponseShortReleaseResponse.d.ts +39 -0
- package/dist/esm/models/ListResponseShortReleaseResponse.js +47 -0
- package/dist/esm/models/ListResponseStr.d.ts +38 -0
- package/dist/esm/models/ListResponseStr.js +46 -0
- package/dist/esm/models/ListResponseUserShortResponse.d.ts +39 -0
- package/dist/esm/models/ListResponseUserShortResponse.js +47 -0
- package/dist/esm/models/LogListResponse.d.ts +51 -0
- package/dist/esm/models/LogListResponse.js +56 -0
- package/dist/esm/models/LogResponse.d.ts +83 -0
- package/dist/esm/models/LogResponse.js +66 -0
- package/dist/esm/models/MaintainerShortModel.d.ts +44 -0
- package/dist/esm/models/MaintainerShortModel.js +51 -0
- package/dist/esm/models/NewBuildTaskBody.d.ts +57 -0
- package/dist/esm/models/NewBuildTaskBody.js +52 -0
- package/dist/esm/models/NewDeviceBody.d.ts +50 -0
- package/dist/esm/models/NewDeviceBody.js +55 -0
- package/dist/esm/models/PasteInput.d.ts +50 -0
- package/dist/esm/models/PasteInput.js +51 -0
- package/dist/esm/models/PasteOutput.d.ts +50 -0
- package/dist/esm/models/PasteOutput.js +51 -0
- package/dist/esm/models/RecoveryImgResponse.d.ts +38 -0
- package/dist/esm/models/RecoveryImgResponse.js +47 -0
- package/dist/esm/models/ReleaseGroupsResponse.d.ts +35 -0
- package/dist/esm/models/ReleaseGroupsResponse.js +43 -0
- package/dist/esm/models/ReleaseInternalResponse.d.ts +162 -0
- package/dist/esm/models/ReleaseInternalResponse.js +119 -0
- package/dist/esm/models/ReleaseInternalResponsePropValue.d.ts +26 -0
- package/dist/esm/models/ReleaseInternalResponsePropValue.js +31 -0
- package/dist/esm/models/ReleaseResponse.d.ts +139 -0
- package/dist/esm/models/ReleaseResponse.js +107 -0
- package/dist/esm/models/ReleaseStatsResponse.d.ts +48 -0
- package/dist/esm/models/ReleaseStatsResponse.js +51 -0
- package/dist/esm/models/ReleaseType.d.ts +26 -0
- package/dist/esm/models/ReleaseType.js +44 -0
- package/dist/esm/models/ReleaseUpdateBody.d.ts +50 -0
- package/dist/esm/models/ReleaseUpdateBody.js +47 -0
- package/dist/esm/models/ReleasesSort.d.ts +25 -0
- package/dist/esm/models/ReleasesSort.js +43 -0
- package/dist/esm/models/ResponseGetReleases.d.ts +41 -0
- package/dist/esm/models/ResponseGetReleases.js +46 -0
- package/dist/esm/models/ShortDeviceResponse.d.ts +82 -0
- package/dist/esm/models/ShortDeviceResponse.js +73 -0
- package/dist/esm/models/ShortReleaseResponse.d.ts +100 -0
- package/dist/esm/models/ShortReleaseResponse.js +84 -0
- package/dist/esm/models/TaskUpdateBody.d.ts +39 -0
- package/dist/esm/models/TaskUpdateBody.js +44 -0
- package/dist/esm/models/TokenResponse.d.ts +38 -0
- package/dist/esm/models/TokenResponse.js +45 -0
- package/dist/esm/models/UserGitlab.d.ts +32 -0
- package/dist/esm/models/UserGitlab.js +43 -0
- package/dist/esm/models/UserInternalResponse.d.ts +90 -0
- package/dist/esm/models/UserInternalResponse.js +75 -0
- package/dist/esm/models/UserMail.d.ts +32 -0
- package/dist/esm/models/UserMail.js +43 -0
- package/dist/esm/models/UserShortResponse.d.ts +50 -0
- package/dist/esm/models/UserShortResponse.js +55 -0
- package/dist/esm/models/UserTelegram.d.ts +32 -0
- package/dist/esm/models/UserTelegram.js +43 -0
- package/dist/esm/models/UserUpdateBody.d.ts +56 -0
- package/dist/esm/models/UserUpdateBody.js +49 -0
- package/dist/esm/models/ValidationError.d.ts +45 -0
- package/dist/esm/models/ValidationError.js +52 -0
- package/dist/esm/models/ValidationErrorLocInner.d.ts +26 -0
- package/{index.ts → dist/esm/models/ValidationErrorLocInner.js} +20 -7
- package/dist/esm/models/index.d.ts +47 -0
- package/dist/esm/models/index.js +49 -0
- package/dist/esm/runtime.d.ts +184 -0
- package/dist/esm/runtime.js +334 -0
- package/dist/index.d.ts +3 -13
- package/dist/index.js +5 -15
- package/dist/models/BodyChangePasswordProfileChangePasswordPost.d.ts +38 -0
- package/dist/models/BodyChangePasswordProfileChangePasswordPost.js +54 -0
- package/dist/models/BuildStatusEnum.d.ts +30 -0
- package/dist/models/BuildStatusEnum.js +56 -0
- package/dist/models/BuildTaskResponse.d.ts +103 -0
- package/dist/models/BuildTaskResponse.js +85 -0
- package/dist/models/BuildTaskShortResponse.d.ts +89 -0
- package/dist/models/BuildTaskShortResponse.js +81 -0
- package/dist/models/DeviceInternalResponse.d.ts +114 -0
- package/dist/models/DeviceInternalResponse.js +98 -0
- package/dist/models/DeviceResponse.d.ts +101 -0
- package/dist/models/DeviceResponse.js +89 -0
- package/dist/models/DeviceStatsResponse.d.ts +48 -0
- package/dist/models/DeviceStatsResponse.js +58 -0
- package/dist/models/DeviceUpdateBody.d.ts +62 -0
- package/dist/models/DeviceUpdateBody.js +58 -0
- package/dist/models/FFStatusEnum.d.ts +26 -0
- package/dist/models/FFStatusEnum.js +52 -0
- package/dist/models/FFStatusResponse.d.ts +33 -0
- package/dist/models/FFStatusResponse.js +51 -0
- package/dist/models/GlobalStatsAggregationModel.d.ts +52 -0
- package/dist/models/GlobalStatsAggregationModel.js +62 -0
- package/dist/models/HTTPValidationError.d.ts +33 -0
- package/dist/models/HTTPValidationError.js +49 -0
- package/dist/models/ListResponseBuildTaskShortResponse.d.ts +39 -0
- package/dist/models/ListResponseBuildTaskShortResponse.js +54 -0
- package/dist/models/ListResponseReleaseResponse.d.ts +39 -0
- package/dist/models/ListResponseReleaseResponse.js +54 -0
- package/dist/models/ListResponseShortDeviceResponse.d.ts +39 -0
- package/dist/models/ListResponseShortDeviceResponse.js +54 -0
- package/dist/models/ListResponseShortReleaseResponse.d.ts +39 -0
- package/dist/models/ListResponseShortReleaseResponse.js +54 -0
- package/dist/models/ListResponseStr.d.ts +38 -0
- package/dist/models/ListResponseStr.js +53 -0
- package/dist/models/ListResponseUserShortResponse.d.ts +39 -0
- package/dist/models/ListResponseUserShortResponse.js +54 -0
- package/dist/models/LogListResponse.d.ts +51 -0
- package/dist/models/LogListResponse.js +63 -0
- package/dist/models/LogResponse.d.ts +83 -0
- package/dist/models/LogResponse.js +73 -0
- package/dist/models/MaintainerShortModel.d.ts +44 -0
- package/dist/models/MaintainerShortModel.js +58 -0
- package/dist/models/NewBuildTaskBody.d.ts +57 -0
- package/dist/models/NewBuildTaskBody.js +59 -0
- package/dist/models/NewDeviceBody.d.ts +50 -0
- package/dist/models/NewDeviceBody.js +62 -0
- package/dist/models/PasteInput.d.ts +50 -0
- package/dist/models/PasteInput.js +58 -0
- package/dist/models/PasteOutput.d.ts +50 -0
- package/dist/models/PasteOutput.js +58 -0
- package/dist/models/RecoveryImgResponse.d.ts +38 -0
- package/dist/models/RecoveryImgResponse.js +54 -0
- package/dist/models/ReleaseGroupsResponse.d.ts +35 -0
- package/dist/models/ReleaseGroupsResponse.js +50 -0
- package/dist/models/ReleaseInternalResponse.d.ts +162 -0
- package/dist/models/ReleaseInternalResponse.js +126 -0
- package/dist/models/ReleaseInternalResponsePropValue.d.ts +26 -0
- package/dist/models/ReleaseInternalResponsePropValue.js +38 -0
- package/dist/models/ReleaseResponse.d.ts +139 -0
- package/dist/models/ReleaseResponse.js +114 -0
- package/dist/models/ReleaseStatsResponse.d.ts +48 -0
- package/dist/models/ReleaseStatsResponse.js +58 -0
- package/dist/models/ReleaseType.d.ts +26 -0
- package/dist/models/ReleaseType.js +52 -0
- package/dist/models/ReleaseUpdateBody.d.ts +50 -0
- package/dist/models/ReleaseUpdateBody.js +54 -0
- package/dist/models/ReleasesSort.d.ts +25 -0
- package/dist/models/ReleasesSort.js +51 -0
- package/dist/models/ResponseGetReleases.d.ts +41 -0
- package/dist/models/ResponseGetReleases.js +53 -0
- package/dist/models/ShortDeviceResponse.d.ts +82 -0
- package/dist/models/ShortDeviceResponse.js +80 -0
- package/dist/models/ShortReleaseResponse.d.ts +100 -0
- package/dist/models/ShortReleaseResponse.js +91 -0
- package/dist/models/TaskUpdateBody.d.ts +39 -0
- package/dist/models/TaskUpdateBody.js +51 -0
- package/dist/models/TokenResponse.d.ts +38 -0
- package/dist/models/TokenResponse.js +52 -0
- package/dist/models/UserGitlab.d.ts +32 -0
- package/dist/models/UserGitlab.js +50 -0
- package/dist/models/UserInternalResponse.d.ts +90 -0
- package/dist/models/UserInternalResponse.js +82 -0
- package/dist/models/UserMail.d.ts +32 -0
- package/dist/models/UserMail.js +50 -0
- package/dist/models/UserShortResponse.d.ts +50 -0
- package/dist/models/UserShortResponse.js +62 -0
- package/dist/models/UserTelegram.d.ts +32 -0
- package/dist/models/UserTelegram.js +50 -0
- package/dist/models/UserUpdateBody.d.ts +56 -0
- package/dist/models/UserUpdateBody.js +56 -0
- package/dist/models/ValidationError.d.ts +45 -0
- package/dist/models/ValidationError.js +59 -0
- package/dist/models/ValidationErrorLocInner.d.ts +26 -0
- package/dist/models/ValidationErrorLocInner.js +38 -0
- package/dist/models/index.d.ts +47 -0
- package/dist/models/index.js +65 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +350 -0
- package/package.json +4 -17
- package/src/apis/DeviceApi.ts +326 -0
- package/src/apis/FoxFactoryApi.ts +807 -0
- package/src/apis/GitlabApi.ts +108 -0
- package/src/apis/InternalApi.ts +1590 -0
- package/src/apis/PasteApi.ts +158 -0
- package/src/apis/ReleaseApi.ts +414 -0
- package/src/apis/StatsApi.ts +82 -0
- package/src/apis/index.ts +9 -0
- package/src/index.ts +5 -0
- package/src/models/BodyChangePasswordProfileChangePasswordPost.ts +75 -0
- package/src/models/BuildStatusEnum.ts +58 -0
- package/src/models/BuildTaskResponse.ts +183 -0
- package/src/models/BuildTaskShortResponse.ts +167 -0
- package/src/models/DeviceInternalResponse.ts +196 -0
- package/src/models/DeviceResponse.ts +171 -0
- package/src/models/DeviceStatsResponse.ts +84 -0
- package/src/models/DeviceUpdateBody.ts +105 -0
- package/src/models/FFStatusEnum.ts +54 -0
- package/src/models/FFStatusResponse.ts +76 -0
- package/src/models/GlobalStatsAggregationModel.ts +93 -0
- package/src/models/HTTPValidationError.ts +73 -0
- package/src/models/ListResponseBuildTaskShortResponse.ts +82 -0
- package/src/models/ListResponseReleaseResponse.ts +82 -0
- package/src/models/ListResponseShortDeviceResponse.ts +82 -0
- package/src/models/ListResponseShortReleaseResponse.ts +82 -0
- package/src/models/ListResponseStr.ts +74 -0
- package/src/models/ListResponseUserShortResponse.ts +82 -0
- package/src/models/LogListResponse.ts +101 -0
- package/src/models/LogResponse.ts +141 -0
- package/src/models/MaintainerShortModel.ts +84 -0
- package/src/models/NewBuildTaskBody.ts +108 -0
- package/src/models/NewDeviceBody.ts +93 -0
- package/src/models/PasteInput.ts +91 -0
- package/src/models/PasteOutput.ts +91 -0
- package/src/models/RecoveryImgResponse.ts +75 -0
- package/src/models/ReleaseGroupsResponse.ts +74 -0
- package/src/models/ReleaseInternalResponse.ts +279 -0
- package/src/models/ReleaseInternalResponsePropValue.ts +46 -0
- package/src/models/ReleaseResponse.ts +233 -0
- package/src/models/ReleaseStatsResponse.ts +84 -0
- package/src/models/ReleaseType.ts +54 -0
- package/src/models/ReleaseUpdateBody.ts +89 -0
- package/src/models/ReleasesSort.ts +53 -0
- package/src/models/ResponseGetReleases.ts +96 -0
- package/src/models/ShortDeviceResponse.ts +138 -0
- package/src/models/ShortReleaseResponse.ts +174 -0
- package/src/models/TaskUpdateBody.ts +83 -0
- package/src/models/TokenResponse.ts +74 -0
- package/src/models/UserGitlab.ts +66 -0
- package/src/models/UserInternalResponse.ts +172 -0
- package/src/models/UserMail.ts +66 -0
- package/src/models/UserShortResponse.ts +93 -0
- package/src/models/UserTelegram.ts +66 -0
- package/src/models/UserUpdateBody.ts +97 -0
- package/src/models/ValidationError.ts +92 -0
- package/src/models/ValidationErrorLocInner.ts +46 -0
- package/src/models/index.ts +49 -0
- package/src/runtime.ts +432 -0
- package/tsconfig.json +2 -4
- package/api.ts +0 -6111
- package/base.ts +0 -86
- package/common.ts +0 -150
- package/configuration.ts +0 -115
- package/dist/api.d.ts +0 -3964
- package/dist/api.js +0 -3664
- package/dist/base.d.ts +0 -66
- package/dist/base.js +0 -65
- package/dist/common.d.ts +0 -65
- package/dist/common.js +0 -161
- package/dist/configuration.d.ts +0 -91
- package/dist/configuration.js +0 -44
- package/dist/esm/api.d.ts +0 -3964
- package/dist/esm/api.js +0 -3633
- package/dist/esm/base.d.ts +0 -66
- package/dist/esm/base.js +0 -60
- package/dist/esm/common.d.ts +0 -65
- package/dist/esm/common.js +0 -149
- package/dist/esm/configuration.d.ts +0 -91
- package/dist/esm/configuration.js +0 -40
- package/docs/BodyChangePasswordProfileChangePasswordPost.md +0 -22
- package/docs/BuildStatusEnum.md +0 -20
- package/docs/BuildTaskResponse.md +0 -42
- package/docs/BuildTaskShortResponse.md +0 -38
- package/docs/DeviceApi.md +0 -251
- package/docs/DeviceInternalResponse.md +0 -48
- package/docs/DeviceResponse.md +0 -44
- package/docs/DeviceStatsResponse.md +0 -24
- package/docs/DeviceUpdateBody.md +0 -30
- package/docs/FFStatusEnum.md +0 -12
- package/docs/FFStatusResponse.md +0 -20
- package/docs/FoxFactoryApi.md +0 -540
- package/docs/GitlabApi.md +0 -62
- package/docs/GlobalStatsAggregationModel.md +0 -26
- package/docs/HTTPValidationError.md +0 -20
- package/docs/InternalApi.md +0 -1072
- package/docs/ListResponseBuildTaskShortResponse.md +0 -22
- package/docs/ListResponseReleaseResponse.md +0 -22
- package/docs/ListResponseShortDeviceResponse.md +0 -22
- package/docs/ListResponseShortReleaseResponse.md +0 -22
- package/docs/ListResponseStr.md +0 -22
- package/docs/ListResponseUserShortResponse.md +0 -22
- package/docs/LogListResponse.md +0 -26
- package/docs/LogResponse.md +0 -36
- package/docs/MaintainerShortModel.md +0 -26
- package/docs/NewBuildTaskBody.md +0 -28
- package/docs/NewDeviceBody.md +0 -26
- package/docs/PasteApi.md +0 -117
- package/docs/PasteInput.md +0 -26
- package/docs/PasteOutput.md +0 -26
- package/docs/RecoveryImgResponse.md +0 -22
- package/docs/ReleaseApi.md +0 -289
- package/docs/ReleaseGroupsResponse.md +0 -20
- package/docs/ReleaseInternalResponse.md +0 -62
- package/docs/ReleaseInternalResponsePropValue.md +0 -18
- package/docs/ReleaseResponse.md +0 -56
- package/docs/ReleaseStatsResponse.md +0 -24
- package/docs/ReleaseType.md +0 -12
- package/docs/ReleaseUpdateBody.md +0 -26
- package/docs/ReleasesSort.md +0 -10
- package/docs/ResponseGetReleases.md +0 -22
- package/docs/ShortDeviceResponse.md +0 -38
- package/docs/ShortReleaseResponse.md +0 -44
- package/docs/StatsApi.md +0 -53
- package/docs/TaskUpdateBody.md +0 -22
- package/docs/TokenResponse.md +0 -22
- package/docs/UserGitlab.md +0 -20
- package/docs/UserInternalResponse.md +0 -38
- package/docs/UserMail.md +0 -20
- package/docs/UserShortResponse.md +0 -26
- package/docs/UserTelegram.md +0 -20
- package/docs/UserUpdateBody.md +0 -28
- package/docs/ValidationError.md +0 -24
- package/docs/ValidationErrorLocInner.md +0 -18
- package/git_push.sh +0 -57
|
@@ -0,0 +1,171 @@
|
|
|
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.2.7
|
|
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 { MaintainerShortModel } from './MaintainerShortModel';
|
|
17
|
+
import {
|
|
18
|
+
MaintainerShortModelFromJSON,
|
|
19
|
+
MaintainerShortModelFromJSONTyped,
|
|
20
|
+
MaintainerShortModelToJSON,
|
|
21
|
+
MaintainerShortModelToJSONTyped,
|
|
22
|
+
} from './MaintainerShortModel';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface DeviceResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface DeviceResponse {
|
|
30
|
+
/**
|
|
31
|
+
* Device codename, legacy
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof DeviceResponse
|
|
34
|
+
* @deprecated
|
|
35
|
+
*/
|
|
36
|
+
codename: string;
|
|
37
|
+
/**
|
|
38
|
+
* Model name of device, does not include the OEM part, legacy
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof DeviceResponse
|
|
41
|
+
* @deprecated
|
|
42
|
+
*/
|
|
43
|
+
modelName: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof DeviceResponse
|
|
48
|
+
*/
|
|
49
|
+
oemName: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof DeviceResponse
|
|
54
|
+
*/
|
|
55
|
+
id: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Array<string>}
|
|
59
|
+
* @memberof DeviceResponse
|
|
60
|
+
*/
|
|
61
|
+
codenames: Array<string>;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<string>}
|
|
65
|
+
* @memberof DeviceResponse
|
|
66
|
+
*/
|
|
67
|
+
modelNames: Array<string>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {boolean}
|
|
71
|
+
* @memberof DeviceResponse
|
|
72
|
+
*/
|
|
73
|
+
supported: boolean;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {MaintainerShortModel}
|
|
77
|
+
* @memberof DeviceResponse
|
|
78
|
+
*/
|
|
79
|
+
maintainer: MaintainerShortModel;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof DeviceResponse
|
|
84
|
+
*/
|
|
85
|
+
notes?: string | null;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof DeviceResponse
|
|
90
|
+
*/
|
|
91
|
+
deviceTree?: string | null;
|
|
92
|
+
/**
|
|
93
|
+
* Full name of device / devices, legacy
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof DeviceResponse
|
|
96
|
+
*/
|
|
97
|
+
readonly fullName: string;
|
|
98
|
+
/**
|
|
99
|
+
* URL of the device on the official website
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof DeviceResponse
|
|
102
|
+
*/
|
|
103
|
+
readonly url: string;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Check if a given object implements the DeviceResponse interface.
|
|
108
|
+
*/
|
|
109
|
+
export function instanceOfDeviceResponse(value: object): value is DeviceResponse {
|
|
110
|
+
if (!('codename' in value) || value['codename'] === undefined) return false;
|
|
111
|
+
if (!('modelName' in value) || value['modelName'] === undefined) return false;
|
|
112
|
+
if (!('oemName' in value) || value['oemName'] === undefined) return false;
|
|
113
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
114
|
+
if (!('codenames' in value) || value['codenames'] === undefined) return false;
|
|
115
|
+
if (!('modelNames' in value) || value['modelNames'] === undefined) return false;
|
|
116
|
+
if (!('supported' in value) || value['supported'] === undefined) return false;
|
|
117
|
+
if (!('maintainer' in value) || value['maintainer'] === undefined) return false;
|
|
118
|
+
if (!('fullName' in value) || value['fullName'] === undefined) return false;
|
|
119
|
+
if (!('url' in value) || value['url'] === undefined) return false;
|
|
120
|
+
return true;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function DeviceResponseFromJSON(json: any): DeviceResponse {
|
|
124
|
+
return DeviceResponseFromJSONTyped(json, false);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export function DeviceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceResponse {
|
|
128
|
+
if (json == null) {
|
|
129
|
+
return json;
|
|
130
|
+
}
|
|
131
|
+
return {
|
|
132
|
+
|
|
133
|
+
'codename': json['codename'],
|
|
134
|
+
'modelName': json['model_name'],
|
|
135
|
+
'oemName': json['oem_name'],
|
|
136
|
+
'id': json['id'],
|
|
137
|
+
'codenames': json['codenames'],
|
|
138
|
+
'modelNames': json['model_names'],
|
|
139
|
+
'supported': json['supported'],
|
|
140
|
+
'maintainer': MaintainerShortModelFromJSON(json['maintainer']),
|
|
141
|
+
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
142
|
+
'deviceTree': json['device_tree'] == null ? undefined : json['device_tree'],
|
|
143
|
+
'fullName': json['full_name'],
|
|
144
|
+
'url': json['url'],
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export function DeviceResponseToJSON(json: any): DeviceResponse {
|
|
149
|
+
return DeviceResponseToJSONTyped(json, false);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export function DeviceResponseToJSONTyped(value?: Omit<DeviceResponse, 'full_name'|'url'> | null, ignoreDiscriminator: boolean = false): any {
|
|
153
|
+
if (value == null) {
|
|
154
|
+
return value;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
return {
|
|
158
|
+
|
|
159
|
+
'codename': value['codename'],
|
|
160
|
+
'model_name': value['modelName'],
|
|
161
|
+
'oem_name': value['oemName'],
|
|
162
|
+
'id': value['id'],
|
|
163
|
+
'codenames': value['codenames'],
|
|
164
|
+
'model_names': value['modelNames'],
|
|
165
|
+
'supported': value['supported'],
|
|
166
|
+
'maintainer': MaintainerShortModelToJSON(value['maintainer']),
|
|
167
|
+
'notes': value['notes'],
|
|
168
|
+
'device_tree': value['deviceTree'],
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
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.2.7
|
|
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 DeviceStatsResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface DeviceStatsResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof DeviceStatsResponse
|
|
26
|
+
*/
|
|
27
|
+
count: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {{ [key: string]: number; }}
|
|
31
|
+
* @memberof DeviceStatsResponse
|
|
32
|
+
*/
|
|
33
|
+
days: { [key: string]: number; };
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {{ [key: string]: number; }}
|
|
37
|
+
* @memberof DeviceStatsResponse
|
|
38
|
+
*/
|
|
39
|
+
mirrors: { [key: string]: number; };
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the DeviceStatsResponse interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfDeviceStatsResponse(value: object): value is DeviceStatsResponse {
|
|
46
|
+
if (!('count' in value) || value['count'] === undefined) return false;
|
|
47
|
+
if (!('days' in value) || value['days'] === undefined) return false;
|
|
48
|
+
if (!('mirrors' in value) || value['mirrors'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function DeviceStatsResponseFromJSON(json: any): DeviceStatsResponse {
|
|
53
|
+
return DeviceStatsResponseFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function DeviceStatsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceStatsResponse {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'count': json['count'],
|
|
63
|
+
'days': json['days'],
|
|
64
|
+
'mirrors': json['mirrors'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function DeviceStatsResponseToJSON(json: any): DeviceStatsResponse {
|
|
69
|
+
return DeviceStatsResponseToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function DeviceStatsResponseToJSONTyped(value?: DeviceStatsResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'count': value['count'],
|
|
80
|
+
'days': value['days'],
|
|
81
|
+
'mirrors': value['mirrors'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,105 @@
|
|
|
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.2.7
|
|
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 DeviceUpdateBody
|
|
20
|
+
*/
|
|
21
|
+
export interface DeviceUpdateBody {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof DeviceUpdateBody
|
|
26
|
+
*/
|
|
27
|
+
oemName?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof DeviceUpdateBody
|
|
32
|
+
*/
|
|
33
|
+
codenames?: Array<string> | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Array<string>}
|
|
37
|
+
* @memberof DeviceUpdateBody
|
|
38
|
+
*/
|
|
39
|
+
modelNames?: Array<string> | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof DeviceUpdateBody
|
|
44
|
+
*/
|
|
45
|
+
supported?: boolean | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* @memberof DeviceUpdateBody
|
|
50
|
+
*/
|
|
51
|
+
freezed?: boolean | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof DeviceUpdateBody
|
|
56
|
+
*/
|
|
57
|
+
notes?: string | null;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the DeviceUpdateBody interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfDeviceUpdateBody(value: object): value is DeviceUpdateBody {
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function DeviceUpdateBodyFromJSON(json: any): DeviceUpdateBody {
|
|
68
|
+
return DeviceUpdateBodyFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function DeviceUpdateBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceUpdateBody {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'oemName': json['oem_name'] == null ? undefined : json['oem_name'],
|
|
78
|
+
'codenames': json['codenames'] == null ? undefined : json['codenames'],
|
|
79
|
+
'modelNames': json['model_names'] == null ? undefined : json['model_names'],
|
|
80
|
+
'supported': json['supported'] == null ? undefined : json['supported'],
|
|
81
|
+
'freezed': json['freezed'] == null ? undefined : json['freezed'],
|
|
82
|
+
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function DeviceUpdateBodyToJSON(json: any): DeviceUpdateBody {
|
|
87
|
+
return DeviceUpdateBodyToJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function DeviceUpdateBodyToJSONTyped(value?: DeviceUpdateBody | null, ignoreDiscriminator: boolean = false): any {
|
|
91
|
+
if (value == null) {
|
|
92
|
+
return value;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'oem_name': value['oemName'],
|
|
98
|
+
'codenames': value['codenames'],
|
|
99
|
+
'model_names': value['modelNames'],
|
|
100
|
+
'supported': value['supported'],
|
|
101
|
+
'freezed': value['freezed'],
|
|
102
|
+
'notes': value['notes'],
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
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.2.7
|
|
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 FFStatusEnum = {
|
|
21
|
+
Free: 'free',
|
|
22
|
+
Busy: 'busy',
|
|
23
|
+
Offline: 'offline'
|
|
24
|
+
} as const;
|
|
25
|
+
export type FFStatusEnum = typeof FFStatusEnum[keyof typeof FFStatusEnum];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function instanceOfFFStatusEnum(value: any): boolean {
|
|
29
|
+
for (const key in FFStatusEnum) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(FFStatusEnum, key)) {
|
|
31
|
+
if (FFStatusEnum[key as keyof typeof FFStatusEnum] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function FFStatusEnumFromJSON(json: any): FFStatusEnum {
|
|
40
|
+
return FFStatusEnumFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function FFStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): FFStatusEnum {
|
|
44
|
+
return json as FFStatusEnum;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function FFStatusEnumToJSON(value?: FFStatusEnum | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function FFStatusEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): FFStatusEnum {
|
|
52
|
+
return value as FFStatusEnum;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -0,0 +1,76 @@
|
|
|
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.2.7
|
|
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 { FFStatusEnum } from './FFStatusEnum';
|
|
17
|
+
import {
|
|
18
|
+
FFStatusEnumFromJSON,
|
|
19
|
+
FFStatusEnumFromJSONTyped,
|
|
20
|
+
FFStatusEnumToJSON,
|
|
21
|
+
FFStatusEnumToJSONTyped,
|
|
22
|
+
} from './FFStatusEnum';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface FFStatusResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface FFStatusResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {FFStatusEnum}
|
|
33
|
+
* @memberof FFStatusResponse
|
|
34
|
+
*/
|
|
35
|
+
status: FFStatusEnum;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the FFStatusResponse interface.
|
|
42
|
+
*/
|
|
43
|
+
export function instanceOfFFStatusResponse(value: object): value is FFStatusResponse {
|
|
44
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function FFStatusResponseFromJSON(json: any): FFStatusResponse {
|
|
49
|
+
return FFStatusResponseFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function FFStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FFStatusResponse {
|
|
53
|
+
if (json == null) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
|
|
58
|
+
'status': FFStatusEnumFromJSON(json['status']),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function FFStatusResponseToJSON(json: any): FFStatusResponse {
|
|
63
|
+
return FFStatusResponseToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function FFStatusResponseToJSONTyped(value?: FFStatusResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'status': FFStatusEnumToJSON(value['status']),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
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.2.7
|
|
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
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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.2.7
|
|
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
|
+
|