@orangefox-recovery/foxinternalclient 5.3.3 → 5.4.0
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 +14 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +18 -5
- package/dist/apis/DeviceApi.d.ts +66 -9
- package/dist/apis/DeviceApi.js +60 -23
- package/dist/apis/FoxFactoryApi.d.ts +115 -3
- package/dist/apis/FoxFactoryApi.js +141 -53
- package/dist/apis/GitlabApi.d.ts +13 -1
- package/dist/apis/GitlabApi.js +14 -5
- package/dist/apis/InternalApi.d.ts +496 -4
- package/dist/apis/InternalApi.js +594 -108
- package/dist/apis/PasteApi.d.ts +23 -1
- package/dist/apis/PasteApi.js +29 -11
- package/dist/apis/ReleaseApi.d.ts +76 -5
- package/dist/apis/ReleaseApi.js +60 -22
- package/dist/apis/StatsApi.d.ts +11 -1
- package/dist/apis/StatsApi.js +15 -6
- package/dist/esm/apis/DeviceApi.d.ts +66 -9
- package/dist/esm/apis/DeviceApi.js +60 -23
- package/dist/esm/apis/FoxFactoryApi.d.ts +115 -3
- package/dist/esm/apis/FoxFactoryApi.js +141 -53
- package/dist/esm/apis/GitlabApi.d.ts +13 -1
- package/dist/esm/apis/GitlabApi.js +14 -5
- package/dist/esm/apis/InternalApi.d.ts +496 -4
- package/dist/esm/apis/InternalApi.js +595 -109
- package/dist/esm/apis/PasteApi.d.ts +23 -1
- package/dist/esm/apis/PasteApi.js +29 -11
- package/dist/esm/apis/ReleaseApi.d.ts +76 -5
- package/dist/esm/apis/ReleaseApi.js +60 -22
- package/dist/esm/apis/StatsApi.d.ts +11 -1
- package/dist/esm/apis/StatsApi.js +15 -6
- package/dist/esm/models/BodyChangePasswordProfileChangePasswordPost.d.ts +1 -1
- package/dist/esm/models/BodyChangePasswordProfileChangePasswordPost.js +1 -1
- package/dist/esm/models/BuildStatusEnum.d.ts +1 -1
- package/dist/esm/models/BuildStatusEnum.js +1 -1
- package/dist/esm/models/BuildTaskResponse.d.ts +1 -1
- package/dist/esm/models/BuildTaskResponse.js +1 -1
- package/dist/esm/models/BuildTaskShortResponse.d.ts +1 -1
- package/dist/esm/models/BuildTaskShortResponse.js +1 -1
- package/dist/esm/models/DeviceInternalResponse.d.ts +1 -1
- package/dist/esm/models/DeviceInternalResponse.js +1 -1
- package/dist/esm/models/DeviceResponse.d.ts +1 -1
- package/dist/esm/models/DeviceResponse.js +1 -1
- package/dist/esm/models/DeviceStatsResponse.d.ts +1 -1
- package/dist/esm/models/DeviceStatsResponse.js +1 -1
- package/dist/esm/models/DeviceUpdateBody.d.ts +1 -1
- package/dist/esm/models/DeviceUpdateBody.js +1 -1
- package/dist/esm/models/FFStatusEnum.d.ts +1 -1
- package/dist/esm/models/FFStatusEnum.js +1 -1
- package/dist/esm/models/FFStatusResponse.d.ts +1 -1
- package/dist/esm/models/FFStatusResponse.js +1 -1
- package/dist/esm/models/GlobalStatsAggregationModel.d.ts +1 -1
- package/dist/esm/models/GlobalStatsAggregationModel.js +1 -1
- package/dist/esm/models/HTTPValidationError.d.ts +1 -1
- package/dist/esm/models/HTTPValidationError.js +1 -1
- package/dist/esm/models/ListResponseBuildTaskShortResponse.d.ts +1 -1
- package/dist/esm/models/ListResponseBuildTaskShortResponse.js +1 -1
- package/dist/esm/models/ListResponseReleaseResponse.d.ts +1 -1
- package/dist/esm/models/ListResponseReleaseResponse.js +1 -1
- package/dist/esm/models/ListResponseShortDeviceResponse.d.ts +1 -1
- package/dist/esm/models/ListResponseShortDeviceResponse.js +1 -1
- package/dist/esm/models/ListResponseShortReleaseResponse.d.ts +1 -1
- package/dist/esm/models/ListResponseShortReleaseResponse.js +1 -1
- package/dist/esm/models/ListResponseStr.d.ts +1 -1
- package/dist/esm/models/ListResponseStr.js +1 -1
- package/dist/esm/models/ListResponseUserShortResponse.d.ts +1 -1
- package/dist/esm/models/ListResponseUserShortResponse.js +1 -1
- package/dist/esm/models/LocationInner.d.ts +26 -0
- package/dist/esm/models/{ValidationErrorLocInner.js → LocationInner.js} +9 -9
- package/dist/esm/models/LogListResponse.d.ts +1 -1
- package/dist/esm/models/LogListResponse.js +1 -1
- package/dist/esm/models/LogResponse.d.ts +1 -1
- package/dist/esm/models/LogResponse.js +1 -1
- package/dist/esm/models/MaintainerShortModel.d.ts +1 -1
- package/dist/esm/models/MaintainerShortModel.js +1 -1
- package/dist/esm/models/NewBuildTaskBody.d.ts +1 -1
- package/dist/esm/models/NewBuildTaskBody.js +1 -1
- package/dist/esm/models/NewDeviceBody.d.ts +1 -1
- package/dist/esm/models/NewDeviceBody.js +1 -1
- package/dist/esm/models/PasskeyCredentialResponse.d.ts +68 -0
- package/dist/esm/models/PasskeyCredentialResponse.js +61 -0
- package/dist/esm/models/PasskeyOptionsResponse.d.ts +40 -0
- package/dist/esm/models/PasskeyOptionsResponse.js +47 -0
- package/dist/esm/models/PasskeyRegisterOptionsRequest.d.ts +32 -0
- package/dist/esm/models/PasskeyRegisterOptionsRequest.js +43 -0
- package/dist/esm/models/PasskeyVerifyRequest.d.ts +46 -0
- package/dist/esm/models/PasskeyVerifyRequest.js +49 -0
- package/dist/esm/models/PasswordConfirmationBody.d.ts +32 -0
- package/dist/esm/models/PasswordConfirmationBody.js +43 -0
- package/dist/esm/models/PasteInput.d.ts +1 -1
- package/dist/esm/models/PasteInput.js +1 -1
- package/dist/esm/models/PasteOutput.d.ts +1 -1
- package/dist/esm/models/PasteOutput.js +1 -1
- package/dist/esm/models/RecoveryImgResponse.d.ts +1 -1
- package/dist/esm/models/RecoveryImgResponse.js +1 -1
- package/dist/esm/models/ReleaseGroupsResponse.d.ts +1 -1
- package/dist/esm/models/ReleaseGroupsResponse.js +1 -1
- package/dist/esm/models/ReleaseInternalResponse.d.ts +1 -1
- package/dist/esm/models/ReleaseInternalResponse.js +1 -1
- package/dist/esm/models/ReleaseInternalResponsePropValue.d.ts +1 -1
- package/dist/esm/models/ReleaseInternalResponsePropValue.js +1 -1
- package/dist/esm/models/ReleaseResponse.d.ts +1 -1
- package/dist/esm/models/ReleaseResponse.js +1 -1
- package/dist/esm/models/ReleaseStatsResponse.d.ts +1 -1
- package/dist/esm/models/ReleaseStatsResponse.js +1 -1
- package/dist/esm/models/ReleaseType.d.ts +1 -1
- package/dist/esm/models/ReleaseType.js +1 -1
- package/dist/esm/models/ReleaseUpdateBody.d.ts +1 -1
- package/dist/esm/models/ReleaseUpdateBody.js +1 -1
- package/dist/esm/models/ReleasesSort.d.ts +1 -1
- package/dist/esm/models/ReleasesSort.js +1 -1
- package/dist/esm/models/RenamePasskeyBody.d.ts +32 -0
- package/dist/esm/models/RenamePasskeyBody.js +41 -0
- package/dist/esm/models/ResponseGetReleases.d.ts +1 -1
- package/dist/esm/models/ResponseGetReleases.js +1 -1
- package/dist/esm/models/ShortDeviceResponse.d.ts +1 -1
- package/dist/esm/models/ShortDeviceResponse.js +1 -1
- package/dist/esm/models/ShortReleaseResponse.d.ts +1 -1
- package/dist/esm/models/ShortReleaseResponse.js +1 -1
- package/dist/esm/models/TaskUpdateBody.d.ts +1 -1
- package/dist/esm/models/TaskUpdateBody.js +1 -1
- package/dist/esm/models/TokenResponse.d.ts +1 -1
- package/dist/esm/models/TokenResponse.js +1 -1
- package/dist/esm/models/UserGitlab.d.ts +1 -1
- package/dist/esm/models/UserGitlab.js +1 -1
- package/dist/esm/models/UserInternalResponse.d.ts +1 -1
- package/dist/esm/models/UserInternalResponse.js +1 -1
- package/dist/esm/models/UserMail.d.ts +1 -1
- package/dist/esm/models/UserMail.js +1 -1
- package/dist/esm/models/UserShortResponse.d.ts +1 -1
- package/dist/esm/models/UserShortResponse.js +1 -1
- package/dist/esm/models/UserTelegram.d.ts +1 -1
- package/dist/esm/models/UserTelegram.js +1 -1
- package/dist/esm/models/UserUpdateBody.d.ts +1 -1
- package/dist/esm/models/UserUpdateBody.js +1 -1
- package/dist/esm/models/ValidationError.d.ts +16 -4
- package/dist/esm/models/ValidationError.js +8 -4
- package/dist/esm/models/index.d.ts +7 -1
- package/dist/esm/models/index.js +7 -1
- package/dist/esm/runtime.d.ts +1 -1
- package/dist/esm/runtime.js +16 -1
- package/dist/models/BodyChangePasswordProfileChangePasswordPost.d.ts +1 -1
- package/dist/models/BodyChangePasswordProfileChangePasswordPost.js +1 -1
- package/dist/models/BuildStatusEnum.d.ts +1 -1
- package/dist/models/BuildStatusEnum.js +1 -1
- package/dist/models/BuildTaskResponse.d.ts +1 -1
- package/dist/models/BuildTaskResponse.js +1 -1
- package/dist/models/BuildTaskShortResponse.d.ts +1 -1
- package/dist/models/BuildTaskShortResponse.js +1 -1
- package/dist/models/DeviceInternalResponse.d.ts +1 -1
- package/dist/models/DeviceInternalResponse.js +1 -1
- package/dist/models/DeviceResponse.d.ts +1 -1
- package/dist/models/DeviceResponse.js +1 -1
- package/dist/models/DeviceStatsResponse.d.ts +1 -1
- package/dist/models/DeviceStatsResponse.js +1 -1
- package/dist/models/DeviceUpdateBody.d.ts +1 -1
- package/dist/models/DeviceUpdateBody.js +1 -1
- package/dist/models/FFStatusEnum.d.ts +1 -1
- package/dist/models/FFStatusEnum.js +1 -1
- package/dist/models/FFStatusResponse.d.ts +1 -1
- package/dist/models/FFStatusResponse.js +1 -1
- package/dist/models/GlobalStatsAggregationModel.d.ts +1 -1
- package/dist/models/GlobalStatsAggregationModel.js +1 -1
- package/dist/models/HTTPValidationError.d.ts +1 -1
- package/dist/models/HTTPValidationError.js +1 -1
- package/dist/models/ListResponseBuildTaskShortResponse.d.ts +1 -1
- package/dist/models/ListResponseBuildTaskShortResponse.js +1 -1
- package/dist/models/ListResponseReleaseResponse.d.ts +1 -1
- package/dist/models/ListResponseReleaseResponse.js +1 -1
- package/dist/models/ListResponseShortDeviceResponse.d.ts +1 -1
- package/dist/models/ListResponseShortDeviceResponse.js +1 -1
- package/dist/models/ListResponseShortReleaseResponse.d.ts +1 -1
- package/dist/models/ListResponseShortReleaseResponse.js +1 -1
- package/dist/models/ListResponseStr.d.ts +1 -1
- package/dist/models/ListResponseStr.js +1 -1
- package/dist/models/ListResponseUserShortResponse.d.ts +1 -1
- package/dist/models/ListResponseUserShortResponse.js +1 -1
- package/dist/models/LocationInner.d.ts +26 -0
- package/dist/models/LocationInner.js +38 -0
- package/dist/models/LogListResponse.d.ts +1 -1
- package/dist/models/LogListResponse.js +1 -1
- package/dist/models/LogResponse.d.ts +1 -1
- package/dist/models/LogResponse.js +1 -1
- package/dist/models/MaintainerShortModel.d.ts +1 -1
- package/dist/models/MaintainerShortModel.js +1 -1
- package/dist/models/NewBuildTaskBody.d.ts +1 -1
- package/dist/models/NewBuildTaskBody.js +1 -1
- package/dist/models/NewDeviceBody.d.ts +1 -1
- package/dist/models/NewDeviceBody.js +1 -1
- package/dist/models/PasskeyCredentialResponse.d.ts +68 -0
- package/dist/models/PasskeyCredentialResponse.js +68 -0
- package/dist/models/PasskeyOptionsResponse.d.ts +40 -0
- package/dist/models/PasskeyOptionsResponse.js +54 -0
- package/dist/models/PasskeyRegisterOptionsRequest.d.ts +32 -0
- package/dist/models/PasskeyRegisterOptionsRequest.js +50 -0
- package/dist/models/PasskeyVerifyRequest.d.ts +46 -0
- package/dist/models/PasskeyVerifyRequest.js +56 -0
- package/dist/models/PasswordConfirmationBody.d.ts +32 -0
- package/dist/models/PasswordConfirmationBody.js +50 -0
- package/dist/models/PasteInput.d.ts +1 -1
- package/dist/models/PasteInput.js +1 -1
- package/dist/models/PasteOutput.d.ts +1 -1
- package/dist/models/PasteOutput.js +1 -1
- package/dist/models/RecoveryImgResponse.d.ts +1 -1
- package/dist/models/RecoveryImgResponse.js +1 -1
- package/dist/models/ReleaseGroupsResponse.d.ts +1 -1
- package/dist/models/ReleaseGroupsResponse.js +1 -1
- package/dist/models/ReleaseInternalResponse.d.ts +1 -1
- package/dist/models/ReleaseInternalResponse.js +1 -1
- package/dist/models/ReleaseInternalResponsePropValue.d.ts +1 -1
- package/dist/models/ReleaseInternalResponsePropValue.js +1 -1
- package/dist/models/ReleaseResponse.d.ts +1 -1
- package/dist/models/ReleaseResponse.js +1 -1
- package/dist/models/ReleaseStatsResponse.d.ts +1 -1
- package/dist/models/ReleaseStatsResponse.js +1 -1
- package/dist/models/ReleaseType.d.ts +1 -1
- package/dist/models/ReleaseType.js +1 -1
- package/dist/models/ReleaseUpdateBody.d.ts +1 -1
- package/dist/models/ReleaseUpdateBody.js +1 -1
- package/dist/models/ReleasesSort.d.ts +1 -1
- package/dist/models/ReleasesSort.js +1 -1
- package/dist/models/RenamePasskeyBody.d.ts +32 -0
- package/dist/models/RenamePasskeyBody.js +48 -0
- package/dist/models/ResponseGetReleases.d.ts +1 -1
- package/dist/models/ResponseGetReleases.js +1 -1
- package/dist/models/ShortDeviceResponse.d.ts +1 -1
- package/dist/models/ShortDeviceResponse.js +1 -1
- package/dist/models/ShortReleaseResponse.d.ts +1 -1
- package/dist/models/ShortReleaseResponse.js +1 -1
- package/dist/models/TaskUpdateBody.d.ts +1 -1
- package/dist/models/TaskUpdateBody.js +1 -1
- package/dist/models/TokenResponse.d.ts +1 -1
- package/dist/models/TokenResponse.js +1 -1
- package/dist/models/UserGitlab.d.ts +1 -1
- package/dist/models/UserGitlab.js +1 -1
- package/dist/models/UserInternalResponse.d.ts +1 -1
- package/dist/models/UserInternalResponse.js +1 -1
- package/dist/models/UserMail.d.ts +1 -1
- package/dist/models/UserMail.js +1 -1
- package/dist/models/UserShortResponse.d.ts +1 -1
- package/dist/models/UserShortResponse.js +1 -1
- package/dist/models/UserTelegram.d.ts +1 -1
- package/dist/models/UserTelegram.js +1 -1
- package/dist/models/UserUpdateBody.d.ts +1 -1
- package/dist/models/UserUpdateBody.js +1 -1
- package/dist/models/ValidationError.d.ts +16 -4
- package/dist/models/ValidationError.js +8 -4
- package/dist/models/index.d.ts +7 -1
- package/dist/models/index.js +7 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +16 -1
- package/docs/DeviceApi.md +2 -2
- package/docs/FoxFactoryApi.md +3 -3
- package/docs/InternalApi.md +474 -11
- package/docs/{ValidationErrorLocInner.md → LocationInner.md} +4 -4
- package/docs/PasskeyCredentialResponse.md +46 -0
- package/docs/PasskeyOptionsResponse.md +36 -0
- package/docs/PasskeyRegisterOptionsRequest.md +34 -0
- package/docs/PasskeyVerifyRequest.md +38 -0
- package/docs/PasswordConfirmationBody.md +34 -0
- package/docs/ReleaseApi.md +1 -1
- package/docs/RenamePasskeyBody.md +34 -0
- package/docs/ValidationError.md +5 -1
- package/package.json +1 -2
- package/src/apis/DeviceApi.ts +104 -27
- package/src/apis/FoxFactoryApi.ts +215 -55
- package/src/apis/GitlabApi.ts +22 -5
- package/src/apis/InternalApi.ts +1016 -115
- package/src/apis/PasteApi.ts +43 -11
- package/src/apis/ReleaseApi.ts +115 -24
- package/src/apis/StatsApi.ts +21 -6
- package/src/models/BodyChangePasswordProfileChangePasswordPost.ts +1 -1
- package/src/models/BuildStatusEnum.ts +1 -1
- package/src/models/BuildTaskResponse.ts +1 -1
- package/src/models/BuildTaskShortResponse.ts +1 -1
- package/src/models/DeviceInternalResponse.ts +1 -1
- package/src/models/DeviceResponse.ts +1 -1
- package/src/models/DeviceStatsResponse.ts +1 -1
- package/src/models/DeviceUpdateBody.ts +1 -1
- package/src/models/FFStatusEnum.ts +1 -1
- package/src/models/FFStatusResponse.ts +1 -1
- package/src/models/GlobalStatsAggregationModel.ts +1 -1
- package/src/models/HTTPValidationError.ts +1 -1
- package/src/models/ListResponseBuildTaskShortResponse.ts +1 -1
- package/src/models/ListResponseReleaseResponse.ts +1 -1
- package/src/models/ListResponseShortDeviceResponse.ts +1 -1
- package/src/models/ListResponseShortReleaseResponse.ts +1 -1
- package/src/models/ListResponseStr.ts +1 -1
- package/src/models/ListResponseUserShortResponse.ts +1 -1
- package/src/models/{ValidationErrorLocInner.ts → LocationInner.ts} +11 -11
- package/src/models/LogListResponse.ts +1 -1
- package/src/models/LogResponse.ts +1 -1
- package/src/models/MaintainerShortModel.ts +1 -1
- package/src/models/NewBuildTaskBody.ts +1 -1
- package/src/models/NewDeviceBody.ts +1 -1
- package/src/models/PasskeyCredentialResponse.ts +117 -0
- package/src/models/PasskeyOptionsResponse.ts +75 -0
- package/src/models/PasskeyRegisterOptionsRequest.ts +66 -0
- package/src/models/PasskeyVerifyRequest.ts +83 -0
- package/src/models/PasswordConfirmationBody.ts +66 -0
- package/src/models/PasteInput.ts +1 -1
- package/src/models/PasteOutput.ts +1 -1
- package/src/models/RecoveryImgResponse.ts +1 -1
- package/src/models/ReleaseGroupsResponse.ts +1 -1
- package/src/models/ReleaseInternalResponse.ts +1 -1
- package/src/models/ReleaseInternalResponsePropValue.ts +1 -1
- package/src/models/ReleaseResponse.ts +1 -1
- package/src/models/ReleaseStatsResponse.ts +1 -1
- package/src/models/ReleaseType.ts +1 -1
- package/src/models/ReleaseUpdateBody.ts +1 -1
- package/src/models/ReleasesSort.ts +1 -1
- package/src/models/RenamePasskeyBody.ts +65 -0
- package/src/models/ResponseGetReleases.ts +1 -1
- package/src/models/ShortDeviceResponse.ts +1 -1
- package/src/models/ShortReleaseResponse.ts +1 -1
- package/src/models/TaskUpdateBody.ts +1 -1
- package/src/models/TokenResponse.ts +1 -1
- package/src/models/UserGitlab.ts +1 -1
- package/src/models/UserInternalResponse.ts +1 -1
- package/src/models/UserMail.ts +1 -1
- package/src/models/UserShortResponse.ts +1 -1
- package/src/models/UserTelegram.ts +1 -1
- package/src/models/UserUpdateBody.ts +1 -1
- package/src/models/ValidationError.ts +27 -11
- package/src/models/index.ts +7 -1
- package/src/runtime.ts +19 -1
- package/dist/esm/models/ValidationErrorLocInner.d.ts +0 -26
- package/dist/models/ValidationErrorLocInner.d.ts +0 -26
- package/dist/models/ValidationErrorLocInner.js +0 -38
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
5
|
* Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 5.
|
|
7
|
+
* The version of the OpenAPI document: 5.4.0
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -75,7 +75,7 @@ export interface UpdateWorkerStatusFactoryUpdateStatusPostRequest {
|
|
|
75
75
|
|
|
76
76
|
export interface UploadArtifactFactoryTaskIdArtifactPostRequest {
|
|
77
77
|
taskId: string;
|
|
78
|
-
artifact:
|
|
78
|
+
artifact: string;
|
|
79
79
|
md5Hash: string;
|
|
80
80
|
}
|
|
81
81
|
|
|
@@ -86,6 +86,14 @@ export interface UploadArtifactFactoryTaskIdArtifactPostRequest {
|
|
|
86
86
|
* @interface FoxFactoryApiInterface
|
|
87
87
|
*/
|
|
88
88
|
export interface FoxFactoryApiInterface {
|
|
89
|
+
/**
|
|
90
|
+
* Creates request options for cancelTaskFactoryTaskIdCancelPost without sending the request
|
|
91
|
+
* @param {string} taskId
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
* @memberof FoxFactoryApiInterface
|
|
94
|
+
*/
|
|
95
|
+
cancelTaskFactoryTaskIdCancelPostRequestOpts(requestParameters: CancelTaskFactoryTaskIdCancelPostRequest): Promise<runtime.RequestOpts>;
|
|
96
|
+
|
|
89
97
|
/**
|
|
90
98
|
* Cancels a build task given its identifier. The task\'s status is updated to indicate that it is in the process of cancellation. If the task with the specified ID is not found, a 404 HTTP exception is raised.
|
|
91
99
|
* @summary Cancel Task
|
|
@@ -102,6 +110,14 @@ export interface FoxFactoryApiInterface {
|
|
|
102
110
|
*/
|
|
103
111
|
cancelTaskFactoryTaskIdCancelPost(requestParameters: CancelTaskFactoryTaskIdCancelPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuildTaskResponse>;
|
|
104
112
|
|
|
113
|
+
/**
|
|
114
|
+
* Creates request options for deleteTaskFactoryTaskIdDelete without sending the request
|
|
115
|
+
* @param {string} taskId
|
|
116
|
+
* @throws {RequiredError}
|
|
117
|
+
* @memberof FoxFactoryApiInterface
|
|
118
|
+
*/
|
|
119
|
+
deleteTaskFactoryTaskIdDeleteRequestOpts(requestParameters: DeleteTaskFactoryTaskIdDeleteRequest): Promise<runtime.RequestOpts>;
|
|
120
|
+
|
|
105
121
|
/**
|
|
106
122
|
* Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised. Also deletes any associated artifact files.
|
|
107
123
|
* @summary Delete Task
|
|
@@ -118,6 +134,14 @@ export interface FoxFactoryApiInterface {
|
|
|
118
134
|
*/
|
|
119
135
|
deleteTaskFactoryTaskIdDelete(requestParameters: DeleteTaskFactoryTaskIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
|
|
120
136
|
|
|
137
|
+
/**
|
|
138
|
+
* Creates request options for downloadArtifactFactoryTaskIdArtifactGet without sending the request
|
|
139
|
+
* @param {string} taskId
|
|
140
|
+
* @throws {RequiredError}
|
|
141
|
+
* @memberof FoxFactoryApiInterface
|
|
142
|
+
*/
|
|
143
|
+
downloadArtifactFactoryTaskIdArtifactGetRequestOpts(requestParameters: DownloadArtifactFactoryTaskIdArtifactGetRequest): Promise<runtime.RequestOpts>;
|
|
144
|
+
|
|
121
145
|
/**
|
|
122
146
|
* Download the artifact file for a specific build task. This endpoint allows maintainers and foxfactory workers to download the artifact file associated with a build task. Parameters: task_id: The ID of the build task
|
|
123
147
|
* @summary Download Artifact
|
|
@@ -134,6 +158,13 @@ export interface FoxFactoryApiInterface {
|
|
|
134
158
|
*/
|
|
135
159
|
downloadArtifactFactoryTaskIdArtifactGet(requestParameters: DownloadArtifactFactoryTaskIdArtifactGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
|
136
160
|
|
|
161
|
+
/**
|
|
162
|
+
* Creates request options for factoryStatusFactoryStatusGet without sending the request
|
|
163
|
+
* @throws {RequiredError}
|
|
164
|
+
* @memberof FoxFactoryApiInterface
|
|
165
|
+
*/
|
|
166
|
+
factoryStatusFactoryStatusGetRequestOpts(): Promise<runtime.RequestOpts>;
|
|
167
|
+
|
|
137
168
|
/**
|
|
138
169
|
* Endpoint for clients to get the current status of the worker. If the last update was longer than the defined timeout, worker is considered offline.
|
|
139
170
|
* @summary Factory Status
|
|
@@ -149,6 +180,14 @@ export interface FoxFactoryApiInterface {
|
|
|
149
180
|
*/
|
|
150
181
|
factoryStatusFactoryStatusGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FFStatusResponse>;
|
|
151
182
|
|
|
183
|
+
/**
|
|
184
|
+
* Creates request options for getTaskFactoryTaskIdGet without sending the request
|
|
185
|
+
* @param {string} taskId
|
|
186
|
+
* @throws {RequiredError}
|
|
187
|
+
* @memberof FoxFactoryApiInterface
|
|
188
|
+
*/
|
|
189
|
+
getTaskFactoryTaskIdGetRequestOpts(requestParameters: GetTaskFactoryTaskIdGetRequest): Promise<runtime.RequestOpts>;
|
|
190
|
+
|
|
152
191
|
/**
|
|
153
192
|
* Retrieves the details of a specific build task. This endpoint allows a user to fetch detailed information about a build task by its ID. Access to this endpoint is restricted to users with the \'maintainer\' or \'foxworker\' roles. Depending on the user\'s roles, returned task details may differ. Admin users will receive all task details, while others will have some fields excluded.
|
|
154
193
|
* @summary Get Task
|
|
@@ -165,6 +204,14 @@ export interface FoxFactoryApiInterface {
|
|
|
165
204
|
*/
|
|
166
205
|
getTaskFactoryTaskIdGet(requestParameters: GetTaskFactoryTaskIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuildTaskResponse>;
|
|
167
206
|
|
|
207
|
+
/**
|
|
208
|
+
* Creates request options for listTasksFactoryGet without sending the request
|
|
209
|
+
* @param {string} [deviceId]
|
|
210
|
+
* @throws {RequiredError}
|
|
211
|
+
* @memberof FoxFactoryApiInterface
|
|
212
|
+
*/
|
|
213
|
+
listTasksFactoryGetRequestOpts(requestParameters: ListTasksFactoryGetRequest): Promise<runtime.RequestOpts>;
|
|
214
|
+
|
|
168
215
|
/**
|
|
169
216
|
* Get a list of all build tasks. This endpoint retrieves all build tasks from the database and returns them as a list of abbreviated responses. Parameters: device_id (ObjectId, optional): Filter tasks by device ID
|
|
170
217
|
* @summary List Tasks
|
|
@@ -181,6 +228,14 @@ export interface FoxFactoryApiInterface {
|
|
|
181
228
|
*/
|
|
182
229
|
listTasksFactoryGet(requestParameters: ListTasksFactoryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListResponseBuildTaskShortResponse>;
|
|
183
230
|
|
|
231
|
+
/**
|
|
232
|
+
* Creates request options for newTaskFactoryPost without sending the request
|
|
233
|
+
* @param {NewBuildTaskBody} newBuildTaskBody
|
|
234
|
+
* @throws {RequiredError}
|
|
235
|
+
* @memberof FoxFactoryApiInterface
|
|
236
|
+
*/
|
|
237
|
+
newTaskFactoryPostRequestOpts(requestParameters: NewTaskFactoryPostRequest): Promise<runtime.RequestOpts>;
|
|
238
|
+
|
|
184
239
|
/**
|
|
185
240
|
* Handles the creation of a new build task including validations for the device existence and its connection to GitLab. It initializes a new task with a pending status and the required details, then saves it to the database before returning the task model.
|
|
186
241
|
* @summary New Task
|
|
@@ -197,6 +252,15 @@ export interface FoxFactoryApiInterface {
|
|
|
197
252
|
*/
|
|
198
253
|
newTaskFactoryPost(requestParameters: NewTaskFactoryPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
|
|
199
254
|
|
|
255
|
+
/**
|
|
256
|
+
* Creates request options for updateTaskFactoryTaskIdPatch without sending the request
|
|
257
|
+
* @param {string} taskId
|
|
258
|
+
* @param {TaskUpdateBody} taskUpdateBody
|
|
259
|
+
* @throws {RequiredError}
|
|
260
|
+
* @memberof FoxFactoryApiInterface
|
|
261
|
+
*/
|
|
262
|
+
updateTaskFactoryTaskIdPatchRequestOpts(requestParameters: UpdateTaskFactoryTaskIdPatchRequest): Promise<runtime.RequestOpts>;
|
|
263
|
+
|
|
200
264
|
/**
|
|
201
265
|
* Updates an existing build task by its unique identifier. The function allows updates to the task\'s status and logs. If the task\'s status is set to a value indicating completion, the finished timestamp is also updated. Allowed only for foxworker users.
|
|
202
266
|
* @summary Update Task
|
|
@@ -214,6 +278,14 @@ export interface FoxFactoryApiInterface {
|
|
|
214
278
|
*/
|
|
215
279
|
updateTaskFactoryTaskIdPatch(requestParameters: UpdateTaskFactoryTaskIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
|
|
216
280
|
|
|
281
|
+
/**
|
|
282
|
+
* Creates request options for updateWorkerStatusFactoryUpdateStatusPost without sending the request
|
|
283
|
+
* @param {string} body
|
|
284
|
+
* @throws {RequiredError}
|
|
285
|
+
* @memberof FoxFactoryApiInterface
|
|
286
|
+
*/
|
|
287
|
+
updateWorkerStatusFactoryUpdateStatusPostRequestOpts(requestParameters: UpdateWorkerStatusFactoryUpdateStatusPostRequest): Promise<runtime.RequestOpts>;
|
|
288
|
+
|
|
217
289
|
/**
|
|
218
290
|
* Endpoint for FoxFactory worker to update its status.
|
|
219
291
|
* @summary Update Worker Status
|
|
@@ -230,11 +302,21 @@ export interface FoxFactoryApiInterface {
|
|
|
230
302
|
*/
|
|
231
303
|
updateWorkerStatusFactoryUpdateStatusPost(requestParameters: UpdateWorkerStatusFactoryUpdateStatusPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
|
232
304
|
|
|
305
|
+
/**
|
|
306
|
+
* Creates request options for uploadArtifactFactoryTaskIdArtifactPost without sending the request
|
|
307
|
+
* @param {string} taskId
|
|
308
|
+
* @param {string} artifact
|
|
309
|
+
* @param {string} md5Hash
|
|
310
|
+
* @throws {RequiredError}
|
|
311
|
+
* @memberof FoxFactoryApiInterface
|
|
312
|
+
*/
|
|
313
|
+
uploadArtifactFactoryTaskIdArtifactPostRequestOpts(requestParameters: UploadArtifactFactoryTaskIdArtifactPostRequest): Promise<runtime.RequestOpts>;
|
|
314
|
+
|
|
233
315
|
/**
|
|
234
316
|
* Upload an artifact zip file for a specific build task. This endpoint allows foxfactory workers to upload an artifact zip file, verifies its MD5 hash, and stores it in the appropriate directory. Parameters: task_id: The ID of the build task artifact: The artifact zip file to upload md5_hash: The expected MD5 hash of the artifact file
|
|
235
317
|
* @summary Upload Artifact
|
|
236
318
|
* @param {string} taskId
|
|
237
|
-
* @param {
|
|
319
|
+
* @param {string} artifact
|
|
238
320
|
* @param {string} md5Hash
|
|
239
321
|
* @param {*} [options] Override http request option.
|
|
240
322
|
* @throws {RequiredError}
|
|
@@ -256,10 +338,9 @@ export interface FoxFactoryApiInterface {
|
|
|
256
338
|
export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInterface {
|
|
257
339
|
|
|
258
340
|
/**
|
|
259
|
-
*
|
|
260
|
-
* Cancel Task
|
|
341
|
+
* Creates request options for cancelTaskFactoryTaskIdCancelPost without sending the request
|
|
261
342
|
*/
|
|
262
|
-
async
|
|
343
|
+
async cancelTaskFactoryTaskIdCancelPostRequestOpts(requestParameters: CancelTaskFactoryTaskIdCancelPostRequest): Promise<runtime.RequestOpts> {
|
|
263
344
|
if (requestParameters['taskId'] == null) {
|
|
264
345
|
throw new runtime.RequiredError(
|
|
265
346
|
'taskId',
|
|
@@ -288,12 +369,21 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
|
|
|
288
369
|
let urlPath = `/factory/{task_id}/cancel`;
|
|
289
370
|
urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
290
371
|
|
|
291
|
-
|
|
372
|
+
return {
|
|
292
373
|
path: urlPath,
|
|
293
374
|
method: 'POST',
|
|
294
375
|
headers: headerParameters,
|
|
295
376
|
query: queryParameters,
|
|
296
|
-
}
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* Cancels a build task given its identifier. The task\'s status is updated to indicate that it is in the process of cancellation. If the task with the specified ID is not found, a 404 HTTP exception is raised.
|
|
382
|
+
* Cancel Task
|
|
383
|
+
*/
|
|
384
|
+
async cancelTaskFactoryTaskIdCancelPostRaw(requestParameters: CancelTaskFactoryTaskIdCancelPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuildTaskResponse>> {
|
|
385
|
+
const requestOptions = await this.cancelTaskFactoryTaskIdCancelPostRequestOpts(requestParameters);
|
|
386
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
297
387
|
|
|
298
388
|
return new runtime.JSONApiResponse(response, (jsonValue) => BuildTaskResponseFromJSON(jsonValue));
|
|
299
389
|
}
|
|
@@ -308,10 +398,9 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
|
|
|
308
398
|
}
|
|
309
399
|
|
|
310
400
|
/**
|
|
311
|
-
*
|
|
312
|
-
* Delete Task
|
|
401
|
+
* Creates request options for deleteTaskFactoryTaskIdDelete without sending the request
|
|
313
402
|
*/
|
|
314
|
-
async
|
|
403
|
+
async deleteTaskFactoryTaskIdDeleteRequestOpts(requestParameters: DeleteTaskFactoryTaskIdDeleteRequest): Promise<runtime.RequestOpts> {
|
|
315
404
|
if (requestParameters['taskId'] == null) {
|
|
316
405
|
throw new runtime.RequiredError(
|
|
317
406
|
'taskId',
|
|
@@ -340,12 +429,21 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
|
|
|
340
429
|
let urlPath = `/factory/{task_id}`;
|
|
341
430
|
urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
342
431
|
|
|
343
|
-
|
|
432
|
+
return {
|
|
344
433
|
path: urlPath,
|
|
345
434
|
method: 'DELETE',
|
|
346
435
|
headers: headerParameters,
|
|
347
436
|
query: queryParameters,
|
|
348
|
-
}
|
|
437
|
+
};
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised. Also deletes any associated artifact files.
|
|
442
|
+
* Delete Task
|
|
443
|
+
*/
|
|
444
|
+
async deleteTaskFactoryTaskIdDeleteRaw(requestParameters: DeleteTaskFactoryTaskIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>> {
|
|
445
|
+
const requestOptions = await this.deleteTaskFactoryTaskIdDeleteRequestOpts(requestParameters);
|
|
446
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
349
447
|
|
|
350
448
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
351
449
|
return new runtime.JSONApiResponse<boolean>(response);
|
|
@@ -364,10 +462,9 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
|
|
|
364
462
|
}
|
|
365
463
|
|
|
366
464
|
/**
|
|
367
|
-
*
|
|
368
|
-
* Download Artifact
|
|
465
|
+
* Creates request options for downloadArtifactFactoryTaskIdArtifactGet without sending the request
|
|
369
466
|
*/
|
|
370
|
-
async
|
|
467
|
+
async downloadArtifactFactoryTaskIdArtifactGetRequestOpts(requestParameters: DownloadArtifactFactoryTaskIdArtifactGetRequest): Promise<runtime.RequestOpts> {
|
|
371
468
|
if (requestParameters['taskId'] == null) {
|
|
372
469
|
throw new runtime.RequiredError(
|
|
373
470
|
'taskId',
|
|
@@ -396,12 +493,21 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
|
|
|
396
493
|
let urlPath = `/factory/{task_id}/artifact`;
|
|
397
494
|
urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
398
495
|
|
|
399
|
-
|
|
496
|
+
return {
|
|
400
497
|
path: urlPath,
|
|
401
498
|
method: 'GET',
|
|
402
499
|
headers: headerParameters,
|
|
403
500
|
query: queryParameters,
|
|
404
|
-
}
|
|
501
|
+
};
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* Download the artifact file for a specific build task. This endpoint allows maintainers and foxfactory workers to download the artifact file associated with a build task. Parameters: task_id: The ID of the build task
|
|
506
|
+
* Download Artifact
|
|
507
|
+
*/
|
|
508
|
+
async downloadArtifactFactoryTaskIdArtifactGetRaw(requestParameters: DownloadArtifactFactoryTaskIdArtifactGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>> {
|
|
509
|
+
const requestOptions = await this.downloadArtifactFactoryTaskIdArtifactGetRequestOpts(requestParameters);
|
|
510
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
405
511
|
|
|
406
512
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
407
513
|
return new runtime.JSONApiResponse<any>(response);
|
|
@@ -420,10 +526,9 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
|
|
|
420
526
|
}
|
|
421
527
|
|
|
422
528
|
/**
|
|
423
|
-
*
|
|
424
|
-
* Factory Status
|
|
529
|
+
* Creates request options for factoryStatusFactoryStatusGet without sending the request
|
|
425
530
|
*/
|
|
426
|
-
async
|
|
531
|
+
async factoryStatusFactoryStatusGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
427
532
|
const queryParameters: any = {};
|
|
428
533
|
|
|
429
534
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -444,12 +549,21 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
|
|
|
444
549
|
|
|
445
550
|
let urlPath = `/factory/status`;
|
|
446
551
|
|
|
447
|
-
|
|
552
|
+
return {
|
|
448
553
|
path: urlPath,
|
|
449
554
|
method: 'GET',
|
|
450
555
|
headers: headerParameters,
|
|
451
556
|
query: queryParameters,
|
|
452
|
-
}
|
|
557
|
+
};
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Endpoint for clients to get the current status of the worker. If the last update was longer than the defined timeout, worker is considered offline.
|
|
562
|
+
* Factory Status
|
|
563
|
+
*/
|
|
564
|
+
async factoryStatusFactoryStatusGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FFStatusResponse>> {
|
|
565
|
+
const requestOptions = await this.factoryStatusFactoryStatusGetRequestOpts();
|
|
566
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
453
567
|
|
|
454
568
|
return new runtime.JSONApiResponse(response, (jsonValue) => FFStatusResponseFromJSON(jsonValue));
|
|
455
569
|
}
|
|
@@ -464,10 +578,9 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
|
|
|
464
578
|
}
|
|
465
579
|
|
|
466
580
|
/**
|
|
467
|
-
*
|
|
468
|
-
* Get Task
|
|
581
|
+
* Creates request options for getTaskFactoryTaskIdGet without sending the request
|
|
469
582
|
*/
|
|
470
|
-
async
|
|
583
|
+
async getTaskFactoryTaskIdGetRequestOpts(requestParameters: GetTaskFactoryTaskIdGetRequest): Promise<runtime.RequestOpts> {
|
|
471
584
|
if (requestParameters['taskId'] == null) {
|
|
472
585
|
throw new runtime.RequiredError(
|
|
473
586
|
'taskId',
|
|
@@ -496,12 +609,21 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
|
|
|
496
609
|
let urlPath = `/factory/{task_id}`;
|
|
497
610
|
urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
498
611
|
|
|
499
|
-
|
|
612
|
+
return {
|
|
500
613
|
path: urlPath,
|
|
501
614
|
method: 'GET',
|
|
502
615
|
headers: headerParameters,
|
|
503
616
|
query: queryParameters,
|
|
504
|
-
}
|
|
617
|
+
};
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* Retrieves the details of a specific build task. This endpoint allows a user to fetch detailed information about a build task by its ID. Access to this endpoint is restricted to users with the \'maintainer\' or \'foxworker\' roles. Depending on the user\'s roles, returned task details may differ. Admin users will receive all task details, while others will have some fields excluded.
|
|
622
|
+
* Get Task
|
|
623
|
+
*/
|
|
624
|
+
async getTaskFactoryTaskIdGetRaw(requestParameters: GetTaskFactoryTaskIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuildTaskResponse>> {
|
|
625
|
+
const requestOptions = await this.getTaskFactoryTaskIdGetRequestOpts(requestParameters);
|
|
626
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
505
627
|
|
|
506
628
|
return new runtime.JSONApiResponse(response, (jsonValue) => BuildTaskResponseFromJSON(jsonValue));
|
|
507
629
|
}
|
|
@@ -516,10 +638,9 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
|
|
|
516
638
|
}
|
|
517
639
|
|
|
518
640
|
/**
|
|
519
|
-
*
|
|
520
|
-
* List Tasks
|
|
641
|
+
* Creates request options for listTasksFactoryGet without sending the request
|
|
521
642
|
*/
|
|
522
|
-
async
|
|
643
|
+
async listTasksFactoryGetRequestOpts(requestParameters: ListTasksFactoryGetRequest): Promise<runtime.RequestOpts> {
|
|
523
644
|
const queryParameters: any = {};
|
|
524
645
|
|
|
525
646
|
if (requestParameters['deviceId'] != null) {
|
|
@@ -544,12 +665,21 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
|
|
|
544
665
|
|
|
545
666
|
let urlPath = `/factory/`;
|
|
546
667
|
|
|
547
|
-
|
|
668
|
+
return {
|
|
548
669
|
path: urlPath,
|
|
549
670
|
method: 'GET',
|
|
550
671
|
headers: headerParameters,
|
|
551
672
|
query: queryParameters,
|
|
552
|
-
}
|
|
673
|
+
};
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* Get a list of all build tasks. This endpoint retrieves all build tasks from the database and returns them as a list of abbreviated responses. Parameters: device_id (ObjectId, optional): Filter tasks by device ID
|
|
678
|
+
* List Tasks
|
|
679
|
+
*/
|
|
680
|
+
async listTasksFactoryGetRaw(requestParameters: ListTasksFactoryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListResponseBuildTaskShortResponse>> {
|
|
681
|
+
const requestOptions = await this.listTasksFactoryGetRequestOpts(requestParameters);
|
|
682
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
553
683
|
|
|
554
684
|
return new runtime.JSONApiResponse(response, (jsonValue) => ListResponseBuildTaskShortResponseFromJSON(jsonValue));
|
|
555
685
|
}
|
|
@@ -564,10 +694,9 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
|
|
|
564
694
|
}
|
|
565
695
|
|
|
566
696
|
/**
|
|
567
|
-
*
|
|
568
|
-
* New Task
|
|
697
|
+
* Creates request options for newTaskFactoryPost without sending the request
|
|
569
698
|
*/
|
|
570
|
-
async
|
|
699
|
+
async newTaskFactoryPostRequestOpts(requestParameters: NewTaskFactoryPostRequest): Promise<runtime.RequestOpts> {
|
|
571
700
|
if (requestParameters['newBuildTaskBody'] == null) {
|
|
572
701
|
throw new runtime.RequiredError(
|
|
573
702
|
'newBuildTaskBody',
|
|
@@ -597,13 +726,22 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
|
|
|
597
726
|
|
|
598
727
|
let urlPath = `/factory/`;
|
|
599
728
|
|
|
600
|
-
|
|
729
|
+
return {
|
|
601
730
|
path: urlPath,
|
|
602
731
|
method: 'POST',
|
|
603
732
|
headers: headerParameters,
|
|
604
733
|
query: queryParameters,
|
|
605
734
|
body: NewBuildTaskBodyToJSON(requestParameters['newBuildTaskBody']),
|
|
606
|
-
}
|
|
735
|
+
};
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* Handles the creation of a new build task including validations for the device existence and its connection to GitLab. It initializes a new task with a pending status and the required details, then saves it to the database before returning the task model.
|
|
740
|
+
* New Task
|
|
741
|
+
*/
|
|
742
|
+
async newTaskFactoryPostRaw(requestParameters: NewTaskFactoryPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>> {
|
|
743
|
+
const requestOptions = await this.newTaskFactoryPostRequestOpts(requestParameters);
|
|
744
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
607
745
|
|
|
608
746
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
609
747
|
return new runtime.JSONApiResponse<boolean>(response);
|
|
@@ -622,10 +760,9 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
|
|
|
622
760
|
}
|
|
623
761
|
|
|
624
762
|
/**
|
|
625
|
-
*
|
|
626
|
-
* Update Task
|
|
763
|
+
* Creates request options for updateTaskFactoryTaskIdPatch without sending the request
|
|
627
764
|
*/
|
|
628
|
-
async
|
|
765
|
+
async updateTaskFactoryTaskIdPatchRequestOpts(requestParameters: UpdateTaskFactoryTaskIdPatchRequest): Promise<runtime.RequestOpts> {
|
|
629
766
|
if (requestParameters['taskId'] == null) {
|
|
630
767
|
throw new runtime.RequiredError(
|
|
631
768
|
'taskId',
|
|
@@ -663,13 +800,22 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
|
|
|
663
800
|
let urlPath = `/factory/{task_id}`;
|
|
664
801
|
urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
665
802
|
|
|
666
|
-
|
|
803
|
+
return {
|
|
667
804
|
path: urlPath,
|
|
668
805
|
method: 'PATCH',
|
|
669
806
|
headers: headerParameters,
|
|
670
807
|
query: queryParameters,
|
|
671
808
|
body: TaskUpdateBodyToJSON(requestParameters['taskUpdateBody']),
|
|
672
|
-
}
|
|
809
|
+
};
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
/**
|
|
813
|
+
* Updates an existing build task by its unique identifier. The function allows updates to the task\'s status and logs. If the task\'s status is set to a value indicating completion, the finished timestamp is also updated. Allowed only for foxworker users.
|
|
814
|
+
* Update Task
|
|
815
|
+
*/
|
|
816
|
+
async updateTaskFactoryTaskIdPatchRaw(requestParameters: UpdateTaskFactoryTaskIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>> {
|
|
817
|
+
const requestOptions = await this.updateTaskFactoryTaskIdPatchRequestOpts(requestParameters);
|
|
818
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
673
819
|
|
|
674
820
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
675
821
|
return new runtime.JSONApiResponse<boolean>(response);
|
|
@@ -688,10 +834,9 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
|
|
|
688
834
|
}
|
|
689
835
|
|
|
690
836
|
/**
|
|
691
|
-
*
|
|
692
|
-
* Update Worker Status
|
|
837
|
+
* Creates request options for updateWorkerStatusFactoryUpdateStatusPost without sending the request
|
|
693
838
|
*/
|
|
694
|
-
async
|
|
839
|
+
async updateWorkerStatusFactoryUpdateStatusPostRequestOpts(requestParameters: UpdateWorkerStatusFactoryUpdateStatusPostRequest): Promise<runtime.RequestOpts> {
|
|
695
840
|
if (requestParameters['body'] == null) {
|
|
696
841
|
throw new runtime.RequiredError(
|
|
697
842
|
'body',
|
|
@@ -721,13 +866,22 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
|
|
|
721
866
|
|
|
722
867
|
let urlPath = `/factory/update_status`;
|
|
723
868
|
|
|
724
|
-
|
|
869
|
+
return {
|
|
725
870
|
path: urlPath,
|
|
726
871
|
method: 'POST',
|
|
727
872
|
headers: headerParameters,
|
|
728
873
|
query: queryParameters,
|
|
729
874
|
body: requestParameters['body'] as any,
|
|
730
|
-
}
|
|
875
|
+
};
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
/**
|
|
879
|
+
* Endpoint for FoxFactory worker to update its status.
|
|
880
|
+
* Update Worker Status
|
|
881
|
+
*/
|
|
882
|
+
async updateWorkerStatusFactoryUpdateStatusPostRaw(requestParameters: UpdateWorkerStatusFactoryUpdateStatusPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>> {
|
|
883
|
+
const requestOptions = await this.updateWorkerStatusFactoryUpdateStatusPostRequestOpts(requestParameters);
|
|
884
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
731
885
|
|
|
732
886
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
733
887
|
return new runtime.JSONApiResponse<any>(response);
|
|
@@ -746,10 +900,9 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
|
|
|
746
900
|
}
|
|
747
901
|
|
|
748
902
|
/**
|
|
749
|
-
*
|
|
750
|
-
* Upload Artifact
|
|
903
|
+
* Creates request options for uploadArtifactFactoryTaskIdArtifactPost without sending the request
|
|
751
904
|
*/
|
|
752
|
-
async
|
|
905
|
+
async uploadArtifactFactoryTaskIdArtifactPostRequestOpts(requestParameters: UploadArtifactFactoryTaskIdArtifactPostRequest): Promise<runtime.RequestOpts> {
|
|
753
906
|
if (requestParameters['taskId'] == null) {
|
|
754
907
|
throw new runtime.RequiredError(
|
|
755
908
|
'taskId',
|
|
@@ -796,8 +949,6 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
|
|
|
796
949
|
|
|
797
950
|
let formParams: { append(param: string, value: any): any };
|
|
798
951
|
let useForm = false;
|
|
799
|
-
// use FormData to transmit files using content-type "multipart/form-data"
|
|
800
|
-
useForm = canConsumeForm;
|
|
801
952
|
if (useForm) {
|
|
802
953
|
formParams = new FormData();
|
|
803
954
|
} else {
|
|
@@ -816,13 +967,22 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
|
|
|
816
967
|
let urlPath = `/factory/{task_id}/artifact`;
|
|
817
968
|
urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
818
969
|
|
|
819
|
-
|
|
970
|
+
return {
|
|
820
971
|
path: urlPath,
|
|
821
972
|
method: 'POST',
|
|
822
973
|
headers: headerParameters,
|
|
823
974
|
query: queryParameters,
|
|
824
975
|
body: formParams,
|
|
825
|
-
}
|
|
976
|
+
};
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
/**
|
|
980
|
+
* Upload an artifact zip file for a specific build task. This endpoint allows foxfactory workers to upload an artifact zip file, verifies its MD5 hash, and stores it in the appropriate directory. Parameters: task_id: The ID of the build task artifact: The artifact zip file to upload md5_hash: The expected MD5 hash of the artifact file
|
|
981
|
+
* Upload Artifact
|
|
982
|
+
*/
|
|
983
|
+
async uploadArtifactFactoryTaskIdArtifactPostRaw(requestParameters: UploadArtifactFactoryTaskIdArtifactPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>> {
|
|
984
|
+
const requestOptions = await this.uploadArtifactFactoryTaskIdArtifactPostRequestOpts(requestParameters);
|
|
985
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
826
986
|
|
|
827
987
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
828
988
|
return new runtime.JSONApiResponse<boolean>(response);
|
package/src/apis/GitlabApi.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
5
|
* Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 5.
|
|
7
|
+
* The version of the OpenAPI document: 5.4.0
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,6 +34,15 @@ export interface DeviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPostRequest {
|
|
|
34
34
|
* @interface GitlabApiInterface
|
|
35
35
|
*/
|
|
36
36
|
export interface GitlabApiInterface {
|
|
37
|
+
/**
|
|
38
|
+
* Creates request options for deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost without sending the request
|
|
39
|
+
* @param {string} deviceId
|
|
40
|
+
* @param {string} glProjectUrl
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
* @memberof GitlabApiInterface
|
|
43
|
+
*/
|
|
44
|
+
deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPostRequestOpts(requestParameters: DeviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPostRequest): Promise<runtime.RequestOpts>;
|
|
45
|
+
|
|
37
46
|
/**
|
|
38
47
|
*
|
|
39
48
|
* @summary Device Add Gitlab Repo
|
|
@@ -58,9 +67,9 @@ export interface GitlabApiInterface {
|
|
|
58
67
|
export class GitlabApi extends runtime.BaseAPI implements GitlabApiInterface {
|
|
59
68
|
|
|
60
69
|
/**
|
|
61
|
-
*
|
|
70
|
+
* Creates request options for deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost without sending the request
|
|
62
71
|
*/
|
|
63
|
-
async
|
|
72
|
+
async deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPostRequestOpts(requestParameters: DeviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPostRequest): Promise<runtime.RequestOpts> {
|
|
64
73
|
if (requestParameters['deviceId'] == null) {
|
|
65
74
|
throw new runtime.RequiredError(
|
|
66
75
|
'deviceId',
|
|
@@ -87,12 +96,20 @@ export class GitlabApi extends runtime.BaseAPI implements GitlabApiInterface {
|
|
|
87
96
|
let urlPath = `/gitlab/device/{device_id}/gitlab`;
|
|
88
97
|
urlPath = urlPath.replace(`{${"device_id"}}`, encodeURIComponent(String(requestParameters['deviceId'])));
|
|
89
98
|
|
|
90
|
-
|
|
99
|
+
return {
|
|
91
100
|
path: urlPath,
|
|
92
101
|
method: 'POST',
|
|
93
102
|
headers: headerParameters,
|
|
94
103
|
query: queryParameters,
|
|
95
|
-
}
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Device Add Gitlab Repo
|
|
109
|
+
*/
|
|
110
|
+
async deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPostRaw(requestParameters: DeviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>> {
|
|
111
|
+
const requestOptions = await this.deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPostRequestOpts(requestParameters);
|
|
112
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
96
113
|
|
|
97
114
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
98
115
|
return new runtime.JSONApiResponse<boolean>(response);
|