@orangefox-recovery/foxinternalclient 5.2.4 → 5.2.6
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 +3 -0
- package/README.md +11 -2
- package/api.ts +897 -62
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +462 -25
- package/dist/api.js +614 -10
- 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 +462 -25
- package/dist/esm/api.js +609 -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 +11 -5
- package/docs/BuildTaskShortResponse.md +10 -4
- package/docs/FoxFactoryApi.md +174 -8
- package/docs/InternalApi.md +114 -0
- package/docs/PasteApi.md +117 -0
- package/docs/PasteInput.md +26 -0
- package/docs/PasteOutput.md +26 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
5
|
* Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 5.2.
|
|
7
|
+
* The version of the OpenAPI document: 5.2.6
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -52,6 +52,7 @@ export const BuildStatusEnum = {
|
|
|
52
52
|
Pending: 'pending',
|
|
53
53
|
Running: 'running',
|
|
54
54
|
Cancelling: 'cancelling',
|
|
55
|
+
Uploading: 'uploading',
|
|
55
56
|
Success: 'success',
|
|
56
57
|
Cancelled: 'cancelled',
|
|
57
58
|
Failed: 'failed'
|
|
@@ -80,10 +81,10 @@ export interface BuildTaskResponse {
|
|
|
80
81
|
'started_by_id': string;
|
|
81
82
|
/**
|
|
82
83
|
*
|
|
83
|
-
* @type {
|
|
84
|
+
* @type {ShortDeviceResponse}
|
|
84
85
|
* @memberof BuildTaskResponse
|
|
85
86
|
*/
|
|
86
|
-
'
|
|
87
|
+
'device': ShortDeviceResponse;
|
|
87
88
|
/**
|
|
88
89
|
*
|
|
89
90
|
* @type {BuildStatusEnum}
|
|
@@ -92,10 +93,22 @@ export interface BuildTaskResponse {
|
|
|
92
93
|
'status': BuildStatusEnum;
|
|
93
94
|
/**
|
|
94
95
|
*
|
|
95
|
-
* @type {
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof BuildTaskResponse
|
|
98
|
+
*/
|
|
99
|
+
'version'?: string;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {ReleaseType}
|
|
103
|
+
* @memberof BuildTaskResponse
|
|
104
|
+
*/
|
|
105
|
+
'type'?: ReleaseType;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {string}
|
|
96
109
|
* @memberof BuildTaskResponse
|
|
97
110
|
*/
|
|
98
|
-
'
|
|
111
|
+
'variant'?: string;
|
|
99
112
|
/**
|
|
100
113
|
*
|
|
101
114
|
* @type {string}
|
|
@@ -110,10 +123,16 @@ export interface BuildTaskResponse {
|
|
|
110
123
|
'finished_at'?: string | null;
|
|
111
124
|
/**
|
|
112
125
|
*
|
|
113
|
-
* @type {
|
|
126
|
+
* @type {boolean}
|
|
127
|
+
* @memberof BuildTaskResponse
|
|
128
|
+
*/
|
|
129
|
+
'has_artifact': boolean;
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @type {{ [key: string]: string; }}
|
|
114
133
|
* @memberof BuildTaskResponse
|
|
115
134
|
*/
|
|
116
|
-
'environment'?: { [key: string]:
|
|
135
|
+
'environment'?: { [key: string]: string; } | null;
|
|
117
136
|
/**
|
|
118
137
|
*
|
|
119
138
|
* @type {Array<string>}
|
|
@@ -143,10 +162,10 @@ export interface BuildTaskShortResponse {
|
|
|
143
162
|
'started_by_id': string;
|
|
144
163
|
/**
|
|
145
164
|
*
|
|
146
|
-
* @type {
|
|
165
|
+
* @type {ShortDeviceResponse}
|
|
147
166
|
* @memberof BuildTaskShortResponse
|
|
148
167
|
*/
|
|
149
|
-
'
|
|
168
|
+
'device': ShortDeviceResponse;
|
|
150
169
|
/**
|
|
151
170
|
*
|
|
152
171
|
* @type {BuildStatusEnum}
|
|
@@ -155,10 +174,22 @@ export interface BuildTaskShortResponse {
|
|
|
155
174
|
'status': BuildStatusEnum;
|
|
156
175
|
/**
|
|
157
176
|
*
|
|
158
|
-
* @type {
|
|
177
|
+
* @type {string}
|
|
178
|
+
* @memberof BuildTaskShortResponse
|
|
179
|
+
*/
|
|
180
|
+
'version'?: string;
|
|
181
|
+
/**
|
|
182
|
+
*
|
|
183
|
+
* @type {ReleaseType}
|
|
159
184
|
* @memberof BuildTaskShortResponse
|
|
160
185
|
*/
|
|
161
|
-
'
|
|
186
|
+
'type'?: ReleaseType;
|
|
187
|
+
/**
|
|
188
|
+
*
|
|
189
|
+
* @type {string}
|
|
190
|
+
* @memberof BuildTaskShortResponse
|
|
191
|
+
*/
|
|
192
|
+
'variant'?: string;
|
|
162
193
|
/**
|
|
163
194
|
*
|
|
164
195
|
* @type {string}
|
|
@@ -171,6 +202,12 @@ export interface BuildTaskShortResponse {
|
|
|
171
202
|
* @memberof BuildTaskShortResponse
|
|
172
203
|
*/
|
|
173
204
|
'finished_at'?: string | null;
|
|
205
|
+
/**
|
|
206
|
+
*
|
|
207
|
+
* @type {boolean}
|
|
208
|
+
* @memberof BuildTaskShortResponse
|
|
209
|
+
*/
|
|
210
|
+
'has_artifact': boolean;
|
|
174
211
|
}
|
|
175
212
|
|
|
176
213
|
|
|
@@ -812,6 +849,68 @@ export interface NewDeviceBody {
|
|
|
812
849
|
*/
|
|
813
850
|
'maintainer': string;
|
|
814
851
|
}
|
|
852
|
+
/**
|
|
853
|
+
*
|
|
854
|
+
* @export
|
|
855
|
+
* @interface PasteInput
|
|
856
|
+
*/
|
|
857
|
+
export interface PasteInput {
|
|
858
|
+
/**
|
|
859
|
+
*
|
|
860
|
+
* @type {string}
|
|
861
|
+
* @memberof PasteInput
|
|
862
|
+
*/
|
|
863
|
+
'_id'?: string | null;
|
|
864
|
+
/**
|
|
865
|
+
*
|
|
866
|
+
* @type {string}
|
|
867
|
+
* @memberof PasteInput
|
|
868
|
+
*/
|
|
869
|
+
'content': string;
|
|
870
|
+
/**
|
|
871
|
+
*
|
|
872
|
+
* @type {string}
|
|
873
|
+
* @memberof PasteInput
|
|
874
|
+
*/
|
|
875
|
+
'ip_address': string;
|
|
876
|
+
/**
|
|
877
|
+
*
|
|
878
|
+
* @type {string}
|
|
879
|
+
* @memberof PasteInput
|
|
880
|
+
*/
|
|
881
|
+
'created_at'?: string;
|
|
882
|
+
}
|
|
883
|
+
/**
|
|
884
|
+
*
|
|
885
|
+
* @export
|
|
886
|
+
* @interface PasteOutput
|
|
887
|
+
*/
|
|
888
|
+
export interface PasteOutput {
|
|
889
|
+
/**
|
|
890
|
+
*
|
|
891
|
+
* @type {string}
|
|
892
|
+
* @memberof PasteOutput
|
|
893
|
+
*/
|
|
894
|
+
'_id'?: string | null;
|
|
895
|
+
/**
|
|
896
|
+
*
|
|
897
|
+
* @type {string}
|
|
898
|
+
* @memberof PasteOutput
|
|
899
|
+
*/
|
|
900
|
+
'content': string;
|
|
901
|
+
/**
|
|
902
|
+
*
|
|
903
|
+
* @type {string}
|
|
904
|
+
* @memberof PasteOutput
|
|
905
|
+
*/
|
|
906
|
+
'ip_address': string;
|
|
907
|
+
/**
|
|
908
|
+
*
|
|
909
|
+
* @type {string}
|
|
910
|
+
* @memberof PasteOutput
|
|
911
|
+
*/
|
|
912
|
+
'created_at'?: string;
|
|
913
|
+
}
|
|
815
914
|
/**
|
|
816
915
|
*
|
|
817
916
|
* @export
|
|
@@ -2128,6 +2227,14 @@ export const FoxFactoryApiAxiosParamCreator = function (configuration?: Configur
|
|
|
2128
2227
|
const localVarHeaderParameter = {} as any;
|
|
2129
2228
|
const localVarQueryParameter = {} as any;
|
|
2130
2229
|
|
|
2230
|
+
// authentication oauth2_password required
|
|
2231
|
+
// oauth required
|
|
2232
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
2233
|
+
|
|
2234
|
+
// authentication bearer_auth required
|
|
2235
|
+
// http bearer authentication required
|
|
2236
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2237
|
+
|
|
2131
2238
|
|
|
2132
2239
|
|
|
2133
2240
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2140,7 +2247,7 @@ export const FoxFactoryApiAxiosParamCreator = function (configuration?: Configur
|
|
|
2140
2247
|
};
|
|
2141
2248
|
},
|
|
2142
2249
|
/**
|
|
2143
|
-
* Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised.
|
|
2250
|
+
* 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.
|
|
2144
2251
|
* @summary Delete Task
|
|
2145
2252
|
* @param {string} taskId
|
|
2146
2253
|
* @param {*} [options] Override http request option.
|
|
@@ -2162,6 +2269,14 @@ export const FoxFactoryApiAxiosParamCreator = function (configuration?: Configur
|
|
|
2162
2269
|
const localVarHeaderParameter = {} as any;
|
|
2163
2270
|
const localVarQueryParameter = {} as any;
|
|
2164
2271
|
|
|
2272
|
+
// authentication oauth2_password required
|
|
2273
|
+
// oauth required
|
|
2274
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
2275
|
+
|
|
2276
|
+
// authentication bearer_auth required
|
|
2277
|
+
// http bearer authentication required
|
|
2278
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2279
|
+
|
|
2165
2280
|
|
|
2166
2281
|
|
|
2167
2282
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2174,7 +2289,49 @@ export const FoxFactoryApiAxiosParamCreator = function (configuration?: Configur
|
|
|
2174
2289
|
};
|
|
2175
2290
|
},
|
|
2176
2291
|
/**
|
|
2177
|
-
*
|
|
2292
|
+
* 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
|
|
2293
|
+
* @summary Download Artifact
|
|
2294
|
+
* @param {string} taskId
|
|
2295
|
+
* @param {*} [options] Override http request option.
|
|
2296
|
+
* @throws {RequiredError}
|
|
2297
|
+
*/
|
|
2298
|
+
downloadArtifactFactoryTaskIdArtifactGet: async (taskId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2299
|
+
// verify required parameter 'taskId' is not null or undefined
|
|
2300
|
+
assertParamExists('downloadArtifactFactoryTaskIdArtifactGet', 'taskId', taskId)
|
|
2301
|
+
const localVarPath = `/factory/{task_id}/artifact`
|
|
2302
|
+
.replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
|
|
2303
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2304
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2305
|
+
let baseOptions;
|
|
2306
|
+
if (configuration) {
|
|
2307
|
+
baseOptions = configuration.baseOptions;
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2310
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2311
|
+
const localVarHeaderParameter = {} as any;
|
|
2312
|
+
const localVarQueryParameter = {} as any;
|
|
2313
|
+
|
|
2314
|
+
// authentication oauth2_password required
|
|
2315
|
+
// oauth required
|
|
2316
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
2317
|
+
|
|
2318
|
+
// authentication bearer_auth required
|
|
2319
|
+
// http bearer authentication required
|
|
2320
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2321
|
+
|
|
2322
|
+
|
|
2323
|
+
|
|
2324
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2325
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2326
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2327
|
+
|
|
2328
|
+
return {
|
|
2329
|
+
url: toPathString(localVarUrlObj),
|
|
2330
|
+
options: localVarRequestOptions,
|
|
2331
|
+
};
|
|
2332
|
+
},
|
|
2333
|
+
/**
|
|
2334
|
+
* 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.
|
|
2178
2335
|
* @summary Factory Status
|
|
2179
2336
|
* @param {*} [options] Override http request option.
|
|
2180
2337
|
* @throws {RequiredError}
|
|
@@ -2192,6 +2349,14 @@ export const FoxFactoryApiAxiosParamCreator = function (configuration?: Configur
|
|
|
2192
2349
|
const localVarHeaderParameter = {} as any;
|
|
2193
2350
|
const localVarQueryParameter = {} as any;
|
|
2194
2351
|
|
|
2352
|
+
// authentication oauth2_password required
|
|
2353
|
+
// oauth required
|
|
2354
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
2355
|
+
|
|
2356
|
+
// authentication bearer_auth required
|
|
2357
|
+
// http bearer authentication required
|
|
2358
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2359
|
+
|
|
2195
2360
|
|
|
2196
2361
|
|
|
2197
2362
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2226,6 +2391,14 @@ export const FoxFactoryApiAxiosParamCreator = function (configuration?: Configur
|
|
|
2226
2391
|
const localVarHeaderParameter = {} as any;
|
|
2227
2392
|
const localVarQueryParameter = {} as any;
|
|
2228
2393
|
|
|
2394
|
+
// authentication oauth2_password required
|
|
2395
|
+
// oauth required
|
|
2396
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
2397
|
+
|
|
2398
|
+
// authentication bearer_auth required
|
|
2399
|
+
// http bearer authentication required
|
|
2400
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2401
|
+
|
|
2229
2402
|
|
|
2230
2403
|
|
|
2231
2404
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2257,6 +2430,14 @@ export const FoxFactoryApiAxiosParamCreator = function (configuration?: Configur
|
|
|
2257
2430
|
const localVarHeaderParameter = {} as any;
|
|
2258
2431
|
const localVarQueryParameter = {} as any;
|
|
2259
2432
|
|
|
2433
|
+
// authentication oauth2_password required
|
|
2434
|
+
// oauth required
|
|
2435
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
2436
|
+
|
|
2437
|
+
// authentication bearer_auth required
|
|
2438
|
+
// http bearer authentication required
|
|
2439
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2440
|
+
|
|
2260
2441
|
if (deviceId !== undefined) {
|
|
2261
2442
|
localVarQueryParameter['device_id'] = deviceId;
|
|
2262
2443
|
}
|
|
@@ -2294,6 +2475,14 @@ export const FoxFactoryApiAxiosParamCreator = function (configuration?: Configur
|
|
|
2294
2475
|
const localVarHeaderParameter = {} as any;
|
|
2295
2476
|
const localVarQueryParameter = {} as any;
|
|
2296
2477
|
|
|
2478
|
+
// authentication oauth2_password required
|
|
2479
|
+
// oauth required
|
|
2480
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
2481
|
+
|
|
2482
|
+
// authentication bearer_auth required
|
|
2483
|
+
// http bearer authentication required
|
|
2484
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2485
|
+
|
|
2297
2486
|
|
|
2298
2487
|
|
|
2299
2488
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -2334,6 +2523,14 @@ export const FoxFactoryApiAxiosParamCreator = function (configuration?: Configur
|
|
|
2334
2523
|
const localVarHeaderParameter = {} as any;
|
|
2335
2524
|
const localVarQueryParameter = {} as any;
|
|
2336
2525
|
|
|
2526
|
+
// authentication oauth2_password required
|
|
2527
|
+
// oauth required
|
|
2528
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
2529
|
+
|
|
2530
|
+
// authentication bearer_auth required
|
|
2531
|
+
// http bearer authentication required
|
|
2532
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2533
|
+
|
|
2337
2534
|
|
|
2338
2535
|
|
|
2339
2536
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -2348,59 +2545,176 @@ export const FoxFactoryApiAxiosParamCreator = function (configuration?: Configur
|
|
|
2348
2545
|
options: localVarRequestOptions,
|
|
2349
2546
|
};
|
|
2350
2547
|
},
|
|
2351
|
-
}
|
|
2352
|
-
};
|
|
2353
|
-
|
|
2354
|
-
/**
|
|
2355
|
-
* FoxFactoryApi - functional programming interface
|
|
2356
|
-
* @export
|
|
2357
|
-
*/
|
|
2358
|
-
export const FoxFactoryApiFp = function(configuration?: Configuration) {
|
|
2359
|
-
const localVarAxiosParamCreator = FoxFactoryApiAxiosParamCreator(configuration)
|
|
2360
|
-
return {
|
|
2361
2548
|
/**
|
|
2362
|
-
*
|
|
2363
|
-
* @summary
|
|
2364
|
-
* @param {string}
|
|
2549
|
+
* Endpoint for FoxFactory worker to update its status.
|
|
2550
|
+
* @summary Update Worker Status
|
|
2551
|
+
* @param {string} body
|
|
2365
2552
|
* @param {*} [options] Override http request option.
|
|
2366
2553
|
* @throws {RequiredError}
|
|
2367
2554
|
*/
|
|
2368
|
-
async
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
const
|
|
2372
|
-
|
|
2555
|
+
updateWorkerStatusFactoryUpdateStatusPost: async (body: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2556
|
+
// verify required parameter 'body' is not null or undefined
|
|
2557
|
+
assertParamExists('updateWorkerStatusFactoryUpdateStatusPost', 'body', body)
|
|
2558
|
+
const localVarPath = `/factory/update_status`;
|
|
2559
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2560
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2561
|
+
let baseOptions;
|
|
2562
|
+
if (configuration) {
|
|
2563
|
+
baseOptions = configuration.baseOptions;
|
|
2564
|
+
}
|
|
2565
|
+
|
|
2566
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2567
|
+
const localVarHeaderParameter = {} as any;
|
|
2568
|
+
const localVarQueryParameter = {} as any;
|
|
2569
|
+
|
|
2570
|
+
// authentication oauth2_password required
|
|
2571
|
+
// oauth required
|
|
2572
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
2573
|
+
|
|
2574
|
+
// authentication bearer_auth required
|
|
2575
|
+
// http bearer authentication required
|
|
2576
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2577
|
+
|
|
2578
|
+
|
|
2579
|
+
|
|
2580
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2581
|
+
|
|
2582
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2583
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2584
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2585
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
2586
|
+
|
|
2587
|
+
return {
|
|
2588
|
+
url: toPathString(localVarUrlObj),
|
|
2589
|
+
options: localVarRequestOptions,
|
|
2590
|
+
};
|
|
2373
2591
|
},
|
|
2374
2592
|
/**
|
|
2375
|
-
*
|
|
2376
|
-
* @summary
|
|
2593
|
+
* 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
|
|
2594
|
+
* @summary Upload Artifact
|
|
2377
2595
|
* @param {string} taskId
|
|
2596
|
+
* @param {File} artifact
|
|
2597
|
+
* @param {string} md5Hash
|
|
2378
2598
|
* @param {*} [options] Override http request option.
|
|
2379
2599
|
* @throws {RequiredError}
|
|
2380
2600
|
*/
|
|
2381
|
-
async
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2601
|
+
uploadArtifactFactoryTaskIdArtifactPost: async (taskId: string, artifact: File, md5Hash: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2602
|
+
// verify required parameter 'taskId' is not null or undefined
|
|
2603
|
+
assertParamExists('uploadArtifactFactoryTaskIdArtifactPost', 'taskId', taskId)
|
|
2604
|
+
// verify required parameter 'artifact' is not null or undefined
|
|
2605
|
+
assertParamExists('uploadArtifactFactoryTaskIdArtifactPost', 'artifact', artifact)
|
|
2606
|
+
// verify required parameter 'md5Hash' is not null or undefined
|
|
2607
|
+
assertParamExists('uploadArtifactFactoryTaskIdArtifactPost', 'md5Hash', md5Hash)
|
|
2608
|
+
const localVarPath = `/factory/{task_id}/artifact`
|
|
2609
|
+
.replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
|
|
2610
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2611
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2612
|
+
let baseOptions;
|
|
2613
|
+
if (configuration) {
|
|
2614
|
+
baseOptions = configuration.baseOptions;
|
|
2615
|
+
}
|
|
2616
|
+
|
|
2617
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2618
|
+
const localVarHeaderParameter = {} as any;
|
|
2619
|
+
const localVarQueryParameter = {} as any;
|
|
2620
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
2621
|
+
|
|
2622
|
+
// authentication oauth2_password required
|
|
2623
|
+
// oauth required
|
|
2624
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
2625
|
+
|
|
2626
|
+
// authentication bearer_auth required
|
|
2627
|
+
// http bearer authentication required
|
|
2628
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2629
|
+
|
|
2630
|
+
|
|
2631
|
+
if (artifact !== undefined) {
|
|
2632
|
+
localVarFormParams.append('artifact', artifact as any);
|
|
2633
|
+
}
|
|
2634
|
+
|
|
2635
|
+
if (md5Hash !== undefined) {
|
|
2636
|
+
localVarFormParams.append('md5_hash', md5Hash as any);
|
|
2637
|
+
}
|
|
2638
|
+
|
|
2639
|
+
|
|
2640
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
2641
|
+
|
|
2642
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2643
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2644
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2645
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
2646
|
+
|
|
2647
|
+
return {
|
|
2648
|
+
url: toPathString(localVarUrlObj),
|
|
2649
|
+
options: localVarRequestOptions,
|
|
2650
|
+
};
|
|
2651
|
+
},
|
|
2652
|
+
}
|
|
2653
|
+
};
|
|
2654
|
+
|
|
2655
|
+
/**
|
|
2656
|
+
* FoxFactoryApi - functional programming interface
|
|
2657
|
+
* @export
|
|
2658
|
+
*/
|
|
2659
|
+
export const FoxFactoryApiFp = function(configuration?: Configuration) {
|
|
2660
|
+
const localVarAxiosParamCreator = FoxFactoryApiAxiosParamCreator(configuration)
|
|
2661
|
+
return {
|
|
2662
|
+
/**
|
|
2663
|
+
* 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.
|
|
2664
|
+
* @summary Cancel Task
|
|
2665
|
+
* @param {string} taskId
|
|
2666
|
+
* @param {*} [options] Override http request option.
|
|
2667
|
+
* @throws {RequiredError}
|
|
2668
|
+
*/
|
|
2669
|
+
async cancelTaskFactoryTaskIdCancelPost(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BuildTaskResponse>> {
|
|
2670
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelTaskFactoryTaskIdCancelPost(taskId, options);
|
|
2671
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2672
|
+
const localVarOperationServerBasePath = operationServerMap['FoxFactoryApi.cancelTaskFactoryTaskIdCancelPost']?.[localVarOperationServerIndex]?.url;
|
|
2673
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2674
|
+
},
|
|
2675
|
+
/**
|
|
2676
|
+
* 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.
|
|
2677
|
+
* @summary Delete Task
|
|
2678
|
+
* @param {string} taskId
|
|
2679
|
+
* @param {*} [options] Override http request option.
|
|
2680
|
+
* @throws {RequiredError}
|
|
2681
|
+
*/
|
|
2682
|
+
async deleteTaskFactoryTaskIdDelete(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
2683
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTaskFactoryTaskIdDelete(taskId, options);
|
|
2684
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2685
|
+
const localVarOperationServerBasePath = operationServerMap['FoxFactoryApi.deleteTaskFactoryTaskIdDelete']?.[localVarOperationServerIndex]?.url;
|
|
2686
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2687
|
+
},
|
|
2688
|
+
/**
|
|
2689
|
+
* 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
|
|
2690
|
+
* @summary Download Artifact
|
|
2691
|
+
* @param {string} taskId
|
|
2692
|
+
* @param {*} [options] Override http request option.
|
|
2693
|
+
* @throws {RequiredError}
|
|
2694
|
+
*/
|
|
2695
|
+
async downloadArtifactFactoryTaskIdArtifactGet(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
2696
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadArtifactFactoryTaskIdArtifactGet(taskId, options);
|
|
2697
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2698
|
+
const localVarOperationServerBasePath = operationServerMap['FoxFactoryApi.downloadArtifactFactoryTaskIdArtifactGet']?.[localVarOperationServerIndex]?.url;
|
|
2699
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2700
|
+
},
|
|
2701
|
+
/**
|
|
2702
|
+
* 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.
|
|
2703
|
+
* @summary Factory Status
|
|
2704
|
+
* @param {*} [options] Override http request option.
|
|
2705
|
+
* @throws {RequiredError}
|
|
2706
|
+
*/
|
|
2707
|
+
async factoryStatusFactoryStatusGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FFStatusResponse>> {
|
|
2708
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.factoryStatusFactoryStatusGet(options);
|
|
2709
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2710
|
+
const localVarOperationServerBasePath = operationServerMap['FoxFactoryApi.factoryStatusFactoryStatusGet']?.[localVarOperationServerIndex]?.url;
|
|
2711
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2712
|
+
},
|
|
2713
|
+
/**
|
|
2714
|
+
* 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.
|
|
2715
|
+
* @summary Get Task
|
|
2716
|
+
* @param {string} taskId
|
|
2717
|
+
* @param {*} [options] Override http request option.
|
|
2404
2718
|
* @throws {RequiredError}
|
|
2405
2719
|
*/
|
|
2406
2720
|
async getTaskFactoryTaskIdGet(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BuildTaskResponse>> {
|
|
@@ -2449,6 +2763,34 @@ export const FoxFactoryApiFp = function(configuration?: Configuration) {
|
|
|
2449
2763
|
const localVarOperationServerBasePath = operationServerMap['FoxFactoryApi.updateTaskFactoryTaskIdPatch']?.[localVarOperationServerIndex]?.url;
|
|
2450
2764
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2451
2765
|
},
|
|
2766
|
+
/**
|
|
2767
|
+
* Endpoint for FoxFactory worker to update its status.
|
|
2768
|
+
* @summary Update Worker Status
|
|
2769
|
+
* @param {string} body
|
|
2770
|
+
* @param {*} [options] Override http request option.
|
|
2771
|
+
* @throws {RequiredError}
|
|
2772
|
+
*/
|
|
2773
|
+
async updateWorkerStatusFactoryUpdateStatusPost(body: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
2774
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateWorkerStatusFactoryUpdateStatusPost(body, options);
|
|
2775
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2776
|
+
const localVarOperationServerBasePath = operationServerMap['FoxFactoryApi.updateWorkerStatusFactoryUpdateStatusPost']?.[localVarOperationServerIndex]?.url;
|
|
2777
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2778
|
+
},
|
|
2779
|
+
/**
|
|
2780
|
+
* 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
|
|
2781
|
+
* @summary Upload Artifact
|
|
2782
|
+
* @param {string} taskId
|
|
2783
|
+
* @param {File} artifact
|
|
2784
|
+
* @param {string} md5Hash
|
|
2785
|
+
* @param {*} [options] Override http request option.
|
|
2786
|
+
* @throws {RequiredError}
|
|
2787
|
+
*/
|
|
2788
|
+
async uploadArtifactFactoryTaskIdArtifactPost(taskId: string, artifact: File, md5Hash: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
2789
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadArtifactFactoryTaskIdArtifactPost(taskId, artifact, md5Hash, options);
|
|
2790
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2791
|
+
const localVarOperationServerBasePath = operationServerMap['FoxFactoryApi.uploadArtifactFactoryTaskIdArtifactPost']?.[localVarOperationServerIndex]?.url;
|
|
2792
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2793
|
+
},
|
|
2452
2794
|
}
|
|
2453
2795
|
};
|
|
2454
2796
|
|
|
@@ -2470,7 +2812,7 @@ export const FoxFactoryApiFactory = function (configuration?: Configuration, bas
|
|
|
2470
2812
|
return localVarFp.cancelTaskFactoryTaskIdCancelPost(taskId, options).then((request) => request(axios, basePath));
|
|
2471
2813
|
},
|
|
2472
2814
|
/**
|
|
2473
|
-
* Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised.
|
|
2815
|
+
* 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.
|
|
2474
2816
|
* @summary Delete Task
|
|
2475
2817
|
* @param {string} taskId
|
|
2476
2818
|
* @param {*} [options] Override http request option.
|
|
@@ -2480,7 +2822,17 @@ export const FoxFactoryApiFactory = function (configuration?: Configuration, bas
|
|
|
2480
2822
|
return localVarFp.deleteTaskFactoryTaskIdDelete(taskId, options).then((request) => request(axios, basePath));
|
|
2481
2823
|
},
|
|
2482
2824
|
/**
|
|
2483
|
-
*
|
|
2825
|
+
* 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
|
|
2826
|
+
* @summary Download Artifact
|
|
2827
|
+
* @param {string} taskId
|
|
2828
|
+
* @param {*} [options] Override http request option.
|
|
2829
|
+
* @throws {RequiredError}
|
|
2830
|
+
*/
|
|
2831
|
+
downloadArtifactFactoryTaskIdArtifactGet(taskId: string, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
2832
|
+
return localVarFp.downloadArtifactFactoryTaskIdArtifactGet(taskId, options).then((request) => request(axios, basePath));
|
|
2833
|
+
},
|
|
2834
|
+
/**
|
|
2835
|
+
* 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.
|
|
2484
2836
|
* @summary Factory Status
|
|
2485
2837
|
* @param {*} [options] Override http request option.
|
|
2486
2838
|
* @throws {RequiredError}
|
|
@@ -2529,6 +2881,28 @@ export const FoxFactoryApiFactory = function (configuration?: Configuration, bas
|
|
|
2529
2881
|
updateTaskFactoryTaskIdPatch(taskId: string, taskUpdateBody: TaskUpdateBody, options?: RawAxiosRequestConfig): AxiosPromise<boolean> {
|
|
2530
2882
|
return localVarFp.updateTaskFactoryTaskIdPatch(taskId, taskUpdateBody, options).then((request) => request(axios, basePath));
|
|
2531
2883
|
},
|
|
2884
|
+
/**
|
|
2885
|
+
* Endpoint for FoxFactory worker to update its status.
|
|
2886
|
+
* @summary Update Worker Status
|
|
2887
|
+
* @param {string} body
|
|
2888
|
+
* @param {*} [options] Override http request option.
|
|
2889
|
+
* @throws {RequiredError}
|
|
2890
|
+
*/
|
|
2891
|
+
updateWorkerStatusFactoryUpdateStatusPost(body: string, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
2892
|
+
return localVarFp.updateWorkerStatusFactoryUpdateStatusPost(body, options).then((request) => request(axios, basePath));
|
|
2893
|
+
},
|
|
2894
|
+
/**
|
|
2895
|
+
* 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
|
|
2896
|
+
* @summary Upload Artifact
|
|
2897
|
+
* @param {string} taskId
|
|
2898
|
+
* @param {File} artifact
|
|
2899
|
+
* @param {string} md5Hash
|
|
2900
|
+
* @param {*} [options] Override http request option.
|
|
2901
|
+
* @throws {RequiredError}
|
|
2902
|
+
*/
|
|
2903
|
+
uploadArtifactFactoryTaskIdArtifactPost(taskId: string, artifact: File, md5Hash: string, options?: RawAxiosRequestConfig): AxiosPromise<boolean> {
|
|
2904
|
+
return localVarFp.uploadArtifactFactoryTaskIdArtifactPost(taskId, artifact, md5Hash, options).then((request) => request(axios, basePath));
|
|
2905
|
+
},
|
|
2532
2906
|
};
|
|
2533
2907
|
};
|
|
2534
2908
|
|
|
@@ -2549,7 +2923,7 @@ export interface FoxFactoryApiInterface {
|
|
|
2549
2923
|
cancelTaskFactoryTaskIdCancelPost(taskId: string, options?: RawAxiosRequestConfig): AxiosPromise<BuildTaskResponse>;
|
|
2550
2924
|
|
|
2551
2925
|
/**
|
|
2552
|
-
* Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised.
|
|
2926
|
+
* 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.
|
|
2553
2927
|
* @summary Delete Task
|
|
2554
2928
|
* @param {string} taskId
|
|
2555
2929
|
* @param {*} [options] Override http request option.
|
|
@@ -2559,7 +2933,17 @@ export interface FoxFactoryApiInterface {
|
|
|
2559
2933
|
deleteTaskFactoryTaskIdDelete(taskId: string, options?: RawAxiosRequestConfig): AxiosPromise<boolean>;
|
|
2560
2934
|
|
|
2561
2935
|
/**
|
|
2562
|
-
*
|
|
2936
|
+
* 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
|
|
2937
|
+
* @summary Download Artifact
|
|
2938
|
+
* @param {string} taskId
|
|
2939
|
+
* @param {*} [options] Override http request option.
|
|
2940
|
+
* @throws {RequiredError}
|
|
2941
|
+
* @memberof FoxFactoryApiInterface
|
|
2942
|
+
*/
|
|
2943
|
+
downloadArtifactFactoryTaskIdArtifactGet(taskId: string, options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
2944
|
+
|
|
2945
|
+
/**
|
|
2946
|
+
* 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.
|
|
2563
2947
|
* @summary Factory Status
|
|
2564
2948
|
* @param {*} [options] Override http request option.
|
|
2565
2949
|
* @throws {RequiredError}
|
|
@@ -2608,6 +2992,28 @@ export interface FoxFactoryApiInterface {
|
|
|
2608
2992
|
*/
|
|
2609
2993
|
updateTaskFactoryTaskIdPatch(taskId: string, taskUpdateBody: TaskUpdateBody, options?: RawAxiosRequestConfig): AxiosPromise<boolean>;
|
|
2610
2994
|
|
|
2995
|
+
/**
|
|
2996
|
+
* Endpoint for FoxFactory worker to update its status.
|
|
2997
|
+
* @summary Update Worker Status
|
|
2998
|
+
* @param {string} body
|
|
2999
|
+
* @param {*} [options] Override http request option.
|
|
3000
|
+
* @throws {RequiredError}
|
|
3001
|
+
* @memberof FoxFactoryApiInterface
|
|
3002
|
+
*/
|
|
3003
|
+
updateWorkerStatusFactoryUpdateStatusPost(body: string, options?: RawAxiosRequestConfig): AxiosPromise<any>;
|
|
3004
|
+
|
|
3005
|
+
/**
|
|
3006
|
+
* 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
|
|
3007
|
+
* @summary Upload Artifact
|
|
3008
|
+
* @param {string} taskId
|
|
3009
|
+
* @param {File} artifact
|
|
3010
|
+
* @param {string} md5Hash
|
|
3011
|
+
* @param {*} [options] Override http request option.
|
|
3012
|
+
* @throws {RequiredError}
|
|
3013
|
+
* @memberof FoxFactoryApiInterface
|
|
3014
|
+
*/
|
|
3015
|
+
uploadArtifactFactoryTaskIdArtifactPost(taskId: string, artifact: File, md5Hash: string, options?: RawAxiosRequestConfig): AxiosPromise<boolean>;
|
|
3016
|
+
|
|
2611
3017
|
}
|
|
2612
3018
|
|
|
2613
3019
|
/**
|
|
@@ -2630,7 +3036,7 @@ export class FoxFactoryApi extends BaseAPI implements FoxFactoryApiInterface {
|
|
|
2630
3036
|
}
|
|
2631
3037
|
|
|
2632
3038
|
/**
|
|
2633
|
-
* Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised.
|
|
3039
|
+
* 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.
|
|
2634
3040
|
* @summary Delete Task
|
|
2635
3041
|
* @param {string} taskId
|
|
2636
3042
|
* @param {*} [options] Override http request option.
|
|
@@ -2642,7 +3048,19 @@ export class FoxFactoryApi extends BaseAPI implements FoxFactoryApiInterface {
|
|
|
2642
3048
|
}
|
|
2643
3049
|
|
|
2644
3050
|
/**
|
|
2645
|
-
*
|
|
3051
|
+
* 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
|
|
3052
|
+
* @summary Download Artifact
|
|
3053
|
+
* @param {string} taskId
|
|
3054
|
+
* @param {*} [options] Override http request option.
|
|
3055
|
+
* @throws {RequiredError}
|
|
3056
|
+
* @memberof FoxFactoryApi
|
|
3057
|
+
*/
|
|
3058
|
+
public downloadArtifactFactoryTaskIdArtifactGet(taskId: string, options?: RawAxiosRequestConfig) {
|
|
3059
|
+
return FoxFactoryApiFp(this.configuration).downloadArtifactFactoryTaskIdArtifactGet(taskId, options).then((request) => request(this.axios, this.basePath));
|
|
3060
|
+
}
|
|
3061
|
+
|
|
3062
|
+
/**
|
|
3063
|
+
* 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.
|
|
2646
3064
|
* @summary Factory Status
|
|
2647
3065
|
* @param {*} [options] Override http request option.
|
|
2648
3066
|
* @throws {RequiredError}
|
|
@@ -2700,6 +3118,32 @@ export class FoxFactoryApi extends BaseAPI implements FoxFactoryApiInterface {
|
|
|
2700
3118
|
public updateTaskFactoryTaskIdPatch(taskId: string, taskUpdateBody: TaskUpdateBody, options?: RawAxiosRequestConfig) {
|
|
2701
3119
|
return FoxFactoryApiFp(this.configuration).updateTaskFactoryTaskIdPatch(taskId, taskUpdateBody, options).then((request) => request(this.axios, this.basePath));
|
|
2702
3120
|
}
|
|
3121
|
+
|
|
3122
|
+
/**
|
|
3123
|
+
* Endpoint for FoxFactory worker to update its status.
|
|
3124
|
+
* @summary Update Worker Status
|
|
3125
|
+
* @param {string} body
|
|
3126
|
+
* @param {*} [options] Override http request option.
|
|
3127
|
+
* @throws {RequiredError}
|
|
3128
|
+
* @memberof FoxFactoryApi
|
|
3129
|
+
*/
|
|
3130
|
+
public updateWorkerStatusFactoryUpdateStatusPost(body: string, options?: RawAxiosRequestConfig) {
|
|
3131
|
+
return FoxFactoryApiFp(this.configuration).updateWorkerStatusFactoryUpdateStatusPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
3132
|
+
}
|
|
3133
|
+
|
|
3134
|
+
/**
|
|
3135
|
+
* 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
|
|
3136
|
+
* @summary Upload Artifact
|
|
3137
|
+
* @param {string} taskId
|
|
3138
|
+
* @param {File} artifact
|
|
3139
|
+
* @param {string} md5Hash
|
|
3140
|
+
* @param {*} [options] Override http request option.
|
|
3141
|
+
* @throws {RequiredError}
|
|
3142
|
+
* @memberof FoxFactoryApi
|
|
3143
|
+
*/
|
|
3144
|
+
public uploadArtifactFactoryTaskIdArtifactPost(taskId: string, artifact: File, md5Hash: string, options?: RawAxiosRequestConfig) {
|
|
3145
|
+
return FoxFactoryApiFp(this.configuration).uploadArtifactFactoryTaskIdArtifactPost(taskId, artifact, md5Hash, options).then((request) => request(this.axios, this.basePath));
|
|
3146
|
+
}
|
|
2703
3147
|
}
|
|
2704
3148
|
|
|
2705
3149
|
|
|
@@ -2916,6 +3360,48 @@ export const InternalApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2916
3360
|
|
|
2917
3361
|
|
|
2918
3362
|
|
|
3363
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3364
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3365
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3366
|
+
|
|
3367
|
+
return {
|
|
3368
|
+
url: toPathString(localVarUrlObj),
|
|
3369
|
+
options: localVarRequestOptions,
|
|
3370
|
+
};
|
|
3371
|
+
},
|
|
3372
|
+
/**
|
|
3373
|
+
* Delete a paste by ID. Requires admin permissions.
|
|
3374
|
+
* @summary Delete Paste
|
|
3375
|
+
* @param {string} pasteId
|
|
3376
|
+
* @param {*} [options] Override http request option.
|
|
3377
|
+
* @throws {RequiredError}
|
|
3378
|
+
*/
|
|
3379
|
+
deletePasteInternalPastePasteIdDelete: async (pasteId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3380
|
+
// verify required parameter 'pasteId' is not null or undefined
|
|
3381
|
+
assertParamExists('deletePasteInternalPastePasteIdDelete', 'pasteId', pasteId)
|
|
3382
|
+
const localVarPath = `/internal/paste/{paste_id}`
|
|
3383
|
+
.replace(`{${"paste_id"}}`, encodeURIComponent(String(pasteId)));
|
|
3384
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3385
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3386
|
+
let baseOptions;
|
|
3387
|
+
if (configuration) {
|
|
3388
|
+
baseOptions = configuration.baseOptions;
|
|
3389
|
+
}
|
|
3390
|
+
|
|
3391
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
3392
|
+
const localVarHeaderParameter = {} as any;
|
|
3393
|
+
const localVarQueryParameter = {} as any;
|
|
3394
|
+
|
|
3395
|
+
// authentication oauth2_password required
|
|
3396
|
+
// oauth required
|
|
3397
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
3398
|
+
|
|
3399
|
+
// authentication bearer_auth required
|
|
3400
|
+
// http bearer authentication required
|
|
3401
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3402
|
+
|
|
3403
|
+
|
|
3404
|
+
|
|
2919
3405
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2920
3406
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2921
3407
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -3640,6 +4126,54 @@ export const InternalApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3640
4126
|
options: localVarRequestOptions,
|
|
3641
4127
|
};
|
|
3642
4128
|
},
|
|
4129
|
+
/**
|
|
4130
|
+
* Update a paste by ID. Requires admin permissions.
|
|
4131
|
+
* @summary Update Paste
|
|
4132
|
+
* @param {string} pasteId
|
|
4133
|
+
* @param {PasteInput} pasteInput
|
|
4134
|
+
* @param {*} [options] Override http request option.
|
|
4135
|
+
* @throws {RequiredError}
|
|
4136
|
+
*/
|
|
4137
|
+
updatePasteInternalPastePasteIdPut: async (pasteId: string, pasteInput: PasteInput, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4138
|
+
// verify required parameter 'pasteId' is not null or undefined
|
|
4139
|
+
assertParamExists('updatePasteInternalPastePasteIdPut', 'pasteId', pasteId)
|
|
4140
|
+
// verify required parameter 'pasteInput' is not null or undefined
|
|
4141
|
+
assertParamExists('updatePasteInternalPastePasteIdPut', 'pasteInput', pasteInput)
|
|
4142
|
+
const localVarPath = `/internal/paste/{paste_id}`
|
|
4143
|
+
.replace(`{${"paste_id"}}`, encodeURIComponent(String(pasteId)));
|
|
4144
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4145
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4146
|
+
let baseOptions;
|
|
4147
|
+
if (configuration) {
|
|
4148
|
+
baseOptions = configuration.baseOptions;
|
|
4149
|
+
}
|
|
4150
|
+
|
|
4151
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
4152
|
+
const localVarHeaderParameter = {} as any;
|
|
4153
|
+
const localVarQueryParameter = {} as any;
|
|
4154
|
+
|
|
4155
|
+
// authentication oauth2_password required
|
|
4156
|
+
// oauth required
|
|
4157
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
4158
|
+
|
|
4159
|
+
// authentication bearer_auth required
|
|
4160
|
+
// http bearer authentication required
|
|
4161
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4162
|
+
|
|
4163
|
+
|
|
4164
|
+
|
|
4165
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4166
|
+
|
|
4167
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4168
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4169
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4170
|
+
localVarRequestOptions.data = serializeDataIfNeeded(pasteInput, localVarRequestOptions, configuration)
|
|
4171
|
+
|
|
4172
|
+
return {
|
|
4173
|
+
url: toPathString(localVarUrlObj),
|
|
4174
|
+
options: localVarRequestOptions,
|
|
4175
|
+
};
|
|
4176
|
+
},
|
|
3643
4177
|
/**
|
|
3644
4178
|
*
|
|
3645
4179
|
* @summary Update User
|
|
@@ -3724,6 +4258,19 @@ export const InternalApiFp = function(configuration?: Configuration) {
|
|
|
3724
4258
|
const localVarOperationServerBasePath = operationServerMap['InternalApi.delReleaseInternalReleasesReleaseIdDelete']?.[localVarOperationServerIndex]?.url;
|
|
3725
4259
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3726
4260
|
},
|
|
4261
|
+
/**
|
|
4262
|
+
* Delete a paste by ID. Requires admin permissions.
|
|
4263
|
+
* @summary Delete Paste
|
|
4264
|
+
* @param {string} pasteId
|
|
4265
|
+
* @param {*} [options] Override http request option.
|
|
4266
|
+
* @throws {RequiredError}
|
|
4267
|
+
*/
|
|
4268
|
+
async deletePasteInternalPastePasteIdDelete(pasteId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
4269
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletePasteInternalPastePasteIdDelete(pasteId, options);
|
|
4270
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4271
|
+
const localVarOperationServerBasePath = operationServerMap['InternalApi.deletePasteInternalPastePasteIdDelete']?.[localVarOperationServerIndex]?.url;
|
|
4272
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4273
|
+
},
|
|
3727
4274
|
/**
|
|
3728
4275
|
*
|
|
3729
4276
|
* @summary Delete User
|
|
@@ -3925,6 +4472,20 @@ export const InternalApiFp = function(configuration?: Configuration) {
|
|
|
3925
4472
|
const localVarOperationServerBasePath = operationServerMap['InternalApi.updateDeviceInternalDevicesDeviceIdPut']?.[localVarOperationServerIndex]?.url;
|
|
3926
4473
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3927
4474
|
},
|
|
4475
|
+
/**
|
|
4476
|
+
* Update a paste by ID. Requires admin permissions.
|
|
4477
|
+
* @summary Update Paste
|
|
4478
|
+
* @param {string} pasteId
|
|
4479
|
+
* @param {PasteInput} pasteInput
|
|
4480
|
+
* @param {*} [options] Override http request option.
|
|
4481
|
+
* @throws {RequiredError}
|
|
4482
|
+
*/
|
|
4483
|
+
async updatePasteInternalPastePasteIdPut(pasteId: string, pasteInput: PasteInput, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PasteOutput>> {
|
|
4484
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePasteInternalPastePasteIdPut(pasteId, pasteInput, options);
|
|
4485
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4486
|
+
const localVarOperationServerBasePath = operationServerMap['InternalApi.updatePasteInternalPastePasteIdPut']?.[localVarOperationServerIndex]?.url;
|
|
4487
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4488
|
+
},
|
|
3928
4489
|
/**
|
|
3929
4490
|
*
|
|
3930
4491
|
* @summary Update User
|
|
@@ -3969,6 +4530,16 @@ export const InternalApiFactory = function (configuration?: Configuration, baseP
|
|
|
3969
4530
|
delReleaseInternalReleasesReleaseIdDelete(releaseId: string, options?: RawAxiosRequestConfig): AxiosPromise<boolean> {
|
|
3970
4531
|
return localVarFp.delReleaseInternalReleasesReleaseIdDelete(releaseId, options).then((request) => request(axios, basePath));
|
|
3971
4532
|
},
|
|
4533
|
+
/**
|
|
4534
|
+
* Delete a paste by ID. Requires admin permissions.
|
|
4535
|
+
* @summary Delete Paste
|
|
4536
|
+
* @param {string} pasteId
|
|
4537
|
+
* @param {*} [options] Override http request option.
|
|
4538
|
+
* @throws {RequiredError}
|
|
4539
|
+
*/
|
|
4540
|
+
deletePasteInternalPastePasteIdDelete(pasteId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
4541
|
+
return localVarFp.deletePasteInternalPastePasteIdDelete(pasteId, options).then((request) => request(axios, basePath));
|
|
4542
|
+
},
|
|
3972
4543
|
/**
|
|
3973
4544
|
*
|
|
3974
4545
|
* @summary Delete User
|
|
@@ -4128,6 +4699,17 @@ export const InternalApiFactory = function (configuration?: Configuration, baseP
|
|
|
4128
4699
|
updateDeviceInternalDevicesDeviceIdPut(deviceId: string, deviceUpdateBody: DeviceUpdateBody, options?: RawAxiosRequestConfig): AxiosPromise<boolean> {
|
|
4129
4700
|
return localVarFp.updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options).then((request) => request(axios, basePath));
|
|
4130
4701
|
},
|
|
4702
|
+
/**
|
|
4703
|
+
* Update a paste by ID. Requires admin permissions.
|
|
4704
|
+
* @summary Update Paste
|
|
4705
|
+
* @param {string} pasteId
|
|
4706
|
+
* @param {PasteInput} pasteInput
|
|
4707
|
+
* @param {*} [options] Override http request option.
|
|
4708
|
+
* @throws {RequiredError}
|
|
4709
|
+
*/
|
|
4710
|
+
updatePasteInternalPastePasteIdPut(pasteId: string, pasteInput: PasteInput, options?: RawAxiosRequestConfig): AxiosPromise<PasteOutput> {
|
|
4711
|
+
return localVarFp.updatePasteInternalPastePasteIdPut(pasteId, pasteInput, options).then((request) => request(axios, basePath));
|
|
4712
|
+
},
|
|
4131
4713
|
/**
|
|
4132
4714
|
*
|
|
4133
4715
|
* @summary Update User
|
|
@@ -4168,6 +4750,16 @@ export interface InternalApiInterface {
|
|
|
4168
4750
|
*/
|
|
4169
4751
|
delReleaseInternalReleasesReleaseIdDelete(releaseId: string, options?: RawAxiosRequestConfig): AxiosPromise<boolean>;
|
|
4170
4752
|
|
|
4753
|
+
/**
|
|
4754
|
+
* Delete a paste by ID. Requires admin permissions.
|
|
4755
|
+
* @summary Delete Paste
|
|
4756
|
+
* @param {string} pasteId
|
|
4757
|
+
* @param {*} [options] Override http request option.
|
|
4758
|
+
* @throws {RequiredError}
|
|
4759
|
+
* @memberof InternalApiInterface
|
|
4760
|
+
*/
|
|
4761
|
+
deletePasteInternalPastePasteIdDelete(pasteId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
4762
|
+
|
|
4171
4763
|
/**
|
|
4172
4764
|
*
|
|
4173
4765
|
* @summary Delete User
|
|
@@ -4327,6 +4919,17 @@ export interface InternalApiInterface {
|
|
|
4327
4919
|
*/
|
|
4328
4920
|
updateDeviceInternalDevicesDeviceIdPut(deviceId: string, deviceUpdateBody: DeviceUpdateBody, options?: RawAxiosRequestConfig): AxiosPromise<boolean>;
|
|
4329
4921
|
|
|
4922
|
+
/**
|
|
4923
|
+
* Update a paste by ID. Requires admin permissions.
|
|
4924
|
+
* @summary Update Paste
|
|
4925
|
+
* @param {string} pasteId
|
|
4926
|
+
* @param {PasteInput} pasteInput
|
|
4927
|
+
* @param {*} [options] Override http request option.
|
|
4928
|
+
* @throws {RequiredError}
|
|
4929
|
+
* @memberof InternalApiInterface
|
|
4930
|
+
*/
|
|
4931
|
+
updatePasteInternalPastePasteIdPut(pasteId: string, pasteInput: PasteInput, options?: RawAxiosRequestConfig): AxiosPromise<PasteOutput>;
|
|
4932
|
+
|
|
4330
4933
|
/**
|
|
4331
4934
|
*
|
|
4332
4935
|
* @summary Update User
|
|
@@ -4371,6 +4974,18 @@ export class InternalApi extends BaseAPI implements InternalApiInterface {
|
|
|
4371
4974
|
return InternalApiFp(this.configuration).delReleaseInternalReleasesReleaseIdDelete(releaseId, options).then((request) => request(this.axios, this.basePath));
|
|
4372
4975
|
}
|
|
4373
4976
|
|
|
4977
|
+
/**
|
|
4978
|
+
* Delete a paste by ID. Requires admin permissions.
|
|
4979
|
+
* @summary Delete Paste
|
|
4980
|
+
* @param {string} pasteId
|
|
4981
|
+
* @param {*} [options] Override http request option.
|
|
4982
|
+
* @throws {RequiredError}
|
|
4983
|
+
* @memberof InternalApi
|
|
4984
|
+
*/
|
|
4985
|
+
public deletePasteInternalPastePasteIdDelete(pasteId: string, options?: RawAxiosRequestConfig) {
|
|
4986
|
+
return InternalApiFp(this.configuration).deletePasteInternalPastePasteIdDelete(pasteId, options).then((request) => request(this.axios, this.basePath));
|
|
4987
|
+
}
|
|
4988
|
+
|
|
4374
4989
|
/**
|
|
4375
4990
|
*
|
|
4376
4991
|
* @summary Delete User
|
|
@@ -4558,6 +5173,19 @@ export class InternalApi extends BaseAPI implements InternalApiInterface {
|
|
|
4558
5173
|
return InternalApiFp(this.configuration).updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options).then((request) => request(this.axios, this.basePath));
|
|
4559
5174
|
}
|
|
4560
5175
|
|
|
5176
|
+
/**
|
|
5177
|
+
* Update a paste by ID. Requires admin permissions.
|
|
5178
|
+
* @summary Update Paste
|
|
5179
|
+
* @param {string} pasteId
|
|
5180
|
+
* @param {PasteInput} pasteInput
|
|
5181
|
+
* @param {*} [options] Override http request option.
|
|
5182
|
+
* @throws {RequiredError}
|
|
5183
|
+
* @memberof InternalApi
|
|
5184
|
+
*/
|
|
5185
|
+
public updatePasteInternalPastePasteIdPut(pasteId: string, pasteInput: PasteInput, options?: RawAxiosRequestConfig) {
|
|
5186
|
+
return InternalApiFp(this.configuration).updatePasteInternalPastePasteIdPut(pasteId, pasteInput, options).then((request) => request(this.axios, this.basePath));
|
|
5187
|
+
}
|
|
5188
|
+
|
|
4561
5189
|
/**
|
|
4562
5190
|
*
|
|
4563
5191
|
* @summary Update User
|
|
@@ -4574,6 +5202,213 @@ export class InternalApi extends BaseAPI implements InternalApiInterface {
|
|
|
4574
5202
|
|
|
4575
5203
|
|
|
4576
5204
|
|
|
5205
|
+
/**
|
|
5206
|
+
* PasteApi - axios parameter creator
|
|
5207
|
+
* @export
|
|
5208
|
+
*/
|
|
5209
|
+
export const PasteApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
5210
|
+
return {
|
|
5211
|
+
/**
|
|
5212
|
+
* Create a new paste.
|
|
5213
|
+
* @summary Create Paste
|
|
5214
|
+
* @param {PasteInput} pasteInput
|
|
5215
|
+
* @param {*} [options] Override http request option.
|
|
5216
|
+
* @throws {RequiredError}
|
|
5217
|
+
*/
|
|
5218
|
+
createPastePastePost: async (pasteInput: PasteInput, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5219
|
+
// verify required parameter 'pasteInput' is not null or undefined
|
|
5220
|
+
assertParamExists('createPastePastePost', 'pasteInput', pasteInput)
|
|
5221
|
+
const localVarPath = `/paste/`;
|
|
5222
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5223
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5224
|
+
let baseOptions;
|
|
5225
|
+
if (configuration) {
|
|
5226
|
+
baseOptions = configuration.baseOptions;
|
|
5227
|
+
}
|
|
5228
|
+
|
|
5229
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
5230
|
+
const localVarHeaderParameter = {} as any;
|
|
5231
|
+
const localVarQueryParameter = {} as any;
|
|
5232
|
+
|
|
5233
|
+
|
|
5234
|
+
|
|
5235
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5236
|
+
|
|
5237
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5238
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5239
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5240
|
+
localVarRequestOptions.data = serializeDataIfNeeded(pasteInput, localVarRequestOptions, configuration)
|
|
5241
|
+
|
|
5242
|
+
return {
|
|
5243
|
+
url: toPathString(localVarUrlObj),
|
|
5244
|
+
options: localVarRequestOptions,
|
|
5245
|
+
};
|
|
5246
|
+
},
|
|
5247
|
+
/**
|
|
5248
|
+
* Get a paste by ID.
|
|
5249
|
+
* @summary Get Paste
|
|
5250
|
+
* @param {string} pasteId
|
|
5251
|
+
* @param {*} [options] Override http request option.
|
|
5252
|
+
* @throws {RequiredError}
|
|
5253
|
+
*/
|
|
5254
|
+
getPastePastePasteIdGet: async (pasteId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5255
|
+
// verify required parameter 'pasteId' is not null or undefined
|
|
5256
|
+
assertParamExists('getPastePastePasteIdGet', 'pasteId', pasteId)
|
|
5257
|
+
const localVarPath = `/paste/{paste_id}`
|
|
5258
|
+
.replace(`{${"paste_id"}}`, encodeURIComponent(String(pasteId)));
|
|
5259
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5260
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5261
|
+
let baseOptions;
|
|
5262
|
+
if (configuration) {
|
|
5263
|
+
baseOptions = configuration.baseOptions;
|
|
5264
|
+
}
|
|
5265
|
+
|
|
5266
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5267
|
+
const localVarHeaderParameter = {} as any;
|
|
5268
|
+
const localVarQueryParameter = {} as any;
|
|
5269
|
+
|
|
5270
|
+
|
|
5271
|
+
|
|
5272
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5273
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5274
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5275
|
+
|
|
5276
|
+
return {
|
|
5277
|
+
url: toPathString(localVarUrlObj),
|
|
5278
|
+
options: localVarRequestOptions,
|
|
5279
|
+
};
|
|
5280
|
+
},
|
|
5281
|
+
}
|
|
5282
|
+
};
|
|
5283
|
+
|
|
5284
|
+
/**
|
|
5285
|
+
* PasteApi - functional programming interface
|
|
5286
|
+
* @export
|
|
5287
|
+
*/
|
|
5288
|
+
export const PasteApiFp = function(configuration?: Configuration) {
|
|
5289
|
+
const localVarAxiosParamCreator = PasteApiAxiosParamCreator(configuration)
|
|
5290
|
+
return {
|
|
5291
|
+
/**
|
|
5292
|
+
* Create a new paste.
|
|
5293
|
+
* @summary Create Paste
|
|
5294
|
+
* @param {PasteInput} pasteInput
|
|
5295
|
+
* @param {*} [options] Override http request option.
|
|
5296
|
+
* @throws {RequiredError}
|
|
5297
|
+
*/
|
|
5298
|
+
async createPastePastePost(pasteInput: PasteInput, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PasteOutput>> {
|
|
5299
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPastePastePost(pasteInput, options);
|
|
5300
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5301
|
+
const localVarOperationServerBasePath = operationServerMap['PasteApi.createPastePastePost']?.[localVarOperationServerIndex]?.url;
|
|
5302
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5303
|
+
},
|
|
5304
|
+
/**
|
|
5305
|
+
* Get a paste by ID.
|
|
5306
|
+
* @summary Get Paste
|
|
5307
|
+
* @param {string} pasteId
|
|
5308
|
+
* @param {*} [options] Override http request option.
|
|
5309
|
+
* @throws {RequiredError}
|
|
5310
|
+
*/
|
|
5311
|
+
async getPastePastePasteIdGet(pasteId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PasteOutput>> {
|
|
5312
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPastePastePasteIdGet(pasteId, options);
|
|
5313
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5314
|
+
const localVarOperationServerBasePath = operationServerMap['PasteApi.getPastePastePasteIdGet']?.[localVarOperationServerIndex]?.url;
|
|
5315
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5316
|
+
},
|
|
5317
|
+
}
|
|
5318
|
+
};
|
|
5319
|
+
|
|
5320
|
+
/**
|
|
5321
|
+
* PasteApi - factory interface
|
|
5322
|
+
* @export
|
|
5323
|
+
*/
|
|
5324
|
+
export const PasteApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
5325
|
+
const localVarFp = PasteApiFp(configuration)
|
|
5326
|
+
return {
|
|
5327
|
+
/**
|
|
5328
|
+
* Create a new paste.
|
|
5329
|
+
* @summary Create Paste
|
|
5330
|
+
* @param {PasteInput} pasteInput
|
|
5331
|
+
* @param {*} [options] Override http request option.
|
|
5332
|
+
* @throws {RequiredError}
|
|
5333
|
+
*/
|
|
5334
|
+
createPastePastePost(pasteInput: PasteInput, options?: RawAxiosRequestConfig): AxiosPromise<PasteOutput> {
|
|
5335
|
+
return localVarFp.createPastePastePost(pasteInput, options).then((request) => request(axios, basePath));
|
|
5336
|
+
},
|
|
5337
|
+
/**
|
|
5338
|
+
* Get a paste by ID.
|
|
5339
|
+
* @summary Get Paste
|
|
5340
|
+
* @param {string} pasteId
|
|
5341
|
+
* @param {*} [options] Override http request option.
|
|
5342
|
+
* @throws {RequiredError}
|
|
5343
|
+
*/
|
|
5344
|
+
getPastePastePasteIdGet(pasteId: string, options?: RawAxiosRequestConfig): AxiosPromise<PasteOutput> {
|
|
5345
|
+
return localVarFp.getPastePastePasteIdGet(pasteId, options).then((request) => request(axios, basePath));
|
|
5346
|
+
},
|
|
5347
|
+
};
|
|
5348
|
+
};
|
|
5349
|
+
|
|
5350
|
+
/**
|
|
5351
|
+
* PasteApi - interface
|
|
5352
|
+
* @export
|
|
5353
|
+
* @interface PasteApi
|
|
5354
|
+
*/
|
|
5355
|
+
export interface PasteApiInterface {
|
|
5356
|
+
/**
|
|
5357
|
+
* Create a new paste.
|
|
5358
|
+
* @summary Create Paste
|
|
5359
|
+
* @param {PasteInput} pasteInput
|
|
5360
|
+
* @param {*} [options] Override http request option.
|
|
5361
|
+
* @throws {RequiredError}
|
|
5362
|
+
* @memberof PasteApiInterface
|
|
5363
|
+
*/
|
|
5364
|
+
createPastePastePost(pasteInput: PasteInput, options?: RawAxiosRequestConfig): AxiosPromise<PasteOutput>;
|
|
5365
|
+
|
|
5366
|
+
/**
|
|
5367
|
+
* Get a paste by ID.
|
|
5368
|
+
* @summary Get Paste
|
|
5369
|
+
* @param {string} pasteId
|
|
5370
|
+
* @param {*} [options] Override http request option.
|
|
5371
|
+
* @throws {RequiredError}
|
|
5372
|
+
* @memberof PasteApiInterface
|
|
5373
|
+
*/
|
|
5374
|
+
getPastePastePasteIdGet(pasteId: string, options?: RawAxiosRequestConfig): AxiosPromise<PasteOutput>;
|
|
5375
|
+
|
|
5376
|
+
}
|
|
5377
|
+
|
|
5378
|
+
/**
|
|
5379
|
+
* PasteApi - object-oriented interface
|
|
5380
|
+
* @export
|
|
5381
|
+
* @class PasteApi
|
|
5382
|
+
* @extends {BaseAPI}
|
|
5383
|
+
*/
|
|
5384
|
+
export class PasteApi extends BaseAPI implements PasteApiInterface {
|
|
5385
|
+
/**
|
|
5386
|
+
* Create a new paste.
|
|
5387
|
+
* @summary Create Paste
|
|
5388
|
+
* @param {PasteInput} pasteInput
|
|
5389
|
+
* @param {*} [options] Override http request option.
|
|
5390
|
+
* @throws {RequiredError}
|
|
5391
|
+
* @memberof PasteApi
|
|
5392
|
+
*/
|
|
5393
|
+
public createPastePastePost(pasteInput: PasteInput, options?: RawAxiosRequestConfig) {
|
|
5394
|
+
return PasteApiFp(this.configuration).createPastePastePost(pasteInput, options).then((request) => request(this.axios, this.basePath));
|
|
5395
|
+
}
|
|
5396
|
+
|
|
5397
|
+
/**
|
|
5398
|
+
* Get a paste by ID.
|
|
5399
|
+
* @summary Get Paste
|
|
5400
|
+
* @param {string} pasteId
|
|
5401
|
+
* @param {*} [options] Override http request option.
|
|
5402
|
+
* @throws {RequiredError}
|
|
5403
|
+
* @memberof PasteApi
|
|
5404
|
+
*/
|
|
5405
|
+
public getPastePastePasteIdGet(pasteId: string, options?: RawAxiosRequestConfig) {
|
|
5406
|
+
return PasteApiFp(this.configuration).getPastePastePasteIdGet(pasteId, options).then((request) => request(this.axios, this.basePath));
|
|
5407
|
+
}
|
|
5408
|
+
}
|
|
5409
|
+
|
|
5410
|
+
|
|
5411
|
+
|
|
4577
5412
|
/**
|
|
4578
5413
|
* ReleaseApi - axios parameter creator
|
|
4579
5414
|
* @export
|