@emilgroup/notification-sdk 0.8.1-beta.38 → 0.8.1-beta.39

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 (34) hide show
  1. package/.openapi-generator/FILES +4 -3
  2. package/README.md +2 -2
  3. package/api/email-messages-api.ts +0 -223
  4. package/api/email-tracking-api.ts +231 -8
  5. package/dist/api/email-messages-api.d.ts +0 -122
  6. package/dist/api/email-messages-api.js +0 -191
  7. package/dist/api/email-tracking-api.d.ts +130 -8
  8. package/dist/api/email-tracking-api.js +197 -6
  9. package/dist/models/{assign-email-message-entity-body-dto.d.ts → assign-email-thread-entity-body-dto.d.ts} +9 -9
  10. package/dist/models/{assign-email-message-entity-body-dto.js → assign-email-thread-entity-body-dto.js} +2 -2
  11. package/dist/models/{assign-email-message-entity-response-class.d.ts → assign-email-thread-entity-response-class.d.ts} +7 -7
  12. package/dist/models/email-message-class.d.ts +4 -9
  13. package/dist/models/email-thread-class.d.ts +6 -5
  14. package/dist/models/entity-ref-class.d.ts +37 -0
  15. package/dist/models/entity-ref-class.js +22 -0
  16. package/dist/models/grpc-send-email-request-dto.d.ts +1 -1
  17. package/dist/models/index.d.ts +4 -3
  18. package/dist/models/index.js +4 -3
  19. package/dist/models/send-email-request-dto.d.ts +1 -1
  20. package/dist/models/send-notification-request-dto.d.ts +1 -1
  21. package/dist/models/{unassign-email-message-entity-response-class.d.ts → unassign-email-thread-entity-response-class.d.ts} +7 -7
  22. package/models/{assign-email-message-entity-body-dto.ts → assign-email-thread-entity-body-dto.ts} +9 -9
  23. package/models/{assign-email-message-entity-response-class.ts → assign-email-thread-entity-response-class.ts} +7 -7
  24. package/models/email-message-class.ts +4 -9
  25. package/models/email-thread-class.ts +6 -5
  26. package/models/entity-ref-class.ts +46 -0
  27. package/models/grpc-send-email-request-dto.ts +1 -1
  28. package/models/index.ts +4 -3
  29. package/models/send-email-request-dto.ts +1 -1
  30. package/models/send-notification-request-dto.ts +1 -1
  31. package/models/{unassign-email-message-entity-response-class.ts → unassign-email-thread-entity-response-class.ts} +7 -7
  32. package/package.json +1 -1
  33. /package/dist/models/{assign-email-message-entity-response-class.js → assign-email-thread-entity-response-class.js} +0 -0
  34. /package/dist/models/{unassign-email-message-entity-response-class.js → unassign-email-thread-entity-response-class.js} +0 -0
@@ -92,6 +92,59 @@ var base_1 = require("../base");
92
92
  var EmailTrackingApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
+ /**
96
+ * Links the email thread, and every message in it, to the given entity, identified by code or by number (the code wins when both are set). Replaces the current link. The entity must exist. Messages that arrive in the thread later are linked to the same entity. **Required Permissions** \"notification-management.email-messages.update\"
97
+ * @summary Assign an email thread to an entity
98
+ * @param {string} code
99
+ * @param {AssignEmailThreadEntityBodyDto} assignEmailThreadEntityBodyDto
100
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
101
+ * @param {*} [options] Override http request option.
102
+ * @throws {RequiredError}
103
+ */
104
+ assignEntity: function (code, assignEmailThreadEntityBodyDto, authorization, options) {
105
+ if (options === void 0) { options = {}; }
106
+ return __awaiter(_this, void 0, void 0, function () {
107
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
108
+ return __generator(this, function (_a) {
109
+ switch (_a.label) {
110
+ case 0:
111
+ // verify required parameter 'code' is not null or undefined
112
+ (0, common_1.assertParamExists)('assignEntity', 'code', code);
113
+ // verify required parameter 'assignEmailThreadEntityBodyDto' is not null or undefined
114
+ (0, common_1.assertParamExists)('assignEntity', 'assignEmailThreadEntityBodyDto', assignEmailThreadEntityBodyDto);
115
+ localVarPath = "/notificationservice/v1/email-threads/{code}/entity"
116
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
117
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
118
+ if (configuration) {
119
+ baseOptions = configuration.baseOptions;
120
+ baseAccessToken = configuration.accessToken;
121
+ }
122
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
123
+ localVarHeaderParameter = {};
124
+ localVarQueryParameter = {};
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
+ case 1:
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ _a.sent();
132
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ }
135
+ localVarHeaderParameter['Content-Type'] = 'application/json';
136
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
139
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(assignEmailThreadEntityBodyDto, localVarRequestOptions, configuration);
140
+ return [2 /*return*/, {
141
+ url: (0, common_1.toPathString)(localVarUrlObj),
142
+ options: localVarRequestOptions,
143
+ }];
144
+ }
145
+ });
146
+ });
147
+ },
95
148
  /**
96
149
  * Closes the email thread with the given code and returns the updated thread. **Required Permissions** \"notification-management.email-messages.update\"
97
150
  * @summary Close the email thread
@@ -258,11 +311,11 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
258
311
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
259
312
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
260
313
  * @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.
261
- * @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, entityType, entityCode, subject, status, createdAt, updatedAt, createdBy, updatedBy</i>
314
+ * @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, entityType, entityCode, entityNumber, subject, status, createdAt, updatedAt, createdBy, updatedBy</i>
262
315
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
263
316
  * @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, code, entityType, entityCode, subject, status, createdAt, updatedAt</i>
264
317
  * @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: messages<i>
265
- * @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, entityType, entityCode, subject, status, createdAt, updatedAt, createdBy, updatedBy</i>
318
+ * @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, entityType, entityCode, entityNumber, subject, status, createdAt, updatedAt, createdBy, updatedBy</i>
266
319
  * @param {*} [options] Override http request option.
267
320
  * @throws {RequiredError}
268
321
  */
@@ -324,6 +377,54 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
324
377
  });
325
378
  });
326
379
  },
380
+ /**
381
+ * Removes the entity link from the email thread and every message in it, and marks the messages as unassigned. **Required Permissions** \"notification-management.email-messages.update\"
382
+ * @summary Unassign an email thread from its entity
383
+ * @param {string} code
384
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
385
+ * @param {*} [options] Override http request option.
386
+ * @throws {RequiredError}
387
+ */
388
+ unassignEntity: function (code, authorization, options) {
389
+ if (options === void 0) { options = {}; }
390
+ return __awaiter(_this, void 0, void 0, function () {
391
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
392
+ return __generator(this, function (_a) {
393
+ switch (_a.label) {
394
+ case 0:
395
+ // verify required parameter 'code' is not null or undefined
396
+ (0, common_1.assertParamExists)('unassignEntity', 'code', code);
397
+ localVarPath = "/notificationservice/v1/email-threads/{code}/entity"
398
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
399
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
400
+ if (configuration) {
401
+ baseOptions = configuration.baseOptions;
402
+ baseAccessToken = configuration.accessToken;
403
+ }
404
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
405
+ localVarHeaderParameter = {};
406
+ localVarQueryParameter = {};
407
+ // authentication bearer required
408
+ // http bearer authentication required
409
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
410
+ case 1:
411
+ // authentication bearer required
412
+ // http bearer authentication required
413
+ _a.sent();
414
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
415
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
416
+ }
417
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
418
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
419
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
420
+ return [2 /*return*/, {
421
+ url: (0, common_1.toPathString)(localVarUrlObj),
422
+ options: localVarRequestOptions,
423
+ }];
424
+ }
425
+ });
426
+ });
427
+ },
327
428
  };
328
429
  };
329
430
  exports.EmailTrackingApiAxiosParamCreator = EmailTrackingApiAxiosParamCreator;
@@ -334,6 +435,28 @@ exports.EmailTrackingApiAxiosParamCreator = EmailTrackingApiAxiosParamCreator;
334
435
  var EmailTrackingApiFp = function (configuration) {
335
436
  var localVarAxiosParamCreator = (0, exports.EmailTrackingApiAxiosParamCreator)(configuration);
336
437
  return {
438
+ /**
439
+ * Links the email thread, and every message in it, to the given entity, identified by code or by number (the code wins when both are set). Replaces the current link. The entity must exist. Messages that arrive in the thread later are linked to the same entity. **Required Permissions** \"notification-management.email-messages.update\"
440
+ * @summary Assign an email thread to an entity
441
+ * @param {string} code
442
+ * @param {AssignEmailThreadEntityBodyDto} assignEmailThreadEntityBodyDto
443
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
444
+ * @param {*} [options] Override http request option.
445
+ * @throws {RequiredError}
446
+ */
447
+ assignEntity: function (code, assignEmailThreadEntityBodyDto, authorization, options) {
448
+ return __awaiter(this, void 0, void 0, function () {
449
+ var localVarAxiosArgs;
450
+ return __generator(this, function (_a) {
451
+ switch (_a.label) {
452
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.assignEntity(code, assignEmailThreadEntityBodyDto, authorization, options)];
453
+ case 1:
454
+ localVarAxiosArgs = _a.sent();
455
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
456
+ }
457
+ });
458
+ });
459
+ },
337
460
  /**
338
461
  * Closes the email thread with the given code and returns the updated thread. **Required Permissions** \"notification-management.email-messages.update\"
339
462
  * @summary Close the email thread
@@ -407,11 +530,11 @@ var EmailTrackingApiFp = function (configuration) {
407
530
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
408
531
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
409
532
  * @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.
410
- * @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, entityType, entityCode, subject, status, createdAt, updatedAt, createdBy, updatedBy</i>
533
+ * @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, entityType, entityCode, entityNumber, subject, status, createdAt, updatedAt, createdBy, updatedBy</i>
411
534
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
412
535
  * @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, code, entityType, entityCode, subject, status, createdAt, updatedAt</i>
413
536
  * @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: messages<i>
414
- * @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, entityType, entityCode, subject, status, createdAt, updatedAt, createdBy, updatedBy</i>
537
+ * @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, entityType, entityCode, entityNumber, subject, status, createdAt, updatedAt, createdBy, updatedBy</i>
415
538
  * @param {*} [options] Override http request option.
416
539
  * @throws {RequiredError}
417
540
  */
@@ -428,6 +551,27 @@ var EmailTrackingApiFp = function (configuration) {
428
551
  });
429
552
  });
430
553
  },
554
+ /**
555
+ * Removes the entity link from the email thread and every message in it, and marks the messages as unassigned. **Required Permissions** \"notification-management.email-messages.update\"
556
+ * @summary Unassign an email thread from its entity
557
+ * @param {string} code
558
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
559
+ * @param {*} [options] Override http request option.
560
+ * @throws {RequiredError}
561
+ */
562
+ unassignEntity: function (code, authorization, options) {
563
+ return __awaiter(this, void 0, void 0, function () {
564
+ var localVarAxiosArgs;
565
+ return __generator(this, function (_a) {
566
+ switch (_a.label) {
567
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.unassignEntity(code, authorization, options)];
568
+ case 1:
569
+ localVarAxiosArgs = _a.sent();
570
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
571
+ }
572
+ });
573
+ });
574
+ },
431
575
  };
432
576
  };
433
577
  exports.EmailTrackingApiFp = EmailTrackingApiFp;
@@ -438,6 +582,18 @@ exports.EmailTrackingApiFp = EmailTrackingApiFp;
438
582
  var EmailTrackingApiFactory = function (configuration, basePath, axios) {
439
583
  var localVarFp = (0, exports.EmailTrackingApiFp)(configuration);
440
584
  return {
585
+ /**
586
+ * Links the email thread, and every message in it, to the given entity, identified by code or by number (the code wins when both are set). Replaces the current link. The entity must exist. Messages that arrive in the thread later are linked to the same entity. **Required Permissions** \"notification-management.email-messages.update\"
587
+ * @summary Assign an email thread to an entity
588
+ * @param {string} code
589
+ * @param {AssignEmailThreadEntityBodyDto} assignEmailThreadEntityBodyDto
590
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
591
+ * @param {*} [options] Override http request option.
592
+ * @throws {RequiredError}
593
+ */
594
+ assignEntity: function (code, assignEmailThreadEntityBodyDto, authorization, options) {
595
+ return localVarFp.assignEntity(code, assignEmailThreadEntityBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
596
+ },
441
597
  /**
442
598
  * Closes the email thread with the given code and returns the updated thread. **Required Permissions** \"notification-management.email-messages.update\"
443
599
  * @summary Close the email thread
@@ -481,17 +637,28 @@ var EmailTrackingApiFactory = function (configuration, basePath, axios) {
481
637
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
482
638
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
483
639
  * @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.
484
- * @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, entityType, entityCode, subject, status, createdAt, updatedAt, createdBy, updatedBy</i>
640
+ * @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, entityType, entityCode, entityNumber, subject, status, createdAt, updatedAt, createdBy, updatedBy</i>
485
641
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
486
642
  * @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, code, entityType, entityCode, subject, status, createdAt, updatedAt</i>
487
643
  * @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: messages<i>
488
- * @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, entityType, entityCode, subject, status, createdAt, updatedAt, createdBy, updatedBy</i>
644
+ * @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, entityType, entityCode, entityNumber, subject, status, createdAt, updatedAt, createdBy, updatedBy</i>
489
645
  * @param {*} [options] Override http request option.
490
646
  * @throws {RequiredError}
491
647
  */
492
648
  listThreads: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
493
649
  return localVarFp.listThreads(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
494
650
  },
651
+ /**
652
+ * Removes the entity link from the email thread and every message in it, and marks the messages as unassigned. **Required Permissions** \"notification-management.email-messages.update\"
653
+ * @summary Unassign an email thread from its entity
654
+ * @param {string} code
655
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
656
+ * @param {*} [options] Override http request option.
657
+ * @throws {RequiredError}
658
+ */
659
+ unassignEntity: function (code, authorization, options) {
660
+ return localVarFp.unassignEntity(code, authorization, options).then(function (request) { return request(axios, basePath); });
661
+ },
495
662
  };
496
663
  };
497
664
  exports.EmailTrackingApiFactory = EmailTrackingApiFactory;
@@ -506,6 +673,18 @@ var EmailTrackingApi = /** @class */ (function (_super) {
506
673
  function EmailTrackingApi() {
507
674
  return _super !== null && _super.apply(this, arguments) || this;
508
675
  }
676
+ /**
677
+ * Links the email thread, and every message in it, to the given entity, identified by code or by number (the code wins when both are set). Replaces the current link. The entity must exist. Messages that arrive in the thread later are linked to the same entity. **Required Permissions** \"notification-management.email-messages.update\"
678
+ * @summary Assign an email thread to an entity
679
+ * @param {EmailTrackingApiAssignEntityRequest} requestParameters Request parameters.
680
+ * @param {*} [options] Override http request option.
681
+ * @throws {RequiredError}
682
+ * @memberof EmailTrackingApi
683
+ */
684
+ EmailTrackingApi.prototype.assignEntity = function (requestParameters, options) {
685
+ var _this = this;
686
+ return (0, exports.EmailTrackingApiFp)(this.configuration).assignEntity(requestParameters.code, requestParameters.assignEmailThreadEntityBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
687
+ };
509
688
  /**
510
689
  * Closes the email thread with the given code and returns the updated thread. **Required Permissions** \"notification-management.email-messages.update\"
511
690
  * @summary Close the email thread
@@ -555,6 +734,18 @@ var EmailTrackingApi = /** @class */ (function (_super) {
555
734
  if (requestParameters === void 0) { requestParameters = {}; }
556
735
  return (0, exports.EmailTrackingApiFp)(this.configuration).listThreads(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
557
736
  };
737
+ /**
738
+ * Removes the entity link from the email thread and every message in it, and marks the messages as unassigned. **Required Permissions** \"notification-management.email-messages.update\"
739
+ * @summary Unassign an email thread from its entity
740
+ * @param {EmailTrackingApiUnassignEntityRequest} requestParameters Request parameters.
741
+ * @param {*} [options] Override http request option.
742
+ * @throws {RequiredError}
743
+ * @memberof EmailTrackingApi
744
+ */
745
+ EmailTrackingApi.prototype.unassignEntity = function (requestParameters, options) {
746
+ var _this = this;
747
+ return (0, exports.EmailTrackingApiFp)(this.configuration).unassignEntity(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
748
+ };
558
749
  return EmailTrackingApi;
559
750
  }(base_1.BaseAPI));
560
751
  exports.EmailTrackingApi = EmailTrackingApi;
@@ -12,32 +12,32 @@
12
12
  /**
13
13
  *
14
14
  * @export
15
- * @interface AssignEmailMessageEntityBodyDto
15
+ * @interface AssignEmailThreadEntityBodyDto
16
16
  */
17
- export interface AssignEmailMessageEntityBodyDto {
17
+ export interface AssignEmailThreadEntityBodyDto {
18
18
  /**
19
- * Type of the entity the email message belongs to
19
+ * Type of the entity the email thread belongs to
20
20
  * @type {string}
21
- * @memberof AssignEmailMessageEntityBodyDto
21
+ * @memberof AssignEmailThreadEntityBodyDto
22
22
  */
23
- 'entityType': AssignEmailMessageEntityBodyDtoEntityTypeEnum;
23
+ 'entityType': AssignEmailThreadEntityBodyDtoEntityTypeEnum;
24
24
  /**
25
25
  * Code of the entity. Required unless entityNumber is set; takes precedence over entityNumber.
26
26
  * @type {string}
27
- * @memberof AssignEmailMessageEntityBodyDto
27
+ * @memberof AssignEmailThreadEntityBodyDto
28
28
  */
29
29
  'entityCode'?: string;
30
30
  /**
31
31
  * Number of the entity, e.g. the policy number. Used only when entityCode is not set.
32
32
  * @type {string}
33
- * @memberof AssignEmailMessageEntityBodyDto
33
+ * @memberof AssignEmailThreadEntityBodyDto
34
34
  */
35
35
  'entityNumber'?: string;
36
36
  }
37
- export declare const AssignEmailMessageEntityBodyDtoEntityTypeEnum: {
37
+ export declare const AssignEmailThreadEntityBodyDtoEntityTypeEnum: {
38
38
  readonly Claim: "Claim";
39
39
  readonly Policy: "Policy";
40
40
  readonly Lead: "Lead";
41
41
  readonly Partner: "Partner";
42
42
  };
43
- export type AssignEmailMessageEntityBodyDtoEntityTypeEnum = typeof AssignEmailMessageEntityBodyDtoEntityTypeEnum[keyof typeof AssignEmailMessageEntityBodyDtoEntityTypeEnum];
43
+ export type AssignEmailThreadEntityBodyDtoEntityTypeEnum = typeof AssignEmailThreadEntityBodyDtoEntityTypeEnum[keyof typeof AssignEmailThreadEntityBodyDtoEntityTypeEnum];
@@ -13,8 +13,8 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.AssignEmailMessageEntityBodyDtoEntityTypeEnum = void 0;
17
- exports.AssignEmailMessageEntityBodyDtoEntityTypeEnum = {
16
+ exports.AssignEmailThreadEntityBodyDtoEntityTypeEnum = void 0;
17
+ exports.AssignEmailThreadEntityBodyDtoEntityTypeEnum = {
18
18
  Claim: 'Claim',
19
19
  Policy: 'Policy',
20
20
  Lead: 'Lead',
@@ -9,17 +9,17 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { EmailMessageClass } from './email-message-class';
12
+ import { EmailThreadClass } from './email-thread-class';
13
13
  /**
14
14
  *
15
15
  * @export
16
- * @interface AssignEmailMessageEntityResponseClass
16
+ * @interface AssignEmailThreadEntityResponseClass
17
17
  */
18
- export interface AssignEmailMessageEntityResponseClass {
18
+ export interface AssignEmailThreadEntityResponseClass {
19
19
  /**
20
- * The email message response.
21
- * @type {EmailMessageClass}
22
- * @memberof AssignEmailMessageEntityResponseClass
20
+ * The email thread response.
21
+ * @type {EmailThreadClass}
22
+ * @memberof AssignEmailThreadEntityResponseClass
23
23
  */
24
- 'message': EmailMessageClass;
24
+ 'thread': EmailThreadClass;
25
25
  }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { EmailAttachmentClass } from './email-attachment-class';
13
+ import { EntityRefClass } from './entity-ref-class';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -155,17 +156,11 @@ export interface EmailMessageClass {
155
156
  */
156
157
  'attachments': Array<EmailAttachmentClass>;
157
158
  /**
158
- * Entity type this message is associated with
159
- * @type {string}
160
- * @memberof EmailMessageClass
161
- */
162
- 'entityType': string;
163
- /**
164
- * Entity code this message is associated with
165
- * @type {string}
159
+ * The entity the message\'s thread is linked to. Not set while the message is unassigned.
160
+ * @type {EntityRefClass}
166
161
  * @memberof EmailMessageClass
167
162
  */
168
- 'entityCode': string;
163
+ 'entityRef'?: EntityRefClass;
169
164
  /**
170
165
  * Business number of the linked entity (policy, lead, claim or partner number)
171
166
  * @type {string}
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { EntityRefClass } from './entity-ref-class';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -28,17 +29,17 @@ export interface EmailThreadClass {
28
29
  */
29
30
  'code': string;
30
31
  /**
31
- * Entity type associated with this thread
32
- * @type {string}
32
+ * The entity the thread, and every message in it, is linked to. Not set while the thread is unassigned.
33
+ * @type {EntityRefClass}
33
34
  * @memberof EmailThreadClass
34
35
  */
35
- 'entityType': string;
36
+ 'entityRef'?: EntityRefClass;
36
37
  /**
37
- * Entity code associated with this thread
38
+ * Number of the entity the thread is linked to
38
39
  * @type {string}
39
40
  * @memberof EmailThreadClass
40
41
  */
41
- 'entityCode': string;
42
+ 'entityNumber'?: string;
42
43
  /**
43
44
  * Email subject of the thread
44
45
  * @type {string}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * EMIL NotificationService
3
+ * The EMIL NotificationService 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 entity
20
+ * @type {string}
21
+ * @memberof EntityRefClass
22
+ */
23
+ 'type': EntityRefClassTypeEnum;
24
+ /**
25
+ * Code of the linked entity
26
+ * @type {string}
27
+ * @memberof EntityRefClass
28
+ */
29
+ 'code': string;
30
+ }
31
+ export declare const EntityRefClassTypeEnum: {
32
+ readonly Claim: "Claim";
33
+ readonly Policy: "Policy";
34
+ readonly Lead: "Lead";
35
+ readonly Partner: "Partner";
36
+ };
37
+ export type EntityRefClassTypeEnum = typeof EntityRefClassTypeEnum[keyof typeof EntityRefClassTypeEnum];
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL NotificationService
6
+ * The EMIL NotificationService 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
+ Claim: 'Claim',
19
+ Policy: 'Policy',
20
+ Lead: 'Lead',
21
+ Partner: 'Partner'
22
+ };
@@ -90,7 +90,7 @@ export interface GrpcSendEmailRequestDto {
90
90
  */
91
91
  'entityCode'?: string;
92
92
  /**
93
- * Reply-To address. Auto-generated when entityType and entityCode are provided and reply tracking is enabled.
93
+ * Reply-To address. Auto-generated when reply tracking is enabled.
94
94
  * @type {string}
95
95
  * @memberof GrpcSendEmailRequestDto
96
96
  */
@@ -1,5 +1,5 @@
1
- export * from './assign-email-message-entity-body-dto';
2
- export * from './assign-email-message-entity-response-class';
1
+ export * from './assign-email-thread-entity-body-dto';
2
+ export * from './assign-email-thread-entity-response-class';
3
3
  export * from './complete-email-verification-dto';
4
4
  export * from './complete-email-verification-response-class';
5
5
  export * from './create-layout-request-dto';
@@ -12,6 +12,7 @@ export * from './download-attachment-response-class';
12
12
  export * from './email-attachment-class';
13
13
  export * from './email-message-class';
14
14
  export * from './email-thread-class';
15
+ export * from './entity-ref-class';
15
16
  export * from './get-email-message-response-class';
16
17
  export * from './get-email-thread-response-class';
17
18
  export * from './get-layout-request-dto';
@@ -37,7 +38,7 @@ export * from './send-email-request-dto';
37
38
  export * from './send-email-response-class';
38
39
  export * from './send-notification-request-dto';
39
40
  export * from './send-notification-response-class';
40
- export * from './unassign-email-message-entity-response-class';
41
+ export * from './unassign-email-thread-entity-response-class';
41
42
  export * from './update-html-template-request-dto';
42
43
  export * from './update-layout-request-dto';
43
44
  export * from './update-layout-response-class';
@@ -14,8 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./assign-email-message-entity-body-dto"), exports);
18
- __exportStar(require("./assign-email-message-entity-response-class"), exports);
17
+ __exportStar(require("./assign-email-thread-entity-body-dto"), exports);
18
+ __exportStar(require("./assign-email-thread-entity-response-class"), exports);
19
19
  __exportStar(require("./complete-email-verification-dto"), exports);
20
20
  __exportStar(require("./complete-email-verification-response-class"), exports);
21
21
  __exportStar(require("./create-layout-request-dto"), exports);
@@ -28,6 +28,7 @@ __exportStar(require("./download-attachment-response-class"), exports);
28
28
  __exportStar(require("./email-attachment-class"), exports);
29
29
  __exportStar(require("./email-message-class"), exports);
30
30
  __exportStar(require("./email-thread-class"), exports);
31
+ __exportStar(require("./entity-ref-class"), exports);
31
32
  __exportStar(require("./get-email-message-response-class"), exports);
32
33
  __exportStar(require("./get-email-thread-response-class"), exports);
33
34
  __exportStar(require("./get-layout-request-dto"), exports);
@@ -53,7 +54,7 @@ __exportStar(require("./send-email-request-dto"), exports);
53
54
  __exportStar(require("./send-email-response-class"), exports);
54
55
  __exportStar(require("./send-notification-request-dto"), exports);
55
56
  __exportStar(require("./send-notification-response-class"), exports);
56
- __exportStar(require("./unassign-email-message-entity-response-class"), exports);
57
+ __exportStar(require("./unassign-email-thread-entity-response-class"), exports);
57
58
  __exportStar(require("./update-html-template-request-dto"), exports);
58
59
  __exportStar(require("./update-layout-request-dto"), exports);
59
60
  __exportStar(require("./update-layout-response-class"), exports);
@@ -90,7 +90,7 @@ export interface SendEmailRequestDto {
90
90
  */
91
91
  'entityCode'?: string;
92
92
  /**
93
- * Reply-To address. Auto-generated when entityType and entityCode are provided and reply tracking is enabled.
93
+ * Reply-To address. Auto-generated when reply tracking is enabled.
94
94
  * @type {string}
95
95
  * @memberof SendEmailRequestDto
96
96
  */
@@ -85,7 +85,7 @@ export interface SendNotificationRequestDto {
85
85
  */
86
86
  'entityCode'?: string;
87
87
  /**
88
- * Reply-To address for email reply tracking. Auto-generated when entityType and entityCode are provided.
88
+ * Reply-To address for email reply tracking. Auto-generated when reply tracking is enabled.
89
89
  * @type {string}
90
90
  * @memberof SendNotificationRequestDto
91
91
  */
@@ -9,17 +9,17 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { EmailMessageClass } from './email-message-class';
12
+ import { EmailThreadClass } from './email-thread-class';
13
13
  /**
14
14
  *
15
15
  * @export
16
- * @interface UnassignEmailMessageEntityResponseClass
16
+ * @interface UnassignEmailThreadEntityResponseClass
17
17
  */
18
- export interface UnassignEmailMessageEntityResponseClass {
18
+ export interface UnassignEmailThreadEntityResponseClass {
19
19
  /**
20
- * The email message response.
21
- * @type {EmailMessageClass}
22
- * @memberof UnassignEmailMessageEntityResponseClass
20
+ * The email thread response.
21
+ * @type {EmailThreadClass}
22
+ * @memberof UnassignEmailThreadEntityResponseClass
23
23
  */
24
- 'message': EmailMessageClass;
24
+ 'thread': EmailThreadClass;
25
25
  }