@orangefox-recovery/foxinternalclient 5.3.2 → 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 +2 -2
- package/dist/esm/models/DeviceInternalResponse.js +1 -1
- package/dist/esm/models/DeviceResponse.d.ts +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/models/DeviceInternalResponse.js +1 -1
- package/dist/models/DeviceResponse.d.ts +2 -2
- 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 +2 -2
- 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 +2 -2
- package/src/models/DeviceResponse.ts +2 -2
- 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 +2 -2
- 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
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Fox API
|
|
6
6
|
* Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 5.
|
|
8
|
+
* The version of the OpenAPI document: 5.4.0
|
|
9
9
|
* Contact: admin@orangefox.tech
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -30,10 +30,9 @@ const index_1 = require("../models/index");
|
|
|
30
30
|
*/
|
|
31
31
|
class FoxFactoryApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
34
|
-
* Cancel Task
|
|
33
|
+
* Creates request options for cancelTaskFactoryTaskIdCancelPost without sending the request
|
|
35
34
|
*/
|
|
36
|
-
|
|
35
|
+
cancelTaskFactoryTaskIdCancelPostRequestOpts(requestParameters) {
|
|
37
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
37
|
if (requestParameters['taskId'] == null) {
|
|
39
38
|
throw new runtime.RequiredError('taskId', 'Required parameter "taskId" was null or undefined when calling cancelTaskFactoryTaskIdCancelPost().');
|
|
@@ -53,12 +52,22 @@ class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
53
52
|
}
|
|
54
53
|
let urlPath = `/factory/{task_id}/cancel`;
|
|
55
54
|
urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
56
|
-
|
|
55
|
+
return {
|
|
57
56
|
path: urlPath,
|
|
58
57
|
method: 'POST',
|
|
59
58
|
headers: headerParameters,
|
|
60
59
|
query: queryParameters,
|
|
61
|
-
}
|
|
60
|
+
};
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* 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.
|
|
65
|
+
* Cancel Task
|
|
66
|
+
*/
|
|
67
|
+
cancelTaskFactoryTaskIdCancelPostRaw(requestParameters, initOverrides) {
|
|
68
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
69
|
+
const requestOptions = yield this.cancelTaskFactoryTaskIdCancelPostRequestOpts(requestParameters);
|
|
70
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
62
71
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BuildTaskResponseFromJSON)(jsonValue));
|
|
63
72
|
});
|
|
64
73
|
}
|
|
@@ -73,10 +82,9 @@ class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
73
82
|
});
|
|
74
83
|
}
|
|
75
84
|
/**
|
|
76
|
-
*
|
|
77
|
-
* Delete Task
|
|
85
|
+
* Creates request options for deleteTaskFactoryTaskIdDelete without sending the request
|
|
78
86
|
*/
|
|
79
|
-
|
|
87
|
+
deleteTaskFactoryTaskIdDeleteRequestOpts(requestParameters) {
|
|
80
88
|
return __awaiter(this, void 0, void 0, function* () {
|
|
81
89
|
if (requestParameters['taskId'] == null) {
|
|
82
90
|
throw new runtime.RequiredError('taskId', 'Required parameter "taskId" was null or undefined when calling deleteTaskFactoryTaskIdDelete().');
|
|
@@ -96,12 +104,22 @@ class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
96
104
|
}
|
|
97
105
|
let urlPath = `/factory/{task_id}`;
|
|
98
106
|
urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
99
|
-
|
|
107
|
+
return {
|
|
100
108
|
path: urlPath,
|
|
101
109
|
method: 'DELETE',
|
|
102
110
|
headers: headerParameters,
|
|
103
111
|
query: queryParameters,
|
|
104
|
-
}
|
|
112
|
+
};
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* 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.
|
|
117
|
+
* Delete Task
|
|
118
|
+
*/
|
|
119
|
+
deleteTaskFactoryTaskIdDeleteRaw(requestParameters, initOverrides) {
|
|
120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
121
|
+
const requestOptions = yield this.deleteTaskFactoryTaskIdDeleteRequestOpts(requestParameters);
|
|
122
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
105
123
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
106
124
|
return new runtime.JSONApiResponse(response);
|
|
107
125
|
}
|
|
@@ -121,10 +139,9 @@ class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
121
139
|
});
|
|
122
140
|
}
|
|
123
141
|
/**
|
|
124
|
-
*
|
|
125
|
-
* Download Artifact
|
|
142
|
+
* Creates request options for downloadArtifactFactoryTaskIdArtifactGet without sending the request
|
|
126
143
|
*/
|
|
127
|
-
|
|
144
|
+
downloadArtifactFactoryTaskIdArtifactGetRequestOpts(requestParameters) {
|
|
128
145
|
return __awaiter(this, void 0, void 0, function* () {
|
|
129
146
|
if (requestParameters['taskId'] == null) {
|
|
130
147
|
throw new runtime.RequiredError('taskId', 'Required parameter "taskId" was null or undefined when calling downloadArtifactFactoryTaskIdArtifactGet().');
|
|
@@ -144,12 +161,22 @@ class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
144
161
|
}
|
|
145
162
|
let urlPath = `/factory/{task_id}/artifact`;
|
|
146
163
|
urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
147
|
-
|
|
164
|
+
return {
|
|
148
165
|
path: urlPath,
|
|
149
166
|
method: 'GET',
|
|
150
167
|
headers: headerParameters,
|
|
151
168
|
query: queryParameters,
|
|
152
|
-
}
|
|
169
|
+
};
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* 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
|
|
174
|
+
* Download Artifact
|
|
175
|
+
*/
|
|
176
|
+
downloadArtifactFactoryTaskIdArtifactGetRaw(requestParameters, initOverrides) {
|
|
177
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
178
|
+
const requestOptions = yield this.downloadArtifactFactoryTaskIdArtifactGetRequestOpts(requestParameters);
|
|
179
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
153
180
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
154
181
|
return new runtime.JSONApiResponse(response);
|
|
155
182
|
}
|
|
@@ -169,10 +196,9 @@ class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
169
196
|
});
|
|
170
197
|
}
|
|
171
198
|
/**
|
|
172
|
-
*
|
|
173
|
-
* Factory Status
|
|
199
|
+
* Creates request options for factoryStatusFactoryStatusGet without sending the request
|
|
174
200
|
*/
|
|
175
|
-
|
|
201
|
+
factoryStatusFactoryStatusGetRequestOpts() {
|
|
176
202
|
return __awaiter(this, void 0, void 0, function* () {
|
|
177
203
|
const queryParameters = {};
|
|
178
204
|
const headerParameters = {};
|
|
@@ -188,12 +214,22 @@ class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
188
214
|
}
|
|
189
215
|
}
|
|
190
216
|
let urlPath = `/factory/status`;
|
|
191
|
-
|
|
217
|
+
return {
|
|
192
218
|
path: urlPath,
|
|
193
219
|
method: 'GET',
|
|
194
220
|
headers: headerParameters,
|
|
195
221
|
query: queryParameters,
|
|
196
|
-
}
|
|
222
|
+
};
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* 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.
|
|
227
|
+
* Factory Status
|
|
228
|
+
*/
|
|
229
|
+
factoryStatusFactoryStatusGetRaw(initOverrides) {
|
|
230
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
231
|
+
const requestOptions = yield this.factoryStatusFactoryStatusGetRequestOpts();
|
|
232
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
197
233
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.FFStatusResponseFromJSON)(jsonValue));
|
|
198
234
|
});
|
|
199
235
|
}
|
|
@@ -208,10 +244,9 @@ class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
208
244
|
});
|
|
209
245
|
}
|
|
210
246
|
/**
|
|
211
|
-
*
|
|
212
|
-
* Get Task
|
|
247
|
+
* Creates request options for getTaskFactoryTaskIdGet without sending the request
|
|
213
248
|
*/
|
|
214
|
-
|
|
249
|
+
getTaskFactoryTaskIdGetRequestOpts(requestParameters) {
|
|
215
250
|
return __awaiter(this, void 0, void 0, function* () {
|
|
216
251
|
if (requestParameters['taskId'] == null) {
|
|
217
252
|
throw new runtime.RequiredError('taskId', 'Required parameter "taskId" was null or undefined when calling getTaskFactoryTaskIdGet().');
|
|
@@ -231,12 +266,22 @@ class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
231
266
|
}
|
|
232
267
|
let urlPath = `/factory/{task_id}`;
|
|
233
268
|
urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
234
|
-
|
|
269
|
+
return {
|
|
235
270
|
path: urlPath,
|
|
236
271
|
method: 'GET',
|
|
237
272
|
headers: headerParameters,
|
|
238
273
|
query: queryParameters,
|
|
239
|
-
}
|
|
274
|
+
};
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* 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.
|
|
279
|
+
* Get Task
|
|
280
|
+
*/
|
|
281
|
+
getTaskFactoryTaskIdGetRaw(requestParameters, initOverrides) {
|
|
282
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
283
|
+
const requestOptions = yield this.getTaskFactoryTaskIdGetRequestOpts(requestParameters);
|
|
284
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
240
285
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BuildTaskResponseFromJSON)(jsonValue));
|
|
241
286
|
});
|
|
242
287
|
}
|
|
@@ -251,10 +296,9 @@ class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
251
296
|
});
|
|
252
297
|
}
|
|
253
298
|
/**
|
|
254
|
-
*
|
|
255
|
-
* List Tasks
|
|
299
|
+
* Creates request options for listTasksFactoryGet without sending the request
|
|
256
300
|
*/
|
|
257
|
-
|
|
301
|
+
listTasksFactoryGetRequestOpts(requestParameters) {
|
|
258
302
|
return __awaiter(this, void 0, void 0, function* () {
|
|
259
303
|
const queryParameters = {};
|
|
260
304
|
if (requestParameters['deviceId'] != null) {
|
|
@@ -273,12 +317,22 @@ class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
273
317
|
}
|
|
274
318
|
}
|
|
275
319
|
let urlPath = `/factory/`;
|
|
276
|
-
|
|
320
|
+
return {
|
|
277
321
|
path: urlPath,
|
|
278
322
|
method: 'GET',
|
|
279
323
|
headers: headerParameters,
|
|
280
324
|
query: queryParameters,
|
|
281
|
-
}
|
|
325
|
+
};
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* 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
|
|
330
|
+
* List Tasks
|
|
331
|
+
*/
|
|
332
|
+
listTasksFactoryGetRaw(requestParameters, initOverrides) {
|
|
333
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
334
|
+
const requestOptions = yield this.listTasksFactoryGetRequestOpts(requestParameters);
|
|
335
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
282
336
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListResponseBuildTaskShortResponseFromJSON)(jsonValue));
|
|
283
337
|
});
|
|
284
338
|
}
|
|
@@ -293,10 +347,9 @@ class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
293
347
|
});
|
|
294
348
|
}
|
|
295
349
|
/**
|
|
296
|
-
*
|
|
297
|
-
* New Task
|
|
350
|
+
* Creates request options for newTaskFactoryPost without sending the request
|
|
298
351
|
*/
|
|
299
|
-
|
|
352
|
+
newTaskFactoryPostRequestOpts(requestParameters) {
|
|
300
353
|
return __awaiter(this, void 0, void 0, function* () {
|
|
301
354
|
if (requestParameters['newBuildTaskBody'] == null) {
|
|
302
355
|
throw new runtime.RequiredError('newBuildTaskBody', 'Required parameter "newBuildTaskBody" was null or undefined when calling newTaskFactoryPost().');
|
|
@@ -316,13 +369,23 @@ class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
316
369
|
}
|
|
317
370
|
}
|
|
318
371
|
let urlPath = `/factory/`;
|
|
319
|
-
|
|
372
|
+
return {
|
|
320
373
|
path: urlPath,
|
|
321
374
|
method: 'POST',
|
|
322
375
|
headers: headerParameters,
|
|
323
376
|
query: queryParameters,
|
|
324
377
|
body: (0, index_1.NewBuildTaskBodyToJSON)(requestParameters['newBuildTaskBody']),
|
|
325
|
-
}
|
|
378
|
+
};
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* 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.
|
|
383
|
+
* New Task
|
|
384
|
+
*/
|
|
385
|
+
newTaskFactoryPostRaw(requestParameters, initOverrides) {
|
|
386
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
387
|
+
const requestOptions = yield this.newTaskFactoryPostRequestOpts(requestParameters);
|
|
388
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
326
389
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
327
390
|
return new runtime.JSONApiResponse(response);
|
|
328
391
|
}
|
|
@@ -342,10 +405,9 @@ class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
342
405
|
});
|
|
343
406
|
}
|
|
344
407
|
/**
|
|
345
|
-
*
|
|
346
|
-
* Update Task
|
|
408
|
+
* Creates request options for updateTaskFactoryTaskIdPatch without sending the request
|
|
347
409
|
*/
|
|
348
|
-
|
|
410
|
+
updateTaskFactoryTaskIdPatchRequestOpts(requestParameters) {
|
|
349
411
|
return __awaiter(this, void 0, void 0, function* () {
|
|
350
412
|
if (requestParameters['taskId'] == null) {
|
|
351
413
|
throw new runtime.RequiredError('taskId', 'Required parameter "taskId" was null or undefined when calling updateTaskFactoryTaskIdPatch().');
|
|
@@ -369,13 +431,23 @@ class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
369
431
|
}
|
|
370
432
|
let urlPath = `/factory/{task_id}`;
|
|
371
433
|
urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
372
|
-
|
|
434
|
+
return {
|
|
373
435
|
path: urlPath,
|
|
374
436
|
method: 'PATCH',
|
|
375
437
|
headers: headerParameters,
|
|
376
438
|
query: queryParameters,
|
|
377
439
|
body: (0, index_1.TaskUpdateBodyToJSON)(requestParameters['taskUpdateBody']),
|
|
378
|
-
}
|
|
440
|
+
};
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* 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.
|
|
445
|
+
* Update Task
|
|
446
|
+
*/
|
|
447
|
+
updateTaskFactoryTaskIdPatchRaw(requestParameters, initOverrides) {
|
|
448
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
449
|
+
const requestOptions = yield this.updateTaskFactoryTaskIdPatchRequestOpts(requestParameters);
|
|
450
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
379
451
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
380
452
|
return new runtime.JSONApiResponse(response);
|
|
381
453
|
}
|
|
@@ -395,10 +467,9 @@ class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
395
467
|
});
|
|
396
468
|
}
|
|
397
469
|
/**
|
|
398
|
-
*
|
|
399
|
-
* Update Worker Status
|
|
470
|
+
* Creates request options for updateWorkerStatusFactoryUpdateStatusPost without sending the request
|
|
400
471
|
*/
|
|
401
|
-
|
|
472
|
+
updateWorkerStatusFactoryUpdateStatusPostRequestOpts(requestParameters) {
|
|
402
473
|
return __awaiter(this, void 0, void 0, function* () {
|
|
403
474
|
if (requestParameters['body'] == null) {
|
|
404
475
|
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling updateWorkerStatusFactoryUpdateStatusPost().');
|
|
@@ -418,13 +489,23 @@ class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
418
489
|
}
|
|
419
490
|
}
|
|
420
491
|
let urlPath = `/factory/update_status`;
|
|
421
|
-
|
|
492
|
+
return {
|
|
422
493
|
path: urlPath,
|
|
423
494
|
method: 'POST',
|
|
424
495
|
headers: headerParameters,
|
|
425
496
|
query: queryParameters,
|
|
426
497
|
body: requestParameters['body'],
|
|
427
|
-
}
|
|
498
|
+
};
|
|
499
|
+
});
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* Endpoint for FoxFactory worker to update its status.
|
|
503
|
+
* Update Worker Status
|
|
504
|
+
*/
|
|
505
|
+
updateWorkerStatusFactoryUpdateStatusPostRaw(requestParameters, initOverrides) {
|
|
506
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
507
|
+
const requestOptions = yield this.updateWorkerStatusFactoryUpdateStatusPostRequestOpts(requestParameters);
|
|
508
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
428
509
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
429
510
|
return new runtime.JSONApiResponse(response);
|
|
430
511
|
}
|
|
@@ -444,10 +525,9 @@ class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
444
525
|
});
|
|
445
526
|
}
|
|
446
527
|
/**
|
|
447
|
-
*
|
|
448
|
-
* Upload Artifact
|
|
528
|
+
* Creates request options for uploadArtifactFactoryTaskIdArtifactPost without sending the request
|
|
449
529
|
*/
|
|
450
|
-
|
|
530
|
+
uploadArtifactFactoryTaskIdArtifactPostRequestOpts(requestParameters) {
|
|
451
531
|
return __awaiter(this, void 0, void 0, function* () {
|
|
452
532
|
if (requestParameters['taskId'] == null) {
|
|
453
533
|
throw new runtime.RequiredError('taskId', 'Required parameter "taskId" was null or undefined when calling uploadArtifactFactoryTaskIdArtifactPost().');
|
|
@@ -478,8 +558,6 @@ class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
478
558
|
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
479
559
|
let formParams;
|
|
480
560
|
let useForm = false;
|
|
481
|
-
// use FormData to transmit files using content-type "multipart/form-data"
|
|
482
|
-
useForm = canConsumeForm;
|
|
483
561
|
if (useForm) {
|
|
484
562
|
formParams = new FormData();
|
|
485
563
|
}
|
|
@@ -494,13 +572,23 @@ class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
494
572
|
}
|
|
495
573
|
let urlPath = `/factory/{task_id}/artifact`;
|
|
496
574
|
urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
497
|
-
|
|
575
|
+
return {
|
|
498
576
|
path: urlPath,
|
|
499
577
|
method: 'POST',
|
|
500
578
|
headers: headerParameters,
|
|
501
579
|
query: queryParameters,
|
|
502
580
|
body: formParams,
|
|
503
|
-
}
|
|
581
|
+
};
|
|
582
|
+
});
|
|
583
|
+
}
|
|
584
|
+
/**
|
|
585
|
+
* 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
|
|
586
|
+
* Upload Artifact
|
|
587
|
+
*/
|
|
588
|
+
uploadArtifactFactoryTaskIdArtifactPostRaw(requestParameters, initOverrides) {
|
|
589
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
590
|
+
const requestOptions = yield this.uploadArtifactFactoryTaskIdArtifactPostRequestOpts(requestParameters);
|
|
591
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
504
592
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
505
593
|
return new runtime.JSONApiResponse(response);
|
|
506
594
|
}
|
package/dist/apis/GitlabApi.d.ts
CHANGED
|
@@ -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
|
*/
|
package/dist/apis/GitlabApi.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Fox API
|
|
6
6
|
* Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 5.
|
|
8
|
+
* The version of the OpenAPI document: 5.4.0
|
|
9
9
|
* Contact: admin@orangefox.tech
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -29,9 +29,9 @@ const runtime = require("../runtime");
|
|
|
29
29
|
*/
|
|
30
30
|
class GitlabApi extends runtime.BaseAPI {
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Creates request options for deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost without sending the request
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPostRequestOpts(requestParameters) {
|
|
35
35
|
return __awaiter(this, void 0, void 0, function* () {
|
|
36
36
|
if (requestParameters['deviceId'] == null) {
|
|
37
37
|
throw new runtime.RequiredError('deviceId', 'Required parameter "deviceId" was null or undefined when calling deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost().');
|
|
@@ -46,12 +46,21 @@ class GitlabApi extends runtime.BaseAPI {
|
|
|
46
46
|
const headerParameters = {};
|
|
47
47
|
let urlPath = `/gitlab/device/{device_id}/gitlab`;
|
|
48
48
|
urlPath = urlPath.replace(`{${"device_id"}}`, encodeURIComponent(String(requestParameters['deviceId'])));
|
|
49
|
-
|
|
49
|
+
return {
|
|
50
50
|
path: urlPath,
|
|
51
51
|
method: 'POST',
|
|
52
52
|
headers: headerParameters,
|
|
53
53
|
query: queryParameters,
|
|
54
|
-
}
|
|
54
|
+
};
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Device Add Gitlab Repo
|
|
59
|
+
*/
|
|
60
|
+
deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPostRaw(requestParameters, initOverrides) {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
const requestOptions = yield this.deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPostRequestOpts(requestParameters);
|
|
63
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
55
64
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
56
65
|
return new runtime.JSONApiResponse(response);
|
|
57
66
|
}
|