@daytonaio/api-client 0.5.0 → 0.5.1
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 +9 -0
- package/README.md +2 -2
- package/api/toolbox-api.ts +1964 -0
- package/api.ts +1 -0
- package/dist/api/toolbox-api.d.ts +890 -0
- package/dist/api/toolbox-api.js +1839 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/esm/api/toolbox-api.d.ts +890 -0
- package/dist/esm/api/toolbox-api.js +1832 -0
- package/dist/esm/api.d.ts +1 -0
- package/dist/esm/api.js +1 -0
- package/dist/esm/models/execute-request-dto.d.ts +30 -0
- package/dist/esm/models/execute-request-dto.js +14 -0
- package/dist/esm/models/execute-response-dto.d.ts +30 -0
- package/dist/esm/models/execute-response-dto.js +14 -0
- package/dist/esm/models/git-add-request-dto.d.ts +30 -0
- package/dist/esm/models/git-add-request-dto.js +14 -0
- package/dist/esm/models/git-branch-request-dto.d.ts +30 -0
- package/dist/esm/models/git-branch-request-dto.js +14 -0
- package/dist/esm/models/git-clone-request-dto.d.ts +54 -0
- package/dist/esm/models/git-clone-request-dto.js +14 -0
- package/dist/esm/models/git-commit-request-dto.d.ts +42 -0
- package/dist/esm/models/git-commit-request-dto.js +14 -0
- package/dist/esm/models/git-repo-request-dto.d.ts +36 -0
- package/dist/esm/models/git-repo-request-dto.js +14 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/esm/models/replace-request-dto.d.ts +36 -0
- package/dist/esm/models/replace-request-dto.js +14 -0
- package/dist/models/execute-request-dto.d.ts +30 -0
- package/dist/models/execute-request-dto.js +15 -0
- package/dist/models/execute-response-dto.d.ts +30 -0
- package/dist/models/execute-response-dto.js +15 -0
- package/dist/models/git-add-request-dto.d.ts +30 -0
- package/dist/models/git-add-request-dto.js +15 -0
- package/dist/models/git-branch-request-dto.d.ts +30 -0
- package/dist/models/git-branch-request-dto.js +15 -0
- package/dist/models/git-clone-request-dto.d.ts +54 -0
- package/dist/models/git-clone-request-dto.js +15 -0
- package/dist/models/git-commit-request-dto.d.ts +42 -0
- package/dist/models/git-commit-request-dto.js +15 -0
- package/dist/models/git-repo-request-dto.d.ts +36 -0
- package/dist/models/git-repo-request-dto.js +15 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/dist/models/replace-request-dto.d.ts +36 -0
- package/dist/models/replace-request-dto.js +15 -0
- package/models/execute-request-dto.ts +36 -0
- package/models/execute-response-dto.ts +36 -0
- package/models/git-add-request-dto.ts +36 -0
- package/models/git-branch-request-dto.ts +36 -0
- package/models/git-clone-request-dto.ts +60 -0
- package/models/git-commit-request-dto.ts +48 -0
- package/models/git-repo-request-dto.ts +42 -0
- package/models/index.ts +8 -0
- package/models/replace-request-dto.ts +42 -0
- package/package.json +1 -1
|
@@ -0,0 +1,1964 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Daytona Workspaces
|
|
5
|
+
* Daytona Workspaces API Docs
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import type { ExecuteRequestDto } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { ExecuteResponseDto } from '../models';
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import type { GitAddRequestDto } from '../models';
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
import type { GitBranchRequestDto } from '../models';
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
import type { GitCloneRequestDto } from '../models';
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
import type { GitCommitRequestDto } from '../models';
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
import type { GitRepoRequestDto } from '../models';
|
|
38
|
+
// @ts-ignore
|
|
39
|
+
import type { ReplaceRequestDto } from '../models';
|
|
40
|
+
/**
|
|
41
|
+
* ToolboxApi - axios parameter creator
|
|
42
|
+
* @export
|
|
43
|
+
*/
|
|
44
|
+
export const ToolboxApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
45
|
+
return {
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @summary Get workspace project dir
|
|
49
|
+
* @param {string} workspaceId
|
|
50
|
+
* @param {*} [options] Override http request option.
|
|
51
|
+
* @throws {RequiredError}
|
|
52
|
+
*/
|
|
53
|
+
getProjectDir: async (workspaceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
54
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
55
|
+
assertParamExists('getProjectDir', 'workspaceId', workspaceId)
|
|
56
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/project-dir`
|
|
57
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
58
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
59
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
60
|
+
let baseOptions;
|
|
61
|
+
if (configuration) {
|
|
62
|
+
baseOptions = configuration.baseOptions;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
66
|
+
const localVarHeaderParameter = {} as any;
|
|
67
|
+
const localVarQueryParameter = {} as any;
|
|
68
|
+
|
|
69
|
+
// authentication oauth2 required
|
|
70
|
+
// oauth required
|
|
71
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
76
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
77
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
url: toPathString(localVarUrlObj),
|
|
81
|
+
options: localVarRequestOptions,
|
|
82
|
+
};
|
|
83
|
+
},
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @summary List files
|
|
87
|
+
* @param {string} workspaceId
|
|
88
|
+
* @param {string} [path]
|
|
89
|
+
* @param {*} [options] Override http request option.
|
|
90
|
+
* @throws {RequiredError}
|
|
91
|
+
*/
|
|
92
|
+
listFiles: async (workspaceId: string, path?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
93
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
94
|
+
assertParamExists('listFiles', 'workspaceId', workspaceId)
|
|
95
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/files`
|
|
96
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
97
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
98
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
99
|
+
let baseOptions;
|
|
100
|
+
if (configuration) {
|
|
101
|
+
baseOptions = configuration.baseOptions;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
105
|
+
const localVarHeaderParameter = {} as any;
|
|
106
|
+
const localVarQueryParameter = {} as any;
|
|
107
|
+
|
|
108
|
+
// authentication oauth2 required
|
|
109
|
+
// oauth required
|
|
110
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
111
|
+
|
|
112
|
+
if (path !== undefined) {
|
|
113
|
+
localVarQueryParameter['path'] = path;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
119
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
120
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
121
|
+
|
|
122
|
+
return {
|
|
123
|
+
url: toPathString(localVarUrlObj),
|
|
124
|
+
options: localVarRequestOptions,
|
|
125
|
+
};
|
|
126
|
+
},
|
|
127
|
+
/**
|
|
128
|
+
* Create folder inside workspace
|
|
129
|
+
* @summary Create folder
|
|
130
|
+
* @param {string} workspaceId
|
|
131
|
+
* @param {string} path
|
|
132
|
+
* @param {string} mode
|
|
133
|
+
* @param {*} [options] Override http request option.
|
|
134
|
+
* @throws {RequiredError}
|
|
135
|
+
*/
|
|
136
|
+
toolboxControllerCreateFolder: async (workspaceId: string, path: string, mode: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
137
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
138
|
+
assertParamExists('toolboxControllerCreateFolder', 'workspaceId', workspaceId)
|
|
139
|
+
// verify required parameter 'path' is not null or undefined
|
|
140
|
+
assertParamExists('toolboxControllerCreateFolder', 'path', path)
|
|
141
|
+
// verify required parameter 'mode' is not null or undefined
|
|
142
|
+
assertParamExists('toolboxControllerCreateFolder', 'mode', mode)
|
|
143
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/files/folder`
|
|
144
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
145
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
146
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
147
|
+
let baseOptions;
|
|
148
|
+
if (configuration) {
|
|
149
|
+
baseOptions = configuration.baseOptions;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
153
|
+
const localVarHeaderParameter = {} as any;
|
|
154
|
+
const localVarQueryParameter = {} as any;
|
|
155
|
+
|
|
156
|
+
// authentication oauth2 required
|
|
157
|
+
// oauth required
|
|
158
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
159
|
+
|
|
160
|
+
if (path !== undefined) {
|
|
161
|
+
localVarQueryParameter['path'] = path;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
if (mode !== undefined) {
|
|
165
|
+
localVarQueryParameter['mode'] = mode;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
171
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
172
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
173
|
+
|
|
174
|
+
return {
|
|
175
|
+
url: toPathString(localVarUrlObj),
|
|
176
|
+
options: localVarRequestOptions,
|
|
177
|
+
};
|
|
178
|
+
},
|
|
179
|
+
/**
|
|
180
|
+
* Delete file inside workspace
|
|
181
|
+
* @summary Delete file
|
|
182
|
+
* @param {string} workspaceId
|
|
183
|
+
* @param {string} path
|
|
184
|
+
* @param {*} [options] Override http request option.
|
|
185
|
+
* @throws {RequiredError}
|
|
186
|
+
*/
|
|
187
|
+
toolboxControllerDeleteFile: async (workspaceId: string, path: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
188
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
189
|
+
assertParamExists('toolboxControllerDeleteFile', 'workspaceId', workspaceId)
|
|
190
|
+
// verify required parameter 'path' is not null or undefined
|
|
191
|
+
assertParamExists('toolboxControllerDeleteFile', 'path', path)
|
|
192
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/files`
|
|
193
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
194
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
195
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
196
|
+
let baseOptions;
|
|
197
|
+
if (configuration) {
|
|
198
|
+
baseOptions = configuration.baseOptions;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
202
|
+
const localVarHeaderParameter = {} as any;
|
|
203
|
+
const localVarQueryParameter = {} as any;
|
|
204
|
+
|
|
205
|
+
// authentication oauth2 required
|
|
206
|
+
// oauth required
|
|
207
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
208
|
+
|
|
209
|
+
if (path !== undefined) {
|
|
210
|
+
localVarQueryParameter['path'] = path;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
216
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
217
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
218
|
+
|
|
219
|
+
return {
|
|
220
|
+
url: toPathString(localVarUrlObj),
|
|
221
|
+
options: localVarRequestOptions,
|
|
222
|
+
};
|
|
223
|
+
},
|
|
224
|
+
/**
|
|
225
|
+
* Download file from workspace
|
|
226
|
+
* @summary Download file
|
|
227
|
+
* @param {string} workspaceId
|
|
228
|
+
* @param {string} path
|
|
229
|
+
* @param {*} [options] Override http request option.
|
|
230
|
+
* @throws {RequiredError}
|
|
231
|
+
*/
|
|
232
|
+
toolboxControllerDownloadFile: async (workspaceId: string, path: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
233
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
234
|
+
assertParamExists('toolboxControllerDownloadFile', 'workspaceId', workspaceId)
|
|
235
|
+
// verify required parameter 'path' is not null or undefined
|
|
236
|
+
assertParamExists('toolboxControllerDownloadFile', 'path', path)
|
|
237
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/files/download`
|
|
238
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
239
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
240
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
241
|
+
let baseOptions;
|
|
242
|
+
if (configuration) {
|
|
243
|
+
baseOptions = configuration.baseOptions;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
247
|
+
const localVarHeaderParameter = {} as any;
|
|
248
|
+
const localVarQueryParameter = {} as any;
|
|
249
|
+
|
|
250
|
+
// authentication oauth2 required
|
|
251
|
+
// oauth required
|
|
252
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
253
|
+
|
|
254
|
+
if (path !== undefined) {
|
|
255
|
+
localVarQueryParameter['path'] = path;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
261
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
262
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
263
|
+
|
|
264
|
+
return {
|
|
265
|
+
url: toPathString(localVarUrlObj),
|
|
266
|
+
options: localVarRequestOptions,
|
|
267
|
+
};
|
|
268
|
+
},
|
|
269
|
+
/**
|
|
270
|
+
* Execute command synchronously inside workspace
|
|
271
|
+
* @summary Execute command
|
|
272
|
+
* @param {string} workspaceId
|
|
273
|
+
* @param {ExecuteRequestDto} executeRequestDto
|
|
274
|
+
* @param {*} [options] Override http request option.
|
|
275
|
+
* @throws {RequiredError}
|
|
276
|
+
*/
|
|
277
|
+
toolboxControllerExecuteCommand: async (workspaceId: string, executeRequestDto: ExecuteRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
278
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
279
|
+
assertParamExists('toolboxControllerExecuteCommand', 'workspaceId', workspaceId)
|
|
280
|
+
// verify required parameter 'executeRequestDto' is not null or undefined
|
|
281
|
+
assertParamExists('toolboxControllerExecuteCommand', 'executeRequestDto', executeRequestDto)
|
|
282
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/process/execute`
|
|
283
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
284
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
285
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
286
|
+
let baseOptions;
|
|
287
|
+
if (configuration) {
|
|
288
|
+
baseOptions = configuration.baseOptions;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
292
|
+
const localVarHeaderParameter = {} as any;
|
|
293
|
+
const localVarQueryParameter = {} as any;
|
|
294
|
+
|
|
295
|
+
// authentication oauth2 required
|
|
296
|
+
// oauth required
|
|
297
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
302
|
+
|
|
303
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
304
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
305
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
306
|
+
localVarRequestOptions.data = serializeDataIfNeeded(executeRequestDto, localVarRequestOptions, configuration)
|
|
307
|
+
|
|
308
|
+
return {
|
|
309
|
+
url: toPathString(localVarUrlObj),
|
|
310
|
+
options: localVarRequestOptions,
|
|
311
|
+
};
|
|
312
|
+
},
|
|
313
|
+
/**
|
|
314
|
+
* Search for text/pattern inside workspace files
|
|
315
|
+
* @summary Search for text/pattern in files
|
|
316
|
+
* @param {string} workspaceId
|
|
317
|
+
* @param {string} path
|
|
318
|
+
* @param {string} pattern
|
|
319
|
+
* @param {*} [options] Override http request option.
|
|
320
|
+
* @throws {RequiredError}
|
|
321
|
+
*/
|
|
322
|
+
toolboxControllerFindInFiles: async (workspaceId: string, path: string, pattern: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
323
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
324
|
+
assertParamExists('toolboxControllerFindInFiles', 'workspaceId', workspaceId)
|
|
325
|
+
// verify required parameter 'path' is not null or undefined
|
|
326
|
+
assertParamExists('toolboxControllerFindInFiles', 'path', path)
|
|
327
|
+
// verify required parameter 'pattern' is not null or undefined
|
|
328
|
+
assertParamExists('toolboxControllerFindInFiles', 'pattern', pattern)
|
|
329
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/files/find`
|
|
330
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
331
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
332
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
333
|
+
let baseOptions;
|
|
334
|
+
if (configuration) {
|
|
335
|
+
baseOptions = configuration.baseOptions;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
339
|
+
const localVarHeaderParameter = {} as any;
|
|
340
|
+
const localVarQueryParameter = {} as any;
|
|
341
|
+
|
|
342
|
+
// authentication oauth2 required
|
|
343
|
+
// oauth required
|
|
344
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
345
|
+
|
|
346
|
+
if (path !== undefined) {
|
|
347
|
+
localVarQueryParameter['path'] = path;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
if (pattern !== undefined) {
|
|
351
|
+
localVarQueryParameter['pattern'] = pattern;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
357
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
358
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
359
|
+
|
|
360
|
+
return {
|
|
361
|
+
url: toPathString(localVarUrlObj),
|
|
362
|
+
options: localVarRequestOptions,
|
|
363
|
+
};
|
|
364
|
+
},
|
|
365
|
+
/**
|
|
366
|
+
* Get file info inside workspace
|
|
367
|
+
* @summary Get file info
|
|
368
|
+
* @param {string} workspaceId
|
|
369
|
+
* @param {string} path
|
|
370
|
+
* @param {*} [options] Override http request option.
|
|
371
|
+
* @throws {RequiredError}
|
|
372
|
+
*/
|
|
373
|
+
toolboxControllerGetFileInfo: async (workspaceId: string, path: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
374
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
375
|
+
assertParamExists('toolboxControllerGetFileInfo', 'workspaceId', workspaceId)
|
|
376
|
+
// verify required parameter 'path' is not null or undefined
|
|
377
|
+
assertParamExists('toolboxControllerGetFileInfo', 'path', path)
|
|
378
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/files/info`
|
|
379
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
380
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
381
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
382
|
+
let baseOptions;
|
|
383
|
+
if (configuration) {
|
|
384
|
+
baseOptions = configuration.baseOptions;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
388
|
+
const localVarHeaderParameter = {} as any;
|
|
389
|
+
const localVarQueryParameter = {} as any;
|
|
390
|
+
|
|
391
|
+
// authentication oauth2 required
|
|
392
|
+
// oauth required
|
|
393
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
394
|
+
|
|
395
|
+
if (path !== undefined) {
|
|
396
|
+
localVarQueryParameter['path'] = path;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
402
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
403
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
404
|
+
|
|
405
|
+
return {
|
|
406
|
+
url: toPathString(localVarUrlObj),
|
|
407
|
+
options: localVarRequestOptions,
|
|
408
|
+
};
|
|
409
|
+
},
|
|
410
|
+
/**
|
|
411
|
+
* Add files to git commit
|
|
412
|
+
* @summary Add files
|
|
413
|
+
* @param {string} workspaceId
|
|
414
|
+
* @param {GitAddRequestDto} gitAddRequestDto
|
|
415
|
+
* @param {*} [options] Override http request option.
|
|
416
|
+
* @throws {RequiredError}
|
|
417
|
+
*/
|
|
418
|
+
toolboxControllerGitAddFiles: async (workspaceId: string, gitAddRequestDto: GitAddRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
419
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
420
|
+
assertParamExists('toolboxControllerGitAddFiles', 'workspaceId', workspaceId)
|
|
421
|
+
// verify required parameter 'gitAddRequestDto' is not null or undefined
|
|
422
|
+
assertParamExists('toolboxControllerGitAddFiles', 'gitAddRequestDto', gitAddRequestDto)
|
|
423
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/add`
|
|
424
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
425
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
426
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
427
|
+
let baseOptions;
|
|
428
|
+
if (configuration) {
|
|
429
|
+
baseOptions = configuration.baseOptions;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
433
|
+
const localVarHeaderParameter = {} as any;
|
|
434
|
+
const localVarQueryParameter = {} as any;
|
|
435
|
+
|
|
436
|
+
// authentication oauth2 required
|
|
437
|
+
// oauth required
|
|
438
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
443
|
+
|
|
444
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
445
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
446
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
447
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitAddRequestDto, localVarRequestOptions, configuration)
|
|
448
|
+
|
|
449
|
+
return {
|
|
450
|
+
url: toPathString(localVarUrlObj),
|
|
451
|
+
options: localVarRequestOptions,
|
|
452
|
+
};
|
|
453
|
+
},
|
|
454
|
+
/**
|
|
455
|
+
* Get branch list from git repository
|
|
456
|
+
* @summary Get branch list
|
|
457
|
+
* @param {string} workspaceId
|
|
458
|
+
* @param {string} path
|
|
459
|
+
* @param {*} [options] Override http request option.
|
|
460
|
+
* @throws {RequiredError}
|
|
461
|
+
*/
|
|
462
|
+
toolboxControllerGitBranchList: async (workspaceId: string, path: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
463
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
464
|
+
assertParamExists('toolboxControllerGitBranchList', 'workspaceId', workspaceId)
|
|
465
|
+
// verify required parameter 'path' is not null or undefined
|
|
466
|
+
assertParamExists('toolboxControllerGitBranchList', 'path', path)
|
|
467
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/branches`
|
|
468
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
469
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
470
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
471
|
+
let baseOptions;
|
|
472
|
+
if (configuration) {
|
|
473
|
+
baseOptions = configuration.baseOptions;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
477
|
+
const localVarHeaderParameter = {} as any;
|
|
478
|
+
const localVarQueryParameter = {} as any;
|
|
479
|
+
|
|
480
|
+
// authentication oauth2 required
|
|
481
|
+
// oauth required
|
|
482
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
483
|
+
|
|
484
|
+
if (path !== undefined) {
|
|
485
|
+
localVarQueryParameter['path'] = path;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
491
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
492
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
493
|
+
|
|
494
|
+
return {
|
|
495
|
+
url: toPathString(localVarUrlObj),
|
|
496
|
+
options: localVarRequestOptions,
|
|
497
|
+
};
|
|
498
|
+
},
|
|
499
|
+
/**
|
|
500
|
+
* Clone git repository
|
|
501
|
+
* @summary Clone repository
|
|
502
|
+
* @param {string} workspaceId
|
|
503
|
+
* @param {GitCloneRequestDto} gitCloneRequestDto
|
|
504
|
+
* @param {*} [options] Override http request option.
|
|
505
|
+
* @throws {RequiredError}
|
|
506
|
+
*/
|
|
507
|
+
toolboxControllerGitCloneRepository: async (workspaceId: string, gitCloneRequestDto: GitCloneRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
508
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
509
|
+
assertParamExists('toolboxControllerGitCloneRepository', 'workspaceId', workspaceId)
|
|
510
|
+
// verify required parameter 'gitCloneRequestDto' is not null or undefined
|
|
511
|
+
assertParamExists('toolboxControllerGitCloneRepository', 'gitCloneRequestDto', gitCloneRequestDto)
|
|
512
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/clone`
|
|
513
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
514
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
515
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
516
|
+
let baseOptions;
|
|
517
|
+
if (configuration) {
|
|
518
|
+
baseOptions = configuration.baseOptions;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
522
|
+
const localVarHeaderParameter = {} as any;
|
|
523
|
+
const localVarQueryParameter = {} as any;
|
|
524
|
+
|
|
525
|
+
// authentication oauth2 required
|
|
526
|
+
// oauth required
|
|
527
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
532
|
+
|
|
533
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
534
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
535
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
536
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitCloneRequestDto, localVarRequestOptions, configuration)
|
|
537
|
+
|
|
538
|
+
return {
|
|
539
|
+
url: toPathString(localVarUrlObj),
|
|
540
|
+
options: localVarRequestOptions,
|
|
541
|
+
};
|
|
542
|
+
},
|
|
543
|
+
/**
|
|
544
|
+
* Commit changes to git repository
|
|
545
|
+
* @summary Commit changes
|
|
546
|
+
* @param {string} workspaceId
|
|
547
|
+
* @param {GitCommitRequestDto} gitCommitRequestDto
|
|
548
|
+
* @param {*} [options] Override http request option.
|
|
549
|
+
* @throws {RequiredError}
|
|
550
|
+
*/
|
|
551
|
+
toolboxControllerGitCommitChanges: async (workspaceId: string, gitCommitRequestDto: GitCommitRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
552
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
553
|
+
assertParamExists('toolboxControllerGitCommitChanges', 'workspaceId', workspaceId)
|
|
554
|
+
// verify required parameter 'gitCommitRequestDto' is not null or undefined
|
|
555
|
+
assertParamExists('toolboxControllerGitCommitChanges', 'gitCommitRequestDto', gitCommitRequestDto)
|
|
556
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/commit`
|
|
557
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
558
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
559
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
560
|
+
let baseOptions;
|
|
561
|
+
if (configuration) {
|
|
562
|
+
baseOptions = configuration.baseOptions;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
566
|
+
const localVarHeaderParameter = {} as any;
|
|
567
|
+
const localVarQueryParameter = {} as any;
|
|
568
|
+
|
|
569
|
+
// authentication oauth2 required
|
|
570
|
+
// oauth required
|
|
571
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
576
|
+
|
|
577
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
578
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
579
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
580
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitCommitRequestDto, localVarRequestOptions, configuration)
|
|
581
|
+
|
|
582
|
+
return {
|
|
583
|
+
url: toPathString(localVarUrlObj),
|
|
584
|
+
options: localVarRequestOptions,
|
|
585
|
+
};
|
|
586
|
+
},
|
|
587
|
+
/**
|
|
588
|
+
* Get commit history from git repository
|
|
589
|
+
* @summary Get commit history
|
|
590
|
+
* @param {string} workspaceId
|
|
591
|
+
* @param {string} path
|
|
592
|
+
* @param {*} [options] Override http request option.
|
|
593
|
+
* @throws {RequiredError}
|
|
594
|
+
*/
|
|
595
|
+
toolboxControllerGitCommitHistory: async (workspaceId: string, path: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
596
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
597
|
+
assertParamExists('toolboxControllerGitCommitHistory', 'workspaceId', workspaceId)
|
|
598
|
+
// verify required parameter 'path' is not null or undefined
|
|
599
|
+
assertParamExists('toolboxControllerGitCommitHistory', 'path', path)
|
|
600
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/history`
|
|
601
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
602
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
603
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
604
|
+
let baseOptions;
|
|
605
|
+
if (configuration) {
|
|
606
|
+
baseOptions = configuration.baseOptions;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
610
|
+
const localVarHeaderParameter = {} as any;
|
|
611
|
+
const localVarQueryParameter = {} as any;
|
|
612
|
+
|
|
613
|
+
// authentication oauth2 required
|
|
614
|
+
// oauth required
|
|
615
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
616
|
+
|
|
617
|
+
if (path !== undefined) {
|
|
618
|
+
localVarQueryParameter['path'] = path;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
624
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
625
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
626
|
+
|
|
627
|
+
return {
|
|
628
|
+
url: toPathString(localVarUrlObj),
|
|
629
|
+
options: localVarRequestOptions,
|
|
630
|
+
};
|
|
631
|
+
},
|
|
632
|
+
/**
|
|
633
|
+
* Create branch on git repository
|
|
634
|
+
* @summary Create branch
|
|
635
|
+
* @param {string} workspaceId
|
|
636
|
+
* @param {GitBranchRequestDto} gitBranchRequestDto
|
|
637
|
+
* @param {*} [options] Override http request option.
|
|
638
|
+
* @throws {RequiredError}
|
|
639
|
+
*/
|
|
640
|
+
toolboxControllerGitCreateBranch: async (workspaceId: string, gitBranchRequestDto: GitBranchRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
641
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
642
|
+
assertParamExists('toolboxControllerGitCreateBranch', 'workspaceId', workspaceId)
|
|
643
|
+
// verify required parameter 'gitBranchRequestDto' is not null or undefined
|
|
644
|
+
assertParamExists('toolboxControllerGitCreateBranch', 'gitBranchRequestDto', gitBranchRequestDto)
|
|
645
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/branches`
|
|
646
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
647
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
648
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
649
|
+
let baseOptions;
|
|
650
|
+
if (configuration) {
|
|
651
|
+
baseOptions = configuration.baseOptions;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
655
|
+
const localVarHeaderParameter = {} as any;
|
|
656
|
+
const localVarQueryParameter = {} as any;
|
|
657
|
+
|
|
658
|
+
// authentication oauth2 required
|
|
659
|
+
// oauth required
|
|
660
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
665
|
+
|
|
666
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
667
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
668
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
669
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitBranchRequestDto, localVarRequestOptions, configuration)
|
|
670
|
+
|
|
671
|
+
return {
|
|
672
|
+
url: toPathString(localVarUrlObj),
|
|
673
|
+
options: localVarRequestOptions,
|
|
674
|
+
};
|
|
675
|
+
},
|
|
676
|
+
/**
|
|
677
|
+
* Pull changes from remote
|
|
678
|
+
* @summary Pull changes
|
|
679
|
+
* @param {string} workspaceId
|
|
680
|
+
* @param {GitRepoRequestDto} gitRepoRequestDto
|
|
681
|
+
* @param {*} [options] Override http request option.
|
|
682
|
+
* @throws {RequiredError}
|
|
683
|
+
*/
|
|
684
|
+
toolboxControllerGitPullChanges: async (workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
685
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
686
|
+
assertParamExists('toolboxControllerGitPullChanges', 'workspaceId', workspaceId)
|
|
687
|
+
// verify required parameter 'gitRepoRequestDto' is not null or undefined
|
|
688
|
+
assertParamExists('toolboxControllerGitPullChanges', 'gitRepoRequestDto', gitRepoRequestDto)
|
|
689
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/pull`
|
|
690
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
691
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
692
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
693
|
+
let baseOptions;
|
|
694
|
+
if (configuration) {
|
|
695
|
+
baseOptions = configuration.baseOptions;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
699
|
+
const localVarHeaderParameter = {} as any;
|
|
700
|
+
const localVarQueryParameter = {} as any;
|
|
701
|
+
|
|
702
|
+
// authentication oauth2 required
|
|
703
|
+
// oauth required
|
|
704
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
709
|
+
|
|
710
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
711
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
712
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
713
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitRepoRequestDto, localVarRequestOptions, configuration)
|
|
714
|
+
|
|
715
|
+
return {
|
|
716
|
+
url: toPathString(localVarUrlObj),
|
|
717
|
+
options: localVarRequestOptions,
|
|
718
|
+
};
|
|
719
|
+
},
|
|
720
|
+
/**
|
|
721
|
+
* Push changes to remote
|
|
722
|
+
* @summary Push changes
|
|
723
|
+
* @param {string} workspaceId
|
|
724
|
+
* @param {GitRepoRequestDto} gitRepoRequestDto
|
|
725
|
+
* @param {*} [options] Override http request option.
|
|
726
|
+
* @throws {RequiredError}
|
|
727
|
+
*/
|
|
728
|
+
toolboxControllerGitPushChanges: async (workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
729
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
730
|
+
assertParamExists('toolboxControllerGitPushChanges', 'workspaceId', workspaceId)
|
|
731
|
+
// verify required parameter 'gitRepoRequestDto' is not null or undefined
|
|
732
|
+
assertParamExists('toolboxControllerGitPushChanges', 'gitRepoRequestDto', gitRepoRequestDto)
|
|
733
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/push`
|
|
734
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
735
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
736
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
737
|
+
let baseOptions;
|
|
738
|
+
if (configuration) {
|
|
739
|
+
baseOptions = configuration.baseOptions;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
743
|
+
const localVarHeaderParameter = {} as any;
|
|
744
|
+
const localVarQueryParameter = {} as any;
|
|
745
|
+
|
|
746
|
+
// authentication oauth2 required
|
|
747
|
+
// oauth required
|
|
748
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+
|
|
752
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
753
|
+
|
|
754
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
755
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
756
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
757
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitRepoRequestDto, localVarRequestOptions, configuration)
|
|
758
|
+
|
|
759
|
+
return {
|
|
760
|
+
url: toPathString(localVarUrlObj),
|
|
761
|
+
options: localVarRequestOptions,
|
|
762
|
+
};
|
|
763
|
+
},
|
|
764
|
+
/**
|
|
765
|
+
* Get status from git repository
|
|
766
|
+
* @summary Get git status
|
|
767
|
+
* @param {string} workspaceId
|
|
768
|
+
* @param {string} path
|
|
769
|
+
* @param {*} [options] Override http request option.
|
|
770
|
+
* @throws {RequiredError}
|
|
771
|
+
*/
|
|
772
|
+
toolboxControllerGitStatus: async (workspaceId: string, path: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
773
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
774
|
+
assertParamExists('toolboxControllerGitStatus', 'workspaceId', workspaceId)
|
|
775
|
+
// verify required parameter 'path' is not null or undefined
|
|
776
|
+
assertParamExists('toolboxControllerGitStatus', 'path', path)
|
|
777
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/status`
|
|
778
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
779
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
780
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
781
|
+
let baseOptions;
|
|
782
|
+
if (configuration) {
|
|
783
|
+
baseOptions = configuration.baseOptions;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
787
|
+
const localVarHeaderParameter = {} as any;
|
|
788
|
+
const localVarQueryParameter = {} as any;
|
|
789
|
+
|
|
790
|
+
// authentication oauth2 required
|
|
791
|
+
// oauth required
|
|
792
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
793
|
+
|
|
794
|
+
if (path !== undefined) {
|
|
795
|
+
localVarQueryParameter['path'] = path;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
801
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
802
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
803
|
+
|
|
804
|
+
return {
|
|
805
|
+
url: toPathString(localVarUrlObj),
|
|
806
|
+
options: localVarRequestOptions,
|
|
807
|
+
};
|
|
808
|
+
},
|
|
809
|
+
/**
|
|
810
|
+
* Move file inside workspace
|
|
811
|
+
* @summary Move file
|
|
812
|
+
* @param {string} workspaceId
|
|
813
|
+
* @param {string} source
|
|
814
|
+
* @param {string} destination
|
|
815
|
+
* @param {*} [options] Override http request option.
|
|
816
|
+
* @throws {RequiredError}
|
|
817
|
+
*/
|
|
818
|
+
toolboxControllerMoveFile: async (workspaceId: string, source: string, destination: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
819
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
820
|
+
assertParamExists('toolboxControllerMoveFile', 'workspaceId', workspaceId)
|
|
821
|
+
// verify required parameter 'source' is not null or undefined
|
|
822
|
+
assertParamExists('toolboxControllerMoveFile', 'source', source)
|
|
823
|
+
// verify required parameter 'destination' is not null or undefined
|
|
824
|
+
assertParamExists('toolboxControllerMoveFile', 'destination', destination)
|
|
825
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/files/move`
|
|
826
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
827
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
828
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
829
|
+
let baseOptions;
|
|
830
|
+
if (configuration) {
|
|
831
|
+
baseOptions = configuration.baseOptions;
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
835
|
+
const localVarHeaderParameter = {} as any;
|
|
836
|
+
const localVarQueryParameter = {} as any;
|
|
837
|
+
|
|
838
|
+
// authentication oauth2 required
|
|
839
|
+
// oauth required
|
|
840
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
841
|
+
|
|
842
|
+
if (source !== undefined) {
|
|
843
|
+
localVarQueryParameter['source'] = source;
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
if (destination !== undefined) {
|
|
847
|
+
localVarQueryParameter['destination'] = destination;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
|
|
851
|
+
|
|
852
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
853
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
854
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
855
|
+
|
|
856
|
+
return {
|
|
857
|
+
url: toPathString(localVarUrlObj),
|
|
858
|
+
options: localVarRequestOptions,
|
|
859
|
+
};
|
|
860
|
+
},
|
|
861
|
+
/**
|
|
862
|
+
* Replace text/pattern in multiple files inside workspace
|
|
863
|
+
* @summary Replace in files
|
|
864
|
+
* @param {string} workspaceId
|
|
865
|
+
* @param {ReplaceRequestDto} replaceRequestDto
|
|
866
|
+
* @param {*} [options] Override http request option.
|
|
867
|
+
* @throws {RequiredError}
|
|
868
|
+
*/
|
|
869
|
+
toolboxControllerReplaceInFiles: async (workspaceId: string, replaceRequestDto: ReplaceRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
870
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
871
|
+
assertParamExists('toolboxControllerReplaceInFiles', 'workspaceId', workspaceId)
|
|
872
|
+
// verify required parameter 'replaceRequestDto' is not null or undefined
|
|
873
|
+
assertParamExists('toolboxControllerReplaceInFiles', 'replaceRequestDto', replaceRequestDto)
|
|
874
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/files/replace`
|
|
875
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
876
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
877
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
878
|
+
let baseOptions;
|
|
879
|
+
if (configuration) {
|
|
880
|
+
baseOptions = configuration.baseOptions;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
884
|
+
const localVarHeaderParameter = {} as any;
|
|
885
|
+
const localVarQueryParameter = {} as any;
|
|
886
|
+
|
|
887
|
+
// authentication oauth2 required
|
|
888
|
+
// oauth required
|
|
889
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
890
|
+
|
|
891
|
+
|
|
892
|
+
|
|
893
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
894
|
+
|
|
895
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
896
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
897
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
898
|
+
localVarRequestOptions.data = serializeDataIfNeeded(replaceRequestDto, localVarRequestOptions, configuration)
|
|
899
|
+
|
|
900
|
+
return {
|
|
901
|
+
url: toPathString(localVarUrlObj),
|
|
902
|
+
options: localVarRequestOptions,
|
|
903
|
+
};
|
|
904
|
+
},
|
|
905
|
+
/**
|
|
906
|
+
* Search for files inside workspace
|
|
907
|
+
* @summary Search files
|
|
908
|
+
* @param {string} workspaceId
|
|
909
|
+
* @param {string} path
|
|
910
|
+
* @param {string} pattern
|
|
911
|
+
* @param {*} [options] Override http request option.
|
|
912
|
+
* @throws {RequiredError}
|
|
913
|
+
*/
|
|
914
|
+
toolboxControllerSearchFiles: async (workspaceId: string, path: string, pattern: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
915
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
916
|
+
assertParamExists('toolboxControllerSearchFiles', 'workspaceId', workspaceId)
|
|
917
|
+
// verify required parameter 'path' is not null or undefined
|
|
918
|
+
assertParamExists('toolboxControllerSearchFiles', 'path', path)
|
|
919
|
+
// verify required parameter 'pattern' is not null or undefined
|
|
920
|
+
assertParamExists('toolboxControllerSearchFiles', 'pattern', pattern)
|
|
921
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/files/search`
|
|
922
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
923
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
924
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
925
|
+
let baseOptions;
|
|
926
|
+
if (configuration) {
|
|
927
|
+
baseOptions = configuration.baseOptions;
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
931
|
+
const localVarHeaderParameter = {} as any;
|
|
932
|
+
const localVarQueryParameter = {} as any;
|
|
933
|
+
|
|
934
|
+
// authentication oauth2 required
|
|
935
|
+
// oauth required
|
|
936
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
937
|
+
|
|
938
|
+
if (path !== undefined) {
|
|
939
|
+
localVarQueryParameter['path'] = path;
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
if (pattern !== undefined) {
|
|
943
|
+
localVarQueryParameter['pattern'] = pattern;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
|
|
947
|
+
|
|
948
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
949
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
950
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
951
|
+
|
|
952
|
+
return {
|
|
953
|
+
url: toPathString(localVarUrlObj),
|
|
954
|
+
options: localVarRequestOptions,
|
|
955
|
+
};
|
|
956
|
+
},
|
|
957
|
+
/**
|
|
958
|
+
* Set file owner/group/permissions inside workspace
|
|
959
|
+
* @summary Set file permissions
|
|
960
|
+
* @param {string} workspaceId
|
|
961
|
+
* @param {string} path
|
|
962
|
+
* @param {string} owner
|
|
963
|
+
* @param {string} group
|
|
964
|
+
* @param {string} mode
|
|
965
|
+
* @param {*} [options] Override http request option.
|
|
966
|
+
* @throws {RequiredError}
|
|
967
|
+
*/
|
|
968
|
+
toolboxControllerSetFilePermissions: async (workspaceId: string, path: string, owner: string, group: string, mode: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
969
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
970
|
+
assertParamExists('toolboxControllerSetFilePermissions', 'workspaceId', workspaceId)
|
|
971
|
+
// verify required parameter 'path' is not null or undefined
|
|
972
|
+
assertParamExists('toolboxControllerSetFilePermissions', 'path', path)
|
|
973
|
+
// verify required parameter 'owner' is not null or undefined
|
|
974
|
+
assertParamExists('toolboxControllerSetFilePermissions', 'owner', owner)
|
|
975
|
+
// verify required parameter 'group' is not null or undefined
|
|
976
|
+
assertParamExists('toolboxControllerSetFilePermissions', 'group', group)
|
|
977
|
+
// verify required parameter 'mode' is not null or undefined
|
|
978
|
+
assertParamExists('toolboxControllerSetFilePermissions', 'mode', mode)
|
|
979
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/files/permissions`
|
|
980
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
981
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
982
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
983
|
+
let baseOptions;
|
|
984
|
+
if (configuration) {
|
|
985
|
+
baseOptions = configuration.baseOptions;
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
989
|
+
const localVarHeaderParameter = {} as any;
|
|
990
|
+
const localVarQueryParameter = {} as any;
|
|
991
|
+
|
|
992
|
+
// authentication oauth2 required
|
|
993
|
+
// oauth required
|
|
994
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
995
|
+
|
|
996
|
+
if (path !== undefined) {
|
|
997
|
+
localVarQueryParameter['path'] = path;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
if (owner !== undefined) {
|
|
1001
|
+
localVarQueryParameter['owner'] = owner;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
if (group !== undefined) {
|
|
1005
|
+
localVarQueryParameter['group'] = group;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
if (mode !== undefined) {
|
|
1009
|
+
localVarQueryParameter['mode'] = mode;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
|
|
1013
|
+
|
|
1014
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1015
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1016
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1017
|
+
|
|
1018
|
+
return {
|
|
1019
|
+
url: toPathString(localVarUrlObj),
|
|
1020
|
+
options: localVarRequestOptions,
|
|
1021
|
+
};
|
|
1022
|
+
},
|
|
1023
|
+
/**
|
|
1024
|
+
* Upload file inside workspace
|
|
1025
|
+
* @summary Upload file
|
|
1026
|
+
* @param {string} workspaceId
|
|
1027
|
+
* @param {string} path
|
|
1028
|
+
* @param {File} [file]
|
|
1029
|
+
* @param {*} [options] Override http request option.
|
|
1030
|
+
* @throws {RequiredError}
|
|
1031
|
+
*/
|
|
1032
|
+
toolboxControllerUploadFile: async (workspaceId: string, path: string, file?: File, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1033
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
1034
|
+
assertParamExists('toolboxControllerUploadFile', 'workspaceId', workspaceId)
|
|
1035
|
+
// verify required parameter 'path' is not null or undefined
|
|
1036
|
+
assertParamExists('toolboxControllerUploadFile', 'path', path)
|
|
1037
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/files/upload`
|
|
1038
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
1039
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1040
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1041
|
+
let baseOptions;
|
|
1042
|
+
if (configuration) {
|
|
1043
|
+
baseOptions = configuration.baseOptions;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1047
|
+
const localVarHeaderParameter = {} as any;
|
|
1048
|
+
const localVarQueryParameter = {} as any;
|
|
1049
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
1050
|
+
|
|
1051
|
+
// authentication oauth2 required
|
|
1052
|
+
// oauth required
|
|
1053
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
1054
|
+
|
|
1055
|
+
if (path !== undefined) {
|
|
1056
|
+
localVarQueryParameter['path'] = path;
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
|
|
1060
|
+
if (file !== undefined) {
|
|
1061
|
+
localVarFormParams.append('file', file as any);
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
|
|
1065
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
1066
|
+
|
|
1067
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1068
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1069
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1070
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
1071
|
+
|
|
1072
|
+
return {
|
|
1073
|
+
url: toPathString(localVarUrlObj),
|
|
1074
|
+
options: localVarRequestOptions,
|
|
1075
|
+
};
|
|
1076
|
+
},
|
|
1077
|
+
}
|
|
1078
|
+
};
|
|
1079
|
+
|
|
1080
|
+
/**
|
|
1081
|
+
* ToolboxApi - functional programming interface
|
|
1082
|
+
* @export
|
|
1083
|
+
*/
|
|
1084
|
+
export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
1085
|
+
const localVarAxiosParamCreator = ToolboxApiAxiosParamCreator(configuration)
|
|
1086
|
+
return {
|
|
1087
|
+
/**
|
|
1088
|
+
*
|
|
1089
|
+
* @summary Get workspace project dir
|
|
1090
|
+
* @param {string} workspaceId
|
|
1091
|
+
* @param {*} [options] Override http request option.
|
|
1092
|
+
* @throws {RequiredError}
|
|
1093
|
+
*/
|
|
1094
|
+
async getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1095
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectDir(workspaceId, options);
|
|
1096
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1097
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.getProjectDir']?.[localVarOperationServerIndex]?.url;
|
|
1098
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1099
|
+
},
|
|
1100
|
+
/**
|
|
1101
|
+
*
|
|
1102
|
+
* @summary List files
|
|
1103
|
+
* @param {string} workspaceId
|
|
1104
|
+
* @param {string} [path]
|
|
1105
|
+
* @param {*} [options] Override http request option.
|
|
1106
|
+
* @throws {RequiredError}
|
|
1107
|
+
*/
|
|
1108
|
+
async listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1109
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listFiles(workspaceId, path, options);
|
|
1110
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1111
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.listFiles']?.[localVarOperationServerIndex]?.url;
|
|
1112
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1113
|
+
},
|
|
1114
|
+
/**
|
|
1115
|
+
* Create folder inside workspace
|
|
1116
|
+
* @summary Create folder
|
|
1117
|
+
* @param {string} workspaceId
|
|
1118
|
+
* @param {string} path
|
|
1119
|
+
* @param {string} mode
|
|
1120
|
+
* @param {*} [options] Override http request option.
|
|
1121
|
+
* @throws {RequiredError}
|
|
1122
|
+
*/
|
|
1123
|
+
async toolboxControllerCreateFolder(workspaceId: string, path: string, mode: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1124
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.toolboxControllerCreateFolder(workspaceId, path, mode, options);
|
|
1125
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1126
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.toolboxControllerCreateFolder']?.[localVarOperationServerIndex]?.url;
|
|
1127
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1128
|
+
},
|
|
1129
|
+
/**
|
|
1130
|
+
* Delete file inside workspace
|
|
1131
|
+
* @summary Delete file
|
|
1132
|
+
* @param {string} workspaceId
|
|
1133
|
+
* @param {string} path
|
|
1134
|
+
* @param {*} [options] Override http request option.
|
|
1135
|
+
* @throws {RequiredError}
|
|
1136
|
+
*/
|
|
1137
|
+
async toolboxControllerDeleteFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1138
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.toolboxControllerDeleteFile(workspaceId, path, options);
|
|
1139
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1140
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.toolboxControllerDeleteFile']?.[localVarOperationServerIndex]?.url;
|
|
1141
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1142
|
+
},
|
|
1143
|
+
/**
|
|
1144
|
+
* Download file from workspace
|
|
1145
|
+
* @summary Download file
|
|
1146
|
+
* @param {string} workspaceId
|
|
1147
|
+
* @param {string} path
|
|
1148
|
+
* @param {*} [options] Override http request option.
|
|
1149
|
+
* @throws {RequiredError}
|
|
1150
|
+
*/
|
|
1151
|
+
async toolboxControllerDownloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1152
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.toolboxControllerDownloadFile(workspaceId, path, options);
|
|
1153
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1154
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.toolboxControllerDownloadFile']?.[localVarOperationServerIndex]?.url;
|
|
1155
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1156
|
+
},
|
|
1157
|
+
/**
|
|
1158
|
+
* Execute command synchronously inside workspace
|
|
1159
|
+
* @summary Execute command
|
|
1160
|
+
* @param {string} workspaceId
|
|
1161
|
+
* @param {ExecuteRequestDto} executeRequestDto
|
|
1162
|
+
* @param {*} [options] Override http request option.
|
|
1163
|
+
* @throws {RequiredError}
|
|
1164
|
+
*/
|
|
1165
|
+
async toolboxControllerExecuteCommand(workspaceId: string, executeRequestDto: ExecuteRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExecuteResponseDto>> {
|
|
1166
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.toolboxControllerExecuteCommand(workspaceId, executeRequestDto, options);
|
|
1167
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1168
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.toolboxControllerExecuteCommand']?.[localVarOperationServerIndex]?.url;
|
|
1169
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1170
|
+
},
|
|
1171
|
+
/**
|
|
1172
|
+
* Search for text/pattern inside workspace files
|
|
1173
|
+
* @summary Search for text/pattern in files
|
|
1174
|
+
* @param {string} workspaceId
|
|
1175
|
+
* @param {string} path
|
|
1176
|
+
* @param {string} pattern
|
|
1177
|
+
* @param {*} [options] Override http request option.
|
|
1178
|
+
* @throws {RequiredError}
|
|
1179
|
+
*/
|
|
1180
|
+
async toolboxControllerFindInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1181
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.toolboxControllerFindInFiles(workspaceId, path, pattern, options);
|
|
1182
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1183
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.toolboxControllerFindInFiles']?.[localVarOperationServerIndex]?.url;
|
|
1184
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1185
|
+
},
|
|
1186
|
+
/**
|
|
1187
|
+
* Get file info inside workspace
|
|
1188
|
+
* @summary Get file info
|
|
1189
|
+
* @param {string} workspaceId
|
|
1190
|
+
* @param {string} path
|
|
1191
|
+
* @param {*} [options] Override http request option.
|
|
1192
|
+
* @throws {RequiredError}
|
|
1193
|
+
*/
|
|
1194
|
+
async toolboxControllerGetFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1195
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.toolboxControllerGetFileInfo(workspaceId, path, options);
|
|
1196
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1197
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.toolboxControllerGetFileInfo']?.[localVarOperationServerIndex]?.url;
|
|
1198
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1199
|
+
},
|
|
1200
|
+
/**
|
|
1201
|
+
* Add files to git commit
|
|
1202
|
+
* @summary Add files
|
|
1203
|
+
* @param {string} workspaceId
|
|
1204
|
+
* @param {GitAddRequestDto} gitAddRequestDto
|
|
1205
|
+
* @param {*} [options] Override http request option.
|
|
1206
|
+
* @throws {RequiredError}
|
|
1207
|
+
*/
|
|
1208
|
+
async toolboxControllerGitAddFiles(workspaceId: string, gitAddRequestDto: GitAddRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1209
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.toolboxControllerGitAddFiles(workspaceId, gitAddRequestDto, options);
|
|
1210
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1211
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.toolboxControllerGitAddFiles']?.[localVarOperationServerIndex]?.url;
|
|
1212
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1213
|
+
},
|
|
1214
|
+
/**
|
|
1215
|
+
* Get branch list from git repository
|
|
1216
|
+
* @summary Get branch list
|
|
1217
|
+
* @param {string} workspaceId
|
|
1218
|
+
* @param {string} path
|
|
1219
|
+
* @param {*} [options] Override http request option.
|
|
1220
|
+
* @throws {RequiredError}
|
|
1221
|
+
*/
|
|
1222
|
+
async toolboxControllerGitBranchList(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1223
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.toolboxControllerGitBranchList(workspaceId, path, options);
|
|
1224
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1225
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.toolboxControllerGitBranchList']?.[localVarOperationServerIndex]?.url;
|
|
1226
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1227
|
+
},
|
|
1228
|
+
/**
|
|
1229
|
+
* Clone git repository
|
|
1230
|
+
* @summary Clone repository
|
|
1231
|
+
* @param {string} workspaceId
|
|
1232
|
+
* @param {GitCloneRequestDto} gitCloneRequestDto
|
|
1233
|
+
* @param {*} [options] Override http request option.
|
|
1234
|
+
* @throws {RequiredError}
|
|
1235
|
+
*/
|
|
1236
|
+
async toolboxControllerGitCloneRepository(workspaceId: string, gitCloneRequestDto: GitCloneRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1237
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.toolboxControllerGitCloneRepository(workspaceId, gitCloneRequestDto, options);
|
|
1238
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1239
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.toolboxControllerGitCloneRepository']?.[localVarOperationServerIndex]?.url;
|
|
1240
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1241
|
+
},
|
|
1242
|
+
/**
|
|
1243
|
+
* Commit changes to git repository
|
|
1244
|
+
* @summary Commit changes
|
|
1245
|
+
* @param {string} workspaceId
|
|
1246
|
+
* @param {GitCommitRequestDto} gitCommitRequestDto
|
|
1247
|
+
* @param {*} [options] Override http request option.
|
|
1248
|
+
* @throws {RequiredError}
|
|
1249
|
+
*/
|
|
1250
|
+
async toolboxControllerGitCommitChanges(workspaceId: string, gitCommitRequestDto: GitCommitRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1251
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.toolboxControllerGitCommitChanges(workspaceId, gitCommitRequestDto, options);
|
|
1252
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1253
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.toolboxControllerGitCommitChanges']?.[localVarOperationServerIndex]?.url;
|
|
1254
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1255
|
+
},
|
|
1256
|
+
/**
|
|
1257
|
+
* Get commit history from git repository
|
|
1258
|
+
* @summary Get commit history
|
|
1259
|
+
* @param {string} workspaceId
|
|
1260
|
+
* @param {string} path
|
|
1261
|
+
* @param {*} [options] Override http request option.
|
|
1262
|
+
* @throws {RequiredError}
|
|
1263
|
+
*/
|
|
1264
|
+
async toolboxControllerGitCommitHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1265
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.toolboxControllerGitCommitHistory(workspaceId, path, options);
|
|
1266
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1267
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.toolboxControllerGitCommitHistory']?.[localVarOperationServerIndex]?.url;
|
|
1268
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1269
|
+
},
|
|
1270
|
+
/**
|
|
1271
|
+
* Create branch on git repository
|
|
1272
|
+
* @summary Create branch
|
|
1273
|
+
* @param {string} workspaceId
|
|
1274
|
+
* @param {GitBranchRequestDto} gitBranchRequestDto
|
|
1275
|
+
* @param {*} [options] Override http request option.
|
|
1276
|
+
* @throws {RequiredError}
|
|
1277
|
+
*/
|
|
1278
|
+
async toolboxControllerGitCreateBranch(workspaceId: string, gitBranchRequestDto: GitBranchRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1279
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.toolboxControllerGitCreateBranch(workspaceId, gitBranchRequestDto, options);
|
|
1280
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1281
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.toolboxControllerGitCreateBranch']?.[localVarOperationServerIndex]?.url;
|
|
1282
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1283
|
+
},
|
|
1284
|
+
/**
|
|
1285
|
+
* Pull changes from remote
|
|
1286
|
+
* @summary Pull changes
|
|
1287
|
+
* @param {string} workspaceId
|
|
1288
|
+
* @param {GitRepoRequestDto} gitRepoRequestDto
|
|
1289
|
+
* @param {*} [options] Override http request option.
|
|
1290
|
+
* @throws {RequiredError}
|
|
1291
|
+
*/
|
|
1292
|
+
async toolboxControllerGitPullChanges(workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1293
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.toolboxControllerGitPullChanges(workspaceId, gitRepoRequestDto, options);
|
|
1294
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1295
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.toolboxControllerGitPullChanges']?.[localVarOperationServerIndex]?.url;
|
|
1296
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1297
|
+
},
|
|
1298
|
+
/**
|
|
1299
|
+
* Push changes to remote
|
|
1300
|
+
* @summary Push changes
|
|
1301
|
+
* @param {string} workspaceId
|
|
1302
|
+
* @param {GitRepoRequestDto} gitRepoRequestDto
|
|
1303
|
+
* @param {*} [options] Override http request option.
|
|
1304
|
+
* @throws {RequiredError}
|
|
1305
|
+
*/
|
|
1306
|
+
async toolboxControllerGitPushChanges(workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1307
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.toolboxControllerGitPushChanges(workspaceId, gitRepoRequestDto, options);
|
|
1308
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1309
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.toolboxControllerGitPushChanges']?.[localVarOperationServerIndex]?.url;
|
|
1310
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1311
|
+
},
|
|
1312
|
+
/**
|
|
1313
|
+
* Get status from git repository
|
|
1314
|
+
* @summary Get git status
|
|
1315
|
+
* @param {string} workspaceId
|
|
1316
|
+
* @param {string} path
|
|
1317
|
+
* @param {*} [options] Override http request option.
|
|
1318
|
+
* @throws {RequiredError}
|
|
1319
|
+
*/
|
|
1320
|
+
async toolboxControllerGitStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1321
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.toolboxControllerGitStatus(workspaceId, path, options);
|
|
1322
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1323
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.toolboxControllerGitStatus']?.[localVarOperationServerIndex]?.url;
|
|
1324
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1325
|
+
},
|
|
1326
|
+
/**
|
|
1327
|
+
* Move file inside workspace
|
|
1328
|
+
* @summary Move file
|
|
1329
|
+
* @param {string} workspaceId
|
|
1330
|
+
* @param {string} source
|
|
1331
|
+
* @param {string} destination
|
|
1332
|
+
* @param {*} [options] Override http request option.
|
|
1333
|
+
* @throws {RequiredError}
|
|
1334
|
+
*/
|
|
1335
|
+
async toolboxControllerMoveFile(workspaceId: string, source: string, destination: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1336
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.toolboxControllerMoveFile(workspaceId, source, destination, options);
|
|
1337
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1338
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.toolboxControllerMoveFile']?.[localVarOperationServerIndex]?.url;
|
|
1339
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1340
|
+
},
|
|
1341
|
+
/**
|
|
1342
|
+
* Replace text/pattern in multiple files inside workspace
|
|
1343
|
+
* @summary Replace in files
|
|
1344
|
+
* @param {string} workspaceId
|
|
1345
|
+
* @param {ReplaceRequestDto} replaceRequestDto
|
|
1346
|
+
* @param {*} [options] Override http request option.
|
|
1347
|
+
* @throws {RequiredError}
|
|
1348
|
+
*/
|
|
1349
|
+
async toolboxControllerReplaceInFiles(workspaceId: string, replaceRequestDto: ReplaceRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1350
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.toolboxControllerReplaceInFiles(workspaceId, replaceRequestDto, options);
|
|
1351
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1352
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.toolboxControllerReplaceInFiles']?.[localVarOperationServerIndex]?.url;
|
|
1353
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1354
|
+
},
|
|
1355
|
+
/**
|
|
1356
|
+
* Search for files inside workspace
|
|
1357
|
+
* @summary Search files
|
|
1358
|
+
* @param {string} workspaceId
|
|
1359
|
+
* @param {string} path
|
|
1360
|
+
* @param {string} pattern
|
|
1361
|
+
* @param {*} [options] Override http request option.
|
|
1362
|
+
* @throws {RequiredError}
|
|
1363
|
+
*/
|
|
1364
|
+
async toolboxControllerSearchFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1365
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.toolboxControllerSearchFiles(workspaceId, path, pattern, options);
|
|
1366
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1367
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.toolboxControllerSearchFiles']?.[localVarOperationServerIndex]?.url;
|
|
1368
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1369
|
+
},
|
|
1370
|
+
/**
|
|
1371
|
+
* Set file owner/group/permissions inside workspace
|
|
1372
|
+
* @summary Set file permissions
|
|
1373
|
+
* @param {string} workspaceId
|
|
1374
|
+
* @param {string} path
|
|
1375
|
+
* @param {string} owner
|
|
1376
|
+
* @param {string} group
|
|
1377
|
+
* @param {string} mode
|
|
1378
|
+
* @param {*} [options] Override http request option.
|
|
1379
|
+
* @throws {RequiredError}
|
|
1380
|
+
*/
|
|
1381
|
+
async toolboxControllerSetFilePermissions(workspaceId: string, path: string, owner: string, group: string, mode: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1382
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.toolboxControllerSetFilePermissions(workspaceId, path, owner, group, mode, options);
|
|
1383
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1384
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.toolboxControllerSetFilePermissions']?.[localVarOperationServerIndex]?.url;
|
|
1385
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1386
|
+
},
|
|
1387
|
+
/**
|
|
1388
|
+
* Upload file inside workspace
|
|
1389
|
+
* @summary Upload file
|
|
1390
|
+
* @param {string} workspaceId
|
|
1391
|
+
* @param {string} path
|
|
1392
|
+
* @param {File} [file]
|
|
1393
|
+
* @param {*} [options] Override http request option.
|
|
1394
|
+
* @throws {RequiredError}
|
|
1395
|
+
*/
|
|
1396
|
+
async toolboxControllerUploadFile(workspaceId: string, path: string, file?: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1397
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.toolboxControllerUploadFile(workspaceId, path, file, options);
|
|
1398
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1399
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.toolboxControllerUploadFile']?.[localVarOperationServerIndex]?.url;
|
|
1400
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1401
|
+
},
|
|
1402
|
+
}
|
|
1403
|
+
};
|
|
1404
|
+
|
|
1405
|
+
/**
|
|
1406
|
+
* ToolboxApi - factory interface
|
|
1407
|
+
* @export
|
|
1408
|
+
*/
|
|
1409
|
+
export const ToolboxApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1410
|
+
const localVarFp = ToolboxApiFp(configuration)
|
|
1411
|
+
return {
|
|
1412
|
+
/**
|
|
1413
|
+
*
|
|
1414
|
+
* @summary Get workspace project dir
|
|
1415
|
+
* @param {string} workspaceId
|
|
1416
|
+
* @param {*} [options] Override http request option.
|
|
1417
|
+
* @throws {RequiredError}
|
|
1418
|
+
*/
|
|
1419
|
+
getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1420
|
+
return localVarFp.getProjectDir(workspaceId, options).then((request) => request(axios, basePath));
|
|
1421
|
+
},
|
|
1422
|
+
/**
|
|
1423
|
+
*
|
|
1424
|
+
* @summary List files
|
|
1425
|
+
* @param {string} workspaceId
|
|
1426
|
+
* @param {string} [path]
|
|
1427
|
+
* @param {*} [options] Override http request option.
|
|
1428
|
+
* @throws {RequiredError}
|
|
1429
|
+
*/
|
|
1430
|
+
listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1431
|
+
return localVarFp.listFiles(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
1432
|
+
},
|
|
1433
|
+
/**
|
|
1434
|
+
* Create folder inside workspace
|
|
1435
|
+
* @summary Create folder
|
|
1436
|
+
* @param {string} workspaceId
|
|
1437
|
+
* @param {string} path
|
|
1438
|
+
* @param {string} mode
|
|
1439
|
+
* @param {*} [options] Override http request option.
|
|
1440
|
+
* @throws {RequiredError}
|
|
1441
|
+
*/
|
|
1442
|
+
toolboxControllerCreateFolder(workspaceId: string, path: string, mode: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1443
|
+
return localVarFp.toolboxControllerCreateFolder(workspaceId, path, mode, options).then((request) => request(axios, basePath));
|
|
1444
|
+
},
|
|
1445
|
+
/**
|
|
1446
|
+
* Delete file inside workspace
|
|
1447
|
+
* @summary Delete file
|
|
1448
|
+
* @param {string} workspaceId
|
|
1449
|
+
* @param {string} path
|
|
1450
|
+
* @param {*} [options] Override http request option.
|
|
1451
|
+
* @throws {RequiredError}
|
|
1452
|
+
*/
|
|
1453
|
+
toolboxControllerDeleteFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1454
|
+
return localVarFp.toolboxControllerDeleteFile(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
1455
|
+
},
|
|
1456
|
+
/**
|
|
1457
|
+
* Download file from workspace
|
|
1458
|
+
* @summary Download file
|
|
1459
|
+
* @param {string} workspaceId
|
|
1460
|
+
* @param {string} path
|
|
1461
|
+
* @param {*} [options] Override http request option.
|
|
1462
|
+
* @throws {RequiredError}
|
|
1463
|
+
*/
|
|
1464
|
+
toolboxControllerDownloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1465
|
+
return localVarFp.toolboxControllerDownloadFile(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
1466
|
+
},
|
|
1467
|
+
/**
|
|
1468
|
+
* Execute command synchronously inside workspace
|
|
1469
|
+
* @summary Execute command
|
|
1470
|
+
* @param {string} workspaceId
|
|
1471
|
+
* @param {ExecuteRequestDto} executeRequestDto
|
|
1472
|
+
* @param {*} [options] Override http request option.
|
|
1473
|
+
* @throws {RequiredError}
|
|
1474
|
+
*/
|
|
1475
|
+
toolboxControllerExecuteCommand(workspaceId: string, executeRequestDto: ExecuteRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<ExecuteResponseDto> {
|
|
1476
|
+
return localVarFp.toolboxControllerExecuteCommand(workspaceId, executeRequestDto, options).then((request) => request(axios, basePath));
|
|
1477
|
+
},
|
|
1478
|
+
/**
|
|
1479
|
+
* Search for text/pattern inside workspace files
|
|
1480
|
+
* @summary Search for text/pattern in files
|
|
1481
|
+
* @param {string} workspaceId
|
|
1482
|
+
* @param {string} path
|
|
1483
|
+
* @param {string} pattern
|
|
1484
|
+
* @param {*} [options] Override http request option.
|
|
1485
|
+
* @throws {RequiredError}
|
|
1486
|
+
*/
|
|
1487
|
+
toolboxControllerFindInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1488
|
+
return localVarFp.toolboxControllerFindInFiles(workspaceId, path, pattern, options).then((request) => request(axios, basePath));
|
|
1489
|
+
},
|
|
1490
|
+
/**
|
|
1491
|
+
* Get file info inside workspace
|
|
1492
|
+
* @summary Get file info
|
|
1493
|
+
* @param {string} workspaceId
|
|
1494
|
+
* @param {string} path
|
|
1495
|
+
* @param {*} [options] Override http request option.
|
|
1496
|
+
* @throws {RequiredError}
|
|
1497
|
+
*/
|
|
1498
|
+
toolboxControllerGetFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1499
|
+
return localVarFp.toolboxControllerGetFileInfo(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
1500
|
+
},
|
|
1501
|
+
/**
|
|
1502
|
+
* Add files to git commit
|
|
1503
|
+
* @summary Add files
|
|
1504
|
+
* @param {string} workspaceId
|
|
1505
|
+
* @param {GitAddRequestDto} gitAddRequestDto
|
|
1506
|
+
* @param {*} [options] Override http request option.
|
|
1507
|
+
* @throws {RequiredError}
|
|
1508
|
+
*/
|
|
1509
|
+
toolboxControllerGitAddFiles(workspaceId: string, gitAddRequestDto: GitAddRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1510
|
+
return localVarFp.toolboxControllerGitAddFiles(workspaceId, gitAddRequestDto, options).then((request) => request(axios, basePath));
|
|
1511
|
+
},
|
|
1512
|
+
/**
|
|
1513
|
+
* Get branch list from git repository
|
|
1514
|
+
* @summary Get branch list
|
|
1515
|
+
* @param {string} workspaceId
|
|
1516
|
+
* @param {string} path
|
|
1517
|
+
* @param {*} [options] Override http request option.
|
|
1518
|
+
* @throws {RequiredError}
|
|
1519
|
+
*/
|
|
1520
|
+
toolboxControllerGitBranchList(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1521
|
+
return localVarFp.toolboxControllerGitBranchList(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
1522
|
+
},
|
|
1523
|
+
/**
|
|
1524
|
+
* Clone git repository
|
|
1525
|
+
* @summary Clone repository
|
|
1526
|
+
* @param {string} workspaceId
|
|
1527
|
+
* @param {GitCloneRequestDto} gitCloneRequestDto
|
|
1528
|
+
* @param {*} [options] Override http request option.
|
|
1529
|
+
* @throws {RequiredError}
|
|
1530
|
+
*/
|
|
1531
|
+
toolboxControllerGitCloneRepository(workspaceId: string, gitCloneRequestDto: GitCloneRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1532
|
+
return localVarFp.toolboxControllerGitCloneRepository(workspaceId, gitCloneRequestDto, options).then((request) => request(axios, basePath));
|
|
1533
|
+
},
|
|
1534
|
+
/**
|
|
1535
|
+
* Commit changes to git repository
|
|
1536
|
+
* @summary Commit changes
|
|
1537
|
+
* @param {string} workspaceId
|
|
1538
|
+
* @param {GitCommitRequestDto} gitCommitRequestDto
|
|
1539
|
+
* @param {*} [options] Override http request option.
|
|
1540
|
+
* @throws {RequiredError}
|
|
1541
|
+
*/
|
|
1542
|
+
toolboxControllerGitCommitChanges(workspaceId: string, gitCommitRequestDto: GitCommitRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1543
|
+
return localVarFp.toolboxControllerGitCommitChanges(workspaceId, gitCommitRequestDto, options).then((request) => request(axios, basePath));
|
|
1544
|
+
},
|
|
1545
|
+
/**
|
|
1546
|
+
* Get commit history from git repository
|
|
1547
|
+
* @summary Get commit history
|
|
1548
|
+
* @param {string} workspaceId
|
|
1549
|
+
* @param {string} path
|
|
1550
|
+
* @param {*} [options] Override http request option.
|
|
1551
|
+
* @throws {RequiredError}
|
|
1552
|
+
*/
|
|
1553
|
+
toolboxControllerGitCommitHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1554
|
+
return localVarFp.toolboxControllerGitCommitHistory(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
1555
|
+
},
|
|
1556
|
+
/**
|
|
1557
|
+
* Create branch on git repository
|
|
1558
|
+
* @summary Create branch
|
|
1559
|
+
* @param {string} workspaceId
|
|
1560
|
+
* @param {GitBranchRequestDto} gitBranchRequestDto
|
|
1561
|
+
* @param {*} [options] Override http request option.
|
|
1562
|
+
* @throws {RequiredError}
|
|
1563
|
+
*/
|
|
1564
|
+
toolboxControllerGitCreateBranch(workspaceId: string, gitBranchRequestDto: GitBranchRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1565
|
+
return localVarFp.toolboxControllerGitCreateBranch(workspaceId, gitBranchRequestDto, options).then((request) => request(axios, basePath));
|
|
1566
|
+
},
|
|
1567
|
+
/**
|
|
1568
|
+
* Pull changes from remote
|
|
1569
|
+
* @summary Pull changes
|
|
1570
|
+
* @param {string} workspaceId
|
|
1571
|
+
* @param {GitRepoRequestDto} gitRepoRequestDto
|
|
1572
|
+
* @param {*} [options] Override http request option.
|
|
1573
|
+
* @throws {RequiredError}
|
|
1574
|
+
*/
|
|
1575
|
+
toolboxControllerGitPullChanges(workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1576
|
+
return localVarFp.toolboxControllerGitPullChanges(workspaceId, gitRepoRequestDto, options).then((request) => request(axios, basePath));
|
|
1577
|
+
},
|
|
1578
|
+
/**
|
|
1579
|
+
* Push changes to remote
|
|
1580
|
+
* @summary Push changes
|
|
1581
|
+
* @param {string} workspaceId
|
|
1582
|
+
* @param {GitRepoRequestDto} gitRepoRequestDto
|
|
1583
|
+
* @param {*} [options] Override http request option.
|
|
1584
|
+
* @throws {RequiredError}
|
|
1585
|
+
*/
|
|
1586
|
+
toolboxControllerGitPushChanges(workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1587
|
+
return localVarFp.toolboxControllerGitPushChanges(workspaceId, gitRepoRequestDto, options).then((request) => request(axios, basePath));
|
|
1588
|
+
},
|
|
1589
|
+
/**
|
|
1590
|
+
* Get status from git repository
|
|
1591
|
+
* @summary Get git status
|
|
1592
|
+
* @param {string} workspaceId
|
|
1593
|
+
* @param {string} path
|
|
1594
|
+
* @param {*} [options] Override http request option.
|
|
1595
|
+
* @throws {RequiredError}
|
|
1596
|
+
*/
|
|
1597
|
+
toolboxControllerGitStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1598
|
+
return localVarFp.toolboxControllerGitStatus(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
1599
|
+
},
|
|
1600
|
+
/**
|
|
1601
|
+
* Move file inside workspace
|
|
1602
|
+
* @summary Move file
|
|
1603
|
+
* @param {string} workspaceId
|
|
1604
|
+
* @param {string} source
|
|
1605
|
+
* @param {string} destination
|
|
1606
|
+
* @param {*} [options] Override http request option.
|
|
1607
|
+
* @throws {RequiredError}
|
|
1608
|
+
*/
|
|
1609
|
+
toolboxControllerMoveFile(workspaceId: string, source: string, destination: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1610
|
+
return localVarFp.toolboxControllerMoveFile(workspaceId, source, destination, options).then((request) => request(axios, basePath));
|
|
1611
|
+
},
|
|
1612
|
+
/**
|
|
1613
|
+
* Replace text/pattern in multiple files inside workspace
|
|
1614
|
+
* @summary Replace in files
|
|
1615
|
+
* @param {string} workspaceId
|
|
1616
|
+
* @param {ReplaceRequestDto} replaceRequestDto
|
|
1617
|
+
* @param {*} [options] Override http request option.
|
|
1618
|
+
* @throws {RequiredError}
|
|
1619
|
+
*/
|
|
1620
|
+
toolboxControllerReplaceInFiles(workspaceId: string, replaceRequestDto: ReplaceRequestDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1621
|
+
return localVarFp.toolboxControllerReplaceInFiles(workspaceId, replaceRequestDto, options).then((request) => request(axios, basePath));
|
|
1622
|
+
},
|
|
1623
|
+
/**
|
|
1624
|
+
* Search for files inside workspace
|
|
1625
|
+
* @summary Search files
|
|
1626
|
+
* @param {string} workspaceId
|
|
1627
|
+
* @param {string} path
|
|
1628
|
+
* @param {string} pattern
|
|
1629
|
+
* @param {*} [options] Override http request option.
|
|
1630
|
+
* @throws {RequiredError}
|
|
1631
|
+
*/
|
|
1632
|
+
toolboxControllerSearchFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1633
|
+
return localVarFp.toolboxControllerSearchFiles(workspaceId, path, pattern, options).then((request) => request(axios, basePath));
|
|
1634
|
+
},
|
|
1635
|
+
/**
|
|
1636
|
+
* Set file owner/group/permissions inside workspace
|
|
1637
|
+
* @summary Set file permissions
|
|
1638
|
+
* @param {string} workspaceId
|
|
1639
|
+
* @param {string} path
|
|
1640
|
+
* @param {string} owner
|
|
1641
|
+
* @param {string} group
|
|
1642
|
+
* @param {string} mode
|
|
1643
|
+
* @param {*} [options] Override http request option.
|
|
1644
|
+
* @throws {RequiredError}
|
|
1645
|
+
*/
|
|
1646
|
+
toolboxControllerSetFilePermissions(workspaceId: string, path: string, owner: string, group: string, mode: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1647
|
+
return localVarFp.toolboxControllerSetFilePermissions(workspaceId, path, owner, group, mode, options).then((request) => request(axios, basePath));
|
|
1648
|
+
},
|
|
1649
|
+
/**
|
|
1650
|
+
* Upload file inside workspace
|
|
1651
|
+
* @summary Upload file
|
|
1652
|
+
* @param {string} workspaceId
|
|
1653
|
+
* @param {string} path
|
|
1654
|
+
* @param {File} [file]
|
|
1655
|
+
* @param {*} [options] Override http request option.
|
|
1656
|
+
* @throws {RequiredError}
|
|
1657
|
+
*/
|
|
1658
|
+
toolboxControllerUploadFile(workspaceId: string, path: string, file?: File, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1659
|
+
return localVarFp.toolboxControllerUploadFile(workspaceId, path, file, options).then((request) => request(axios, basePath));
|
|
1660
|
+
},
|
|
1661
|
+
};
|
|
1662
|
+
};
|
|
1663
|
+
|
|
1664
|
+
/**
|
|
1665
|
+
* ToolboxApi - object-oriented interface
|
|
1666
|
+
* @export
|
|
1667
|
+
* @class ToolboxApi
|
|
1668
|
+
* @extends {BaseAPI}
|
|
1669
|
+
*/
|
|
1670
|
+
export class ToolboxApi extends BaseAPI {
|
|
1671
|
+
/**
|
|
1672
|
+
*
|
|
1673
|
+
* @summary Get workspace project dir
|
|
1674
|
+
* @param {string} workspaceId
|
|
1675
|
+
* @param {*} [options] Override http request option.
|
|
1676
|
+
* @throws {RequiredError}
|
|
1677
|
+
* @memberof ToolboxApi
|
|
1678
|
+
*/
|
|
1679
|
+
public getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig) {
|
|
1680
|
+
return ToolboxApiFp(this.configuration).getProjectDir(workspaceId, options).then((request) => request(this.axios, this.basePath));
|
|
1681
|
+
}
|
|
1682
|
+
|
|
1683
|
+
/**
|
|
1684
|
+
*
|
|
1685
|
+
* @summary List files
|
|
1686
|
+
* @param {string} workspaceId
|
|
1687
|
+
* @param {string} [path]
|
|
1688
|
+
* @param {*} [options] Override http request option.
|
|
1689
|
+
* @throws {RequiredError}
|
|
1690
|
+
* @memberof ToolboxApi
|
|
1691
|
+
*/
|
|
1692
|
+
public listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig) {
|
|
1693
|
+
return ToolboxApiFp(this.configuration).listFiles(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
/**
|
|
1697
|
+
* Create folder inside workspace
|
|
1698
|
+
* @summary Create folder
|
|
1699
|
+
* @param {string} workspaceId
|
|
1700
|
+
* @param {string} path
|
|
1701
|
+
* @param {string} mode
|
|
1702
|
+
* @param {*} [options] Override http request option.
|
|
1703
|
+
* @throws {RequiredError}
|
|
1704
|
+
* @memberof ToolboxApi
|
|
1705
|
+
*/
|
|
1706
|
+
public toolboxControllerCreateFolder(workspaceId: string, path: string, mode: string, options?: RawAxiosRequestConfig) {
|
|
1707
|
+
return ToolboxApiFp(this.configuration).toolboxControllerCreateFolder(workspaceId, path, mode, options).then((request) => request(this.axios, this.basePath));
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
/**
|
|
1711
|
+
* Delete file inside workspace
|
|
1712
|
+
* @summary Delete file
|
|
1713
|
+
* @param {string} workspaceId
|
|
1714
|
+
* @param {string} path
|
|
1715
|
+
* @param {*} [options] Override http request option.
|
|
1716
|
+
* @throws {RequiredError}
|
|
1717
|
+
* @memberof ToolboxApi
|
|
1718
|
+
*/
|
|
1719
|
+
public toolboxControllerDeleteFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig) {
|
|
1720
|
+
return ToolboxApiFp(this.configuration).toolboxControllerDeleteFile(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
/**
|
|
1724
|
+
* Download file from workspace
|
|
1725
|
+
* @summary Download file
|
|
1726
|
+
* @param {string} workspaceId
|
|
1727
|
+
* @param {string} path
|
|
1728
|
+
* @param {*} [options] Override http request option.
|
|
1729
|
+
* @throws {RequiredError}
|
|
1730
|
+
* @memberof ToolboxApi
|
|
1731
|
+
*/
|
|
1732
|
+
public toolboxControllerDownloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig) {
|
|
1733
|
+
return ToolboxApiFp(this.configuration).toolboxControllerDownloadFile(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
|
|
1734
|
+
}
|
|
1735
|
+
|
|
1736
|
+
/**
|
|
1737
|
+
* Execute command synchronously inside workspace
|
|
1738
|
+
* @summary Execute command
|
|
1739
|
+
* @param {string} workspaceId
|
|
1740
|
+
* @param {ExecuteRequestDto} executeRequestDto
|
|
1741
|
+
* @param {*} [options] Override http request option.
|
|
1742
|
+
* @throws {RequiredError}
|
|
1743
|
+
* @memberof ToolboxApi
|
|
1744
|
+
*/
|
|
1745
|
+
public toolboxControllerExecuteCommand(workspaceId: string, executeRequestDto: ExecuteRequestDto, options?: RawAxiosRequestConfig) {
|
|
1746
|
+
return ToolboxApiFp(this.configuration).toolboxControllerExecuteCommand(workspaceId, executeRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
1747
|
+
}
|
|
1748
|
+
|
|
1749
|
+
/**
|
|
1750
|
+
* Search for text/pattern inside workspace files
|
|
1751
|
+
* @summary Search for text/pattern in files
|
|
1752
|
+
* @param {string} workspaceId
|
|
1753
|
+
* @param {string} path
|
|
1754
|
+
* @param {string} pattern
|
|
1755
|
+
* @param {*} [options] Override http request option.
|
|
1756
|
+
* @throws {RequiredError}
|
|
1757
|
+
* @memberof ToolboxApi
|
|
1758
|
+
*/
|
|
1759
|
+
public toolboxControllerFindInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig) {
|
|
1760
|
+
return ToolboxApiFp(this.configuration).toolboxControllerFindInFiles(workspaceId, path, pattern, options).then((request) => request(this.axios, this.basePath));
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1763
|
+
/**
|
|
1764
|
+
* Get file info inside workspace
|
|
1765
|
+
* @summary Get file info
|
|
1766
|
+
* @param {string} workspaceId
|
|
1767
|
+
* @param {string} path
|
|
1768
|
+
* @param {*} [options] Override http request option.
|
|
1769
|
+
* @throws {RequiredError}
|
|
1770
|
+
* @memberof ToolboxApi
|
|
1771
|
+
*/
|
|
1772
|
+
public toolboxControllerGetFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig) {
|
|
1773
|
+
return ToolboxApiFp(this.configuration).toolboxControllerGetFileInfo(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
/**
|
|
1777
|
+
* Add files to git commit
|
|
1778
|
+
* @summary Add files
|
|
1779
|
+
* @param {string} workspaceId
|
|
1780
|
+
* @param {GitAddRequestDto} gitAddRequestDto
|
|
1781
|
+
* @param {*} [options] Override http request option.
|
|
1782
|
+
* @throws {RequiredError}
|
|
1783
|
+
* @memberof ToolboxApi
|
|
1784
|
+
*/
|
|
1785
|
+
public toolboxControllerGitAddFiles(workspaceId: string, gitAddRequestDto: GitAddRequestDto, options?: RawAxiosRequestConfig) {
|
|
1786
|
+
return ToolboxApiFp(this.configuration).toolboxControllerGitAddFiles(workspaceId, gitAddRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1789
|
+
/**
|
|
1790
|
+
* Get branch list from git repository
|
|
1791
|
+
* @summary Get branch list
|
|
1792
|
+
* @param {string} workspaceId
|
|
1793
|
+
* @param {string} path
|
|
1794
|
+
* @param {*} [options] Override http request option.
|
|
1795
|
+
* @throws {RequiredError}
|
|
1796
|
+
* @memberof ToolboxApi
|
|
1797
|
+
*/
|
|
1798
|
+
public toolboxControllerGitBranchList(workspaceId: string, path: string, options?: RawAxiosRequestConfig) {
|
|
1799
|
+
return ToolboxApiFp(this.configuration).toolboxControllerGitBranchList(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
/**
|
|
1803
|
+
* Clone git repository
|
|
1804
|
+
* @summary Clone repository
|
|
1805
|
+
* @param {string} workspaceId
|
|
1806
|
+
* @param {GitCloneRequestDto} gitCloneRequestDto
|
|
1807
|
+
* @param {*} [options] Override http request option.
|
|
1808
|
+
* @throws {RequiredError}
|
|
1809
|
+
* @memberof ToolboxApi
|
|
1810
|
+
*/
|
|
1811
|
+
public toolboxControllerGitCloneRepository(workspaceId: string, gitCloneRequestDto: GitCloneRequestDto, options?: RawAxiosRequestConfig) {
|
|
1812
|
+
return ToolboxApiFp(this.configuration).toolboxControllerGitCloneRepository(workspaceId, gitCloneRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1815
|
+
/**
|
|
1816
|
+
* Commit changes to git repository
|
|
1817
|
+
* @summary Commit changes
|
|
1818
|
+
* @param {string} workspaceId
|
|
1819
|
+
* @param {GitCommitRequestDto} gitCommitRequestDto
|
|
1820
|
+
* @param {*} [options] Override http request option.
|
|
1821
|
+
* @throws {RequiredError}
|
|
1822
|
+
* @memberof ToolboxApi
|
|
1823
|
+
*/
|
|
1824
|
+
public toolboxControllerGitCommitChanges(workspaceId: string, gitCommitRequestDto: GitCommitRequestDto, options?: RawAxiosRequestConfig) {
|
|
1825
|
+
return ToolboxApiFp(this.configuration).toolboxControllerGitCommitChanges(workspaceId, gitCommitRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
/**
|
|
1829
|
+
* Get commit history from git repository
|
|
1830
|
+
* @summary Get commit history
|
|
1831
|
+
* @param {string} workspaceId
|
|
1832
|
+
* @param {string} path
|
|
1833
|
+
* @param {*} [options] Override http request option.
|
|
1834
|
+
* @throws {RequiredError}
|
|
1835
|
+
* @memberof ToolboxApi
|
|
1836
|
+
*/
|
|
1837
|
+
public toolboxControllerGitCommitHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig) {
|
|
1838
|
+
return ToolboxApiFp(this.configuration).toolboxControllerGitCommitHistory(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1841
|
+
/**
|
|
1842
|
+
* Create branch on git repository
|
|
1843
|
+
* @summary Create branch
|
|
1844
|
+
* @param {string} workspaceId
|
|
1845
|
+
* @param {GitBranchRequestDto} gitBranchRequestDto
|
|
1846
|
+
* @param {*} [options] Override http request option.
|
|
1847
|
+
* @throws {RequiredError}
|
|
1848
|
+
* @memberof ToolboxApi
|
|
1849
|
+
*/
|
|
1850
|
+
public toolboxControllerGitCreateBranch(workspaceId: string, gitBranchRequestDto: GitBranchRequestDto, options?: RawAxiosRequestConfig) {
|
|
1851
|
+
return ToolboxApiFp(this.configuration).toolboxControllerGitCreateBranch(workspaceId, gitBranchRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
1852
|
+
}
|
|
1853
|
+
|
|
1854
|
+
/**
|
|
1855
|
+
* Pull changes from remote
|
|
1856
|
+
* @summary Pull changes
|
|
1857
|
+
* @param {string} workspaceId
|
|
1858
|
+
* @param {GitRepoRequestDto} gitRepoRequestDto
|
|
1859
|
+
* @param {*} [options] Override http request option.
|
|
1860
|
+
* @throws {RequiredError}
|
|
1861
|
+
* @memberof ToolboxApi
|
|
1862
|
+
*/
|
|
1863
|
+
public toolboxControllerGitPullChanges(workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options?: RawAxiosRequestConfig) {
|
|
1864
|
+
return ToolboxApiFp(this.configuration).toolboxControllerGitPullChanges(workspaceId, gitRepoRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
1865
|
+
}
|
|
1866
|
+
|
|
1867
|
+
/**
|
|
1868
|
+
* Push changes to remote
|
|
1869
|
+
* @summary Push changes
|
|
1870
|
+
* @param {string} workspaceId
|
|
1871
|
+
* @param {GitRepoRequestDto} gitRepoRequestDto
|
|
1872
|
+
* @param {*} [options] Override http request option.
|
|
1873
|
+
* @throws {RequiredError}
|
|
1874
|
+
* @memberof ToolboxApi
|
|
1875
|
+
*/
|
|
1876
|
+
public toolboxControllerGitPushChanges(workspaceId: string, gitRepoRequestDto: GitRepoRequestDto, options?: RawAxiosRequestConfig) {
|
|
1877
|
+
return ToolboxApiFp(this.configuration).toolboxControllerGitPushChanges(workspaceId, gitRepoRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
/**
|
|
1881
|
+
* Get status from git repository
|
|
1882
|
+
* @summary Get git status
|
|
1883
|
+
* @param {string} workspaceId
|
|
1884
|
+
* @param {string} path
|
|
1885
|
+
* @param {*} [options] Override http request option.
|
|
1886
|
+
* @throws {RequiredError}
|
|
1887
|
+
* @memberof ToolboxApi
|
|
1888
|
+
*/
|
|
1889
|
+
public toolboxControllerGitStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig) {
|
|
1890
|
+
return ToolboxApiFp(this.configuration).toolboxControllerGitStatus(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
|
|
1891
|
+
}
|
|
1892
|
+
|
|
1893
|
+
/**
|
|
1894
|
+
* Move file inside workspace
|
|
1895
|
+
* @summary Move file
|
|
1896
|
+
* @param {string} workspaceId
|
|
1897
|
+
* @param {string} source
|
|
1898
|
+
* @param {string} destination
|
|
1899
|
+
* @param {*} [options] Override http request option.
|
|
1900
|
+
* @throws {RequiredError}
|
|
1901
|
+
* @memberof ToolboxApi
|
|
1902
|
+
*/
|
|
1903
|
+
public toolboxControllerMoveFile(workspaceId: string, source: string, destination: string, options?: RawAxiosRequestConfig) {
|
|
1904
|
+
return ToolboxApiFp(this.configuration).toolboxControllerMoveFile(workspaceId, source, destination, options).then((request) => request(this.axios, this.basePath));
|
|
1905
|
+
}
|
|
1906
|
+
|
|
1907
|
+
/**
|
|
1908
|
+
* Replace text/pattern in multiple files inside workspace
|
|
1909
|
+
* @summary Replace in files
|
|
1910
|
+
* @param {string} workspaceId
|
|
1911
|
+
* @param {ReplaceRequestDto} replaceRequestDto
|
|
1912
|
+
* @param {*} [options] Override http request option.
|
|
1913
|
+
* @throws {RequiredError}
|
|
1914
|
+
* @memberof ToolboxApi
|
|
1915
|
+
*/
|
|
1916
|
+
public toolboxControllerReplaceInFiles(workspaceId: string, replaceRequestDto: ReplaceRequestDto, options?: RawAxiosRequestConfig) {
|
|
1917
|
+
return ToolboxApiFp(this.configuration).toolboxControllerReplaceInFiles(workspaceId, replaceRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1920
|
+
/**
|
|
1921
|
+
* Search for files inside workspace
|
|
1922
|
+
* @summary Search files
|
|
1923
|
+
* @param {string} workspaceId
|
|
1924
|
+
* @param {string} path
|
|
1925
|
+
* @param {string} pattern
|
|
1926
|
+
* @param {*} [options] Override http request option.
|
|
1927
|
+
* @throws {RequiredError}
|
|
1928
|
+
* @memberof ToolboxApi
|
|
1929
|
+
*/
|
|
1930
|
+
public toolboxControllerSearchFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig) {
|
|
1931
|
+
return ToolboxApiFp(this.configuration).toolboxControllerSearchFiles(workspaceId, path, pattern, options).then((request) => request(this.axios, this.basePath));
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
/**
|
|
1935
|
+
* Set file owner/group/permissions inside workspace
|
|
1936
|
+
* @summary Set file permissions
|
|
1937
|
+
* @param {string} workspaceId
|
|
1938
|
+
* @param {string} path
|
|
1939
|
+
* @param {string} owner
|
|
1940
|
+
* @param {string} group
|
|
1941
|
+
* @param {string} mode
|
|
1942
|
+
* @param {*} [options] Override http request option.
|
|
1943
|
+
* @throws {RequiredError}
|
|
1944
|
+
* @memberof ToolboxApi
|
|
1945
|
+
*/
|
|
1946
|
+
public toolboxControllerSetFilePermissions(workspaceId: string, path: string, owner: string, group: string, mode: string, options?: RawAxiosRequestConfig) {
|
|
1947
|
+
return ToolboxApiFp(this.configuration).toolboxControllerSetFilePermissions(workspaceId, path, owner, group, mode, options).then((request) => request(this.axios, this.basePath));
|
|
1948
|
+
}
|
|
1949
|
+
|
|
1950
|
+
/**
|
|
1951
|
+
* Upload file inside workspace
|
|
1952
|
+
* @summary Upload file
|
|
1953
|
+
* @param {string} workspaceId
|
|
1954
|
+
* @param {string} path
|
|
1955
|
+
* @param {File} [file]
|
|
1956
|
+
* @param {*} [options] Override http request option.
|
|
1957
|
+
* @throws {RequiredError}
|
|
1958
|
+
* @memberof ToolboxApi
|
|
1959
|
+
*/
|
|
1960
|
+
public toolboxControllerUploadFile(workspaceId: string, path: string, file?: File, options?: RawAxiosRequestConfig) {
|
|
1961
|
+
return ToolboxApiFp(this.configuration).toolboxControllerUploadFile(workspaceId, path, file, options).then((request) => request(this.axios, this.basePath));
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1964
|
+
|