@emilgroup/notification-sdk-node 1.4.1-beta.1 → 1.4.1-beta.14

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 (52) hide show
  1. package/.openapi-generator/FILES +11 -0
  2. package/README.md +2 -2
  3. package/api/email-messages-api.ts +372 -0
  4. package/api/email-tracking-api.ts +541 -0
  5. package/api.ts +4 -0
  6. package/base.ts +0 -1
  7. package/dist/api/default-api.d.ts +1 -1
  8. package/dist/api/email-messages-api.d.ts +205 -0
  9. package/dist/api/email-messages-api.js +405 -0
  10. package/dist/api/email-tracking-api.d.ts +301 -0
  11. package/dist/api/email-tracking-api.js +524 -0
  12. package/dist/api/email-verifications-api.d.ts +2 -2
  13. package/dist/api/layouts-api.d.ts +5 -5
  14. package/dist/api/notification-templates-api.d.ts +5 -5
  15. package/dist/api/notifications-api.d.ts +1 -1
  16. package/dist/api.d.ts +2 -0
  17. package/dist/api.js +2 -0
  18. package/dist/common.d.ts +1 -1
  19. package/dist/models/download-attachment-response-class.d.ts +36 -0
  20. package/dist/models/download-attachment-response-class.js +15 -0
  21. package/dist/models/email-attachment-class.d.ts +84 -0
  22. package/dist/models/email-attachment-class.js +15 -0
  23. package/dist/models/email-message-class.d.ts +140 -0
  24. package/dist/models/email-message-class.js +27 -0
  25. package/dist/models/email-thread-class.d.ts +83 -0
  26. package/dist/models/email-thread-class.js +20 -0
  27. package/dist/models/get-email-message-response-class.d.ts +25 -0
  28. package/dist/models/get-email-message-response-class.js +15 -0
  29. package/dist/models/get-email-thread-response-class.d.ts +25 -0
  30. package/dist/models/get-email-thread-response-class.js +15 -0
  31. package/dist/models/index.d.ts +9 -0
  32. package/dist/models/index.js +9 -0
  33. package/dist/models/list-email-attachments-response-class.d.ts +25 -0
  34. package/dist/models/list-email-attachments-response-class.js +15 -0
  35. package/dist/models/list-email-messages-response-class.d.ts +43 -0
  36. package/dist/models/list-email-messages-response-class.js +15 -0
  37. package/dist/models/list-email-threads-response-class.d.ts +43 -0
  38. package/dist/models/list-email-threads-response-class.js +15 -0
  39. package/dist/models/send-notification-request-dto.d.ts +44 -2
  40. package/dist/models/send-notification-request-dto.js +6 -0
  41. package/models/download-attachment-response-class.ts +42 -0
  42. package/models/email-attachment-class.ts +90 -0
  43. package/models/email-message-class.ts +150 -0
  44. package/models/email-thread-class.ts +92 -0
  45. package/models/get-email-message-response-class.ts +31 -0
  46. package/models/get-email-thread-response-class.ts +31 -0
  47. package/models/index.ts +9 -0
  48. package/models/list-email-attachments-response-class.ts +31 -0
  49. package/models/list-email-messages-response-class.ts +49 -0
  50. package/models/list-email-threads-response-class.ts +49 -0
  51. package/models/send-notification-request-dto.ts +47 -2
  52. package/package.json +3 -3
@@ -0,0 +1,49 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL NotificationService
5
+ * The EMIL NotificationService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { EmailThreadClass } from './email-thread-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ListEmailThreadsResponseClass
22
+ */
23
+ export interface ListEmailThreadsResponseClass {
24
+ /**
25
+ * List of email threads
26
+ * @type {Array<EmailThreadClass>}
27
+ * @memberof ListEmailThreadsResponseClass
28
+ */
29
+ 'items': Array<EmailThreadClass>;
30
+ /**
31
+ * Token for next page of results
32
+ * @type {string}
33
+ * @memberof ListEmailThreadsResponseClass
34
+ */
35
+ 'nextPageToken': string;
36
+ /**
37
+ * Total number of items
38
+ * @type {number}
39
+ * @memberof ListEmailThreadsResponseClass
40
+ */
41
+ 'totalItems': number;
42
+ /**
43
+ * Number of items per page
44
+ * @type {number}
45
+ * @memberof ListEmailThreadsResponseClass
46
+ */
47
+ 'itemsPerPage': number;
48
+ }
49
+
@@ -64,16 +64,61 @@ export interface SendNotificationRequestDto {
64
64
  */
65
65
  'attachments': Array<S3DocumentDto>;
66
66
  /**
67
- * It is possible to use the product slug to fetch a different senderEmail from the tenant settings. It should be in the form of productSlug_sender-email
67
+ * It is possible to use the product slug to fetch a different senderEmail from the tenant settings. It should be in the form of productSlug_sender-email
68
68
  * @type {string}
69
69
  * @memberof SendNotificationRequestDto
70
70
  */
71
71
  'productSlug'?: string;
72
72
  /**
73
- * Payload is used by the template engine to replace all template variables with proper data. For more information, please go to https://github.com/flosch/pongo2.
73
+ * Payload is used by the template engine to replace all template variables with proper data. For more information, please go to https://github.com/flosch/pongo2.
74
74
  * @type {object}
75
75
  * @memberof SendNotificationRequestDto
76
76
  */
77
77
  'payload': object;
78
+ /**
79
+ * Entity type for email reply tracking.
80
+ * @type {string}
81
+ * @memberof SendNotificationRequestDto
82
+ */
83
+ 'entityType'?: SendNotificationRequestDtoEntityTypeEnum;
84
+ /**
85
+ * Entity code for email reply tracking
86
+ * @type {string}
87
+ * @memberof SendNotificationRequestDto
88
+ */
89
+ 'entityCode'?: string;
90
+ /**
91
+ * Reply-To address for email reply tracking. Auto-generated when entityType and entityCode are provided.
92
+ * @type {string}
93
+ * @memberof SendNotificationRequestDto
94
+ */
95
+ 'replyTo'?: string;
96
+ /**
97
+ * Custom Message-ID header. Auto-generated if not provided.
98
+ * @type {string}
99
+ * @memberof SendNotificationRequestDto
100
+ */
101
+ 'customMessageId'?: string;
102
+ /**
103
+ * Message-ID of the email this is replying to (for threading)
104
+ * @type {string}
105
+ * @memberof SendNotificationRequestDto
106
+ */
107
+ 'inReplyTo'?: string;
108
+ /**
109
+ * Message-IDs for email thread chain
110
+ * @type {Array<string>}
111
+ * @memberof SendNotificationRequestDto
112
+ */
113
+ 'references': Array<string>;
78
114
  }
79
115
 
116
+ export const SendNotificationRequestDtoEntityTypeEnum = {
117
+ Claim: 'Claim',
118
+ Policy: 'Policy',
119
+ Lead: 'Lead'
120
+ } as const;
121
+
122
+ export type SendNotificationRequestDtoEntityTypeEnum = typeof SendNotificationRequestDtoEntityTypeEnum[keyof typeof SendNotificationRequestDtoEntityTypeEnum];
123
+
124
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/notification-sdk-node",
3
- "version": "1.4.1-beta.1",
3
+ "version": "1.4.1-beta.14",
4
4
  "description": "OpenAPI client for @emilgroup/notification-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -18,12 +18,12 @@
18
18
  "prepare": "npm run build"
19
19
  },
20
20
  "dependencies": {
21
- "axios": "^0.27.2",
21
+ "axios": "^1.12.0",
22
22
  "form-data": "^4.0.0",
23
23
  "url": "^0.11.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@types/node": "^12.11.5",
26
+ "@types/node": "^12.11.5",
27
27
  "typescript": "^4.0"
28
28
  }
29
29
  }