@emilgroup/notification-sdk-node 1.0.0-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 (100) hide show
  1. package/.openapi-generator/FILES +38 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +68 -0
  5. package/api/layouts-api.ts +663 -0
  6. package/api/notification-templates-api.ts +677 -0
  7. package/api/notifications-api.ts +165 -0
  8. package/api.ts +35 -0
  9. package/base.ts +284 -0
  10. package/common.ts +199 -0
  11. package/configuration.ts +109 -0
  12. package/dist/api/layouts-api.d.ts +364 -0
  13. package/dist/api/layouts-api.js +622 -0
  14. package/dist/api/notification-templates-api.d.ts +373 -0
  15. package/dist/api/notification-templates-api.js +628 -0
  16. package/dist/api/notifications-api.d.ts +93 -0
  17. package/dist/api/notifications-api.js +224 -0
  18. package/dist/api.d.ts +14 -0
  19. package/dist/api.js +32 -0
  20. package/dist/base.d.ts +77 -0
  21. package/dist/base.js +393 -0
  22. package/dist/common.d.ts +92 -0
  23. package/dist/common.js +277 -0
  24. package/dist/configuration.d.ts +90 -0
  25. package/dist/configuration.js +44 -0
  26. package/dist/index.d.ts +15 -0
  27. package/dist/index.js +36 -0
  28. package/dist/models/create-layout-request-dto.d.ts +48 -0
  29. package/dist/models/create-layout-request-dto.js +15 -0
  30. package/dist/models/create-layout-response-class.d.ts +25 -0
  31. package/dist/models/create-layout-response-class.js +15 -0
  32. package/dist/models/create-notification-template-request-dto.d.ts +66 -0
  33. package/dist/models/create-notification-template-request-dto.js +15 -0
  34. package/dist/models/create-notification-template-response-class.d.ts +25 -0
  35. package/dist/models/create-notification-template-response-class.js +15 -0
  36. package/dist/models/delete-layout-request-dto.d.ts +24 -0
  37. package/dist/models/delete-layout-request-dto.js +15 -0
  38. package/dist/models/delete-notification-template-request-dto.d.ts +24 -0
  39. package/dist/models/delete-notification-template-request-dto.js +15 -0
  40. package/dist/models/get-layout-request-dto.d.ts +24 -0
  41. package/dist/models/get-layout-request-dto.js +15 -0
  42. package/dist/models/get-layout-response-class.d.ts +25 -0
  43. package/dist/models/get-layout-response-class.js +15 -0
  44. package/dist/models/get-notification-template-request-dto.d.ts +30 -0
  45. package/dist/models/get-notification-template-request-dto.js +15 -0
  46. package/dist/models/get-notification-template-response-class.d.ts +25 -0
  47. package/dist/models/get-notification-template-response-class.js +15 -0
  48. package/dist/models/html-template-class.d.ts +60 -0
  49. package/dist/models/html-template-class.js +15 -0
  50. package/dist/models/index.d.ts +22 -0
  51. package/dist/models/index.js +38 -0
  52. package/dist/models/layout-class.d.ts +73 -0
  53. package/dist/models/layout-class.js +15 -0
  54. package/dist/models/list-layouts-response-class.d.ts +30 -0
  55. package/dist/models/list-layouts-response-class.js +15 -0
  56. package/dist/models/list-notification-templates-response-class.d.ts +30 -0
  57. package/dist/models/list-notification-templates-response-class.js +15 -0
  58. package/dist/models/notification-template-class.d.ts +98 -0
  59. package/dist/models/notification-template-class.js +15 -0
  60. package/dist/models/send-notification-request-dto.d.ts +66 -0
  61. package/dist/models/send-notification-request-dto.js +15 -0
  62. package/dist/models/send-notification-response-class.d.ts +24 -0
  63. package/dist/models/send-notification-response-class.js +15 -0
  64. package/dist/models/update-html-template-request-dto.d.ts +42 -0
  65. package/dist/models/update-html-template-request-dto.js +21 -0
  66. package/dist/models/update-layout-request-dto.d.ts +55 -0
  67. package/dist/models/update-layout-request-dto.js +15 -0
  68. package/dist/models/update-layout-response-class.d.ts +25 -0
  69. package/dist/models/update-layout-response-class.js +15 -0
  70. package/dist/models/update-notification-template-request-dto.d.ts +73 -0
  71. package/dist/models/update-notification-template-request-dto.js +15 -0
  72. package/dist/models/update-notification-template-response-class.d.ts +25 -0
  73. package/dist/models/update-notification-template-response-class.js +15 -0
  74. package/git_push.sh +57 -0
  75. package/index.ts +19 -0
  76. package/models/create-layout-request-dto.ts +54 -0
  77. package/models/create-layout-response-class.ts +31 -0
  78. package/models/create-notification-template-request-dto.ts +72 -0
  79. package/models/create-notification-template-response-class.ts +31 -0
  80. package/models/delete-layout-request-dto.ts +30 -0
  81. package/models/delete-notification-template-request-dto.ts +30 -0
  82. package/models/get-layout-request-dto.ts +30 -0
  83. package/models/get-layout-response-class.ts +31 -0
  84. package/models/get-notification-template-request-dto.ts +36 -0
  85. package/models/get-notification-template-response-class.ts +31 -0
  86. package/models/html-template-class.ts +66 -0
  87. package/models/index.ts +22 -0
  88. package/models/layout-class.ts +79 -0
  89. package/models/list-layouts-response-class.ts +36 -0
  90. package/models/list-notification-templates-response-class.ts +36 -0
  91. package/models/notification-template-class.ts +104 -0
  92. package/models/send-notification-request-dto.ts +72 -0
  93. package/models/send-notification-response-class.ts +30 -0
  94. package/models/update-html-template-request-dto.ts +51 -0
  95. package/models/update-layout-request-dto.ts +61 -0
  96. package/models/update-layout-response-class.ts +31 -0
  97. package/models/update-notification-template-request-dto.ts +79 -0
  98. package/models/update-notification-template-response-class.ts +31 -0
  99. package/package.json +29 -0
  100. package/tsconfig.json +22 -0
@@ -0,0 +1,72 @@
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
+ *
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 SendNotificationRequestDto
21
+ */
22
+ export interface SendNotificationRequestDto {
23
+ /**
24
+ * Unique identifying slug from template to be used for the email
25
+ * @type {string}
26
+ * @memberof SendNotificationRequestDto
27
+ */
28
+ 'templateSlug': string;
29
+ /**
30
+ * Subject of the email
31
+ * @type {string}
32
+ * @memberof SendNotificationRequestDto
33
+ */
34
+ 'emailSubject'?: string;
35
+ /**
36
+ * Email address of the sender
37
+ * @type {string}
38
+ * @memberof SendNotificationRequestDto
39
+ */
40
+ 'emailSender'?: string;
41
+ /**
42
+ * Email address of the reciever
43
+ * @type {Array<string>}
44
+ * @memberof SendNotificationRequestDto
45
+ */
46
+ 'emailTo': Array<string>;
47
+ /**
48
+ * Email addresses of the reciepents who will be recieving copy of the email
49
+ * @type {Array<string>}
50
+ * @memberof SendNotificationRequestDto
51
+ */
52
+ 'emailCc': Array<string>;
53
+ /**
54
+ * Email addresses of the reciepents who will be recieving copy of the email without of them knowing who else recieved the copy
55
+ * @type {Array<string>}
56
+ * @memberof SendNotificationRequestDto
57
+ */
58
+ 'emailBcc': Array<string>;
59
+ /**
60
+ * Attachments for the email. Any attachement has to be uploaded to S3 first before being sent.
61
+ * @type {Array<string>}
62
+ * @memberof SendNotificationRequestDto
63
+ */
64
+ 'attachments': Array<string>;
65
+ /**
66
+ * 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.
67
+ * @type {object}
68
+ * @memberof SendNotificationRequestDto
69
+ */
70
+ 'payload': object;
71
+ }
72
+
@@ -0,0 +1,30 @@
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
+ *
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 SendNotificationResponseClass
21
+ */
22
+ export interface SendNotificationResponseClass {
23
+ /**
24
+ * Notification request code
25
+ * @type {string}
26
+ * @memberof SendNotificationResponseClass
27
+ */
28
+ 'code': string;
29
+ }
30
+
@@ -0,0 +1,51 @@
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
+ *
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 UpdateHtmlTemplateRequestDto
21
+ */
22
+ export interface UpdateHtmlTemplateRequestDto {
23
+ /**
24
+ *
25
+ * @type {number}
26
+ * @memberof UpdateHtmlTemplateRequestDto
27
+ */
28
+ 'id': number;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof UpdateHtmlTemplateRequestDto
33
+ */
34
+ 'type': UpdateHtmlTemplateRequestDtoTypeEnum;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof UpdateHtmlTemplateRequestDto
39
+ */
40
+ 'draftContent': string;
41
+ }
42
+
43
+ export const UpdateHtmlTemplateRequestDtoTypeEnum = {
44
+ Header: 'header',
45
+ Footer: 'footer',
46
+ Body: 'body'
47
+ } as const;
48
+
49
+ export type UpdateHtmlTemplateRequestDtoTypeEnum = typeof UpdateHtmlTemplateRequestDtoTypeEnum[keyof typeof UpdateHtmlTemplateRequestDtoTypeEnum];
50
+
51
+
@@ -0,0 +1,61 @@
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
+ *
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 { UpdateHtmlTemplateRequestDto } from './update-html-template-request-dto';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface UpdateLayoutRequestDto
22
+ */
23
+ export interface UpdateLayoutRequestDto {
24
+ /**
25
+ * Layout id
26
+ * @type {number}
27
+ * @memberof UpdateLayoutRequestDto
28
+ */
29
+ 'id': number;
30
+ /**
31
+ * Layout name
32
+ * @type {string}
33
+ * @memberof UpdateLayoutRequestDto
34
+ */
35
+ 'name': string;
36
+ /**
37
+ * Layout slug
38
+ * @type {string}
39
+ * @memberof UpdateLayoutRequestDto
40
+ */
41
+ 'slug': string;
42
+ /**
43
+ * Layout style
44
+ * @type {string}
45
+ * @memberof UpdateLayoutRequestDto
46
+ */
47
+ 'style': string;
48
+ /**
49
+ *
50
+ * @type {UpdateHtmlTemplateRequestDto}
51
+ * @memberof UpdateLayoutRequestDto
52
+ */
53
+ 'headerTemplate': UpdateHtmlTemplateRequestDto;
54
+ /**
55
+ *
56
+ * @type {UpdateHtmlTemplateRequestDto}
57
+ * @memberof UpdateLayoutRequestDto
58
+ */
59
+ 'footerTemplate': UpdateHtmlTemplateRequestDto;
60
+ }
61
+
@@ -0,0 +1,31 @@
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
+ *
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 { LayoutClass } from './layout-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface UpdateLayoutResponseClass
22
+ */
23
+ export interface UpdateLayoutResponseClass {
24
+ /**
25
+ * Layout
26
+ * @type {LayoutClass}
27
+ * @memberof UpdateLayoutResponseClass
28
+ */
29
+ 'layout': LayoutClass;
30
+ }
31
+
@@ -0,0 +1,79 @@
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
+ *
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 { UpdateHtmlTemplateRequestDto } from './update-html-template-request-dto';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface UpdateNotificationTemplateRequestDto
22
+ */
23
+ export interface UpdateNotificationTemplateRequestDto {
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof UpdateNotificationTemplateRequestDto
28
+ */
29
+ 'id': number;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof UpdateNotificationTemplateRequestDto
34
+ */
35
+ 'name': string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof UpdateNotificationTemplateRequestDto
40
+ */
41
+ 'slug': string;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof UpdateNotificationTemplateRequestDto
46
+ */
47
+ 'layoutId': number;
48
+ /**
49
+ *
50
+ * @type {UpdateHtmlTemplateRequestDto}
51
+ * @memberof UpdateNotificationTemplateRequestDto
52
+ */
53
+ 'bodyTemplate': UpdateHtmlTemplateRequestDto;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof UpdateNotificationTemplateRequestDto
58
+ */
59
+ 'defaultEmailTo'?: string;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof UpdateNotificationTemplateRequestDto
64
+ */
65
+ 'defaultEmailCc'?: string;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof UpdateNotificationTemplateRequestDto
70
+ */
71
+ 'defaultEmailBcc'?: string;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof UpdateNotificationTemplateRequestDto
76
+ */
77
+ 'defaultEmailSubject'?: string;
78
+ }
79
+
@@ -0,0 +1,31 @@
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
+ *
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 { NotificationTemplateClass } from './notification-template-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface UpdateNotificationTemplateResponseClass
22
+ */
23
+ export interface UpdateNotificationTemplateResponseClass {
24
+ /**
25
+ * Notification template
26
+ * @type {NotificationTemplateClass}
27
+ * @memberof UpdateNotificationTemplateResponseClass
28
+ */
29
+ 'template': NotificationTemplateClass;
30
+ }
31
+
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "@emilgroup/notification-sdk-node",
3
+ "version": "1.0.0-beta.0",
4
+ "description": "OpenAPI client for @emilgroup/notification-sdk-node",
5
+ "author": "OpenAPI-Generator Contributors",
6
+ "keywords": [
7
+ "axios",
8
+ "typescript",
9
+ "openapi-client",
10
+ "openapi-generator",
11
+ "@emilgroup/notification-sdk-node"
12
+ ],
13
+ "license": "Unlicense",
14
+ "main": "./dist/index.js",
15
+ "typings": "./dist/index.d.ts",
16
+ "scripts": {
17
+ "build": "tsc --outDir dist/",
18
+ "prepare": "npm run build"
19
+ },
20
+ "dependencies": {
21
+ "axios": "^0.27.2",
22
+ "form-data": "^4.0.0",
23
+ "url": "^0.11.0"
24
+ },
25
+ "devDependencies": {
26
+ "@types/node": "^12.11.5",
27
+ "typescript": "^4.0"
28
+ }
29
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "compilerOptions": {
3
+ "declaration": true,
4
+ "target": "ES5",
5
+ "module": "CommonJS",
6
+ "noImplicitAny": true,
7
+ "esModuleInterop": true,
8
+ "outDir": "dist",
9
+ "rootDir": ".",
10
+ "lib": [
11
+ "es6",
12
+ "dom"
13
+ ],
14
+ "typeRoots": [
15
+ "node_modules/@types"
16
+ ]
17
+ },
18
+ "exclude": [
19
+ "dist",
20
+ "node_modules"
21
+ ]
22
+ }