@daytonaio/api-client 0.5.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +20 -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 +467 -467
- 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 +230 -230
- package/dist/api/toolbox-api.js +453 -453
- 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 +230 -230
- package/dist/esm/api/toolbox-api.js +453 -453
- 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/{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-request.d.ts} +6 -6
- package/dist/esm/models/{git-repo-request-dto.d.ts → git-repo-request.d.ts} +5 -5
- package/dist/esm/models/index.d.ts +19 -17
- package/dist/esm/models/index.js +19 -17
- package/dist/esm/models/{replace-request-dto.d.ts → replace-request.d.ts} +5 -5
- package/dist/esm/models/{update-docker-registry-dto.d.ts → update-docker-registry.d.ts} +8 -8
- package/dist/{models/workspace-info-dto.d.ts → esm/models/workspace-info.d.ts} +5 -5
- 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/{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-request.d.ts} +6 -6
- package/dist/models/{git-repo-request-dto.d.ts → git-repo-request.d.ts} +5 -5
- package/dist/models/index.d.ts +19 -17
- package/dist/models/index.js +19 -17
- package/dist/models/{replace-request-dto.d.ts → replace-request.d.ts} +5 -5
- package/dist/models/{update-docker-registry-dto.d.ts → update-docker-registry.d.ts} +8 -8
- package/dist/{esm/models/workspace-info-dto.d.ts → models/workspace-info.d.ts} +5 -5
- 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/{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-request.ts} +6 -6
- package/models/{git-repo-request-dto.ts → git-repo-request.ts} +5 -5
- package/models/index.ts +19 -17
- package/models/{replace-request-dto.ts → replace-request.ts} +5 -5
- 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 → git-add-request.js} +0 -0
- /package/dist/esm/models/{git-commit-request-dto.js → git-branch-request.js} +0 -0
- /package/dist/esm/models/{git-repo-request-dto.js → git-clone-request.js} +0 -0
- /package/dist/esm/models/{replace-request-dto.js → git-commit-request.js} +0 -0
- /package/dist/esm/models/{update-docker-registry-dto.js → git-repo-request.js} +0 -0
- /package/dist/esm/models/{workspace-dto.js → replace-request.js} +0 -0
- /package/dist/esm/models/{workspace-info-dto.js → update-docker-registry.js} +0 -0
- /package/dist/esm/models/{workspace-labels-dto.js → workspace-info.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 → git-add-request.js} +0 -0
- /package/dist/models/{git-commit-request-dto.js → git-branch-request.js} +0 -0
- /package/dist/models/{git-repo-request-dto.js → git-clone-request.js} +0 -0
- /package/dist/models/{replace-request-dto.js → git-commit-request.js} +0 -0
- /package/dist/models/{update-docker-registry-dto.js → git-repo-request.js} +0 -0
- /package/dist/models/{workspace-dto.js → replace-request.js} +0 -0
- /package/dist/models/{workspace-info-dto.js → update-docker-registry.js} +0 -0
- /package/dist/models/{workspace-labels-dto.js → workspace-info.js} +0 -0
package/api/toolbox-api.ts
CHANGED
|
@@ -22,21 +22,21 @@ 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 { GitAddRequest } from '../models';
|
|
30
30
|
// @ts-ignore
|
|
31
|
-
import type {
|
|
31
|
+
import type { GitBranchRequest } from '../models';
|
|
32
32
|
// @ts-ignore
|
|
33
|
-
import type {
|
|
33
|
+
import type { GitCloneRequest } from '../models';
|
|
34
34
|
// @ts-ignore
|
|
35
|
-
import type {
|
|
35
|
+
import type { GitCommitRequest } from '../models';
|
|
36
36
|
// @ts-ignore
|
|
37
|
-
import type {
|
|
37
|
+
import type { GitRepoRequest } from '../models';
|
|
38
38
|
// @ts-ignore
|
|
39
|
-
import type {
|
|
39
|
+
import type { ReplaceRequest } from '../models';
|
|
40
40
|
/**
|
|
41
41
|
* ToolboxApi - axios parameter creator
|
|
42
42
|
* @export
|
|
@@ -44,16 +44,22 @@ import type { ReplaceRequestDto } from '../models';
|
|
|
44
44
|
export const ToolboxApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
45
45
|
return {
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
48
|
-
* @summary
|
|
47
|
+
* Create folder inside workspace
|
|
48
|
+
* @summary Create folder
|
|
49
49
|
* @param {string} workspaceId
|
|
50
|
+
* @param {string} path
|
|
51
|
+
* @param {string} mode
|
|
50
52
|
* @param {*} [options] Override http request option.
|
|
51
53
|
* @throws {RequiredError}
|
|
52
54
|
*/
|
|
53
|
-
|
|
55
|
+
createFolder: async (workspaceId: string, path: string, mode: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
54
56
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
55
|
-
assertParamExists('
|
|
56
|
-
|
|
57
|
+
assertParamExists('createFolder', 'workspaceId', workspaceId)
|
|
58
|
+
// verify required parameter 'path' is not null or undefined
|
|
59
|
+
assertParamExists('createFolder', 'path', path)
|
|
60
|
+
// verify required parameter 'mode' is not null or undefined
|
|
61
|
+
assertParamExists('createFolder', 'mode', mode)
|
|
62
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/files/folder`
|
|
57
63
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
58
64
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
59
65
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -62,7 +68,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
62
68
|
baseOptions = configuration.baseOptions;
|
|
63
69
|
}
|
|
64
70
|
|
|
65
|
-
const localVarRequestOptions = { method: '
|
|
71
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
66
72
|
const localVarHeaderParameter = {} as any;
|
|
67
73
|
const localVarQueryParameter = {} as any;
|
|
68
74
|
|
|
@@ -70,6 +76,14 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
70
76
|
// oauth required
|
|
71
77
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
72
78
|
|
|
79
|
+
if (path !== undefined) {
|
|
80
|
+
localVarQueryParameter['path'] = path;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
if (mode !== undefined) {
|
|
84
|
+
localVarQueryParameter['mode'] = mode;
|
|
85
|
+
}
|
|
86
|
+
|
|
73
87
|
|
|
74
88
|
|
|
75
89
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -82,16 +96,18 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
82
96
|
};
|
|
83
97
|
},
|
|
84
98
|
/**
|
|
85
|
-
*
|
|
86
|
-
* @summary
|
|
99
|
+
* Delete file inside workspace
|
|
100
|
+
* @summary Delete file
|
|
87
101
|
* @param {string} workspaceId
|
|
88
|
-
* @param {string}
|
|
102
|
+
* @param {string} path
|
|
89
103
|
* @param {*} [options] Override http request option.
|
|
90
104
|
* @throws {RequiredError}
|
|
91
105
|
*/
|
|
92
|
-
|
|
106
|
+
deleteFile: async (workspaceId: string, path: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
93
107
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
94
|
-
assertParamExists('
|
|
108
|
+
assertParamExists('deleteFile', 'workspaceId', workspaceId)
|
|
109
|
+
// verify required parameter 'path' is not null or undefined
|
|
110
|
+
assertParamExists('deleteFile', 'path', path)
|
|
95
111
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/files`
|
|
96
112
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
97
113
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -101,7 +117,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
101
117
|
baseOptions = configuration.baseOptions;
|
|
102
118
|
}
|
|
103
119
|
|
|
104
|
-
const localVarRequestOptions = { method: '
|
|
120
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
105
121
|
const localVarHeaderParameter = {} as any;
|
|
106
122
|
const localVarQueryParameter = {} as any;
|
|
107
123
|
|
|
@@ -125,22 +141,19 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
125
141
|
};
|
|
126
142
|
},
|
|
127
143
|
/**
|
|
128
|
-
*
|
|
129
|
-
* @summary
|
|
144
|
+
* Download file from workspace
|
|
145
|
+
* @summary Download file
|
|
130
146
|
* @param {string} workspaceId
|
|
131
147
|
* @param {string} path
|
|
132
|
-
* @param {string} mode
|
|
133
148
|
* @param {*} [options] Override http request option.
|
|
134
149
|
* @throws {RequiredError}
|
|
135
150
|
*/
|
|
136
|
-
|
|
151
|
+
downloadFile: async (workspaceId: string, path: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
137
152
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
138
|
-
assertParamExists('
|
|
153
|
+
assertParamExists('downloadFile', 'workspaceId', workspaceId)
|
|
139
154
|
// verify required parameter 'path' is not null or undefined
|
|
140
|
-
assertParamExists('
|
|
141
|
-
|
|
142
|
-
assertParamExists('toolboxControllerCreateFolder', 'mode', mode)
|
|
143
|
-
const localVarPath = `/toolbox/{workspaceId}/toolbox/files/folder`
|
|
155
|
+
assertParamExists('downloadFile', 'path', path)
|
|
156
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/files/download`
|
|
144
157
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
145
158
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
146
159
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -149,7 +162,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
149
162
|
baseOptions = configuration.baseOptions;
|
|
150
163
|
}
|
|
151
164
|
|
|
152
|
-
const localVarRequestOptions = { method: '
|
|
165
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
153
166
|
const localVarHeaderParameter = {} as any;
|
|
154
167
|
const localVarQueryParameter = {} as any;
|
|
155
168
|
|
|
@@ -161,10 +174,6 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
161
174
|
localVarQueryParameter['path'] = path;
|
|
162
175
|
}
|
|
163
176
|
|
|
164
|
-
if (mode !== undefined) {
|
|
165
|
-
localVarQueryParameter['mode'] = mode;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
177
|
|
|
169
178
|
|
|
170
179
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -177,19 +186,19 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
177
186
|
};
|
|
178
187
|
},
|
|
179
188
|
/**
|
|
180
|
-
*
|
|
181
|
-
* @summary
|
|
189
|
+
* Execute command synchronously inside workspace
|
|
190
|
+
* @summary Execute command
|
|
182
191
|
* @param {string} workspaceId
|
|
183
|
-
* @param {
|
|
192
|
+
* @param {ExecuteRequest} executeRequest
|
|
184
193
|
* @param {*} [options] Override http request option.
|
|
185
194
|
* @throws {RequiredError}
|
|
186
195
|
*/
|
|
187
|
-
|
|
196
|
+
executeCommand: async (workspaceId: string, executeRequest: ExecuteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
188
197
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
189
|
-
assertParamExists('
|
|
190
|
-
// verify required parameter '
|
|
191
|
-
assertParamExists('
|
|
192
|
-
const localVarPath = `/toolbox/{workspaceId}/toolbox/
|
|
198
|
+
assertParamExists('executeCommand', 'workspaceId', workspaceId)
|
|
199
|
+
// verify required parameter 'executeRequest' is not null or undefined
|
|
200
|
+
assertParamExists('executeCommand', 'executeRequest', executeRequest)
|
|
201
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/process/execute`
|
|
193
202
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
194
203
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
195
204
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -198,7 +207,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
198
207
|
baseOptions = configuration.baseOptions;
|
|
199
208
|
}
|
|
200
209
|
|
|
201
|
-
const localVarRequestOptions = { method: '
|
|
210
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
202
211
|
const localVarHeaderParameter = {} as any;
|
|
203
212
|
const localVarQueryParameter = {} as any;
|
|
204
213
|
|
|
@@ -206,15 +215,14 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
206
215
|
// oauth required
|
|
207
216
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
208
217
|
|
|
209
|
-
if (path !== undefined) {
|
|
210
|
-
localVarQueryParameter['path'] = path;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
218
|
|
|
214
219
|
|
|
220
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
221
|
+
|
|
215
222
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
216
223
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
217
224
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
225
|
+
localVarRequestOptions.data = serializeDataIfNeeded(executeRequest, localVarRequestOptions, configuration)
|
|
218
226
|
|
|
219
227
|
return {
|
|
220
228
|
url: toPathString(localVarUrlObj),
|
|
@@ -222,19 +230,22 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
222
230
|
};
|
|
223
231
|
},
|
|
224
232
|
/**
|
|
225
|
-
*
|
|
226
|
-
* @summary
|
|
233
|
+
* Search for text/pattern inside workspace files
|
|
234
|
+
* @summary Search for text/pattern in files
|
|
227
235
|
* @param {string} workspaceId
|
|
228
236
|
* @param {string} path
|
|
237
|
+
* @param {string} pattern
|
|
229
238
|
* @param {*} [options] Override http request option.
|
|
230
239
|
* @throws {RequiredError}
|
|
231
240
|
*/
|
|
232
|
-
|
|
241
|
+
findInFiles: async (workspaceId: string, path: string, pattern: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
233
242
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
234
|
-
assertParamExists('
|
|
243
|
+
assertParamExists('findInFiles', 'workspaceId', workspaceId)
|
|
235
244
|
// verify required parameter 'path' is not null or undefined
|
|
236
|
-
assertParamExists('
|
|
237
|
-
|
|
245
|
+
assertParamExists('findInFiles', 'path', path)
|
|
246
|
+
// verify required parameter 'pattern' is not null or undefined
|
|
247
|
+
assertParamExists('findInFiles', 'pattern', pattern)
|
|
248
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/files/find`
|
|
238
249
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
239
250
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
240
251
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -255,6 +266,10 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
255
266
|
localVarQueryParameter['path'] = path;
|
|
256
267
|
}
|
|
257
268
|
|
|
269
|
+
if (pattern !== undefined) {
|
|
270
|
+
localVarQueryParameter['pattern'] = pattern;
|
|
271
|
+
}
|
|
272
|
+
|
|
258
273
|
|
|
259
274
|
|
|
260
275
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -267,19 +282,19 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
267
282
|
};
|
|
268
283
|
},
|
|
269
284
|
/**
|
|
270
|
-
*
|
|
271
|
-
* @summary
|
|
285
|
+
* Get file info inside workspace
|
|
286
|
+
* @summary Get file info
|
|
272
287
|
* @param {string} workspaceId
|
|
273
|
-
* @param {
|
|
288
|
+
* @param {string} path
|
|
274
289
|
* @param {*} [options] Override http request option.
|
|
275
290
|
* @throws {RequiredError}
|
|
276
291
|
*/
|
|
277
|
-
|
|
292
|
+
getFileInfo: async (workspaceId: string, path: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
278
293
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
279
|
-
assertParamExists('
|
|
280
|
-
// verify required parameter '
|
|
281
|
-
assertParamExists('
|
|
282
|
-
const localVarPath = `/toolbox/{workspaceId}/toolbox/
|
|
294
|
+
assertParamExists('getFileInfo', 'workspaceId', workspaceId)
|
|
295
|
+
// verify required parameter 'path' is not null or undefined
|
|
296
|
+
assertParamExists('getFileInfo', 'path', path)
|
|
297
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/files/info`
|
|
283
298
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
284
299
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
285
300
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -288,7 +303,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
288
303
|
baseOptions = configuration.baseOptions;
|
|
289
304
|
}
|
|
290
305
|
|
|
291
|
-
const localVarRequestOptions = { method: '
|
|
306
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
292
307
|
const localVarHeaderParameter = {} as any;
|
|
293
308
|
const localVarQueryParameter = {} as any;
|
|
294
309
|
|
|
@@ -296,14 +311,15 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
296
311
|
// oauth required
|
|
297
312
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
298
313
|
|
|
314
|
+
if (path !== undefined) {
|
|
315
|
+
localVarQueryParameter['path'] = path;
|
|
316
|
+
}
|
|
299
317
|
|
|
300
|
-
|
|
301
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
302
318
|
|
|
319
|
+
|
|
303
320
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
304
321
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
305
322
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
306
|
-
localVarRequestOptions.data = serializeDataIfNeeded(executeRequestDto, localVarRequestOptions, configuration)
|
|
307
323
|
|
|
308
324
|
return {
|
|
309
325
|
url: toPathString(localVarUrlObj),
|
|
@@ -311,22 +327,16 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
311
327
|
};
|
|
312
328
|
},
|
|
313
329
|
/**
|
|
314
|
-
*
|
|
315
|
-
* @summary
|
|
330
|
+
*
|
|
331
|
+
* @summary Get workspace project dir
|
|
316
332
|
* @param {string} workspaceId
|
|
317
|
-
* @param {string} path
|
|
318
|
-
* @param {string} pattern
|
|
319
333
|
* @param {*} [options] Override http request option.
|
|
320
334
|
* @throws {RequiredError}
|
|
321
335
|
*/
|
|
322
|
-
|
|
336
|
+
getProjectDir: async (workspaceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
323
337
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
324
|
-
assertParamExists('
|
|
325
|
-
|
|
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`
|
|
338
|
+
assertParamExists('getProjectDir', 'workspaceId', workspaceId)
|
|
339
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/project-dir`
|
|
330
340
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
331
341
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
332
342
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -343,14 +353,6 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
343
353
|
// oauth required
|
|
344
354
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
345
355
|
|
|
346
|
-
if (path !== undefined) {
|
|
347
|
-
localVarQueryParameter['path'] = path;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
if (pattern !== undefined) {
|
|
351
|
-
localVarQueryParameter['pattern'] = pattern;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
356
|
|
|
355
357
|
|
|
356
358
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -363,19 +365,19 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
363
365
|
};
|
|
364
366
|
},
|
|
365
367
|
/**
|
|
366
|
-
*
|
|
367
|
-
* @summary
|
|
368
|
+
* Add files to git commit
|
|
369
|
+
* @summary Add files
|
|
368
370
|
* @param {string} workspaceId
|
|
369
|
-
* @param {
|
|
371
|
+
* @param {GitAddRequest} gitAddRequest
|
|
370
372
|
* @param {*} [options] Override http request option.
|
|
371
373
|
* @throws {RequiredError}
|
|
372
374
|
*/
|
|
373
|
-
|
|
375
|
+
gitAddFiles: async (workspaceId: string, gitAddRequest: GitAddRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
374
376
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
375
|
-
assertParamExists('
|
|
376
|
-
// verify required parameter '
|
|
377
|
-
assertParamExists('
|
|
378
|
-
const localVarPath = `/toolbox/{workspaceId}/toolbox/
|
|
377
|
+
assertParamExists('gitAddFiles', 'workspaceId', workspaceId)
|
|
378
|
+
// verify required parameter 'gitAddRequest' is not null or undefined
|
|
379
|
+
assertParamExists('gitAddFiles', 'gitAddRequest', gitAddRequest)
|
|
380
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/add`
|
|
379
381
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
380
382
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
381
383
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -384,7 +386,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
384
386
|
baseOptions = configuration.baseOptions;
|
|
385
387
|
}
|
|
386
388
|
|
|
387
|
-
const localVarRequestOptions = { method: '
|
|
389
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
388
390
|
const localVarHeaderParameter = {} as any;
|
|
389
391
|
const localVarQueryParameter = {} as any;
|
|
390
392
|
|
|
@@ -392,15 +394,14 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
392
394
|
// oauth required
|
|
393
395
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
394
396
|
|
|
395
|
-
if (path !== undefined) {
|
|
396
|
-
localVarQueryParameter['path'] = path;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
397
|
|
|
400
398
|
|
|
399
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
400
|
+
|
|
401
401
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
402
402
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
403
403
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
404
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitAddRequest, localVarRequestOptions, configuration)
|
|
404
405
|
|
|
405
406
|
return {
|
|
406
407
|
url: toPathString(localVarUrlObj),
|
|
@@ -408,19 +409,19 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
408
409
|
};
|
|
409
410
|
},
|
|
410
411
|
/**
|
|
411
|
-
*
|
|
412
|
-
* @summary
|
|
412
|
+
* Clone git repository
|
|
413
|
+
* @summary Clone repository
|
|
413
414
|
* @param {string} workspaceId
|
|
414
|
-
* @param {
|
|
415
|
+
* @param {GitCloneRequest} gitCloneRequest
|
|
415
416
|
* @param {*} [options] Override http request option.
|
|
416
417
|
* @throws {RequiredError}
|
|
417
418
|
*/
|
|
418
|
-
|
|
419
|
+
gitCloneRepository: async (workspaceId: string, gitCloneRequest: GitCloneRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
419
420
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
420
|
-
assertParamExists('
|
|
421
|
-
// verify required parameter '
|
|
422
|
-
assertParamExists('
|
|
423
|
-
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/
|
|
421
|
+
assertParamExists('gitCloneRepository', 'workspaceId', workspaceId)
|
|
422
|
+
// verify required parameter 'gitCloneRequest' is not null or undefined
|
|
423
|
+
assertParamExists('gitCloneRepository', 'gitCloneRequest', gitCloneRequest)
|
|
424
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/clone`
|
|
424
425
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
425
426
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
426
427
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -444,7 +445,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
444
445
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
445
446
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
446
447
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
447
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
448
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitCloneRequest, localVarRequestOptions, configuration)
|
|
448
449
|
|
|
449
450
|
return {
|
|
450
451
|
url: toPathString(localVarUrlObj),
|
|
@@ -452,19 +453,19 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
452
453
|
};
|
|
453
454
|
},
|
|
454
455
|
/**
|
|
455
|
-
*
|
|
456
|
-
* @summary
|
|
456
|
+
* Commit changes to git repository
|
|
457
|
+
* @summary Commit changes
|
|
457
458
|
* @param {string} workspaceId
|
|
458
|
-
* @param {
|
|
459
|
+
* @param {GitCommitRequest} gitCommitRequest
|
|
459
460
|
* @param {*} [options] Override http request option.
|
|
460
461
|
* @throws {RequiredError}
|
|
461
462
|
*/
|
|
462
|
-
|
|
463
|
+
gitCommitChanges: async (workspaceId: string, gitCommitRequest: GitCommitRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
463
464
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
464
|
-
assertParamExists('
|
|
465
|
-
// verify required parameter '
|
|
466
|
-
assertParamExists('
|
|
467
|
-
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/
|
|
465
|
+
assertParamExists('gitCommitChanges', 'workspaceId', workspaceId)
|
|
466
|
+
// verify required parameter 'gitCommitRequest' is not null or undefined
|
|
467
|
+
assertParamExists('gitCommitChanges', 'gitCommitRequest', gitCommitRequest)
|
|
468
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/commit`
|
|
468
469
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
469
470
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
470
471
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -473,7 +474,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
473
474
|
baseOptions = configuration.baseOptions;
|
|
474
475
|
}
|
|
475
476
|
|
|
476
|
-
const localVarRequestOptions = { method: '
|
|
477
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
477
478
|
const localVarHeaderParameter = {} as any;
|
|
478
479
|
const localVarQueryParameter = {} as any;
|
|
479
480
|
|
|
@@ -481,15 +482,14 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
481
482
|
// oauth required
|
|
482
483
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
483
484
|
|
|
484
|
-
if (path !== undefined) {
|
|
485
|
-
localVarQueryParameter['path'] = path;
|
|
486
|
-
}
|
|
487
|
-
|
|
488
485
|
|
|
489
486
|
|
|
487
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
488
|
+
|
|
490
489
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
491
490
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
492
491
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
492
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitCommitRequest, localVarRequestOptions, configuration)
|
|
493
493
|
|
|
494
494
|
return {
|
|
495
495
|
url: toPathString(localVarUrlObj),
|
|
@@ -497,19 +497,19 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
497
497
|
};
|
|
498
498
|
},
|
|
499
499
|
/**
|
|
500
|
-
*
|
|
501
|
-
* @summary
|
|
500
|
+
* Create branch on git repository
|
|
501
|
+
* @summary Create branch
|
|
502
502
|
* @param {string} workspaceId
|
|
503
|
-
* @param {
|
|
503
|
+
* @param {GitBranchRequest} gitBranchRequest
|
|
504
504
|
* @param {*} [options] Override http request option.
|
|
505
505
|
* @throws {RequiredError}
|
|
506
506
|
*/
|
|
507
|
-
|
|
507
|
+
gitCreateBranch: async (workspaceId: string, gitBranchRequest: GitBranchRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
508
508
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
509
|
-
assertParamExists('
|
|
510
|
-
// verify required parameter '
|
|
511
|
-
assertParamExists('
|
|
512
|
-
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/
|
|
509
|
+
assertParamExists('gitCreateBranch', 'workspaceId', workspaceId)
|
|
510
|
+
// verify required parameter 'gitBranchRequest' is not null or undefined
|
|
511
|
+
assertParamExists('gitCreateBranch', 'gitBranchRequest', gitBranchRequest)
|
|
512
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/branches`
|
|
513
513
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
514
514
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
515
515
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -533,7 +533,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
533
533
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
534
534
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
535
535
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
536
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
536
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitBranchRequest, localVarRequestOptions, configuration)
|
|
537
537
|
|
|
538
538
|
return {
|
|
539
539
|
url: toPathString(localVarUrlObj),
|
|
@@ -541,19 +541,19 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
541
541
|
};
|
|
542
542
|
},
|
|
543
543
|
/**
|
|
544
|
-
*
|
|
545
|
-
* @summary
|
|
544
|
+
* Get commit history from git repository
|
|
545
|
+
* @summary Get commit history
|
|
546
546
|
* @param {string} workspaceId
|
|
547
|
-
* @param {
|
|
547
|
+
* @param {string} path
|
|
548
548
|
* @param {*} [options] Override http request option.
|
|
549
549
|
* @throws {RequiredError}
|
|
550
550
|
*/
|
|
551
|
-
|
|
551
|
+
gitGetHistory: async (workspaceId: string, path: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
552
552
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
553
|
-
assertParamExists('
|
|
554
|
-
// verify required parameter '
|
|
555
|
-
assertParamExists('
|
|
556
|
-
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/
|
|
553
|
+
assertParamExists('gitGetHistory', 'workspaceId', workspaceId)
|
|
554
|
+
// verify required parameter 'path' is not null or undefined
|
|
555
|
+
assertParamExists('gitGetHistory', 'path', path)
|
|
556
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/history`
|
|
557
557
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
558
558
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
559
559
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -562,7 +562,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
562
562
|
baseOptions = configuration.baseOptions;
|
|
563
563
|
}
|
|
564
564
|
|
|
565
|
-
const localVarRequestOptions = { method: '
|
|
565
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
566
566
|
const localVarHeaderParameter = {} as any;
|
|
567
567
|
const localVarQueryParameter = {} as any;
|
|
568
568
|
|
|
@@ -570,14 +570,15 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
570
570
|
// oauth required
|
|
571
571
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
572
572
|
|
|
573
|
+
if (path !== undefined) {
|
|
574
|
+
localVarQueryParameter['path'] = path;
|
|
575
|
+
}
|
|
576
|
+
|
|
573
577
|
|
|
574
578
|
|
|
575
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
576
|
-
|
|
577
579
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
578
580
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
579
581
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
580
|
-
localVarRequestOptions.data = serializeDataIfNeeded(gitCommitRequestDto, localVarRequestOptions, configuration)
|
|
581
582
|
|
|
582
583
|
return {
|
|
583
584
|
url: toPathString(localVarUrlObj),
|
|
@@ -585,19 +586,19 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
585
586
|
};
|
|
586
587
|
},
|
|
587
588
|
/**
|
|
588
|
-
* Get
|
|
589
|
-
* @summary Get
|
|
589
|
+
* Get status from git repository
|
|
590
|
+
* @summary Get git status
|
|
590
591
|
* @param {string} workspaceId
|
|
591
592
|
* @param {string} path
|
|
592
593
|
* @param {*} [options] Override http request option.
|
|
593
594
|
* @throws {RequiredError}
|
|
594
595
|
*/
|
|
595
|
-
|
|
596
|
+
gitGetStatus: async (workspaceId: string, path: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
596
597
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
597
|
-
assertParamExists('
|
|
598
|
+
assertParamExists('gitGetStatus', 'workspaceId', workspaceId)
|
|
598
599
|
// verify required parameter 'path' is not null or undefined
|
|
599
|
-
assertParamExists('
|
|
600
|
-
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/
|
|
600
|
+
assertParamExists('gitGetStatus', 'path', path)
|
|
601
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/status`
|
|
601
602
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
602
603
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
603
604
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -630,18 +631,18 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
630
631
|
};
|
|
631
632
|
},
|
|
632
633
|
/**
|
|
633
|
-
*
|
|
634
|
-
* @summary
|
|
634
|
+
* Get branch list from git repository
|
|
635
|
+
* @summary Get branch list
|
|
635
636
|
* @param {string} workspaceId
|
|
636
|
-
* @param {
|
|
637
|
+
* @param {string} path
|
|
637
638
|
* @param {*} [options] Override http request option.
|
|
638
639
|
* @throws {RequiredError}
|
|
639
640
|
*/
|
|
640
|
-
|
|
641
|
+
gitListBranches: async (workspaceId: string, path: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
641
642
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
642
|
-
assertParamExists('
|
|
643
|
-
// verify required parameter '
|
|
644
|
-
assertParamExists('
|
|
643
|
+
assertParamExists('gitListBranches', 'workspaceId', workspaceId)
|
|
644
|
+
// verify required parameter 'path' is not null or undefined
|
|
645
|
+
assertParamExists('gitListBranches', 'path', path)
|
|
645
646
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/branches`
|
|
646
647
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
647
648
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -651,7 +652,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
651
652
|
baseOptions = configuration.baseOptions;
|
|
652
653
|
}
|
|
653
654
|
|
|
654
|
-
const localVarRequestOptions = { method: '
|
|
655
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
655
656
|
const localVarHeaderParameter = {} as any;
|
|
656
657
|
const localVarQueryParameter = {} as any;
|
|
657
658
|
|
|
@@ -659,14 +660,15 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
659
660
|
// oauth required
|
|
660
661
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
661
662
|
|
|
663
|
+
if (path !== undefined) {
|
|
664
|
+
localVarQueryParameter['path'] = path;
|
|
665
|
+
}
|
|
662
666
|
|
|
663
|
-
|
|
664
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
665
667
|
|
|
668
|
+
|
|
666
669
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
667
670
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
668
671
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
669
|
-
localVarRequestOptions.data = serializeDataIfNeeded(gitBranchRequestDto, localVarRequestOptions, configuration)
|
|
670
672
|
|
|
671
673
|
return {
|
|
672
674
|
url: toPathString(localVarUrlObj),
|
|
@@ -677,15 +679,15 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
677
679
|
* Pull changes from remote
|
|
678
680
|
* @summary Pull changes
|
|
679
681
|
* @param {string} workspaceId
|
|
680
|
-
* @param {
|
|
682
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
681
683
|
* @param {*} [options] Override http request option.
|
|
682
684
|
* @throws {RequiredError}
|
|
683
685
|
*/
|
|
684
|
-
|
|
686
|
+
gitPullChanges: async (workspaceId: string, gitRepoRequest: GitRepoRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
685
687
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
686
|
-
assertParamExists('
|
|
687
|
-
// verify required parameter '
|
|
688
|
-
assertParamExists('
|
|
688
|
+
assertParamExists('gitPullChanges', 'workspaceId', workspaceId)
|
|
689
|
+
// verify required parameter 'gitRepoRequest' is not null or undefined
|
|
690
|
+
assertParamExists('gitPullChanges', 'gitRepoRequest', gitRepoRequest)
|
|
689
691
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/pull`
|
|
690
692
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
691
693
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -710,7 +712,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
710
712
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
711
713
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
712
714
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
713
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
715
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitRepoRequest, localVarRequestOptions, configuration)
|
|
714
716
|
|
|
715
717
|
return {
|
|
716
718
|
url: toPathString(localVarUrlObj),
|
|
@@ -721,15 +723,15 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
721
723
|
* Push changes to remote
|
|
722
724
|
* @summary Push changes
|
|
723
725
|
* @param {string} workspaceId
|
|
724
|
-
* @param {
|
|
726
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
725
727
|
* @param {*} [options] Override http request option.
|
|
726
728
|
* @throws {RequiredError}
|
|
727
729
|
*/
|
|
728
|
-
|
|
730
|
+
gitPushChanges: async (workspaceId: string, gitRepoRequest: GitRepoRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
729
731
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
730
|
-
assertParamExists('
|
|
731
|
-
// verify required parameter '
|
|
732
|
-
assertParamExists('
|
|
732
|
+
assertParamExists('gitPushChanges', 'workspaceId', workspaceId)
|
|
733
|
+
// verify required parameter 'gitRepoRequest' is not null or undefined
|
|
734
|
+
assertParamExists('gitPushChanges', 'gitRepoRequest', gitRepoRequest)
|
|
733
735
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/push`
|
|
734
736
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
735
737
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -754,7 +756,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
754
756
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
755
757
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
756
758
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
757
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
759
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitRepoRequest, localVarRequestOptions, configuration)
|
|
758
760
|
|
|
759
761
|
return {
|
|
760
762
|
url: toPathString(localVarUrlObj),
|
|
@@ -762,19 +764,17 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
762
764
|
};
|
|
763
765
|
},
|
|
764
766
|
/**
|
|
765
|
-
*
|
|
766
|
-
* @summary
|
|
767
|
+
*
|
|
768
|
+
* @summary List files
|
|
767
769
|
* @param {string} workspaceId
|
|
768
|
-
* @param {string} path
|
|
770
|
+
* @param {string} [path]
|
|
769
771
|
* @param {*} [options] Override http request option.
|
|
770
772
|
* @throws {RequiredError}
|
|
771
773
|
*/
|
|
772
|
-
|
|
774
|
+
listFiles: async (workspaceId: string, path?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
773
775
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
774
|
-
assertParamExists('
|
|
775
|
-
|
|
776
|
-
assertParamExists('toolboxControllerGitStatus', 'path', path)
|
|
777
|
-
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/status`
|
|
776
|
+
assertParamExists('listFiles', 'workspaceId', workspaceId)
|
|
777
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/files`
|
|
778
778
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
779
779
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
780
780
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -815,13 +815,13 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
815
815
|
* @param {*} [options] Override http request option.
|
|
816
816
|
* @throws {RequiredError}
|
|
817
817
|
*/
|
|
818
|
-
|
|
818
|
+
moveFile: async (workspaceId: string, source: string, destination: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
819
819
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
820
|
-
assertParamExists('
|
|
820
|
+
assertParamExists('moveFile', 'workspaceId', workspaceId)
|
|
821
821
|
// verify required parameter 'source' is not null or undefined
|
|
822
|
-
assertParamExists('
|
|
822
|
+
assertParamExists('moveFile', 'source', source)
|
|
823
823
|
// verify required parameter 'destination' is not null or undefined
|
|
824
|
-
assertParamExists('
|
|
824
|
+
assertParamExists('moveFile', 'destination', destination)
|
|
825
825
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/files/move`
|
|
826
826
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
827
827
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -862,15 +862,15 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
862
862
|
* Replace text/pattern in multiple files inside workspace
|
|
863
863
|
* @summary Replace in files
|
|
864
864
|
* @param {string} workspaceId
|
|
865
|
-
* @param {
|
|
865
|
+
* @param {ReplaceRequest} replaceRequest
|
|
866
866
|
* @param {*} [options] Override http request option.
|
|
867
867
|
* @throws {RequiredError}
|
|
868
868
|
*/
|
|
869
|
-
|
|
869
|
+
replaceInFiles: async (workspaceId: string, replaceRequest: ReplaceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
870
870
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
871
|
-
assertParamExists('
|
|
872
|
-
// verify required parameter '
|
|
873
|
-
assertParamExists('
|
|
871
|
+
assertParamExists('replaceInFiles', 'workspaceId', workspaceId)
|
|
872
|
+
// verify required parameter 'replaceRequest' is not null or undefined
|
|
873
|
+
assertParamExists('replaceInFiles', 'replaceRequest', replaceRequest)
|
|
874
874
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/files/replace`
|
|
875
875
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
876
876
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -895,7 +895,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
895
895
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
896
896
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
897
897
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
898
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
898
|
+
localVarRequestOptions.data = serializeDataIfNeeded(replaceRequest, localVarRequestOptions, configuration)
|
|
899
899
|
|
|
900
900
|
return {
|
|
901
901
|
url: toPathString(localVarUrlObj),
|
|
@@ -911,13 +911,13 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
911
911
|
* @param {*} [options] Override http request option.
|
|
912
912
|
* @throws {RequiredError}
|
|
913
913
|
*/
|
|
914
|
-
|
|
914
|
+
searchFiles: async (workspaceId: string, path: string, pattern: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
915
915
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
916
|
-
assertParamExists('
|
|
916
|
+
assertParamExists('searchFiles', 'workspaceId', workspaceId)
|
|
917
917
|
// verify required parameter 'path' is not null or undefined
|
|
918
|
-
assertParamExists('
|
|
918
|
+
assertParamExists('searchFiles', 'path', path)
|
|
919
919
|
// verify required parameter 'pattern' is not null or undefined
|
|
920
|
-
assertParamExists('
|
|
920
|
+
assertParamExists('searchFiles', 'pattern', pattern)
|
|
921
921
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/files/search`
|
|
922
922
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
923
923
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -965,17 +965,17 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
965
965
|
* @param {*} [options] Override http request option.
|
|
966
966
|
* @throws {RequiredError}
|
|
967
967
|
*/
|
|
968
|
-
|
|
968
|
+
setFilePermissions: async (workspaceId: string, path: string, owner: string, group: string, mode: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
969
969
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
970
|
-
assertParamExists('
|
|
970
|
+
assertParamExists('setFilePermissions', 'workspaceId', workspaceId)
|
|
971
971
|
// verify required parameter 'path' is not null or undefined
|
|
972
|
-
assertParamExists('
|
|
972
|
+
assertParamExists('setFilePermissions', 'path', path)
|
|
973
973
|
// verify required parameter 'owner' is not null or undefined
|
|
974
|
-
assertParamExists('
|
|
974
|
+
assertParamExists('setFilePermissions', 'owner', owner)
|
|
975
975
|
// verify required parameter 'group' is not null or undefined
|
|
976
|
-
assertParamExists('
|
|
976
|
+
assertParamExists('setFilePermissions', 'group', group)
|
|
977
977
|
// verify required parameter 'mode' is not null or undefined
|
|
978
|
-
assertParamExists('
|
|
978
|
+
assertParamExists('setFilePermissions', 'mode', mode)
|
|
979
979
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/files/permissions`
|
|
980
980
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
981
981
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -1029,11 +1029,11 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1029
1029
|
* @param {*} [options] Override http request option.
|
|
1030
1030
|
* @throws {RequiredError}
|
|
1031
1031
|
*/
|
|
1032
|
-
|
|
1032
|
+
uploadFile: async (workspaceId: string, path: string, file?: File, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1033
1033
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
1034
|
-
assertParamExists('
|
|
1034
|
+
assertParamExists('uploadFile', 'workspaceId', workspaceId)
|
|
1035
1035
|
// verify required parameter 'path' is not null or undefined
|
|
1036
|
-
assertParamExists('
|
|
1036
|
+
assertParamExists('uploadFile', 'path', path)
|
|
1037
1037
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/files/upload`
|
|
1038
1038
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
1039
1039
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -1084,33 +1084,6 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1084
1084
|
export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
1085
1085
|
const localVarAxiosParamCreator = ToolboxApiAxiosParamCreator(configuration)
|
|
1086
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
1087
|
/**
|
|
1115
1088
|
* Create folder inside workspace
|
|
1116
1089
|
* @summary Create folder
|
|
@@ -1120,10 +1093,10 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1120
1093
|
* @param {*} [options] Override http request option.
|
|
1121
1094
|
* @throws {RequiredError}
|
|
1122
1095
|
*/
|
|
1123
|
-
async
|
|
1124
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1096
|
+
async createFolder(workspaceId: string, path: string, mode: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1097
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createFolder(workspaceId, path, mode, options);
|
|
1125
1098
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1126
|
-
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.
|
|
1099
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.createFolder']?.[localVarOperationServerIndex]?.url;
|
|
1127
1100
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1128
1101
|
},
|
|
1129
1102
|
/**
|
|
@@ -1134,10 +1107,10 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1134
1107
|
* @param {*} [options] Override http request option.
|
|
1135
1108
|
* @throws {RequiredError}
|
|
1136
1109
|
*/
|
|
1137
|
-
async
|
|
1138
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1110
|
+
async deleteFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1111
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteFile(workspaceId, path, options);
|
|
1139
1112
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1140
|
-
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.
|
|
1113
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.deleteFile']?.[localVarOperationServerIndex]?.url;
|
|
1141
1114
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1142
1115
|
},
|
|
1143
1116
|
/**
|
|
@@ -1148,24 +1121,24 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1148
1121
|
* @param {*} [options] Override http request option.
|
|
1149
1122
|
* @throws {RequiredError}
|
|
1150
1123
|
*/
|
|
1151
|
-
async
|
|
1152
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1124
|
+
async downloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1125
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(workspaceId, path, options);
|
|
1153
1126
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1154
|
-
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.
|
|
1127
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.downloadFile']?.[localVarOperationServerIndex]?.url;
|
|
1155
1128
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1156
1129
|
},
|
|
1157
1130
|
/**
|
|
1158
1131
|
* Execute command synchronously inside workspace
|
|
1159
1132
|
* @summary Execute command
|
|
1160
1133
|
* @param {string} workspaceId
|
|
1161
|
-
* @param {
|
|
1134
|
+
* @param {ExecuteRequest} executeRequest
|
|
1162
1135
|
* @param {*} [options] Override http request option.
|
|
1163
1136
|
* @throws {RequiredError}
|
|
1164
1137
|
*/
|
|
1165
|
-
async
|
|
1166
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1138
|
+
async executeCommand(workspaceId: string, executeRequest: ExecuteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExecuteResponse>> {
|
|
1139
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.executeCommand(workspaceId, executeRequest, options);
|
|
1167
1140
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1168
|
-
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.
|
|
1141
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.executeCommand']?.[localVarOperationServerIndex]?.url;
|
|
1169
1142
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1170
1143
|
},
|
|
1171
1144
|
/**
|
|
@@ -1177,10 +1150,10 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1177
1150
|
* @param {*} [options] Override http request option.
|
|
1178
1151
|
* @throws {RequiredError}
|
|
1179
1152
|
*/
|
|
1180
|
-
async
|
|
1181
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1153
|
+
async findInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1154
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.findInFiles(workspaceId, path, pattern, options);
|
|
1182
1155
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1183
|
-
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.
|
|
1156
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.findInFiles']?.[localVarOperationServerIndex]?.url;
|
|
1184
1157
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1185
1158
|
},
|
|
1186
1159
|
/**
|
|
@@ -1191,66 +1164,79 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1191
1164
|
* @param {*} [options] Override http request option.
|
|
1192
1165
|
* @throws {RequiredError}
|
|
1193
1166
|
*/
|
|
1194
|
-
async
|
|
1195
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1167
|
+
async getFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1168
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFileInfo(workspaceId, path, options);
|
|
1196
1169
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1197
|
-
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.
|
|
1170
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.getFileInfo']?.[localVarOperationServerIndex]?.url;
|
|
1198
1171
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1199
1172
|
},
|
|
1200
1173
|
/**
|
|
1201
|
-
*
|
|
1202
|
-
* @summary
|
|
1174
|
+
*
|
|
1175
|
+
* @summary Get workspace project dir
|
|
1203
1176
|
* @param {string} workspaceId
|
|
1204
|
-
* @param {GitAddRequestDto} gitAddRequestDto
|
|
1205
1177
|
* @param {*} [options] Override http request option.
|
|
1206
1178
|
* @throws {RequiredError}
|
|
1207
1179
|
*/
|
|
1208
|
-
async
|
|
1209
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1180
|
+
async getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1181
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectDir(workspaceId, options);
|
|
1210
1182
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1211
|
-
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.
|
|
1183
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.getProjectDir']?.[localVarOperationServerIndex]?.url;
|
|
1212
1184
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1213
1185
|
},
|
|
1214
1186
|
/**
|
|
1215
|
-
*
|
|
1216
|
-
* @summary
|
|
1187
|
+
* Add files to git commit
|
|
1188
|
+
* @summary Add files
|
|
1217
1189
|
* @param {string} workspaceId
|
|
1218
|
-
* @param {
|
|
1190
|
+
* @param {GitAddRequest} gitAddRequest
|
|
1219
1191
|
* @param {*} [options] Override http request option.
|
|
1220
1192
|
* @throws {RequiredError}
|
|
1221
1193
|
*/
|
|
1222
|
-
async
|
|
1223
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1194
|
+
async gitAddFiles(workspaceId: string, gitAddRequest: GitAddRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1195
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.gitAddFiles(workspaceId, gitAddRequest, options);
|
|
1224
1196
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1225
|
-
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.
|
|
1197
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitAddFiles']?.[localVarOperationServerIndex]?.url;
|
|
1226
1198
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1227
1199
|
},
|
|
1228
1200
|
/**
|
|
1229
1201
|
* Clone git repository
|
|
1230
1202
|
* @summary Clone repository
|
|
1231
1203
|
* @param {string} workspaceId
|
|
1232
|
-
* @param {
|
|
1204
|
+
* @param {GitCloneRequest} gitCloneRequest
|
|
1233
1205
|
* @param {*} [options] Override http request option.
|
|
1234
1206
|
* @throws {RequiredError}
|
|
1235
1207
|
*/
|
|
1236
|
-
async
|
|
1237
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1208
|
+
async gitCloneRepository(workspaceId: string, gitCloneRequest: GitCloneRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1209
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.gitCloneRepository(workspaceId, gitCloneRequest, options);
|
|
1238
1210
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1239
|
-
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.
|
|
1211
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitCloneRepository']?.[localVarOperationServerIndex]?.url;
|
|
1240
1212
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1241
1213
|
},
|
|
1242
1214
|
/**
|
|
1243
1215
|
* Commit changes to git repository
|
|
1244
1216
|
* @summary Commit changes
|
|
1245
1217
|
* @param {string} workspaceId
|
|
1246
|
-
* @param {
|
|
1218
|
+
* @param {GitCommitRequest} gitCommitRequest
|
|
1247
1219
|
* @param {*} [options] Override http request option.
|
|
1248
1220
|
* @throws {RequiredError}
|
|
1249
1221
|
*/
|
|
1250
|
-
async
|
|
1251
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1222
|
+
async gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1223
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.gitCommitChanges(workspaceId, gitCommitRequest, options);
|
|
1252
1224
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1253
|
-
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.
|
|
1225
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitCommitChanges']?.[localVarOperationServerIndex]?.url;
|
|
1226
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1227
|
+
},
|
|
1228
|
+
/**
|
|
1229
|
+
* Create branch on git repository
|
|
1230
|
+
* @summary Create branch
|
|
1231
|
+
* @param {string} workspaceId
|
|
1232
|
+
* @param {GitBranchRequest} gitBranchRequest
|
|
1233
|
+
* @param {*} [options] Override http request option.
|
|
1234
|
+
* @throws {RequiredError}
|
|
1235
|
+
*/
|
|
1236
|
+
async gitCreateBranch(workspaceId: string, gitBranchRequest: GitBranchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1237
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.gitCreateBranch(workspaceId, gitBranchRequest, options);
|
|
1238
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1239
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitCreateBranch']?.[localVarOperationServerIndex]?.url;
|
|
1254
1240
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1255
1241
|
},
|
|
1256
1242
|
/**
|
|
@@ -1261,66 +1247,80 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1261
1247
|
* @param {*} [options] Override http request option.
|
|
1262
1248
|
* @throws {RequiredError}
|
|
1263
1249
|
*/
|
|
1264
|
-
async
|
|
1265
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1250
|
+
async gitGetHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1251
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.gitGetHistory(workspaceId, path, options);
|
|
1266
1252
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1267
|
-
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.
|
|
1253
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitGetHistory']?.[localVarOperationServerIndex]?.url;
|
|
1268
1254
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1269
1255
|
},
|
|
1270
1256
|
/**
|
|
1271
|
-
*
|
|
1272
|
-
* @summary
|
|
1257
|
+
* Get status from git repository
|
|
1258
|
+
* @summary Get git status
|
|
1273
1259
|
* @param {string} workspaceId
|
|
1274
|
-
* @param {
|
|
1260
|
+
* @param {string} path
|
|
1275
1261
|
* @param {*} [options] Override http request option.
|
|
1276
1262
|
* @throws {RequiredError}
|
|
1277
1263
|
*/
|
|
1278
|
-
async
|
|
1279
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1264
|
+
async gitGetStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1265
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.gitGetStatus(workspaceId, path, options);
|
|
1280
1266
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1281
|
-
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.
|
|
1267
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitGetStatus']?.[localVarOperationServerIndex]?.url;
|
|
1268
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1269
|
+
},
|
|
1270
|
+
/**
|
|
1271
|
+
* Get branch list from git repository
|
|
1272
|
+
* @summary Get branch list
|
|
1273
|
+
* @param {string} workspaceId
|
|
1274
|
+
* @param {string} path
|
|
1275
|
+
* @param {*} [options] Override http request option.
|
|
1276
|
+
* @throws {RequiredError}
|
|
1277
|
+
*/
|
|
1278
|
+
async gitListBranches(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1279
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.gitListBranches(workspaceId, path, options);
|
|
1280
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1281
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitListBranches']?.[localVarOperationServerIndex]?.url;
|
|
1282
1282
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1283
1283
|
},
|
|
1284
1284
|
/**
|
|
1285
1285
|
* Pull changes from remote
|
|
1286
1286
|
* @summary Pull changes
|
|
1287
1287
|
* @param {string} workspaceId
|
|
1288
|
-
* @param {
|
|
1288
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
1289
1289
|
* @param {*} [options] Override http request option.
|
|
1290
1290
|
* @throws {RequiredError}
|
|
1291
1291
|
*/
|
|
1292
|
-
async
|
|
1293
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1292
|
+
async gitPullChanges(workspaceId: string, gitRepoRequest: GitRepoRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1293
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.gitPullChanges(workspaceId, gitRepoRequest, options);
|
|
1294
1294
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1295
|
-
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.
|
|
1295
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitPullChanges']?.[localVarOperationServerIndex]?.url;
|
|
1296
1296
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1297
1297
|
},
|
|
1298
1298
|
/**
|
|
1299
1299
|
* Push changes to remote
|
|
1300
1300
|
* @summary Push changes
|
|
1301
1301
|
* @param {string} workspaceId
|
|
1302
|
-
* @param {
|
|
1302
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
1303
1303
|
* @param {*} [options] Override http request option.
|
|
1304
1304
|
* @throws {RequiredError}
|
|
1305
1305
|
*/
|
|
1306
|
-
async
|
|
1307
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1306
|
+
async gitPushChanges(workspaceId: string, gitRepoRequest: GitRepoRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1307
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.gitPushChanges(workspaceId, gitRepoRequest, options);
|
|
1308
1308
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1309
|
-
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.
|
|
1309
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitPushChanges']?.[localVarOperationServerIndex]?.url;
|
|
1310
1310
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1311
1311
|
},
|
|
1312
1312
|
/**
|
|
1313
|
-
*
|
|
1314
|
-
* @summary
|
|
1313
|
+
*
|
|
1314
|
+
* @summary List files
|
|
1315
1315
|
* @param {string} workspaceId
|
|
1316
|
-
* @param {string} path
|
|
1316
|
+
* @param {string} [path]
|
|
1317
1317
|
* @param {*} [options] Override http request option.
|
|
1318
1318
|
* @throws {RequiredError}
|
|
1319
1319
|
*/
|
|
1320
|
-
async
|
|
1321
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1320
|
+
async listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1321
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listFiles(workspaceId, path, options);
|
|
1322
1322
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1323
|
-
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.
|
|
1323
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.listFiles']?.[localVarOperationServerIndex]?.url;
|
|
1324
1324
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1325
1325
|
},
|
|
1326
1326
|
/**
|
|
@@ -1332,24 +1332,24 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1332
1332
|
* @param {*} [options] Override http request option.
|
|
1333
1333
|
* @throws {RequiredError}
|
|
1334
1334
|
*/
|
|
1335
|
-
async
|
|
1336
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1335
|
+
async moveFile(workspaceId: string, source: string, destination: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1336
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.moveFile(workspaceId, source, destination, options);
|
|
1337
1337
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1338
|
-
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.
|
|
1338
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.moveFile']?.[localVarOperationServerIndex]?.url;
|
|
1339
1339
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1340
1340
|
},
|
|
1341
1341
|
/**
|
|
1342
1342
|
* Replace text/pattern in multiple files inside workspace
|
|
1343
1343
|
* @summary Replace in files
|
|
1344
1344
|
* @param {string} workspaceId
|
|
1345
|
-
* @param {
|
|
1345
|
+
* @param {ReplaceRequest} replaceRequest
|
|
1346
1346
|
* @param {*} [options] Override http request option.
|
|
1347
1347
|
* @throws {RequiredError}
|
|
1348
1348
|
*/
|
|
1349
|
-
async
|
|
1350
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1349
|
+
async replaceInFiles(workspaceId: string, replaceRequest: ReplaceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1350
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.replaceInFiles(workspaceId, replaceRequest, options);
|
|
1351
1351
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1352
|
-
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.
|
|
1352
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.replaceInFiles']?.[localVarOperationServerIndex]?.url;
|
|
1353
1353
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1354
1354
|
},
|
|
1355
1355
|
/**
|
|
@@ -1361,10 +1361,10 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1361
1361
|
* @param {*} [options] Override http request option.
|
|
1362
1362
|
* @throws {RequiredError}
|
|
1363
1363
|
*/
|
|
1364
|
-
async
|
|
1365
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1364
|
+
async searchFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1365
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchFiles(workspaceId, path, pattern, options);
|
|
1366
1366
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1367
|
-
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.
|
|
1367
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.searchFiles']?.[localVarOperationServerIndex]?.url;
|
|
1368
1368
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1369
1369
|
},
|
|
1370
1370
|
/**
|
|
@@ -1378,10 +1378,10 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1378
1378
|
* @param {*} [options] Override http request option.
|
|
1379
1379
|
* @throws {RequiredError}
|
|
1380
1380
|
*/
|
|
1381
|
-
async
|
|
1382
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1381
|
+
async setFilePermissions(workspaceId: string, path: string, owner: string, group: string, mode: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1382
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setFilePermissions(workspaceId, path, owner, group, mode, options);
|
|
1383
1383
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1384
|
-
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.
|
|
1384
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.setFilePermissions']?.[localVarOperationServerIndex]?.url;
|
|
1385
1385
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1386
1386
|
},
|
|
1387
1387
|
/**
|
|
@@ -1393,10 +1393,10 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1393
1393
|
* @param {*} [options] Override http request option.
|
|
1394
1394
|
* @throws {RequiredError}
|
|
1395
1395
|
*/
|
|
1396
|
-
async
|
|
1397
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1396
|
+
async uploadFile(workspaceId: string, path: string, file?: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1397
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(workspaceId, path, file, options);
|
|
1398
1398
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1399
|
-
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.
|
|
1399
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.uploadFile']?.[localVarOperationServerIndex]?.url;
|
|
1400
1400
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1401
1401
|
},
|
|
1402
1402
|
}
|
|
@@ -1409,27 +1409,6 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1409
1409
|
export const ToolboxApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1410
1410
|
const localVarFp = ToolboxApiFp(configuration)
|
|
1411
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
1412
|
/**
|
|
1434
1413
|
* Create folder inside workspace
|
|
1435
1414
|
* @summary Create folder
|
|
@@ -1439,8 +1418,8 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
|
|
|
1439
1418
|
* @param {*} [options] Override http request option.
|
|
1440
1419
|
* @throws {RequiredError}
|
|
1441
1420
|
*/
|
|
1442
|
-
|
|
1443
|
-
return localVarFp.
|
|
1421
|
+
createFolder(workspaceId: string, path: string, mode: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1422
|
+
return localVarFp.createFolder(workspaceId, path, mode, options).then((request) => request(axios, basePath));
|
|
1444
1423
|
},
|
|
1445
1424
|
/**
|
|
1446
1425
|
* Delete file inside workspace
|
|
@@ -1450,8 +1429,8 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
|
|
|
1450
1429
|
* @param {*} [options] Override http request option.
|
|
1451
1430
|
* @throws {RequiredError}
|
|
1452
1431
|
*/
|
|
1453
|
-
|
|
1454
|
-
return localVarFp.
|
|
1432
|
+
deleteFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1433
|
+
return localVarFp.deleteFile(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
1455
1434
|
},
|
|
1456
1435
|
/**
|
|
1457
1436
|
* Download file from workspace
|
|
@@ -1461,19 +1440,19 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
|
|
|
1461
1440
|
* @param {*} [options] Override http request option.
|
|
1462
1441
|
* @throws {RequiredError}
|
|
1463
1442
|
*/
|
|
1464
|
-
|
|
1465
|
-
return localVarFp.
|
|
1443
|
+
downloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1444
|
+
return localVarFp.downloadFile(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
1466
1445
|
},
|
|
1467
1446
|
/**
|
|
1468
1447
|
* Execute command synchronously inside workspace
|
|
1469
1448
|
* @summary Execute command
|
|
1470
1449
|
* @param {string} workspaceId
|
|
1471
|
-
* @param {
|
|
1450
|
+
* @param {ExecuteRequest} executeRequest
|
|
1472
1451
|
* @param {*} [options] Override http request option.
|
|
1473
1452
|
* @throws {RequiredError}
|
|
1474
1453
|
*/
|
|
1475
|
-
|
|
1476
|
-
return localVarFp.
|
|
1454
|
+
executeCommand(workspaceId: string, executeRequest: ExecuteRequest, options?: RawAxiosRequestConfig): AxiosPromise<ExecuteResponse> {
|
|
1455
|
+
return localVarFp.executeCommand(workspaceId, executeRequest, options).then((request) => request(axios, basePath));
|
|
1477
1456
|
},
|
|
1478
1457
|
/**
|
|
1479
1458
|
* Search for text/pattern inside workspace files
|
|
@@ -1484,8 +1463,8 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
|
|
|
1484
1463
|
* @param {*} [options] Override http request option.
|
|
1485
1464
|
* @throws {RequiredError}
|
|
1486
1465
|
*/
|
|
1487
|
-
|
|
1488
|
-
return localVarFp.
|
|
1466
|
+
findInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1467
|
+
return localVarFp.findInFiles(workspaceId, path, pattern, options).then((request) => request(axios, basePath));
|
|
1489
1468
|
},
|
|
1490
1469
|
/**
|
|
1491
1470
|
* Get file info inside workspace
|
|
@@ -1495,52 +1474,62 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
|
|
|
1495
1474
|
* @param {*} [options] Override http request option.
|
|
1496
1475
|
* @throws {RequiredError}
|
|
1497
1476
|
*/
|
|
1498
|
-
|
|
1499
|
-
return localVarFp.
|
|
1477
|
+
getFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1478
|
+
return localVarFp.getFileInfo(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
1500
1479
|
},
|
|
1501
1480
|
/**
|
|
1502
|
-
*
|
|
1503
|
-
* @summary
|
|
1481
|
+
*
|
|
1482
|
+
* @summary Get workspace project dir
|
|
1504
1483
|
* @param {string} workspaceId
|
|
1505
|
-
* @param {GitAddRequestDto} gitAddRequestDto
|
|
1506
1484
|
* @param {*} [options] Override http request option.
|
|
1507
1485
|
* @throws {RequiredError}
|
|
1508
1486
|
*/
|
|
1509
|
-
|
|
1510
|
-
return localVarFp.
|
|
1487
|
+
getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1488
|
+
return localVarFp.getProjectDir(workspaceId, options).then((request) => request(axios, basePath));
|
|
1511
1489
|
},
|
|
1512
1490
|
/**
|
|
1513
|
-
*
|
|
1514
|
-
* @summary
|
|
1491
|
+
* Add files to git commit
|
|
1492
|
+
* @summary Add files
|
|
1515
1493
|
* @param {string} workspaceId
|
|
1516
|
-
* @param {
|
|
1494
|
+
* @param {GitAddRequest} gitAddRequest
|
|
1517
1495
|
* @param {*} [options] Override http request option.
|
|
1518
1496
|
* @throws {RequiredError}
|
|
1519
1497
|
*/
|
|
1520
|
-
|
|
1521
|
-
return localVarFp.
|
|
1498
|
+
gitAddFiles(workspaceId: string, gitAddRequest: GitAddRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1499
|
+
return localVarFp.gitAddFiles(workspaceId, gitAddRequest, options).then((request) => request(axios, basePath));
|
|
1522
1500
|
},
|
|
1523
1501
|
/**
|
|
1524
1502
|
* Clone git repository
|
|
1525
1503
|
* @summary Clone repository
|
|
1526
1504
|
* @param {string} workspaceId
|
|
1527
|
-
* @param {
|
|
1505
|
+
* @param {GitCloneRequest} gitCloneRequest
|
|
1528
1506
|
* @param {*} [options] Override http request option.
|
|
1529
1507
|
* @throws {RequiredError}
|
|
1530
1508
|
*/
|
|
1531
|
-
|
|
1532
|
-
return localVarFp.
|
|
1509
|
+
gitCloneRepository(workspaceId: string, gitCloneRequest: GitCloneRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1510
|
+
return localVarFp.gitCloneRepository(workspaceId, gitCloneRequest, options).then((request) => request(axios, basePath));
|
|
1533
1511
|
},
|
|
1534
1512
|
/**
|
|
1535
1513
|
* Commit changes to git repository
|
|
1536
1514
|
* @summary Commit changes
|
|
1537
1515
|
* @param {string} workspaceId
|
|
1538
|
-
* @param {
|
|
1516
|
+
* @param {GitCommitRequest} gitCommitRequest
|
|
1539
1517
|
* @param {*} [options] Override http request option.
|
|
1540
1518
|
* @throws {RequiredError}
|
|
1541
1519
|
*/
|
|
1542
|
-
|
|
1543
|
-
return localVarFp.
|
|
1520
|
+
gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1521
|
+
return localVarFp.gitCommitChanges(workspaceId, gitCommitRequest, options).then((request) => request(axios, basePath));
|
|
1522
|
+
},
|
|
1523
|
+
/**
|
|
1524
|
+
* Create branch on git repository
|
|
1525
|
+
* @summary Create branch
|
|
1526
|
+
* @param {string} workspaceId
|
|
1527
|
+
* @param {GitBranchRequest} gitBranchRequest
|
|
1528
|
+
* @param {*} [options] Override http request option.
|
|
1529
|
+
* @throws {RequiredError}
|
|
1530
|
+
*/
|
|
1531
|
+
gitCreateBranch(workspaceId: string, gitBranchRequest: GitBranchRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1532
|
+
return localVarFp.gitCreateBranch(workspaceId, gitBranchRequest, options).then((request) => request(axios, basePath));
|
|
1544
1533
|
},
|
|
1545
1534
|
/**
|
|
1546
1535
|
* Get commit history from git repository
|
|
@@ -1550,52 +1539,63 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
|
|
|
1550
1539
|
* @param {*} [options] Override http request option.
|
|
1551
1540
|
* @throws {RequiredError}
|
|
1552
1541
|
*/
|
|
1553
|
-
|
|
1554
|
-
return localVarFp.
|
|
1542
|
+
gitGetHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1543
|
+
return localVarFp.gitGetHistory(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
1555
1544
|
},
|
|
1556
1545
|
/**
|
|
1557
|
-
*
|
|
1558
|
-
* @summary
|
|
1546
|
+
* Get status from git repository
|
|
1547
|
+
* @summary Get git status
|
|
1559
1548
|
* @param {string} workspaceId
|
|
1560
|
-
* @param {
|
|
1549
|
+
* @param {string} path
|
|
1561
1550
|
* @param {*} [options] Override http request option.
|
|
1562
1551
|
* @throws {RequiredError}
|
|
1563
1552
|
*/
|
|
1564
|
-
|
|
1565
|
-
return localVarFp.
|
|
1553
|
+
gitGetStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1554
|
+
return localVarFp.gitGetStatus(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
1555
|
+
},
|
|
1556
|
+
/**
|
|
1557
|
+
* Get branch list from git repository
|
|
1558
|
+
* @summary Get branch list
|
|
1559
|
+
* @param {string} workspaceId
|
|
1560
|
+
* @param {string} path
|
|
1561
|
+
* @param {*} [options] Override http request option.
|
|
1562
|
+
* @throws {RequiredError}
|
|
1563
|
+
*/
|
|
1564
|
+
gitListBranches(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1565
|
+
return localVarFp.gitListBranches(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
1566
1566
|
},
|
|
1567
1567
|
/**
|
|
1568
1568
|
* Pull changes from remote
|
|
1569
1569
|
* @summary Pull changes
|
|
1570
1570
|
* @param {string} workspaceId
|
|
1571
|
-
* @param {
|
|
1571
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
1572
1572
|
* @param {*} [options] Override http request option.
|
|
1573
1573
|
* @throws {RequiredError}
|
|
1574
1574
|
*/
|
|
1575
|
-
|
|
1576
|
-
return localVarFp.
|
|
1575
|
+
gitPullChanges(workspaceId: string, gitRepoRequest: GitRepoRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1576
|
+
return localVarFp.gitPullChanges(workspaceId, gitRepoRequest, options).then((request) => request(axios, basePath));
|
|
1577
1577
|
},
|
|
1578
1578
|
/**
|
|
1579
1579
|
* Push changes to remote
|
|
1580
1580
|
* @summary Push changes
|
|
1581
1581
|
* @param {string} workspaceId
|
|
1582
|
-
* @param {
|
|
1582
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
1583
1583
|
* @param {*} [options] Override http request option.
|
|
1584
1584
|
* @throws {RequiredError}
|
|
1585
1585
|
*/
|
|
1586
|
-
|
|
1587
|
-
return localVarFp.
|
|
1586
|
+
gitPushChanges(workspaceId: string, gitRepoRequest: GitRepoRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1587
|
+
return localVarFp.gitPushChanges(workspaceId, gitRepoRequest, options).then((request) => request(axios, basePath));
|
|
1588
1588
|
},
|
|
1589
1589
|
/**
|
|
1590
|
-
*
|
|
1591
|
-
* @summary
|
|
1590
|
+
*
|
|
1591
|
+
* @summary List files
|
|
1592
1592
|
* @param {string} workspaceId
|
|
1593
|
-
* @param {string} path
|
|
1593
|
+
* @param {string} [path]
|
|
1594
1594
|
* @param {*} [options] Override http request option.
|
|
1595
1595
|
* @throws {RequiredError}
|
|
1596
1596
|
*/
|
|
1597
|
-
|
|
1598
|
-
return localVarFp.
|
|
1597
|
+
listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1598
|
+
return localVarFp.listFiles(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
1599
1599
|
},
|
|
1600
1600
|
/**
|
|
1601
1601
|
* Move file inside workspace
|
|
@@ -1606,19 +1606,19 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
|
|
|
1606
1606
|
* @param {*} [options] Override http request option.
|
|
1607
1607
|
* @throws {RequiredError}
|
|
1608
1608
|
*/
|
|
1609
|
-
|
|
1610
|
-
return localVarFp.
|
|
1609
|
+
moveFile(workspaceId: string, source: string, destination: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1610
|
+
return localVarFp.moveFile(workspaceId, source, destination, options).then((request) => request(axios, basePath));
|
|
1611
1611
|
},
|
|
1612
1612
|
/**
|
|
1613
1613
|
* Replace text/pattern in multiple files inside workspace
|
|
1614
1614
|
* @summary Replace in files
|
|
1615
1615
|
* @param {string} workspaceId
|
|
1616
|
-
* @param {
|
|
1616
|
+
* @param {ReplaceRequest} replaceRequest
|
|
1617
1617
|
* @param {*} [options] Override http request option.
|
|
1618
1618
|
* @throws {RequiredError}
|
|
1619
1619
|
*/
|
|
1620
|
-
|
|
1621
|
-
return localVarFp.
|
|
1620
|
+
replaceInFiles(workspaceId: string, replaceRequest: ReplaceRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1621
|
+
return localVarFp.replaceInFiles(workspaceId, replaceRequest, options).then((request) => request(axios, basePath));
|
|
1622
1622
|
},
|
|
1623
1623
|
/**
|
|
1624
1624
|
* Search for files inside workspace
|
|
@@ -1629,8 +1629,8 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
|
|
|
1629
1629
|
* @param {*} [options] Override http request option.
|
|
1630
1630
|
* @throws {RequiredError}
|
|
1631
1631
|
*/
|
|
1632
|
-
|
|
1633
|
-
return localVarFp.
|
|
1632
|
+
searchFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1633
|
+
return localVarFp.searchFiles(workspaceId, path, pattern, options).then((request) => request(axios, basePath));
|
|
1634
1634
|
},
|
|
1635
1635
|
/**
|
|
1636
1636
|
* Set file owner/group/permissions inside workspace
|
|
@@ -1643,8 +1643,8 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
|
|
|
1643
1643
|
* @param {*} [options] Override http request option.
|
|
1644
1644
|
* @throws {RequiredError}
|
|
1645
1645
|
*/
|
|
1646
|
-
|
|
1647
|
-
return localVarFp.
|
|
1646
|
+
setFilePermissions(workspaceId: string, path: string, owner: string, group: string, mode: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1647
|
+
return localVarFp.setFilePermissions(workspaceId, path, owner, group, mode, options).then((request) => request(axios, basePath));
|
|
1648
1648
|
},
|
|
1649
1649
|
/**
|
|
1650
1650
|
* Upload file inside workspace
|
|
@@ -1655,8 +1655,8 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
|
|
|
1655
1655
|
* @param {*} [options] Override http request option.
|
|
1656
1656
|
* @throws {RequiredError}
|
|
1657
1657
|
*/
|
|
1658
|
-
|
|
1659
|
-
return localVarFp.
|
|
1658
|
+
uploadFile(workspaceId: string, path: string, file?: File, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1659
|
+
return localVarFp.uploadFile(workspaceId, path, file, options).then((request) => request(axios, basePath));
|
|
1660
1660
|
},
|
|
1661
1661
|
};
|
|
1662
1662
|
};
|
|
@@ -1668,31 +1668,6 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
|
|
|
1668
1668
|
* @extends {BaseAPI}
|
|
1669
1669
|
*/
|
|
1670
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
1671
|
/**
|
|
1697
1672
|
* Create folder inside workspace
|
|
1698
1673
|
* @summary Create folder
|
|
@@ -1703,8 +1678,8 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1703
1678
|
* @throws {RequiredError}
|
|
1704
1679
|
* @memberof ToolboxApi
|
|
1705
1680
|
*/
|
|
1706
|
-
public
|
|
1707
|
-
return ToolboxApiFp(this.configuration).
|
|
1681
|
+
public createFolder(workspaceId: string, path: string, mode: string, options?: RawAxiosRequestConfig) {
|
|
1682
|
+
return ToolboxApiFp(this.configuration).createFolder(workspaceId, path, mode, options).then((request) => request(this.axios, this.basePath));
|
|
1708
1683
|
}
|
|
1709
1684
|
|
|
1710
1685
|
/**
|
|
@@ -1716,8 +1691,8 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1716
1691
|
* @throws {RequiredError}
|
|
1717
1692
|
* @memberof ToolboxApi
|
|
1718
1693
|
*/
|
|
1719
|
-
public
|
|
1720
|
-
return ToolboxApiFp(this.configuration).
|
|
1694
|
+
public deleteFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig) {
|
|
1695
|
+
return ToolboxApiFp(this.configuration).deleteFile(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
|
|
1721
1696
|
}
|
|
1722
1697
|
|
|
1723
1698
|
/**
|
|
@@ -1729,21 +1704,21 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1729
1704
|
* @throws {RequiredError}
|
|
1730
1705
|
* @memberof ToolboxApi
|
|
1731
1706
|
*/
|
|
1732
|
-
public
|
|
1733
|
-
return ToolboxApiFp(this.configuration).
|
|
1707
|
+
public downloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig) {
|
|
1708
|
+
return ToolboxApiFp(this.configuration).downloadFile(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
|
|
1734
1709
|
}
|
|
1735
1710
|
|
|
1736
1711
|
/**
|
|
1737
1712
|
* Execute command synchronously inside workspace
|
|
1738
1713
|
* @summary Execute command
|
|
1739
1714
|
* @param {string} workspaceId
|
|
1740
|
-
* @param {
|
|
1715
|
+
* @param {ExecuteRequest} executeRequest
|
|
1741
1716
|
* @param {*} [options] Override http request option.
|
|
1742
1717
|
* @throws {RequiredError}
|
|
1743
1718
|
* @memberof ToolboxApi
|
|
1744
1719
|
*/
|
|
1745
|
-
public
|
|
1746
|
-
return ToolboxApiFp(this.configuration).
|
|
1720
|
+
public executeCommand(workspaceId: string, executeRequest: ExecuteRequest, options?: RawAxiosRequestConfig) {
|
|
1721
|
+
return ToolboxApiFp(this.configuration).executeCommand(workspaceId, executeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1747
1722
|
}
|
|
1748
1723
|
|
|
1749
1724
|
/**
|
|
@@ -1756,8 +1731,8 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1756
1731
|
* @throws {RequiredError}
|
|
1757
1732
|
* @memberof ToolboxApi
|
|
1758
1733
|
*/
|
|
1759
|
-
public
|
|
1760
|
-
return ToolboxApiFp(this.configuration).
|
|
1734
|
+
public findInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig) {
|
|
1735
|
+
return ToolboxApiFp(this.configuration).findInFiles(workspaceId, path, pattern, options).then((request) => request(this.axios, this.basePath));
|
|
1761
1736
|
}
|
|
1762
1737
|
|
|
1763
1738
|
/**
|
|
@@ -1769,60 +1744,72 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1769
1744
|
* @throws {RequiredError}
|
|
1770
1745
|
* @memberof ToolboxApi
|
|
1771
1746
|
*/
|
|
1772
|
-
public
|
|
1773
|
-
return ToolboxApiFp(this.configuration).
|
|
1747
|
+
public getFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig) {
|
|
1748
|
+
return ToolboxApiFp(this.configuration).getFileInfo(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
|
|
1774
1749
|
}
|
|
1775
1750
|
|
|
1776
1751
|
/**
|
|
1777
|
-
*
|
|
1778
|
-
* @summary
|
|
1752
|
+
*
|
|
1753
|
+
* @summary Get workspace project dir
|
|
1779
1754
|
* @param {string} workspaceId
|
|
1780
|
-
* @param {GitAddRequestDto} gitAddRequestDto
|
|
1781
1755
|
* @param {*} [options] Override http request option.
|
|
1782
1756
|
* @throws {RequiredError}
|
|
1783
1757
|
* @memberof ToolboxApi
|
|
1784
1758
|
*/
|
|
1785
|
-
public
|
|
1786
|
-
return ToolboxApiFp(this.configuration).
|
|
1759
|
+
public getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig) {
|
|
1760
|
+
return ToolboxApiFp(this.configuration).getProjectDir(workspaceId, options).then((request) => request(this.axios, this.basePath));
|
|
1787
1761
|
}
|
|
1788
1762
|
|
|
1789
1763
|
/**
|
|
1790
|
-
*
|
|
1791
|
-
* @summary
|
|
1764
|
+
* Add files to git commit
|
|
1765
|
+
* @summary Add files
|
|
1792
1766
|
* @param {string} workspaceId
|
|
1793
|
-
* @param {
|
|
1767
|
+
* @param {GitAddRequest} gitAddRequest
|
|
1794
1768
|
* @param {*} [options] Override http request option.
|
|
1795
1769
|
* @throws {RequiredError}
|
|
1796
1770
|
* @memberof ToolboxApi
|
|
1797
1771
|
*/
|
|
1798
|
-
public
|
|
1799
|
-
return ToolboxApiFp(this.configuration).
|
|
1772
|
+
public gitAddFiles(workspaceId: string, gitAddRequest: GitAddRequest, options?: RawAxiosRequestConfig) {
|
|
1773
|
+
return ToolboxApiFp(this.configuration).gitAddFiles(workspaceId, gitAddRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1800
1774
|
}
|
|
1801
1775
|
|
|
1802
1776
|
/**
|
|
1803
1777
|
* Clone git repository
|
|
1804
1778
|
* @summary Clone repository
|
|
1805
1779
|
* @param {string} workspaceId
|
|
1806
|
-
* @param {
|
|
1780
|
+
* @param {GitCloneRequest} gitCloneRequest
|
|
1807
1781
|
* @param {*} [options] Override http request option.
|
|
1808
1782
|
* @throws {RequiredError}
|
|
1809
1783
|
* @memberof ToolboxApi
|
|
1810
1784
|
*/
|
|
1811
|
-
public
|
|
1812
|
-
return ToolboxApiFp(this.configuration).
|
|
1785
|
+
public gitCloneRepository(workspaceId: string, gitCloneRequest: GitCloneRequest, options?: RawAxiosRequestConfig) {
|
|
1786
|
+
return ToolboxApiFp(this.configuration).gitCloneRepository(workspaceId, gitCloneRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1813
1787
|
}
|
|
1814
1788
|
|
|
1815
1789
|
/**
|
|
1816
1790
|
* Commit changes to git repository
|
|
1817
1791
|
* @summary Commit changes
|
|
1818
1792
|
* @param {string} workspaceId
|
|
1819
|
-
* @param {
|
|
1793
|
+
* @param {GitCommitRequest} gitCommitRequest
|
|
1820
1794
|
* @param {*} [options] Override http request option.
|
|
1821
1795
|
* @throws {RequiredError}
|
|
1822
1796
|
* @memberof ToolboxApi
|
|
1823
1797
|
*/
|
|
1824
|
-
public
|
|
1825
|
-
return ToolboxApiFp(this.configuration).
|
|
1798
|
+
public gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig) {
|
|
1799
|
+
return ToolboxApiFp(this.configuration).gitCommitChanges(workspaceId, gitCommitRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
/**
|
|
1803
|
+
* Create branch on git repository
|
|
1804
|
+
* @summary Create branch
|
|
1805
|
+
* @param {string} workspaceId
|
|
1806
|
+
* @param {GitBranchRequest} gitBranchRequest
|
|
1807
|
+
* @param {*} [options] Override http request option.
|
|
1808
|
+
* @throws {RequiredError}
|
|
1809
|
+
* @memberof ToolboxApi
|
|
1810
|
+
*/
|
|
1811
|
+
public gitCreateBranch(workspaceId: string, gitBranchRequest: GitBranchRequest, options?: RawAxiosRequestConfig) {
|
|
1812
|
+
return ToolboxApiFp(this.configuration).gitCreateBranch(workspaceId, gitBranchRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1826
1813
|
}
|
|
1827
1814
|
|
|
1828
1815
|
/**
|
|
@@ -1834,60 +1821,73 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1834
1821
|
* @throws {RequiredError}
|
|
1835
1822
|
* @memberof ToolboxApi
|
|
1836
1823
|
*/
|
|
1837
|
-
public
|
|
1838
|
-
return ToolboxApiFp(this.configuration).
|
|
1824
|
+
public gitGetHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig) {
|
|
1825
|
+
return ToolboxApiFp(this.configuration).gitGetHistory(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
|
|
1839
1826
|
}
|
|
1840
1827
|
|
|
1841
1828
|
/**
|
|
1842
|
-
*
|
|
1843
|
-
* @summary
|
|
1829
|
+
* Get status from git repository
|
|
1830
|
+
* @summary Get git status
|
|
1844
1831
|
* @param {string} workspaceId
|
|
1845
|
-
* @param {
|
|
1832
|
+
* @param {string} path
|
|
1846
1833
|
* @param {*} [options] Override http request option.
|
|
1847
1834
|
* @throws {RequiredError}
|
|
1848
1835
|
* @memberof ToolboxApi
|
|
1849
1836
|
*/
|
|
1850
|
-
public
|
|
1851
|
-
return ToolboxApiFp(this.configuration).
|
|
1837
|
+
public gitGetStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig) {
|
|
1838
|
+
return ToolboxApiFp(this.configuration).gitGetStatus(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1841
|
+
/**
|
|
1842
|
+
* Get branch list from git repository
|
|
1843
|
+
* @summary Get branch list
|
|
1844
|
+
* @param {string} workspaceId
|
|
1845
|
+
* @param {string} path
|
|
1846
|
+
* @param {*} [options] Override http request option.
|
|
1847
|
+
* @throws {RequiredError}
|
|
1848
|
+
* @memberof ToolboxApi
|
|
1849
|
+
*/
|
|
1850
|
+
public gitListBranches(workspaceId: string, path: string, options?: RawAxiosRequestConfig) {
|
|
1851
|
+
return ToolboxApiFp(this.configuration).gitListBranches(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
|
|
1852
1852
|
}
|
|
1853
1853
|
|
|
1854
1854
|
/**
|
|
1855
1855
|
* Pull changes from remote
|
|
1856
1856
|
* @summary Pull changes
|
|
1857
1857
|
* @param {string} workspaceId
|
|
1858
|
-
* @param {
|
|
1858
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
1859
1859
|
* @param {*} [options] Override http request option.
|
|
1860
1860
|
* @throws {RequiredError}
|
|
1861
1861
|
* @memberof ToolboxApi
|
|
1862
1862
|
*/
|
|
1863
|
-
public
|
|
1864
|
-
return ToolboxApiFp(this.configuration).
|
|
1863
|
+
public gitPullChanges(workspaceId: string, gitRepoRequest: GitRepoRequest, options?: RawAxiosRequestConfig) {
|
|
1864
|
+
return ToolboxApiFp(this.configuration).gitPullChanges(workspaceId, gitRepoRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1865
1865
|
}
|
|
1866
1866
|
|
|
1867
1867
|
/**
|
|
1868
1868
|
* Push changes to remote
|
|
1869
1869
|
* @summary Push changes
|
|
1870
1870
|
* @param {string} workspaceId
|
|
1871
|
-
* @param {
|
|
1871
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
1872
1872
|
* @param {*} [options] Override http request option.
|
|
1873
1873
|
* @throws {RequiredError}
|
|
1874
1874
|
* @memberof ToolboxApi
|
|
1875
1875
|
*/
|
|
1876
|
-
public
|
|
1877
|
-
return ToolboxApiFp(this.configuration).
|
|
1876
|
+
public gitPushChanges(workspaceId: string, gitRepoRequest: GitRepoRequest, options?: RawAxiosRequestConfig) {
|
|
1877
|
+
return ToolboxApiFp(this.configuration).gitPushChanges(workspaceId, gitRepoRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1878
1878
|
}
|
|
1879
1879
|
|
|
1880
1880
|
/**
|
|
1881
|
-
*
|
|
1882
|
-
* @summary
|
|
1881
|
+
*
|
|
1882
|
+
* @summary List files
|
|
1883
1883
|
* @param {string} workspaceId
|
|
1884
|
-
* @param {string} path
|
|
1884
|
+
* @param {string} [path]
|
|
1885
1885
|
* @param {*} [options] Override http request option.
|
|
1886
1886
|
* @throws {RequiredError}
|
|
1887
1887
|
* @memberof ToolboxApi
|
|
1888
1888
|
*/
|
|
1889
|
-
public
|
|
1890
|
-
return ToolboxApiFp(this.configuration).
|
|
1889
|
+
public listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig) {
|
|
1890
|
+
return ToolboxApiFp(this.configuration).listFiles(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
|
|
1891
1891
|
}
|
|
1892
1892
|
|
|
1893
1893
|
/**
|
|
@@ -1900,21 +1900,21 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1900
1900
|
* @throws {RequiredError}
|
|
1901
1901
|
* @memberof ToolboxApi
|
|
1902
1902
|
*/
|
|
1903
|
-
public
|
|
1904
|
-
return ToolboxApiFp(this.configuration).
|
|
1903
|
+
public moveFile(workspaceId: string, source: string, destination: string, options?: RawAxiosRequestConfig) {
|
|
1904
|
+
return ToolboxApiFp(this.configuration).moveFile(workspaceId, source, destination, options).then((request) => request(this.axios, this.basePath));
|
|
1905
1905
|
}
|
|
1906
1906
|
|
|
1907
1907
|
/**
|
|
1908
1908
|
* Replace text/pattern in multiple files inside workspace
|
|
1909
1909
|
* @summary Replace in files
|
|
1910
1910
|
* @param {string} workspaceId
|
|
1911
|
-
* @param {
|
|
1911
|
+
* @param {ReplaceRequest} replaceRequest
|
|
1912
1912
|
* @param {*} [options] Override http request option.
|
|
1913
1913
|
* @throws {RequiredError}
|
|
1914
1914
|
* @memberof ToolboxApi
|
|
1915
1915
|
*/
|
|
1916
|
-
public
|
|
1917
|
-
return ToolboxApiFp(this.configuration).
|
|
1916
|
+
public replaceInFiles(workspaceId: string, replaceRequest: ReplaceRequest, options?: RawAxiosRequestConfig) {
|
|
1917
|
+
return ToolboxApiFp(this.configuration).replaceInFiles(workspaceId, replaceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1918
1918
|
}
|
|
1919
1919
|
|
|
1920
1920
|
/**
|
|
@@ -1927,8 +1927,8 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1927
1927
|
* @throws {RequiredError}
|
|
1928
1928
|
* @memberof ToolboxApi
|
|
1929
1929
|
*/
|
|
1930
|
-
public
|
|
1931
|
-
return ToolboxApiFp(this.configuration).
|
|
1930
|
+
public searchFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig) {
|
|
1931
|
+
return ToolboxApiFp(this.configuration).searchFiles(workspaceId, path, pattern, options).then((request) => request(this.axios, this.basePath));
|
|
1932
1932
|
}
|
|
1933
1933
|
|
|
1934
1934
|
/**
|
|
@@ -1943,8 +1943,8 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1943
1943
|
* @throws {RequiredError}
|
|
1944
1944
|
* @memberof ToolboxApi
|
|
1945
1945
|
*/
|
|
1946
|
-
public
|
|
1947
|
-
return ToolboxApiFp(this.configuration).
|
|
1946
|
+
public setFilePermissions(workspaceId: string, path: string, owner: string, group: string, mode: string, options?: RawAxiosRequestConfig) {
|
|
1947
|
+
return ToolboxApiFp(this.configuration).setFilePermissions(workspaceId, path, owner, group, mode, options).then((request) => request(this.axios, this.basePath));
|
|
1948
1948
|
}
|
|
1949
1949
|
|
|
1950
1950
|
/**
|
|
@@ -1957,8 +1957,8 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1957
1957
|
* @throws {RequiredError}
|
|
1958
1958
|
* @memberof ToolboxApi
|
|
1959
1959
|
*/
|
|
1960
|
-
public
|
|
1961
|
-
return ToolboxApiFp(this.configuration).
|
|
1960
|
+
public uploadFile(workspaceId: string, path: string, file?: File, options?: RawAxiosRequestConfig) {
|
|
1961
|
+
return ToolboxApiFp(this.configuration).uploadFile(workspaceId, path, file, options).then((request) => request(this.axios, this.basePath));
|
|
1962
1962
|
}
|
|
1963
1963
|
}
|
|
1964
1964
|
|