@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,301 @@
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
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { GetEmailThreadResponseClass } from '../models';
16
+ import { ListEmailMessagesResponseClass } from '../models';
17
+ import { ListEmailThreadsResponseClass } from '../models';
18
+ /**
19
+ * EmailTrackingApi - axios parameter creator
20
+ * @export
21
+ */
22
+ export declare const EmailTrackingApiAxiosParamCreator: (configuration?: Configuration) => {
23
+ /**
24
+ * undefined **Required Permissions** none
25
+ * @param {string} code
26
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
27
+ * @param {*} [options] Override http request option.
28
+ * @throws {RequiredError}
29
+ */
30
+ closeThread: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
+ /**
32
+ * undefined **Required Permissions** none
33
+ * @param {string} code
34
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ getThread: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
39
+ /**
40
+ * undefined **Required Permissions** none
41
+ * @param {string} code
42
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ */
46
+ listMessages: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
47
+ /**
48
+ * undefined **Required Permissions** none
49
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
50
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
51
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
52
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
53
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
54
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
55
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
56
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
57
+ * @param {*} [options] Override http request option.
58
+ * @throws {RequiredError}
59
+ */
60
+ listThreads: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
61
+ };
62
+ /**
63
+ * EmailTrackingApi - functional programming interface
64
+ * @export
65
+ */
66
+ export declare const EmailTrackingApiFp: (configuration?: Configuration) => {
67
+ /**
68
+ * undefined **Required Permissions** none
69
+ * @param {string} code
70
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
71
+ * @param {*} [options] Override http request option.
72
+ * @throws {RequiredError}
73
+ */
74
+ closeThread(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEmailThreadResponseClass>>;
75
+ /**
76
+ * undefined **Required Permissions** none
77
+ * @param {string} code
78
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
79
+ * @param {*} [options] Override http request option.
80
+ * @throws {RequiredError}
81
+ */
82
+ getThread(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEmailThreadResponseClass>>;
83
+ /**
84
+ * undefined **Required Permissions** none
85
+ * @param {string} code
86
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
87
+ * @param {*} [options] Override http request option.
88
+ * @throws {RequiredError}
89
+ */
90
+ listMessages(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListEmailMessagesResponseClass>>;
91
+ /**
92
+ * undefined **Required Permissions** none
93
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
94
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
95
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
96
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
97
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
98
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
99
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
100
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
101
+ * @param {*} [options] Override http request option.
102
+ * @throws {RequiredError}
103
+ */
104
+ listThreads(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListEmailThreadsResponseClass>>;
105
+ };
106
+ /**
107
+ * EmailTrackingApi - factory interface
108
+ * @export
109
+ */
110
+ export declare const EmailTrackingApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
111
+ /**
112
+ * undefined **Required Permissions** none
113
+ * @param {string} code
114
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
115
+ * @param {*} [options] Override http request option.
116
+ * @throws {RequiredError}
117
+ */
118
+ closeThread(code: string, authorization?: string, options?: any): AxiosPromise<GetEmailThreadResponseClass>;
119
+ /**
120
+ * undefined **Required Permissions** none
121
+ * @param {string} code
122
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
123
+ * @param {*} [options] Override http request option.
124
+ * @throws {RequiredError}
125
+ */
126
+ getThread(code: string, authorization?: string, options?: any): AxiosPromise<GetEmailThreadResponseClass>;
127
+ /**
128
+ * undefined **Required Permissions** none
129
+ * @param {string} code
130
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
131
+ * @param {*} [options] Override http request option.
132
+ * @throws {RequiredError}
133
+ */
134
+ listMessages(code: string, authorization?: string, options?: any): AxiosPromise<ListEmailMessagesResponseClass>;
135
+ /**
136
+ * undefined **Required Permissions** none
137
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
138
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
139
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
140
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
141
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
142
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
143
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
144
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
145
+ * @param {*} [options] Override http request option.
146
+ * @throws {RequiredError}
147
+ */
148
+ listThreads(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListEmailThreadsResponseClass>;
149
+ };
150
+ /**
151
+ * Request parameters for closeThread operation in EmailTrackingApi.
152
+ * @export
153
+ * @interface EmailTrackingApiCloseThreadRequest
154
+ */
155
+ export interface EmailTrackingApiCloseThreadRequest {
156
+ /**
157
+ *
158
+ * @type {string}
159
+ * @memberof EmailTrackingApiCloseThread
160
+ */
161
+ readonly code: string;
162
+ /**
163
+ * Bearer Token: provided by the login endpoint under the name accessToken.
164
+ * @type {string}
165
+ * @memberof EmailTrackingApiCloseThread
166
+ */
167
+ readonly authorization?: string;
168
+ }
169
+ /**
170
+ * Request parameters for getThread operation in EmailTrackingApi.
171
+ * @export
172
+ * @interface EmailTrackingApiGetThreadRequest
173
+ */
174
+ export interface EmailTrackingApiGetThreadRequest {
175
+ /**
176
+ *
177
+ * @type {string}
178
+ * @memberof EmailTrackingApiGetThread
179
+ */
180
+ readonly code: string;
181
+ /**
182
+ * Bearer Token: provided by the login endpoint under the name accessToken.
183
+ * @type {string}
184
+ * @memberof EmailTrackingApiGetThread
185
+ */
186
+ readonly authorization?: string;
187
+ }
188
+ /**
189
+ * Request parameters for listMessages operation in EmailTrackingApi.
190
+ * @export
191
+ * @interface EmailTrackingApiListMessagesRequest
192
+ */
193
+ export interface EmailTrackingApiListMessagesRequest {
194
+ /**
195
+ *
196
+ * @type {string}
197
+ * @memberof EmailTrackingApiListMessages
198
+ */
199
+ readonly code: string;
200
+ /**
201
+ * Bearer Token: provided by the login endpoint under the name accessToken.
202
+ * @type {string}
203
+ * @memberof EmailTrackingApiListMessages
204
+ */
205
+ readonly authorization?: string;
206
+ }
207
+ /**
208
+ * Request parameters for listThreads operation in EmailTrackingApi.
209
+ * @export
210
+ * @interface EmailTrackingApiListThreadsRequest
211
+ */
212
+ export interface EmailTrackingApiListThreadsRequest {
213
+ /**
214
+ * Bearer Token: provided by the login endpoint under the name accessToken.
215
+ * @type {string}
216
+ * @memberof EmailTrackingApiListThreads
217
+ */
218
+ readonly authorization?: string;
219
+ /**
220
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
221
+ * @type {number}
222
+ * @memberof EmailTrackingApiListThreads
223
+ */
224
+ readonly pageSize?: number;
225
+ /**
226
+ * 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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
227
+ * @type {string}
228
+ * @memberof EmailTrackingApiListThreads
229
+ */
230
+ readonly pageToken?: string;
231
+ /**
232
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
233
+ * @type {string}
234
+ * @memberof EmailTrackingApiListThreads
235
+ */
236
+ readonly filter?: string;
237
+ /**
238
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
239
+ * @type {string}
240
+ * @memberof EmailTrackingApiListThreads
241
+ */
242
+ readonly search?: string;
243
+ /**
244
+ * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
245
+ * @type {string}
246
+ * @memberof EmailTrackingApiListThreads
247
+ */
248
+ readonly order?: string;
249
+ /**
250
+ * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
251
+ * @type {string}
252
+ * @memberof EmailTrackingApiListThreads
253
+ */
254
+ readonly expand?: string;
255
+ /**
256
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
257
+ * @type {string}
258
+ * @memberof EmailTrackingApiListThreads
259
+ */
260
+ readonly filters?: string;
261
+ }
262
+ /**
263
+ * EmailTrackingApi - object-oriented interface
264
+ * @export
265
+ * @class EmailTrackingApi
266
+ * @extends {BaseAPI}
267
+ */
268
+ export declare class EmailTrackingApi extends BaseAPI {
269
+ /**
270
+ * undefined **Required Permissions** none
271
+ * @param {EmailTrackingApiCloseThreadRequest} requestParameters Request parameters.
272
+ * @param {*} [options] Override http request option.
273
+ * @throws {RequiredError}
274
+ * @memberof EmailTrackingApi
275
+ */
276
+ closeThread(requestParameters: EmailTrackingApiCloseThreadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEmailThreadResponseClass, any, {}>>;
277
+ /**
278
+ * undefined **Required Permissions** none
279
+ * @param {EmailTrackingApiGetThreadRequest} requestParameters Request parameters.
280
+ * @param {*} [options] Override http request option.
281
+ * @throws {RequiredError}
282
+ * @memberof EmailTrackingApi
283
+ */
284
+ getThread(requestParameters: EmailTrackingApiGetThreadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEmailThreadResponseClass, any, {}>>;
285
+ /**
286
+ * undefined **Required Permissions** none
287
+ * @param {EmailTrackingApiListMessagesRequest} requestParameters Request parameters.
288
+ * @param {*} [options] Override http request option.
289
+ * @throws {RequiredError}
290
+ * @memberof EmailTrackingApi
291
+ */
292
+ listMessages(requestParameters: EmailTrackingApiListMessagesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEmailMessagesResponseClass, any, {}>>;
293
+ /**
294
+ * undefined **Required Permissions** none
295
+ * @param {EmailTrackingApiListThreadsRequest} requestParameters Request parameters.
296
+ * @param {*} [options] Override http request option.
297
+ * @throws {RequiredError}
298
+ * @memberof EmailTrackingApi
299
+ */
300
+ listThreads(requestParameters?: EmailTrackingApiListThreadsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEmailThreadsResponseClass, any, {}>>;
301
+ }