@leancodepl/intl 9.6.5 → 9.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/README.md +25 -10
- package/package.json +1 -1
- package/src/poeditor/api.generated/api.d.ts +147 -147
- package/src/poeditor/api.generated/api.js +380 -312
- package/src/poeditor/api.generated/api.js.map +1 -1
- package/src/poeditor/api.generated/base.d.ts +2 -2
- package/src/poeditor/api.generated/base.js +0 -1
- package/src/poeditor/api.generated/base.js.map +1 -1
- package/src/poeditor/api.generated/common.d.ts +1 -1
- package/src/poeditor/api.generated/common.js +13 -13
- package/src/poeditor/api.generated/common.js.map +1 -1
- package/src/poeditor/api.generated/configuration.js +2 -2
- package/src/poeditor/api.generated/configuration.js.map +1 -1
- package/src/poeditor/api.generated/index.js.map +1 -1
|
@@ -23,19 +23,19 @@ const common_1 = require("./common");
|
|
|
23
23
|
const base_1 = require("./base");
|
|
24
24
|
exports.ProjectListProjectsInnerPublicEnum = {
|
|
25
25
|
NUMBER_0: 0,
|
|
26
|
-
NUMBER_1: 1
|
|
26
|
+
NUMBER_1: 1,
|
|
27
27
|
};
|
|
28
28
|
exports.ProjectListProjectsInnerOpenEnum = {
|
|
29
29
|
NUMBER_0: 0,
|
|
30
|
-
NUMBER_1: 1
|
|
30
|
+
NUMBER_1: 1,
|
|
31
31
|
};
|
|
32
32
|
exports.ProjectLongProjectPublicEnum = {
|
|
33
33
|
NUMBER_0: 0,
|
|
34
|
-
NUMBER_1: 1
|
|
34
|
+
NUMBER_1: 1,
|
|
35
35
|
};
|
|
36
36
|
exports.ProjectLongProjectOpenEnum = {
|
|
37
37
|
NUMBER_0: 0,
|
|
38
|
-
NUMBER_1: 1
|
|
38
|
+
NUMBER_1: 1,
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
41
41
|
* ContributorsApi - axios parameter creator
|
|
@@ -57,11 +57,11 @@ const ContributorsApiAxiosParamCreator = function (configuration) {
|
|
|
57
57
|
*/
|
|
58
58
|
contributorsAdd: async (id, name, email, apiToken, language, admin, options = {}) => {
|
|
59
59
|
// verify required parameter 'id' is not null or undefined
|
|
60
|
-
(0, common_1.assertParamExists)(
|
|
60
|
+
(0, common_1.assertParamExists)("contributorsAdd", "id", id);
|
|
61
61
|
// verify required parameter 'name' is not null or undefined
|
|
62
|
-
(0, common_1.assertParamExists)(
|
|
62
|
+
(0, common_1.assertParamExists)("contributorsAdd", "name", name);
|
|
63
63
|
// verify required parameter 'email' is not null or undefined
|
|
64
|
-
(0, common_1.assertParamExists)(
|
|
64
|
+
(0, common_1.assertParamExists)("contributorsAdd", "email", email);
|
|
65
65
|
const localVarPath = `/contributors/add`;
|
|
66
66
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
67
67
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -69,29 +69,29 @@ const ContributorsApiAxiosParamCreator = function (configuration) {
|
|
|
69
69
|
if (configuration) {
|
|
70
70
|
baseOptions = configuration.baseOptions;
|
|
71
71
|
}
|
|
72
|
-
const localVarRequestOptions = { method:
|
|
72
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
73
73
|
const localVarHeaderParameter = {};
|
|
74
74
|
const localVarQueryParameter = {};
|
|
75
75
|
const localVarFormParams = new URLSearchParams();
|
|
76
76
|
if (apiToken !== undefined) {
|
|
77
|
-
localVarFormParams.set(
|
|
77
|
+
localVarFormParams.set("api_token", apiToken);
|
|
78
78
|
}
|
|
79
79
|
if (id !== undefined) {
|
|
80
|
-
localVarFormParams.set(
|
|
80
|
+
localVarFormParams.set("id", id);
|
|
81
81
|
}
|
|
82
82
|
if (name !== undefined) {
|
|
83
|
-
localVarFormParams.set(
|
|
83
|
+
localVarFormParams.set("name", name);
|
|
84
84
|
}
|
|
85
85
|
if (email !== undefined) {
|
|
86
|
-
localVarFormParams.set(
|
|
86
|
+
localVarFormParams.set("email", email);
|
|
87
87
|
}
|
|
88
88
|
if (language !== undefined) {
|
|
89
|
-
localVarFormParams.set(
|
|
89
|
+
localVarFormParams.set("language", language);
|
|
90
90
|
}
|
|
91
91
|
if (admin !== undefined) {
|
|
92
|
-
localVarFormParams.set(
|
|
92
|
+
localVarFormParams.set("admin", admin);
|
|
93
93
|
}
|
|
94
|
-
localVarHeaderParameter[
|
|
94
|
+
localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
|
|
95
95
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
96
96
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
97
97
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -113,9 +113,9 @@ const ContributorsApiAxiosParamCreator = function (configuration) {
|
|
|
113
113
|
*/
|
|
114
114
|
contributorsRemove: async (id, email, apiToken, language, options = {}) => {
|
|
115
115
|
// verify required parameter 'id' is not null or undefined
|
|
116
|
-
(0, common_1.assertParamExists)(
|
|
116
|
+
(0, common_1.assertParamExists)("contributorsRemove", "id", id);
|
|
117
117
|
// verify required parameter 'email' is not null or undefined
|
|
118
|
-
(0, common_1.assertParamExists)(
|
|
118
|
+
(0, common_1.assertParamExists)("contributorsRemove", "email", email);
|
|
119
119
|
const localVarPath = `/contributors/remove`;
|
|
120
120
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
121
121
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -123,23 +123,23 @@ const ContributorsApiAxiosParamCreator = function (configuration) {
|
|
|
123
123
|
if (configuration) {
|
|
124
124
|
baseOptions = configuration.baseOptions;
|
|
125
125
|
}
|
|
126
|
-
const localVarRequestOptions = { method:
|
|
126
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
127
127
|
const localVarHeaderParameter = {};
|
|
128
128
|
const localVarQueryParameter = {};
|
|
129
129
|
const localVarFormParams = new URLSearchParams();
|
|
130
130
|
if (apiToken !== undefined) {
|
|
131
|
-
localVarFormParams.set(
|
|
131
|
+
localVarFormParams.set("api_token", apiToken);
|
|
132
132
|
}
|
|
133
133
|
if (id !== undefined) {
|
|
134
|
-
localVarFormParams.set(
|
|
134
|
+
localVarFormParams.set("id", id);
|
|
135
135
|
}
|
|
136
136
|
if (email !== undefined) {
|
|
137
|
-
localVarFormParams.set(
|
|
137
|
+
localVarFormParams.set("email", email);
|
|
138
138
|
}
|
|
139
139
|
if (language !== undefined) {
|
|
140
|
-
localVarFormParams.set(
|
|
140
|
+
localVarFormParams.set("language", language);
|
|
141
141
|
}
|
|
142
|
-
localVarHeaderParameter[
|
|
142
|
+
localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
|
|
143
143
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
144
144
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
145
145
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -166,20 +166,20 @@ const ContributorsApiAxiosParamCreator = function (configuration) {
|
|
|
166
166
|
if (configuration) {
|
|
167
167
|
baseOptions = configuration.baseOptions;
|
|
168
168
|
}
|
|
169
|
-
const localVarRequestOptions = { method:
|
|
169
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
170
170
|
const localVarHeaderParameter = {};
|
|
171
171
|
const localVarQueryParameter = {};
|
|
172
172
|
const localVarFormParams = new URLSearchParams();
|
|
173
173
|
if (apiToken !== undefined) {
|
|
174
|
-
localVarFormParams.set(
|
|
174
|
+
localVarFormParams.set("api_token", apiToken);
|
|
175
175
|
}
|
|
176
176
|
if (id !== undefined) {
|
|
177
|
-
localVarFormParams.set(
|
|
177
|
+
localVarFormParams.set("id", id);
|
|
178
178
|
}
|
|
179
179
|
if (language !== undefined) {
|
|
180
|
-
localVarFormParams.set(
|
|
180
|
+
localVarFormParams.set("language", language);
|
|
181
181
|
}
|
|
182
|
-
localVarHeaderParameter[
|
|
182
|
+
localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
|
|
183
183
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
184
184
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
185
185
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -214,7 +214,7 @@ const ContributorsApiFp = function (configuration) {
|
|
|
214
214
|
async contributorsAdd(id, name, email, apiToken, language, admin, options) {
|
|
215
215
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contributorsAdd(id, name, email, apiToken, language, admin, options);
|
|
216
216
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
217
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
217
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["ContributorsApi.contributorsAdd"]?.[localVarOperationServerIndex]?.url;
|
|
218
218
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
219
219
|
},
|
|
220
220
|
/**
|
|
@@ -230,7 +230,7 @@ const ContributorsApiFp = function (configuration) {
|
|
|
230
230
|
async contributorsRemove(id, email, apiToken, language, options) {
|
|
231
231
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contributorsRemove(id, email, apiToken, language, options);
|
|
232
232
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
233
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
233
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["ContributorsApi.contributorsRemove"]?.[localVarOperationServerIndex]?.url;
|
|
234
234
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
235
235
|
},
|
|
236
236
|
/**
|
|
@@ -245,7 +245,7 @@ const ContributorsApiFp = function (configuration) {
|
|
|
245
245
|
async translationsList(apiToken, id, language, options) {
|
|
246
246
|
const localVarAxiosArgs = await localVarAxiosParamCreator.translationsList(apiToken, id, language, options);
|
|
247
247
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
248
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
248
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["ContributorsApi.translationsList"]?.[localVarOperationServerIndex]?.url;
|
|
249
249
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
250
250
|
},
|
|
251
251
|
};
|
|
@@ -271,7 +271,9 @@ const ContributorsApiFactory = function (configuration, basePath, axios) {
|
|
|
271
271
|
* @throws {RequiredError}
|
|
272
272
|
*/
|
|
273
273
|
contributorsAdd(id, name, email, apiToken, language, admin, options) {
|
|
274
|
-
return localVarFp
|
|
274
|
+
return localVarFp
|
|
275
|
+
.contributorsAdd(id, name, email, apiToken, language, admin, options)
|
|
276
|
+
.then(request => request(axios, basePath));
|
|
275
277
|
},
|
|
276
278
|
/**
|
|
277
279
|
* Remove Contributor. More details in the [documentation](https://poeditor.com/docs/api#contributors_remove).
|
|
@@ -284,7 +286,9 @@ const ContributorsApiFactory = function (configuration, basePath, axios) {
|
|
|
284
286
|
* @throws {RequiredError}
|
|
285
287
|
*/
|
|
286
288
|
contributorsRemove(id, email, apiToken, language, options) {
|
|
287
|
-
return localVarFp
|
|
289
|
+
return localVarFp
|
|
290
|
+
.contributorsRemove(id, email, apiToken, language, options)
|
|
291
|
+
.then(request => request(axios, basePath));
|
|
288
292
|
},
|
|
289
293
|
/**
|
|
290
294
|
* List Contributors. More details in the [documentation](https://poeditor.com/docs/api#contributors_list).
|
|
@@ -296,7 +300,7 @@ const ContributorsApiFactory = function (configuration, basePath, axios) {
|
|
|
296
300
|
* @throws {RequiredError}
|
|
297
301
|
*/
|
|
298
302
|
translationsList(apiToken, id, language, options) {
|
|
299
|
-
return localVarFp.translationsList(apiToken, id, language, options).then(
|
|
303
|
+
return localVarFp.translationsList(apiToken, id, language, options).then(request => request(axios, basePath));
|
|
300
304
|
},
|
|
301
305
|
};
|
|
302
306
|
};
|
|
@@ -322,7 +326,9 @@ class ContributorsApi extends base_1.BaseAPI {
|
|
|
322
326
|
* @memberof ContributorsApi
|
|
323
327
|
*/
|
|
324
328
|
contributorsAdd(id, name, email, apiToken, language, admin, options) {
|
|
325
|
-
return (0, exports.ContributorsApiFp)(this.configuration)
|
|
329
|
+
return (0, exports.ContributorsApiFp)(this.configuration)
|
|
330
|
+
.contributorsAdd(id, name, email, apiToken, language, admin, options)
|
|
331
|
+
.then(request => request(this.axios, this.basePath));
|
|
326
332
|
}
|
|
327
333
|
/**
|
|
328
334
|
* Remove Contributor. More details in the [documentation](https://poeditor.com/docs/api#contributors_remove).
|
|
@@ -336,7 +342,9 @@ class ContributorsApi extends base_1.BaseAPI {
|
|
|
336
342
|
* @memberof ContributorsApi
|
|
337
343
|
*/
|
|
338
344
|
contributorsRemove(id, email, apiToken, language, options) {
|
|
339
|
-
return (0, exports.ContributorsApiFp)(this.configuration)
|
|
345
|
+
return (0, exports.ContributorsApiFp)(this.configuration)
|
|
346
|
+
.contributorsRemove(id, email, apiToken, language, options)
|
|
347
|
+
.then(request => request(this.axios, this.basePath));
|
|
340
348
|
}
|
|
341
349
|
/**
|
|
342
350
|
* List Contributors. More details in the [documentation](https://poeditor.com/docs/api#contributors_list).
|
|
@@ -349,7 +357,9 @@ class ContributorsApi extends base_1.BaseAPI {
|
|
|
349
357
|
* @memberof ContributorsApi
|
|
350
358
|
*/
|
|
351
359
|
translationsList(apiToken, id, language, options) {
|
|
352
|
-
return (0, exports.ContributorsApiFp)(this.configuration)
|
|
360
|
+
return (0, exports.ContributorsApiFp)(this.configuration)
|
|
361
|
+
.translationsList(apiToken, id, language, options)
|
|
362
|
+
.then(request => request(this.axios, this.basePath));
|
|
353
363
|
}
|
|
354
364
|
}
|
|
355
365
|
exports.ContributorsApi = ContributorsApi;
|
|
@@ -358,7 +368,7 @@ exports.ContributorsApi = ContributorsApi;
|
|
|
358
368
|
*/
|
|
359
369
|
exports.ContributorsAddAdminEnum = {
|
|
360
370
|
NUMBER_0: 0,
|
|
361
|
-
NUMBER_1: 1
|
|
371
|
+
NUMBER_1: 1,
|
|
362
372
|
};
|
|
363
373
|
/**
|
|
364
374
|
* LanguagesApi - axios parameter creator
|
|
@@ -377,9 +387,9 @@ const LanguagesApiAxiosParamCreator = function (configuration) {
|
|
|
377
387
|
*/
|
|
378
388
|
languagesAdd: async (id, language, apiToken, options = {}) => {
|
|
379
389
|
// verify required parameter 'id' is not null or undefined
|
|
380
|
-
(0, common_1.assertParamExists)(
|
|
390
|
+
(0, common_1.assertParamExists)("languagesAdd", "id", id);
|
|
381
391
|
// verify required parameter 'language' is not null or undefined
|
|
382
|
-
(0, common_1.assertParamExists)(
|
|
392
|
+
(0, common_1.assertParamExists)("languagesAdd", "language", language);
|
|
383
393
|
const localVarPath = `/languages/add`;
|
|
384
394
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
385
395
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -387,20 +397,20 @@ const LanguagesApiAxiosParamCreator = function (configuration) {
|
|
|
387
397
|
if (configuration) {
|
|
388
398
|
baseOptions = configuration.baseOptions;
|
|
389
399
|
}
|
|
390
|
-
const localVarRequestOptions = { method:
|
|
400
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
391
401
|
const localVarHeaderParameter = {};
|
|
392
402
|
const localVarQueryParameter = {};
|
|
393
403
|
const localVarFormParams = new URLSearchParams();
|
|
394
404
|
if (apiToken !== undefined) {
|
|
395
|
-
localVarFormParams.set(
|
|
405
|
+
localVarFormParams.set("api_token", apiToken);
|
|
396
406
|
}
|
|
397
407
|
if (id !== undefined) {
|
|
398
|
-
localVarFormParams.set(
|
|
408
|
+
localVarFormParams.set("id", id);
|
|
399
409
|
}
|
|
400
410
|
if (language !== undefined) {
|
|
401
|
-
localVarFormParams.set(
|
|
411
|
+
localVarFormParams.set("language", language);
|
|
402
412
|
}
|
|
403
|
-
localVarHeaderParameter[
|
|
413
|
+
localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
|
|
404
414
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
405
415
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
406
416
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -421,9 +431,9 @@ const LanguagesApiAxiosParamCreator = function (configuration) {
|
|
|
421
431
|
*/
|
|
422
432
|
languagesDelete: async (id, language, apiToken, options = {}) => {
|
|
423
433
|
// verify required parameter 'id' is not null or undefined
|
|
424
|
-
(0, common_1.assertParamExists)(
|
|
434
|
+
(0, common_1.assertParamExists)("languagesDelete", "id", id);
|
|
425
435
|
// verify required parameter 'language' is not null or undefined
|
|
426
|
-
(0, common_1.assertParamExists)(
|
|
436
|
+
(0, common_1.assertParamExists)("languagesDelete", "language", language);
|
|
427
437
|
const localVarPath = `/languages/delete`;
|
|
428
438
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
429
439
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -431,20 +441,20 @@ const LanguagesApiAxiosParamCreator = function (configuration) {
|
|
|
431
441
|
if (configuration) {
|
|
432
442
|
baseOptions = configuration.baseOptions;
|
|
433
443
|
}
|
|
434
|
-
const localVarRequestOptions = { method:
|
|
444
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
435
445
|
const localVarHeaderParameter = {};
|
|
436
446
|
const localVarQueryParameter = {};
|
|
437
447
|
const localVarFormParams = new URLSearchParams();
|
|
438
448
|
if (apiToken !== undefined) {
|
|
439
|
-
localVarFormParams.set(
|
|
449
|
+
localVarFormParams.set("api_token", apiToken);
|
|
440
450
|
}
|
|
441
451
|
if (id !== undefined) {
|
|
442
|
-
localVarFormParams.set(
|
|
452
|
+
localVarFormParams.set("id", id);
|
|
443
453
|
}
|
|
444
454
|
if (language !== undefined) {
|
|
445
|
-
localVarFormParams.set(
|
|
455
|
+
localVarFormParams.set("language", language);
|
|
446
456
|
}
|
|
447
|
-
localVarHeaderParameter[
|
|
457
|
+
localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
|
|
448
458
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
449
459
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
450
460
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -464,7 +474,7 @@ const LanguagesApiAxiosParamCreator = function (configuration) {
|
|
|
464
474
|
*/
|
|
465
475
|
languagesList: async (id, apiToken, options = {}) => {
|
|
466
476
|
// verify required parameter 'id' is not null or undefined
|
|
467
|
-
(0, common_1.assertParamExists)(
|
|
477
|
+
(0, common_1.assertParamExists)("languagesList", "id", id);
|
|
468
478
|
const localVarPath = `/languages/list`;
|
|
469
479
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
470
480
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -472,17 +482,17 @@ const LanguagesApiAxiosParamCreator = function (configuration) {
|
|
|
472
482
|
if (configuration) {
|
|
473
483
|
baseOptions = configuration.baseOptions;
|
|
474
484
|
}
|
|
475
|
-
const localVarRequestOptions = { method:
|
|
485
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
476
486
|
const localVarHeaderParameter = {};
|
|
477
487
|
const localVarQueryParameter = {};
|
|
478
488
|
const localVarFormParams = new URLSearchParams();
|
|
479
489
|
if (apiToken !== undefined) {
|
|
480
|
-
localVarFormParams.set(
|
|
490
|
+
localVarFormParams.set("api_token", apiToken);
|
|
481
491
|
}
|
|
482
492
|
if (id !== undefined) {
|
|
483
|
-
localVarFormParams.set(
|
|
493
|
+
localVarFormParams.set("id", id);
|
|
484
494
|
}
|
|
485
|
-
localVarHeaderParameter[
|
|
495
|
+
localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
|
|
486
496
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
487
497
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
488
498
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -505,11 +515,11 @@ const LanguagesApiAxiosParamCreator = function (configuration) {
|
|
|
505
515
|
*/
|
|
506
516
|
languagesUpdate: async (id, language, data, apiToken, fuzzyTrigger, options = {}) => {
|
|
507
517
|
// verify required parameter 'id' is not null or undefined
|
|
508
|
-
(0, common_1.assertParamExists)(
|
|
518
|
+
(0, common_1.assertParamExists)("languagesUpdate", "id", id);
|
|
509
519
|
// verify required parameter 'language' is not null or undefined
|
|
510
|
-
(0, common_1.assertParamExists)(
|
|
520
|
+
(0, common_1.assertParamExists)("languagesUpdate", "language", language);
|
|
511
521
|
// verify required parameter 'data' is not null or undefined
|
|
512
|
-
(0, common_1.assertParamExists)(
|
|
522
|
+
(0, common_1.assertParamExists)("languagesUpdate", "data", data);
|
|
513
523
|
const localVarPath = `/languages/update`;
|
|
514
524
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
515
525
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -517,26 +527,26 @@ const LanguagesApiAxiosParamCreator = function (configuration) {
|
|
|
517
527
|
if (configuration) {
|
|
518
528
|
baseOptions = configuration.baseOptions;
|
|
519
529
|
}
|
|
520
|
-
const localVarRequestOptions = { method:
|
|
530
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
521
531
|
const localVarHeaderParameter = {};
|
|
522
532
|
const localVarQueryParameter = {};
|
|
523
533
|
const localVarFormParams = new URLSearchParams();
|
|
524
534
|
if (apiToken !== undefined) {
|
|
525
|
-
localVarFormParams.set(
|
|
535
|
+
localVarFormParams.set("api_token", apiToken);
|
|
526
536
|
}
|
|
527
537
|
if (id !== undefined) {
|
|
528
|
-
localVarFormParams.set(
|
|
538
|
+
localVarFormParams.set("id", id);
|
|
529
539
|
}
|
|
530
540
|
if (language !== undefined) {
|
|
531
|
-
localVarFormParams.set(
|
|
541
|
+
localVarFormParams.set("language", language);
|
|
532
542
|
}
|
|
533
543
|
if (fuzzyTrigger !== undefined) {
|
|
534
|
-
localVarFormParams.set(
|
|
544
|
+
localVarFormParams.set("fuzzy_trigger", fuzzyTrigger);
|
|
535
545
|
}
|
|
536
546
|
if (data !== undefined) {
|
|
537
|
-
localVarFormParams.set(
|
|
547
|
+
localVarFormParams.set("data", data);
|
|
538
548
|
}
|
|
539
|
-
localVarHeaderParameter[
|
|
549
|
+
localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
|
|
540
550
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
541
551
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
542
552
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -556,7 +566,7 @@ const LanguagesApiAxiosParamCreator = function (configuration) {
|
|
|
556
566
|
*/
|
|
557
567
|
projectsAvailable: async (id, apiToken, options = {}) => {
|
|
558
568
|
// verify required parameter 'id' is not null or undefined
|
|
559
|
-
(0, common_1.assertParamExists)(
|
|
569
|
+
(0, common_1.assertParamExists)("projectsAvailable", "id", id);
|
|
560
570
|
const localVarPath = `/languages/available`;
|
|
561
571
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
562
572
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -564,17 +574,17 @@ const LanguagesApiAxiosParamCreator = function (configuration) {
|
|
|
564
574
|
if (configuration) {
|
|
565
575
|
baseOptions = configuration.baseOptions;
|
|
566
576
|
}
|
|
567
|
-
const localVarRequestOptions = { method:
|
|
577
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
568
578
|
const localVarHeaderParameter = {};
|
|
569
579
|
const localVarQueryParameter = {};
|
|
570
580
|
const localVarFormParams = new URLSearchParams();
|
|
571
581
|
if (apiToken !== undefined) {
|
|
572
|
-
localVarFormParams.set(
|
|
582
|
+
localVarFormParams.set("api_token", apiToken);
|
|
573
583
|
}
|
|
574
584
|
if (id !== undefined) {
|
|
575
|
-
localVarFormParams.set(
|
|
585
|
+
localVarFormParams.set("id", id);
|
|
576
586
|
}
|
|
577
|
-
localVarHeaderParameter[
|
|
587
|
+
localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
|
|
578
588
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
579
589
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
580
590
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -606,7 +616,7 @@ const LanguagesApiFp = function (configuration) {
|
|
|
606
616
|
async languagesAdd(id, language, apiToken, options) {
|
|
607
617
|
const localVarAxiosArgs = await localVarAxiosParamCreator.languagesAdd(id, language, apiToken, options);
|
|
608
618
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
609
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
619
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["LanguagesApi.languagesAdd"]?.[localVarOperationServerIndex]?.url;
|
|
610
620
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
611
621
|
},
|
|
612
622
|
/**
|
|
@@ -621,7 +631,7 @@ const LanguagesApiFp = function (configuration) {
|
|
|
621
631
|
async languagesDelete(id, language, apiToken, options) {
|
|
622
632
|
const localVarAxiosArgs = await localVarAxiosParamCreator.languagesDelete(id, language, apiToken, options);
|
|
623
633
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
624
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
634
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["LanguagesApi.languagesDelete"]?.[localVarOperationServerIndex]?.url;
|
|
625
635
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
626
636
|
},
|
|
627
637
|
/**
|
|
@@ -635,7 +645,7 @@ const LanguagesApiFp = function (configuration) {
|
|
|
635
645
|
async languagesList(id, apiToken, options) {
|
|
636
646
|
const localVarAxiosArgs = await localVarAxiosParamCreator.languagesList(id, apiToken, options);
|
|
637
647
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
638
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
648
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["LanguagesApi.languagesList"]?.[localVarOperationServerIndex]?.url;
|
|
639
649
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
640
650
|
},
|
|
641
651
|
/**
|
|
@@ -652,7 +662,7 @@ const LanguagesApiFp = function (configuration) {
|
|
|
652
662
|
async languagesUpdate(id, language, data, apiToken, fuzzyTrigger, options) {
|
|
653
663
|
const localVarAxiosArgs = await localVarAxiosParamCreator.languagesUpdate(id, language, data, apiToken, fuzzyTrigger, options);
|
|
654
664
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
655
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
665
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["LanguagesApi.languagesUpdate"]?.[localVarOperationServerIndex]?.url;
|
|
656
666
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
657
667
|
},
|
|
658
668
|
/**
|
|
@@ -666,7 +676,7 @@ const LanguagesApiFp = function (configuration) {
|
|
|
666
676
|
async projectsAvailable(id, apiToken, options) {
|
|
667
677
|
const localVarAxiosArgs = await localVarAxiosParamCreator.projectsAvailable(id, apiToken, options);
|
|
668
678
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
669
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
679
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["LanguagesApi.projectsAvailable"]?.[localVarOperationServerIndex]?.url;
|
|
670
680
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
671
681
|
},
|
|
672
682
|
};
|
|
@@ -689,7 +699,7 @@ const LanguagesApiFactory = function (configuration, basePath, axios) {
|
|
|
689
699
|
* @throws {RequiredError}
|
|
690
700
|
*/
|
|
691
701
|
languagesAdd(id, language, apiToken, options) {
|
|
692
|
-
return localVarFp.languagesAdd(id, language, apiToken, options).then(
|
|
702
|
+
return localVarFp.languagesAdd(id, language, apiToken, options).then(request => request(axios, basePath));
|
|
693
703
|
},
|
|
694
704
|
/**
|
|
695
705
|
* Delete Language from Project. More details in the [documentation](https://poeditor.com/docs/api#languages_delete).
|
|
@@ -701,7 +711,7 @@ const LanguagesApiFactory = function (configuration, basePath, axios) {
|
|
|
701
711
|
* @throws {RequiredError}
|
|
702
712
|
*/
|
|
703
713
|
languagesDelete(id, language, apiToken, options) {
|
|
704
|
-
return localVarFp.languagesDelete(id, language, apiToken, options).then(
|
|
714
|
+
return localVarFp.languagesDelete(id, language, apiToken, options).then(request => request(axios, basePath));
|
|
705
715
|
},
|
|
706
716
|
/**
|
|
707
717
|
* List Languages. More details in the [documentation](https://poeditor.com/docs/api#languages_list).
|
|
@@ -712,7 +722,7 @@ const LanguagesApiFactory = function (configuration, basePath, axios) {
|
|
|
712
722
|
* @throws {RequiredError}
|
|
713
723
|
*/
|
|
714
724
|
languagesList(id, apiToken, options) {
|
|
715
|
-
return localVarFp.languagesList(id, apiToken, options).then(
|
|
725
|
+
return localVarFp.languagesList(id, apiToken, options).then(request => request(axios, basePath));
|
|
716
726
|
},
|
|
717
727
|
/**
|
|
718
728
|
* Update Project Language. More details in the [documentation](https://poeditor.com/docs/api#languages_update).
|
|
@@ -726,7 +736,9 @@ const LanguagesApiFactory = function (configuration, basePath, axios) {
|
|
|
726
736
|
* @throws {RequiredError}
|
|
727
737
|
*/
|
|
728
738
|
languagesUpdate(id, language, data, apiToken, fuzzyTrigger, options) {
|
|
729
|
-
return localVarFp
|
|
739
|
+
return localVarFp
|
|
740
|
+
.languagesUpdate(id, language, data, apiToken, fuzzyTrigger, options)
|
|
741
|
+
.then(request => request(axios, basePath));
|
|
730
742
|
},
|
|
731
743
|
/**
|
|
732
744
|
* List Languages. More details in the [documentation](https://poeditor.com/docs/api#languages_available).
|
|
@@ -737,7 +749,7 @@ const LanguagesApiFactory = function (configuration, basePath, axios) {
|
|
|
737
749
|
* @throws {RequiredError}
|
|
738
750
|
*/
|
|
739
751
|
projectsAvailable(id, apiToken, options) {
|
|
740
|
-
return localVarFp.projectsAvailable(id, apiToken, options).then(
|
|
752
|
+
return localVarFp.projectsAvailable(id, apiToken, options).then(request => request(axios, basePath));
|
|
741
753
|
},
|
|
742
754
|
};
|
|
743
755
|
};
|
|
@@ -760,7 +772,9 @@ class LanguagesApi extends base_1.BaseAPI {
|
|
|
760
772
|
* @memberof LanguagesApi
|
|
761
773
|
*/
|
|
762
774
|
languagesAdd(id, language, apiToken, options) {
|
|
763
|
-
return (0, exports.LanguagesApiFp)(this.configuration)
|
|
775
|
+
return (0, exports.LanguagesApiFp)(this.configuration)
|
|
776
|
+
.languagesAdd(id, language, apiToken, options)
|
|
777
|
+
.then(request => request(this.axios, this.basePath));
|
|
764
778
|
}
|
|
765
779
|
/**
|
|
766
780
|
* Delete Language from Project. More details in the [documentation](https://poeditor.com/docs/api#languages_delete).
|
|
@@ -773,7 +787,9 @@ class LanguagesApi extends base_1.BaseAPI {
|
|
|
773
787
|
* @memberof LanguagesApi
|
|
774
788
|
*/
|
|
775
789
|
languagesDelete(id, language, apiToken, options) {
|
|
776
|
-
return (0, exports.LanguagesApiFp)(this.configuration)
|
|
790
|
+
return (0, exports.LanguagesApiFp)(this.configuration)
|
|
791
|
+
.languagesDelete(id, language, apiToken, options)
|
|
792
|
+
.then(request => request(this.axios, this.basePath));
|
|
777
793
|
}
|
|
778
794
|
/**
|
|
779
795
|
* List Languages. More details in the [documentation](https://poeditor.com/docs/api#languages_list).
|
|
@@ -785,7 +801,9 @@ class LanguagesApi extends base_1.BaseAPI {
|
|
|
785
801
|
* @memberof LanguagesApi
|
|
786
802
|
*/
|
|
787
803
|
languagesList(id, apiToken, options) {
|
|
788
|
-
return (0, exports.LanguagesApiFp)(this.configuration)
|
|
804
|
+
return (0, exports.LanguagesApiFp)(this.configuration)
|
|
805
|
+
.languagesList(id, apiToken, options)
|
|
806
|
+
.then(request => request(this.axios, this.basePath));
|
|
789
807
|
}
|
|
790
808
|
/**
|
|
791
809
|
* Update Project Language. More details in the [documentation](https://poeditor.com/docs/api#languages_update).
|
|
@@ -800,7 +818,9 @@ class LanguagesApi extends base_1.BaseAPI {
|
|
|
800
818
|
* @memberof LanguagesApi
|
|
801
819
|
*/
|
|
802
820
|
languagesUpdate(id, language, data, apiToken, fuzzyTrigger, options) {
|
|
803
|
-
return (0, exports.LanguagesApiFp)(this.configuration)
|
|
821
|
+
return (0, exports.LanguagesApiFp)(this.configuration)
|
|
822
|
+
.languagesUpdate(id, language, data, apiToken, fuzzyTrigger, options)
|
|
823
|
+
.then(request => request(this.axios, this.basePath));
|
|
804
824
|
}
|
|
805
825
|
/**
|
|
806
826
|
* List Languages. More details in the [documentation](https://poeditor.com/docs/api#languages_available).
|
|
@@ -812,7 +832,9 @@ class LanguagesApi extends base_1.BaseAPI {
|
|
|
812
832
|
* @memberof LanguagesApi
|
|
813
833
|
*/
|
|
814
834
|
projectsAvailable(id, apiToken, options) {
|
|
815
|
-
return (0, exports.LanguagesApiFp)(this.configuration)
|
|
835
|
+
return (0, exports.LanguagesApiFp)(this.configuration)
|
|
836
|
+
.projectsAvailable(id, apiToken, options)
|
|
837
|
+
.then(request => request(this.axios, this.basePath));
|
|
816
838
|
}
|
|
817
839
|
}
|
|
818
840
|
exports.LanguagesApi = LanguagesApi;
|
|
@@ -821,7 +843,7 @@ exports.LanguagesApi = LanguagesApi;
|
|
|
821
843
|
*/
|
|
822
844
|
exports.LanguagesUpdateFuzzyTriggerEnum = {
|
|
823
845
|
NUMBER_0: 0,
|
|
824
|
-
NUMBER_1: 1
|
|
846
|
+
NUMBER_1: 1,
|
|
825
847
|
};
|
|
826
848
|
/**
|
|
827
849
|
* ProjectsApi - axios parameter creator
|
|
@@ -840,7 +862,7 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
840
862
|
*/
|
|
841
863
|
projectsAdd: async (name, apiToken, description, options = {}) => {
|
|
842
864
|
// verify required parameter 'name' is not null or undefined
|
|
843
|
-
(0, common_1.assertParamExists)(
|
|
865
|
+
(0, common_1.assertParamExists)("projectsAdd", "name", name);
|
|
844
866
|
const localVarPath = `/projects/add`;
|
|
845
867
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
846
868
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -848,20 +870,20 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
848
870
|
if (configuration) {
|
|
849
871
|
baseOptions = configuration.baseOptions;
|
|
850
872
|
}
|
|
851
|
-
const localVarRequestOptions = { method:
|
|
873
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
852
874
|
const localVarHeaderParameter = {};
|
|
853
875
|
const localVarQueryParameter = {};
|
|
854
876
|
const localVarFormParams = new URLSearchParams();
|
|
855
877
|
if (apiToken !== undefined) {
|
|
856
|
-
localVarFormParams.set(
|
|
878
|
+
localVarFormParams.set("api_token", apiToken);
|
|
857
879
|
}
|
|
858
880
|
if (name !== undefined) {
|
|
859
|
-
localVarFormParams.set(
|
|
881
|
+
localVarFormParams.set("name", name);
|
|
860
882
|
}
|
|
861
883
|
if (description !== undefined) {
|
|
862
|
-
localVarFormParams.set(
|
|
884
|
+
localVarFormParams.set("description", description);
|
|
863
885
|
}
|
|
864
|
-
localVarHeaderParameter[
|
|
886
|
+
localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
|
|
865
887
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
866
888
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
867
889
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -881,7 +903,7 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
881
903
|
*/
|
|
882
904
|
projectsDelete: async (id, apiToken, options = {}) => {
|
|
883
905
|
// verify required parameter 'id' is not null or undefined
|
|
884
|
-
(0, common_1.assertParamExists)(
|
|
906
|
+
(0, common_1.assertParamExists)("projectsDelete", "id", id);
|
|
885
907
|
const localVarPath = `/projects/delete`;
|
|
886
908
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
887
909
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -889,17 +911,17 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
889
911
|
if (configuration) {
|
|
890
912
|
baseOptions = configuration.baseOptions;
|
|
891
913
|
}
|
|
892
|
-
const localVarRequestOptions = { method:
|
|
914
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
893
915
|
const localVarHeaderParameter = {};
|
|
894
916
|
const localVarQueryParameter = {};
|
|
895
917
|
const localVarFormParams = new URLSearchParams();
|
|
896
918
|
if (apiToken !== undefined) {
|
|
897
|
-
localVarFormParams.set(
|
|
919
|
+
localVarFormParams.set("api_token", apiToken);
|
|
898
920
|
}
|
|
899
921
|
if (id !== undefined) {
|
|
900
|
-
localVarFormParams.set(
|
|
922
|
+
localVarFormParams.set("id", id);
|
|
901
923
|
}
|
|
902
|
-
localVarHeaderParameter[
|
|
924
|
+
localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
|
|
903
925
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
904
926
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
905
927
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -925,11 +947,11 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
925
947
|
*/
|
|
926
948
|
projectsExport: async (id, language, type, apiToken, filters, order, tags, _options, options = {}) => {
|
|
927
949
|
// verify required parameter 'id' is not null or undefined
|
|
928
|
-
(0, common_1.assertParamExists)(
|
|
950
|
+
(0, common_1.assertParamExists)("projectsExport", "id", id);
|
|
929
951
|
// verify required parameter 'language' is not null or undefined
|
|
930
|
-
(0, common_1.assertParamExists)(
|
|
952
|
+
(0, common_1.assertParamExists)("projectsExport", "language", language);
|
|
931
953
|
// verify required parameter 'type' is not null or undefined
|
|
932
|
-
(0, common_1.assertParamExists)(
|
|
954
|
+
(0, common_1.assertParamExists)("projectsExport", "type", type);
|
|
933
955
|
const localVarPath = `/projects/export`;
|
|
934
956
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
935
957
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -937,35 +959,35 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
937
959
|
if (configuration) {
|
|
938
960
|
baseOptions = configuration.baseOptions;
|
|
939
961
|
}
|
|
940
|
-
const localVarRequestOptions = { method:
|
|
962
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
941
963
|
const localVarHeaderParameter = {};
|
|
942
964
|
const localVarQueryParameter = {};
|
|
943
965
|
const localVarFormParams = new URLSearchParams();
|
|
944
966
|
if (apiToken !== undefined) {
|
|
945
|
-
localVarFormParams.set(
|
|
967
|
+
localVarFormParams.set("api_token", apiToken);
|
|
946
968
|
}
|
|
947
969
|
if (id !== undefined) {
|
|
948
|
-
localVarFormParams.set(
|
|
970
|
+
localVarFormParams.set("id", id);
|
|
949
971
|
}
|
|
950
972
|
if (language !== undefined) {
|
|
951
|
-
localVarFormParams.set(
|
|
973
|
+
localVarFormParams.set("language", language);
|
|
952
974
|
}
|
|
953
975
|
if (type !== undefined) {
|
|
954
|
-
localVarFormParams.set(
|
|
976
|
+
localVarFormParams.set("type", type);
|
|
955
977
|
}
|
|
956
978
|
if (filters !== undefined) {
|
|
957
|
-
localVarFormParams.set(
|
|
979
|
+
localVarFormParams.set("filters", filters);
|
|
958
980
|
}
|
|
959
981
|
if (order !== undefined) {
|
|
960
|
-
localVarFormParams.set(
|
|
982
|
+
localVarFormParams.set("order", order);
|
|
961
983
|
}
|
|
962
984
|
if (tags !== undefined) {
|
|
963
|
-
localVarFormParams.set(
|
|
985
|
+
localVarFormParams.set("tags", tags);
|
|
964
986
|
}
|
|
965
987
|
if (_options !== undefined) {
|
|
966
|
-
localVarFormParams.set(
|
|
988
|
+
localVarFormParams.set("options", _options);
|
|
967
989
|
}
|
|
968
|
-
localVarHeaderParameter[
|
|
990
|
+
localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
|
|
969
991
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
970
992
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
971
993
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -984,7 +1006,7 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
984
1006
|
*/
|
|
985
1007
|
projectsList: async (apiToken, options = {}) => {
|
|
986
1008
|
// verify required parameter 'apiToken' is not null or undefined
|
|
987
|
-
(0, common_1.assertParamExists)(
|
|
1009
|
+
(0, common_1.assertParamExists)("projectsList", "apiToken", apiToken);
|
|
988
1010
|
const localVarPath = `/projects/list`;
|
|
989
1011
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
990
1012
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -992,14 +1014,14 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
992
1014
|
if (configuration) {
|
|
993
1015
|
baseOptions = configuration.baseOptions;
|
|
994
1016
|
}
|
|
995
|
-
const localVarRequestOptions = { method:
|
|
1017
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
996
1018
|
const localVarHeaderParameter = {};
|
|
997
1019
|
const localVarQueryParameter = {};
|
|
998
1020
|
const localVarFormParams = new URLSearchParams();
|
|
999
1021
|
if (apiToken !== undefined) {
|
|
1000
|
-
localVarFormParams.set(
|
|
1022
|
+
localVarFormParams.set("api_token", apiToken);
|
|
1001
1023
|
}
|
|
1002
|
-
localVarHeaderParameter[
|
|
1024
|
+
localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
|
|
1003
1025
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1004
1026
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1005
1027
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1020,9 +1042,9 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
1020
1042
|
*/
|
|
1021
1043
|
projectsSync: async (id, data, apiToken, options = {}) => {
|
|
1022
1044
|
// verify required parameter 'id' is not null or undefined
|
|
1023
|
-
(0, common_1.assertParamExists)(
|
|
1045
|
+
(0, common_1.assertParamExists)("projectsSync", "id", id);
|
|
1024
1046
|
// verify required parameter 'data' is not null or undefined
|
|
1025
|
-
(0, common_1.assertParamExists)(
|
|
1047
|
+
(0, common_1.assertParamExists)("projectsSync", "data", data);
|
|
1026
1048
|
const localVarPath = `/projects/sync`;
|
|
1027
1049
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1028
1050
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1030,20 +1052,20 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
1030
1052
|
if (configuration) {
|
|
1031
1053
|
baseOptions = configuration.baseOptions;
|
|
1032
1054
|
}
|
|
1033
|
-
const localVarRequestOptions = { method:
|
|
1055
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1034
1056
|
const localVarHeaderParameter = {};
|
|
1035
1057
|
const localVarQueryParameter = {};
|
|
1036
1058
|
const localVarFormParams = new URLSearchParams();
|
|
1037
1059
|
if (apiToken !== undefined) {
|
|
1038
|
-
localVarFormParams.set(
|
|
1060
|
+
localVarFormParams.set("api_token", apiToken);
|
|
1039
1061
|
}
|
|
1040
1062
|
if (id !== undefined) {
|
|
1041
|
-
localVarFormParams.set(
|
|
1063
|
+
localVarFormParams.set("id", id);
|
|
1042
1064
|
}
|
|
1043
1065
|
if (data !== undefined) {
|
|
1044
|
-
localVarFormParams.set(
|
|
1066
|
+
localVarFormParams.set("data", data);
|
|
1045
1067
|
}
|
|
1046
|
-
localVarHeaderParameter[
|
|
1068
|
+
localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
|
|
1047
1069
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1048
1070
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1049
1071
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1067,7 +1089,7 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
1067
1089
|
*/
|
|
1068
1090
|
projectsUpdate: async (id, apiToken, name, description, referenceLanguage, fallbackLanguage, options = {}) => {
|
|
1069
1091
|
// verify required parameter 'id' is not null or undefined
|
|
1070
|
-
(0, common_1.assertParamExists)(
|
|
1092
|
+
(0, common_1.assertParamExists)("projectsUpdate", "id", id);
|
|
1071
1093
|
const localVarPath = `/projects/update`;
|
|
1072
1094
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1073
1095
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1075,29 +1097,29 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
1075
1097
|
if (configuration) {
|
|
1076
1098
|
baseOptions = configuration.baseOptions;
|
|
1077
1099
|
}
|
|
1078
|
-
const localVarRequestOptions = { method:
|
|
1100
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1079
1101
|
const localVarHeaderParameter = {};
|
|
1080
1102
|
const localVarQueryParameter = {};
|
|
1081
1103
|
const localVarFormParams = new URLSearchParams();
|
|
1082
1104
|
if (apiToken !== undefined) {
|
|
1083
|
-
localVarFormParams.set(
|
|
1105
|
+
localVarFormParams.set("api_token", apiToken);
|
|
1084
1106
|
}
|
|
1085
1107
|
if (id !== undefined) {
|
|
1086
|
-
localVarFormParams.set(
|
|
1108
|
+
localVarFormParams.set("id", id);
|
|
1087
1109
|
}
|
|
1088
1110
|
if (name !== undefined) {
|
|
1089
|
-
localVarFormParams.set(
|
|
1111
|
+
localVarFormParams.set("name", name);
|
|
1090
1112
|
}
|
|
1091
1113
|
if (description !== undefined) {
|
|
1092
|
-
localVarFormParams.set(
|
|
1114
|
+
localVarFormParams.set("description", description);
|
|
1093
1115
|
}
|
|
1094
1116
|
if (referenceLanguage !== undefined) {
|
|
1095
|
-
localVarFormParams.set(
|
|
1117
|
+
localVarFormParams.set("reference_language", referenceLanguage);
|
|
1096
1118
|
}
|
|
1097
1119
|
if (fallbackLanguage !== undefined) {
|
|
1098
|
-
localVarFormParams.set(
|
|
1120
|
+
localVarFormParams.set("fallback_language", fallbackLanguage);
|
|
1099
1121
|
}
|
|
1100
|
-
localVarHeaderParameter[
|
|
1122
|
+
localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
|
|
1101
1123
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1102
1124
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1103
1125
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1125,9 +1147,9 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
1125
1147
|
*/
|
|
1126
1148
|
projectsUpload: async (updating, file, apiToken, id, language, overwrite, syncTerms, tags, readFromSource, fuzzyTrigger, options = {}) => {
|
|
1127
1149
|
// verify required parameter 'updating' is not null or undefined
|
|
1128
|
-
(0, common_1.assertParamExists)(
|
|
1150
|
+
(0, common_1.assertParamExists)("projectsUpload", "updating", updating);
|
|
1129
1151
|
// verify required parameter 'file' is not null or undefined
|
|
1130
|
-
(0, common_1.assertParamExists)(
|
|
1152
|
+
(0, common_1.assertParamExists)("projectsUpload", "file", file);
|
|
1131
1153
|
const localVarPath = `/projects/upload`;
|
|
1132
1154
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1133
1155
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1135,41 +1157,41 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
1135
1157
|
if (configuration) {
|
|
1136
1158
|
baseOptions = configuration.baseOptions;
|
|
1137
1159
|
}
|
|
1138
|
-
const localVarRequestOptions = { method:
|
|
1160
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1139
1161
|
const localVarHeaderParameter = {};
|
|
1140
1162
|
const localVarQueryParameter = {};
|
|
1141
1163
|
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
1142
1164
|
if (apiToken !== undefined) {
|
|
1143
|
-
localVarFormParams.append(
|
|
1165
|
+
localVarFormParams.append("api_token", apiToken);
|
|
1144
1166
|
}
|
|
1145
1167
|
if (id !== undefined) {
|
|
1146
|
-
localVarFormParams.append(
|
|
1168
|
+
localVarFormParams.append("id", id);
|
|
1147
1169
|
}
|
|
1148
1170
|
if (updating !== undefined) {
|
|
1149
|
-
localVarFormParams.append(
|
|
1171
|
+
localVarFormParams.append("updating", updating);
|
|
1150
1172
|
}
|
|
1151
1173
|
if (file !== undefined) {
|
|
1152
|
-
localVarFormParams.append(
|
|
1174
|
+
localVarFormParams.append("file", file);
|
|
1153
1175
|
}
|
|
1154
1176
|
if (language !== undefined) {
|
|
1155
|
-
localVarFormParams.append(
|
|
1177
|
+
localVarFormParams.append("language", language);
|
|
1156
1178
|
}
|
|
1157
1179
|
if (overwrite !== undefined) {
|
|
1158
|
-
localVarFormParams.append(
|
|
1180
|
+
localVarFormParams.append("overwrite", overwrite);
|
|
1159
1181
|
}
|
|
1160
1182
|
if (syncTerms !== undefined) {
|
|
1161
|
-
localVarFormParams.append(
|
|
1183
|
+
localVarFormParams.append("sync_terms", syncTerms);
|
|
1162
1184
|
}
|
|
1163
1185
|
if (tags !== undefined) {
|
|
1164
|
-
localVarFormParams.append(
|
|
1186
|
+
localVarFormParams.append("tags", tags);
|
|
1165
1187
|
}
|
|
1166
1188
|
if (readFromSource !== undefined) {
|
|
1167
|
-
localVarFormParams.append(
|
|
1189
|
+
localVarFormParams.append("read_from_source", readFromSource);
|
|
1168
1190
|
}
|
|
1169
1191
|
if (fuzzyTrigger !== undefined) {
|
|
1170
|
-
localVarFormParams.append(
|
|
1192
|
+
localVarFormParams.append("fuzzy_trigger", fuzzyTrigger);
|
|
1171
1193
|
}
|
|
1172
|
-
localVarHeaderParameter[
|
|
1194
|
+
localVarHeaderParameter["Content-Type"] = "multipart/form-data";
|
|
1173
1195
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1174
1196
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1175
1197
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1189,7 +1211,7 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
1189
1211
|
*/
|
|
1190
1212
|
projectsView: async (id, apiToken, options = {}) => {
|
|
1191
1213
|
// verify required parameter 'id' is not null or undefined
|
|
1192
|
-
(0, common_1.assertParamExists)(
|
|
1214
|
+
(0, common_1.assertParamExists)("projectsView", "id", id);
|
|
1193
1215
|
const localVarPath = `/projects/view`;
|
|
1194
1216
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1195
1217
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1197,17 +1219,17 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
1197
1219
|
if (configuration) {
|
|
1198
1220
|
baseOptions = configuration.baseOptions;
|
|
1199
1221
|
}
|
|
1200
|
-
const localVarRequestOptions = { method:
|
|
1222
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1201
1223
|
const localVarHeaderParameter = {};
|
|
1202
1224
|
const localVarQueryParameter = {};
|
|
1203
1225
|
const localVarFormParams = new URLSearchParams();
|
|
1204
1226
|
if (apiToken !== undefined) {
|
|
1205
|
-
localVarFormParams.set(
|
|
1227
|
+
localVarFormParams.set("api_token", apiToken);
|
|
1206
1228
|
}
|
|
1207
1229
|
if (id !== undefined) {
|
|
1208
|
-
localVarFormParams.set(
|
|
1230
|
+
localVarFormParams.set("id", id);
|
|
1209
1231
|
}
|
|
1210
|
-
localVarHeaderParameter[
|
|
1232
|
+
localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
|
|
1211
1233
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1212
1234
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1213
1235
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1239,7 +1261,7 @@ const ProjectsApiFp = function (configuration) {
|
|
|
1239
1261
|
async projectsAdd(name, apiToken, description, options) {
|
|
1240
1262
|
const localVarAxiosArgs = await localVarAxiosParamCreator.projectsAdd(name, apiToken, description, options);
|
|
1241
1263
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1242
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
1264
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["ProjectsApi.projectsAdd"]?.[localVarOperationServerIndex]?.url;
|
|
1243
1265
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1244
1266
|
},
|
|
1245
1267
|
/**
|
|
@@ -1253,7 +1275,7 @@ const ProjectsApiFp = function (configuration) {
|
|
|
1253
1275
|
async projectsDelete(id, apiToken, options) {
|
|
1254
1276
|
const localVarAxiosArgs = await localVarAxiosParamCreator.projectsDelete(id, apiToken, options);
|
|
1255
1277
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1256
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
1278
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["ProjectsApi.projectsDelete"]?.[localVarOperationServerIndex]?.url;
|
|
1257
1279
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1258
1280
|
},
|
|
1259
1281
|
/**
|
|
@@ -1273,7 +1295,7 @@ const ProjectsApiFp = function (configuration) {
|
|
|
1273
1295
|
async projectsExport(id, language, type, apiToken, filters, order, tags, _options, options) {
|
|
1274
1296
|
const localVarAxiosArgs = await localVarAxiosParamCreator.projectsExport(id, language, type, apiToken, filters, order, tags, _options, options);
|
|
1275
1297
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1276
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
1298
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["ProjectsApi.projectsExport"]?.[localVarOperationServerIndex]?.url;
|
|
1277
1299
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1278
1300
|
},
|
|
1279
1301
|
/**
|
|
@@ -1286,7 +1308,7 @@ const ProjectsApiFp = function (configuration) {
|
|
|
1286
1308
|
async projectsList(apiToken, options) {
|
|
1287
1309
|
const localVarAxiosArgs = await localVarAxiosParamCreator.projectsList(apiToken, options);
|
|
1288
1310
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1289
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
1311
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["ProjectsApi.projectsList"]?.[localVarOperationServerIndex]?.url;
|
|
1290
1312
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1291
1313
|
},
|
|
1292
1314
|
/**
|
|
@@ -1301,7 +1323,7 @@ const ProjectsApiFp = function (configuration) {
|
|
|
1301
1323
|
async projectsSync(id, data, apiToken, options) {
|
|
1302
1324
|
const localVarAxiosArgs = await localVarAxiosParamCreator.projectsSync(id, data, apiToken, options);
|
|
1303
1325
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1304
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
1326
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["ProjectsApi.projectsSync"]?.[localVarOperationServerIndex]?.url;
|
|
1305
1327
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1306
1328
|
},
|
|
1307
1329
|
/**
|
|
@@ -1319,7 +1341,7 @@ const ProjectsApiFp = function (configuration) {
|
|
|
1319
1341
|
async projectsUpdate(id, apiToken, name, description, referenceLanguage, fallbackLanguage, options) {
|
|
1320
1342
|
const localVarAxiosArgs = await localVarAxiosParamCreator.projectsUpdate(id, apiToken, name, description, referenceLanguage, fallbackLanguage, options);
|
|
1321
1343
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1322
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
1344
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["ProjectsApi.projectsUpdate"]?.[localVarOperationServerIndex]?.url;
|
|
1323
1345
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1324
1346
|
},
|
|
1325
1347
|
/**
|
|
@@ -1341,7 +1363,7 @@ const ProjectsApiFp = function (configuration) {
|
|
|
1341
1363
|
async projectsUpload(updating, file, apiToken, id, language, overwrite, syncTerms, tags, readFromSource, fuzzyTrigger, options) {
|
|
1342
1364
|
const localVarAxiosArgs = await localVarAxiosParamCreator.projectsUpload(updating, file, apiToken, id, language, overwrite, syncTerms, tags, readFromSource, fuzzyTrigger, options);
|
|
1343
1365
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1344
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
1366
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["ProjectsApi.projectsUpload"]?.[localVarOperationServerIndex]?.url;
|
|
1345
1367
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1346
1368
|
},
|
|
1347
1369
|
/**
|
|
@@ -1355,7 +1377,7 @@ const ProjectsApiFp = function (configuration) {
|
|
|
1355
1377
|
async projectsView(id, apiToken, options) {
|
|
1356
1378
|
const localVarAxiosArgs = await localVarAxiosParamCreator.projectsView(id, apiToken, options);
|
|
1357
1379
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1358
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
1380
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["ProjectsApi.projectsView"]?.[localVarOperationServerIndex]?.url;
|
|
1359
1381
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1360
1382
|
},
|
|
1361
1383
|
};
|
|
@@ -1378,7 +1400,7 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
1378
1400
|
* @throws {RequiredError}
|
|
1379
1401
|
*/
|
|
1380
1402
|
projectsAdd(name, apiToken, description, options) {
|
|
1381
|
-
return localVarFp.projectsAdd(name, apiToken, description, options).then(
|
|
1403
|
+
return localVarFp.projectsAdd(name, apiToken, description, options).then(request => request(axios, basePath));
|
|
1382
1404
|
},
|
|
1383
1405
|
/**
|
|
1384
1406
|
* Delete Project. More details in the [documentation](https://poeditor.com/docs/api#projects_delete).
|
|
@@ -1389,7 +1411,7 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
1389
1411
|
* @throws {RequiredError}
|
|
1390
1412
|
*/
|
|
1391
1413
|
projectsDelete(id, apiToken, options) {
|
|
1392
|
-
return localVarFp.projectsDelete(id, apiToken, options).then(
|
|
1414
|
+
return localVarFp.projectsDelete(id, apiToken, options).then(request => request(axios, basePath));
|
|
1393
1415
|
},
|
|
1394
1416
|
/**
|
|
1395
1417
|
* Export. More details in the [documentation](https://poeditor.com/docs/api#projects_export).
|
|
@@ -1406,7 +1428,9 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
1406
1428
|
* @throws {RequiredError}
|
|
1407
1429
|
*/
|
|
1408
1430
|
projectsExport(id, language, type, apiToken, filters, order, tags, _options, options) {
|
|
1409
|
-
return localVarFp
|
|
1431
|
+
return localVarFp
|
|
1432
|
+
.projectsExport(id, language, type, apiToken, filters, order, tags, _options, options)
|
|
1433
|
+
.then(request => request(axios, basePath));
|
|
1410
1434
|
},
|
|
1411
1435
|
/**
|
|
1412
1436
|
* List Projects. More details in the [documentation](https://poeditor.com/docs/api#projects_list).
|
|
@@ -1416,7 +1440,7 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
1416
1440
|
* @throws {RequiredError}
|
|
1417
1441
|
*/
|
|
1418
1442
|
projectsList(apiToken, options) {
|
|
1419
|
-
return localVarFp.projectsList(apiToken, options).then(
|
|
1443
|
+
return localVarFp.projectsList(apiToken, options).then(request => request(axios, basePath));
|
|
1420
1444
|
},
|
|
1421
1445
|
/**
|
|
1422
1446
|
* Sync Terms. More details in the [documentation](https://poeditor.com/docs/api#projects_sync).
|
|
@@ -1428,7 +1452,7 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
1428
1452
|
* @throws {RequiredError}
|
|
1429
1453
|
*/
|
|
1430
1454
|
projectsSync(id, data, apiToken, options) {
|
|
1431
|
-
return localVarFp.projectsSync(id, data, apiToken, options).then(
|
|
1455
|
+
return localVarFp.projectsSync(id, data, apiToken, options).then(request => request(axios, basePath));
|
|
1432
1456
|
},
|
|
1433
1457
|
/**
|
|
1434
1458
|
* Update Project Settings. More details in the [documentation](https://poeditor.com/docs/api#projects_update).
|
|
@@ -1443,7 +1467,9 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
1443
1467
|
* @throws {RequiredError}
|
|
1444
1468
|
*/
|
|
1445
1469
|
projectsUpdate(id, apiToken, name, description, referenceLanguage, fallbackLanguage, options) {
|
|
1446
|
-
return localVarFp
|
|
1470
|
+
return localVarFp
|
|
1471
|
+
.projectsUpdate(id, apiToken, name, description, referenceLanguage, fallbackLanguage, options)
|
|
1472
|
+
.then(request => request(axios, basePath));
|
|
1447
1473
|
},
|
|
1448
1474
|
/**
|
|
1449
1475
|
* Upload. More details in the [documentation](https://poeditor.com/docs/api#projects_upload).
|
|
@@ -1462,7 +1488,9 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
1462
1488
|
* @throws {RequiredError}
|
|
1463
1489
|
*/
|
|
1464
1490
|
projectsUpload(updating, file, apiToken, id, language, overwrite, syncTerms, tags, readFromSource, fuzzyTrigger, options) {
|
|
1465
|
-
return localVarFp
|
|
1491
|
+
return localVarFp
|
|
1492
|
+
.projectsUpload(updating, file, apiToken, id, language, overwrite, syncTerms, tags, readFromSource, fuzzyTrigger, options)
|
|
1493
|
+
.then(request => request(axios, basePath));
|
|
1466
1494
|
},
|
|
1467
1495
|
/**
|
|
1468
1496
|
* View Project Details. More details in the [documentation](https://poeditor.com/docs/api#projects_view).
|
|
@@ -1473,7 +1501,7 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
1473
1501
|
* @throws {RequiredError}
|
|
1474
1502
|
*/
|
|
1475
1503
|
projectsView(id, apiToken, options) {
|
|
1476
|
-
return localVarFp.projectsView(id, apiToken, options).then(
|
|
1504
|
+
return localVarFp.projectsView(id, apiToken, options).then(request => request(axios, basePath));
|
|
1477
1505
|
},
|
|
1478
1506
|
};
|
|
1479
1507
|
};
|
|
@@ -1496,7 +1524,9 @@ class ProjectsApi extends base_1.BaseAPI {
|
|
|
1496
1524
|
* @memberof ProjectsApi
|
|
1497
1525
|
*/
|
|
1498
1526
|
projectsAdd(name, apiToken, description, options) {
|
|
1499
|
-
return (0, exports.ProjectsApiFp)(this.configuration)
|
|
1527
|
+
return (0, exports.ProjectsApiFp)(this.configuration)
|
|
1528
|
+
.projectsAdd(name, apiToken, description, options)
|
|
1529
|
+
.then(request => request(this.axios, this.basePath));
|
|
1500
1530
|
}
|
|
1501
1531
|
/**
|
|
1502
1532
|
* Delete Project. More details in the [documentation](https://poeditor.com/docs/api#projects_delete).
|
|
@@ -1508,7 +1538,9 @@ class ProjectsApi extends base_1.BaseAPI {
|
|
|
1508
1538
|
* @memberof ProjectsApi
|
|
1509
1539
|
*/
|
|
1510
1540
|
projectsDelete(id, apiToken, options) {
|
|
1511
|
-
return (0, exports.ProjectsApiFp)(this.configuration)
|
|
1541
|
+
return (0, exports.ProjectsApiFp)(this.configuration)
|
|
1542
|
+
.projectsDelete(id, apiToken, options)
|
|
1543
|
+
.then(request => request(this.axios, this.basePath));
|
|
1512
1544
|
}
|
|
1513
1545
|
/**
|
|
1514
1546
|
* Export. More details in the [documentation](https://poeditor.com/docs/api#projects_export).
|
|
@@ -1526,7 +1558,9 @@ class ProjectsApi extends base_1.BaseAPI {
|
|
|
1526
1558
|
* @memberof ProjectsApi
|
|
1527
1559
|
*/
|
|
1528
1560
|
projectsExport(id, language, type, apiToken, filters, order, tags, _options, options) {
|
|
1529
|
-
return (0, exports.ProjectsApiFp)(this.configuration)
|
|
1561
|
+
return (0, exports.ProjectsApiFp)(this.configuration)
|
|
1562
|
+
.projectsExport(id, language, type, apiToken, filters, order, tags, _options, options)
|
|
1563
|
+
.then(request => request(this.axios, this.basePath));
|
|
1530
1564
|
}
|
|
1531
1565
|
/**
|
|
1532
1566
|
* List Projects. More details in the [documentation](https://poeditor.com/docs/api#projects_list).
|
|
@@ -1537,7 +1571,9 @@ class ProjectsApi extends base_1.BaseAPI {
|
|
|
1537
1571
|
* @memberof ProjectsApi
|
|
1538
1572
|
*/
|
|
1539
1573
|
projectsList(apiToken, options) {
|
|
1540
|
-
return (0, exports.ProjectsApiFp)(this.configuration)
|
|
1574
|
+
return (0, exports.ProjectsApiFp)(this.configuration)
|
|
1575
|
+
.projectsList(apiToken, options)
|
|
1576
|
+
.then(request => request(this.axios, this.basePath));
|
|
1541
1577
|
}
|
|
1542
1578
|
/**
|
|
1543
1579
|
* Sync Terms. More details in the [documentation](https://poeditor.com/docs/api#projects_sync).
|
|
@@ -1550,7 +1586,9 @@ class ProjectsApi extends base_1.BaseAPI {
|
|
|
1550
1586
|
* @memberof ProjectsApi
|
|
1551
1587
|
*/
|
|
1552
1588
|
projectsSync(id, data, apiToken, options) {
|
|
1553
|
-
return (0, exports.ProjectsApiFp)(this.configuration)
|
|
1589
|
+
return (0, exports.ProjectsApiFp)(this.configuration)
|
|
1590
|
+
.projectsSync(id, data, apiToken, options)
|
|
1591
|
+
.then(request => request(this.axios, this.basePath));
|
|
1554
1592
|
}
|
|
1555
1593
|
/**
|
|
1556
1594
|
* Update Project Settings. More details in the [documentation](https://poeditor.com/docs/api#projects_update).
|
|
@@ -1566,7 +1604,9 @@ class ProjectsApi extends base_1.BaseAPI {
|
|
|
1566
1604
|
* @memberof ProjectsApi
|
|
1567
1605
|
*/
|
|
1568
1606
|
projectsUpdate(id, apiToken, name, description, referenceLanguage, fallbackLanguage, options) {
|
|
1569
|
-
return (0, exports.ProjectsApiFp)(this.configuration)
|
|
1607
|
+
return (0, exports.ProjectsApiFp)(this.configuration)
|
|
1608
|
+
.projectsUpdate(id, apiToken, name, description, referenceLanguage, fallbackLanguage, options)
|
|
1609
|
+
.then(request => request(this.axios, this.basePath));
|
|
1570
1610
|
}
|
|
1571
1611
|
/**
|
|
1572
1612
|
* Upload. More details in the [documentation](https://poeditor.com/docs/api#projects_upload).
|
|
@@ -1586,7 +1626,9 @@ class ProjectsApi extends base_1.BaseAPI {
|
|
|
1586
1626
|
* @memberof ProjectsApi
|
|
1587
1627
|
*/
|
|
1588
1628
|
projectsUpload(updating, file, apiToken, id, language, overwrite, syncTerms, tags, readFromSource, fuzzyTrigger, options) {
|
|
1589
|
-
return (0, exports.ProjectsApiFp)(this.configuration)
|
|
1629
|
+
return (0, exports.ProjectsApiFp)(this.configuration)
|
|
1630
|
+
.projectsUpload(updating, file, apiToken, id, language, overwrite, syncTerms, tags, readFromSource, fuzzyTrigger, options)
|
|
1631
|
+
.then(request => request(this.axios, this.basePath));
|
|
1590
1632
|
}
|
|
1591
1633
|
/**
|
|
1592
1634
|
* View Project Details. More details in the [documentation](https://poeditor.com/docs/api#projects_view).
|
|
@@ -1598,7 +1640,9 @@ class ProjectsApi extends base_1.BaseAPI {
|
|
|
1598
1640
|
* @memberof ProjectsApi
|
|
1599
1641
|
*/
|
|
1600
1642
|
projectsView(id, apiToken, options) {
|
|
1601
|
-
return (0, exports.ProjectsApiFp)(this.configuration)
|
|
1643
|
+
return (0, exports.ProjectsApiFp)(this.configuration)
|
|
1644
|
+
.projectsView(id, apiToken, options)
|
|
1645
|
+
.then(request => request(this.axios, this.basePath));
|
|
1602
1646
|
}
|
|
1603
1647
|
}
|
|
1604
1648
|
exports.ProjectsApi = ProjectsApi;
|
|
@@ -1606,31 +1650,31 @@ exports.ProjectsApi = ProjectsApi;
|
|
|
1606
1650
|
* @export
|
|
1607
1651
|
*/
|
|
1608
1652
|
exports.ProjectsExportTypeEnum = {
|
|
1609
|
-
Arb:
|
|
1610
|
-
Csv:
|
|
1611
|
-
Ini:
|
|
1612
|
-
KeyValueJson:
|
|
1613
|
-
I18next:
|
|
1614
|
-
Json:
|
|
1615
|
-
Po:
|
|
1616
|
-
Pot:
|
|
1617
|
-
Mo:
|
|
1618
|
-
Properties:
|
|
1619
|
-
Resw:
|
|
1620
|
-
Resx:
|
|
1621
|
-
Ts:
|
|
1622
|
-
AppleStrings:
|
|
1623
|
-
Xliff:
|
|
1624
|
-
Xliff12:
|
|
1625
|
-
Xlf:
|
|
1626
|
-
Xmb:
|
|
1627
|
-
Xtb:
|
|
1628
|
-
Rise360Xliff:
|
|
1629
|
-
Xls:
|
|
1630
|
-
Xlsx:
|
|
1631
|
-
AndroidStrings:
|
|
1632
|
-
Yml:
|
|
1633
|
-
Php:
|
|
1653
|
+
Arb: "arb",
|
|
1654
|
+
Csv: "csv",
|
|
1655
|
+
Ini: "ini",
|
|
1656
|
+
KeyValueJson: "key_value_json",
|
|
1657
|
+
I18next: "i18next",
|
|
1658
|
+
Json: "json",
|
|
1659
|
+
Po: "po",
|
|
1660
|
+
Pot: "pot",
|
|
1661
|
+
Mo: "mo",
|
|
1662
|
+
Properties: "properties",
|
|
1663
|
+
Resw: "resw",
|
|
1664
|
+
Resx: "resx",
|
|
1665
|
+
Ts: "ts",
|
|
1666
|
+
AppleStrings: "apple_strings",
|
|
1667
|
+
Xliff: "xliff",
|
|
1668
|
+
Xliff12: "xliff_1_2",
|
|
1669
|
+
Xlf: "xlf",
|
|
1670
|
+
Xmb: "xmb",
|
|
1671
|
+
Xtb: "xtb",
|
|
1672
|
+
Rise360Xliff: "rise_360_xliff",
|
|
1673
|
+
Xls: "xls",
|
|
1674
|
+
Xlsx: "xlsx",
|
|
1675
|
+
AndroidStrings: "android_strings",
|
|
1676
|
+
Yml: "yml",
|
|
1677
|
+
Php: "php",
|
|
1634
1678
|
};
|
|
1635
1679
|
/**
|
|
1636
1680
|
* @export
|
|
@@ -1638,43 +1682,43 @@ exports.ProjectsExportTypeEnum = {
|
|
|
1638
1682
|
exports.ProjectsExportOptionsEnum = {
|
|
1639
1683
|
Unquoted1: '[{\"unquoted\": 1}]',
|
|
1640
1684
|
Unencoded1: '[{\"unencoded\": 1}]',
|
|
1641
|
-
ExportAll1: '[{\"export_all\": 1}]'
|
|
1685
|
+
ExportAll1: '[{\"export_all\": 1}]',
|
|
1642
1686
|
};
|
|
1643
1687
|
/**
|
|
1644
1688
|
* @export
|
|
1645
1689
|
*/
|
|
1646
1690
|
exports.ProjectsUploadUpdatingEnum = {
|
|
1647
|
-
Terms:
|
|
1648
|
-
Translations:
|
|
1649
|
-
TermsTranslations:
|
|
1691
|
+
Terms: "terms",
|
|
1692
|
+
Translations: "translations",
|
|
1693
|
+
TermsTranslations: "terms_translations",
|
|
1650
1694
|
};
|
|
1651
1695
|
/**
|
|
1652
1696
|
* @export
|
|
1653
1697
|
*/
|
|
1654
1698
|
exports.ProjectsUploadOverwriteEnum = {
|
|
1655
1699
|
NUMBER_0: 0,
|
|
1656
|
-
NUMBER_1: 1
|
|
1700
|
+
NUMBER_1: 1,
|
|
1657
1701
|
};
|
|
1658
1702
|
/**
|
|
1659
1703
|
* @export
|
|
1660
1704
|
*/
|
|
1661
1705
|
exports.ProjectsUploadSyncTermsEnum = {
|
|
1662
1706
|
NUMBER_0: 0,
|
|
1663
|
-
NUMBER_1: 1
|
|
1707
|
+
NUMBER_1: 1,
|
|
1664
1708
|
};
|
|
1665
1709
|
/**
|
|
1666
1710
|
* @export
|
|
1667
1711
|
*/
|
|
1668
1712
|
exports.ProjectsUploadReadFromSourceEnum = {
|
|
1669
1713
|
NUMBER_0: 0,
|
|
1670
|
-
NUMBER_1: 1
|
|
1714
|
+
NUMBER_1: 1,
|
|
1671
1715
|
};
|
|
1672
1716
|
/**
|
|
1673
1717
|
* @export
|
|
1674
1718
|
*/
|
|
1675
1719
|
exports.ProjectsUploadFuzzyTriggerEnum = {
|
|
1676
1720
|
NUMBER_0: 0,
|
|
1677
|
-
NUMBER_1: 1
|
|
1721
|
+
NUMBER_1: 1,
|
|
1678
1722
|
};
|
|
1679
1723
|
/**
|
|
1680
1724
|
* TermsApi - axios parameter creator
|
|
@@ -1693,9 +1737,9 @@ const TermsApiAxiosParamCreator = function (configuration) {
|
|
|
1693
1737
|
*/
|
|
1694
1738
|
termsAdd: async (id, data, apiToken, options = {}) => {
|
|
1695
1739
|
// verify required parameter 'id' is not null or undefined
|
|
1696
|
-
(0, common_1.assertParamExists)(
|
|
1740
|
+
(0, common_1.assertParamExists)("termsAdd", "id", id);
|
|
1697
1741
|
// verify required parameter 'data' is not null or undefined
|
|
1698
|
-
(0, common_1.assertParamExists)(
|
|
1742
|
+
(0, common_1.assertParamExists)("termsAdd", "data", data);
|
|
1699
1743
|
const localVarPath = `/terms/add`;
|
|
1700
1744
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1701
1745
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1703,20 +1747,20 @@ const TermsApiAxiosParamCreator = function (configuration) {
|
|
|
1703
1747
|
if (configuration) {
|
|
1704
1748
|
baseOptions = configuration.baseOptions;
|
|
1705
1749
|
}
|
|
1706
|
-
const localVarRequestOptions = { method:
|
|
1750
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1707
1751
|
const localVarHeaderParameter = {};
|
|
1708
1752
|
const localVarQueryParameter = {};
|
|
1709
1753
|
const localVarFormParams = new URLSearchParams();
|
|
1710
1754
|
if (apiToken !== undefined) {
|
|
1711
|
-
localVarFormParams.set(
|
|
1755
|
+
localVarFormParams.set("api_token", apiToken);
|
|
1712
1756
|
}
|
|
1713
1757
|
if (id !== undefined) {
|
|
1714
|
-
localVarFormParams.set(
|
|
1758
|
+
localVarFormParams.set("id", id);
|
|
1715
1759
|
}
|
|
1716
1760
|
if (data !== undefined) {
|
|
1717
|
-
localVarFormParams.set(
|
|
1761
|
+
localVarFormParams.set("data", data);
|
|
1718
1762
|
}
|
|
1719
|
-
localVarHeaderParameter[
|
|
1763
|
+
localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
|
|
1720
1764
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1721
1765
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1722
1766
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1737,9 +1781,9 @@ const TermsApiAxiosParamCreator = function (configuration) {
|
|
|
1737
1781
|
*/
|
|
1738
1782
|
termsAddComment: async (id, data, apiToken, options = {}) => {
|
|
1739
1783
|
// verify required parameter 'id' is not null or undefined
|
|
1740
|
-
(0, common_1.assertParamExists)(
|
|
1784
|
+
(0, common_1.assertParamExists)("termsAddComment", "id", id);
|
|
1741
1785
|
// verify required parameter 'data' is not null or undefined
|
|
1742
|
-
(0, common_1.assertParamExists)(
|
|
1786
|
+
(0, common_1.assertParamExists)("termsAddComment", "data", data);
|
|
1743
1787
|
const localVarPath = `/terms/add_comment`;
|
|
1744
1788
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1745
1789
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1747,20 +1791,20 @@ const TermsApiAxiosParamCreator = function (configuration) {
|
|
|
1747
1791
|
if (configuration) {
|
|
1748
1792
|
baseOptions = configuration.baseOptions;
|
|
1749
1793
|
}
|
|
1750
|
-
const localVarRequestOptions = { method:
|
|
1794
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1751
1795
|
const localVarHeaderParameter = {};
|
|
1752
1796
|
const localVarQueryParameter = {};
|
|
1753
1797
|
const localVarFormParams = new URLSearchParams();
|
|
1754
1798
|
if (apiToken !== undefined) {
|
|
1755
|
-
localVarFormParams.set(
|
|
1799
|
+
localVarFormParams.set("api_token", apiToken);
|
|
1756
1800
|
}
|
|
1757
1801
|
if (id !== undefined) {
|
|
1758
|
-
localVarFormParams.set(
|
|
1802
|
+
localVarFormParams.set("id", id);
|
|
1759
1803
|
}
|
|
1760
1804
|
if (data !== undefined) {
|
|
1761
|
-
localVarFormParams.set(
|
|
1805
|
+
localVarFormParams.set("data", data);
|
|
1762
1806
|
}
|
|
1763
|
-
localVarHeaderParameter[
|
|
1807
|
+
localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
|
|
1764
1808
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1765
1809
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1766
1810
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1781,9 +1825,9 @@ const TermsApiAxiosParamCreator = function (configuration) {
|
|
|
1781
1825
|
*/
|
|
1782
1826
|
termsDelete: async (id, data, apiToken, options = {}) => {
|
|
1783
1827
|
// verify required parameter 'id' is not null or undefined
|
|
1784
|
-
(0, common_1.assertParamExists)(
|
|
1828
|
+
(0, common_1.assertParamExists)("termsDelete", "id", id);
|
|
1785
1829
|
// verify required parameter 'data' is not null or undefined
|
|
1786
|
-
(0, common_1.assertParamExists)(
|
|
1830
|
+
(0, common_1.assertParamExists)("termsDelete", "data", data);
|
|
1787
1831
|
const localVarPath = `/terms/delete`;
|
|
1788
1832
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1789
1833
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1791,20 +1835,20 @@ const TermsApiAxiosParamCreator = function (configuration) {
|
|
|
1791
1835
|
if (configuration) {
|
|
1792
1836
|
baseOptions = configuration.baseOptions;
|
|
1793
1837
|
}
|
|
1794
|
-
const localVarRequestOptions = { method:
|
|
1838
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1795
1839
|
const localVarHeaderParameter = {};
|
|
1796
1840
|
const localVarQueryParameter = {};
|
|
1797
1841
|
const localVarFormParams = new URLSearchParams();
|
|
1798
1842
|
if (apiToken !== undefined) {
|
|
1799
|
-
localVarFormParams.set(
|
|
1843
|
+
localVarFormParams.set("api_token", apiToken);
|
|
1800
1844
|
}
|
|
1801
1845
|
if (id !== undefined) {
|
|
1802
|
-
localVarFormParams.set(
|
|
1846
|
+
localVarFormParams.set("id", id);
|
|
1803
1847
|
}
|
|
1804
1848
|
if (data !== undefined) {
|
|
1805
|
-
localVarFormParams.set(
|
|
1849
|
+
localVarFormParams.set("data", data);
|
|
1806
1850
|
}
|
|
1807
|
-
localVarHeaderParameter[
|
|
1851
|
+
localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
|
|
1808
1852
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1809
1853
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1810
1854
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1825,7 +1869,7 @@ const TermsApiAxiosParamCreator = function (configuration) {
|
|
|
1825
1869
|
*/
|
|
1826
1870
|
termsList: async (id, apiToken, language, options = {}) => {
|
|
1827
1871
|
// verify required parameter 'id' is not null or undefined
|
|
1828
|
-
(0, common_1.assertParamExists)(
|
|
1872
|
+
(0, common_1.assertParamExists)("termsList", "id", id);
|
|
1829
1873
|
const localVarPath = `/terms/list`;
|
|
1830
1874
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1831
1875
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1833,20 +1877,20 @@ const TermsApiAxiosParamCreator = function (configuration) {
|
|
|
1833
1877
|
if (configuration) {
|
|
1834
1878
|
baseOptions = configuration.baseOptions;
|
|
1835
1879
|
}
|
|
1836
|
-
const localVarRequestOptions = { method:
|
|
1880
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1837
1881
|
const localVarHeaderParameter = {};
|
|
1838
1882
|
const localVarQueryParameter = {};
|
|
1839
1883
|
const localVarFormParams = new URLSearchParams();
|
|
1840
1884
|
if (apiToken !== undefined) {
|
|
1841
|
-
localVarFormParams.set(
|
|
1885
|
+
localVarFormParams.set("api_token", apiToken);
|
|
1842
1886
|
}
|
|
1843
1887
|
if (id !== undefined) {
|
|
1844
|
-
localVarFormParams.set(
|
|
1888
|
+
localVarFormParams.set("id", id);
|
|
1845
1889
|
}
|
|
1846
1890
|
if (language !== undefined) {
|
|
1847
|
-
localVarFormParams.set(
|
|
1891
|
+
localVarFormParams.set("language", language);
|
|
1848
1892
|
}
|
|
1849
|
-
localVarHeaderParameter[
|
|
1893
|
+
localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
|
|
1850
1894
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1851
1895
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1852
1896
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1868,9 +1912,9 @@ const TermsApiAxiosParamCreator = function (configuration) {
|
|
|
1868
1912
|
*/
|
|
1869
1913
|
termsUpdate: async (id, data, apiToken, fuzzyTrigger, options = {}) => {
|
|
1870
1914
|
// verify required parameter 'id' is not null or undefined
|
|
1871
|
-
(0, common_1.assertParamExists)(
|
|
1915
|
+
(0, common_1.assertParamExists)("termsUpdate", "id", id);
|
|
1872
1916
|
// verify required parameter 'data' is not null or undefined
|
|
1873
|
-
(0, common_1.assertParamExists)(
|
|
1917
|
+
(0, common_1.assertParamExists)("termsUpdate", "data", data);
|
|
1874
1918
|
const localVarPath = `/terms/update`;
|
|
1875
1919
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1876
1920
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1878,23 +1922,23 @@ const TermsApiAxiosParamCreator = function (configuration) {
|
|
|
1878
1922
|
if (configuration) {
|
|
1879
1923
|
baseOptions = configuration.baseOptions;
|
|
1880
1924
|
}
|
|
1881
|
-
const localVarRequestOptions = { method:
|
|
1925
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1882
1926
|
const localVarHeaderParameter = {};
|
|
1883
1927
|
const localVarQueryParameter = {};
|
|
1884
1928
|
const localVarFormParams = new URLSearchParams();
|
|
1885
1929
|
if (apiToken !== undefined) {
|
|
1886
|
-
localVarFormParams.set(
|
|
1930
|
+
localVarFormParams.set("api_token", apiToken);
|
|
1887
1931
|
}
|
|
1888
1932
|
if (id !== undefined) {
|
|
1889
|
-
localVarFormParams.set(
|
|
1933
|
+
localVarFormParams.set("id", id);
|
|
1890
1934
|
}
|
|
1891
1935
|
if (data !== undefined) {
|
|
1892
|
-
localVarFormParams.set(
|
|
1936
|
+
localVarFormParams.set("data", data);
|
|
1893
1937
|
}
|
|
1894
1938
|
if (fuzzyTrigger !== undefined) {
|
|
1895
|
-
localVarFormParams.set(
|
|
1939
|
+
localVarFormParams.set("fuzzy_trigger", fuzzyTrigger);
|
|
1896
1940
|
}
|
|
1897
|
-
localVarHeaderParameter[
|
|
1941
|
+
localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
|
|
1898
1942
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1899
1943
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1900
1944
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1926,7 +1970,7 @@ const TermsApiFp = function (configuration) {
|
|
|
1926
1970
|
async termsAdd(id, data, apiToken, options) {
|
|
1927
1971
|
const localVarAxiosArgs = await localVarAxiosParamCreator.termsAdd(id, data, apiToken, options);
|
|
1928
1972
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1929
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
1973
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["TermsApi.termsAdd"]?.[localVarOperationServerIndex]?.url;
|
|
1930
1974
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1931
1975
|
},
|
|
1932
1976
|
/**
|
|
@@ -1941,7 +1985,7 @@ const TermsApiFp = function (configuration) {
|
|
|
1941
1985
|
async termsAddComment(id, data, apiToken, options) {
|
|
1942
1986
|
const localVarAxiosArgs = await localVarAxiosParamCreator.termsAddComment(id, data, apiToken, options);
|
|
1943
1987
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1944
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
1988
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["TermsApi.termsAddComment"]?.[localVarOperationServerIndex]?.url;
|
|
1945
1989
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1946
1990
|
},
|
|
1947
1991
|
/**
|
|
@@ -1956,7 +2000,7 @@ const TermsApiFp = function (configuration) {
|
|
|
1956
2000
|
async termsDelete(id, data, apiToken, options) {
|
|
1957
2001
|
const localVarAxiosArgs = await localVarAxiosParamCreator.termsDelete(id, data, apiToken, options);
|
|
1958
2002
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1959
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
2003
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["TermsApi.termsDelete"]?.[localVarOperationServerIndex]?.url;
|
|
1960
2004
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1961
2005
|
},
|
|
1962
2006
|
/**
|
|
@@ -1971,7 +2015,7 @@ const TermsApiFp = function (configuration) {
|
|
|
1971
2015
|
async termsList(id, apiToken, language, options) {
|
|
1972
2016
|
const localVarAxiosArgs = await localVarAxiosParamCreator.termsList(id, apiToken, language, options);
|
|
1973
2017
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1974
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
2018
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["TermsApi.termsList"]?.[localVarOperationServerIndex]?.url;
|
|
1975
2019
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1976
2020
|
},
|
|
1977
2021
|
/**
|
|
@@ -1987,7 +2031,7 @@ const TermsApiFp = function (configuration) {
|
|
|
1987
2031
|
async termsUpdate(id, data, apiToken, fuzzyTrigger, options) {
|
|
1988
2032
|
const localVarAxiosArgs = await localVarAxiosParamCreator.termsUpdate(id, data, apiToken, fuzzyTrigger, options);
|
|
1989
2033
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1990
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
2034
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["TermsApi.termsUpdate"]?.[localVarOperationServerIndex]?.url;
|
|
1991
2035
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1992
2036
|
},
|
|
1993
2037
|
};
|
|
@@ -2010,7 +2054,7 @@ const TermsApiFactory = function (configuration, basePath, axios) {
|
|
|
2010
2054
|
* @throws {RequiredError}
|
|
2011
2055
|
*/
|
|
2012
2056
|
termsAdd(id, data, apiToken, options) {
|
|
2013
|
-
return localVarFp.termsAdd(id, data, apiToken, options).then(
|
|
2057
|
+
return localVarFp.termsAdd(id, data, apiToken, options).then(request => request(axios, basePath));
|
|
2014
2058
|
},
|
|
2015
2059
|
/**
|
|
2016
2060
|
* Add Comment. More details in the [documentation](https://poeditor.com/docs/api#terms_add_comment).
|
|
@@ -2022,7 +2066,7 @@ const TermsApiFactory = function (configuration, basePath, axios) {
|
|
|
2022
2066
|
* @throws {RequiredError}
|
|
2023
2067
|
*/
|
|
2024
2068
|
termsAddComment(id, data, apiToken, options) {
|
|
2025
|
-
return localVarFp.termsAddComment(id, data, apiToken, options).then(
|
|
2069
|
+
return localVarFp.termsAddComment(id, data, apiToken, options).then(request => request(axios, basePath));
|
|
2026
2070
|
},
|
|
2027
2071
|
/**
|
|
2028
2072
|
* Delete Terms. More details in the [documentation](https://poeditor.com/docs/api#terms_delete).
|
|
@@ -2034,7 +2078,7 @@ const TermsApiFactory = function (configuration, basePath, axios) {
|
|
|
2034
2078
|
* @throws {RequiredError}
|
|
2035
2079
|
*/
|
|
2036
2080
|
termsDelete(id, data, apiToken, options) {
|
|
2037
|
-
return localVarFp.termsDelete(id, data, apiToken, options).then(
|
|
2081
|
+
return localVarFp.termsDelete(id, data, apiToken, options).then(request => request(axios, basePath));
|
|
2038
2082
|
},
|
|
2039
2083
|
/**
|
|
2040
2084
|
* List Project Terms. More details in the [documentation](https://poeditor.com/docs/api#terms_list).
|
|
@@ -2046,7 +2090,7 @@ const TermsApiFactory = function (configuration, basePath, axios) {
|
|
|
2046
2090
|
* @throws {RequiredError}
|
|
2047
2091
|
*/
|
|
2048
2092
|
termsList(id, apiToken, language, options) {
|
|
2049
|
-
return localVarFp.termsList(id, apiToken, language, options).then(
|
|
2093
|
+
return localVarFp.termsList(id, apiToken, language, options).then(request => request(axios, basePath));
|
|
2050
2094
|
},
|
|
2051
2095
|
/**
|
|
2052
2096
|
* Update Terms. More details in the [documentation](https://poeditor.com/docs/api#terms_update).
|
|
@@ -2059,7 +2103,7 @@ const TermsApiFactory = function (configuration, basePath, axios) {
|
|
|
2059
2103
|
* @throws {RequiredError}
|
|
2060
2104
|
*/
|
|
2061
2105
|
termsUpdate(id, data, apiToken, fuzzyTrigger, options) {
|
|
2062
|
-
return localVarFp.termsUpdate(id, data, apiToken, fuzzyTrigger, options).then(
|
|
2106
|
+
return localVarFp.termsUpdate(id, data, apiToken, fuzzyTrigger, options).then(request => request(axios, basePath));
|
|
2063
2107
|
},
|
|
2064
2108
|
};
|
|
2065
2109
|
};
|
|
@@ -2082,7 +2126,9 @@ class TermsApi extends base_1.BaseAPI {
|
|
|
2082
2126
|
* @memberof TermsApi
|
|
2083
2127
|
*/
|
|
2084
2128
|
termsAdd(id, data, apiToken, options) {
|
|
2085
|
-
return (0, exports.TermsApiFp)(this.configuration)
|
|
2129
|
+
return (0, exports.TermsApiFp)(this.configuration)
|
|
2130
|
+
.termsAdd(id, data, apiToken, options)
|
|
2131
|
+
.then(request => request(this.axios, this.basePath));
|
|
2086
2132
|
}
|
|
2087
2133
|
/**
|
|
2088
2134
|
* Add Comment. More details in the [documentation](https://poeditor.com/docs/api#terms_add_comment).
|
|
@@ -2095,7 +2141,9 @@ class TermsApi extends base_1.BaseAPI {
|
|
|
2095
2141
|
* @memberof TermsApi
|
|
2096
2142
|
*/
|
|
2097
2143
|
termsAddComment(id, data, apiToken, options) {
|
|
2098
|
-
return (0, exports.TermsApiFp)(this.configuration)
|
|
2144
|
+
return (0, exports.TermsApiFp)(this.configuration)
|
|
2145
|
+
.termsAddComment(id, data, apiToken, options)
|
|
2146
|
+
.then(request => request(this.axios, this.basePath));
|
|
2099
2147
|
}
|
|
2100
2148
|
/**
|
|
2101
2149
|
* Delete Terms. More details in the [documentation](https://poeditor.com/docs/api#terms_delete).
|
|
@@ -2108,7 +2156,9 @@ class TermsApi extends base_1.BaseAPI {
|
|
|
2108
2156
|
* @memberof TermsApi
|
|
2109
2157
|
*/
|
|
2110
2158
|
termsDelete(id, data, apiToken, options) {
|
|
2111
|
-
return (0, exports.TermsApiFp)(this.configuration)
|
|
2159
|
+
return (0, exports.TermsApiFp)(this.configuration)
|
|
2160
|
+
.termsDelete(id, data, apiToken, options)
|
|
2161
|
+
.then(request => request(this.axios, this.basePath));
|
|
2112
2162
|
}
|
|
2113
2163
|
/**
|
|
2114
2164
|
* List Project Terms. More details in the [documentation](https://poeditor.com/docs/api#terms_list).
|
|
@@ -2121,7 +2171,9 @@ class TermsApi extends base_1.BaseAPI {
|
|
|
2121
2171
|
* @memberof TermsApi
|
|
2122
2172
|
*/
|
|
2123
2173
|
termsList(id, apiToken, language, options) {
|
|
2124
|
-
return (0, exports.TermsApiFp)(this.configuration)
|
|
2174
|
+
return (0, exports.TermsApiFp)(this.configuration)
|
|
2175
|
+
.termsList(id, apiToken, language, options)
|
|
2176
|
+
.then(request => request(this.axios, this.basePath));
|
|
2125
2177
|
}
|
|
2126
2178
|
/**
|
|
2127
2179
|
* Update Terms. More details in the [documentation](https://poeditor.com/docs/api#terms_update).
|
|
@@ -2135,7 +2187,9 @@ class TermsApi extends base_1.BaseAPI {
|
|
|
2135
2187
|
* @memberof TermsApi
|
|
2136
2188
|
*/
|
|
2137
2189
|
termsUpdate(id, data, apiToken, fuzzyTrigger, options) {
|
|
2138
|
-
return (0, exports.TermsApiFp)(this.configuration)
|
|
2190
|
+
return (0, exports.TermsApiFp)(this.configuration)
|
|
2191
|
+
.termsUpdate(id, data, apiToken, fuzzyTrigger, options)
|
|
2192
|
+
.then(request => request(this.axios, this.basePath));
|
|
2139
2193
|
}
|
|
2140
2194
|
}
|
|
2141
2195
|
exports.TermsApi = TermsApi;
|
|
@@ -2144,7 +2198,7 @@ exports.TermsApi = TermsApi;
|
|
|
2144
2198
|
*/
|
|
2145
2199
|
exports.TermsUpdateFuzzyTriggerEnum = {
|
|
2146
2200
|
NUMBER_0: 0,
|
|
2147
|
-
NUMBER_1: 1
|
|
2201
|
+
NUMBER_1: 1,
|
|
2148
2202
|
};
|
|
2149
2203
|
/**
|
|
2150
2204
|
* TranslationsApi - axios parameter creator
|
|
@@ -2164,11 +2218,11 @@ const TranslationsApiAxiosParamCreator = function (configuration) {
|
|
|
2164
2218
|
*/
|
|
2165
2219
|
translationsAdd: async (id, language, data, apiToken, options = {}) => {
|
|
2166
2220
|
// verify required parameter 'id' is not null or undefined
|
|
2167
|
-
(0, common_1.assertParamExists)(
|
|
2221
|
+
(0, common_1.assertParamExists)("translationsAdd", "id", id);
|
|
2168
2222
|
// verify required parameter 'language' is not null or undefined
|
|
2169
|
-
(0, common_1.assertParamExists)(
|
|
2223
|
+
(0, common_1.assertParamExists)("translationsAdd", "language", language);
|
|
2170
2224
|
// verify required parameter 'data' is not null or undefined
|
|
2171
|
-
(0, common_1.assertParamExists)(
|
|
2225
|
+
(0, common_1.assertParamExists)("translationsAdd", "data", data);
|
|
2172
2226
|
const localVarPath = `/translations/add`;
|
|
2173
2227
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2174
2228
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2176,23 +2230,23 @@ const TranslationsApiAxiosParamCreator = function (configuration) {
|
|
|
2176
2230
|
if (configuration) {
|
|
2177
2231
|
baseOptions = configuration.baseOptions;
|
|
2178
2232
|
}
|
|
2179
|
-
const localVarRequestOptions = { method:
|
|
2233
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
2180
2234
|
const localVarHeaderParameter = {};
|
|
2181
2235
|
const localVarQueryParameter = {};
|
|
2182
2236
|
const localVarFormParams = new URLSearchParams();
|
|
2183
2237
|
if (apiToken !== undefined) {
|
|
2184
|
-
localVarFormParams.set(
|
|
2238
|
+
localVarFormParams.set("api_token", apiToken);
|
|
2185
2239
|
}
|
|
2186
2240
|
if (id !== undefined) {
|
|
2187
|
-
localVarFormParams.set(
|
|
2241
|
+
localVarFormParams.set("id", id);
|
|
2188
2242
|
}
|
|
2189
2243
|
if (language !== undefined) {
|
|
2190
|
-
localVarFormParams.set(
|
|
2244
|
+
localVarFormParams.set("language", language);
|
|
2191
2245
|
}
|
|
2192
2246
|
if (data !== undefined) {
|
|
2193
|
-
localVarFormParams.set(
|
|
2247
|
+
localVarFormParams.set("data", data);
|
|
2194
2248
|
}
|
|
2195
|
-
localVarHeaderParameter[
|
|
2249
|
+
localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
|
|
2196
2250
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2197
2251
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2198
2252
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2217,9 +2271,9 @@ const TranslationsApiAxiosParamCreator = function (configuration) {
|
|
|
2217
2271
|
*/
|
|
2218
2272
|
translationsAutomatic: async (id, provider, apiToken, sourceLanguage, providerSourceLanguage, targetLanguages, _options, options = {}) => {
|
|
2219
2273
|
// verify required parameter 'id' is not null or undefined
|
|
2220
|
-
(0, common_1.assertParamExists)(
|
|
2274
|
+
(0, common_1.assertParamExists)("translationsAutomatic", "id", id);
|
|
2221
2275
|
// verify required parameter 'provider' is not null or undefined
|
|
2222
|
-
(0, common_1.assertParamExists)(
|
|
2276
|
+
(0, common_1.assertParamExists)("translationsAutomatic", "provider", provider);
|
|
2223
2277
|
const localVarPath = `/translations/automatic`;
|
|
2224
2278
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2225
2279
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2227,32 +2281,32 @@ const TranslationsApiAxiosParamCreator = function (configuration) {
|
|
|
2227
2281
|
if (configuration) {
|
|
2228
2282
|
baseOptions = configuration.baseOptions;
|
|
2229
2283
|
}
|
|
2230
|
-
const localVarRequestOptions = { method:
|
|
2284
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
2231
2285
|
const localVarHeaderParameter = {};
|
|
2232
2286
|
const localVarQueryParameter = {};
|
|
2233
2287
|
const localVarFormParams = new URLSearchParams();
|
|
2234
2288
|
if (apiToken !== undefined) {
|
|
2235
|
-
localVarFormParams.set(
|
|
2289
|
+
localVarFormParams.set("api_token", apiToken);
|
|
2236
2290
|
}
|
|
2237
2291
|
if (id !== undefined) {
|
|
2238
|
-
localVarFormParams.set(
|
|
2292
|
+
localVarFormParams.set("id", id);
|
|
2239
2293
|
}
|
|
2240
2294
|
if (sourceLanguage !== undefined) {
|
|
2241
|
-
localVarFormParams.set(
|
|
2295
|
+
localVarFormParams.set("source_language", sourceLanguage);
|
|
2242
2296
|
}
|
|
2243
2297
|
if (providerSourceLanguage !== undefined) {
|
|
2244
|
-
localVarFormParams.set(
|
|
2298
|
+
localVarFormParams.set("provider_source_language", providerSourceLanguage);
|
|
2245
2299
|
}
|
|
2246
2300
|
if (provider !== undefined) {
|
|
2247
|
-
localVarFormParams.set(
|
|
2301
|
+
localVarFormParams.set("provider", provider);
|
|
2248
2302
|
}
|
|
2249
2303
|
if (targetLanguages !== undefined) {
|
|
2250
|
-
localVarFormParams.set(
|
|
2304
|
+
localVarFormParams.set("target_languages", targetLanguages);
|
|
2251
2305
|
}
|
|
2252
2306
|
if (_options !== undefined) {
|
|
2253
|
-
localVarFormParams.set(
|
|
2307
|
+
localVarFormParams.set("options", _options);
|
|
2254
2308
|
}
|
|
2255
|
-
localVarHeaderParameter[
|
|
2309
|
+
localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
|
|
2256
2310
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2257
2311
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2258
2312
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2274,11 +2328,11 @@ const TranslationsApiAxiosParamCreator = function (configuration) {
|
|
|
2274
2328
|
*/
|
|
2275
2329
|
translationsDelete: async (id, language, data, apiToken, options = {}) => {
|
|
2276
2330
|
// verify required parameter 'id' is not null or undefined
|
|
2277
|
-
(0, common_1.assertParamExists)(
|
|
2331
|
+
(0, common_1.assertParamExists)("translationsDelete", "id", id);
|
|
2278
2332
|
// verify required parameter 'language' is not null or undefined
|
|
2279
|
-
(0, common_1.assertParamExists)(
|
|
2333
|
+
(0, common_1.assertParamExists)("translationsDelete", "language", language);
|
|
2280
2334
|
// verify required parameter 'data' is not null or undefined
|
|
2281
|
-
(0, common_1.assertParamExists)(
|
|
2335
|
+
(0, common_1.assertParamExists)("translationsDelete", "data", data);
|
|
2282
2336
|
const localVarPath = `/translations/delete`;
|
|
2283
2337
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2284
2338
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2286,23 +2340,23 @@ const TranslationsApiAxiosParamCreator = function (configuration) {
|
|
|
2286
2340
|
if (configuration) {
|
|
2287
2341
|
baseOptions = configuration.baseOptions;
|
|
2288
2342
|
}
|
|
2289
|
-
const localVarRequestOptions = { method:
|
|
2343
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
2290
2344
|
const localVarHeaderParameter = {};
|
|
2291
2345
|
const localVarQueryParameter = {};
|
|
2292
2346
|
const localVarFormParams = new URLSearchParams();
|
|
2293
2347
|
if (apiToken !== undefined) {
|
|
2294
|
-
localVarFormParams.set(
|
|
2348
|
+
localVarFormParams.set("api_token", apiToken);
|
|
2295
2349
|
}
|
|
2296
2350
|
if (id !== undefined) {
|
|
2297
|
-
localVarFormParams.set(
|
|
2351
|
+
localVarFormParams.set("id", id);
|
|
2298
2352
|
}
|
|
2299
2353
|
if (language !== undefined) {
|
|
2300
|
-
localVarFormParams.set(
|
|
2354
|
+
localVarFormParams.set("language", language);
|
|
2301
2355
|
}
|
|
2302
2356
|
if (data !== undefined) {
|
|
2303
|
-
localVarFormParams.set(
|
|
2357
|
+
localVarFormParams.set("data", data);
|
|
2304
2358
|
}
|
|
2305
|
-
localVarHeaderParameter[
|
|
2359
|
+
localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
|
|
2306
2360
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2307
2361
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2308
2362
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2324,11 +2378,11 @@ const TranslationsApiAxiosParamCreator = function (configuration) {
|
|
|
2324
2378
|
*/
|
|
2325
2379
|
translationsUpdate: async (id, language, data, apiToken, options = {}) => {
|
|
2326
2380
|
// verify required parameter 'id' is not null or undefined
|
|
2327
|
-
(0, common_1.assertParamExists)(
|
|
2381
|
+
(0, common_1.assertParamExists)("translationsUpdate", "id", id);
|
|
2328
2382
|
// verify required parameter 'language' is not null or undefined
|
|
2329
|
-
(0, common_1.assertParamExists)(
|
|
2383
|
+
(0, common_1.assertParamExists)("translationsUpdate", "language", language);
|
|
2330
2384
|
// verify required parameter 'data' is not null or undefined
|
|
2331
|
-
(0, common_1.assertParamExists)(
|
|
2385
|
+
(0, common_1.assertParamExists)("translationsUpdate", "data", data);
|
|
2332
2386
|
const localVarPath = `/translations/update`;
|
|
2333
2387
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2334
2388
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2336,23 +2390,23 @@ const TranslationsApiAxiosParamCreator = function (configuration) {
|
|
|
2336
2390
|
if (configuration) {
|
|
2337
2391
|
baseOptions = configuration.baseOptions;
|
|
2338
2392
|
}
|
|
2339
|
-
const localVarRequestOptions = { method:
|
|
2393
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
2340
2394
|
const localVarHeaderParameter = {};
|
|
2341
2395
|
const localVarQueryParameter = {};
|
|
2342
2396
|
const localVarFormParams = new URLSearchParams();
|
|
2343
2397
|
if (apiToken !== undefined) {
|
|
2344
|
-
localVarFormParams.set(
|
|
2398
|
+
localVarFormParams.set("api_token", apiToken);
|
|
2345
2399
|
}
|
|
2346
2400
|
if (id !== undefined) {
|
|
2347
|
-
localVarFormParams.set(
|
|
2401
|
+
localVarFormParams.set("id", id);
|
|
2348
2402
|
}
|
|
2349
2403
|
if (language !== undefined) {
|
|
2350
|
-
localVarFormParams.set(
|
|
2404
|
+
localVarFormParams.set("language", language);
|
|
2351
2405
|
}
|
|
2352
2406
|
if (data !== undefined) {
|
|
2353
|
-
localVarFormParams.set(
|
|
2407
|
+
localVarFormParams.set("data", data);
|
|
2354
2408
|
}
|
|
2355
|
-
localVarHeaderParameter[
|
|
2409
|
+
localVarHeaderParameter["Content-Type"] = "application/x-www-form-urlencoded";
|
|
2356
2410
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2357
2411
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2358
2412
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2385,7 +2439,7 @@ const TranslationsApiFp = function (configuration) {
|
|
|
2385
2439
|
async translationsAdd(id, language, data, apiToken, options) {
|
|
2386
2440
|
const localVarAxiosArgs = await localVarAxiosParamCreator.translationsAdd(id, language, data, apiToken, options);
|
|
2387
2441
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2388
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
2442
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["TranslationsApi.translationsAdd"]?.[localVarOperationServerIndex]?.url;
|
|
2389
2443
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2390
2444
|
},
|
|
2391
2445
|
/**
|
|
@@ -2404,7 +2458,7 @@ const TranslationsApiFp = function (configuration) {
|
|
|
2404
2458
|
async translationsAutomatic(id, provider, apiToken, sourceLanguage, providerSourceLanguage, targetLanguages, _options, options) {
|
|
2405
2459
|
const localVarAxiosArgs = await localVarAxiosParamCreator.translationsAutomatic(id, provider, apiToken, sourceLanguage, providerSourceLanguage, targetLanguages, _options, options);
|
|
2406
2460
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2407
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
2461
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["TranslationsApi.translationsAutomatic"]?.[localVarOperationServerIndex]?.url;
|
|
2408
2462
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2409
2463
|
},
|
|
2410
2464
|
/**
|
|
@@ -2420,7 +2474,7 @@ const TranslationsApiFp = function (configuration) {
|
|
|
2420
2474
|
async translationsDelete(id, language, data, apiToken, options) {
|
|
2421
2475
|
const localVarAxiosArgs = await localVarAxiosParamCreator.translationsDelete(id, language, data, apiToken, options);
|
|
2422
2476
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2423
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
2477
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["TranslationsApi.translationsDelete"]?.[localVarOperationServerIndex]?.url;
|
|
2424
2478
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2425
2479
|
},
|
|
2426
2480
|
/**
|
|
@@ -2436,7 +2490,7 @@ const TranslationsApiFp = function (configuration) {
|
|
|
2436
2490
|
async translationsUpdate(id, language, data, apiToken, options) {
|
|
2437
2491
|
const localVarAxiosArgs = await localVarAxiosParamCreator.translationsUpdate(id, language, data, apiToken, options);
|
|
2438
2492
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2439
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
2493
|
+
const localVarOperationServerBasePath = base_1.operationServerMap["TranslationsApi.translationsUpdate"]?.[localVarOperationServerIndex]?.url;
|
|
2440
2494
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2441
2495
|
},
|
|
2442
2496
|
};
|
|
@@ -2460,7 +2514,7 @@ const TranslationsApiFactory = function (configuration, basePath, axios) {
|
|
|
2460
2514
|
* @throws {RequiredError}
|
|
2461
2515
|
*/
|
|
2462
2516
|
translationsAdd(id, language, data, apiToken, options) {
|
|
2463
|
-
return localVarFp.translationsAdd(id, language, data, apiToken, options).then(
|
|
2517
|
+
return localVarFp.translationsAdd(id, language, data, apiToken, options).then(request => request(axios, basePath));
|
|
2464
2518
|
},
|
|
2465
2519
|
/**
|
|
2466
2520
|
* Update Translations. More details in the [documentation](https://poeditor.com/docs/api#translations_automatic).
|
|
@@ -2476,7 +2530,9 @@ const TranslationsApiFactory = function (configuration, basePath, axios) {
|
|
|
2476
2530
|
* @throws {RequiredError}
|
|
2477
2531
|
*/
|
|
2478
2532
|
translationsAutomatic(id, provider, apiToken, sourceLanguage, providerSourceLanguage, targetLanguages, _options, options) {
|
|
2479
|
-
return localVarFp
|
|
2533
|
+
return localVarFp
|
|
2534
|
+
.translationsAutomatic(id, provider, apiToken, sourceLanguage, providerSourceLanguage, targetLanguages, _options, options)
|
|
2535
|
+
.then(request => request(axios, basePath));
|
|
2480
2536
|
},
|
|
2481
2537
|
/**
|
|
2482
2538
|
* Delete Translations. More details in the [documentation](https://poeditor.com/docs/api#translations_delete).
|
|
@@ -2489,7 +2545,9 @@ const TranslationsApiFactory = function (configuration, basePath, axios) {
|
|
|
2489
2545
|
* @throws {RequiredError}
|
|
2490
2546
|
*/
|
|
2491
2547
|
translationsDelete(id, language, data, apiToken, options) {
|
|
2492
|
-
return localVarFp
|
|
2548
|
+
return localVarFp
|
|
2549
|
+
.translationsDelete(id, language, data, apiToken, options)
|
|
2550
|
+
.then(request => request(axios, basePath));
|
|
2493
2551
|
},
|
|
2494
2552
|
/**
|
|
2495
2553
|
* Update Translations. More details in the [documentation](https://poeditor.com/docs/api#translations_update).
|
|
@@ -2502,7 +2560,9 @@ const TranslationsApiFactory = function (configuration, basePath, axios) {
|
|
|
2502
2560
|
* @throws {RequiredError}
|
|
2503
2561
|
*/
|
|
2504
2562
|
translationsUpdate(id, language, data, apiToken, options) {
|
|
2505
|
-
return localVarFp
|
|
2563
|
+
return localVarFp
|
|
2564
|
+
.translationsUpdate(id, language, data, apiToken, options)
|
|
2565
|
+
.then(request => request(axios, basePath));
|
|
2506
2566
|
},
|
|
2507
2567
|
};
|
|
2508
2568
|
};
|
|
@@ -2526,7 +2586,9 @@ class TranslationsApi extends base_1.BaseAPI {
|
|
|
2526
2586
|
* @memberof TranslationsApi
|
|
2527
2587
|
*/
|
|
2528
2588
|
translationsAdd(id, language, data, apiToken, options) {
|
|
2529
|
-
return (0, exports.TranslationsApiFp)(this.configuration)
|
|
2589
|
+
return (0, exports.TranslationsApiFp)(this.configuration)
|
|
2590
|
+
.translationsAdd(id, language, data, apiToken, options)
|
|
2591
|
+
.then(request => request(this.axios, this.basePath));
|
|
2530
2592
|
}
|
|
2531
2593
|
/**
|
|
2532
2594
|
* Update Translations. More details in the [documentation](https://poeditor.com/docs/api#translations_automatic).
|
|
@@ -2543,7 +2605,9 @@ class TranslationsApi extends base_1.BaseAPI {
|
|
|
2543
2605
|
* @memberof TranslationsApi
|
|
2544
2606
|
*/
|
|
2545
2607
|
translationsAutomatic(id, provider, apiToken, sourceLanguage, providerSourceLanguage, targetLanguages, _options, options) {
|
|
2546
|
-
return (0, exports.TranslationsApiFp)(this.configuration)
|
|
2608
|
+
return (0, exports.TranslationsApiFp)(this.configuration)
|
|
2609
|
+
.translationsAutomatic(id, provider, apiToken, sourceLanguage, providerSourceLanguage, targetLanguages, _options, options)
|
|
2610
|
+
.then(request => request(this.axios, this.basePath));
|
|
2547
2611
|
}
|
|
2548
2612
|
/**
|
|
2549
2613
|
* Delete Translations. More details in the [documentation](https://poeditor.com/docs/api#translations_delete).
|
|
@@ -2557,7 +2621,9 @@ class TranslationsApi extends base_1.BaseAPI {
|
|
|
2557
2621
|
* @memberof TranslationsApi
|
|
2558
2622
|
*/
|
|
2559
2623
|
translationsDelete(id, language, data, apiToken, options) {
|
|
2560
|
-
return (0, exports.TranslationsApiFp)(this.configuration)
|
|
2624
|
+
return (0, exports.TranslationsApiFp)(this.configuration)
|
|
2625
|
+
.translationsDelete(id, language, data, apiToken, options)
|
|
2626
|
+
.then(request => request(this.axios, this.basePath));
|
|
2561
2627
|
}
|
|
2562
2628
|
/**
|
|
2563
2629
|
* Update Translations. More details in the [documentation](https://poeditor.com/docs/api#translations_update).
|
|
@@ -2571,7 +2637,9 @@ class TranslationsApi extends base_1.BaseAPI {
|
|
|
2571
2637
|
* @memberof TranslationsApi
|
|
2572
2638
|
*/
|
|
2573
2639
|
translationsUpdate(id, language, data, apiToken, options) {
|
|
2574
|
-
return (0, exports.TranslationsApiFp)(this.configuration)
|
|
2640
|
+
return (0, exports.TranslationsApiFp)(this.configuration)
|
|
2641
|
+
.translationsUpdate(id, language, data, apiToken, options)
|
|
2642
|
+
.then(request => request(this.axios, this.basePath));
|
|
2575
2643
|
}
|
|
2576
2644
|
}
|
|
2577
2645
|
exports.TranslationsApi = TranslationsApi;
|
|
@@ -2579,8 +2647,8 @@ exports.TranslationsApi = TranslationsApi;
|
|
|
2579
2647
|
* @export
|
|
2580
2648
|
*/
|
|
2581
2649
|
exports.TranslationsAutomaticProviderEnum = {
|
|
2582
|
-
Google:
|
|
2583
|
-
Microsoft:
|
|
2584
|
-
Deepl:
|
|
2650
|
+
Google: "google",
|
|
2651
|
+
Microsoft: "microsoft",
|
|
2652
|
+
Deepl: "deepl",
|
|
2585
2653
|
};
|
|
2586
2654
|
//# sourceMappingURL=api.js.map
|