@emilgroup/task-sdk-node 1.7.1-beta.4 → 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/.openapi-generator/FILES +8 -0
- package/README.md +2 -2
- package/api/assignees-api.ts +4 -2
- package/api/categories-api.ts +20 -10
- package/api/filters-api.ts +153 -34
- 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 +329 -42
- package/api/tasks-api.ts +281 -18
- package/dist/api/assignees-api.js +4 -3
- package/dist/api/categories-api.js +29 -18
- package/dist/api/filters-api.d.ts +81 -24
- package/dist/api/filters-api.js +147 -38
- 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.d.ts +148 -8
- package/dist/api/task-client-api.js +313 -67
- package/dist/api/tasks-api.d.ts +148 -8
- package/dist/api/tasks-api.js +244 -24
- package/dist/models/add-secondary-link-response-class.d.ts +25 -0
- package/dist/models/add-secondary-link-response-class.js +15 -0
- package/dist/models/create-task-request-dto.d.ts +13 -0
- package/dist/models/dry-run-filter-clause-class.d.ts +42 -0
- package/dist/models/dry-run-filter-clause-class.js +15 -0
- package/dist/models/dry-run-filter-request-dto.d.ts +30 -0
- package/dist/models/dry-run-filter-request-dto.js +15 -0
- package/dist/models/dry-run-filter-response-class.d.ts +37 -0
- package/dist/models/dry-run-filter-response-class.js +15 -0
- package/dist/models/entity-ref-class.d.ts +34 -0
- package/dist/models/entity-ref-class.js +19 -0
- package/dist/models/entity-ref-dto.d.ts +34 -0
- package/dist/models/entity-ref-dto.js +19 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/dist/models/patch-task-request-dto.d.ts +12 -0
- package/dist/models/remove-secondary-link-response-class.d.ts +25 -0
- package/dist/models/remove-secondary-link-response-class.js +15 -0
- package/dist/models/secondary-link-class.d.ts +31 -0
- package/dist/models/secondary-link-class.js +15 -0
- package/dist/models/task-class.d.ts +7 -0
- package/models/add-secondary-link-response-class.ts +31 -0
- package/models/create-task-request-dto.ts +13 -0
- package/models/dry-run-filter-clause-class.ts +48 -0
- package/models/dry-run-filter-request-dto.ts +36 -0
- package/models/dry-run-filter-response-class.ts +43 -0
- package/models/entity-ref-class.ts +43 -0
- package/models/entity-ref-dto.ts +43 -0
- package/models/index.ts +8 -0
- package/models/patch-task-request-dto.ts +12 -0
- package/models/remove-secondary-link-response-class.ts +31 -0
- package/models/secondary-link-class.ts +37 -0
- package/models/task-class.ts +7 -0
- package/package.json +1 -1
|
@@ -96,6 +96,62 @@ var FormData = require('form-data');
|
|
|
96
96
|
var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
|
+
/**
|
|
100
|
+
* Adds a secondary link from a task to a record in another service, for example an email thread. The record must exist. Adding a record that is already linked returns the task unchanged. **Required Permissions** \"task-management.tasks.update\"
|
|
101
|
+
* @summary Create the task secondary link
|
|
102
|
+
* @param {string} code
|
|
103
|
+
* @param {EntityRefDto} entityRefDto
|
|
104
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
105
|
+
* @param {*} [options] Override http request option.
|
|
106
|
+
* @throws {RequiredError}
|
|
107
|
+
*/
|
|
108
|
+
addSecondaryLink: function (code, entityRefDto, authorization, options) {
|
|
109
|
+
if (options === void 0) { options = {}; }
|
|
110
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
111
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
112
|
+
return __generator(this, function (_a) {
|
|
113
|
+
switch (_a.label) {
|
|
114
|
+
case 0:
|
|
115
|
+
// verify required parameter 'code' is not null or undefined
|
|
116
|
+
(0, common_1.assertParamExists)('addSecondaryLink', 'code', code);
|
|
117
|
+
// verify required parameter 'entityRefDto' is not null or undefined
|
|
118
|
+
(0, common_1.assertParamExists)('addSecondaryLink', 'entityRefDto', entityRefDto);
|
|
119
|
+
localVarPath = "/taskservice/v1/tasks/{code}/secondary-links"
|
|
120
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
121
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
122
|
+
if (configuration) {
|
|
123
|
+
baseOptions = configuration.baseOptions;
|
|
124
|
+
baseAccessToken = configuration.accessToken;
|
|
125
|
+
}
|
|
126
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
127
|
+
localVarHeaderParameter = {};
|
|
128
|
+
localVarQueryParameter = {};
|
|
129
|
+
// authentication bearer required
|
|
130
|
+
// http bearer authentication required
|
|
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
|
+
];
|
|
134
|
+
case 1:
|
|
135
|
+
// authentication bearer required
|
|
136
|
+
// http bearer authentication required
|
|
137
|
+
_a.sent();
|
|
138
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
139
|
+
if (authorizationValue) {
|
|
140
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
141
|
+
}
|
|
142
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
143
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
144
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
145
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
146
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(entityRefDto, localVarRequestOptions, configuration);
|
|
147
|
+
return [2 /*return*/, {
|
|
148
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
149
|
+
options: localVarRequestOptions,
|
|
150
|
+
}];
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
},
|
|
99
155
|
/**
|
|
100
156
|
* This will create a category. **Required Permissions** \"task-management.tasks.create\"
|
|
101
157
|
* @summary Create the category
|
|
@@ -107,7 +163,7 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
107
163
|
createCategory: function (createCategoryRequestDto, authorization, options) {
|
|
108
164
|
if (options === void 0) { options = {}; }
|
|
109
165
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
166
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
111
167
|
return __generator(this, function (_a) {
|
|
112
168
|
switch (_a.label) {
|
|
113
169
|
case 0:
|
|
@@ -124,13 +180,16 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
124
180
|
localVarQueryParameter = {};
|
|
125
181
|
// authentication bearer required
|
|
126
182
|
// http bearer authentication required
|
|
127
|
-
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
|
+
];
|
|
128
186
|
case 1:
|
|
129
187
|
// authentication bearer required
|
|
130
188
|
// http bearer authentication required
|
|
131
189
|
_a.sent();
|
|
132
|
-
|
|
133
|
-
|
|
190
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
191
|
+
if (authorizationValue) {
|
|
192
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
134
193
|
}
|
|
135
194
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
136
195
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -156,7 +215,7 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
156
215
|
createHubSpotTicket: function (createHubSpotTicketRequestDto, authorization, options) {
|
|
157
216
|
if (options === void 0) { options = {}; }
|
|
158
217
|
return __awaiter(_this, void 0, void 0, function () {
|
|
159
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
218
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
160
219
|
return __generator(this, function (_a) {
|
|
161
220
|
switch (_a.label) {
|
|
162
221
|
case 0:
|
|
@@ -173,13 +232,16 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
173
232
|
localVarQueryParameter = {};
|
|
174
233
|
// authentication bearer required
|
|
175
234
|
// http bearer authentication required
|
|
176
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
235
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
236
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
237
|
+
];
|
|
177
238
|
case 1:
|
|
178
239
|
// authentication bearer required
|
|
179
240
|
// http bearer authentication required
|
|
180
241
|
_a.sent();
|
|
181
|
-
|
|
182
|
-
|
|
242
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
243
|
+
if (authorizationValue) {
|
|
244
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
183
245
|
}
|
|
184
246
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
185
247
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -205,7 +267,7 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
205
267
|
createStatus: function (createStatusRequestDto, authorization, options) {
|
|
206
268
|
if (options === void 0) { options = {}; }
|
|
207
269
|
return __awaiter(_this, void 0, void 0, function () {
|
|
208
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
270
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
209
271
|
return __generator(this, function (_a) {
|
|
210
272
|
switch (_a.label) {
|
|
211
273
|
case 0:
|
|
@@ -222,13 +284,16 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
222
284
|
localVarQueryParameter = {};
|
|
223
285
|
// authentication bearer required
|
|
224
286
|
// http bearer authentication required
|
|
225
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
287
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
288
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
289
|
+
];
|
|
226
290
|
case 1:
|
|
227
291
|
// authentication bearer required
|
|
228
292
|
// http bearer authentication required
|
|
229
293
|
_a.sent();
|
|
230
|
-
|
|
231
|
-
|
|
294
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
295
|
+
if (authorizationValue) {
|
|
296
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
232
297
|
}
|
|
233
298
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
234
299
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -254,7 +319,7 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
254
319
|
createTask: function (createTaskRequestDto, authorization, options) {
|
|
255
320
|
if (options === void 0) { options = {}; }
|
|
256
321
|
return __awaiter(_this, void 0, void 0, function () {
|
|
257
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
322
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
258
323
|
return __generator(this, function (_a) {
|
|
259
324
|
switch (_a.label) {
|
|
260
325
|
case 0:
|
|
@@ -271,13 +336,16 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
271
336
|
localVarQueryParameter = {};
|
|
272
337
|
// authentication bearer required
|
|
273
338
|
// http bearer authentication required
|
|
274
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
339
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
340
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
341
|
+
];
|
|
275
342
|
case 1:
|
|
276
343
|
// authentication bearer required
|
|
277
344
|
// http bearer authentication required
|
|
278
345
|
_a.sent();
|
|
279
|
-
|
|
280
|
-
|
|
346
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
347
|
+
if (authorizationValue) {
|
|
348
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
281
349
|
}
|
|
282
350
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
283
351
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -303,7 +371,7 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
303
371
|
deleteCategory: function (code, authorization, options) {
|
|
304
372
|
if (options === void 0) { options = {}; }
|
|
305
373
|
return __awaiter(_this, void 0, void 0, function () {
|
|
306
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
374
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
307
375
|
return __generator(this, function (_a) {
|
|
308
376
|
switch (_a.label) {
|
|
309
377
|
case 0:
|
|
@@ -321,13 +389,16 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
321
389
|
localVarQueryParameter = {};
|
|
322
390
|
// authentication bearer required
|
|
323
391
|
// http bearer authentication required
|
|
324
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
392
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
393
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
394
|
+
];
|
|
325
395
|
case 1:
|
|
326
396
|
// authentication bearer required
|
|
327
397
|
// http bearer authentication required
|
|
328
398
|
_a.sent();
|
|
329
|
-
|
|
330
|
-
|
|
399
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
400
|
+
if (authorizationValue) {
|
|
401
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
331
402
|
}
|
|
332
403
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
333
404
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -351,7 +422,7 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
351
422
|
deleteStatus: function (code, authorization, options) {
|
|
352
423
|
if (options === void 0) { options = {}; }
|
|
353
424
|
return __awaiter(_this, void 0, void 0, function () {
|
|
354
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
425
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
355
426
|
return __generator(this, function (_a) {
|
|
356
427
|
switch (_a.label) {
|
|
357
428
|
case 0:
|
|
@@ -369,13 +440,16 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
369
440
|
localVarQueryParameter = {};
|
|
370
441
|
// authentication bearer required
|
|
371
442
|
// http bearer authentication required
|
|
372
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
443
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
444
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
445
|
+
];
|
|
373
446
|
case 1:
|
|
374
447
|
// authentication bearer required
|
|
375
448
|
// http bearer authentication required
|
|
376
449
|
_a.sent();
|
|
377
|
-
|
|
378
|
-
|
|
450
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
451
|
+
if (authorizationValue) {
|
|
452
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
379
453
|
}
|
|
380
454
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
381
455
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -399,7 +473,7 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
399
473
|
deleteTask: function (code, authorization, options) {
|
|
400
474
|
if (options === void 0) { options = {}; }
|
|
401
475
|
return __awaiter(_this, void 0, void 0, function () {
|
|
402
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
476
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
403
477
|
return __generator(this, function (_a) {
|
|
404
478
|
switch (_a.label) {
|
|
405
479
|
case 0:
|
|
@@ -417,13 +491,16 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
417
491
|
localVarQueryParameter = {};
|
|
418
492
|
// authentication bearer required
|
|
419
493
|
// http bearer authentication required
|
|
420
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
494
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
495
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
496
|
+
];
|
|
421
497
|
case 1:
|
|
422
498
|
// authentication bearer required
|
|
423
499
|
// http bearer authentication required
|
|
424
500
|
_a.sent();
|
|
425
|
-
|
|
426
|
-
|
|
501
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
502
|
+
if (authorizationValue) {
|
|
503
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
427
504
|
}
|
|
428
505
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
429
506
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -448,7 +525,7 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
448
525
|
getCategory: function (code, authorization, expand, options) {
|
|
449
526
|
if (options === void 0) { options = {}; }
|
|
450
527
|
return __awaiter(_this, void 0, void 0, function () {
|
|
451
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
528
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
452
529
|
return __generator(this, function (_a) {
|
|
453
530
|
switch (_a.label) {
|
|
454
531
|
case 0:
|
|
@@ -474,8 +551,9 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
474
551
|
if (expand !== undefined) {
|
|
475
552
|
localVarQueryParameter['expand'] = expand;
|
|
476
553
|
}
|
|
477
|
-
|
|
478
|
-
|
|
554
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
555
|
+
if (authorizationValue) {
|
|
556
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
479
557
|
}
|
|
480
558
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
481
559
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -500,7 +578,7 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
500
578
|
getStatus: function (code, authorization, expand, options) {
|
|
501
579
|
if (options === void 0) { options = {}; }
|
|
502
580
|
return __awaiter(_this, void 0, void 0, function () {
|
|
503
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
581
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
504
582
|
return __generator(this, function (_a) {
|
|
505
583
|
switch (_a.label) {
|
|
506
584
|
case 0:
|
|
@@ -526,8 +604,9 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
526
604
|
if (expand !== undefined) {
|
|
527
605
|
localVarQueryParameter['expand'] = expand;
|
|
528
606
|
}
|
|
529
|
-
|
|
530
|
-
|
|
607
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
608
|
+
if (authorizationValue) {
|
|
609
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
531
610
|
}
|
|
532
611
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
533
612
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -552,7 +631,7 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
552
631
|
getTask: function (code, authorization, expand, options) {
|
|
553
632
|
if (options === void 0) { options = {}; }
|
|
554
633
|
return __awaiter(_this, void 0, void 0, function () {
|
|
555
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
634
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
556
635
|
return __generator(this, function (_a) {
|
|
557
636
|
switch (_a.label) {
|
|
558
637
|
case 0:
|
|
@@ -578,8 +657,9 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
578
657
|
if (expand !== undefined) {
|
|
579
658
|
localVarQueryParameter['expand'] = expand;
|
|
580
659
|
}
|
|
581
|
-
|
|
582
|
-
|
|
660
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
661
|
+
if (authorizationValue) {
|
|
662
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
583
663
|
}
|
|
584
664
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
585
665
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -603,7 +683,7 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
603
683
|
listAssignees: function (authorization, expand, options) {
|
|
604
684
|
if (options === void 0) { options = {}; }
|
|
605
685
|
return __awaiter(_this, void 0, void 0, function () {
|
|
606
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
686
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
607
687
|
return __generator(this, function (_a) {
|
|
608
688
|
switch (_a.label) {
|
|
609
689
|
case 0:
|
|
@@ -626,8 +706,9 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
626
706
|
if (expand !== undefined) {
|
|
627
707
|
localVarQueryParameter['expand'] = expand;
|
|
628
708
|
}
|
|
629
|
-
|
|
630
|
-
|
|
709
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
710
|
+
if (authorizationValue) {
|
|
711
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
631
712
|
}
|
|
632
713
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
633
714
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -657,7 +738,7 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
657
738
|
listCategories: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
658
739
|
if (options === void 0) { options = {}; }
|
|
659
740
|
return __awaiter(_this, void 0, void 0, function () {
|
|
660
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
741
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
661
742
|
return __generator(this, function (_a) {
|
|
662
743
|
switch (_a.label) {
|
|
663
744
|
case 0:
|
|
@@ -698,8 +779,9 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
698
779
|
if (filters !== undefined) {
|
|
699
780
|
localVarQueryParameter['filters'] = filters;
|
|
700
781
|
}
|
|
701
|
-
|
|
702
|
-
|
|
782
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
783
|
+
if (authorizationValue) {
|
|
784
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
703
785
|
}
|
|
704
786
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
705
787
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -727,7 +809,7 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
727
809
|
listStatuses: function (authorization, filter, filters, search, order, expand, options) {
|
|
728
810
|
if (options === void 0) { options = {}; }
|
|
729
811
|
return __awaiter(_this, void 0, void 0, function () {
|
|
730
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
812
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
731
813
|
return __generator(this, function (_a) {
|
|
732
814
|
switch (_a.label) {
|
|
733
815
|
case 0:
|
|
@@ -762,8 +844,9 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
762
844
|
if (expand !== undefined) {
|
|
763
845
|
localVarQueryParameter['expand'] = expand;
|
|
764
846
|
}
|
|
765
|
-
|
|
766
|
-
|
|
847
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
848
|
+
if (authorizationValue) {
|
|
849
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
767
850
|
}
|
|
768
851
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
769
852
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -782,18 +865,18 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
782
865
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
783
866
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
784
867
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
785
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
868
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug, secondaryLinks.type, secondaryLinks.code</i>
|
|
786
869
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: subject, description</i>
|
|
787
870
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, assignee, reporter, dueDate, entityType, entityCode, status, priority</i>
|
|
788
871
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: categories, status<i>
|
|
789
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
872
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug, secondaryLinks.type, secondaryLinks.code</i>
|
|
790
873
|
* @param {*} [options] Override http request option.
|
|
791
874
|
* @throws {RequiredError}
|
|
792
875
|
*/
|
|
793
876
|
listTasks: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
794
877
|
if (options === void 0) { options = {}; }
|
|
795
878
|
return __awaiter(_this, void 0, void 0, function () {
|
|
796
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
879
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
797
880
|
return __generator(this, function (_a) {
|
|
798
881
|
switch (_a.label) {
|
|
799
882
|
case 0:
|
|
@@ -834,8 +917,9 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
834
917
|
if (filters !== undefined) {
|
|
835
918
|
localVarQueryParameter['filters'] = filters;
|
|
836
919
|
}
|
|
837
|
-
|
|
838
|
-
|
|
920
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
921
|
+
if (authorizationValue) {
|
|
922
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
839
923
|
}
|
|
840
924
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
841
925
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -860,7 +944,7 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
860
944
|
patchCategory: function (code, patchCategoryRequestDto, authorization, options) {
|
|
861
945
|
if (options === void 0) { options = {}; }
|
|
862
946
|
return __awaiter(_this, void 0, void 0, function () {
|
|
863
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
947
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
864
948
|
return __generator(this, function (_a) {
|
|
865
949
|
switch (_a.label) {
|
|
866
950
|
case 0:
|
|
@@ -880,13 +964,16 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
880
964
|
localVarQueryParameter = {};
|
|
881
965
|
// authentication bearer required
|
|
882
966
|
// http bearer authentication required
|
|
883
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
967
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
968
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
969
|
+
];
|
|
884
970
|
case 1:
|
|
885
971
|
// authentication bearer required
|
|
886
972
|
// http bearer authentication required
|
|
887
973
|
_a.sent();
|
|
888
|
-
|
|
889
|
-
|
|
974
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
975
|
+
if (authorizationValue) {
|
|
976
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
890
977
|
}
|
|
891
978
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
892
979
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -913,7 +1000,7 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
913
1000
|
patchStatus: function (code, patchStatusRequestDto, authorization, options) {
|
|
914
1001
|
if (options === void 0) { options = {}; }
|
|
915
1002
|
return __awaiter(_this, void 0, void 0, function () {
|
|
916
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1003
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
917
1004
|
return __generator(this, function (_a) {
|
|
918
1005
|
switch (_a.label) {
|
|
919
1006
|
case 0:
|
|
@@ -933,13 +1020,16 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
933
1020
|
localVarQueryParameter = {};
|
|
934
1021
|
// authentication bearer required
|
|
935
1022
|
// http bearer authentication required
|
|
936
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
1023
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
1024
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
1025
|
+
];
|
|
937
1026
|
case 1:
|
|
938
1027
|
// authentication bearer required
|
|
939
1028
|
// http bearer authentication required
|
|
940
1029
|
_a.sent();
|
|
941
|
-
|
|
942
|
-
|
|
1030
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
1031
|
+
if (authorizationValue) {
|
|
1032
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
943
1033
|
}
|
|
944
1034
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
945
1035
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -966,7 +1056,7 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
966
1056
|
patchTask: function (code, patchTaskRequestDto, authorization, options) {
|
|
967
1057
|
if (options === void 0) { options = {}; }
|
|
968
1058
|
return __awaiter(_this, void 0, void 0, function () {
|
|
969
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1059
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
970
1060
|
return __generator(this, function (_a) {
|
|
971
1061
|
switch (_a.label) {
|
|
972
1062
|
case 0:
|
|
@@ -986,13 +1076,16 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
986
1076
|
localVarQueryParameter = {};
|
|
987
1077
|
// authentication bearer required
|
|
988
1078
|
// http bearer authentication required
|
|
989
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
1079
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
1080
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
1081
|
+
];
|
|
990
1082
|
case 1:
|
|
991
1083
|
// authentication bearer required
|
|
992
1084
|
// http bearer authentication required
|
|
993
1085
|
_a.sent();
|
|
994
|
-
|
|
995
|
-
|
|
1086
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
1087
|
+
if (authorizationValue) {
|
|
1088
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
996
1089
|
}
|
|
997
1090
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
998
1091
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -1007,6 +1100,65 @@ var TaskClientApiAxiosParamCreator = function (configuration) {
|
|
|
1007
1100
|
});
|
|
1008
1101
|
});
|
|
1009
1102
|
},
|
|
1103
|
+
/**
|
|
1104
|
+
* Removes a secondary link between a task and a record in another service. The task and the record are kept. Removing a link that does not exist returns the task unchanged. **Required Permissions** \"task-management.tasks.update\"
|
|
1105
|
+
* @summary Delete the task secondary link
|
|
1106
|
+
* @param {string} code
|
|
1107
|
+
* @param {string} linkType
|
|
1108
|
+
* @param {string} linkCode
|
|
1109
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1110
|
+
* @param {*} [options] Override http request option.
|
|
1111
|
+
* @throws {RequiredError}
|
|
1112
|
+
*/
|
|
1113
|
+
removeSecondaryLink: function (code, linkType, linkCode, authorization, options) {
|
|
1114
|
+
if (options === void 0) { options = {}; }
|
|
1115
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
1116
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
1117
|
+
return __generator(this, function (_a) {
|
|
1118
|
+
switch (_a.label) {
|
|
1119
|
+
case 0:
|
|
1120
|
+
// verify required parameter 'code' is not null or undefined
|
|
1121
|
+
(0, common_1.assertParamExists)('removeSecondaryLink', 'code', code);
|
|
1122
|
+
// verify required parameter 'linkType' is not null or undefined
|
|
1123
|
+
(0, common_1.assertParamExists)('removeSecondaryLink', 'linkType', linkType);
|
|
1124
|
+
// verify required parameter 'linkCode' is not null or undefined
|
|
1125
|
+
(0, common_1.assertParamExists)('removeSecondaryLink', 'linkCode', linkCode);
|
|
1126
|
+
localVarPath = "/taskservice/v1/tasks/{code}/secondary-links/{linkType}/{linkCode}"
|
|
1127
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)))
|
|
1128
|
+
.replace("{".concat("linkType", "}"), encodeURIComponent(String(linkType)))
|
|
1129
|
+
.replace("{".concat("linkCode", "}"), encodeURIComponent(String(linkCode)));
|
|
1130
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1131
|
+
if (configuration) {
|
|
1132
|
+
baseOptions = configuration.baseOptions;
|
|
1133
|
+
baseAccessToken = configuration.accessToken;
|
|
1134
|
+
}
|
|
1135
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
1136
|
+
localVarHeaderParameter = {};
|
|
1137
|
+
localVarQueryParameter = {};
|
|
1138
|
+
// authentication bearer required
|
|
1139
|
+
// http bearer authentication required
|
|
1140
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
1141
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
1142
|
+
];
|
|
1143
|
+
case 1:
|
|
1144
|
+
// authentication bearer required
|
|
1145
|
+
// http bearer authentication required
|
|
1146
|
+
_a.sent();
|
|
1147
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
1148
|
+
if (authorizationValue) {
|
|
1149
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
1150
|
+
}
|
|
1151
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1152
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1153
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1154
|
+
return [2 /*return*/, {
|
|
1155
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1156
|
+
options: localVarRequestOptions,
|
|
1157
|
+
}];
|
|
1158
|
+
}
|
|
1159
|
+
});
|
|
1160
|
+
});
|
|
1161
|
+
},
|
|
1010
1162
|
};
|
|
1011
1163
|
};
|
|
1012
1164
|
exports.TaskClientApiAxiosParamCreator = TaskClientApiAxiosParamCreator;
|
|
@@ -1017,6 +1169,28 @@ exports.TaskClientApiAxiosParamCreator = TaskClientApiAxiosParamCreator;
|
|
|
1017
1169
|
var TaskClientApiFp = function (configuration) {
|
|
1018
1170
|
var localVarAxiosParamCreator = (0, exports.TaskClientApiAxiosParamCreator)(configuration);
|
|
1019
1171
|
return {
|
|
1172
|
+
/**
|
|
1173
|
+
* Adds a secondary link from a task to a record in another service, for example an email thread. The record must exist. Adding a record that is already linked returns the task unchanged. **Required Permissions** \"task-management.tasks.update\"
|
|
1174
|
+
* @summary Create the task secondary link
|
|
1175
|
+
* @param {string} code
|
|
1176
|
+
* @param {EntityRefDto} entityRefDto
|
|
1177
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1178
|
+
* @param {*} [options] Override http request option.
|
|
1179
|
+
* @throws {RequiredError}
|
|
1180
|
+
*/
|
|
1181
|
+
addSecondaryLink: function (code, entityRefDto, authorization, options) {
|
|
1182
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1183
|
+
var localVarAxiosArgs;
|
|
1184
|
+
return __generator(this, function (_a) {
|
|
1185
|
+
switch (_a.label) {
|
|
1186
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.addSecondaryLink(code, entityRefDto, authorization, options)];
|
|
1187
|
+
case 1:
|
|
1188
|
+
localVarAxiosArgs = _a.sent();
|
|
1189
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1190
|
+
}
|
|
1191
|
+
});
|
|
1192
|
+
});
|
|
1193
|
+
},
|
|
1020
1194
|
/**
|
|
1021
1195
|
* This will create a category. **Required Permissions** \"task-management.tasks.create\"
|
|
1022
1196
|
* @summary Create the category
|
|
@@ -1309,11 +1483,11 @@ var TaskClientApiFp = function (configuration) {
|
|
|
1309
1483
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1310
1484
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1311
1485
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
1312
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
1486
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug, secondaryLinks.type, secondaryLinks.code</i>
|
|
1313
1487
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: subject, description</i>
|
|
1314
1488
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, assignee, reporter, dueDate, entityType, entityCode, status, priority</i>
|
|
1315
1489
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: categories, status<i>
|
|
1316
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
1490
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug, secondaryLinks.type, secondaryLinks.code</i>
|
|
1317
1491
|
* @param {*} [options] Override http request option.
|
|
1318
1492
|
* @throws {RequiredError}
|
|
1319
1493
|
*/
|
|
@@ -1396,6 +1570,29 @@ var TaskClientApiFp = function (configuration) {
|
|
|
1396
1570
|
});
|
|
1397
1571
|
});
|
|
1398
1572
|
},
|
|
1573
|
+
/**
|
|
1574
|
+
* Removes a secondary link between a task and a record in another service. The task and the record are kept. Removing a link that does not exist returns the task unchanged. **Required Permissions** \"task-management.tasks.update\"
|
|
1575
|
+
* @summary Delete the task secondary link
|
|
1576
|
+
* @param {string} code
|
|
1577
|
+
* @param {string} linkType
|
|
1578
|
+
* @param {string} linkCode
|
|
1579
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1580
|
+
* @param {*} [options] Override http request option.
|
|
1581
|
+
* @throws {RequiredError}
|
|
1582
|
+
*/
|
|
1583
|
+
removeSecondaryLink: function (code, linkType, linkCode, authorization, options) {
|
|
1584
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1585
|
+
var localVarAxiosArgs;
|
|
1586
|
+
return __generator(this, function (_a) {
|
|
1587
|
+
switch (_a.label) {
|
|
1588
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeSecondaryLink(code, linkType, linkCode, authorization, options)];
|
|
1589
|
+
case 1:
|
|
1590
|
+
localVarAxiosArgs = _a.sent();
|
|
1591
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1592
|
+
}
|
|
1593
|
+
});
|
|
1594
|
+
});
|
|
1595
|
+
},
|
|
1399
1596
|
};
|
|
1400
1597
|
};
|
|
1401
1598
|
exports.TaskClientApiFp = TaskClientApiFp;
|
|
@@ -1406,6 +1603,18 @@ exports.TaskClientApiFp = TaskClientApiFp;
|
|
|
1406
1603
|
var TaskClientApiFactory = function (configuration, basePath, axios) {
|
|
1407
1604
|
var localVarFp = (0, exports.TaskClientApiFp)(configuration);
|
|
1408
1605
|
return {
|
|
1606
|
+
/**
|
|
1607
|
+
* Adds a secondary link from a task to a record in another service, for example an email thread. The record must exist. Adding a record that is already linked returns the task unchanged. **Required Permissions** \"task-management.tasks.update\"
|
|
1608
|
+
* @summary Create the task secondary link
|
|
1609
|
+
* @param {string} code
|
|
1610
|
+
* @param {EntityRefDto} entityRefDto
|
|
1611
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1612
|
+
* @param {*} [options] Override http request option.
|
|
1613
|
+
* @throws {RequiredError}
|
|
1614
|
+
*/
|
|
1615
|
+
addSecondaryLink: function (code, entityRefDto, authorization, options) {
|
|
1616
|
+
return localVarFp.addSecondaryLink(code, entityRefDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1617
|
+
},
|
|
1409
1618
|
/**
|
|
1410
1619
|
* This will create a category. **Required Permissions** \"task-management.tasks.create\"
|
|
1411
1620
|
* @summary Create the category
|
|
@@ -1568,11 +1777,11 @@ var TaskClientApiFactory = function (configuration, basePath, axios) {
|
|
|
1568
1777
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1569
1778
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1570
1779
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
1571
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
1780
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug, secondaryLinks.type, secondaryLinks.code</i>
|
|
1572
1781
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: subject, description</i>
|
|
1573
1782
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, assignee, reporter, dueDate, entityType, entityCode, status, priority</i>
|
|
1574
1783
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: categories, status<i>
|
|
1575
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug</i>
|
|
1784
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, statusId, priority, assignee, reporter, entityType, entityCode, entityNumber, userGroupCode, dueDate, createdAt, updatedAt, status.slug, categories.slug, secondaryLinks.type, secondaryLinks.code</i>
|
|
1576
1785
|
* @param {*} [options] Override http request option.
|
|
1577
1786
|
* @throws {RequiredError}
|
|
1578
1787
|
*/
|
|
@@ -1615,6 +1824,19 @@ var TaskClientApiFactory = function (configuration, basePath, axios) {
|
|
|
1615
1824
|
patchTask: function (code, patchTaskRequestDto, authorization, options) {
|
|
1616
1825
|
return localVarFp.patchTask(code, patchTaskRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1617
1826
|
},
|
|
1827
|
+
/**
|
|
1828
|
+
* Removes a secondary link between a task and a record in another service. The task and the record are kept. Removing a link that does not exist returns the task unchanged. **Required Permissions** \"task-management.tasks.update\"
|
|
1829
|
+
* @summary Delete the task secondary link
|
|
1830
|
+
* @param {string} code
|
|
1831
|
+
* @param {string} linkType
|
|
1832
|
+
* @param {string} linkCode
|
|
1833
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1834
|
+
* @param {*} [options] Override http request option.
|
|
1835
|
+
* @throws {RequiredError}
|
|
1836
|
+
*/
|
|
1837
|
+
removeSecondaryLink: function (code, linkType, linkCode, authorization, options) {
|
|
1838
|
+
return localVarFp.removeSecondaryLink(code, linkType, linkCode, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1839
|
+
},
|
|
1618
1840
|
};
|
|
1619
1841
|
};
|
|
1620
1842
|
exports.TaskClientApiFactory = TaskClientApiFactory;
|
|
@@ -1629,6 +1851,18 @@ var TaskClientApi = /** @class */ (function (_super) {
|
|
|
1629
1851
|
function TaskClientApi() {
|
|
1630
1852
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1631
1853
|
}
|
|
1854
|
+
/**
|
|
1855
|
+
* Adds a secondary link from a task to a record in another service, for example an email thread. The record must exist. Adding a record that is already linked returns the task unchanged. **Required Permissions** \"task-management.tasks.update\"
|
|
1856
|
+
* @summary Create the task secondary link
|
|
1857
|
+
* @param {TaskClientApiAddSecondaryLinkRequest} requestParameters Request parameters.
|
|
1858
|
+
* @param {*} [options] Override http request option.
|
|
1859
|
+
* @throws {RequiredError}
|
|
1860
|
+
* @memberof TaskClientApi
|
|
1861
|
+
*/
|
|
1862
|
+
TaskClientApi.prototype.addSecondaryLink = function (requestParameters, options) {
|
|
1863
|
+
var _this = this;
|
|
1864
|
+
return (0, exports.TaskClientApiFp)(this.configuration).addSecondaryLink(requestParameters.code, requestParameters.entityRefDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1865
|
+
};
|
|
1632
1866
|
/**
|
|
1633
1867
|
* This will create a category. **Required Permissions** \"task-management.tasks.create\"
|
|
1634
1868
|
* @summary Create the category
|
|
@@ -1837,6 +2071,18 @@ var TaskClientApi = /** @class */ (function (_super) {
|
|
|
1837
2071
|
var _this = this;
|
|
1838
2072
|
return (0, exports.TaskClientApiFp)(this.configuration).patchTask(requestParameters.code, requestParameters.patchTaskRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1839
2073
|
};
|
|
2074
|
+
/**
|
|
2075
|
+
* Removes a secondary link between a task and a record in another service. The task and the record are kept. Removing a link that does not exist returns the task unchanged. **Required Permissions** \"task-management.tasks.update\"
|
|
2076
|
+
* @summary Delete the task secondary link
|
|
2077
|
+
* @param {TaskClientApiRemoveSecondaryLinkRequest} requestParameters Request parameters.
|
|
2078
|
+
* @param {*} [options] Override http request option.
|
|
2079
|
+
* @throws {RequiredError}
|
|
2080
|
+
* @memberof TaskClientApi
|
|
2081
|
+
*/
|
|
2082
|
+
TaskClientApi.prototype.removeSecondaryLink = function (requestParameters, options) {
|
|
2083
|
+
var _this = this;
|
|
2084
|
+
return (0, exports.TaskClientApiFp)(this.configuration).removeSecondaryLink(requestParameters.code, requestParameters.linkType, requestParameters.linkCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2085
|
+
};
|
|
1840
2086
|
return TaskClientApi;
|
|
1841
2087
|
}(base_1.BaseAPI));
|
|
1842
2088
|
exports.TaskClientApi = TaskClientApi;
|