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