@emilgroup/task-sdk-node 1.7.1-beta.37 → 1.7.1-beta.40
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/README.md +2 -2
- package/api/assignees-api.ts +4 -2
- package/api/categories-api.ts +20 -10
- package/api/filters-api.ts +24 -12
- package/api/hub-spot-api.ts +4 -2
- package/api/reminders-api.ts +28 -14
- package/api/statuses-api.ts +20 -10
- package/api/task-client-api.ts +76 -38
- package/api/tasks-api.ts +28 -14
- package/dist/api/assignees-api.js +4 -3
- package/dist/api/categories-api.js +29 -18
- package/dist/api/filters-api.js +39 -23
- package/dist/api/hub-spot-api.js +7 -4
- package/dist/api/reminders-api.js +40 -25
- package/dist/api/statuses-api.js +29 -18
- package/dist/api/task-client-api.js +112 -69
- package/dist/api/tasks-api.js +43 -26
- package/package.json +1 -1
package/dist/api/tasks-api.js
CHANGED
|
@@ -108,7 +108,7 @@ var TasksApiAxiosParamCreator = function (configuration) {
|
|
|
108
108
|
addSecondaryLink: function (code, entityRefDto, authorization, options) {
|
|
109
109
|
if (options === void 0) { options = {}; }
|
|
110
110
|
return __awaiter(_this, void 0, void 0, function () {
|
|
111
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
112
112
|
return __generator(this, function (_a) {
|
|
113
113
|
switch (_a.label) {
|
|
114
114
|
case 0:
|
|
@@ -128,13 +128,16 @@ var TasksApiAxiosParamCreator = function (configuration) {
|
|
|
128
128
|
localVarQueryParameter = {};
|
|
129
129
|
// authentication bearer required
|
|
130
130
|
// http bearer authentication required
|
|
131
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
131
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
132
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
133
|
+
];
|
|
132
134
|
case 1:
|
|
133
135
|
// authentication bearer required
|
|
134
136
|
// http bearer authentication required
|
|
135
137
|
_a.sent();
|
|
136
|
-
|
|
137
|
-
|
|
138
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
139
|
+
if (authorizationValue) {
|
|
140
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
138
141
|
}
|
|
139
142
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
140
143
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -160,7 +163,7 @@ var TasksApiAxiosParamCreator = function (configuration) {
|
|
|
160
163
|
createTask: function (createTaskRequestDto, authorization, options) {
|
|
161
164
|
if (options === void 0) { options = {}; }
|
|
162
165
|
return __awaiter(_this, void 0, void 0, function () {
|
|
163
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
166
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
164
167
|
return __generator(this, function (_a) {
|
|
165
168
|
switch (_a.label) {
|
|
166
169
|
case 0:
|
|
@@ -177,13 +180,16 @@ var TasksApiAxiosParamCreator = function (configuration) {
|
|
|
177
180
|
localVarQueryParameter = {};
|
|
178
181
|
// authentication bearer required
|
|
179
182
|
// http bearer authentication required
|
|
180
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
183
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
184
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
185
|
+
];
|
|
181
186
|
case 1:
|
|
182
187
|
// authentication bearer required
|
|
183
188
|
// http bearer authentication required
|
|
184
189
|
_a.sent();
|
|
185
|
-
|
|
186
|
-
|
|
190
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
191
|
+
if (authorizationValue) {
|
|
192
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
187
193
|
}
|
|
188
194
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
189
195
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -209,7 +215,7 @@ var TasksApiAxiosParamCreator = function (configuration) {
|
|
|
209
215
|
deleteTask: function (code, authorization, options) {
|
|
210
216
|
if (options === void 0) { options = {}; }
|
|
211
217
|
return __awaiter(_this, void 0, void 0, function () {
|
|
212
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
218
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
213
219
|
return __generator(this, function (_a) {
|
|
214
220
|
switch (_a.label) {
|
|
215
221
|
case 0:
|
|
@@ -227,13 +233,16 @@ var TasksApiAxiosParamCreator = function (configuration) {
|
|
|
227
233
|
localVarQueryParameter = {};
|
|
228
234
|
// authentication bearer required
|
|
229
235
|
// http bearer authentication required
|
|
230
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
236
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
237
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
238
|
+
];
|
|
231
239
|
case 1:
|
|
232
240
|
// authentication bearer required
|
|
233
241
|
// http bearer authentication required
|
|
234
242
|
_a.sent();
|
|
235
|
-
|
|
236
|
-
|
|
243
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
244
|
+
if (authorizationValue) {
|
|
245
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
237
246
|
}
|
|
238
247
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
239
248
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -258,7 +267,7 @@ var TasksApiAxiosParamCreator = function (configuration) {
|
|
|
258
267
|
getTask: function (code, authorization, expand, options) {
|
|
259
268
|
if (options === void 0) { options = {}; }
|
|
260
269
|
return __awaiter(_this, void 0, void 0, function () {
|
|
261
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
270
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
262
271
|
return __generator(this, function (_a) {
|
|
263
272
|
switch (_a.label) {
|
|
264
273
|
case 0:
|
|
@@ -284,8 +293,9 @@ var TasksApiAxiosParamCreator = function (configuration) {
|
|
|
284
293
|
if (expand !== undefined) {
|
|
285
294
|
localVarQueryParameter['expand'] = expand;
|
|
286
295
|
}
|
|
287
|
-
|
|
288
|
-
|
|
296
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
297
|
+
if (authorizationValue) {
|
|
298
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
289
299
|
}
|
|
290
300
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
291
301
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -315,7 +325,7 @@ var TasksApiAxiosParamCreator = function (configuration) {
|
|
|
315
325
|
listTasks: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
316
326
|
if (options === void 0) { options = {}; }
|
|
317
327
|
return __awaiter(_this, void 0, void 0, function () {
|
|
318
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
328
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
319
329
|
return __generator(this, function (_a) {
|
|
320
330
|
switch (_a.label) {
|
|
321
331
|
case 0:
|
|
@@ -356,8 +366,9 @@ var TasksApiAxiosParamCreator = function (configuration) {
|
|
|
356
366
|
if (filters !== undefined) {
|
|
357
367
|
localVarQueryParameter['filters'] = filters;
|
|
358
368
|
}
|
|
359
|
-
|
|
360
|
-
|
|
369
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
370
|
+
if (authorizationValue) {
|
|
371
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
361
372
|
}
|
|
362
373
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
363
374
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -382,7 +393,7 @@ var TasksApiAxiosParamCreator = function (configuration) {
|
|
|
382
393
|
patchTask: function (code, patchTaskRequestDto, authorization, options) {
|
|
383
394
|
if (options === void 0) { options = {}; }
|
|
384
395
|
return __awaiter(_this, void 0, void 0, function () {
|
|
385
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
396
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
386
397
|
return __generator(this, function (_a) {
|
|
387
398
|
switch (_a.label) {
|
|
388
399
|
case 0:
|
|
@@ -402,13 +413,16 @@ var TasksApiAxiosParamCreator = function (configuration) {
|
|
|
402
413
|
localVarQueryParameter = {};
|
|
403
414
|
// authentication bearer required
|
|
404
415
|
// http bearer authentication required
|
|
405
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
416
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
417
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
418
|
+
];
|
|
406
419
|
case 1:
|
|
407
420
|
// authentication bearer required
|
|
408
421
|
// http bearer authentication required
|
|
409
422
|
_a.sent();
|
|
410
|
-
|
|
411
|
-
|
|
423
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
424
|
+
if (authorizationValue) {
|
|
425
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
412
426
|
}
|
|
413
427
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
414
428
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -436,7 +450,7 @@ var TasksApiAxiosParamCreator = function (configuration) {
|
|
|
436
450
|
removeSecondaryLink: function (code, linkType, linkCode, authorization, options) {
|
|
437
451
|
if (options === void 0) { options = {}; }
|
|
438
452
|
return __awaiter(_this, void 0, void 0, function () {
|
|
439
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
453
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
440
454
|
return __generator(this, function (_a) {
|
|
441
455
|
switch (_a.label) {
|
|
442
456
|
case 0:
|
|
@@ -460,13 +474,16 @@ var TasksApiAxiosParamCreator = function (configuration) {
|
|
|
460
474
|
localVarQueryParameter = {};
|
|
461
475
|
// authentication bearer required
|
|
462
476
|
// http bearer authentication required
|
|
463
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
477
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
478
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
479
|
+
];
|
|
464
480
|
case 1:
|
|
465
481
|
// authentication bearer required
|
|
466
482
|
// http bearer authentication required
|
|
467
483
|
_a.sent();
|
|
468
|
-
|
|
469
|
-
|
|
484
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
485
|
+
if (authorizationValue) {
|
|
486
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
470
487
|
}
|
|
471
488
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
472
489
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|