@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).
|
|
@@ -27,10 +27,9 @@ import { BuildTaskResponseFromJSON, FFStatusResponseFromJSON, ListResponseBuildT
|
|
|
27
27
|
*/
|
|
28
28
|
export class FoxFactoryApi extends runtime.BaseAPI {
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
* Cancel Task
|
|
30
|
+
* Creates request options for cancelTaskFactoryTaskIdCancelPost without sending the request
|
|
32
31
|
*/
|
|
33
|
-
|
|
32
|
+
cancelTaskFactoryTaskIdCancelPostRequestOpts(requestParameters) {
|
|
34
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
35
34
|
if (requestParameters['taskId'] == null) {
|
|
36
35
|
throw new runtime.RequiredError('taskId', 'Required parameter "taskId" was null or undefined when calling cancelTaskFactoryTaskIdCancelPost().');
|
|
@@ -50,12 +49,22 @@ export class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
50
49
|
}
|
|
51
50
|
let urlPath = `/factory/{task_id}/cancel`;
|
|
52
51
|
urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
53
|
-
|
|
52
|
+
return {
|
|
54
53
|
path: urlPath,
|
|
55
54
|
method: 'POST',
|
|
56
55
|
headers: headerParameters,
|
|
57
56
|
query: queryParameters,
|
|
58
|
-
}
|
|
57
|
+
};
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* 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.
|
|
62
|
+
* Cancel Task
|
|
63
|
+
*/
|
|
64
|
+
cancelTaskFactoryTaskIdCancelPostRaw(requestParameters, initOverrides) {
|
|
65
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
const requestOptions = yield this.cancelTaskFactoryTaskIdCancelPostRequestOpts(requestParameters);
|
|
67
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
59
68
|
return new runtime.JSONApiResponse(response, (jsonValue) => BuildTaskResponseFromJSON(jsonValue));
|
|
60
69
|
});
|
|
61
70
|
}
|
|
@@ -70,10 +79,9 @@ export class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
70
79
|
});
|
|
71
80
|
}
|
|
72
81
|
/**
|
|
73
|
-
*
|
|
74
|
-
* Delete Task
|
|
82
|
+
* Creates request options for deleteTaskFactoryTaskIdDelete without sending the request
|
|
75
83
|
*/
|
|
76
|
-
|
|
84
|
+
deleteTaskFactoryTaskIdDeleteRequestOpts(requestParameters) {
|
|
77
85
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
86
|
if (requestParameters['taskId'] == null) {
|
|
79
87
|
throw new runtime.RequiredError('taskId', 'Required parameter "taskId" was null or undefined when calling deleteTaskFactoryTaskIdDelete().');
|
|
@@ -93,12 +101,22 @@ export class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
93
101
|
}
|
|
94
102
|
let urlPath = `/factory/{task_id}`;
|
|
95
103
|
urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
96
|
-
|
|
104
|
+
return {
|
|
97
105
|
path: urlPath,
|
|
98
106
|
method: 'DELETE',
|
|
99
107
|
headers: headerParameters,
|
|
100
108
|
query: queryParameters,
|
|
101
|
-
}
|
|
109
|
+
};
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* 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.
|
|
114
|
+
* Delete Task
|
|
115
|
+
*/
|
|
116
|
+
deleteTaskFactoryTaskIdDeleteRaw(requestParameters, initOverrides) {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
const requestOptions = yield this.deleteTaskFactoryTaskIdDeleteRequestOpts(requestParameters);
|
|
119
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
102
120
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
103
121
|
return new runtime.JSONApiResponse(response);
|
|
104
122
|
}
|
|
@@ -118,10 +136,9 @@ export class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
118
136
|
});
|
|
119
137
|
}
|
|
120
138
|
/**
|
|
121
|
-
*
|
|
122
|
-
* Download Artifact
|
|
139
|
+
* Creates request options for downloadArtifactFactoryTaskIdArtifactGet without sending the request
|
|
123
140
|
*/
|
|
124
|
-
|
|
141
|
+
downloadArtifactFactoryTaskIdArtifactGetRequestOpts(requestParameters) {
|
|
125
142
|
return __awaiter(this, void 0, void 0, function* () {
|
|
126
143
|
if (requestParameters['taskId'] == null) {
|
|
127
144
|
throw new runtime.RequiredError('taskId', 'Required parameter "taskId" was null or undefined when calling downloadArtifactFactoryTaskIdArtifactGet().');
|
|
@@ -141,12 +158,22 @@ export class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
141
158
|
}
|
|
142
159
|
let urlPath = `/factory/{task_id}/artifact`;
|
|
143
160
|
urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
144
|
-
|
|
161
|
+
return {
|
|
145
162
|
path: urlPath,
|
|
146
163
|
method: 'GET',
|
|
147
164
|
headers: headerParameters,
|
|
148
165
|
query: queryParameters,
|
|
149
|
-
}
|
|
166
|
+
};
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* 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
|
|
171
|
+
* Download Artifact
|
|
172
|
+
*/
|
|
173
|
+
downloadArtifactFactoryTaskIdArtifactGetRaw(requestParameters, initOverrides) {
|
|
174
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
175
|
+
const requestOptions = yield this.downloadArtifactFactoryTaskIdArtifactGetRequestOpts(requestParameters);
|
|
176
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
150
177
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
151
178
|
return new runtime.JSONApiResponse(response);
|
|
152
179
|
}
|
|
@@ -166,10 +193,9 @@ export class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
166
193
|
});
|
|
167
194
|
}
|
|
168
195
|
/**
|
|
169
|
-
*
|
|
170
|
-
* Factory Status
|
|
196
|
+
* Creates request options for factoryStatusFactoryStatusGet without sending the request
|
|
171
197
|
*/
|
|
172
|
-
|
|
198
|
+
factoryStatusFactoryStatusGetRequestOpts() {
|
|
173
199
|
return __awaiter(this, void 0, void 0, function* () {
|
|
174
200
|
const queryParameters = {};
|
|
175
201
|
const headerParameters = {};
|
|
@@ -185,12 +211,22 @@ export class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
185
211
|
}
|
|
186
212
|
}
|
|
187
213
|
let urlPath = `/factory/status`;
|
|
188
|
-
|
|
214
|
+
return {
|
|
189
215
|
path: urlPath,
|
|
190
216
|
method: 'GET',
|
|
191
217
|
headers: headerParameters,
|
|
192
218
|
query: queryParameters,
|
|
193
|
-
}
|
|
219
|
+
};
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* 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.
|
|
224
|
+
* Factory Status
|
|
225
|
+
*/
|
|
226
|
+
factoryStatusFactoryStatusGetRaw(initOverrides) {
|
|
227
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
228
|
+
const requestOptions = yield this.factoryStatusFactoryStatusGetRequestOpts();
|
|
229
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
194
230
|
return new runtime.JSONApiResponse(response, (jsonValue) => FFStatusResponseFromJSON(jsonValue));
|
|
195
231
|
});
|
|
196
232
|
}
|
|
@@ -205,10 +241,9 @@ export class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
205
241
|
});
|
|
206
242
|
}
|
|
207
243
|
/**
|
|
208
|
-
*
|
|
209
|
-
* Get Task
|
|
244
|
+
* Creates request options for getTaskFactoryTaskIdGet without sending the request
|
|
210
245
|
*/
|
|
211
|
-
|
|
246
|
+
getTaskFactoryTaskIdGetRequestOpts(requestParameters) {
|
|
212
247
|
return __awaiter(this, void 0, void 0, function* () {
|
|
213
248
|
if (requestParameters['taskId'] == null) {
|
|
214
249
|
throw new runtime.RequiredError('taskId', 'Required parameter "taskId" was null or undefined when calling getTaskFactoryTaskIdGet().');
|
|
@@ -228,12 +263,22 @@ export class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
228
263
|
}
|
|
229
264
|
let urlPath = `/factory/{task_id}`;
|
|
230
265
|
urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
231
|
-
|
|
266
|
+
return {
|
|
232
267
|
path: urlPath,
|
|
233
268
|
method: 'GET',
|
|
234
269
|
headers: headerParameters,
|
|
235
270
|
query: queryParameters,
|
|
236
|
-
}
|
|
271
|
+
};
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* 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.
|
|
276
|
+
* Get Task
|
|
277
|
+
*/
|
|
278
|
+
getTaskFactoryTaskIdGetRaw(requestParameters, initOverrides) {
|
|
279
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
280
|
+
const requestOptions = yield this.getTaskFactoryTaskIdGetRequestOpts(requestParameters);
|
|
281
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
237
282
|
return new runtime.JSONApiResponse(response, (jsonValue) => BuildTaskResponseFromJSON(jsonValue));
|
|
238
283
|
});
|
|
239
284
|
}
|
|
@@ -248,10 +293,9 @@ export class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
248
293
|
});
|
|
249
294
|
}
|
|
250
295
|
/**
|
|
251
|
-
*
|
|
252
|
-
* List Tasks
|
|
296
|
+
* Creates request options for listTasksFactoryGet without sending the request
|
|
253
297
|
*/
|
|
254
|
-
|
|
298
|
+
listTasksFactoryGetRequestOpts(requestParameters) {
|
|
255
299
|
return __awaiter(this, void 0, void 0, function* () {
|
|
256
300
|
const queryParameters = {};
|
|
257
301
|
if (requestParameters['deviceId'] != null) {
|
|
@@ -270,12 +314,22 @@ export class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
270
314
|
}
|
|
271
315
|
}
|
|
272
316
|
let urlPath = `/factory/`;
|
|
273
|
-
|
|
317
|
+
return {
|
|
274
318
|
path: urlPath,
|
|
275
319
|
method: 'GET',
|
|
276
320
|
headers: headerParameters,
|
|
277
321
|
query: queryParameters,
|
|
278
|
-
}
|
|
322
|
+
};
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* 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
|
|
327
|
+
* List Tasks
|
|
328
|
+
*/
|
|
329
|
+
listTasksFactoryGetRaw(requestParameters, initOverrides) {
|
|
330
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
331
|
+
const requestOptions = yield this.listTasksFactoryGetRequestOpts(requestParameters);
|
|
332
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
279
333
|
return new runtime.JSONApiResponse(response, (jsonValue) => ListResponseBuildTaskShortResponseFromJSON(jsonValue));
|
|
280
334
|
});
|
|
281
335
|
}
|
|
@@ -290,10 +344,9 @@ export class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
290
344
|
});
|
|
291
345
|
}
|
|
292
346
|
/**
|
|
293
|
-
*
|
|
294
|
-
* New Task
|
|
347
|
+
* Creates request options for newTaskFactoryPost without sending the request
|
|
295
348
|
*/
|
|
296
|
-
|
|
349
|
+
newTaskFactoryPostRequestOpts(requestParameters) {
|
|
297
350
|
return __awaiter(this, void 0, void 0, function* () {
|
|
298
351
|
if (requestParameters['newBuildTaskBody'] == null) {
|
|
299
352
|
throw new runtime.RequiredError('newBuildTaskBody', 'Required parameter "newBuildTaskBody" was null or undefined when calling newTaskFactoryPost().');
|
|
@@ -313,13 +366,23 @@ export class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
313
366
|
}
|
|
314
367
|
}
|
|
315
368
|
let urlPath = `/factory/`;
|
|
316
|
-
|
|
369
|
+
return {
|
|
317
370
|
path: urlPath,
|
|
318
371
|
method: 'POST',
|
|
319
372
|
headers: headerParameters,
|
|
320
373
|
query: queryParameters,
|
|
321
374
|
body: NewBuildTaskBodyToJSON(requestParameters['newBuildTaskBody']),
|
|
322
|
-
}
|
|
375
|
+
};
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* 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.
|
|
380
|
+
* New Task
|
|
381
|
+
*/
|
|
382
|
+
newTaskFactoryPostRaw(requestParameters, initOverrides) {
|
|
383
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
384
|
+
const requestOptions = yield this.newTaskFactoryPostRequestOpts(requestParameters);
|
|
385
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
323
386
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
324
387
|
return new runtime.JSONApiResponse(response);
|
|
325
388
|
}
|
|
@@ -339,10 +402,9 @@ export class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
339
402
|
});
|
|
340
403
|
}
|
|
341
404
|
/**
|
|
342
|
-
*
|
|
343
|
-
* Update Task
|
|
405
|
+
* Creates request options for updateTaskFactoryTaskIdPatch without sending the request
|
|
344
406
|
*/
|
|
345
|
-
|
|
407
|
+
updateTaskFactoryTaskIdPatchRequestOpts(requestParameters) {
|
|
346
408
|
return __awaiter(this, void 0, void 0, function* () {
|
|
347
409
|
if (requestParameters['taskId'] == null) {
|
|
348
410
|
throw new runtime.RequiredError('taskId', 'Required parameter "taskId" was null or undefined when calling updateTaskFactoryTaskIdPatch().');
|
|
@@ -366,13 +428,23 @@ export class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
366
428
|
}
|
|
367
429
|
let urlPath = `/factory/{task_id}`;
|
|
368
430
|
urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
369
|
-
|
|
431
|
+
return {
|
|
370
432
|
path: urlPath,
|
|
371
433
|
method: 'PATCH',
|
|
372
434
|
headers: headerParameters,
|
|
373
435
|
query: queryParameters,
|
|
374
436
|
body: TaskUpdateBodyToJSON(requestParameters['taskUpdateBody']),
|
|
375
|
-
}
|
|
437
|
+
};
|
|
438
|
+
});
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* 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.
|
|
442
|
+
* Update Task
|
|
443
|
+
*/
|
|
444
|
+
updateTaskFactoryTaskIdPatchRaw(requestParameters, initOverrides) {
|
|
445
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
446
|
+
const requestOptions = yield this.updateTaskFactoryTaskIdPatchRequestOpts(requestParameters);
|
|
447
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
376
448
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
377
449
|
return new runtime.JSONApiResponse(response);
|
|
378
450
|
}
|
|
@@ -392,10 +464,9 @@ export class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
392
464
|
});
|
|
393
465
|
}
|
|
394
466
|
/**
|
|
395
|
-
*
|
|
396
|
-
* Update Worker Status
|
|
467
|
+
* Creates request options for updateWorkerStatusFactoryUpdateStatusPost without sending the request
|
|
397
468
|
*/
|
|
398
|
-
|
|
469
|
+
updateWorkerStatusFactoryUpdateStatusPostRequestOpts(requestParameters) {
|
|
399
470
|
return __awaiter(this, void 0, void 0, function* () {
|
|
400
471
|
if (requestParameters['body'] == null) {
|
|
401
472
|
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling updateWorkerStatusFactoryUpdateStatusPost().');
|
|
@@ -415,13 +486,23 @@ export class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
415
486
|
}
|
|
416
487
|
}
|
|
417
488
|
let urlPath = `/factory/update_status`;
|
|
418
|
-
|
|
489
|
+
return {
|
|
419
490
|
path: urlPath,
|
|
420
491
|
method: 'POST',
|
|
421
492
|
headers: headerParameters,
|
|
422
493
|
query: queryParameters,
|
|
423
494
|
body: requestParameters['body'],
|
|
424
|
-
}
|
|
495
|
+
};
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* Endpoint for FoxFactory worker to update its status.
|
|
500
|
+
* Update Worker Status
|
|
501
|
+
*/
|
|
502
|
+
updateWorkerStatusFactoryUpdateStatusPostRaw(requestParameters, initOverrides) {
|
|
503
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
504
|
+
const requestOptions = yield this.updateWorkerStatusFactoryUpdateStatusPostRequestOpts(requestParameters);
|
|
505
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
425
506
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
426
507
|
return new runtime.JSONApiResponse(response);
|
|
427
508
|
}
|
|
@@ -441,10 +522,9 @@ export class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
441
522
|
});
|
|
442
523
|
}
|
|
443
524
|
/**
|
|
444
|
-
*
|
|
445
|
-
* Upload Artifact
|
|
525
|
+
* Creates request options for uploadArtifactFactoryTaskIdArtifactPost without sending the request
|
|
446
526
|
*/
|
|
447
|
-
|
|
527
|
+
uploadArtifactFactoryTaskIdArtifactPostRequestOpts(requestParameters) {
|
|
448
528
|
return __awaiter(this, void 0, void 0, function* () {
|
|
449
529
|
if (requestParameters['taskId'] == null) {
|
|
450
530
|
throw new runtime.RequiredError('taskId', 'Required parameter "taskId" was null or undefined when calling uploadArtifactFactoryTaskIdArtifactPost().');
|
|
@@ -475,8 +555,6 @@ export class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
475
555
|
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
476
556
|
let formParams;
|
|
477
557
|
let useForm = false;
|
|
478
|
-
// use FormData to transmit files using content-type "multipart/form-data"
|
|
479
|
-
useForm = canConsumeForm;
|
|
480
558
|
if (useForm) {
|
|
481
559
|
formParams = new FormData();
|
|
482
560
|
}
|
|
@@ -491,13 +569,23 @@ export class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
491
569
|
}
|
|
492
570
|
let urlPath = `/factory/{task_id}/artifact`;
|
|
493
571
|
urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
494
|
-
|
|
572
|
+
return {
|
|
495
573
|
path: urlPath,
|
|
496
574
|
method: 'POST',
|
|
497
575
|
headers: headerParameters,
|
|
498
576
|
query: queryParameters,
|
|
499
577
|
body: formParams,
|
|
500
|
-
}
|
|
578
|
+
};
|
|
579
|
+
});
|
|
580
|
+
}
|
|
581
|
+
/**
|
|
582
|
+
* 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
|
|
583
|
+
* Upload Artifact
|
|
584
|
+
*/
|
|
585
|
+
uploadArtifactFactoryTaskIdArtifactPostRaw(requestParameters, initOverrides) {
|
|
586
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
587
|
+
const requestOptions = yield this.uploadArtifactFactoryTaskIdArtifactPostRequestOpts(requestParameters);
|
|
588
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
501
589
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
502
590
|
return new runtime.JSONApiResponse(response);
|
|
503
591
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Fox API
|
|
3
3
|
* Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 5.
|
|
5
|
+
* The version of the OpenAPI document: 5.4.0
|
|
6
6
|
* Contact: admin@orangefox.tech
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -21,6 +21,14 @@ export interface DeviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPostRequest {
|
|
|
21
21
|
* @interface GitlabApiInterface
|
|
22
22
|
*/
|
|
23
23
|
export interface GitlabApiInterface {
|
|
24
|
+
/**
|
|
25
|
+
* Creates request options for deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost without sending the request
|
|
26
|
+
* @param {string} deviceId
|
|
27
|
+
* @param {string} glProjectUrl
|
|
28
|
+
* @throws {RequiredError}
|
|
29
|
+
* @memberof GitlabApiInterface
|
|
30
|
+
*/
|
|
31
|
+
deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPostRequestOpts(requestParameters: DeviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPostRequest): Promise<runtime.RequestOpts>;
|
|
24
32
|
/**
|
|
25
33
|
*
|
|
26
34
|
* @summary Device Add Gitlab Repo
|
|
@@ -40,6 +48,10 @@ export interface GitlabApiInterface {
|
|
|
40
48
|
*
|
|
41
49
|
*/
|
|
42
50
|
export declare class GitlabApi extends runtime.BaseAPI implements GitlabApiInterface {
|
|
51
|
+
/**
|
|
52
|
+
* Creates request options for deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost without sending the request
|
|
53
|
+
*/
|
|
54
|
+
deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPostRequestOpts(requestParameters: DeviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPostRequest): Promise<runtime.RequestOpts>;
|
|
43
55
|
/**
|
|
44
56
|
* Device Add Gitlab Repo
|
|
45
57
|
*/
|
|
@@ -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).
|
|
@@ -26,9 +26,9 @@ import * as runtime from '../runtime';
|
|
|
26
26
|
*/
|
|
27
27
|
export class GitlabApi extends runtime.BaseAPI {
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Creates request options for deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost without sending the request
|
|
30
30
|
*/
|
|
31
|
-
|
|
31
|
+
deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPostRequestOpts(requestParameters) {
|
|
32
32
|
return __awaiter(this, void 0, void 0, function* () {
|
|
33
33
|
if (requestParameters['deviceId'] == null) {
|
|
34
34
|
throw new runtime.RequiredError('deviceId', 'Required parameter "deviceId" was null or undefined when calling deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost().');
|
|
@@ -43,12 +43,21 @@ export class GitlabApi extends runtime.BaseAPI {
|
|
|
43
43
|
const headerParameters = {};
|
|
44
44
|
let urlPath = `/gitlab/device/{device_id}/gitlab`;
|
|
45
45
|
urlPath = urlPath.replace(`{${"device_id"}}`, encodeURIComponent(String(requestParameters['deviceId'])));
|
|
46
|
-
|
|
46
|
+
return {
|
|
47
47
|
path: urlPath,
|
|
48
48
|
method: 'POST',
|
|
49
49
|
headers: headerParameters,
|
|
50
50
|
query: queryParameters,
|
|
51
|
-
}
|
|
51
|
+
};
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Device Add Gitlab Repo
|
|
56
|
+
*/
|
|
57
|
+
deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPostRaw(requestParameters, initOverrides) {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
const requestOptions = yield this.deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPostRequestOpts(requestParameters);
|
|
60
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
52
61
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
53
62
|
return new runtime.JSONApiResponse(response);
|
|
54
63
|
}
|