@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.
Files changed (55) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +2 -2
  3. package/api/assignees-api.ts +4 -2
  4. package/api/categories-api.ts +20 -10
  5. package/api/filters-api.ts +153 -34
  6. package/api/hub-spot-api.ts +4 -2
  7. package/api/reminders-api.ts +28 -14
  8. package/api/statuses-api.ts +20 -10
  9. package/api/task-client-api.ts +329 -42
  10. package/api/tasks-api.ts +281 -18
  11. package/dist/api/assignees-api.js +4 -3
  12. package/dist/api/categories-api.js +29 -18
  13. package/dist/api/filters-api.d.ts +81 -24
  14. package/dist/api/filters-api.js +147 -38
  15. package/dist/api/hub-spot-api.js +7 -4
  16. package/dist/api/reminders-api.js +40 -25
  17. package/dist/api/statuses-api.js +29 -18
  18. package/dist/api/task-client-api.d.ts +148 -8
  19. package/dist/api/task-client-api.js +313 -67
  20. package/dist/api/tasks-api.d.ts +148 -8
  21. package/dist/api/tasks-api.js +244 -24
  22. package/dist/models/add-secondary-link-response-class.d.ts +25 -0
  23. package/dist/models/add-secondary-link-response-class.js +15 -0
  24. package/dist/models/create-task-request-dto.d.ts +13 -0
  25. package/dist/models/dry-run-filter-clause-class.d.ts +42 -0
  26. package/dist/models/dry-run-filter-clause-class.js +15 -0
  27. package/dist/models/dry-run-filter-request-dto.d.ts +30 -0
  28. package/dist/models/dry-run-filter-request-dto.js +15 -0
  29. package/dist/models/dry-run-filter-response-class.d.ts +37 -0
  30. package/dist/models/dry-run-filter-response-class.js +15 -0
  31. package/dist/models/entity-ref-class.d.ts +34 -0
  32. package/dist/models/entity-ref-class.js +19 -0
  33. package/dist/models/entity-ref-dto.d.ts +34 -0
  34. package/dist/models/entity-ref-dto.js +19 -0
  35. package/dist/models/index.d.ts +8 -0
  36. package/dist/models/index.js +8 -0
  37. package/dist/models/patch-task-request-dto.d.ts +12 -0
  38. package/dist/models/remove-secondary-link-response-class.d.ts +25 -0
  39. package/dist/models/remove-secondary-link-response-class.js +15 -0
  40. package/dist/models/secondary-link-class.d.ts +31 -0
  41. package/dist/models/secondary-link-class.js +15 -0
  42. package/dist/models/task-class.d.ts +7 -0
  43. package/models/add-secondary-link-response-class.ts +31 -0
  44. package/models/create-task-request-dto.ts +13 -0
  45. package/models/dry-run-filter-clause-class.ts +48 -0
  46. package/models/dry-run-filter-request-dto.ts +36 -0
  47. package/models/dry-run-filter-response-class.ts +43 -0
  48. package/models/entity-ref-class.ts +43 -0
  49. package/models/entity-ref-dto.ts +43 -0
  50. package/models/index.ts +8 -0
  51. package/models/patch-task-request-dto.ts +12 -0
  52. package/models/remove-secondary-link-response-class.ts +31 -0
  53. package/models/secondary-link-class.ts +37 -0
  54. package/models/task-class.ts +7 -0
  55. package/package.json +1 -1
@@ -96,6 +96,62 @@ var FormData = require('form-data');
96
96
  var TasksApiAxiosParamCreator = 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 task. **Required Permissions** \"task-management.tasks.create\"
101
157
  * @summary Create the task
@@ -107,7 +163,7 @@ var TasksApiAxiosParamCreator = function (configuration) {
107
163
  createTask: function (createTaskRequestDto, 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 TasksApiAxiosParamCreator = 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
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
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 TasksApiAxiosParamCreator = function (configuration) {
156
215
  deleteTask: function (code, 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:
@@ -174,13 +233,16 @@ var TasksApiAxiosParamCreator = function (configuration) {
174
233
  localVarQueryParameter = {};
175
234
  // authentication bearer required
176
235
  // http bearer authentication required
177
- 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
+ ];
178
239
  case 1:
179
240
  // authentication bearer required
180
241
  // http bearer authentication required
181
242
  _a.sent();
182
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
243
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
244
+ if (authorizationValue) {
245
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
184
246
  }
185
247
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
186
248
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -205,7 +267,7 @@ var TasksApiAxiosParamCreator = function (configuration) {
205
267
  getTask: function (code, authorization, expand, 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:
@@ -231,8 +293,9 @@ var TasksApiAxiosParamCreator = function (configuration) {
231
293
  if (expand !== undefined) {
232
294
  localVarQueryParameter['expand'] = expand;
233
295
  }
234
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
235
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
296
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
297
+ if (authorizationValue) {
298
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
236
299
  }
237
300
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
238
301
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -251,18 +314,18 @@ var TasksApiAxiosParamCreator = function (configuration) {
251
314
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
252
315
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
253
316
  * @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.
254
- * @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>
317
+ * @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>
255
318
  * @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>
256
319
  * @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>
257
320
  * @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>
258
- * @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>
321
+ * @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>
259
322
  * @param {*} [options] Override http request option.
260
323
  * @throws {RequiredError}
261
324
  */
262
325
  listTasks: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
263
326
  if (options === void 0) { options = {}; }
264
327
  return __awaiter(_this, void 0, void 0, function () {
265
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
328
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
266
329
  return __generator(this, function (_a) {
267
330
  switch (_a.label) {
268
331
  case 0:
@@ -303,8 +366,9 @@ var TasksApiAxiosParamCreator = function (configuration) {
303
366
  if (filters !== undefined) {
304
367
  localVarQueryParameter['filters'] = filters;
305
368
  }
306
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
307
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
369
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
370
+ if (authorizationValue) {
371
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
308
372
  }
309
373
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
310
374
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -329,7 +393,7 @@ var TasksApiAxiosParamCreator = function (configuration) {
329
393
  patchTask: function (code, patchTaskRequestDto, authorization, options) {
330
394
  if (options === void 0) { options = {}; }
331
395
  return __awaiter(_this, void 0, void 0, function () {
332
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
396
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
333
397
  return __generator(this, function (_a) {
334
398
  switch (_a.label) {
335
399
  case 0:
@@ -349,13 +413,16 @@ var TasksApiAxiosParamCreator = function (configuration) {
349
413
  localVarQueryParameter = {};
350
414
  // authentication bearer required
351
415
  // http bearer authentication required
352
- 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
+ ];
353
419
  case 1:
354
420
  // authentication bearer required
355
421
  // http bearer authentication required
356
422
  _a.sent();
357
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
358
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
423
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
424
+ if (authorizationValue) {
425
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
359
426
  }
360
427
  localVarHeaderParameter['Content-Type'] = 'application/json';
361
428
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -370,6 +437,65 @@ var TasksApiAxiosParamCreator = function (configuration) {
370
437
  });
371
438
  });
372
439
  },
440
+ /**
441
+ * 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\"
442
+ * @summary Delete the task secondary link
443
+ * @param {string} code
444
+ * @param {string} linkType
445
+ * @param {string} linkCode
446
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
447
+ * @param {*} [options] Override http request option.
448
+ * @throws {RequiredError}
449
+ */
450
+ removeSecondaryLink: function (code, linkType, linkCode, authorization, options) {
451
+ if (options === void 0) { options = {}; }
452
+ return __awaiter(_this, void 0, void 0, function () {
453
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
454
+ return __generator(this, function (_a) {
455
+ switch (_a.label) {
456
+ case 0:
457
+ // verify required parameter 'code' is not null or undefined
458
+ (0, common_1.assertParamExists)('removeSecondaryLink', 'code', code);
459
+ // verify required parameter 'linkType' is not null or undefined
460
+ (0, common_1.assertParamExists)('removeSecondaryLink', 'linkType', linkType);
461
+ // verify required parameter 'linkCode' is not null or undefined
462
+ (0, common_1.assertParamExists)('removeSecondaryLink', 'linkCode', linkCode);
463
+ localVarPath = "/taskservice/v1/tasks/{code}/secondary-links/{linkType}/{linkCode}"
464
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)))
465
+ .replace("{".concat("linkType", "}"), encodeURIComponent(String(linkType)))
466
+ .replace("{".concat("linkCode", "}"), encodeURIComponent(String(linkCode)));
467
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
468
+ if (configuration) {
469
+ baseOptions = configuration.baseOptions;
470
+ baseAccessToken = configuration.accessToken;
471
+ }
472
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
473
+ localVarHeaderParameter = {};
474
+ localVarQueryParameter = {};
475
+ // authentication bearer required
476
+ // http bearer authentication required
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
+ ];
480
+ case 1:
481
+ // authentication bearer required
482
+ // http bearer authentication required
483
+ _a.sent();
484
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
485
+ if (authorizationValue) {
486
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
487
+ }
488
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
489
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
490
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
491
+ return [2 /*return*/, {
492
+ url: (0, common_1.toPathString)(localVarUrlObj),
493
+ options: localVarRequestOptions,
494
+ }];
495
+ }
496
+ });
497
+ });
498
+ },
373
499
  };
374
500
  };
375
501
  exports.TasksApiAxiosParamCreator = TasksApiAxiosParamCreator;
@@ -380,6 +506,28 @@ exports.TasksApiAxiosParamCreator = TasksApiAxiosParamCreator;
380
506
  var TasksApiFp = function (configuration) {
381
507
  var localVarAxiosParamCreator = (0, exports.TasksApiAxiosParamCreator)(configuration);
382
508
  return {
509
+ /**
510
+ * 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\"
511
+ * @summary Create the task secondary link
512
+ * @param {string} code
513
+ * @param {EntityRefDto} entityRefDto
514
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
515
+ * @param {*} [options] Override http request option.
516
+ * @throws {RequiredError}
517
+ */
518
+ addSecondaryLink: function (code, entityRefDto, authorization, options) {
519
+ return __awaiter(this, void 0, void 0, function () {
520
+ var localVarAxiosArgs;
521
+ return __generator(this, function (_a) {
522
+ switch (_a.label) {
523
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.addSecondaryLink(code, entityRefDto, authorization, options)];
524
+ case 1:
525
+ localVarAxiosArgs = _a.sent();
526
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
527
+ }
528
+ });
529
+ });
530
+ },
383
531
  /**
384
532
  * This will create a task. **Required Permissions** \"task-management.tasks.create\"
385
533
  * @summary Create the task
@@ -450,11 +598,11 @@ var TasksApiFp = function (configuration) {
450
598
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
451
599
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
452
600
  * @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.
453
- * @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>
601
+ * @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>
454
602
  * @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>
455
603
  * @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>
456
604
  * @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>
457
- * @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>
605
+ * @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>
458
606
  * @param {*} [options] Override http request option.
459
607
  * @throws {RequiredError}
460
608
  */
@@ -493,6 +641,29 @@ var TasksApiFp = function (configuration) {
493
641
  });
494
642
  });
495
643
  },
644
+ /**
645
+ * 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\"
646
+ * @summary Delete the task secondary link
647
+ * @param {string} code
648
+ * @param {string} linkType
649
+ * @param {string} linkCode
650
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
651
+ * @param {*} [options] Override http request option.
652
+ * @throws {RequiredError}
653
+ */
654
+ removeSecondaryLink: function (code, linkType, linkCode, authorization, options) {
655
+ return __awaiter(this, void 0, void 0, function () {
656
+ var localVarAxiosArgs;
657
+ return __generator(this, function (_a) {
658
+ switch (_a.label) {
659
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeSecondaryLink(code, linkType, linkCode, authorization, options)];
660
+ case 1:
661
+ localVarAxiosArgs = _a.sent();
662
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
663
+ }
664
+ });
665
+ });
666
+ },
496
667
  };
497
668
  };
498
669
  exports.TasksApiFp = TasksApiFp;
@@ -503,6 +674,18 @@ exports.TasksApiFp = TasksApiFp;
503
674
  var TasksApiFactory = function (configuration, basePath, axios) {
504
675
  var localVarFp = (0, exports.TasksApiFp)(configuration);
505
676
  return {
677
+ /**
678
+ * 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\"
679
+ * @summary Create the task secondary link
680
+ * @param {string} code
681
+ * @param {EntityRefDto} entityRefDto
682
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
683
+ * @param {*} [options] Override http request option.
684
+ * @throws {RequiredError}
685
+ */
686
+ addSecondaryLink: function (code, entityRefDto, authorization, options) {
687
+ return localVarFp.addSecondaryLink(code, entityRefDto, authorization, options).then(function (request) { return request(axios, basePath); });
688
+ },
506
689
  /**
507
690
  * This will create a task. **Required Permissions** \"task-management.tasks.create\"
508
691
  * @summary Create the task
@@ -543,11 +726,11 @@ var TasksApiFactory = function (configuration, basePath, axios) {
543
726
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
544
727
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
545
728
  * @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.
546
- * @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>
729
+ * @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>
547
730
  * @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>
548
731
  * @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>
549
732
  * @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>
550
- * @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>
733
+ * @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>
551
734
  * @param {*} [options] Override http request option.
552
735
  * @throws {RequiredError}
553
736
  */
@@ -566,6 +749,19 @@ var TasksApiFactory = function (configuration, basePath, axios) {
566
749
  patchTask: function (code, patchTaskRequestDto, authorization, options) {
567
750
  return localVarFp.patchTask(code, patchTaskRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
568
751
  },
752
+ /**
753
+ * 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\"
754
+ * @summary Delete the task secondary link
755
+ * @param {string} code
756
+ * @param {string} linkType
757
+ * @param {string} linkCode
758
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
759
+ * @param {*} [options] Override http request option.
760
+ * @throws {RequiredError}
761
+ */
762
+ removeSecondaryLink: function (code, linkType, linkCode, authorization, options) {
763
+ return localVarFp.removeSecondaryLink(code, linkType, linkCode, authorization, options).then(function (request) { return request(axios, basePath); });
764
+ },
569
765
  };
570
766
  };
571
767
  exports.TasksApiFactory = TasksApiFactory;
@@ -580,6 +776,18 @@ var TasksApi = /** @class */ (function (_super) {
580
776
  function TasksApi() {
581
777
  return _super !== null && _super.apply(this, arguments) || this;
582
778
  }
779
+ /**
780
+ * 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\"
781
+ * @summary Create the task secondary link
782
+ * @param {TasksApiAddSecondaryLinkRequest} requestParameters Request parameters.
783
+ * @param {*} [options] Override http request option.
784
+ * @throws {RequiredError}
785
+ * @memberof TasksApi
786
+ */
787
+ TasksApi.prototype.addSecondaryLink = function (requestParameters, options) {
788
+ var _this = this;
789
+ return (0, exports.TasksApiFp)(this.configuration).addSecondaryLink(requestParameters.code, requestParameters.entityRefDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
790
+ };
583
791
  /**
584
792
  * This will create a task. **Required Permissions** \"task-management.tasks.create\"
585
793
  * @summary Create the task
@@ -641,6 +849,18 @@ var TasksApi = /** @class */ (function (_super) {
641
849
  var _this = this;
642
850
  return (0, exports.TasksApiFp)(this.configuration).patchTask(requestParameters.code, requestParameters.patchTaskRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
643
851
  };
852
+ /**
853
+ * 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\"
854
+ * @summary Delete the task secondary link
855
+ * @param {TasksApiRemoveSecondaryLinkRequest} requestParameters Request parameters.
856
+ * @param {*} [options] Override http request option.
857
+ * @throws {RequiredError}
858
+ * @memberof TasksApi
859
+ */
860
+ TasksApi.prototype.removeSecondaryLink = function (requestParameters, options) {
861
+ var _this = this;
862
+ return (0, exports.TasksApiFp)(this.configuration).removeSecondaryLink(requestParameters.code, requestParameters.linkType, requestParameters.linkCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
863
+ };
644
864
  return TasksApi;
645
865
  }(base_1.BaseAPI));
646
866
  exports.TasksApi = TasksApi;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * EMIL TaskService
3
+ * The EMIL Task API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { TaskClass } from './task-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AddSecondaryLinkResponseClass
17
+ */
18
+ export interface AddSecondaryLinkResponseClass {
19
+ /**
20
+ * task
21
+ * @type {TaskClass}
22
+ * @memberof AddSecondaryLinkResponseClass
23
+ */
24
+ 'task'?: TaskClass;
25
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL TaskService
6
+ * The EMIL Task API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { EntityRefDto } from './entity-ref-dto';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -75,6 +76,18 @@ export interface CreateTaskRequestDto {
75
76
  * @memberof CreateTaskRequestDto
76
77
  */
77
78
  'entityCode'?: string;
79
+ /**
80
+ * Assign the task directly to a user-group. If omitted, routing filters decide the group.
81
+ * @type {string}
82
+ * @memberof CreateTaskRequestDto
83
+ */
84
+ 'userGroupCode'?: string;
85
+ /**
86
+ * Secondary links to add on create, for example email threads. At most 100. Each record must exist; if any is missing or invalid, no task is created.
87
+ * @type {Array<EntityRefDto>}
88
+ * @memberof CreateTaskRequestDto
89
+ */
90
+ 'secondaryLinks'?: Array<EntityRefDto>;
78
91
  }
79
92
  export declare const CreateTaskRequestDtoPriorityEnum: {
80
93
  readonly Low: "LOW";
@@ -0,0 +1,42 @@
1
+ /**
2
+ * EMIL TaskService
3
+ * The EMIL Task API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface DryRunFilterClauseClass
16
+ */
17
+ export interface DryRunFilterClauseClass {
18
+ /**
19
+ * Textual fragment of the expression.
20
+ * @type {string}
21
+ * @memberof DryRunFilterClauseClass
22
+ */
23
+ 'clause': string;
24
+ /**
25
+ * Whether this clause matched.
26
+ * @type {boolean}
27
+ * @memberof DryRunFilterClauseClass
28
+ */
29
+ 'matched': boolean;
30
+ /**
31
+ * Actual value of the field side at evaluation time.
32
+ * @type {string}
33
+ * @memberof DryRunFilterClauseClass
34
+ */
35
+ 'resolvedValue'?: string;
36
+ /**
37
+ * Clause-specific error (e.g. did not evaluate to a boolean).
38
+ * @type {string}
39
+ * @memberof DryRunFilterClauseClass
40
+ */
41
+ 'error'?: string;
42
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL TaskService
6
+ * The EMIL Task API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,30 @@
1
+ /**
2
+ * EMIL TaskService
3
+ * The EMIL Task API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface DryRunFilterRequestDto
16
+ */
17
+ export interface DryRunFilterRequestDto {
18
+ /**
19
+ * FEEL expression to test against the task.
20
+ * @type {string}
21
+ * @memberof DryRunFilterRequestDto
22
+ */
23
+ 'expression': string;
24
+ /**
25
+ * Code of the task to evaluate the expression against.
26
+ * @type {string}
27
+ * @memberof DryRunFilterRequestDto
28
+ */
29
+ 'taskCode': string;
30
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL TaskService
6
+ * The EMIL Task API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });