@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
|
@@ -84,7 +84,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
84
84
|
* @param {*} [options] Override http request option.
|
|
85
85
|
* @throws {RequiredError}
|
|
86
86
|
*/
|
|
87
|
-
deleteFile: (
|
|
87
|
+
deleteFile: (workspaceId_1, path_1, ...args_1) => __awaiter(this, [workspaceId_1, path_1, ...args_1], void 0, function* (workspaceId, path, options = {}) {
|
|
88
88
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
89
89
|
assertParamExists('deleteFile', 'workspaceId', workspaceId);
|
|
90
90
|
// verify required parameter 'path' is not null or undefined
|
|
@@ -122,7 +122,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
122
122
|
* @param {*} [options] Override http request option.
|
|
123
123
|
* @throws {RequiredError}
|
|
124
124
|
*/
|
|
125
|
-
downloadFile: (
|
|
125
|
+
downloadFile: (workspaceId_1, path_1, ...args_1) => __awaiter(this, [workspaceId_1, path_1, ...args_1], void 0, function* (workspaceId, path, options = {}) {
|
|
126
126
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
127
127
|
assertParamExists('downloadFile', 'workspaceId', workspaceId);
|
|
128
128
|
// verify required parameter 'path' is not null or undefined
|
|
@@ -156,15 +156,15 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
156
156
|
* Execute command synchronously inside workspace
|
|
157
157
|
* @summary Execute command
|
|
158
158
|
* @param {string} workspaceId
|
|
159
|
-
* @param {
|
|
159
|
+
* @param {ExecuteRequest} executeRequest
|
|
160
160
|
* @param {*} [options] Override http request option.
|
|
161
161
|
* @throws {RequiredError}
|
|
162
162
|
*/
|
|
163
|
-
executeCommand: (
|
|
163
|
+
executeCommand: (workspaceId_1, executeRequest_1, ...args_1) => __awaiter(this, [workspaceId_1, executeRequest_1, ...args_1], void 0, function* (workspaceId, executeRequest, options = {}) {
|
|
164
164
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
165
165
|
assertParamExists('executeCommand', 'workspaceId', workspaceId);
|
|
166
|
-
// verify required parameter '
|
|
167
|
-
assertParamExists('executeCommand', '
|
|
166
|
+
// verify required parameter 'executeRequest' is not null or undefined
|
|
167
|
+
assertParamExists('executeCommand', 'executeRequest', executeRequest);
|
|
168
168
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/process/execute`
|
|
169
169
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
170
170
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -183,7 +183,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
183
183
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
184
184
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
185
185
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
186
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
186
|
+
localVarRequestOptions.data = serializeDataIfNeeded(executeRequest, localVarRequestOptions, configuration);
|
|
187
187
|
return {
|
|
188
188
|
url: toPathString(localVarUrlObj),
|
|
189
189
|
options: localVarRequestOptions,
|
|
@@ -198,7 +198,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
198
198
|
* @param {*} [options] Override http request option.
|
|
199
199
|
* @throws {RequiredError}
|
|
200
200
|
*/
|
|
201
|
-
findInFiles: (
|
|
201
|
+
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 = {}) {
|
|
202
202
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
203
203
|
assertParamExists('findInFiles', 'workspaceId', workspaceId);
|
|
204
204
|
// verify required parameter 'path' is not null or undefined
|
|
@@ -241,7 +241,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
241
241
|
* @param {*} [options] Override http request option.
|
|
242
242
|
* @throws {RequiredError}
|
|
243
243
|
*/
|
|
244
|
-
getFileInfo: (
|
|
244
|
+
getFileInfo: (workspaceId_1, path_1, ...args_1) => __awaiter(this, [workspaceId_1, path_1, ...args_1], void 0, function* (workspaceId, path, options = {}) {
|
|
245
245
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
246
246
|
assertParamExists('getFileInfo', 'workspaceId', workspaceId);
|
|
247
247
|
// verify required parameter 'path' is not null or undefined
|
|
@@ -278,7 +278,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
278
278
|
* @param {*} [options] Override http request option.
|
|
279
279
|
* @throws {RequiredError}
|
|
280
280
|
*/
|
|
281
|
-
getProjectDir: (
|
|
281
|
+
getProjectDir: (workspaceId_1, ...args_1) => __awaiter(this, [workspaceId_1, ...args_1], void 0, function* (workspaceId, options = {}) {
|
|
282
282
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
283
283
|
assertParamExists('getProjectDir', 'workspaceId', workspaceId);
|
|
284
284
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/project-dir`
|
|
@@ -307,15 +307,15 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
307
307
|
* Add files to git commit
|
|
308
308
|
* @summary Add files
|
|
309
309
|
* @param {string} workspaceId
|
|
310
|
-
* @param {
|
|
310
|
+
* @param {GitAddRequest} gitAddRequest
|
|
311
311
|
* @param {*} [options] Override http request option.
|
|
312
312
|
* @throws {RequiredError}
|
|
313
313
|
*/
|
|
314
|
-
gitAddFiles: (
|
|
314
|
+
gitAddFiles: (workspaceId_1, gitAddRequest_1, ...args_1) => __awaiter(this, [workspaceId_1, gitAddRequest_1, ...args_1], void 0, function* (workspaceId, gitAddRequest, options = {}) {
|
|
315
315
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
316
316
|
assertParamExists('gitAddFiles', 'workspaceId', workspaceId);
|
|
317
|
-
// verify required parameter '
|
|
318
|
-
assertParamExists('gitAddFiles', '
|
|
317
|
+
// verify required parameter 'gitAddRequest' is not null or undefined
|
|
318
|
+
assertParamExists('gitAddFiles', 'gitAddRequest', gitAddRequest);
|
|
319
319
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/add`
|
|
320
320
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
321
321
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -334,7 +334,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
334
334
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
335
335
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
336
336
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
337
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
337
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitAddRequest, localVarRequestOptions, configuration);
|
|
338
338
|
return {
|
|
339
339
|
url: toPathString(localVarUrlObj),
|
|
340
340
|
options: localVarRequestOptions,
|
|
@@ -344,15 +344,15 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
344
344
|
* Clone git repository
|
|
345
345
|
* @summary Clone repository
|
|
346
346
|
* @param {string} workspaceId
|
|
347
|
-
* @param {
|
|
347
|
+
* @param {GitCloneRequest} gitCloneRequest
|
|
348
348
|
* @param {*} [options] Override http request option.
|
|
349
349
|
* @throws {RequiredError}
|
|
350
350
|
*/
|
|
351
|
-
gitCloneRepository: (
|
|
351
|
+
gitCloneRepository: (workspaceId_1, gitCloneRequest_1, ...args_1) => __awaiter(this, [workspaceId_1, gitCloneRequest_1, ...args_1], void 0, function* (workspaceId, gitCloneRequest, options = {}) {
|
|
352
352
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
353
353
|
assertParamExists('gitCloneRepository', 'workspaceId', workspaceId);
|
|
354
|
-
// verify required parameter '
|
|
355
|
-
assertParamExists('gitCloneRepository', '
|
|
354
|
+
// verify required parameter 'gitCloneRequest' is not null or undefined
|
|
355
|
+
assertParamExists('gitCloneRepository', 'gitCloneRequest', gitCloneRequest);
|
|
356
356
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/clone`
|
|
357
357
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
358
358
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -371,7 +371,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
371
371
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
372
372
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
373
373
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
374
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
374
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitCloneRequest, localVarRequestOptions, configuration);
|
|
375
375
|
return {
|
|
376
376
|
url: toPathString(localVarUrlObj),
|
|
377
377
|
options: localVarRequestOptions,
|
|
@@ -381,15 +381,15 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
381
381
|
* Commit changes to git repository
|
|
382
382
|
* @summary Commit changes
|
|
383
383
|
* @param {string} workspaceId
|
|
384
|
-
* @param {
|
|
384
|
+
* @param {GitCommitRequest} gitCommitRequest
|
|
385
385
|
* @param {*} [options] Override http request option.
|
|
386
386
|
* @throws {RequiredError}
|
|
387
387
|
*/
|
|
388
|
-
gitCommitChanges: (
|
|
388
|
+
gitCommitChanges: (workspaceId_1, gitCommitRequest_1, ...args_1) => __awaiter(this, [workspaceId_1, gitCommitRequest_1, ...args_1], void 0, function* (workspaceId, gitCommitRequest, options = {}) {
|
|
389
389
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
390
390
|
assertParamExists('gitCommitChanges', 'workspaceId', workspaceId);
|
|
391
|
-
// verify required parameter '
|
|
392
|
-
assertParamExists('gitCommitChanges', '
|
|
391
|
+
// verify required parameter 'gitCommitRequest' is not null or undefined
|
|
392
|
+
assertParamExists('gitCommitChanges', 'gitCommitRequest', gitCommitRequest);
|
|
393
393
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/commit`
|
|
394
394
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
395
395
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -408,7 +408,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
408
408
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
409
409
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
410
410
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
411
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
411
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitCommitRequest, localVarRequestOptions, configuration);
|
|
412
412
|
return {
|
|
413
413
|
url: toPathString(localVarUrlObj),
|
|
414
414
|
options: localVarRequestOptions,
|
|
@@ -418,15 +418,15 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
418
418
|
* Create branch on git repository
|
|
419
419
|
* @summary Create branch
|
|
420
420
|
* @param {string} workspaceId
|
|
421
|
-
* @param {
|
|
421
|
+
* @param {GitBranchRequest} gitBranchRequest
|
|
422
422
|
* @param {*} [options] Override http request option.
|
|
423
423
|
* @throws {RequiredError}
|
|
424
424
|
*/
|
|
425
|
-
gitCreateBranch: (
|
|
425
|
+
gitCreateBranch: (workspaceId_1, gitBranchRequest_1, ...args_1) => __awaiter(this, [workspaceId_1, gitBranchRequest_1, ...args_1], void 0, function* (workspaceId, gitBranchRequest, options = {}) {
|
|
426
426
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
427
427
|
assertParamExists('gitCreateBranch', 'workspaceId', workspaceId);
|
|
428
|
-
// verify required parameter '
|
|
429
|
-
assertParamExists('gitCreateBranch', '
|
|
428
|
+
// verify required parameter 'gitBranchRequest' is not null or undefined
|
|
429
|
+
assertParamExists('gitCreateBranch', 'gitBranchRequest', gitBranchRequest);
|
|
430
430
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/branches`
|
|
431
431
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
432
432
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -445,7 +445,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
445
445
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
446
446
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
447
447
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
448
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
448
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitBranchRequest, localVarRequestOptions, configuration);
|
|
449
449
|
return {
|
|
450
450
|
url: toPathString(localVarUrlObj),
|
|
451
451
|
options: localVarRequestOptions,
|
|
@@ -459,7 +459,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
459
459
|
* @param {*} [options] Override http request option.
|
|
460
460
|
* @throws {RequiredError}
|
|
461
461
|
*/
|
|
462
|
-
gitGetHistory: (
|
|
462
|
+
gitGetHistory: (workspaceId_1, path_1, ...args_1) => __awaiter(this, [workspaceId_1, path_1, ...args_1], void 0, function* (workspaceId, path, options = {}) {
|
|
463
463
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
464
464
|
assertParamExists('gitGetHistory', 'workspaceId', workspaceId);
|
|
465
465
|
// verify required parameter 'path' is not null or undefined
|
|
@@ -497,7 +497,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
497
497
|
* @param {*} [options] Override http request option.
|
|
498
498
|
* @throws {RequiredError}
|
|
499
499
|
*/
|
|
500
|
-
gitGetStatus: (
|
|
500
|
+
gitGetStatus: (workspaceId_1, path_1, ...args_1) => __awaiter(this, [workspaceId_1, path_1, ...args_1], void 0, function* (workspaceId, path, options = {}) {
|
|
501
501
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
502
502
|
assertParamExists('gitGetStatus', 'workspaceId', workspaceId);
|
|
503
503
|
// verify required parameter 'path' is not null or undefined
|
|
@@ -535,7 +535,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
535
535
|
* @param {*} [options] Override http request option.
|
|
536
536
|
* @throws {RequiredError}
|
|
537
537
|
*/
|
|
538
|
-
gitListBranches: (
|
|
538
|
+
gitListBranches: (workspaceId_1, path_1, ...args_1) => __awaiter(this, [workspaceId_1, path_1, ...args_1], void 0, function* (workspaceId, path, options = {}) {
|
|
539
539
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
540
540
|
assertParamExists('gitListBranches', 'workspaceId', workspaceId);
|
|
541
541
|
// verify required parameter 'path' is not null or undefined
|
|
@@ -569,15 +569,15 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
569
569
|
* Pull changes from remote
|
|
570
570
|
* @summary Pull changes
|
|
571
571
|
* @param {string} workspaceId
|
|
572
|
-
* @param {
|
|
572
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
573
573
|
* @param {*} [options] Override http request option.
|
|
574
574
|
* @throws {RequiredError}
|
|
575
575
|
*/
|
|
576
|
-
gitPullChanges: (
|
|
576
|
+
gitPullChanges: (workspaceId_1, gitRepoRequest_1, ...args_1) => __awaiter(this, [workspaceId_1, gitRepoRequest_1, ...args_1], void 0, function* (workspaceId, gitRepoRequest, options = {}) {
|
|
577
577
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
578
578
|
assertParamExists('gitPullChanges', 'workspaceId', workspaceId);
|
|
579
|
-
// verify required parameter '
|
|
580
|
-
assertParamExists('gitPullChanges', '
|
|
579
|
+
// verify required parameter 'gitRepoRequest' is not null or undefined
|
|
580
|
+
assertParamExists('gitPullChanges', 'gitRepoRequest', gitRepoRequest);
|
|
581
581
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/pull`
|
|
582
582
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
583
583
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -596,7 +596,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
596
596
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
597
597
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
598
598
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
599
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
599
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitRepoRequest, localVarRequestOptions, configuration);
|
|
600
600
|
return {
|
|
601
601
|
url: toPathString(localVarUrlObj),
|
|
602
602
|
options: localVarRequestOptions,
|
|
@@ -606,15 +606,15 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
606
606
|
* Push changes to remote
|
|
607
607
|
* @summary Push changes
|
|
608
608
|
* @param {string} workspaceId
|
|
609
|
-
* @param {
|
|
609
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
610
610
|
* @param {*} [options] Override http request option.
|
|
611
611
|
* @throws {RequiredError}
|
|
612
612
|
*/
|
|
613
|
-
gitPushChanges: (
|
|
613
|
+
gitPushChanges: (workspaceId_1, gitRepoRequest_1, ...args_1) => __awaiter(this, [workspaceId_1, gitRepoRequest_1, ...args_1], void 0, function* (workspaceId, gitRepoRequest, options = {}) {
|
|
614
614
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
615
615
|
assertParamExists('gitPushChanges', 'workspaceId', workspaceId);
|
|
616
|
-
// verify required parameter '
|
|
617
|
-
assertParamExists('gitPushChanges', '
|
|
616
|
+
// verify required parameter 'gitRepoRequest' is not null or undefined
|
|
617
|
+
assertParamExists('gitPushChanges', 'gitRepoRequest', gitRepoRequest);
|
|
618
618
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/push`
|
|
619
619
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
620
620
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -633,7 +633,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
633
633
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
634
634
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
635
635
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
636
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
636
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitRepoRequest, localVarRequestOptions, configuration);
|
|
637
637
|
return {
|
|
638
638
|
url: toPathString(localVarUrlObj),
|
|
639
639
|
options: localVarRequestOptions,
|
|
@@ -647,7 +647,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
647
647
|
* @param {*} [options] Override http request option.
|
|
648
648
|
* @throws {RequiredError}
|
|
649
649
|
*/
|
|
650
|
-
listFiles: (
|
|
650
|
+
listFiles: (workspaceId_1, path_1, ...args_1) => __awaiter(this, [workspaceId_1, path_1, ...args_1], void 0, function* (workspaceId, path, options = {}) {
|
|
651
651
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
652
652
|
assertParamExists('listFiles', 'workspaceId', workspaceId);
|
|
653
653
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/files`
|
|
@@ -684,7 +684,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
684
684
|
* @param {*} [options] Override http request option.
|
|
685
685
|
* @throws {RequiredError}
|
|
686
686
|
*/
|
|
687
|
-
moveFile: (
|
|
687
|
+
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 = {}) {
|
|
688
688
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
689
689
|
assertParamExists('moveFile', 'workspaceId', workspaceId);
|
|
690
690
|
// verify required parameter 'source' is not null or undefined
|
|
@@ -723,15 +723,15 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
723
723
|
* Replace text/pattern in multiple files inside workspace
|
|
724
724
|
* @summary Replace in files
|
|
725
725
|
* @param {string} workspaceId
|
|
726
|
-
* @param {
|
|
726
|
+
* @param {ReplaceRequest} replaceRequest
|
|
727
727
|
* @param {*} [options] Override http request option.
|
|
728
728
|
* @throws {RequiredError}
|
|
729
729
|
*/
|
|
730
|
-
replaceInFiles: (
|
|
730
|
+
replaceInFiles: (workspaceId_1, replaceRequest_1, ...args_1) => __awaiter(this, [workspaceId_1, replaceRequest_1, ...args_1], void 0, function* (workspaceId, replaceRequest, options = {}) {
|
|
731
731
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
732
732
|
assertParamExists('replaceInFiles', 'workspaceId', workspaceId);
|
|
733
|
-
// verify required parameter '
|
|
734
|
-
assertParamExists('replaceInFiles', '
|
|
733
|
+
// verify required parameter 'replaceRequest' is not null or undefined
|
|
734
|
+
assertParamExists('replaceInFiles', 'replaceRequest', replaceRequest);
|
|
735
735
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/files/replace`
|
|
736
736
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
737
737
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -750,7 +750,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
750
750
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
751
751
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
752
752
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
753
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
753
|
+
localVarRequestOptions.data = serializeDataIfNeeded(replaceRequest, localVarRequestOptions, configuration);
|
|
754
754
|
return {
|
|
755
755
|
url: toPathString(localVarUrlObj),
|
|
756
756
|
options: localVarRequestOptions,
|
|
@@ -765,7 +765,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
765
765
|
* @param {*} [options] Override http request option.
|
|
766
766
|
* @throws {RequiredError}
|
|
767
767
|
*/
|
|
768
|
-
searchFiles: (
|
|
768
|
+
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 = {}) {
|
|
769
769
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
770
770
|
assertParamExists('searchFiles', 'workspaceId', workspaceId);
|
|
771
771
|
// verify required parameter 'path' is not null or undefined
|
|
@@ -811,7 +811,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
811
811
|
* @param {*} [options] Override http request option.
|
|
812
812
|
* @throws {RequiredError}
|
|
813
813
|
*/
|
|
814
|
-
setFilePermissions: (
|
|
814
|
+
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 = {}) {
|
|
815
815
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
816
816
|
assertParamExists('setFilePermissions', 'workspaceId', workspaceId);
|
|
817
817
|
// verify required parameter 'path' is not null or undefined
|
|
@@ -865,7 +865,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
865
865
|
* @param {*} [options] Override http request option.
|
|
866
866
|
* @throws {RequiredError}
|
|
867
867
|
*/
|
|
868
|
-
uploadFile: (
|
|
868
|
+
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 = {}) {
|
|
869
869
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
870
870
|
assertParamExists('uploadFile', 'workspaceId', workspaceId);
|
|
871
871
|
// verify required parameter 'path' is not null or undefined
|
|
@@ -966,14 +966,14 @@ export const ToolboxApiFp = function (configuration) {
|
|
|
966
966
|
* Execute command synchronously inside workspace
|
|
967
967
|
* @summary Execute command
|
|
968
968
|
* @param {string} workspaceId
|
|
969
|
-
* @param {
|
|
969
|
+
* @param {ExecuteRequest} executeRequest
|
|
970
970
|
* @param {*} [options] Override http request option.
|
|
971
971
|
* @throws {RequiredError}
|
|
972
972
|
*/
|
|
973
|
-
executeCommand(workspaceId,
|
|
973
|
+
executeCommand(workspaceId, executeRequest, options) {
|
|
974
974
|
return __awaiter(this, void 0, void 0, function* () {
|
|
975
975
|
var _a, _b, _c;
|
|
976
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.executeCommand(workspaceId,
|
|
976
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.executeCommand(workspaceId, executeRequest, options);
|
|
977
977
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
978
978
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ToolboxApi.executeCommand']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
979
979
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1034,14 +1034,14 @@ export const ToolboxApiFp = function (configuration) {
|
|
|
1034
1034
|
* Add files to git commit
|
|
1035
1035
|
* @summary Add files
|
|
1036
1036
|
* @param {string} workspaceId
|
|
1037
|
-
* @param {
|
|
1037
|
+
* @param {GitAddRequest} gitAddRequest
|
|
1038
1038
|
* @param {*} [options] Override http request option.
|
|
1039
1039
|
* @throws {RequiredError}
|
|
1040
1040
|
*/
|
|
1041
|
-
gitAddFiles(workspaceId,
|
|
1041
|
+
gitAddFiles(workspaceId, gitAddRequest, options) {
|
|
1042
1042
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1043
1043
|
var _a, _b, _c;
|
|
1044
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.gitAddFiles(workspaceId,
|
|
1044
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.gitAddFiles(workspaceId, gitAddRequest, options);
|
|
1045
1045
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1046
1046
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ToolboxApi.gitAddFiles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1047
1047
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1051,14 +1051,14 @@ export const ToolboxApiFp = function (configuration) {
|
|
|
1051
1051
|
* Clone git repository
|
|
1052
1052
|
* @summary Clone repository
|
|
1053
1053
|
* @param {string} workspaceId
|
|
1054
|
-
* @param {
|
|
1054
|
+
* @param {GitCloneRequest} gitCloneRequest
|
|
1055
1055
|
* @param {*} [options] Override http request option.
|
|
1056
1056
|
* @throws {RequiredError}
|
|
1057
1057
|
*/
|
|
1058
|
-
gitCloneRepository(workspaceId,
|
|
1058
|
+
gitCloneRepository(workspaceId, gitCloneRequest, options) {
|
|
1059
1059
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1060
1060
|
var _a, _b, _c;
|
|
1061
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.gitCloneRepository(workspaceId,
|
|
1061
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.gitCloneRepository(workspaceId, gitCloneRequest, options);
|
|
1062
1062
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1063
1063
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ToolboxApi.gitCloneRepository']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1064
1064
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1068,14 +1068,14 @@ export const ToolboxApiFp = function (configuration) {
|
|
|
1068
1068
|
* Commit changes to git repository
|
|
1069
1069
|
* @summary Commit changes
|
|
1070
1070
|
* @param {string} workspaceId
|
|
1071
|
-
* @param {
|
|
1071
|
+
* @param {GitCommitRequest} gitCommitRequest
|
|
1072
1072
|
* @param {*} [options] Override http request option.
|
|
1073
1073
|
* @throws {RequiredError}
|
|
1074
1074
|
*/
|
|
1075
|
-
gitCommitChanges(workspaceId,
|
|
1075
|
+
gitCommitChanges(workspaceId, gitCommitRequest, options) {
|
|
1076
1076
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1077
1077
|
var _a, _b, _c;
|
|
1078
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.gitCommitChanges(workspaceId,
|
|
1078
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.gitCommitChanges(workspaceId, gitCommitRequest, options);
|
|
1079
1079
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1080
1080
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ToolboxApi.gitCommitChanges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1081
1081
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1085,14 +1085,14 @@ export const ToolboxApiFp = function (configuration) {
|
|
|
1085
1085
|
* Create branch on git repository
|
|
1086
1086
|
* @summary Create branch
|
|
1087
1087
|
* @param {string} workspaceId
|
|
1088
|
-
* @param {
|
|
1088
|
+
* @param {GitBranchRequest} gitBranchRequest
|
|
1089
1089
|
* @param {*} [options] Override http request option.
|
|
1090
1090
|
* @throws {RequiredError}
|
|
1091
1091
|
*/
|
|
1092
|
-
gitCreateBranch(workspaceId,
|
|
1092
|
+
gitCreateBranch(workspaceId, gitBranchRequest, options) {
|
|
1093
1093
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1094
1094
|
var _a, _b, _c;
|
|
1095
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.gitCreateBranch(workspaceId,
|
|
1095
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.gitCreateBranch(workspaceId, gitBranchRequest, options);
|
|
1096
1096
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1097
1097
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ToolboxApi.gitCreateBranch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1098
1098
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1153,14 +1153,14 @@ export const ToolboxApiFp = function (configuration) {
|
|
|
1153
1153
|
* Pull changes from remote
|
|
1154
1154
|
* @summary Pull changes
|
|
1155
1155
|
* @param {string} workspaceId
|
|
1156
|
-
* @param {
|
|
1156
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
1157
1157
|
* @param {*} [options] Override http request option.
|
|
1158
1158
|
* @throws {RequiredError}
|
|
1159
1159
|
*/
|
|
1160
|
-
gitPullChanges(workspaceId,
|
|
1160
|
+
gitPullChanges(workspaceId, gitRepoRequest, options) {
|
|
1161
1161
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1162
1162
|
var _a, _b, _c;
|
|
1163
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.gitPullChanges(workspaceId,
|
|
1163
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.gitPullChanges(workspaceId, gitRepoRequest, options);
|
|
1164
1164
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1165
1165
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ToolboxApi.gitPullChanges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1166
1166
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1170,14 +1170,14 @@ export const ToolboxApiFp = function (configuration) {
|
|
|
1170
1170
|
* Push changes to remote
|
|
1171
1171
|
* @summary Push changes
|
|
1172
1172
|
* @param {string} workspaceId
|
|
1173
|
-
* @param {
|
|
1173
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
1174
1174
|
* @param {*} [options] Override http request option.
|
|
1175
1175
|
* @throws {RequiredError}
|
|
1176
1176
|
*/
|
|
1177
|
-
gitPushChanges(workspaceId,
|
|
1177
|
+
gitPushChanges(workspaceId, gitRepoRequest, options) {
|
|
1178
1178
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1179
1179
|
var _a, _b, _c;
|
|
1180
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.gitPushChanges(workspaceId,
|
|
1180
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.gitPushChanges(workspaceId, gitRepoRequest, options);
|
|
1181
1181
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1182
1182
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ToolboxApi.gitPushChanges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1183
1183
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1222,14 +1222,14 @@ export const ToolboxApiFp = function (configuration) {
|
|
|
1222
1222
|
* Replace text/pattern in multiple files inside workspace
|
|
1223
1223
|
* @summary Replace in files
|
|
1224
1224
|
* @param {string} workspaceId
|
|
1225
|
-
* @param {
|
|
1225
|
+
* @param {ReplaceRequest} replaceRequest
|
|
1226
1226
|
* @param {*} [options] Override http request option.
|
|
1227
1227
|
* @throws {RequiredError}
|
|
1228
1228
|
*/
|
|
1229
|
-
replaceInFiles(workspaceId,
|
|
1229
|
+
replaceInFiles(workspaceId, replaceRequest, options) {
|
|
1230
1230
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1231
1231
|
var _a, _b, _c;
|
|
1232
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.replaceInFiles(workspaceId,
|
|
1232
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.replaceInFiles(workspaceId, replaceRequest, options);
|
|
1233
1233
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1234
1234
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ToolboxApi.replaceInFiles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1235
1235
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1338,12 +1338,12 @@ export const ToolboxApiFactory = function (configuration, basePath, axios) {
|
|
|
1338
1338
|
* Execute command synchronously inside workspace
|
|
1339
1339
|
* @summary Execute command
|
|
1340
1340
|
* @param {string} workspaceId
|
|
1341
|
-
* @param {
|
|
1341
|
+
* @param {ExecuteRequest} executeRequest
|
|
1342
1342
|
* @param {*} [options] Override http request option.
|
|
1343
1343
|
* @throws {RequiredError}
|
|
1344
1344
|
*/
|
|
1345
|
-
executeCommand(workspaceId,
|
|
1346
|
-
return localVarFp.executeCommand(workspaceId,
|
|
1345
|
+
executeCommand(workspaceId, executeRequest, options) {
|
|
1346
|
+
return localVarFp.executeCommand(workspaceId, executeRequest, options).then((request) => request(axios, basePath));
|
|
1347
1347
|
},
|
|
1348
1348
|
/**
|
|
1349
1349
|
* Search for text/pattern inside workspace files
|
|
@@ -1382,45 +1382,45 @@ export const ToolboxApiFactory = function (configuration, basePath, axios) {
|
|
|
1382
1382
|
* Add files to git commit
|
|
1383
1383
|
* @summary Add files
|
|
1384
1384
|
* @param {string} workspaceId
|
|
1385
|
-
* @param {
|
|
1385
|
+
* @param {GitAddRequest} gitAddRequest
|
|
1386
1386
|
* @param {*} [options] Override http request option.
|
|
1387
1387
|
* @throws {RequiredError}
|
|
1388
1388
|
*/
|
|
1389
|
-
gitAddFiles(workspaceId,
|
|
1390
|
-
return localVarFp.gitAddFiles(workspaceId,
|
|
1389
|
+
gitAddFiles(workspaceId, gitAddRequest, options) {
|
|
1390
|
+
return localVarFp.gitAddFiles(workspaceId, gitAddRequest, options).then((request) => request(axios, basePath));
|
|
1391
1391
|
},
|
|
1392
1392
|
/**
|
|
1393
1393
|
* Clone git repository
|
|
1394
1394
|
* @summary Clone repository
|
|
1395
1395
|
* @param {string} workspaceId
|
|
1396
|
-
* @param {
|
|
1396
|
+
* @param {GitCloneRequest} gitCloneRequest
|
|
1397
1397
|
* @param {*} [options] Override http request option.
|
|
1398
1398
|
* @throws {RequiredError}
|
|
1399
1399
|
*/
|
|
1400
|
-
gitCloneRepository(workspaceId,
|
|
1401
|
-
return localVarFp.gitCloneRepository(workspaceId,
|
|
1400
|
+
gitCloneRepository(workspaceId, gitCloneRequest, options) {
|
|
1401
|
+
return localVarFp.gitCloneRepository(workspaceId, gitCloneRequest, options).then((request) => request(axios, basePath));
|
|
1402
1402
|
},
|
|
1403
1403
|
/**
|
|
1404
1404
|
* Commit changes to git repository
|
|
1405
1405
|
* @summary Commit changes
|
|
1406
1406
|
* @param {string} workspaceId
|
|
1407
|
-
* @param {
|
|
1407
|
+
* @param {GitCommitRequest} gitCommitRequest
|
|
1408
1408
|
* @param {*} [options] Override http request option.
|
|
1409
1409
|
* @throws {RequiredError}
|
|
1410
1410
|
*/
|
|
1411
|
-
gitCommitChanges(workspaceId,
|
|
1412
|
-
return localVarFp.gitCommitChanges(workspaceId,
|
|
1411
|
+
gitCommitChanges(workspaceId, gitCommitRequest, options) {
|
|
1412
|
+
return localVarFp.gitCommitChanges(workspaceId, gitCommitRequest, options).then((request) => request(axios, basePath));
|
|
1413
1413
|
},
|
|
1414
1414
|
/**
|
|
1415
1415
|
* Create branch on git repository
|
|
1416
1416
|
* @summary Create branch
|
|
1417
1417
|
* @param {string} workspaceId
|
|
1418
|
-
* @param {
|
|
1418
|
+
* @param {GitBranchRequest} gitBranchRequest
|
|
1419
1419
|
* @param {*} [options] Override http request option.
|
|
1420
1420
|
* @throws {RequiredError}
|
|
1421
1421
|
*/
|
|
1422
|
-
gitCreateBranch(workspaceId,
|
|
1423
|
-
return localVarFp.gitCreateBranch(workspaceId,
|
|
1422
|
+
gitCreateBranch(workspaceId, gitBranchRequest, options) {
|
|
1423
|
+
return localVarFp.gitCreateBranch(workspaceId, gitBranchRequest, options).then((request) => request(axios, basePath));
|
|
1424
1424
|
},
|
|
1425
1425
|
/**
|
|
1426
1426
|
* Get commit history from git repository
|
|
@@ -1459,23 +1459,23 @@ export const ToolboxApiFactory = function (configuration, basePath, axios) {
|
|
|
1459
1459
|
* Pull changes from remote
|
|
1460
1460
|
* @summary Pull changes
|
|
1461
1461
|
* @param {string} workspaceId
|
|
1462
|
-
* @param {
|
|
1462
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
1463
1463
|
* @param {*} [options] Override http request option.
|
|
1464
1464
|
* @throws {RequiredError}
|
|
1465
1465
|
*/
|
|
1466
|
-
gitPullChanges(workspaceId,
|
|
1467
|
-
return localVarFp.gitPullChanges(workspaceId,
|
|
1466
|
+
gitPullChanges(workspaceId, gitRepoRequest, options) {
|
|
1467
|
+
return localVarFp.gitPullChanges(workspaceId, gitRepoRequest, options).then((request) => request(axios, basePath));
|
|
1468
1468
|
},
|
|
1469
1469
|
/**
|
|
1470
1470
|
* Push changes to remote
|
|
1471
1471
|
* @summary Push changes
|
|
1472
1472
|
* @param {string} workspaceId
|
|
1473
|
-
* @param {
|
|
1473
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
1474
1474
|
* @param {*} [options] Override http request option.
|
|
1475
1475
|
* @throws {RequiredError}
|
|
1476
1476
|
*/
|
|
1477
|
-
gitPushChanges(workspaceId,
|
|
1478
|
-
return localVarFp.gitPushChanges(workspaceId,
|
|
1477
|
+
gitPushChanges(workspaceId, gitRepoRequest, options) {
|
|
1478
|
+
return localVarFp.gitPushChanges(workspaceId, gitRepoRequest, options).then((request) => request(axios, basePath));
|
|
1479
1479
|
},
|
|
1480
1480
|
/**
|
|
1481
1481
|
*
|
|
@@ -1504,12 +1504,12 @@ export const ToolboxApiFactory = function (configuration, basePath, axios) {
|
|
|
1504
1504
|
* Replace text/pattern in multiple files inside workspace
|
|
1505
1505
|
* @summary Replace in files
|
|
1506
1506
|
* @param {string} workspaceId
|
|
1507
|
-
* @param {
|
|
1507
|
+
* @param {ReplaceRequest} replaceRequest
|
|
1508
1508
|
* @param {*} [options] Override http request option.
|
|
1509
1509
|
* @throws {RequiredError}
|
|
1510
1510
|
*/
|
|
1511
|
-
replaceInFiles(workspaceId,
|
|
1512
|
-
return localVarFp.replaceInFiles(workspaceId,
|
|
1511
|
+
replaceInFiles(workspaceId, replaceRequest, options) {
|
|
1512
|
+
return localVarFp.replaceInFiles(workspaceId, replaceRequest, options).then((request) => request(axios, basePath));
|
|
1513
1513
|
},
|
|
1514
1514
|
/**
|
|
1515
1515
|
* Search for files inside workspace
|
|
@@ -1599,13 +1599,13 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1599
1599
|
* Execute command synchronously inside workspace
|
|
1600
1600
|
* @summary Execute command
|
|
1601
1601
|
* @param {string} workspaceId
|
|
1602
|
-
* @param {
|
|
1602
|
+
* @param {ExecuteRequest} executeRequest
|
|
1603
1603
|
* @param {*} [options] Override http request option.
|
|
1604
1604
|
* @throws {RequiredError}
|
|
1605
1605
|
* @memberof ToolboxApi
|
|
1606
1606
|
*/
|
|
1607
|
-
executeCommand(workspaceId,
|
|
1608
|
-
return ToolboxApiFp(this.configuration).executeCommand(workspaceId,
|
|
1607
|
+
executeCommand(workspaceId, executeRequest, options) {
|
|
1608
|
+
return ToolboxApiFp(this.configuration).executeCommand(workspaceId, executeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1609
1609
|
}
|
|
1610
1610
|
/**
|
|
1611
1611
|
* Search for text/pattern inside workspace files
|
|
@@ -1647,49 +1647,49 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1647
1647
|
* Add files to git commit
|
|
1648
1648
|
* @summary Add files
|
|
1649
1649
|
* @param {string} workspaceId
|
|
1650
|
-
* @param {
|
|
1650
|
+
* @param {GitAddRequest} gitAddRequest
|
|
1651
1651
|
* @param {*} [options] Override http request option.
|
|
1652
1652
|
* @throws {RequiredError}
|
|
1653
1653
|
* @memberof ToolboxApi
|
|
1654
1654
|
*/
|
|
1655
|
-
gitAddFiles(workspaceId,
|
|
1656
|
-
return ToolboxApiFp(this.configuration).gitAddFiles(workspaceId,
|
|
1655
|
+
gitAddFiles(workspaceId, gitAddRequest, options) {
|
|
1656
|
+
return ToolboxApiFp(this.configuration).gitAddFiles(workspaceId, gitAddRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1657
1657
|
}
|
|
1658
1658
|
/**
|
|
1659
1659
|
* Clone git repository
|
|
1660
1660
|
* @summary Clone repository
|
|
1661
1661
|
* @param {string} workspaceId
|
|
1662
|
-
* @param {
|
|
1662
|
+
* @param {GitCloneRequest} gitCloneRequest
|
|
1663
1663
|
* @param {*} [options] Override http request option.
|
|
1664
1664
|
* @throws {RequiredError}
|
|
1665
1665
|
* @memberof ToolboxApi
|
|
1666
1666
|
*/
|
|
1667
|
-
gitCloneRepository(workspaceId,
|
|
1668
|
-
return ToolboxApiFp(this.configuration).gitCloneRepository(workspaceId,
|
|
1667
|
+
gitCloneRepository(workspaceId, gitCloneRequest, options) {
|
|
1668
|
+
return ToolboxApiFp(this.configuration).gitCloneRepository(workspaceId, gitCloneRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1669
1669
|
}
|
|
1670
1670
|
/**
|
|
1671
1671
|
* Commit changes to git repository
|
|
1672
1672
|
* @summary Commit changes
|
|
1673
1673
|
* @param {string} workspaceId
|
|
1674
|
-
* @param {
|
|
1674
|
+
* @param {GitCommitRequest} gitCommitRequest
|
|
1675
1675
|
* @param {*} [options] Override http request option.
|
|
1676
1676
|
* @throws {RequiredError}
|
|
1677
1677
|
* @memberof ToolboxApi
|
|
1678
1678
|
*/
|
|
1679
|
-
gitCommitChanges(workspaceId,
|
|
1680
|
-
return ToolboxApiFp(this.configuration).gitCommitChanges(workspaceId,
|
|
1679
|
+
gitCommitChanges(workspaceId, gitCommitRequest, options) {
|
|
1680
|
+
return ToolboxApiFp(this.configuration).gitCommitChanges(workspaceId, gitCommitRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1681
1681
|
}
|
|
1682
1682
|
/**
|
|
1683
1683
|
* Create branch on git repository
|
|
1684
1684
|
* @summary Create branch
|
|
1685
1685
|
* @param {string} workspaceId
|
|
1686
|
-
* @param {
|
|
1686
|
+
* @param {GitBranchRequest} gitBranchRequest
|
|
1687
1687
|
* @param {*} [options] Override http request option.
|
|
1688
1688
|
* @throws {RequiredError}
|
|
1689
1689
|
* @memberof ToolboxApi
|
|
1690
1690
|
*/
|
|
1691
|
-
gitCreateBranch(workspaceId,
|
|
1692
|
-
return ToolboxApiFp(this.configuration).gitCreateBranch(workspaceId,
|
|
1691
|
+
gitCreateBranch(workspaceId, gitBranchRequest, options) {
|
|
1692
|
+
return ToolboxApiFp(this.configuration).gitCreateBranch(workspaceId, gitBranchRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1693
1693
|
}
|
|
1694
1694
|
/**
|
|
1695
1695
|
* Get commit history from git repository
|
|
@@ -1731,25 +1731,25 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1731
1731
|
* Pull changes from remote
|
|
1732
1732
|
* @summary Pull changes
|
|
1733
1733
|
* @param {string} workspaceId
|
|
1734
|
-
* @param {
|
|
1734
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
1735
1735
|
* @param {*} [options] Override http request option.
|
|
1736
1736
|
* @throws {RequiredError}
|
|
1737
1737
|
* @memberof ToolboxApi
|
|
1738
1738
|
*/
|
|
1739
|
-
gitPullChanges(workspaceId,
|
|
1740
|
-
return ToolboxApiFp(this.configuration).gitPullChanges(workspaceId,
|
|
1739
|
+
gitPullChanges(workspaceId, gitRepoRequest, options) {
|
|
1740
|
+
return ToolboxApiFp(this.configuration).gitPullChanges(workspaceId, gitRepoRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1741
1741
|
}
|
|
1742
1742
|
/**
|
|
1743
1743
|
* Push changes to remote
|
|
1744
1744
|
* @summary Push changes
|
|
1745
1745
|
* @param {string} workspaceId
|
|
1746
|
-
* @param {
|
|
1746
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
1747
1747
|
* @param {*} [options] Override http request option.
|
|
1748
1748
|
* @throws {RequiredError}
|
|
1749
1749
|
* @memberof ToolboxApi
|
|
1750
1750
|
*/
|
|
1751
|
-
gitPushChanges(workspaceId,
|
|
1752
|
-
return ToolboxApiFp(this.configuration).gitPushChanges(workspaceId,
|
|
1751
|
+
gitPushChanges(workspaceId, gitRepoRequest, options) {
|
|
1752
|
+
return ToolboxApiFp(this.configuration).gitPushChanges(workspaceId, gitRepoRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1753
1753
|
}
|
|
1754
1754
|
/**
|
|
1755
1755
|
*
|
|
@@ -1780,13 +1780,13 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1780
1780
|
* Replace text/pattern in multiple files inside workspace
|
|
1781
1781
|
* @summary Replace in files
|
|
1782
1782
|
* @param {string} workspaceId
|
|
1783
|
-
* @param {
|
|
1783
|
+
* @param {ReplaceRequest} replaceRequest
|
|
1784
1784
|
* @param {*} [options] Override http request option.
|
|
1785
1785
|
* @throws {RequiredError}
|
|
1786
1786
|
* @memberof ToolboxApi
|
|
1787
1787
|
*/
|
|
1788
|
-
replaceInFiles(workspaceId,
|
|
1789
|
-
return ToolboxApiFp(this.configuration).replaceInFiles(workspaceId,
|
|
1788
|
+
replaceInFiles(workspaceId, replaceRequest, options) {
|
|
1789
|
+
return ToolboxApiFp(this.configuration).replaceInFiles(workspaceId, replaceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1790
1790
|
}
|
|
1791
1791
|
/**
|
|
1792
1792
|
* Search for files inside workspace
|