@emilgroup/notification-sdk-node 1.3.0 → 1.4.1-beta.0

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 (43) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/README.md +2 -2
  3. package/api/default-api.ts +8 -4
  4. package/api/email-verifications-api.ts +8 -8
  5. package/api/layouts-api.ts +71 -71
  6. package/api/notification-templates-api.ts +71 -71
  7. package/api/notifications-api.ts +4 -4
  8. package/base.ts +55 -20
  9. package/common.ts +2 -2
  10. package/configuration.ts +9 -0
  11. package/dist/api/default-api.d.ts +8 -4
  12. package/dist/api/default-api.js +8 -4
  13. package/dist/api/email-verifications-api.d.ts +8 -8
  14. package/dist/api/email-verifications-api.js +8 -8
  15. package/dist/api/layouts-api.d.ts +64 -64
  16. package/dist/api/layouts-api.js +50 -50
  17. package/dist/api/notification-templates-api.d.ts +64 -64
  18. package/dist/api/notification-templates-api.js +50 -50
  19. package/dist/api/notifications-api.d.ts +4 -4
  20. package/dist/api/notifications-api.js +4 -4
  21. package/dist/base.d.ts +13 -5
  22. package/dist/base.js +64 -30
  23. package/dist/common.js +2 -2
  24. package/dist/configuration.d.ts +6 -0
  25. package/dist/configuration.js +8 -0
  26. package/dist/models/html-template-class.d.ts +0 -6
  27. package/dist/models/index.d.ts +1 -0
  28. package/dist/models/index.js +1 -0
  29. package/dist/models/initiate-email-verification-dto.d.ts +1 -1
  30. package/dist/models/inline-response200.d.ts +6 -6
  31. package/dist/models/inline-response503.d.ts +6 -6
  32. package/dist/models/s3-document-dto.d.ts +36 -0
  33. package/dist/models/s3-document-dto.js +15 -0
  34. package/dist/models/send-notification-request-dto.d.ts +3 -2
  35. package/models/html-template-class.ts +0 -6
  36. package/models/index.ts +1 -0
  37. package/models/initiate-email-verification-dto.ts +1 -1
  38. package/models/inline-response200.ts +6 -6
  39. package/models/inline-response503.ts +6 -6
  40. package/models/s3-document-dto.ts +42 -0
  41. package/models/send-notification-request-dto.ts +3 -2
  42. package/package.json +1 -1
  43. package/tsconfig.json +1 -0
@@ -51,10 +51,4 @@ export interface HtmlTemplateClass {
51
51
  * @memberof HtmlTemplateClass
52
52
  */
53
53
  'updatedAt': string;
54
- /**
55
- * Html template deleted at
56
- * @type {string}
57
- * @memberof HtmlTemplateClass
58
- */
59
- 'deletedAt': string;
60
54
  }
@@ -19,6 +19,7 @@ export * from './layout-class';
19
19
  export * from './list-layouts-response-class';
20
20
  export * from './list-notification-templates-response-class';
21
21
  export * from './notification-template-class';
22
+ export * from './s3-document-dto';
22
23
  export * from './send-notification-request-dto';
23
24
  export * from './send-notification-response-class';
24
25
  export * from './update-html-template-request-dto';
@@ -35,6 +35,7 @@ __exportStar(require("./layout-class"), exports);
35
35
  __exportStar(require("./list-layouts-response-class"), exports);
36
36
  __exportStar(require("./list-notification-templates-response-class"), exports);
37
37
  __exportStar(require("./notification-template-class"), exports);
38
+ __exportStar(require("./s3-document-dto"), exports);
38
39
  __exportStar(require("./send-notification-request-dto"), exports);
39
40
  __exportStar(require("./send-notification-response-class"), exports);
40
41
  __exportStar(require("./update-html-template-request-dto"), exports);
@@ -22,7 +22,7 @@ export interface InitiateEmailVerificationDto {
22
22
  */
23
23
  'email': string;
24
24
  /**
25
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
25
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
26
26
  * @type {string}
27
27
  * @memberof InitiateEmailVerificationDto
28
28
  */
@@ -23,32 +23,32 @@ export interface InlineResponse200 {
23
23
  'status'?: string;
24
24
  /**
25
25
  *
26
- * @type {{ [key: string]: { [key: string]: string; }; }}
26
+ * @type {{ [key: string]: { [key: string]: object; }; }}
27
27
  * @memberof InlineResponse200
28
28
  */
29
29
  'info'?: {
30
30
  [key: string]: {
31
- [key: string]: string;
31
+ [key: string]: object;
32
32
  };
33
33
  } | null;
34
34
  /**
35
35
  *
36
- * @type {{ [key: string]: { [key: string]: string; }; }}
36
+ * @type {{ [key: string]: { [key: string]: object; }; }}
37
37
  * @memberof InlineResponse200
38
38
  */
39
39
  'error'?: {
40
40
  [key: string]: {
41
- [key: string]: string;
41
+ [key: string]: object;
42
42
  };
43
43
  } | null;
44
44
  /**
45
45
  *
46
- * @type {{ [key: string]: { [key: string]: string; }; }}
46
+ * @type {{ [key: string]: { [key: string]: object; }; }}
47
47
  * @memberof InlineResponse200
48
48
  */
49
49
  'details'?: {
50
50
  [key: string]: {
51
- [key: string]: string;
51
+ [key: string]: object;
52
52
  };
53
53
  };
54
54
  }
@@ -23,32 +23,32 @@ export interface InlineResponse503 {
23
23
  'status'?: string;
24
24
  /**
25
25
  *
26
- * @type {{ [key: string]: { [key: string]: string; }; }}
26
+ * @type {{ [key: string]: { [key: string]: object; }; }}
27
27
  * @memberof InlineResponse503
28
28
  */
29
29
  'info'?: {
30
30
  [key: string]: {
31
- [key: string]: string;
31
+ [key: string]: object;
32
32
  };
33
33
  } | null;
34
34
  /**
35
35
  *
36
- * @type {{ [key: string]: { [key: string]: string; }; }}
36
+ * @type {{ [key: string]: { [key: string]: object; }; }}
37
37
  * @memberof InlineResponse503
38
38
  */
39
39
  'error'?: {
40
40
  [key: string]: {
41
- [key: string]: string;
41
+ [key: string]: object;
42
42
  };
43
43
  } | null;
44
44
  /**
45
45
  *
46
- * @type {{ [key: string]: { [key: string]: string; }; }}
46
+ * @type {{ [key: string]: { [key: string]: object; }; }}
47
47
  * @memberof InlineResponse503
48
48
  */
49
49
  'details'?: {
50
50
  [key: string]: {
51
- [key: string]: string;
51
+ [key: string]: object;
52
52
  };
53
53
  };
54
54
  }
@@ -0,0 +1,36 @@
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 S3DocumentDto
16
+ */
17
+ export interface S3DocumentDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof S3DocumentDto
22
+ */
23
+ 'bucket'?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof S3DocumentDto
28
+ */
29
+ 'key': string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof S3DocumentDto
34
+ */
35
+ 'filename'?: string;
36
+ }
@@ -0,0 +1,15 @@
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 });
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { S3DocumentDto } from './s3-document-dto';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -53,10 +54,10 @@ export interface SendNotificationRequestDto {
53
54
  'emailBcc': Array<string>;
54
55
  /**
55
56
  * Attachments for the email. Any attachement has to be uploaded to S3 first before being sent.
56
- * @type {Array<string>}
57
+ * @type {Array<S3DocumentDto>}
57
58
  * @memberof SendNotificationRequestDto
58
59
  */
59
- 'attachments': Array<string>;
60
+ 'attachments': Array<S3DocumentDto>;
60
61
  /**
61
62
  * 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
62
63
  * @type {string}
@@ -56,11 +56,5 @@ export interface HtmlTemplateClass {
56
56
  * @memberof HtmlTemplateClass
57
57
  */
58
58
  'updatedAt': string;
59
- /**
60
- * Html template deleted at
61
- * @type {string}
62
- * @memberof HtmlTemplateClass
63
- */
64
- 'deletedAt': string;
65
59
  }
66
60
 
package/models/index.ts CHANGED
@@ -19,6 +19,7 @@ export * from './layout-class';
19
19
  export * from './list-layouts-response-class';
20
20
  export * from './list-notification-templates-response-class';
21
21
  export * from './notification-template-class';
22
+ export * from './s3-document-dto';
22
23
  export * from './send-notification-request-dto';
23
24
  export * from './send-notification-response-class';
24
25
  export * from './update-html-template-request-dto';
@@ -27,7 +27,7 @@ export interface InitiateEmailVerificationDto {
27
27
  */
28
28
  'email': string;
29
29
  /**
30
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
30
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
31
31
  * @type {string}
32
32
  * @memberof InitiateEmailVerificationDto
33
33
  */
@@ -28,21 +28,21 @@ export interface InlineResponse200 {
28
28
  'status'?: string;
29
29
  /**
30
30
  *
31
- * @type {{ [key: string]: { [key: string]: string; }; }}
31
+ * @type {{ [key: string]: { [key: string]: object; }; }}
32
32
  * @memberof InlineResponse200
33
33
  */
34
- 'info'?: { [key: string]: { [key: string]: string; }; } | null;
34
+ 'info'?: { [key: string]: { [key: string]: object; }; } | null;
35
35
  /**
36
36
  *
37
- * @type {{ [key: string]: { [key: string]: string; }; }}
37
+ * @type {{ [key: string]: { [key: string]: object; }; }}
38
38
  * @memberof InlineResponse200
39
39
  */
40
- 'error'?: { [key: string]: { [key: string]: string; }; } | null;
40
+ 'error'?: { [key: string]: { [key: string]: object; }; } | null;
41
41
  /**
42
42
  *
43
- * @type {{ [key: string]: { [key: string]: string; }; }}
43
+ * @type {{ [key: string]: { [key: string]: object; }; }}
44
44
  * @memberof InlineResponse200
45
45
  */
46
- 'details'?: { [key: string]: { [key: string]: string; }; };
46
+ 'details'?: { [key: string]: { [key: string]: object; }; };
47
47
  }
48
48
 
@@ -28,21 +28,21 @@ export interface InlineResponse503 {
28
28
  'status'?: string;
29
29
  /**
30
30
  *
31
- * @type {{ [key: string]: { [key: string]: string; }; }}
31
+ * @type {{ [key: string]: { [key: string]: object; }; }}
32
32
  * @memberof InlineResponse503
33
33
  */
34
- 'info'?: { [key: string]: { [key: string]: string; }; } | null;
34
+ 'info'?: { [key: string]: { [key: string]: object; }; } | null;
35
35
  /**
36
36
  *
37
- * @type {{ [key: string]: { [key: string]: string; }; }}
37
+ * @type {{ [key: string]: { [key: string]: object; }; }}
38
38
  * @memberof InlineResponse503
39
39
  */
40
- 'error'?: { [key: string]: { [key: string]: string; }; } | null;
40
+ 'error'?: { [key: string]: { [key: string]: object; }; } | null;
41
41
  /**
42
42
  *
43
- * @type {{ [key: string]: { [key: string]: string; }; }}
43
+ * @type {{ [key: string]: { [key: string]: object; }; }}
44
44
  * @memberof InlineResponse503
45
45
  */
46
- 'details'?: { [key: string]: { [key: string]: string; }; };
46
+ 'details'?: { [key: string]: { [key: string]: object; }; };
47
47
  }
48
48
 
@@ -0,0 +1,42 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface S3DocumentDto
21
+ */
22
+ export interface S3DocumentDto {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof S3DocumentDto
27
+ */
28
+ 'bucket'?: string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof S3DocumentDto
33
+ */
34
+ 'key': string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof S3DocumentDto
39
+ */
40
+ 'filename'?: string;
41
+ }
42
+
@@ -13,6 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
+ import { S3DocumentDto } from './s3-document-dto';
16
17
 
17
18
  /**
18
19
  *
@@ -58,10 +59,10 @@ export interface SendNotificationRequestDto {
58
59
  'emailBcc': Array<string>;
59
60
  /**
60
61
  * Attachments for the email. Any attachement has to be uploaded to S3 first before being sent.
61
- * @type {Array<string>}
62
+ * @type {Array<S3DocumentDto>}
62
63
  * @memberof SendNotificationRequestDto
63
64
  */
64
- 'attachments': Array<string>;
65
+ 'attachments': Array<S3DocumentDto>;
65
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
68
  * @type {string}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/notification-sdk-node",
3
- "version": "1.3.0",
3
+ "version": "1.4.1-beta.0",
4
4
  "description": "OpenAPI client for @emilgroup/notification-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
package/tsconfig.json CHANGED
@@ -5,6 +5,7 @@
5
5
  "module": "CommonJS",
6
6
  "noImplicitAny": true,
7
7
  "esModuleInterop": true,
8
+ "noImplicitOverride": true,
8
9
  "outDir": "dist",
9
10
  "rootDir": ".",
10
11
  "lib": [