@orangefox-recovery/foxinternalclient 5.2.4 → 5.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -2
- package/api.ts +321 -19
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +192 -23
- package/dist/api.js +230 -9
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +192 -23
- package/dist/esm/api.js +230 -9
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/BuildStatusEnum.md +2 -0
- package/docs/BuildTaskResponse.md +10 -4
- package/docs/BuildTaskShortResponse.md +10 -4
- package/docs/FoxFactoryApi.md +167 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.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.2.
|
|
5
|
+
* The version of the OpenAPI document: 5.2.5
|
|
6
6
|
* Contact: admin@orangefox.tech
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -41,6 +41,7 @@ export declare const BuildStatusEnum: {
|
|
|
41
41
|
readonly Pending: "pending";
|
|
42
42
|
readonly Running: "running";
|
|
43
43
|
readonly Cancelling: "cancelling";
|
|
44
|
+
readonly Uploading: "uploading";
|
|
44
45
|
readonly Success: "success";
|
|
45
46
|
readonly Cancelled: "cancelled";
|
|
46
47
|
readonly Failed: "failed";
|
|
@@ -66,10 +67,10 @@ export interface BuildTaskResponse {
|
|
|
66
67
|
'started_by_id': string;
|
|
67
68
|
/**
|
|
68
69
|
*
|
|
69
|
-
* @type {
|
|
70
|
+
* @type {ShortDeviceResponse}
|
|
70
71
|
* @memberof BuildTaskResponse
|
|
71
72
|
*/
|
|
72
|
-
'
|
|
73
|
+
'device': ShortDeviceResponse;
|
|
73
74
|
/**
|
|
74
75
|
*
|
|
75
76
|
* @type {BuildStatusEnum}
|
|
@@ -78,12 +79,22 @@ export interface BuildTaskResponse {
|
|
|
78
79
|
'status': BuildStatusEnum;
|
|
79
80
|
/**
|
|
80
81
|
*
|
|
81
|
-
* @type {
|
|
82
|
+
* @type {string}
|
|
82
83
|
* @memberof BuildTaskResponse
|
|
83
84
|
*/
|
|
84
|
-
'
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
'version'?: string;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {ReleaseType}
|
|
89
|
+
* @memberof BuildTaskResponse
|
|
90
|
+
*/
|
|
91
|
+
'type'?: ReleaseType;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof BuildTaskResponse
|
|
96
|
+
*/
|
|
97
|
+
'variant'?: string;
|
|
87
98
|
/**
|
|
88
99
|
*
|
|
89
100
|
* @type {string}
|
|
@@ -96,6 +107,12 @@ export interface BuildTaskResponse {
|
|
|
96
107
|
* @memberof BuildTaskResponse
|
|
97
108
|
*/
|
|
98
109
|
'finished_at'?: string | null;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {boolean}
|
|
113
|
+
* @memberof BuildTaskResponse
|
|
114
|
+
*/
|
|
115
|
+
'has_artifact': boolean;
|
|
99
116
|
/**
|
|
100
117
|
*
|
|
101
118
|
* @type {{ [key: string]: any; }}
|
|
@@ -131,10 +148,10 @@ export interface BuildTaskShortResponse {
|
|
|
131
148
|
'started_by_id': string;
|
|
132
149
|
/**
|
|
133
150
|
*
|
|
134
|
-
* @type {
|
|
151
|
+
* @type {ShortDeviceResponse}
|
|
135
152
|
* @memberof BuildTaskShortResponse
|
|
136
153
|
*/
|
|
137
|
-
'
|
|
154
|
+
'device': ShortDeviceResponse;
|
|
138
155
|
/**
|
|
139
156
|
*
|
|
140
157
|
* @type {BuildStatusEnum}
|
|
@@ -143,12 +160,22 @@ export interface BuildTaskShortResponse {
|
|
|
143
160
|
'status': BuildStatusEnum;
|
|
144
161
|
/**
|
|
145
162
|
*
|
|
146
|
-
* @type {
|
|
163
|
+
* @type {string}
|
|
147
164
|
* @memberof BuildTaskShortResponse
|
|
148
165
|
*/
|
|
149
|
-
'
|
|
150
|
-
|
|
151
|
-
|
|
166
|
+
'version'?: string;
|
|
167
|
+
/**
|
|
168
|
+
*
|
|
169
|
+
* @type {ReleaseType}
|
|
170
|
+
* @memberof BuildTaskShortResponse
|
|
171
|
+
*/
|
|
172
|
+
'type'?: ReleaseType;
|
|
173
|
+
/**
|
|
174
|
+
*
|
|
175
|
+
* @type {string}
|
|
176
|
+
* @memberof BuildTaskShortResponse
|
|
177
|
+
*/
|
|
178
|
+
'variant'?: string;
|
|
152
179
|
/**
|
|
153
180
|
*
|
|
154
181
|
* @type {string}
|
|
@@ -161,6 +188,12 @@ export interface BuildTaskShortResponse {
|
|
|
161
188
|
* @memberof BuildTaskShortResponse
|
|
162
189
|
*/
|
|
163
190
|
'finished_at'?: string | null;
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
* @type {boolean}
|
|
194
|
+
* @memberof BuildTaskShortResponse
|
|
195
|
+
*/
|
|
196
|
+
'has_artifact': boolean;
|
|
164
197
|
}
|
|
165
198
|
/**
|
|
166
199
|
*
|
|
@@ -1889,7 +1922,7 @@ export declare const FoxFactoryApiAxiosParamCreator: (configuration?: Configurat
|
|
|
1889
1922
|
*/
|
|
1890
1923
|
cancelTaskFactoryTaskIdCancelPost: (taskId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1891
1924
|
/**
|
|
1892
|
-
* Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised.
|
|
1925
|
+
* 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.
|
|
1893
1926
|
* @summary Delete Task
|
|
1894
1927
|
* @param {string} taskId
|
|
1895
1928
|
* @param {*} [options] Override http request option.
|
|
@@ -1897,7 +1930,15 @@ export declare const FoxFactoryApiAxiosParamCreator: (configuration?: Configurat
|
|
|
1897
1930
|
*/
|
|
1898
1931
|
deleteTaskFactoryTaskIdDelete: (taskId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1899
1932
|
/**
|
|
1900
|
-
*
|
|
1933
|
+
* 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
|
|
1934
|
+
* @summary Download Artifact
|
|
1935
|
+
* @param {string} taskId
|
|
1936
|
+
* @param {*} [options] Override http request option.
|
|
1937
|
+
* @throws {RequiredError}
|
|
1938
|
+
*/
|
|
1939
|
+
downloadArtifactFactoryTaskIdArtifactGet: (taskId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1940
|
+
/**
|
|
1941
|
+
* 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.
|
|
1901
1942
|
* @summary Factory Status
|
|
1902
1943
|
* @param {*} [options] Override http request option.
|
|
1903
1944
|
* @throws {RequiredError}
|
|
@@ -1936,6 +1977,24 @@ export declare const FoxFactoryApiAxiosParamCreator: (configuration?: Configurat
|
|
|
1936
1977
|
* @throws {RequiredError}
|
|
1937
1978
|
*/
|
|
1938
1979
|
updateTaskFactoryTaskIdPatch: (taskId: string, taskUpdateBody: TaskUpdateBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1980
|
+
/**
|
|
1981
|
+
* Endpoint for FoxFactory worker to update its status.
|
|
1982
|
+
* @summary Update Worker Status
|
|
1983
|
+
* @param {string} body
|
|
1984
|
+
* @param {*} [options] Override http request option.
|
|
1985
|
+
* @throws {RequiredError}
|
|
1986
|
+
*/
|
|
1987
|
+
updateWorkerStatusFactoryUpdateStatusPost: (body: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1988
|
+
/**
|
|
1989
|
+
* 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
|
|
1990
|
+
* @summary Upload Artifact
|
|
1991
|
+
* @param {string} taskId
|
|
1992
|
+
* @param {File} artifact
|
|
1993
|
+
* @param {string} md5Hash
|
|
1994
|
+
* @param {*} [options] Override http request option.
|
|
1995
|
+
* @throws {RequiredError}
|
|
1996
|
+
*/
|
|
1997
|
+
uploadArtifactFactoryTaskIdArtifactPost: (taskId: string, artifact: File, md5Hash: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1939
1998
|
};
|
|
1940
1999
|
/**
|
|
1941
2000
|
* FoxFactoryApi - functional programming interface
|
|
@@ -1951,7 +2010,7 @@ export declare const FoxFactoryApiFp: (configuration?: Configuration) => {
|
|
|
1951
2010
|
*/
|
|
1952
2011
|
cancelTaskFactoryTaskIdCancelPost(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BuildTaskResponse>>;
|
|
1953
2012
|
/**
|
|
1954
|
-
* Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised.
|
|
2013
|
+
* 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.
|
|
1955
2014
|
* @summary Delete Task
|
|
1956
2015
|
* @param {string} taskId
|
|
1957
2016
|
* @param {*} [options] Override http request option.
|
|
@@ -1959,7 +2018,15 @@ export declare const FoxFactoryApiFp: (configuration?: Configuration) => {
|
|
|
1959
2018
|
*/
|
|
1960
2019
|
deleteTaskFactoryTaskIdDelete(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>>;
|
|
1961
2020
|
/**
|
|
1962
|
-
*
|
|
2021
|
+
* 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
|
|
2022
|
+
* @summary Download Artifact
|
|
2023
|
+
* @param {string} taskId
|
|
2024
|
+
* @param {*} [options] Override http request option.
|
|
2025
|
+
* @throws {RequiredError}
|
|
2026
|
+
*/
|
|
2027
|
+
downloadArtifactFactoryTaskIdArtifactGet(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
2028
|
+
/**
|
|
2029
|
+
* 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.
|
|
1963
2030
|
* @summary Factory Status
|
|
1964
2031
|
* @param {*} [options] Override http request option.
|
|
1965
2032
|
* @throws {RequiredError}
|
|
@@ -1998,6 +2065,24 @@ export declare const FoxFactoryApiFp: (configuration?: Configuration) => {
|
|
|
1998
2065
|
* @throws {RequiredError}
|
|
1999
2066
|
*/
|
|
2000
2067
|
updateTaskFactoryTaskIdPatch(taskId: string, taskUpdateBody: TaskUpdateBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>>;
|
|
2068
|
+
/**
|
|
2069
|
+
* Endpoint for FoxFactory worker to update its status.
|
|
2070
|
+
* @summary Update Worker Status
|
|
2071
|
+
* @param {string} body
|
|
2072
|
+
* @param {*} [options] Override http request option.
|
|
2073
|
+
* @throws {RequiredError}
|
|
2074
|
+
*/
|
|
2075
|
+
updateWorkerStatusFactoryUpdateStatusPost(body: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
|
|
2076
|
+
/**
|
|
2077
|
+
* 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
|
|
2078
|
+
* @summary Upload Artifact
|
|
2079
|
+
* @param {string} taskId
|
|
2080
|
+
* @param {File} artifact
|
|
2081
|
+
* @param {string} md5Hash
|
|
2082
|
+
* @param {*} [options] Override http request option.
|
|
2083
|
+
* @throws {RequiredError}
|
|
2084
|
+
*/
|
|
2085
|
+
uploadArtifactFactoryTaskIdArtifactPost(taskId: string, artifact: File, md5Hash: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>>;
|
|
2001
2086
|
};
|
|
2002
2087
|
/**
|
|
2003
2088
|
* FoxFactoryApi - factory interface
|
|
@@ -2013,7 +2098,7 @@ export declare const FoxFactoryApiFactory: (configuration?: Configuration, baseP
|
|
|
2013
2098
|
*/
|
|
2014
2099
|
cancelTaskFactoryTaskIdCancelPost(taskId: string, options?: RawAxiosRequestConfig): AxiosPromise<BuildTaskResponse>;
|
|
2015
2100
|
/**
|
|
2016
|
-
* Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised.
|
|
2101
|
+
* 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.
|
|
2017
2102
|
* @summary Delete Task
|
|
2018
2103
|
* @param {string} taskId
|
|
2019
2104
|
* @param {*} [options] Override http request option.
|
|
@@ -2021,7 +2106,15 @@ export declare const FoxFactoryApiFactory: (configuration?: Configuration, baseP
|
|
|
2021
2106
|
*/
|
|
2022
2107
|
deleteTaskFactoryTaskIdDelete(taskId: string, options?: RawAxiosRequestConfig): AxiosPromise<boolean>;
|
|
2023
2108
|
/**
|
|
2024
|
-
*
|
|
2109
|
+
* 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
|
|
2110
|
+
* @summary Download Artifact
|
|
2111
|
+
* @param {string} taskId
|
|
2112
|
+
* @param {*} [options] Override http request option.
|
|
2113
|
+
* @throws {RequiredError}
|
|
2114
|
+
*/
|
|
2115
|
+
downloadArtifactFactoryTaskIdArtifactGet(taskId: string, options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
2116
|
+
/**
|
|
2117
|
+
* 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.
|
|
2025
2118
|
* @summary Factory Status
|
|
2026
2119
|
* @param {*} [options] Override http request option.
|
|
2027
2120
|
* @throws {RequiredError}
|
|
@@ -2060,6 +2153,24 @@ export declare const FoxFactoryApiFactory: (configuration?: Configuration, baseP
|
|
|
2060
2153
|
* @throws {RequiredError}
|
|
2061
2154
|
*/
|
|
2062
2155
|
updateTaskFactoryTaskIdPatch(taskId: string, taskUpdateBody: TaskUpdateBody, options?: RawAxiosRequestConfig): AxiosPromise<boolean>;
|
|
2156
|
+
/**
|
|
2157
|
+
* Endpoint for FoxFactory worker to update its status.
|
|
2158
|
+
* @summary Update Worker Status
|
|
2159
|
+
* @param {string} body
|
|
2160
|
+
* @param {*} [options] Override http request option.
|
|
2161
|
+
* @throws {RequiredError}
|
|
2162
|
+
*/
|
|
2163
|
+
updateWorkerStatusFactoryUpdateStatusPost(body: string, options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
2164
|
+
/**
|
|
2165
|
+
* 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
|
|
2166
|
+
* @summary Upload Artifact
|
|
2167
|
+
* @param {string} taskId
|
|
2168
|
+
* @param {File} artifact
|
|
2169
|
+
* @param {string} md5Hash
|
|
2170
|
+
* @param {*} [options] Override http request option.
|
|
2171
|
+
* @throws {RequiredError}
|
|
2172
|
+
*/
|
|
2173
|
+
uploadArtifactFactoryTaskIdArtifactPost(taskId: string, artifact: File, md5Hash: string, options?: RawAxiosRequestConfig): AxiosPromise<boolean>;
|
|
2063
2174
|
};
|
|
2064
2175
|
/**
|
|
2065
2176
|
* FoxFactoryApi - interface
|
|
@@ -2077,7 +2188,7 @@ export interface FoxFactoryApiInterface {
|
|
|
2077
2188
|
*/
|
|
2078
2189
|
cancelTaskFactoryTaskIdCancelPost(taskId: string, options?: RawAxiosRequestConfig): AxiosPromise<BuildTaskResponse>;
|
|
2079
2190
|
/**
|
|
2080
|
-
* Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised.
|
|
2191
|
+
* 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.
|
|
2081
2192
|
* @summary Delete Task
|
|
2082
2193
|
* @param {string} taskId
|
|
2083
2194
|
* @param {*} [options] Override http request option.
|
|
@@ -2086,7 +2197,16 @@ export interface FoxFactoryApiInterface {
|
|
|
2086
2197
|
*/
|
|
2087
2198
|
deleteTaskFactoryTaskIdDelete(taskId: string, options?: RawAxiosRequestConfig): AxiosPromise<boolean>;
|
|
2088
2199
|
/**
|
|
2089
|
-
*
|
|
2200
|
+
* 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
|
|
2201
|
+
* @summary Download Artifact
|
|
2202
|
+
* @param {string} taskId
|
|
2203
|
+
* @param {*} [options] Override http request option.
|
|
2204
|
+
* @throws {RequiredError}
|
|
2205
|
+
* @memberof FoxFactoryApiInterface
|
|
2206
|
+
*/
|
|
2207
|
+
downloadArtifactFactoryTaskIdArtifactGet(taskId: string, options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
2208
|
+
/**
|
|
2209
|
+
* 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.
|
|
2090
2210
|
* @summary Factory Status
|
|
2091
2211
|
* @param {*} [options] Override http request option.
|
|
2092
2212
|
* @throws {RequiredError}
|
|
@@ -2130,6 +2250,26 @@ export interface FoxFactoryApiInterface {
|
|
|
2130
2250
|
* @memberof FoxFactoryApiInterface
|
|
2131
2251
|
*/
|
|
2132
2252
|
updateTaskFactoryTaskIdPatch(taskId: string, taskUpdateBody: TaskUpdateBody, options?: RawAxiosRequestConfig): AxiosPromise<boolean>;
|
|
2253
|
+
/**
|
|
2254
|
+
* Endpoint for FoxFactory worker to update its status.
|
|
2255
|
+
* @summary Update Worker Status
|
|
2256
|
+
* @param {string} body
|
|
2257
|
+
* @param {*} [options] Override http request option.
|
|
2258
|
+
* @throws {RequiredError}
|
|
2259
|
+
* @memberof FoxFactoryApiInterface
|
|
2260
|
+
*/
|
|
2261
|
+
updateWorkerStatusFactoryUpdateStatusPost(body: string, options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
2262
|
+
/**
|
|
2263
|
+
* 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
|
|
2264
|
+
* @summary Upload Artifact
|
|
2265
|
+
* @param {string} taskId
|
|
2266
|
+
* @param {File} artifact
|
|
2267
|
+
* @param {string} md5Hash
|
|
2268
|
+
* @param {*} [options] Override http request option.
|
|
2269
|
+
* @throws {RequiredError}
|
|
2270
|
+
* @memberof FoxFactoryApiInterface
|
|
2271
|
+
*/
|
|
2272
|
+
uploadArtifactFactoryTaskIdArtifactPost(taskId: string, artifact: File, md5Hash: string, options?: RawAxiosRequestConfig): AxiosPromise<boolean>;
|
|
2133
2273
|
}
|
|
2134
2274
|
/**
|
|
2135
2275
|
* FoxFactoryApi - object-oriented interface
|
|
@@ -2148,7 +2288,7 @@ export declare class FoxFactoryApi extends BaseAPI implements FoxFactoryApiInter
|
|
|
2148
2288
|
*/
|
|
2149
2289
|
cancelTaskFactoryTaskIdCancelPost(taskId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BuildTaskResponse, any>>;
|
|
2150
2290
|
/**
|
|
2151
|
-
* Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised.
|
|
2291
|
+
* 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.
|
|
2152
2292
|
* @summary Delete Task
|
|
2153
2293
|
* @param {string} taskId
|
|
2154
2294
|
* @param {*} [options] Override http request option.
|
|
@@ -2157,7 +2297,16 @@ export declare class FoxFactoryApi extends BaseAPI implements FoxFactoryApiInter
|
|
|
2157
2297
|
*/
|
|
2158
2298
|
deleteTaskFactoryTaskIdDelete(taskId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any>>;
|
|
2159
2299
|
/**
|
|
2160
|
-
*
|
|
2300
|
+
* 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
|
|
2301
|
+
* @summary Download Artifact
|
|
2302
|
+
* @param {string} taskId
|
|
2303
|
+
* @param {*} [options] Override http request option.
|
|
2304
|
+
* @throws {RequiredError}
|
|
2305
|
+
* @memberof FoxFactoryApi
|
|
2306
|
+
*/
|
|
2307
|
+
downloadArtifactFactoryTaskIdArtifactGet(taskId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
2308
|
+
/**
|
|
2309
|
+
* 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.
|
|
2161
2310
|
* @summary Factory Status
|
|
2162
2311
|
* @param {*} [options] Override http request option.
|
|
2163
2312
|
* @throws {RequiredError}
|
|
@@ -2201,6 +2350,26 @@ export declare class FoxFactoryApi extends BaseAPI implements FoxFactoryApiInter
|
|
|
2201
2350
|
* @memberof FoxFactoryApi
|
|
2202
2351
|
*/
|
|
2203
2352
|
updateTaskFactoryTaskIdPatch(taskId: string, taskUpdateBody: TaskUpdateBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any>>;
|
|
2353
|
+
/**
|
|
2354
|
+
* Endpoint for FoxFactory worker to update its status.
|
|
2355
|
+
* @summary Update Worker Status
|
|
2356
|
+
* @param {string} body
|
|
2357
|
+
* @param {*} [options] Override http request option.
|
|
2358
|
+
* @throws {RequiredError}
|
|
2359
|
+
* @memberof FoxFactoryApi
|
|
2360
|
+
*/
|
|
2361
|
+
updateWorkerStatusFactoryUpdateStatusPost(body: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
2362
|
+
/**
|
|
2363
|
+
* 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
|
|
2364
|
+
* @summary Upload Artifact
|
|
2365
|
+
* @param {string} taskId
|
|
2366
|
+
* @param {File} artifact
|
|
2367
|
+
* @param {string} md5Hash
|
|
2368
|
+
* @param {*} [options] Override http request option.
|
|
2369
|
+
* @throws {RequiredError}
|
|
2370
|
+
* @memberof FoxFactoryApi
|
|
2371
|
+
*/
|
|
2372
|
+
uploadArtifactFactoryTaskIdArtifactPost(taskId: string, artifact: File, md5Hash: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any>>;
|
|
2204
2373
|
}
|
|
2205
2374
|
/**
|
|
2206
2375
|
* GitlabApi - axios parameter creator
|