@daytonaio/api-client 0.5.2 → 0.6.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 +29 -18
- package/README.md +2 -2
- package/api/api-keys-api.ts +21 -21
- package/api/{default-api.ts → app-api.ts} +14 -14
- package/api/docker-registry-api.ts +30 -30
- package/api/nodes-api.ts +16 -14
- package/api/toolbox-api.ts +154 -138
- package/api/users-api.ts +16 -14
- package/api/workspace-api.ts +37 -37
- package/api.ts +1 -1
- package/dist/api/api-keys-api.d.ts +17 -17
- package/dist/api/api-keys-api.js +17 -17
- package/dist/api/{default-api.d.ts → app-api.d.ts} +10 -10
- package/dist/api/{default-api.js → app-api.js} +19 -19
- package/dist/api/docker-registry-api.d.ts +18 -18
- package/dist/api/docker-registry-api.js +33 -33
- package/dist/api/nodes-api.d.ts +9 -8
- package/dist/api/nodes-api.js +16 -16
- package/dist/api/toolbox-api.d.ts +107 -99
- package/dist/api/toolbox-api.js +125 -125
- package/dist/api/users-api.d.ts +9 -8
- package/dist/api/users-api.js +16 -16
- package/dist/api/workspace-api.d.ts +28 -28
- package/dist/api/workspace-api.js +34 -34
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/esm/api/api-keys-api.d.ts +17 -17
- package/dist/esm/api/api-keys-api.js +17 -17
- package/dist/esm/api/{default-api.d.ts → app-api.d.ts} +10 -10
- package/dist/esm/api/{default-api.js → app-api.js} +14 -14
- package/dist/esm/api/docker-registry-api.d.ts +18 -18
- package/dist/esm/api/docker-registry-api.js +33 -33
- package/dist/esm/api/nodes-api.d.ts +9 -8
- package/dist/esm/api/nodes-api.js +16 -16
- package/dist/esm/api/toolbox-api.d.ts +107 -99
- package/dist/esm/api/toolbox-api.js +125 -125
- package/dist/esm/api/users-api.d.ts +9 -8
- package/dist/esm/api/users-api.js +16 -16
- package/dist/esm/api/workspace-api.d.ts +28 -28
- package/dist/esm/api/workspace-api.js +34 -34
- package/dist/esm/api.d.ts +1 -1
- package/dist/esm/api.js +1 -1
- package/dist/esm/models/{api-key-list-dto.d.ts → api-key-list.d.ts} +5 -5
- package/dist/esm/models/{api-key-response-dto.d.ts → api-key-response.d.ts} +5 -5
- package/dist/{models/create-api-key-dto.d.ts → esm/models/create-api-key.d.ts} +3 -3
- package/dist/{models/create-docker-registry-dto.d.ts → esm/models/create-docker-registry.d.ts} +8 -8
- package/dist/esm/models/create-node.d.ts +24 -0
- package/dist/esm/models/create-user.d.ts +30 -0
- package/dist/{models/create-workspace-dto.d.ts → esm/models/create-workspace.d.ts} +21 -21
- package/dist/esm/models/{create-workspace-dto.js → create-workspace.js} +2 -2
- package/dist/{models/execute-request-dto.d.ts → esm/models/execute-request.d.ts} +4 -4
- package/dist/{models/execute-response-dto.d.ts → esm/models/execute-response.d.ts} +5 -5
- package/dist/esm/models/file-info.d.ts +66 -0
- package/dist/esm/models/file-status.d.ts +42 -0
- package/dist/esm/models/{git-add-request-dto.d.ts → git-add-request.d.ts} +4 -4
- package/dist/{models/git-branch-request-dto.d.ts → esm/models/git-branch-request.d.ts} +4 -4
- package/dist/esm/models/{git-clone-request-dto.d.ts → git-clone-request.d.ts} +8 -8
- package/dist/{models/git-commit-request-dto.d.ts → esm/models/git-commit-info.d.ts} +13 -7
- package/dist/esm/models/git-commit-request.d.ts +24 -0
- package/dist/esm/models/{git-repo-request-dto.d.ts → git-repo-request.d.ts} +5 -5
- package/dist/esm/models/git-status.d.ts +49 -0
- package/dist/esm/models/git-status.js +14 -0
- package/dist/esm/models/index.d.ts +28 -17
- package/dist/esm/models/index.js +28 -17
- package/dist/esm/models/list-branch-response.d.ts +24 -0
- package/dist/esm/models/list-branch-response.js +14 -0
- package/dist/esm/models/match.d.ts +36 -0
- package/dist/esm/models/match.js +14 -0
- package/dist/esm/models/project-dir-response.d.ts +24 -0
- package/dist/esm/models/project-dir-response.js +14 -0
- package/dist/esm/models/{replace-request-dto.d.ts → replace-request.d.ts} +5 -5
- package/dist/esm/models/replace-request.js +14 -0
- package/dist/esm/models/replace-result.d.ts +36 -0
- package/dist/esm/models/replace-result.js +14 -0
- package/dist/esm/models/search-files-response.d.ts +24 -0
- package/dist/esm/models/search-files-response.js +14 -0
- package/dist/esm/models/{update-docker-registry-dto.d.ts → update-docker-registry.d.ts} +8 -8
- package/dist/esm/models/update-docker-registry.js +14 -0
- package/dist/{models/workspace-info-dto.d.ts → esm/models/workspace-info.d.ts} +5 -5
- package/dist/esm/models/workspace-info.js +14 -0
- package/dist/{models/workspace-labels-dto.d.ts → esm/models/workspace-labels.d.ts} +3 -3
- package/dist/esm/models/workspace-labels.js +14 -0
- package/dist/{models/workspace-dto.d.ts → esm/models/workspace.d.ts} +18 -18
- package/dist/esm/models/workspace.js +14 -0
- package/dist/models/{api-key-list-dto.d.ts → api-key-list.d.ts} +5 -5
- package/dist/models/{api-key-response-dto.d.ts → api-key-response.d.ts} +5 -5
- package/dist/{esm/models/create-api-key-dto.d.ts → models/create-api-key.d.ts} +3 -3
- package/dist/{esm/models/create-docker-registry-dto.d.ts → models/create-docker-registry.d.ts} +8 -8
- package/dist/models/create-node.d.ts +24 -0
- package/dist/models/create-user.d.ts +30 -0
- package/dist/{esm/models/create-workspace-dto.d.ts → models/create-workspace.d.ts} +21 -21
- package/dist/models/{create-workspace-dto.js → create-workspace.js} +3 -3
- package/dist/{esm/models/execute-request-dto.d.ts → models/execute-request.d.ts} +4 -4
- package/dist/{esm/models/execute-response-dto.d.ts → models/execute-response.d.ts} +5 -5
- package/dist/models/file-info.d.ts +66 -0
- package/dist/models/file-status.d.ts +42 -0
- package/dist/models/{git-add-request-dto.d.ts → git-add-request.d.ts} +4 -4
- package/dist/{esm/models/git-branch-request-dto.d.ts → models/git-branch-request.d.ts} +4 -4
- package/dist/models/{git-clone-request-dto.d.ts → git-clone-request.d.ts} +8 -8
- package/dist/{esm/models/git-commit-request-dto.d.ts → models/git-commit-info.d.ts} +13 -7
- package/dist/models/git-commit-request.d.ts +24 -0
- package/dist/models/{git-repo-request-dto.d.ts → git-repo-request.d.ts} +5 -5
- package/dist/models/git-status.d.ts +49 -0
- package/dist/models/git-status.js +15 -0
- package/dist/models/index.d.ts +28 -17
- package/dist/models/index.js +28 -17
- package/dist/models/list-branch-response.d.ts +24 -0
- package/dist/models/list-branch-response.js +15 -0
- package/dist/models/match.d.ts +36 -0
- package/dist/models/match.js +15 -0
- package/dist/models/project-dir-response.d.ts +24 -0
- package/dist/models/project-dir-response.js +15 -0
- package/dist/models/{replace-request-dto.d.ts → replace-request.d.ts} +5 -5
- package/dist/models/replace-request.js +15 -0
- package/dist/models/replace-result.d.ts +36 -0
- package/dist/models/replace-result.js +15 -0
- package/dist/models/search-files-response.d.ts +24 -0
- package/dist/models/search-files-response.js +15 -0
- package/dist/models/{update-docker-registry-dto.d.ts → update-docker-registry.d.ts} +8 -8
- package/dist/models/update-docker-registry.js +15 -0
- package/dist/{esm/models/workspace-info-dto.d.ts → models/workspace-info.d.ts} +5 -5
- package/dist/models/workspace-info.js +15 -0
- package/dist/{esm/models/workspace-labels-dto.d.ts → models/workspace-labels.d.ts} +3 -3
- package/dist/models/workspace-labels.js +15 -0
- package/dist/{esm/models/workspace-dto.d.ts → models/workspace.d.ts} +18 -18
- package/dist/models/workspace.js +15 -0
- package/models/{api-key-list-dto.ts → api-key-list.ts} +5 -5
- package/models/{api-key-response-dto.ts → api-key-response.ts} +5 -5
- package/models/{create-api-key-dto.ts → create-api-key.ts} +3 -3
- package/models/{create-docker-registry-dto.ts → create-docker-registry.ts} +8 -8
- package/models/create-node.ts +30 -0
- package/models/create-user.ts +36 -0
- package/models/{create-workspace-dto.ts → create-workspace.ts} +21 -21
- package/models/{execute-request-dto.ts → execute-request.ts} +4 -4
- package/models/{execute-response-dto.ts → execute-response.ts} +5 -5
- package/models/file-info.ts +72 -0
- package/models/file-status.ts +48 -0
- package/models/{git-add-request-dto.ts → git-add-request.ts} +4 -4
- package/models/{git-branch-request-dto.ts → git-branch-request.ts} +4 -4
- package/models/{git-clone-request-dto.ts → git-clone-request.ts} +8 -8
- package/models/{git-commit-request-dto.ts → git-commit-info.ts} +13 -7
- package/models/git-commit-request.ts +30 -0
- package/models/{git-repo-request-dto.ts → git-repo-request.ts} +5 -5
- package/models/git-status.ts +57 -0
- package/models/index.ts +28 -17
- package/models/list-branch-response.ts +30 -0
- package/models/match.ts +42 -0
- package/models/project-dir-response.ts +30 -0
- package/models/{replace-request-dto.ts → replace-request.ts} +5 -5
- package/models/replace-result.ts +42 -0
- package/models/search-files-response.ts +30 -0
- package/models/{update-docker-registry-dto.ts → update-docker-registry.ts} +8 -8
- package/models/{workspace-info-dto.ts → workspace-info.ts} +5 -5
- package/models/{workspace-labels-dto.ts → workspace-labels.ts} +3 -3
- package/models/{workspace-dto.ts → workspace.ts} +18 -18
- package/package.json +1 -1
- /package/dist/esm/models/{api-key-list-dto.js → api-key-list.js} +0 -0
- /package/dist/esm/models/{api-key-response-dto.js → api-key-response.js} +0 -0
- /package/dist/esm/models/{create-api-key-dto.js → create-api-key.js} +0 -0
- /package/dist/esm/models/{create-docker-registry-dto.js → create-docker-registry.js} +0 -0
- /package/dist/esm/models/{execute-request-dto.js → create-node.js} +0 -0
- /package/dist/esm/models/{execute-response-dto.js → create-user.js} +0 -0
- /package/dist/esm/models/{git-add-request-dto.js → execute-request.js} +0 -0
- /package/dist/esm/models/{git-branch-request-dto.js → execute-response.js} +0 -0
- /package/dist/esm/models/{git-clone-request-dto.js → file-info.js} +0 -0
- /package/dist/esm/models/{git-commit-request-dto.js → file-status.js} +0 -0
- /package/dist/esm/models/{git-repo-request-dto.js → git-add-request.js} +0 -0
- /package/dist/esm/models/{replace-request-dto.js → git-branch-request.js} +0 -0
- /package/dist/esm/models/{update-docker-registry-dto.js → git-clone-request.js} +0 -0
- /package/dist/esm/models/{workspace-dto.js → git-commit-info.js} +0 -0
- /package/dist/esm/models/{workspace-info-dto.js → git-commit-request.js} +0 -0
- /package/dist/esm/models/{workspace-labels-dto.js → git-repo-request.js} +0 -0
- /package/dist/models/{api-key-list-dto.js → api-key-list.js} +0 -0
- /package/dist/models/{api-key-response-dto.js → api-key-response.js} +0 -0
- /package/dist/models/{create-api-key-dto.js → create-api-key.js} +0 -0
- /package/dist/models/{create-docker-registry-dto.js → create-docker-registry.js} +0 -0
- /package/dist/models/{execute-request-dto.js → create-node.js} +0 -0
- /package/dist/models/{execute-response-dto.js → create-user.js} +0 -0
- /package/dist/models/{git-add-request-dto.js → execute-request.js} +0 -0
- /package/dist/models/{git-branch-request-dto.js → execute-response.js} +0 -0
- /package/dist/models/{git-clone-request-dto.js → file-info.js} +0 -0
- /package/dist/models/{git-commit-request-dto.js → file-status.js} +0 -0
- /package/dist/models/{git-repo-request-dto.js → git-add-request.js} +0 -0
- /package/dist/models/{replace-request-dto.js → git-branch-request.js} +0 -0
- /package/dist/models/{update-docker-registry-dto.js → git-clone-request.js} +0 -0
- /package/dist/models/{workspace-dto.js → git-commit-info.js} +0 -0
- /package/dist/models/{workspace-info-dto.js → git-commit-request.js} +0 -0
- /package/dist/models/{workspace-labels-dto.js → git-repo-request.js} +0 -0
package/api/toolbox-api.ts
CHANGED
|
@@ -22,21 +22,37 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
24
|
// @ts-ignore
|
|
25
|
-
import type {
|
|
25
|
+
import type { ExecuteRequest } from '../models';
|
|
26
26
|
// @ts-ignore
|
|
27
|
-
import type {
|
|
27
|
+
import type { ExecuteResponse } from '../models';
|
|
28
28
|
// @ts-ignore
|
|
29
|
-
import type {
|
|
29
|
+
import type { FileInfo } from '../models';
|
|
30
30
|
// @ts-ignore
|
|
31
|
-
import type {
|
|
31
|
+
import type { GitAddRequest } from '../models';
|
|
32
32
|
// @ts-ignore
|
|
33
|
-
import type {
|
|
33
|
+
import type { GitBranchRequest } from '../models';
|
|
34
34
|
// @ts-ignore
|
|
35
|
-
import type {
|
|
35
|
+
import type { GitCloneRequest } from '../models';
|
|
36
36
|
// @ts-ignore
|
|
37
|
-
import type {
|
|
37
|
+
import type { GitCommitInfo } from '../models';
|
|
38
38
|
// @ts-ignore
|
|
39
|
-
import type {
|
|
39
|
+
import type { GitCommitRequest } from '../models';
|
|
40
|
+
// @ts-ignore
|
|
41
|
+
import type { GitRepoRequest } from '../models';
|
|
42
|
+
// @ts-ignore
|
|
43
|
+
import type { GitStatus } from '../models';
|
|
44
|
+
// @ts-ignore
|
|
45
|
+
import type { ListBranchResponse } from '../models';
|
|
46
|
+
// @ts-ignore
|
|
47
|
+
import type { Match } from '../models';
|
|
48
|
+
// @ts-ignore
|
|
49
|
+
import type { ProjectDirResponse } from '../models';
|
|
50
|
+
// @ts-ignore
|
|
51
|
+
import type { ReplaceRequest } from '../models';
|
|
52
|
+
// @ts-ignore
|
|
53
|
+
import type { ReplaceResult } from '../models';
|
|
54
|
+
// @ts-ignore
|
|
55
|
+
import type { SearchFilesResponse } from '../models';
|
|
40
56
|
/**
|
|
41
57
|
* ToolboxApi - axios parameter creator
|
|
42
58
|
* @export
|
|
@@ -189,15 +205,15 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
189
205
|
* Execute command synchronously inside workspace
|
|
190
206
|
* @summary Execute command
|
|
191
207
|
* @param {string} workspaceId
|
|
192
|
-
* @param {
|
|
208
|
+
* @param {ExecuteRequest} executeRequest
|
|
193
209
|
* @param {*} [options] Override http request option.
|
|
194
210
|
* @throws {RequiredError}
|
|
195
211
|
*/
|
|
196
|
-
executeCommand: async (workspaceId: string,
|
|
212
|
+
executeCommand: async (workspaceId: string, executeRequest: ExecuteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
197
213
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
198
214
|
assertParamExists('executeCommand', 'workspaceId', workspaceId)
|
|
199
|
-
// verify required parameter '
|
|
200
|
-
assertParamExists('executeCommand', '
|
|
215
|
+
// verify required parameter 'executeRequest' is not null or undefined
|
|
216
|
+
assertParamExists('executeCommand', 'executeRequest', executeRequest)
|
|
201
217
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/process/execute`
|
|
202
218
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
203
219
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -222,7 +238,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
222
238
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
223
239
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
224
240
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
225
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
241
|
+
localVarRequestOptions.data = serializeDataIfNeeded(executeRequest, localVarRequestOptions, configuration)
|
|
226
242
|
|
|
227
243
|
return {
|
|
228
244
|
url: toPathString(localVarUrlObj),
|
|
@@ -368,15 +384,15 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
368
384
|
* Add files to git commit
|
|
369
385
|
* @summary Add files
|
|
370
386
|
* @param {string} workspaceId
|
|
371
|
-
* @param {
|
|
387
|
+
* @param {GitAddRequest} gitAddRequest
|
|
372
388
|
* @param {*} [options] Override http request option.
|
|
373
389
|
* @throws {RequiredError}
|
|
374
390
|
*/
|
|
375
|
-
gitAddFiles: async (workspaceId: string,
|
|
391
|
+
gitAddFiles: async (workspaceId: string, gitAddRequest: GitAddRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
376
392
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
377
393
|
assertParamExists('gitAddFiles', 'workspaceId', workspaceId)
|
|
378
|
-
// verify required parameter '
|
|
379
|
-
assertParamExists('gitAddFiles', '
|
|
394
|
+
// verify required parameter 'gitAddRequest' is not null or undefined
|
|
395
|
+
assertParamExists('gitAddFiles', 'gitAddRequest', gitAddRequest)
|
|
380
396
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/add`
|
|
381
397
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
382
398
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -401,7 +417,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
401
417
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
402
418
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
403
419
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
404
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
420
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitAddRequest, localVarRequestOptions, configuration)
|
|
405
421
|
|
|
406
422
|
return {
|
|
407
423
|
url: toPathString(localVarUrlObj),
|
|
@@ -412,15 +428,15 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
412
428
|
* Clone git repository
|
|
413
429
|
* @summary Clone repository
|
|
414
430
|
* @param {string} workspaceId
|
|
415
|
-
* @param {
|
|
431
|
+
* @param {GitCloneRequest} gitCloneRequest
|
|
416
432
|
* @param {*} [options] Override http request option.
|
|
417
433
|
* @throws {RequiredError}
|
|
418
434
|
*/
|
|
419
|
-
gitCloneRepository: async (workspaceId: string,
|
|
435
|
+
gitCloneRepository: async (workspaceId: string, gitCloneRequest: GitCloneRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
420
436
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
421
437
|
assertParamExists('gitCloneRepository', 'workspaceId', workspaceId)
|
|
422
|
-
// verify required parameter '
|
|
423
|
-
assertParamExists('gitCloneRepository', '
|
|
438
|
+
// verify required parameter 'gitCloneRequest' is not null or undefined
|
|
439
|
+
assertParamExists('gitCloneRepository', 'gitCloneRequest', gitCloneRequest)
|
|
424
440
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/clone`
|
|
425
441
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
426
442
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -445,7 +461,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
445
461
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
446
462
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
447
463
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
448
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
464
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitCloneRequest, localVarRequestOptions, configuration)
|
|
449
465
|
|
|
450
466
|
return {
|
|
451
467
|
url: toPathString(localVarUrlObj),
|
|
@@ -456,15 +472,15 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
456
472
|
* Commit changes to git repository
|
|
457
473
|
* @summary Commit changes
|
|
458
474
|
* @param {string} workspaceId
|
|
459
|
-
* @param {
|
|
475
|
+
* @param {GitCommitRequest} gitCommitRequest
|
|
460
476
|
* @param {*} [options] Override http request option.
|
|
461
477
|
* @throws {RequiredError}
|
|
462
478
|
*/
|
|
463
|
-
gitCommitChanges: async (workspaceId: string,
|
|
479
|
+
gitCommitChanges: async (workspaceId: string, gitCommitRequest: GitCommitRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
464
480
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
465
481
|
assertParamExists('gitCommitChanges', 'workspaceId', workspaceId)
|
|
466
|
-
// verify required parameter '
|
|
467
|
-
assertParamExists('gitCommitChanges', '
|
|
482
|
+
// verify required parameter 'gitCommitRequest' is not null or undefined
|
|
483
|
+
assertParamExists('gitCommitChanges', 'gitCommitRequest', gitCommitRequest)
|
|
468
484
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/commit`
|
|
469
485
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
470
486
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -489,7 +505,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
489
505
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
490
506
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
491
507
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
492
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
508
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitCommitRequest, localVarRequestOptions, configuration)
|
|
493
509
|
|
|
494
510
|
return {
|
|
495
511
|
url: toPathString(localVarUrlObj),
|
|
@@ -500,15 +516,15 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
500
516
|
* Create branch on git repository
|
|
501
517
|
* @summary Create branch
|
|
502
518
|
* @param {string} workspaceId
|
|
503
|
-
* @param {
|
|
519
|
+
* @param {GitBranchRequest} gitBranchRequest
|
|
504
520
|
* @param {*} [options] Override http request option.
|
|
505
521
|
* @throws {RequiredError}
|
|
506
522
|
*/
|
|
507
|
-
gitCreateBranch: async (workspaceId: string,
|
|
523
|
+
gitCreateBranch: async (workspaceId: string, gitBranchRequest: GitBranchRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
508
524
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
509
525
|
assertParamExists('gitCreateBranch', 'workspaceId', workspaceId)
|
|
510
|
-
// verify required parameter '
|
|
511
|
-
assertParamExists('gitCreateBranch', '
|
|
526
|
+
// verify required parameter 'gitBranchRequest' is not null or undefined
|
|
527
|
+
assertParamExists('gitCreateBranch', 'gitBranchRequest', gitBranchRequest)
|
|
512
528
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/branches`
|
|
513
529
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
514
530
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -533,7 +549,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
533
549
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
534
550
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
535
551
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
536
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
552
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitBranchRequest, localVarRequestOptions, configuration)
|
|
537
553
|
|
|
538
554
|
return {
|
|
539
555
|
url: toPathString(localVarUrlObj),
|
|
@@ -679,15 +695,15 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
679
695
|
* Pull changes from remote
|
|
680
696
|
* @summary Pull changes
|
|
681
697
|
* @param {string} workspaceId
|
|
682
|
-
* @param {
|
|
698
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
683
699
|
* @param {*} [options] Override http request option.
|
|
684
700
|
* @throws {RequiredError}
|
|
685
701
|
*/
|
|
686
|
-
gitPullChanges: async (workspaceId: string,
|
|
702
|
+
gitPullChanges: async (workspaceId: string, gitRepoRequest: GitRepoRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
687
703
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
688
704
|
assertParamExists('gitPullChanges', 'workspaceId', workspaceId)
|
|
689
|
-
// verify required parameter '
|
|
690
|
-
assertParamExists('gitPullChanges', '
|
|
705
|
+
// verify required parameter 'gitRepoRequest' is not null or undefined
|
|
706
|
+
assertParamExists('gitPullChanges', 'gitRepoRequest', gitRepoRequest)
|
|
691
707
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/pull`
|
|
692
708
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
693
709
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -712,7 +728,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
712
728
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
713
729
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
714
730
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
715
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
731
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitRepoRequest, localVarRequestOptions, configuration)
|
|
716
732
|
|
|
717
733
|
return {
|
|
718
734
|
url: toPathString(localVarUrlObj),
|
|
@@ -723,15 +739,15 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
723
739
|
* Push changes to remote
|
|
724
740
|
* @summary Push changes
|
|
725
741
|
* @param {string} workspaceId
|
|
726
|
-
* @param {
|
|
742
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
727
743
|
* @param {*} [options] Override http request option.
|
|
728
744
|
* @throws {RequiredError}
|
|
729
745
|
*/
|
|
730
|
-
gitPushChanges: async (workspaceId: string,
|
|
746
|
+
gitPushChanges: async (workspaceId: string, gitRepoRequest: GitRepoRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
731
747
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
732
748
|
assertParamExists('gitPushChanges', 'workspaceId', workspaceId)
|
|
733
|
-
// verify required parameter '
|
|
734
|
-
assertParamExists('gitPushChanges', '
|
|
749
|
+
// verify required parameter 'gitRepoRequest' is not null or undefined
|
|
750
|
+
assertParamExists('gitPushChanges', 'gitRepoRequest', gitRepoRequest)
|
|
735
751
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/push`
|
|
736
752
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
737
753
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -756,7 +772,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
756
772
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
757
773
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
758
774
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
759
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
775
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitRepoRequest, localVarRequestOptions, configuration)
|
|
760
776
|
|
|
761
777
|
return {
|
|
762
778
|
url: toPathString(localVarUrlObj),
|
|
@@ -862,15 +878,15 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
862
878
|
* Replace text/pattern in multiple files inside workspace
|
|
863
879
|
* @summary Replace in files
|
|
864
880
|
* @param {string} workspaceId
|
|
865
|
-
* @param {
|
|
881
|
+
* @param {ReplaceRequest} replaceRequest
|
|
866
882
|
* @param {*} [options] Override http request option.
|
|
867
883
|
* @throws {RequiredError}
|
|
868
884
|
*/
|
|
869
|
-
replaceInFiles: async (workspaceId: string,
|
|
885
|
+
replaceInFiles: async (workspaceId: string, replaceRequest: ReplaceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
870
886
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
871
887
|
assertParamExists('replaceInFiles', 'workspaceId', workspaceId)
|
|
872
|
-
// verify required parameter '
|
|
873
|
-
assertParamExists('replaceInFiles', '
|
|
888
|
+
// verify required parameter 'replaceRequest' is not null or undefined
|
|
889
|
+
assertParamExists('replaceInFiles', 'replaceRequest', replaceRequest)
|
|
874
890
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/files/replace`
|
|
875
891
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
876
892
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -895,7 +911,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
895
911
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
896
912
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
897
913
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
898
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
914
|
+
localVarRequestOptions.data = serializeDataIfNeeded(replaceRequest, localVarRequestOptions, configuration)
|
|
899
915
|
|
|
900
916
|
return {
|
|
901
917
|
url: toPathString(localVarUrlObj),
|
|
@@ -1121,7 +1137,7 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1121
1137
|
* @param {*} [options] Override http request option.
|
|
1122
1138
|
* @throws {RequiredError}
|
|
1123
1139
|
*/
|
|
1124
|
-
async downloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1140
|
+
async downloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
|
|
1125
1141
|
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(workspaceId, path, options);
|
|
1126
1142
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1127
1143
|
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.downloadFile']?.[localVarOperationServerIndex]?.url;
|
|
@@ -1131,12 +1147,12 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1131
1147
|
* Execute command synchronously inside workspace
|
|
1132
1148
|
* @summary Execute command
|
|
1133
1149
|
* @param {string} workspaceId
|
|
1134
|
-
* @param {
|
|
1150
|
+
* @param {ExecuteRequest} executeRequest
|
|
1135
1151
|
* @param {*} [options] Override http request option.
|
|
1136
1152
|
* @throws {RequiredError}
|
|
1137
1153
|
*/
|
|
1138
|
-
async executeCommand(workspaceId: string,
|
|
1139
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.executeCommand(workspaceId,
|
|
1154
|
+
async executeCommand(workspaceId: string, executeRequest: ExecuteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExecuteResponse>> {
|
|
1155
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.executeCommand(workspaceId, executeRequest, options);
|
|
1140
1156
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1141
1157
|
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.executeCommand']?.[localVarOperationServerIndex]?.url;
|
|
1142
1158
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1150,7 +1166,7 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1150
1166
|
* @param {*} [options] Override http request option.
|
|
1151
1167
|
* @throws {RequiredError}
|
|
1152
1168
|
*/
|
|
1153
|
-
async findInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1169
|
+
async findInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Match>>> {
|
|
1154
1170
|
const localVarAxiosArgs = await localVarAxiosParamCreator.findInFiles(workspaceId, path, pattern, options);
|
|
1155
1171
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1156
1172
|
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.findInFiles']?.[localVarOperationServerIndex]?.url;
|
|
@@ -1164,7 +1180,7 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1164
1180
|
* @param {*} [options] Override http request option.
|
|
1165
1181
|
* @throws {RequiredError}
|
|
1166
1182
|
*/
|
|
1167
|
-
async getFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1183
|
+
async getFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileInfo>> {
|
|
1168
1184
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getFileInfo(workspaceId, path, options);
|
|
1169
1185
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1170
1186
|
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.getFileInfo']?.[localVarOperationServerIndex]?.url;
|
|
@@ -1177,7 +1193,7 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1177
1193
|
* @param {*} [options] Override http request option.
|
|
1178
1194
|
* @throws {RequiredError}
|
|
1179
1195
|
*/
|
|
1180
|
-
async getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1196
|
+
async getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectDirResponse>> {
|
|
1181
1197
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectDir(workspaceId, options);
|
|
1182
1198
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1183
1199
|
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.getProjectDir']?.[localVarOperationServerIndex]?.url;
|
|
@@ -1187,12 +1203,12 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1187
1203
|
* Add files to git commit
|
|
1188
1204
|
* @summary Add files
|
|
1189
1205
|
* @param {string} workspaceId
|
|
1190
|
-
* @param {
|
|
1206
|
+
* @param {GitAddRequest} gitAddRequest
|
|
1191
1207
|
* @param {*} [options] Override http request option.
|
|
1192
1208
|
* @throws {RequiredError}
|
|
1193
1209
|
*/
|
|
1194
|
-
async gitAddFiles(workspaceId: string,
|
|
1195
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.gitAddFiles(workspaceId,
|
|
1210
|
+
async gitAddFiles(workspaceId: string, gitAddRequest: GitAddRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1211
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.gitAddFiles(workspaceId, gitAddRequest, options);
|
|
1196
1212
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1197
1213
|
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitAddFiles']?.[localVarOperationServerIndex]?.url;
|
|
1198
1214
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1201,12 +1217,12 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1201
1217
|
* Clone git repository
|
|
1202
1218
|
* @summary Clone repository
|
|
1203
1219
|
* @param {string} workspaceId
|
|
1204
|
-
* @param {
|
|
1220
|
+
* @param {GitCloneRequest} gitCloneRequest
|
|
1205
1221
|
* @param {*} [options] Override http request option.
|
|
1206
1222
|
* @throws {RequiredError}
|
|
1207
1223
|
*/
|
|
1208
|
-
async gitCloneRepository(workspaceId: string,
|
|
1209
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.gitCloneRepository(workspaceId,
|
|
1224
|
+
async gitCloneRepository(workspaceId: string, gitCloneRequest: GitCloneRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1225
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.gitCloneRepository(workspaceId, gitCloneRequest, options);
|
|
1210
1226
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1211
1227
|
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitCloneRepository']?.[localVarOperationServerIndex]?.url;
|
|
1212
1228
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1215,12 +1231,12 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1215
1231
|
* Commit changes to git repository
|
|
1216
1232
|
* @summary Commit changes
|
|
1217
1233
|
* @param {string} workspaceId
|
|
1218
|
-
* @param {
|
|
1234
|
+
* @param {GitCommitRequest} gitCommitRequest
|
|
1219
1235
|
* @param {*} [options] Override http request option.
|
|
1220
1236
|
* @throws {RequiredError}
|
|
1221
1237
|
*/
|
|
1222
|
-
async gitCommitChanges(workspaceId: string,
|
|
1223
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.gitCommitChanges(workspaceId,
|
|
1238
|
+
async gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitCommitRequest>> {
|
|
1239
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.gitCommitChanges(workspaceId, gitCommitRequest, options);
|
|
1224
1240
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1225
1241
|
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitCommitChanges']?.[localVarOperationServerIndex]?.url;
|
|
1226
1242
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1229,12 +1245,12 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1229
1245
|
* Create branch on git repository
|
|
1230
1246
|
* @summary Create branch
|
|
1231
1247
|
* @param {string} workspaceId
|
|
1232
|
-
* @param {
|
|
1248
|
+
* @param {GitBranchRequest} gitBranchRequest
|
|
1233
1249
|
* @param {*} [options] Override http request option.
|
|
1234
1250
|
* @throws {RequiredError}
|
|
1235
1251
|
*/
|
|
1236
|
-
async gitCreateBranch(workspaceId: string,
|
|
1237
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.gitCreateBranch(workspaceId,
|
|
1252
|
+
async gitCreateBranch(workspaceId: string, gitBranchRequest: GitBranchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1253
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.gitCreateBranch(workspaceId, gitBranchRequest, options);
|
|
1238
1254
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1239
1255
|
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitCreateBranch']?.[localVarOperationServerIndex]?.url;
|
|
1240
1256
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1247,7 +1263,7 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1247
1263
|
* @param {*} [options] Override http request option.
|
|
1248
1264
|
* @throws {RequiredError}
|
|
1249
1265
|
*/
|
|
1250
|
-
async gitGetHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1266
|
+
async gitGetHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GitCommitInfo>>> {
|
|
1251
1267
|
const localVarAxiosArgs = await localVarAxiosParamCreator.gitGetHistory(workspaceId, path, options);
|
|
1252
1268
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1253
1269
|
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitGetHistory']?.[localVarOperationServerIndex]?.url;
|
|
@@ -1261,7 +1277,7 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1261
1277
|
* @param {*} [options] Override http request option.
|
|
1262
1278
|
* @throws {RequiredError}
|
|
1263
1279
|
*/
|
|
1264
|
-
async gitGetStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1280
|
+
async gitGetStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitStatus>> {
|
|
1265
1281
|
const localVarAxiosArgs = await localVarAxiosParamCreator.gitGetStatus(workspaceId, path, options);
|
|
1266
1282
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1267
1283
|
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitGetStatus']?.[localVarOperationServerIndex]?.url;
|
|
@@ -1275,7 +1291,7 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1275
1291
|
* @param {*} [options] Override http request option.
|
|
1276
1292
|
* @throws {RequiredError}
|
|
1277
1293
|
*/
|
|
1278
|
-
async gitListBranches(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1294
|
+
async gitListBranches(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBranchResponse>> {
|
|
1279
1295
|
const localVarAxiosArgs = await localVarAxiosParamCreator.gitListBranches(workspaceId, path, options);
|
|
1280
1296
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1281
1297
|
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitListBranches']?.[localVarOperationServerIndex]?.url;
|
|
@@ -1285,12 +1301,12 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1285
1301
|
* Pull changes from remote
|
|
1286
1302
|
* @summary Pull changes
|
|
1287
1303
|
* @param {string} workspaceId
|
|
1288
|
-
* @param {
|
|
1304
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
1289
1305
|
* @param {*} [options] Override http request option.
|
|
1290
1306
|
* @throws {RequiredError}
|
|
1291
1307
|
*/
|
|
1292
|
-
async gitPullChanges(workspaceId: string,
|
|
1293
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.gitPullChanges(workspaceId,
|
|
1308
|
+
async gitPullChanges(workspaceId: string, gitRepoRequest: GitRepoRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1309
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.gitPullChanges(workspaceId, gitRepoRequest, options);
|
|
1294
1310
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1295
1311
|
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitPullChanges']?.[localVarOperationServerIndex]?.url;
|
|
1296
1312
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1299,12 +1315,12 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1299
1315
|
* Push changes to remote
|
|
1300
1316
|
* @summary Push changes
|
|
1301
1317
|
* @param {string} workspaceId
|
|
1302
|
-
* @param {
|
|
1318
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
1303
1319
|
* @param {*} [options] Override http request option.
|
|
1304
1320
|
* @throws {RequiredError}
|
|
1305
1321
|
*/
|
|
1306
|
-
async gitPushChanges(workspaceId: string,
|
|
1307
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.gitPushChanges(workspaceId,
|
|
1322
|
+
async gitPushChanges(workspaceId: string, gitRepoRequest: GitRepoRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1323
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.gitPushChanges(workspaceId, gitRepoRequest, options);
|
|
1308
1324
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1309
1325
|
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitPushChanges']?.[localVarOperationServerIndex]?.url;
|
|
1310
1326
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1317,7 +1333,7 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1317
1333
|
* @param {*} [options] Override http request option.
|
|
1318
1334
|
* @throws {RequiredError}
|
|
1319
1335
|
*/
|
|
1320
|
-
async listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1336
|
+
async listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FileInfo>>> {
|
|
1321
1337
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listFiles(workspaceId, path, options);
|
|
1322
1338
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1323
1339
|
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.listFiles']?.[localVarOperationServerIndex]?.url;
|
|
@@ -1342,12 +1358,12 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1342
1358
|
* Replace text/pattern in multiple files inside workspace
|
|
1343
1359
|
* @summary Replace in files
|
|
1344
1360
|
* @param {string} workspaceId
|
|
1345
|
-
* @param {
|
|
1361
|
+
* @param {ReplaceRequest} replaceRequest
|
|
1346
1362
|
* @param {*} [options] Override http request option.
|
|
1347
1363
|
* @throws {RequiredError}
|
|
1348
1364
|
*/
|
|
1349
|
-
async replaceInFiles(workspaceId: string,
|
|
1350
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.replaceInFiles(workspaceId,
|
|
1365
|
+
async replaceInFiles(workspaceId: string, replaceRequest: ReplaceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReplaceResult>>> {
|
|
1366
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.replaceInFiles(workspaceId, replaceRequest, options);
|
|
1351
1367
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1352
1368
|
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.replaceInFiles']?.[localVarOperationServerIndex]?.url;
|
|
1353
1369
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1361,7 +1377,7 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1361
1377
|
* @param {*} [options] Override http request option.
|
|
1362
1378
|
* @throws {RequiredError}
|
|
1363
1379
|
*/
|
|
1364
|
-
async searchFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1380
|
+
async searchFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchFilesResponse>> {
|
|
1365
1381
|
const localVarAxiosArgs = await localVarAxiosParamCreator.searchFiles(workspaceId, path, pattern, options);
|
|
1366
1382
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1367
1383
|
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.searchFiles']?.[localVarOperationServerIndex]?.url;
|
|
@@ -1440,19 +1456,19 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
|
|
|
1440
1456
|
* @param {*} [options] Override http request option.
|
|
1441
1457
|
* @throws {RequiredError}
|
|
1442
1458
|
*/
|
|
1443
|
-
downloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1459
|
+
downloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<File> {
|
|
1444
1460
|
return localVarFp.downloadFile(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
1445
1461
|
},
|
|
1446
1462
|
/**
|
|
1447
1463
|
* Execute command synchronously inside workspace
|
|
1448
1464
|
* @summary Execute command
|
|
1449
1465
|
* @param {string} workspaceId
|
|
1450
|
-
* @param {
|
|
1466
|
+
* @param {ExecuteRequest} executeRequest
|
|
1451
1467
|
* @param {*} [options] Override http request option.
|
|
1452
1468
|
* @throws {RequiredError}
|
|
1453
1469
|
*/
|
|
1454
|
-
executeCommand(workspaceId: string,
|
|
1455
|
-
return localVarFp.executeCommand(workspaceId,
|
|
1470
|
+
executeCommand(workspaceId: string, executeRequest: ExecuteRequest, options?: RawAxiosRequestConfig): AxiosPromise<ExecuteResponse> {
|
|
1471
|
+
return localVarFp.executeCommand(workspaceId, executeRequest, options).then((request) => request(axios, basePath));
|
|
1456
1472
|
},
|
|
1457
1473
|
/**
|
|
1458
1474
|
* Search for text/pattern inside workspace files
|
|
@@ -1463,7 +1479,7 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
|
|
|
1463
1479
|
* @param {*} [options] Override http request option.
|
|
1464
1480
|
* @throws {RequiredError}
|
|
1465
1481
|
*/
|
|
1466
|
-
findInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1482
|
+
findInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Match>> {
|
|
1467
1483
|
return localVarFp.findInFiles(workspaceId, path, pattern, options).then((request) => request(axios, basePath));
|
|
1468
1484
|
},
|
|
1469
1485
|
/**
|
|
@@ -1474,7 +1490,7 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
|
|
|
1474
1490
|
* @param {*} [options] Override http request option.
|
|
1475
1491
|
* @throws {RequiredError}
|
|
1476
1492
|
*/
|
|
1477
|
-
getFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1493
|
+
getFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<FileInfo> {
|
|
1478
1494
|
return localVarFp.getFileInfo(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
1479
1495
|
},
|
|
1480
1496
|
/**
|
|
@@ -1484,52 +1500,52 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
|
|
|
1484
1500
|
* @param {*} [options] Override http request option.
|
|
1485
1501
|
* @throws {RequiredError}
|
|
1486
1502
|
*/
|
|
1487
|
-
getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1503
|
+
getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<ProjectDirResponse> {
|
|
1488
1504
|
return localVarFp.getProjectDir(workspaceId, options).then((request) => request(axios, basePath));
|
|
1489
1505
|
},
|
|
1490
1506
|
/**
|
|
1491
1507
|
* Add files to git commit
|
|
1492
1508
|
* @summary Add files
|
|
1493
1509
|
* @param {string} workspaceId
|
|
1494
|
-
* @param {
|
|
1510
|
+
* @param {GitAddRequest} gitAddRequest
|
|
1495
1511
|
* @param {*} [options] Override http request option.
|
|
1496
1512
|
* @throws {RequiredError}
|
|
1497
1513
|
*/
|
|
1498
|
-
gitAddFiles(workspaceId: string,
|
|
1499
|
-
return localVarFp.gitAddFiles(workspaceId,
|
|
1514
|
+
gitAddFiles(workspaceId: string, gitAddRequest: GitAddRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1515
|
+
return localVarFp.gitAddFiles(workspaceId, gitAddRequest, options).then((request) => request(axios, basePath));
|
|
1500
1516
|
},
|
|
1501
1517
|
/**
|
|
1502
1518
|
* Clone git repository
|
|
1503
1519
|
* @summary Clone repository
|
|
1504
1520
|
* @param {string} workspaceId
|
|
1505
|
-
* @param {
|
|
1521
|
+
* @param {GitCloneRequest} gitCloneRequest
|
|
1506
1522
|
* @param {*} [options] Override http request option.
|
|
1507
1523
|
* @throws {RequiredError}
|
|
1508
1524
|
*/
|
|
1509
|
-
gitCloneRepository(workspaceId: string,
|
|
1510
|
-
return localVarFp.gitCloneRepository(workspaceId,
|
|
1525
|
+
gitCloneRepository(workspaceId: string, gitCloneRequest: GitCloneRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1526
|
+
return localVarFp.gitCloneRepository(workspaceId, gitCloneRequest, options).then((request) => request(axios, basePath));
|
|
1511
1527
|
},
|
|
1512
1528
|
/**
|
|
1513
1529
|
* Commit changes to git repository
|
|
1514
1530
|
* @summary Commit changes
|
|
1515
1531
|
* @param {string} workspaceId
|
|
1516
|
-
* @param {
|
|
1532
|
+
* @param {GitCommitRequest} gitCommitRequest
|
|
1517
1533
|
* @param {*} [options] Override http request option.
|
|
1518
1534
|
* @throws {RequiredError}
|
|
1519
1535
|
*/
|
|
1520
|
-
gitCommitChanges(workspaceId: string,
|
|
1521
|
-
return localVarFp.gitCommitChanges(workspaceId,
|
|
1536
|
+
gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): AxiosPromise<GitCommitRequest> {
|
|
1537
|
+
return localVarFp.gitCommitChanges(workspaceId, gitCommitRequest, options).then((request) => request(axios, basePath));
|
|
1522
1538
|
},
|
|
1523
1539
|
/**
|
|
1524
1540
|
* Create branch on git repository
|
|
1525
1541
|
* @summary Create branch
|
|
1526
1542
|
* @param {string} workspaceId
|
|
1527
|
-
* @param {
|
|
1543
|
+
* @param {GitBranchRequest} gitBranchRequest
|
|
1528
1544
|
* @param {*} [options] Override http request option.
|
|
1529
1545
|
* @throws {RequiredError}
|
|
1530
1546
|
*/
|
|
1531
|
-
gitCreateBranch(workspaceId: string,
|
|
1532
|
-
return localVarFp.gitCreateBranch(workspaceId,
|
|
1547
|
+
gitCreateBranch(workspaceId: string, gitBranchRequest: GitBranchRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1548
|
+
return localVarFp.gitCreateBranch(workspaceId, gitBranchRequest, options).then((request) => request(axios, basePath));
|
|
1533
1549
|
},
|
|
1534
1550
|
/**
|
|
1535
1551
|
* Get commit history from git repository
|
|
@@ -1539,7 +1555,7 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
|
|
|
1539
1555
|
* @param {*} [options] Override http request option.
|
|
1540
1556
|
* @throws {RequiredError}
|
|
1541
1557
|
*/
|
|
1542
|
-
gitGetHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1558
|
+
gitGetHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<GitCommitInfo>> {
|
|
1543
1559
|
return localVarFp.gitGetHistory(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
1544
1560
|
},
|
|
1545
1561
|
/**
|
|
@@ -1550,7 +1566,7 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
|
|
|
1550
1566
|
* @param {*} [options] Override http request option.
|
|
1551
1567
|
* @throws {RequiredError}
|
|
1552
1568
|
*/
|
|
1553
|
-
gitGetStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1569
|
+
gitGetStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<GitStatus> {
|
|
1554
1570
|
return localVarFp.gitGetStatus(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
1555
1571
|
},
|
|
1556
1572
|
/**
|
|
@@ -1561,30 +1577,30 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
|
|
|
1561
1577
|
* @param {*} [options] Override http request option.
|
|
1562
1578
|
* @throws {RequiredError}
|
|
1563
1579
|
*/
|
|
1564
|
-
gitListBranches(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1580
|
+
gitListBranches(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<ListBranchResponse> {
|
|
1565
1581
|
return localVarFp.gitListBranches(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
1566
1582
|
},
|
|
1567
1583
|
/**
|
|
1568
1584
|
* Pull changes from remote
|
|
1569
1585
|
* @summary Pull changes
|
|
1570
1586
|
* @param {string} workspaceId
|
|
1571
|
-
* @param {
|
|
1587
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
1572
1588
|
* @param {*} [options] Override http request option.
|
|
1573
1589
|
* @throws {RequiredError}
|
|
1574
1590
|
*/
|
|
1575
|
-
gitPullChanges(workspaceId: string,
|
|
1576
|
-
return localVarFp.gitPullChanges(workspaceId,
|
|
1591
|
+
gitPullChanges(workspaceId: string, gitRepoRequest: GitRepoRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1592
|
+
return localVarFp.gitPullChanges(workspaceId, gitRepoRequest, options).then((request) => request(axios, basePath));
|
|
1577
1593
|
},
|
|
1578
1594
|
/**
|
|
1579
1595
|
* Push changes to remote
|
|
1580
1596
|
* @summary Push changes
|
|
1581
1597
|
* @param {string} workspaceId
|
|
1582
|
-
* @param {
|
|
1598
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
1583
1599
|
* @param {*} [options] Override http request option.
|
|
1584
1600
|
* @throws {RequiredError}
|
|
1585
1601
|
*/
|
|
1586
|
-
gitPushChanges(workspaceId: string,
|
|
1587
|
-
return localVarFp.gitPushChanges(workspaceId,
|
|
1602
|
+
gitPushChanges(workspaceId: string, gitRepoRequest: GitRepoRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1603
|
+
return localVarFp.gitPushChanges(workspaceId, gitRepoRequest, options).then((request) => request(axios, basePath));
|
|
1588
1604
|
},
|
|
1589
1605
|
/**
|
|
1590
1606
|
*
|
|
@@ -1594,7 +1610,7 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
|
|
|
1594
1610
|
* @param {*} [options] Override http request option.
|
|
1595
1611
|
* @throws {RequiredError}
|
|
1596
1612
|
*/
|
|
1597
|
-
listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1613
|
+
listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<FileInfo>> {
|
|
1598
1614
|
return localVarFp.listFiles(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
1599
1615
|
},
|
|
1600
1616
|
/**
|
|
@@ -1613,12 +1629,12 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
|
|
|
1613
1629
|
* Replace text/pattern in multiple files inside workspace
|
|
1614
1630
|
* @summary Replace in files
|
|
1615
1631
|
* @param {string} workspaceId
|
|
1616
|
-
* @param {
|
|
1632
|
+
* @param {ReplaceRequest} replaceRequest
|
|
1617
1633
|
* @param {*} [options] Override http request option.
|
|
1618
1634
|
* @throws {RequiredError}
|
|
1619
1635
|
*/
|
|
1620
|
-
replaceInFiles(workspaceId: string,
|
|
1621
|
-
return localVarFp.replaceInFiles(workspaceId,
|
|
1636
|
+
replaceInFiles(workspaceId: string, replaceRequest: ReplaceRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ReplaceResult>> {
|
|
1637
|
+
return localVarFp.replaceInFiles(workspaceId, replaceRequest, options).then((request) => request(axios, basePath));
|
|
1622
1638
|
},
|
|
1623
1639
|
/**
|
|
1624
1640
|
* Search for files inside workspace
|
|
@@ -1629,7 +1645,7 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
|
|
|
1629
1645
|
* @param {*} [options] Override http request option.
|
|
1630
1646
|
* @throws {RequiredError}
|
|
1631
1647
|
*/
|
|
1632
|
-
searchFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
1648
|
+
searchFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): AxiosPromise<SearchFilesResponse> {
|
|
1633
1649
|
return localVarFp.searchFiles(workspaceId, path, pattern, options).then((request) => request(axios, basePath));
|
|
1634
1650
|
},
|
|
1635
1651
|
/**
|
|
@@ -1712,13 +1728,13 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1712
1728
|
* Execute command synchronously inside workspace
|
|
1713
1729
|
* @summary Execute command
|
|
1714
1730
|
* @param {string} workspaceId
|
|
1715
|
-
* @param {
|
|
1731
|
+
* @param {ExecuteRequest} executeRequest
|
|
1716
1732
|
* @param {*} [options] Override http request option.
|
|
1717
1733
|
* @throws {RequiredError}
|
|
1718
1734
|
* @memberof ToolboxApi
|
|
1719
1735
|
*/
|
|
1720
|
-
public executeCommand(workspaceId: string,
|
|
1721
|
-
return ToolboxApiFp(this.configuration).executeCommand(workspaceId,
|
|
1736
|
+
public executeCommand(workspaceId: string, executeRequest: ExecuteRequest, options?: RawAxiosRequestConfig) {
|
|
1737
|
+
return ToolboxApiFp(this.configuration).executeCommand(workspaceId, executeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1722
1738
|
}
|
|
1723
1739
|
|
|
1724
1740
|
/**
|
|
@@ -1764,52 +1780,52 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1764
1780
|
* Add files to git commit
|
|
1765
1781
|
* @summary Add files
|
|
1766
1782
|
* @param {string} workspaceId
|
|
1767
|
-
* @param {
|
|
1783
|
+
* @param {GitAddRequest} gitAddRequest
|
|
1768
1784
|
* @param {*} [options] Override http request option.
|
|
1769
1785
|
* @throws {RequiredError}
|
|
1770
1786
|
* @memberof ToolboxApi
|
|
1771
1787
|
*/
|
|
1772
|
-
public gitAddFiles(workspaceId: string,
|
|
1773
|
-
return ToolboxApiFp(this.configuration).gitAddFiles(workspaceId,
|
|
1788
|
+
public gitAddFiles(workspaceId: string, gitAddRequest: GitAddRequest, options?: RawAxiosRequestConfig) {
|
|
1789
|
+
return ToolboxApiFp(this.configuration).gitAddFiles(workspaceId, gitAddRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1774
1790
|
}
|
|
1775
1791
|
|
|
1776
1792
|
/**
|
|
1777
1793
|
* Clone git repository
|
|
1778
1794
|
* @summary Clone repository
|
|
1779
1795
|
* @param {string} workspaceId
|
|
1780
|
-
* @param {
|
|
1796
|
+
* @param {GitCloneRequest} gitCloneRequest
|
|
1781
1797
|
* @param {*} [options] Override http request option.
|
|
1782
1798
|
* @throws {RequiredError}
|
|
1783
1799
|
* @memberof ToolboxApi
|
|
1784
1800
|
*/
|
|
1785
|
-
public gitCloneRepository(workspaceId: string,
|
|
1786
|
-
return ToolboxApiFp(this.configuration).gitCloneRepository(workspaceId,
|
|
1801
|
+
public gitCloneRepository(workspaceId: string, gitCloneRequest: GitCloneRequest, options?: RawAxiosRequestConfig) {
|
|
1802
|
+
return ToolboxApiFp(this.configuration).gitCloneRepository(workspaceId, gitCloneRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1787
1803
|
}
|
|
1788
1804
|
|
|
1789
1805
|
/**
|
|
1790
1806
|
* Commit changes to git repository
|
|
1791
1807
|
* @summary Commit changes
|
|
1792
1808
|
* @param {string} workspaceId
|
|
1793
|
-
* @param {
|
|
1809
|
+
* @param {GitCommitRequest} gitCommitRequest
|
|
1794
1810
|
* @param {*} [options] Override http request option.
|
|
1795
1811
|
* @throws {RequiredError}
|
|
1796
1812
|
* @memberof ToolboxApi
|
|
1797
1813
|
*/
|
|
1798
|
-
public gitCommitChanges(workspaceId: string,
|
|
1799
|
-
return ToolboxApiFp(this.configuration).gitCommitChanges(workspaceId,
|
|
1814
|
+
public gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig) {
|
|
1815
|
+
return ToolboxApiFp(this.configuration).gitCommitChanges(workspaceId, gitCommitRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1800
1816
|
}
|
|
1801
1817
|
|
|
1802
1818
|
/**
|
|
1803
1819
|
* Create branch on git repository
|
|
1804
1820
|
* @summary Create branch
|
|
1805
1821
|
* @param {string} workspaceId
|
|
1806
|
-
* @param {
|
|
1822
|
+
* @param {GitBranchRequest} gitBranchRequest
|
|
1807
1823
|
* @param {*} [options] Override http request option.
|
|
1808
1824
|
* @throws {RequiredError}
|
|
1809
1825
|
* @memberof ToolboxApi
|
|
1810
1826
|
*/
|
|
1811
|
-
public gitCreateBranch(workspaceId: string,
|
|
1812
|
-
return ToolboxApiFp(this.configuration).gitCreateBranch(workspaceId,
|
|
1827
|
+
public gitCreateBranch(workspaceId: string, gitBranchRequest: GitBranchRequest, options?: RawAxiosRequestConfig) {
|
|
1828
|
+
return ToolboxApiFp(this.configuration).gitCreateBranch(workspaceId, gitBranchRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1813
1829
|
}
|
|
1814
1830
|
|
|
1815
1831
|
/**
|
|
@@ -1855,26 +1871,26 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1855
1871
|
* Pull changes from remote
|
|
1856
1872
|
* @summary Pull changes
|
|
1857
1873
|
* @param {string} workspaceId
|
|
1858
|
-
* @param {
|
|
1874
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
1859
1875
|
* @param {*} [options] Override http request option.
|
|
1860
1876
|
* @throws {RequiredError}
|
|
1861
1877
|
* @memberof ToolboxApi
|
|
1862
1878
|
*/
|
|
1863
|
-
public gitPullChanges(workspaceId: string,
|
|
1864
|
-
return ToolboxApiFp(this.configuration).gitPullChanges(workspaceId,
|
|
1879
|
+
public gitPullChanges(workspaceId: string, gitRepoRequest: GitRepoRequest, options?: RawAxiosRequestConfig) {
|
|
1880
|
+
return ToolboxApiFp(this.configuration).gitPullChanges(workspaceId, gitRepoRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1865
1881
|
}
|
|
1866
1882
|
|
|
1867
1883
|
/**
|
|
1868
1884
|
* Push changes to remote
|
|
1869
1885
|
* @summary Push changes
|
|
1870
1886
|
* @param {string} workspaceId
|
|
1871
|
-
* @param {
|
|
1887
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
1872
1888
|
* @param {*} [options] Override http request option.
|
|
1873
1889
|
* @throws {RequiredError}
|
|
1874
1890
|
* @memberof ToolboxApi
|
|
1875
1891
|
*/
|
|
1876
|
-
public gitPushChanges(workspaceId: string,
|
|
1877
|
-
return ToolboxApiFp(this.configuration).gitPushChanges(workspaceId,
|
|
1892
|
+
public gitPushChanges(workspaceId: string, gitRepoRequest: GitRepoRequest, options?: RawAxiosRequestConfig) {
|
|
1893
|
+
return ToolboxApiFp(this.configuration).gitPushChanges(workspaceId, gitRepoRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1878
1894
|
}
|
|
1879
1895
|
|
|
1880
1896
|
/**
|
|
@@ -1908,13 +1924,13 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1908
1924
|
* Replace text/pattern in multiple files inside workspace
|
|
1909
1925
|
* @summary Replace in files
|
|
1910
1926
|
* @param {string} workspaceId
|
|
1911
|
-
* @param {
|
|
1927
|
+
* @param {ReplaceRequest} replaceRequest
|
|
1912
1928
|
* @param {*} [options] Override http request option.
|
|
1913
1929
|
* @throws {RequiredError}
|
|
1914
1930
|
* @memberof ToolboxApi
|
|
1915
1931
|
*/
|
|
1916
|
-
public replaceInFiles(workspaceId: string,
|
|
1917
|
-
return ToolboxApiFp(this.configuration).replaceInFiles(workspaceId,
|
|
1932
|
+
public replaceInFiles(workspaceId: string, replaceRequest: ReplaceRequest, options?: RawAxiosRequestConfig) {
|
|
1933
|
+
return ToolboxApiFp(this.configuration).replaceInFiles(workspaceId, replaceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1918
1934
|
}
|
|
1919
1935
|
|
|
1920
1936
|
/**
|