@emilgroup/task-sdk-node 1.7.1-beta.3 → 1.7.1-beta.31

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 (45) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +2 -2
  3. package/api/filters-api.ts +131 -24
  4. package/api/task-client-api.ts +257 -8
  5. package/api/tasks-api.ts +257 -8
  6. package/dist/api/filters-api.d.ts +81 -24
  7. package/dist/api/filters-api.js +112 -19
  8. package/dist/api/task-client-api.d.ts +148 -8
  9. package/dist/api/task-client-api.js +209 -6
  10. package/dist/api/tasks-api.d.ts +148 -8
  11. package/dist/api/tasks-api.js +209 -6
  12. package/dist/models/add-secondary-link-response-class.d.ts +25 -0
  13. package/dist/models/add-secondary-link-response-class.js +15 -0
  14. package/dist/models/create-task-request-dto.d.ts +13 -0
  15. package/dist/models/dry-run-filter-clause-class.d.ts +42 -0
  16. package/dist/models/dry-run-filter-clause-class.js +15 -0
  17. package/dist/models/dry-run-filter-request-dto.d.ts +30 -0
  18. package/dist/models/dry-run-filter-request-dto.js +15 -0
  19. package/dist/models/dry-run-filter-response-class.d.ts +37 -0
  20. package/dist/models/dry-run-filter-response-class.js +15 -0
  21. package/dist/models/entity-ref-class.d.ts +34 -0
  22. package/dist/models/entity-ref-class.js +19 -0
  23. package/dist/models/entity-ref-dto.d.ts +34 -0
  24. package/dist/models/entity-ref-dto.js +19 -0
  25. package/dist/models/index.d.ts +8 -0
  26. package/dist/models/index.js +8 -0
  27. package/dist/models/patch-task-request-dto.d.ts +12 -0
  28. package/dist/models/remove-secondary-link-response-class.d.ts +25 -0
  29. package/dist/models/remove-secondary-link-response-class.js +15 -0
  30. package/dist/models/secondary-link-class.d.ts +31 -0
  31. package/dist/models/secondary-link-class.js +15 -0
  32. package/dist/models/task-class.d.ts +7 -0
  33. package/models/add-secondary-link-response-class.ts +31 -0
  34. package/models/create-task-request-dto.ts +13 -0
  35. package/models/dry-run-filter-clause-class.ts +48 -0
  36. package/models/dry-run-filter-request-dto.ts +36 -0
  37. package/models/dry-run-filter-response-class.ts +43 -0
  38. package/models/entity-ref-class.ts +43 -0
  39. package/models/entity-ref-dto.ts +43 -0
  40. package/models/index.ts +8 -0
  41. package/models/patch-task-request-dto.ts +12 -0
  42. package/models/remove-secondary-link-response-class.ts +31 -0
  43. package/models/secondary-link-class.ts +37 -0
  44. package/models/task-class.ts +7 -0
  45. package/package.json +1 -1
@@ -96,6 +96,59 @@ 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, 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
+ case 1:
133
+ // authentication bearer required
134
+ // http bearer authentication required
135
+ _a.sent();
136
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
137
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
138
+ }
139
+ localVarHeaderParameter['Content-Type'] = 'application/json';
140
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
141
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
142
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
143
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(entityRefDto, localVarRequestOptions, configuration);
144
+ return [2 /*return*/, {
145
+ url: (0, common_1.toPathString)(localVarUrlObj),
146
+ options: localVarRequestOptions,
147
+ }];
148
+ }
149
+ });
150
+ });
151
+ },
99
152
  /**
100
153
  * This will create a task. **Required Permissions** \"task-management.tasks.create\"
101
154
  * @summary Create the task
@@ -251,11 +304,11 @@ var TasksApiAxiosParamCreator = function (configuration) {
251
304
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
252
305
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
253
306
  * @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>
307
+ * @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
308
  * @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
309
  * @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
310
  * @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>
311
+ * @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
312
  * @param {*} [options] Override http request option.
260
313
  * @throws {RequiredError}
261
314
  */
@@ -370,6 +423,62 @@ var TasksApiAxiosParamCreator = function (configuration) {
370
423
  });
371
424
  });
372
425
  },
426
+ /**
427
+ * 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\"
428
+ * @summary Delete the task secondary link
429
+ * @param {string} code
430
+ * @param {string} linkType
431
+ * @param {string} linkCode
432
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
433
+ * @param {*} [options] Override http request option.
434
+ * @throws {RequiredError}
435
+ */
436
+ removeSecondaryLink: function (code, linkType, linkCode, authorization, options) {
437
+ if (options === void 0) { options = {}; }
438
+ return __awaiter(_this, void 0, void 0, function () {
439
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
440
+ return __generator(this, function (_a) {
441
+ switch (_a.label) {
442
+ case 0:
443
+ // verify required parameter 'code' is not null or undefined
444
+ (0, common_1.assertParamExists)('removeSecondaryLink', 'code', code);
445
+ // verify required parameter 'linkType' is not null or undefined
446
+ (0, common_1.assertParamExists)('removeSecondaryLink', 'linkType', linkType);
447
+ // verify required parameter 'linkCode' is not null or undefined
448
+ (0, common_1.assertParamExists)('removeSecondaryLink', 'linkCode', linkCode);
449
+ localVarPath = "/taskservice/v1/tasks/{code}/secondary-links/{linkType}/{linkCode}"
450
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)))
451
+ .replace("{".concat("linkType", "}"), encodeURIComponent(String(linkType)))
452
+ .replace("{".concat("linkCode", "}"), encodeURIComponent(String(linkCode)));
453
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
454
+ if (configuration) {
455
+ baseOptions = configuration.baseOptions;
456
+ baseAccessToken = configuration.accessToken;
457
+ }
458
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
459
+ localVarHeaderParameter = {};
460
+ localVarQueryParameter = {};
461
+ // authentication bearer required
462
+ // http bearer authentication required
463
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
464
+ case 1:
465
+ // authentication bearer required
466
+ // http bearer authentication required
467
+ _a.sent();
468
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
469
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
470
+ }
471
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
472
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
473
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
474
+ return [2 /*return*/, {
475
+ url: (0, common_1.toPathString)(localVarUrlObj),
476
+ options: localVarRequestOptions,
477
+ }];
478
+ }
479
+ });
480
+ });
481
+ },
373
482
  };
374
483
  };
375
484
  exports.TasksApiAxiosParamCreator = TasksApiAxiosParamCreator;
@@ -380,6 +489,28 @@ exports.TasksApiAxiosParamCreator = TasksApiAxiosParamCreator;
380
489
  var TasksApiFp = function (configuration) {
381
490
  var localVarAxiosParamCreator = (0, exports.TasksApiAxiosParamCreator)(configuration);
382
491
  return {
492
+ /**
493
+ * 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\"
494
+ * @summary Create the task secondary link
495
+ * @param {string} code
496
+ * @param {EntityRefDto} entityRefDto
497
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
498
+ * @param {*} [options] Override http request option.
499
+ * @throws {RequiredError}
500
+ */
501
+ addSecondaryLink: function (code, entityRefDto, authorization, options) {
502
+ return __awaiter(this, void 0, void 0, function () {
503
+ var localVarAxiosArgs;
504
+ return __generator(this, function (_a) {
505
+ switch (_a.label) {
506
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.addSecondaryLink(code, entityRefDto, authorization, options)];
507
+ case 1:
508
+ localVarAxiosArgs = _a.sent();
509
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
510
+ }
511
+ });
512
+ });
513
+ },
383
514
  /**
384
515
  * This will create a task. **Required Permissions** \"task-management.tasks.create\"
385
516
  * @summary Create the task
@@ -450,11 +581,11 @@ var TasksApiFp = function (configuration) {
450
581
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
451
582
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
452
583
  * @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>
584
+ * @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
585
  * @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
586
  * @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
587
  * @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>
588
+ * @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
589
  * @param {*} [options] Override http request option.
459
590
  * @throws {RequiredError}
460
591
  */
@@ -493,6 +624,29 @@ var TasksApiFp = function (configuration) {
493
624
  });
494
625
  });
495
626
  },
627
+ /**
628
+ * 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\"
629
+ * @summary Delete the task secondary link
630
+ * @param {string} code
631
+ * @param {string} linkType
632
+ * @param {string} linkCode
633
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
634
+ * @param {*} [options] Override http request option.
635
+ * @throws {RequiredError}
636
+ */
637
+ removeSecondaryLink: function (code, linkType, linkCode, authorization, options) {
638
+ return __awaiter(this, void 0, void 0, function () {
639
+ var localVarAxiosArgs;
640
+ return __generator(this, function (_a) {
641
+ switch (_a.label) {
642
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.removeSecondaryLink(code, linkType, linkCode, authorization, options)];
643
+ case 1:
644
+ localVarAxiosArgs = _a.sent();
645
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
646
+ }
647
+ });
648
+ });
649
+ },
496
650
  };
497
651
  };
498
652
  exports.TasksApiFp = TasksApiFp;
@@ -503,6 +657,18 @@ exports.TasksApiFp = TasksApiFp;
503
657
  var TasksApiFactory = function (configuration, basePath, axios) {
504
658
  var localVarFp = (0, exports.TasksApiFp)(configuration);
505
659
  return {
660
+ /**
661
+ * 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\"
662
+ * @summary Create the task secondary link
663
+ * @param {string} code
664
+ * @param {EntityRefDto} entityRefDto
665
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
666
+ * @param {*} [options] Override http request option.
667
+ * @throws {RequiredError}
668
+ */
669
+ addSecondaryLink: function (code, entityRefDto, authorization, options) {
670
+ return localVarFp.addSecondaryLink(code, entityRefDto, authorization, options).then(function (request) { return request(axios, basePath); });
671
+ },
506
672
  /**
507
673
  * This will create a task. **Required Permissions** \"task-management.tasks.create\"
508
674
  * @summary Create the task
@@ -543,11 +709,11 @@ var TasksApiFactory = function (configuration, basePath, axios) {
543
709
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
544
710
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
545
711
  * @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>
712
+ * @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
713
  * @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
714
  * @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
715
  * @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>
716
+ * @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
717
  * @param {*} [options] Override http request option.
552
718
  * @throws {RequiredError}
553
719
  */
@@ -566,6 +732,19 @@ var TasksApiFactory = function (configuration, basePath, axios) {
566
732
  patchTask: function (code, patchTaskRequestDto, authorization, options) {
567
733
  return localVarFp.patchTask(code, patchTaskRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
568
734
  },
735
+ /**
736
+ * 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\"
737
+ * @summary Delete the task secondary link
738
+ * @param {string} code
739
+ * @param {string} linkType
740
+ * @param {string} linkCode
741
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
742
+ * @param {*} [options] Override http request option.
743
+ * @throws {RequiredError}
744
+ */
745
+ removeSecondaryLink: function (code, linkType, linkCode, authorization, options) {
746
+ return localVarFp.removeSecondaryLink(code, linkType, linkCode, authorization, options).then(function (request) { return request(axios, basePath); });
747
+ },
569
748
  };
570
749
  };
571
750
  exports.TasksApiFactory = TasksApiFactory;
@@ -580,6 +759,18 @@ var TasksApi = /** @class */ (function (_super) {
580
759
  function TasksApi() {
581
760
  return _super !== null && _super.apply(this, arguments) || this;
582
761
  }
762
+ /**
763
+ * 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\"
764
+ * @summary Create the task secondary link
765
+ * @param {TasksApiAddSecondaryLinkRequest} requestParameters Request parameters.
766
+ * @param {*} [options] Override http request option.
767
+ * @throws {RequiredError}
768
+ * @memberof TasksApi
769
+ */
770
+ TasksApi.prototype.addSecondaryLink = function (requestParameters, options) {
771
+ var _this = this;
772
+ return (0, exports.TasksApiFp)(this.configuration).addSecondaryLink(requestParameters.code, requestParameters.entityRefDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
773
+ };
583
774
  /**
584
775
  * This will create a task. **Required Permissions** \"task-management.tasks.create\"
585
776
  * @summary Create the task
@@ -641,6 +832,18 @@ var TasksApi = /** @class */ (function (_super) {
641
832
  var _this = this;
642
833
  return (0, exports.TasksApiFp)(this.configuration).patchTask(requestParameters.code, requestParameters.patchTaskRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
643
834
  };
835
+ /**
836
+ * 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\"
837
+ * @summary Delete the task secondary link
838
+ * @param {TasksApiRemoveSecondaryLinkRequest} requestParameters Request parameters.
839
+ * @param {*} [options] Override http request option.
840
+ * @throws {RequiredError}
841
+ * @memberof TasksApi
842
+ */
843
+ TasksApi.prototype.removeSecondaryLink = function (requestParameters, options) {
844
+ var _this = this;
845
+ 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); });
846
+ };
644
847
  return TasksApi;
645
848
  }(base_1.BaseAPI));
646
849
  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 });
@@ -0,0 +1,37 @@
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 { DryRunFilterClauseClass } from './dry-run-filter-clause-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface DryRunFilterResponseClass
17
+ */
18
+ export interface DryRunFilterResponseClass {
19
+ /**
20
+ * Whether the expression matched the task.
21
+ * @type {boolean}
22
+ * @memberof DryRunFilterResponseClass
23
+ */
24
+ 'matched': boolean;
25
+ /**
26
+ * Per top-level clause breakdown of the evaluation.
27
+ * @type {Array<DryRunFilterClauseClass>}
28
+ * @memberof DryRunFilterResponseClass
29
+ */
30
+ 'clauses': Array<DryRunFilterClauseClass>;
31
+ /**
32
+ * Error if the expression failed — invalid field, syntax, or evaluation.
33
+ * @type {string}
34
+ * @memberof DryRunFilterResponseClass
35
+ */
36
+ 'error'?: string;
37
+ }
@@ -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,34 @@
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 EntityRefClass
16
+ */
17
+ export interface EntityRefClass {
18
+ /**
19
+ * Type of the linked record.
20
+ * @type {string}
21
+ * @memberof EntityRefClass
22
+ */
23
+ 'type': EntityRefClassTypeEnum;
24
+ /**
25
+ * Code of the linked record.
26
+ * @type {string}
27
+ * @memberof EntityRefClass
28
+ */
29
+ 'code': string;
30
+ }
31
+ export declare const EntityRefClassTypeEnum: {
32
+ readonly EmailThread: "EMAIL_THREAD";
33
+ };
34
+ export type EntityRefClassTypeEnum = typeof EntityRefClassTypeEnum[keyof typeof EntityRefClassTypeEnum];
@@ -0,0 +1,19 @@
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 });
16
+ exports.EntityRefClassTypeEnum = void 0;
17
+ exports.EntityRefClassTypeEnum = {
18
+ EmailThread: 'EMAIL_THREAD'
19
+ };
@@ -0,0 +1,34 @@
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 EntityRefDto
16
+ */
17
+ export interface EntityRefDto {
18
+ /**
19
+ * Type of the linked record.
20
+ * @type {string}
21
+ * @memberof EntityRefDto
22
+ */
23
+ 'type': EntityRefDtoTypeEnum;
24
+ /**
25
+ * Code of the linked record, for example the code of an email thread.
26
+ * @type {string}
27
+ * @memberof EntityRefDto
28
+ */
29
+ 'code': string;
30
+ }
31
+ export declare const EntityRefDtoTypeEnum: {
32
+ readonly EmailThread: "EMAIL_THREAD";
33
+ };
34
+ export type EntityRefDtoTypeEnum = typeof EntityRefDtoTypeEnum[keyof typeof EntityRefDtoTypeEnum];
@@ -0,0 +1,19 @@
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 });
16
+ exports.EntityRefDtoTypeEnum = void 0;
17
+ exports.EntityRefDtoTypeEnum = {
18
+ EmailThread: 'EMAIL_THREAD'
19
+ };