@daytonaio/api-client 0.5.2 → 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 +120 -120
- 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 +72 -72
- package/dist/api/toolbox-api.js +125 -125
- package/dist/api/users-api.d.ts +9 -8
- package/dist/api/users-api.js +16 -16
- package/dist/api/workspace-api.d.ts +28 -28
- package/dist/api/workspace-api.js +34 -34
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/esm/api/api-keys-api.d.ts +17 -17
- package/dist/esm/api/api-keys-api.js +17 -17
- package/dist/esm/api/{default-api.d.ts → app-api.d.ts} +10 -10
- package/dist/esm/api/{default-api.js → app-api.js} +14 -14
- package/dist/esm/api/docker-registry-api.d.ts +18 -18
- package/dist/esm/api/docker-registry-api.js +33 -33
- package/dist/esm/api/nodes-api.d.ts +9 -8
- package/dist/esm/api/nodes-api.js +16 -16
- package/dist/esm/api/toolbox-api.d.ts +72 -72
- package/dist/esm/api/toolbox-api.js +125 -125
- package/dist/esm/api/users-api.d.ts +9 -8
- package/dist/esm/api/users-api.js +16 -16
- package/dist/esm/api/workspace-api.d.ts +28 -28
- package/dist/esm/api/workspace-api.js +34 -34
- package/dist/esm/api.d.ts +1 -1
- package/dist/esm/api.js +1 -1
- package/dist/esm/models/{api-key-list-dto.d.ts → api-key-list.d.ts} +5 -5
- package/dist/esm/models/{api-key-response-dto.d.ts → api-key-response.d.ts} +5 -5
- package/dist/{models/create-api-key-dto.d.ts → esm/models/create-api-key.d.ts} +3 -3
- package/dist/{models/create-docker-registry-dto.d.ts → esm/models/create-docker-registry.d.ts} +8 -8
- package/dist/esm/models/create-node.d.ts +24 -0
- package/dist/esm/models/create-user.d.ts +30 -0
- package/dist/{models/create-workspace-dto.d.ts → esm/models/create-workspace.d.ts} +21 -21
- package/dist/esm/models/{create-workspace-dto.js → create-workspace.js} +2 -2
- package/dist/{models/execute-request-dto.d.ts → esm/models/execute-request.d.ts} +4 -4
- package/dist/{models/execute-response-dto.d.ts → esm/models/execute-response.d.ts} +5 -5
- package/dist/esm/models/{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/dist/api/toolbox-api.js
CHANGED
|
@@ -87,7 +87,7 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
87
87
|
* @param {*} [options] Override http request option.
|
|
88
88
|
* @throws {RequiredError}
|
|
89
89
|
*/
|
|
90
|
-
deleteFile: (
|
|
90
|
+
deleteFile: (workspaceId_1, path_1, ...args_1) => __awaiter(this, [workspaceId_1, path_1, ...args_1], void 0, function* (workspaceId, path, options = {}) {
|
|
91
91
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
92
92
|
(0, common_1.assertParamExists)('deleteFile', 'workspaceId', workspaceId);
|
|
93
93
|
// verify required parameter 'path' is not null or undefined
|
|
@@ -125,7 +125,7 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
125
125
|
* @param {*} [options] Override http request option.
|
|
126
126
|
* @throws {RequiredError}
|
|
127
127
|
*/
|
|
128
|
-
downloadFile: (
|
|
128
|
+
downloadFile: (workspaceId_1, path_1, ...args_1) => __awaiter(this, [workspaceId_1, path_1, ...args_1], void 0, function* (workspaceId, path, options = {}) {
|
|
129
129
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
130
130
|
(0, common_1.assertParamExists)('downloadFile', 'workspaceId', workspaceId);
|
|
131
131
|
// verify required parameter 'path' is not null or undefined
|
|
@@ -159,15 +159,15 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
159
159
|
* Execute command synchronously inside workspace
|
|
160
160
|
* @summary Execute command
|
|
161
161
|
* @param {string} workspaceId
|
|
162
|
-
* @param {
|
|
162
|
+
* @param {ExecuteRequest} executeRequest
|
|
163
163
|
* @param {*} [options] Override http request option.
|
|
164
164
|
* @throws {RequiredError}
|
|
165
165
|
*/
|
|
166
|
-
executeCommand: (
|
|
166
|
+
executeCommand: (workspaceId_1, executeRequest_1, ...args_1) => __awaiter(this, [workspaceId_1, executeRequest_1, ...args_1], void 0, function* (workspaceId, executeRequest, options = {}) {
|
|
167
167
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
168
168
|
(0, common_1.assertParamExists)('executeCommand', 'workspaceId', workspaceId);
|
|
169
|
-
// verify required parameter '
|
|
170
|
-
(0, common_1.assertParamExists)('executeCommand', '
|
|
169
|
+
// verify required parameter 'executeRequest' is not null or undefined
|
|
170
|
+
(0, common_1.assertParamExists)('executeCommand', 'executeRequest', executeRequest);
|
|
171
171
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/process/execute`
|
|
172
172
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
173
173
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -186,7 +186,7 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
186
186
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
187
187
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
188
188
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
189
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
189
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(executeRequest, localVarRequestOptions, configuration);
|
|
190
190
|
return {
|
|
191
191
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
192
192
|
options: localVarRequestOptions,
|
|
@@ -201,7 +201,7 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
201
201
|
* @param {*} [options] Override http request option.
|
|
202
202
|
* @throws {RequiredError}
|
|
203
203
|
*/
|
|
204
|
-
findInFiles: (
|
|
204
|
+
findInFiles: (workspaceId_1, path_1, pattern_1, ...args_1) => __awaiter(this, [workspaceId_1, path_1, pattern_1, ...args_1], void 0, function* (workspaceId, path, pattern, options = {}) {
|
|
205
205
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
206
206
|
(0, common_1.assertParamExists)('findInFiles', 'workspaceId', workspaceId);
|
|
207
207
|
// verify required parameter 'path' is not null or undefined
|
|
@@ -244,7 +244,7 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
244
244
|
* @param {*} [options] Override http request option.
|
|
245
245
|
* @throws {RequiredError}
|
|
246
246
|
*/
|
|
247
|
-
getFileInfo: (
|
|
247
|
+
getFileInfo: (workspaceId_1, path_1, ...args_1) => __awaiter(this, [workspaceId_1, path_1, ...args_1], void 0, function* (workspaceId, path, options = {}) {
|
|
248
248
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
249
249
|
(0, common_1.assertParamExists)('getFileInfo', 'workspaceId', workspaceId);
|
|
250
250
|
// verify required parameter 'path' is not null or undefined
|
|
@@ -281,7 +281,7 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
281
281
|
* @param {*} [options] Override http request option.
|
|
282
282
|
* @throws {RequiredError}
|
|
283
283
|
*/
|
|
284
|
-
getProjectDir: (
|
|
284
|
+
getProjectDir: (workspaceId_1, ...args_1) => __awaiter(this, [workspaceId_1, ...args_1], void 0, function* (workspaceId, options = {}) {
|
|
285
285
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
286
286
|
(0, common_1.assertParamExists)('getProjectDir', 'workspaceId', workspaceId);
|
|
287
287
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/project-dir`
|
|
@@ -310,15 +310,15 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
310
310
|
* Add files to git commit
|
|
311
311
|
* @summary Add files
|
|
312
312
|
* @param {string} workspaceId
|
|
313
|
-
* @param {
|
|
313
|
+
* @param {GitAddRequest} gitAddRequest
|
|
314
314
|
* @param {*} [options] Override http request option.
|
|
315
315
|
* @throws {RequiredError}
|
|
316
316
|
*/
|
|
317
|
-
gitAddFiles: (
|
|
317
|
+
gitAddFiles: (workspaceId_1, gitAddRequest_1, ...args_1) => __awaiter(this, [workspaceId_1, gitAddRequest_1, ...args_1], void 0, function* (workspaceId, gitAddRequest, options = {}) {
|
|
318
318
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
319
319
|
(0, common_1.assertParamExists)('gitAddFiles', 'workspaceId', workspaceId);
|
|
320
|
-
// verify required parameter '
|
|
321
|
-
(0, common_1.assertParamExists)('gitAddFiles', '
|
|
320
|
+
// verify required parameter 'gitAddRequest' is not null or undefined
|
|
321
|
+
(0, common_1.assertParamExists)('gitAddFiles', 'gitAddRequest', gitAddRequest);
|
|
322
322
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/add`
|
|
323
323
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
324
324
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -337,7 +337,7 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
337
337
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
338
338
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
339
339
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
340
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
340
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitAddRequest, localVarRequestOptions, configuration);
|
|
341
341
|
return {
|
|
342
342
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
343
343
|
options: localVarRequestOptions,
|
|
@@ -347,15 +347,15 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
347
347
|
* Clone git repository
|
|
348
348
|
* @summary Clone repository
|
|
349
349
|
* @param {string} workspaceId
|
|
350
|
-
* @param {
|
|
350
|
+
* @param {GitCloneRequest} gitCloneRequest
|
|
351
351
|
* @param {*} [options] Override http request option.
|
|
352
352
|
* @throws {RequiredError}
|
|
353
353
|
*/
|
|
354
|
-
gitCloneRepository: (
|
|
354
|
+
gitCloneRepository: (workspaceId_1, gitCloneRequest_1, ...args_1) => __awaiter(this, [workspaceId_1, gitCloneRequest_1, ...args_1], void 0, function* (workspaceId, gitCloneRequest, options = {}) {
|
|
355
355
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
356
356
|
(0, common_1.assertParamExists)('gitCloneRepository', 'workspaceId', workspaceId);
|
|
357
|
-
// verify required parameter '
|
|
358
|
-
(0, common_1.assertParamExists)('gitCloneRepository', '
|
|
357
|
+
// verify required parameter 'gitCloneRequest' is not null or undefined
|
|
358
|
+
(0, common_1.assertParamExists)('gitCloneRepository', 'gitCloneRequest', gitCloneRequest);
|
|
359
359
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/clone`
|
|
360
360
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
361
361
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -374,7 +374,7 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
374
374
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
375
375
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
376
376
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
377
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
377
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitCloneRequest, localVarRequestOptions, configuration);
|
|
378
378
|
return {
|
|
379
379
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
380
380
|
options: localVarRequestOptions,
|
|
@@ -384,15 +384,15 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
384
384
|
* Commit changes to git repository
|
|
385
385
|
* @summary Commit changes
|
|
386
386
|
* @param {string} workspaceId
|
|
387
|
-
* @param {
|
|
387
|
+
* @param {GitCommitRequest} gitCommitRequest
|
|
388
388
|
* @param {*} [options] Override http request option.
|
|
389
389
|
* @throws {RequiredError}
|
|
390
390
|
*/
|
|
391
|
-
gitCommitChanges: (
|
|
391
|
+
gitCommitChanges: (workspaceId_1, gitCommitRequest_1, ...args_1) => __awaiter(this, [workspaceId_1, gitCommitRequest_1, ...args_1], void 0, function* (workspaceId, gitCommitRequest, options = {}) {
|
|
392
392
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
393
393
|
(0, common_1.assertParamExists)('gitCommitChanges', 'workspaceId', workspaceId);
|
|
394
|
-
// verify required parameter '
|
|
395
|
-
(0, common_1.assertParamExists)('gitCommitChanges', '
|
|
394
|
+
// verify required parameter 'gitCommitRequest' is not null or undefined
|
|
395
|
+
(0, common_1.assertParamExists)('gitCommitChanges', 'gitCommitRequest', gitCommitRequest);
|
|
396
396
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/commit`
|
|
397
397
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
398
398
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -411,7 +411,7 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
411
411
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
412
412
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
413
413
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
414
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
414
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitCommitRequest, localVarRequestOptions, configuration);
|
|
415
415
|
return {
|
|
416
416
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
417
417
|
options: localVarRequestOptions,
|
|
@@ -421,15 +421,15 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
421
421
|
* Create branch on git repository
|
|
422
422
|
* @summary Create branch
|
|
423
423
|
* @param {string} workspaceId
|
|
424
|
-
* @param {
|
|
424
|
+
* @param {GitBranchRequest} gitBranchRequest
|
|
425
425
|
* @param {*} [options] Override http request option.
|
|
426
426
|
* @throws {RequiredError}
|
|
427
427
|
*/
|
|
428
|
-
gitCreateBranch: (
|
|
428
|
+
gitCreateBranch: (workspaceId_1, gitBranchRequest_1, ...args_1) => __awaiter(this, [workspaceId_1, gitBranchRequest_1, ...args_1], void 0, function* (workspaceId, gitBranchRequest, options = {}) {
|
|
429
429
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
430
430
|
(0, common_1.assertParamExists)('gitCreateBranch', 'workspaceId', workspaceId);
|
|
431
|
-
// verify required parameter '
|
|
432
|
-
(0, common_1.assertParamExists)('gitCreateBranch', '
|
|
431
|
+
// verify required parameter 'gitBranchRequest' is not null or undefined
|
|
432
|
+
(0, common_1.assertParamExists)('gitCreateBranch', 'gitBranchRequest', gitBranchRequest);
|
|
433
433
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/branches`
|
|
434
434
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
435
435
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -448,7 +448,7 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
448
448
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
449
449
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
450
450
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
451
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
451
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitBranchRequest, localVarRequestOptions, configuration);
|
|
452
452
|
return {
|
|
453
453
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
454
454
|
options: localVarRequestOptions,
|
|
@@ -462,7 +462,7 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
462
462
|
* @param {*} [options] Override http request option.
|
|
463
463
|
* @throws {RequiredError}
|
|
464
464
|
*/
|
|
465
|
-
gitGetHistory: (
|
|
465
|
+
gitGetHistory: (workspaceId_1, path_1, ...args_1) => __awaiter(this, [workspaceId_1, path_1, ...args_1], void 0, function* (workspaceId, path, options = {}) {
|
|
466
466
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
467
467
|
(0, common_1.assertParamExists)('gitGetHistory', 'workspaceId', workspaceId);
|
|
468
468
|
// verify required parameter 'path' is not null or undefined
|
|
@@ -500,7 +500,7 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
500
500
|
* @param {*} [options] Override http request option.
|
|
501
501
|
* @throws {RequiredError}
|
|
502
502
|
*/
|
|
503
|
-
gitGetStatus: (
|
|
503
|
+
gitGetStatus: (workspaceId_1, path_1, ...args_1) => __awaiter(this, [workspaceId_1, path_1, ...args_1], void 0, function* (workspaceId, path, options = {}) {
|
|
504
504
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
505
505
|
(0, common_1.assertParamExists)('gitGetStatus', 'workspaceId', workspaceId);
|
|
506
506
|
// verify required parameter 'path' is not null or undefined
|
|
@@ -538,7 +538,7 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
538
538
|
* @param {*} [options] Override http request option.
|
|
539
539
|
* @throws {RequiredError}
|
|
540
540
|
*/
|
|
541
|
-
gitListBranches: (
|
|
541
|
+
gitListBranches: (workspaceId_1, path_1, ...args_1) => __awaiter(this, [workspaceId_1, path_1, ...args_1], void 0, function* (workspaceId, path, options = {}) {
|
|
542
542
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
543
543
|
(0, common_1.assertParamExists)('gitListBranches', 'workspaceId', workspaceId);
|
|
544
544
|
// verify required parameter 'path' is not null or undefined
|
|
@@ -572,15 +572,15 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
572
572
|
* Pull changes from remote
|
|
573
573
|
* @summary Pull changes
|
|
574
574
|
* @param {string} workspaceId
|
|
575
|
-
* @param {
|
|
575
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
576
576
|
* @param {*} [options] Override http request option.
|
|
577
577
|
* @throws {RequiredError}
|
|
578
578
|
*/
|
|
579
|
-
gitPullChanges: (
|
|
579
|
+
gitPullChanges: (workspaceId_1, gitRepoRequest_1, ...args_1) => __awaiter(this, [workspaceId_1, gitRepoRequest_1, ...args_1], void 0, function* (workspaceId, gitRepoRequest, options = {}) {
|
|
580
580
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
581
581
|
(0, common_1.assertParamExists)('gitPullChanges', 'workspaceId', workspaceId);
|
|
582
|
-
// verify required parameter '
|
|
583
|
-
(0, common_1.assertParamExists)('gitPullChanges', '
|
|
582
|
+
// verify required parameter 'gitRepoRequest' is not null or undefined
|
|
583
|
+
(0, common_1.assertParamExists)('gitPullChanges', 'gitRepoRequest', gitRepoRequest);
|
|
584
584
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/pull`
|
|
585
585
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
586
586
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -599,7 +599,7 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
599
599
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
600
600
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
601
601
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
602
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
602
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitRepoRequest, localVarRequestOptions, configuration);
|
|
603
603
|
return {
|
|
604
604
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
605
605
|
options: localVarRequestOptions,
|
|
@@ -609,15 +609,15 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
609
609
|
* Push changes to remote
|
|
610
610
|
* @summary Push changes
|
|
611
611
|
* @param {string} workspaceId
|
|
612
|
-
* @param {
|
|
612
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
613
613
|
* @param {*} [options] Override http request option.
|
|
614
614
|
* @throws {RequiredError}
|
|
615
615
|
*/
|
|
616
|
-
gitPushChanges: (
|
|
616
|
+
gitPushChanges: (workspaceId_1, gitRepoRequest_1, ...args_1) => __awaiter(this, [workspaceId_1, gitRepoRequest_1, ...args_1], void 0, function* (workspaceId, gitRepoRequest, options = {}) {
|
|
617
617
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
618
618
|
(0, common_1.assertParamExists)('gitPushChanges', 'workspaceId', workspaceId);
|
|
619
|
-
// verify required parameter '
|
|
620
|
-
(0, common_1.assertParamExists)('gitPushChanges', '
|
|
619
|
+
// verify required parameter 'gitRepoRequest' is not null or undefined
|
|
620
|
+
(0, common_1.assertParamExists)('gitPushChanges', 'gitRepoRequest', gitRepoRequest);
|
|
621
621
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/push`
|
|
622
622
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
623
623
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -636,7 +636,7 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
636
636
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
637
637
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
638
638
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
639
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
639
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitRepoRequest, localVarRequestOptions, configuration);
|
|
640
640
|
return {
|
|
641
641
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
642
642
|
options: localVarRequestOptions,
|
|
@@ -650,7 +650,7 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
650
650
|
* @param {*} [options] Override http request option.
|
|
651
651
|
* @throws {RequiredError}
|
|
652
652
|
*/
|
|
653
|
-
listFiles: (
|
|
653
|
+
listFiles: (workspaceId_1, path_1, ...args_1) => __awaiter(this, [workspaceId_1, path_1, ...args_1], void 0, function* (workspaceId, path, options = {}) {
|
|
654
654
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
655
655
|
(0, common_1.assertParamExists)('listFiles', 'workspaceId', workspaceId);
|
|
656
656
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/files`
|
|
@@ -687,7 +687,7 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
687
687
|
* @param {*} [options] Override http request option.
|
|
688
688
|
* @throws {RequiredError}
|
|
689
689
|
*/
|
|
690
|
-
moveFile: (
|
|
690
|
+
moveFile: (workspaceId_1, source_1, destination_1, ...args_1) => __awaiter(this, [workspaceId_1, source_1, destination_1, ...args_1], void 0, function* (workspaceId, source, destination, options = {}) {
|
|
691
691
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
692
692
|
(0, common_1.assertParamExists)('moveFile', 'workspaceId', workspaceId);
|
|
693
693
|
// verify required parameter 'source' is not null or undefined
|
|
@@ -726,15 +726,15 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
726
726
|
* Replace text/pattern in multiple files inside workspace
|
|
727
727
|
* @summary Replace in files
|
|
728
728
|
* @param {string} workspaceId
|
|
729
|
-
* @param {
|
|
729
|
+
* @param {ReplaceRequest} replaceRequest
|
|
730
730
|
* @param {*} [options] Override http request option.
|
|
731
731
|
* @throws {RequiredError}
|
|
732
732
|
*/
|
|
733
|
-
replaceInFiles: (
|
|
733
|
+
replaceInFiles: (workspaceId_1, replaceRequest_1, ...args_1) => __awaiter(this, [workspaceId_1, replaceRequest_1, ...args_1], void 0, function* (workspaceId, replaceRequest, options = {}) {
|
|
734
734
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
735
735
|
(0, common_1.assertParamExists)('replaceInFiles', 'workspaceId', workspaceId);
|
|
736
|
-
// verify required parameter '
|
|
737
|
-
(0, common_1.assertParamExists)('replaceInFiles', '
|
|
736
|
+
// verify required parameter 'replaceRequest' is not null or undefined
|
|
737
|
+
(0, common_1.assertParamExists)('replaceInFiles', 'replaceRequest', replaceRequest);
|
|
738
738
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/files/replace`
|
|
739
739
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
740
740
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -753,7 +753,7 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
753
753
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
754
754
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
755
755
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
756
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
756
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(replaceRequest, localVarRequestOptions, configuration);
|
|
757
757
|
return {
|
|
758
758
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
759
759
|
options: localVarRequestOptions,
|
|
@@ -768,7 +768,7 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
768
768
|
* @param {*} [options] Override http request option.
|
|
769
769
|
* @throws {RequiredError}
|
|
770
770
|
*/
|
|
771
|
-
searchFiles: (
|
|
771
|
+
searchFiles: (workspaceId_1, path_1, pattern_1, ...args_1) => __awaiter(this, [workspaceId_1, path_1, pattern_1, ...args_1], void 0, function* (workspaceId, path, pattern, options = {}) {
|
|
772
772
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
773
773
|
(0, common_1.assertParamExists)('searchFiles', 'workspaceId', workspaceId);
|
|
774
774
|
// verify required parameter 'path' is not null or undefined
|
|
@@ -814,7 +814,7 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
814
814
|
* @param {*} [options] Override http request option.
|
|
815
815
|
* @throws {RequiredError}
|
|
816
816
|
*/
|
|
817
|
-
setFilePermissions: (
|
|
817
|
+
setFilePermissions: (workspaceId_1, path_1, owner_1, group_1, mode_1, ...args_1) => __awaiter(this, [workspaceId_1, path_1, owner_1, group_1, mode_1, ...args_1], void 0, function* (workspaceId, path, owner, group, mode, options = {}) {
|
|
818
818
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
819
819
|
(0, common_1.assertParamExists)('setFilePermissions', 'workspaceId', workspaceId);
|
|
820
820
|
// verify required parameter 'path' is not null or undefined
|
|
@@ -868,7 +868,7 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
868
868
|
* @param {*} [options] Override http request option.
|
|
869
869
|
* @throws {RequiredError}
|
|
870
870
|
*/
|
|
871
|
-
uploadFile: (
|
|
871
|
+
uploadFile: (workspaceId_1, path_1, file_1, ...args_1) => __awaiter(this, [workspaceId_1, path_1, file_1, ...args_1], void 0, function* (workspaceId, path, file, options = {}) {
|
|
872
872
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
873
873
|
(0, common_1.assertParamExists)('uploadFile', 'workspaceId', workspaceId);
|
|
874
874
|
// verify required parameter 'path' is not null or undefined
|
|
@@ -970,14 +970,14 @@ const ToolboxApiFp = function (configuration) {
|
|
|
970
970
|
* Execute command synchronously inside workspace
|
|
971
971
|
* @summary Execute command
|
|
972
972
|
* @param {string} workspaceId
|
|
973
|
-
* @param {
|
|
973
|
+
* @param {ExecuteRequest} executeRequest
|
|
974
974
|
* @param {*} [options] Override http request option.
|
|
975
975
|
* @throws {RequiredError}
|
|
976
976
|
*/
|
|
977
|
-
executeCommand(workspaceId,
|
|
977
|
+
executeCommand(workspaceId, executeRequest, options) {
|
|
978
978
|
return __awaiter(this, void 0, void 0, function* () {
|
|
979
979
|
var _a, _b, _c;
|
|
980
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.executeCommand(workspaceId,
|
|
980
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.executeCommand(workspaceId, executeRequest, options);
|
|
981
981
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
982
982
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ToolboxApi.executeCommand']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
983
983
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1038,14 +1038,14 @@ const ToolboxApiFp = function (configuration) {
|
|
|
1038
1038
|
* Add files to git commit
|
|
1039
1039
|
* @summary Add files
|
|
1040
1040
|
* @param {string} workspaceId
|
|
1041
|
-
* @param {
|
|
1041
|
+
* @param {GitAddRequest} gitAddRequest
|
|
1042
1042
|
* @param {*} [options] Override http request option.
|
|
1043
1043
|
* @throws {RequiredError}
|
|
1044
1044
|
*/
|
|
1045
|
-
gitAddFiles(workspaceId,
|
|
1045
|
+
gitAddFiles(workspaceId, gitAddRequest, options) {
|
|
1046
1046
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1047
1047
|
var _a, _b, _c;
|
|
1048
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.gitAddFiles(workspaceId,
|
|
1048
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.gitAddFiles(workspaceId, gitAddRequest, options);
|
|
1049
1049
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1050
1050
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ToolboxApi.gitAddFiles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1051
1051
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1055,14 +1055,14 @@ const ToolboxApiFp = function (configuration) {
|
|
|
1055
1055
|
* Clone git repository
|
|
1056
1056
|
* @summary Clone repository
|
|
1057
1057
|
* @param {string} workspaceId
|
|
1058
|
-
* @param {
|
|
1058
|
+
* @param {GitCloneRequest} gitCloneRequest
|
|
1059
1059
|
* @param {*} [options] Override http request option.
|
|
1060
1060
|
* @throws {RequiredError}
|
|
1061
1061
|
*/
|
|
1062
|
-
gitCloneRepository(workspaceId,
|
|
1062
|
+
gitCloneRepository(workspaceId, gitCloneRequest, options) {
|
|
1063
1063
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1064
1064
|
var _a, _b, _c;
|
|
1065
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.gitCloneRepository(workspaceId,
|
|
1065
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.gitCloneRepository(workspaceId, gitCloneRequest, options);
|
|
1066
1066
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1067
1067
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ToolboxApi.gitCloneRepository']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1068
1068
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1072,14 +1072,14 @@ const ToolboxApiFp = function (configuration) {
|
|
|
1072
1072
|
* Commit changes to git repository
|
|
1073
1073
|
* @summary Commit changes
|
|
1074
1074
|
* @param {string} workspaceId
|
|
1075
|
-
* @param {
|
|
1075
|
+
* @param {GitCommitRequest} gitCommitRequest
|
|
1076
1076
|
* @param {*} [options] Override http request option.
|
|
1077
1077
|
* @throws {RequiredError}
|
|
1078
1078
|
*/
|
|
1079
|
-
gitCommitChanges(workspaceId,
|
|
1079
|
+
gitCommitChanges(workspaceId, gitCommitRequest, options) {
|
|
1080
1080
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1081
1081
|
var _a, _b, _c;
|
|
1082
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.gitCommitChanges(workspaceId,
|
|
1082
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.gitCommitChanges(workspaceId, gitCommitRequest, options);
|
|
1083
1083
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1084
1084
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ToolboxApi.gitCommitChanges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1085
1085
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1089,14 +1089,14 @@ const ToolboxApiFp = function (configuration) {
|
|
|
1089
1089
|
* Create branch on git repository
|
|
1090
1090
|
* @summary Create branch
|
|
1091
1091
|
* @param {string} workspaceId
|
|
1092
|
-
* @param {
|
|
1092
|
+
* @param {GitBranchRequest} gitBranchRequest
|
|
1093
1093
|
* @param {*} [options] Override http request option.
|
|
1094
1094
|
* @throws {RequiredError}
|
|
1095
1095
|
*/
|
|
1096
|
-
gitCreateBranch(workspaceId,
|
|
1096
|
+
gitCreateBranch(workspaceId, gitBranchRequest, options) {
|
|
1097
1097
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1098
1098
|
var _a, _b, _c;
|
|
1099
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.gitCreateBranch(workspaceId,
|
|
1099
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.gitCreateBranch(workspaceId, gitBranchRequest, options);
|
|
1100
1100
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1101
1101
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ToolboxApi.gitCreateBranch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1102
1102
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1157,14 +1157,14 @@ const ToolboxApiFp = function (configuration) {
|
|
|
1157
1157
|
* Pull changes from remote
|
|
1158
1158
|
* @summary Pull changes
|
|
1159
1159
|
* @param {string} workspaceId
|
|
1160
|
-
* @param {
|
|
1160
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
1161
1161
|
* @param {*} [options] Override http request option.
|
|
1162
1162
|
* @throws {RequiredError}
|
|
1163
1163
|
*/
|
|
1164
|
-
gitPullChanges(workspaceId,
|
|
1164
|
+
gitPullChanges(workspaceId, gitRepoRequest, options) {
|
|
1165
1165
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1166
1166
|
var _a, _b, _c;
|
|
1167
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.gitPullChanges(workspaceId,
|
|
1167
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.gitPullChanges(workspaceId, gitRepoRequest, options);
|
|
1168
1168
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1169
1169
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ToolboxApi.gitPullChanges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1170
1170
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1174,14 +1174,14 @@ const ToolboxApiFp = function (configuration) {
|
|
|
1174
1174
|
* Push changes to remote
|
|
1175
1175
|
* @summary Push changes
|
|
1176
1176
|
* @param {string} workspaceId
|
|
1177
|
-
* @param {
|
|
1177
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
1178
1178
|
* @param {*} [options] Override http request option.
|
|
1179
1179
|
* @throws {RequiredError}
|
|
1180
1180
|
*/
|
|
1181
|
-
gitPushChanges(workspaceId,
|
|
1181
|
+
gitPushChanges(workspaceId, gitRepoRequest, options) {
|
|
1182
1182
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1183
1183
|
var _a, _b, _c;
|
|
1184
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.gitPushChanges(workspaceId,
|
|
1184
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.gitPushChanges(workspaceId, gitRepoRequest, options);
|
|
1185
1185
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1186
1186
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ToolboxApi.gitPushChanges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1187
1187
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1226,14 +1226,14 @@ const ToolboxApiFp = function (configuration) {
|
|
|
1226
1226
|
* Replace text/pattern in multiple files inside workspace
|
|
1227
1227
|
* @summary Replace in files
|
|
1228
1228
|
* @param {string} workspaceId
|
|
1229
|
-
* @param {
|
|
1229
|
+
* @param {ReplaceRequest} replaceRequest
|
|
1230
1230
|
* @param {*} [options] Override http request option.
|
|
1231
1231
|
* @throws {RequiredError}
|
|
1232
1232
|
*/
|
|
1233
|
-
replaceInFiles(workspaceId,
|
|
1233
|
+
replaceInFiles(workspaceId, replaceRequest, options) {
|
|
1234
1234
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1235
1235
|
var _a, _b, _c;
|
|
1236
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.replaceInFiles(workspaceId,
|
|
1236
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.replaceInFiles(workspaceId, replaceRequest, options);
|
|
1237
1237
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1238
1238
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ToolboxApi.replaceInFiles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1239
1239
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1343,12 +1343,12 @@ const ToolboxApiFactory = function (configuration, basePath, axios) {
|
|
|
1343
1343
|
* Execute command synchronously inside workspace
|
|
1344
1344
|
* @summary Execute command
|
|
1345
1345
|
* @param {string} workspaceId
|
|
1346
|
-
* @param {
|
|
1346
|
+
* @param {ExecuteRequest} executeRequest
|
|
1347
1347
|
* @param {*} [options] Override http request option.
|
|
1348
1348
|
* @throws {RequiredError}
|
|
1349
1349
|
*/
|
|
1350
|
-
executeCommand(workspaceId,
|
|
1351
|
-
return localVarFp.executeCommand(workspaceId,
|
|
1350
|
+
executeCommand(workspaceId, executeRequest, options) {
|
|
1351
|
+
return localVarFp.executeCommand(workspaceId, executeRequest, options).then((request) => request(axios, basePath));
|
|
1352
1352
|
},
|
|
1353
1353
|
/**
|
|
1354
1354
|
* Search for text/pattern inside workspace files
|
|
@@ -1387,45 +1387,45 @@ const ToolboxApiFactory = function (configuration, basePath, axios) {
|
|
|
1387
1387
|
* Add files to git commit
|
|
1388
1388
|
* @summary Add files
|
|
1389
1389
|
* @param {string} workspaceId
|
|
1390
|
-
* @param {
|
|
1390
|
+
* @param {GitAddRequest} gitAddRequest
|
|
1391
1391
|
* @param {*} [options] Override http request option.
|
|
1392
1392
|
* @throws {RequiredError}
|
|
1393
1393
|
*/
|
|
1394
|
-
gitAddFiles(workspaceId,
|
|
1395
|
-
return localVarFp.gitAddFiles(workspaceId,
|
|
1394
|
+
gitAddFiles(workspaceId, gitAddRequest, options) {
|
|
1395
|
+
return localVarFp.gitAddFiles(workspaceId, gitAddRequest, options).then((request) => request(axios, basePath));
|
|
1396
1396
|
},
|
|
1397
1397
|
/**
|
|
1398
1398
|
* Clone git repository
|
|
1399
1399
|
* @summary Clone repository
|
|
1400
1400
|
* @param {string} workspaceId
|
|
1401
|
-
* @param {
|
|
1401
|
+
* @param {GitCloneRequest} gitCloneRequest
|
|
1402
1402
|
* @param {*} [options] Override http request option.
|
|
1403
1403
|
* @throws {RequiredError}
|
|
1404
1404
|
*/
|
|
1405
|
-
gitCloneRepository(workspaceId,
|
|
1406
|
-
return localVarFp.gitCloneRepository(workspaceId,
|
|
1405
|
+
gitCloneRepository(workspaceId, gitCloneRequest, options) {
|
|
1406
|
+
return localVarFp.gitCloneRepository(workspaceId, gitCloneRequest, options).then((request) => request(axios, basePath));
|
|
1407
1407
|
},
|
|
1408
1408
|
/**
|
|
1409
1409
|
* Commit changes to git repository
|
|
1410
1410
|
* @summary Commit changes
|
|
1411
1411
|
* @param {string} workspaceId
|
|
1412
|
-
* @param {
|
|
1412
|
+
* @param {GitCommitRequest} gitCommitRequest
|
|
1413
1413
|
* @param {*} [options] Override http request option.
|
|
1414
1414
|
* @throws {RequiredError}
|
|
1415
1415
|
*/
|
|
1416
|
-
gitCommitChanges(workspaceId,
|
|
1417
|
-
return localVarFp.gitCommitChanges(workspaceId,
|
|
1416
|
+
gitCommitChanges(workspaceId, gitCommitRequest, options) {
|
|
1417
|
+
return localVarFp.gitCommitChanges(workspaceId, gitCommitRequest, options).then((request) => request(axios, basePath));
|
|
1418
1418
|
},
|
|
1419
1419
|
/**
|
|
1420
1420
|
* Create branch on git repository
|
|
1421
1421
|
* @summary Create branch
|
|
1422
1422
|
* @param {string} workspaceId
|
|
1423
|
-
* @param {
|
|
1423
|
+
* @param {GitBranchRequest} gitBranchRequest
|
|
1424
1424
|
* @param {*} [options] Override http request option.
|
|
1425
1425
|
* @throws {RequiredError}
|
|
1426
1426
|
*/
|
|
1427
|
-
gitCreateBranch(workspaceId,
|
|
1428
|
-
return localVarFp.gitCreateBranch(workspaceId,
|
|
1427
|
+
gitCreateBranch(workspaceId, gitBranchRequest, options) {
|
|
1428
|
+
return localVarFp.gitCreateBranch(workspaceId, gitBranchRequest, options).then((request) => request(axios, basePath));
|
|
1429
1429
|
},
|
|
1430
1430
|
/**
|
|
1431
1431
|
* Get commit history from git repository
|
|
@@ -1464,23 +1464,23 @@ const ToolboxApiFactory = function (configuration, basePath, axios) {
|
|
|
1464
1464
|
* Pull changes from remote
|
|
1465
1465
|
* @summary Pull changes
|
|
1466
1466
|
* @param {string} workspaceId
|
|
1467
|
-
* @param {
|
|
1467
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
1468
1468
|
* @param {*} [options] Override http request option.
|
|
1469
1469
|
* @throws {RequiredError}
|
|
1470
1470
|
*/
|
|
1471
|
-
gitPullChanges(workspaceId,
|
|
1472
|
-
return localVarFp.gitPullChanges(workspaceId,
|
|
1471
|
+
gitPullChanges(workspaceId, gitRepoRequest, options) {
|
|
1472
|
+
return localVarFp.gitPullChanges(workspaceId, gitRepoRequest, options).then((request) => request(axios, basePath));
|
|
1473
1473
|
},
|
|
1474
1474
|
/**
|
|
1475
1475
|
* Push changes to remote
|
|
1476
1476
|
* @summary Push changes
|
|
1477
1477
|
* @param {string} workspaceId
|
|
1478
|
-
* @param {
|
|
1478
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
1479
1479
|
* @param {*} [options] Override http request option.
|
|
1480
1480
|
* @throws {RequiredError}
|
|
1481
1481
|
*/
|
|
1482
|
-
gitPushChanges(workspaceId,
|
|
1483
|
-
return localVarFp.gitPushChanges(workspaceId,
|
|
1482
|
+
gitPushChanges(workspaceId, gitRepoRequest, options) {
|
|
1483
|
+
return localVarFp.gitPushChanges(workspaceId, gitRepoRequest, options).then((request) => request(axios, basePath));
|
|
1484
1484
|
},
|
|
1485
1485
|
/**
|
|
1486
1486
|
*
|
|
@@ -1509,12 +1509,12 @@ const ToolboxApiFactory = function (configuration, basePath, axios) {
|
|
|
1509
1509
|
* Replace text/pattern in multiple files inside workspace
|
|
1510
1510
|
* @summary Replace in files
|
|
1511
1511
|
* @param {string} workspaceId
|
|
1512
|
-
* @param {
|
|
1512
|
+
* @param {ReplaceRequest} replaceRequest
|
|
1513
1513
|
* @param {*} [options] Override http request option.
|
|
1514
1514
|
* @throws {RequiredError}
|
|
1515
1515
|
*/
|
|
1516
|
-
replaceInFiles(workspaceId,
|
|
1517
|
-
return localVarFp.replaceInFiles(workspaceId,
|
|
1516
|
+
replaceInFiles(workspaceId, replaceRequest, options) {
|
|
1517
|
+
return localVarFp.replaceInFiles(workspaceId, replaceRequest, options).then((request) => request(axios, basePath));
|
|
1518
1518
|
},
|
|
1519
1519
|
/**
|
|
1520
1520
|
* Search for files inside workspace
|
|
@@ -1605,13 +1605,13 @@ class ToolboxApi extends base_1.BaseAPI {
|
|
|
1605
1605
|
* Execute command synchronously inside workspace
|
|
1606
1606
|
* @summary Execute command
|
|
1607
1607
|
* @param {string} workspaceId
|
|
1608
|
-
* @param {
|
|
1608
|
+
* @param {ExecuteRequest} executeRequest
|
|
1609
1609
|
* @param {*} [options] Override http request option.
|
|
1610
1610
|
* @throws {RequiredError}
|
|
1611
1611
|
* @memberof ToolboxApi
|
|
1612
1612
|
*/
|
|
1613
|
-
executeCommand(workspaceId,
|
|
1614
|
-
return (0, exports.ToolboxApiFp)(this.configuration).executeCommand(workspaceId,
|
|
1613
|
+
executeCommand(workspaceId, executeRequest, options) {
|
|
1614
|
+
return (0, exports.ToolboxApiFp)(this.configuration).executeCommand(workspaceId, executeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1615
1615
|
}
|
|
1616
1616
|
/**
|
|
1617
1617
|
* Search for text/pattern inside workspace files
|
|
@@ -1653,49 +1653,49 @@ class ToolboxApi extends base_1.BaseAPI {
|
|
|
1653
1653
|
* Add files to git commit
|
|
1654
1654
|
* @summary Add files
|
|
1655
1655
|
* @param {string} workspaceId
|
|
1656
|
-
* @param {
|
|
1656
|
+
* @param {GitAddRequest} gitAddRequest
|
|
1657
1657
|
* @param {*} [options] Override http request option.
|
|
1658
1658
|
* @throws {RequiredError}
|
|
1659
1659
|
* @memberof ToolboxApi
|
|
1660
1660
|
*/
|
|
1661
|
-
gitAddFiles(workspaceId,
|
|
1662
|
-
return (0, exports.ToolboxApiFp)(this.configuration).gitAddFiles(workspaceId,
|
|
1661
|
+
gitAddFiles(workspaceId, gitAddRequest, options) {
|
|
1662
|
+
return (0, exports.ToolboxApiFp)(this.configuration).gitAddFiles(workspaceId, gitAddRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1663
1663
|
}
|
|
1664
1664
|
/**
|
|
1665
1665
|
* Clone git repository
|
|
1666
1666
|
* @summary Clone repository
|
|
1667
1667
|
* @param {string} workspaceId
|
|
1668
|
-
* @param {
|
|
1668
|
+
* @param {GitCloneRequest} gitCloneRequest
|
|
1669
1669
|
* @param {*} [options] Override http request option.
|
|
1670
1670
|
* @throws {RequiredError}
|
|
1671
1671
|
* @memberof ToolboxApi
|
|
1672
1672
|
*/
|
|
1673
|
-
gitCloneRepository(workspaceId,
|
|
1674
|
-
return (0, exports.ToolboxApiFp)(this.configuration).gitCloneRepository(workspaceId,
|
|
1673
|
+
gitCloneRepository(workspaceId, gitCloneRequest, options) {
|
|
1674
|
+
return (0, exports.ToolboxApiFp)(this.configuration).gitCloneRepository(workspaceId, gitCloneRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1675
1675
|
}
|
|
1676
1676
|
/**
|
|
1677
1677
|
* Commit changes to git repository
|
|
1678
1678
|
* @summary Commit changes
|
|
1679
1679
|
* @param {string} workspaceId
|
|
1680
|
-
* @param {
|
|
1680
|
+
* @param {GitCommitRequest} gitCommitRequest
|
|
1681
1681
|
* @param {*} [options] Override http request option.
|
|
1682
1682
|
* @throws {RequiredError}
|
|
1683
1683
|
* @memberof ToolboxApi
|
|
1684
1684
|
*/
|
|
1685
|
-
gitCommitChanges(workspaceId,
|
|
1686
|
-
return (0, exports.ToolboxApiFp)(this.configuration).gitCommitChanges(workspaceId,
|
|
1685
|
+
gitCommitChanges(workspaceId, gitCommitRequest, options) {
|
|
1686
|
+
return (0, exports.ToolboxApiFp)(this.configuration).gitCommitChanges(workspaceId, gitCommitRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1687
1687
|
}
|
|
1688
1688
|
/**
|
|
1689
1689
|
* Create branch on git repository
|
|
1690
1690
|
* @summary Create branch
|
|
1691
1691
|
* @param {string} workspaceId
|
|
1692
|
-
* @param {
|
|
1692
|
+
* @param {GitBranchRequest} gitBranchRequest
|
|
1693
1693
|
* @param {*} [options] Override http request option.
|
|
1694
1694
|
* @throws {RequiredError}
|
|
1695
1695
|
* @memberof ToolboxApi
|
|
1696
1696
|
*/
|
|
1697
|
-
gitCreateBranch(workspaceId,
|
|
1698
|
-
return (0, exports.ToolboxApiFp)(this.configuration).gitCreateBranch(workspaceId,
|
|
1697
|
+
gitCreateBranch(workspaceId, gitBranchRequest, options) {
|
|
1698
|
+
return (0, exports.ToolboxApiFp)(this.configuration).gitCreateBranch(workspaceId, gitBranchRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1699
1699
|
}
|
|
1700
1700
|
/**
|
|
1701
1701
|
* Get commit history from git repository
|
|
@@ -1737,25 +1737,25 @@ class ToolboxApi extends base_1.BaseAPI {
|
|
|
1737
1737
|
* Pull changes from remote
|
|
1738
1738
|
* @summary Pull changes
|
|
1739
1739
|
* @param {string} workspaceId
|
|
1740
|
-
* @param {
|
|
1740
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
1741
1741
|
* @param {*} [options] Override http request option.
|
|
1742
1742
|
* @throws {RequiredError}
|
|
1743
1743
|
* @memberof ToolboxApi
|
|
1744
1744
|
*/
|
|
1745
|
-
gitPullChanges(workspaceId,
|
|
1746
|
-
return (0, exports.ToolboxApiFp)(this.configuration).gitPullChanges(workspaceId,
|
|
1745
|
+
gitPullChanges(workspaceId, gitRepoRequest, options) {
|
|
1746
|
+
return (0, exports.ToolboxApiFp)(this.configuration).gitPullChanges(workspaceId, gitRepoRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1747
1747
|
}
|
|
1748
1748
|
/**
|
|
1749
1749
|
* Push changes to remote
|
|
1750
1750
|
* @summary Push changes
|
|
1751
1751
|
* @param {string} workspaceId
|
|
1752
|
-
* @param {
|
|
1752
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
1753
1753
|
* @param {*} [options] Override http request option.
|
|
1754
1754
|
* @throws {RequiredError}
|
|
1755
1755
|
* @memberof ToolboxApi
|
|
1756
1756
|
*/
|
|
1757
|
-
gitPushChanges(workspaceId,
|
|
1758
|
-
return (0, exports.ToolboxApiFp)(this.configuration).gitPushChanges(workspaceId,
|
|
1757
|
+
gitPushChanges(workspaceId, gitRepoRequest, options) {
|
|
1758
|
+
return (0, exports.ToolboxApiFp)(this.configuration).gitPushChanges(workspaceId, gitRepoRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1759
1759
|
}
|
|
1760
1760
|
/**
|
|
1761
1761
|
*
|
|
@@ -1786,13 +1786,13 @@ class ToolboxApi extends base_1.BaseAPI {
|
|
|
1786
1786
|
* Replace text/pattern in multiple files inside workspace
|
|
1787
1787
|
* @summary Replace in files
|
|
1788
1788
|
* @param {string} workspaceId
|
|
1789
|
-
* @param {
|
|
1789
|
+
* @param {ReplaceRequest} replaceRequest
|
|
1790
1790
|
* @param {*} [options] Override http request option.
|
|
1791
1791
|
* @throws {RequiredError}
|
|
1792
1792
|
* @memberof ToolboxApi
|
|
1793
1793
|
*/
|
|
1794
|
-
replaceInFiles(workspaceId,
|
|
1795
|
-
return (0, exports.ToolboxApiFp)(this.configuration).replaceInFiles(workspaceId,
|
|
1794
|
+
replaceInFiles(workspaceId, replaceRequest, options) {
|
|
1795
|
+
return (0, exports.ToolboxApiFp)(this.configuration).replaceInFiles(workspaceId, replaceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1796
1796
|
}
|
|
1797
1797
|
/**
|
|
1798
1798
|
* Search for files inside workspace
|