@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.
- package/.openapi-generator/FILES +38 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +68 -0
- package/api/layouts-api.ts +663 -0
- package/api/notification-templates-api.ts +677 -0
- package/api/notifications-api.ts +165 -0
- package/api.ts +35 -0
- package/base.ts +284 -0
- package/common.ts +199 -0
- package/configuration.ts +109 -0
- package/dist/api/layouts-api.d.ts +364 -0
- package/dist/api/layouts-api.js +622 -0
- package/dist/api/notification-templates-api.d.ts +373 -0
- package/dist/api/notification-templates-api.js +628 -0
- package/dist/api/notifications-api.d.ts +93 -0
- package/dist/api/notifications-api.js +224 -0
- package/dist/api.d.ts +14 -0
- package/dist/api.js +32 -0
- package/dist/base.d.ts +77 -0
- package/dist/base.js +393 -0
- package/dist/common.d.ts +92 -0
- package/dist/common.js +277 -0
- package/dist/configuration.d.ts +90 -0
- package/dist/configuration.js +44 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +36 -0
- package/dist/models/create-layout-request-dto.d.ts +48 -0
- package/dist/models/create-layout-request-dto.js +15 -0
- package/dist/models/create-layout-response-class.d.ts +25 -0
- package/dist/models/create-layout-response-class.js +15 -0
- package/dist/models/create-notification-template-request-dto.d.ts +66 -0
- package/dist/models/create-notification-template-request-dto.js +15 -0
- package/dist/models/create-notification-template-response-class.d.ts +25 -0
- package/dist/models/create-notification-template-response-class.js +15 -0
- package/dist/models/delete-layout-request-dto.d.ts +24 -0
- package/dist/models/delete-layout-request-dto.js +15 -0
- package/dist/models/delete-notification-template-request-dto.d.ts +24 -0
- package/dist/models/delete-notification-template-request-dto.js +15 -0
- package/dist/models/get-layout-request-dto.d.ts +24 -0
- package/dist/models/get-layout-request-dto.js +15 -0
- package/dist/models/get-layout-response-class.d.ts +25 -0
- package/dist/models/get-layout-response-class.js +15 -0
- package/dist/models/get-notification-template-request-dto.d.ts +30 -0
- package/dist/models/get-notification-template-request-dto.js +15 -0
- package/dist/models/get-notification-template-response-class.d.ts +25 -0
- package/dist/models/get-notification-template-response-class.js +15 -0
- package/dist/models/html-template-class.d.ts +60 -0
- package/dist/models/html-template-class.js +15 -0
- package/dist/models/index.d.ts +22 -0
- package/dist/models/index.js +38 -0
- package/dist/models/layout-class.d.ts +73 -0
- package/dist/models/layout-class.js +15 -0
- package/dist/models/list-layouts-response-class.d.ts +30 -0
- package/dist/models/list-layouts-response-class.js +15 -0
- package/dist/models/list-notification-templates-response-class.d.ts +30 -0
- package/dist/models/list-notification-templates-response-class.js +15 -0
- package/dist/models/notification-template-class.d.ts +98 -0
- package/dist/models/notification-template-class.js +15 -0
- package/dist/models/send-notification-request-dto.d.ts +66 -0
- package/dist/models/send-notification-request-dto.js +15 -0
- package/dist/models/send-notification-response-class.d.ts +24 -0
- package/dist/models/send-notification-response-class.js +15 -0
- package/dist/models/update-html-template-request-dto.d.ts +42 -0
- package/dist/models/update-html-template-request-dto.js +21 -0
- package/dist/models/update-layout-request-dto.d.ts +55 -0
- package/dist/models/update-layout-request-dto.js +15 -0
- package/dist/models/update-layout-response-class.d.ts +25 -0
- package/dist/models/update-layout-response-class.js +15 -0
- package/dist/models/update-notification-template-request-dto.d.ts +73 -0
- package/dist/models/update-notification-template-request-dto.js +15 -0
- package/dist/models/update-notification-template-response-class.d.ts +25 -0
- package/dist/models/update-notification-template-response-class.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/create-layout-request-dto.ts +54 -0
- package/models/create-layout-response-class.ts +31 -0
- package/models/create-notification-template-request-dto.ts +72 -0
- package/models/create-notification-template-response-class.ts +31 -0
- package/models/delete-layout-request-dto.ts +30 -0
- package/models/delete-notification-template-request-dto.ts +30 -0
- package/models/get-layout-request-dto.ts +30 -0
- package/models/get-layout-response-class.ts +31 -0
- package/models/get-notification-template-request-dto.ts +36 -0
- package/models/get-notification-template-response-class.ts +31 -0
- package/models/html-template-class.ts +66 -0
- package/models/index.ts +22 -0
- package/models/layout-class.ts +79 -0
- package/models/list-layouts-response-class.ts +36 -0
- package/models/list-notification-templates-response-class.ts +36 -0
- package/models/notification-template-class.ts +104 -0
- package/models/send-notification-request-dto.ts +72 -0
- package/models/send-notification-response-class.ts +30 -0
- package/models/update-html-template-request-dto.ts +51 -0
- package/models/update-layout-request-dto.ts +61 -0
- package/models/update-layout-response-class.ts +31 -0
- package/models/update-notification-template-request-dto.ts +79 -0
- package/models/update-notification-template-response-class.ts +31 -0
- package/package.json +29 -0
- package/tsconfig.json +22 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL NotificationService
|
|
3
|
+
* The EMIL NotificationService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
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 { HtmlTemplateClass } from './html-template-class';
|
|
13
|
+
import { LayoutClass } from './layout-class';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface NotificationTemplateClass
|
|
18
|
+
*/
|
|
19
|
+
export interface NotificationTemplateClass {
|
|
20
|
+
/**
|
|
21
|
+
* Template id
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof NotificationTemplateClass
|
|
24
|
+
*/
|
|
25
|
+
'id': number;
|
|
26
|
+
/**
|
|
27
|
+
* Record owner
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof NotificationTemplateClass
|
|
30
|
+
*/
|
|
31
|
+
'owner': string;
|
|
32
|
+
/**
|
|
33
|
+
* Template name
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof NotificationTemplateClass
|
|
36
|
+
*/
|
|
37
|
+
'name': string;
|
|
38
|
+
/**
|
|
39
|
+
* Template slug
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof NotificationTemplateClass
|
|
42
|
+
*/
|
|
43
|
+
'slug': string;
|
|
44
|
+
/**
|
|
45
|
+
* Layout id
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof NotificationTemplateClass
|
|
48
|
+
*/
|
|
49
|
+
'layoutId': number;
|
|
50
|
+
/**
|
|
51
|
+
* Body Template
|
|
52
|
+
* @type {HtmlTemplateClass}
|
|
53
|
+
* @memberof NotificationTemplateClass
|
|
54
|
+
*/
|
|
55
|
+
'bodyTemplate': HtmlTemplateClass;
|
|
56
|
+
/**
|
|
57
|
+
* Template Layout
|
|
58
|
+
* @type {LayoutClass}
|
|
59
|
+
* @memberof NotificationTemplateClass
|
|
60
|
+
*/
|
|
61
|
+
'layout': LayoutClass;
|
|
62
|
+
/**
|
|
63
|
+
* Template created at
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof NotificationTemplateClass
|
|
66
|
+
*/
|
|
67
|
+
'createdAt': string;
|
|
68
|
+
/**
|
|
69
|
+
* Template updated at
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof NotificationTemplateClass
|
|
72
|
+
*/
|
|
73
|
+
'updatedAt': string;
|
|
74
|
+
/**
|
|
75
|
+
* Email sent to
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof NotificationTemplateClass
|
|
78
|
+
*/
|
|
79
|
+
'defaultEmailTo': string;
|
|
80
|
+
/**
|
|
81
|
+
* Email cc to
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof NotificationTemplateClass
|
|
84
|
+
*/
|
|
85
|
+
'defaultEmailCc': string;
|
|
86
|
+
/**
|
|
87
|
+
* Email bcc to
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof NotificationTemplateClass
|
|
90
|
+
*/
|
|
91
|
+
'defaultEmailBcc': string;
|
|
92
|
+
/**
|
|
93
|
+
* Email subject
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof NotificationTemplateClass
|
|
96
|
+
*/
|
|
97
|
+
'defaultEmailSubject': string;
|
|
98
|
+
}
|
|
@@ -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
|
+
*
|
|
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 });
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL NotificationService
|
|
3
|
+
* The EMIL NotificationService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
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 SendNotificationRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface SendNotificationRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifying slug from template to be used for the email
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SendNotificationRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'templateSlug': string;
|
|
24
|
+
/**
|
|
25
|
+
* Subject of the email
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SendNotificationRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'emailSubject'?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Email address of the sender
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SendNotificationRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'emailSender'?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Email address of the reciever
|
|
38
|
+
* @type {Array<string>}
|
|
39
|
+
* @memberof SendNotificationRequestDto
|
|
40
|
+
*/
|
|
41
|
+
'emailTo': Array<string>;
|
|
42
|
+
/**
|
|
43
|
+
* Email addresses of the reciepents who will be recieving copy of the email
|
|
44
|
+
* @type {Array<string>}
|
|
45
|
+
* @memberof SendNotificationRequestDto
|
|
46
|
+
*/
|
|
47
|
+
'emailCc': Array<string>;
|
|
48
|
+
/**
|
|
49
|
+
* Email addresses of the reciepents who will be recieving copy of the email without of them knowing who else recieved the copy
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof SendNotificationRequestDto
|
|
52
|
+
*/
|
|
53
|
+
'emailBcc': Array<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Attachments for the email. Any attachement has to be uploaded to S3 first before being sent.
|
|
56
|
+
* @type {Array<string>}
|
|
57
|
+
* @memberof SendNotificationRequestDto
|
|
58
|
+
*/
|
|
59
|
+
'attachments': Array<string>;
|
|
60
|
+
/**
|
|
61
|
+
* 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.
|
|
62
|
+
* @type {object}
|
|
63
|
+
* @memberof SendNotificationRequestDto
|
|
64
|
+
*/
|
|
65
|
+
'payload': object;
|
|
66
|
+
}
|
|
@@ -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
|
+
*
|
|
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 });
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL NotificationService
|
|
3
|
+
* The EMIL NotificationService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
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 SendNotificationResponseClass
|
|
16
|
+
*/
|
|
17
|
+
export interface SendNotificationResponseClass {
|
|
18
|
+
/**
|
|
19
|
+
* Notification request code
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SendNotificationResponseClass
|
|
22
|
+
*/
|
|
23
|
+
'code': string;
|
|
24
|
+
}
|
|
@@ -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
|
+
*
|
|
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 });
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL NotificationService
|
|
3
|
+
* The EMIL NotificationService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
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 UpdateHtmlTemplateRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateHtmlTemplateRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof UpdateHtmlTemplateRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'id': number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UpdateHtmlTemplateRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'type': UpdateHtmlTemplateRequestDtoTypeEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateHtmlTemplateRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'draftContent': string;
|
|
36
|
+
}
|
|
37
|
+
export declare const UpdateHtmlTemplateRequestDtoTypeEnum: {
|
|
38
|
+
readonly Header: "header";
|
|
39
|
+
readonly Footer: "footer";
|
|
40
|
+
readonly Body: "body";
|
|
41
|
+
};
|
|
42
|
+
export type UpdateHtmlTemplateRequestDtoTypeEnum = typeof UpdateHtmlTemplateRequestDtoTypeEnum[keyof typeof UpdateHtmlTemplateRequestDtoTypeEnum];
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
*
|
|
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.UpdateHtmlTemplateRequestDtoTypeEnum = void 0;
|
|
17
|
+
exports.UpdateHtmlTemplateRequestDtoTypeEnum = {
|
|
18
|
+
Header: 'header',
|
|
19
|
+
Footer: 'footer',
|
|
20
|
+
Body: 'body'
|
|
21
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL NotificationService
|
|
3
|
+
* The EMIL NotificationService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
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 { UpdateHtmlTemplateRequestDto } from './update-html-template-request-dto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateLayoutRequestDto
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateLayoutRequestDto {
|
|
19
|
+
/**
|
|
20
|
+
* Layout id
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof UpdateLayoutRequestDto
|
|
23
|
+
*/
|
|
24
|
+
'id': number;
|
|
25
|
+
/**
|
|
26
|
+
* Layout name
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof UpdateLayoutRequestDto
|
|
29
|
+
*/
|
|
30
|
+
'name': string;
|
|
31
|
+
/**
|
|
32
|
+
* Layout slug
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof UpdateLayoutRequestDto
|
|
35
|
+
*/
|
|
36
|
+
'slug': string;
|
|
37
|
+
/**
|
|
38
|
+
* Layout style
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof UpdateLayoutRequestDto
|
|
41
|
+
*/
|
|
42
|
+
'style': string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {UpdateHtmlTemplateRequestDto}
|
|
46
|
+
* @memberof UpdateLayoutRequestDto
|
|
47
|
+
*/
|
|
48
|
+
'headerTemplate': UpdateHtmlTemplateRequestDto;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {UpdateHtmlTemplateRequestDto}
|
|
52
|
+
* @memberof UpdateLayoutRequestDto
|
|
53
|
+
*/
|
|
54
|
+
'footerTemplate': UpdateHtmlTemplateRequestDto;
|
|
55
|
+
}
|
|
@@ -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
|
+
*
|
|
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 });
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL NotificationService
|
|
3
|
+
* The EMIL NotificationService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
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 { LayoutClass } from './layout-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateLayoutResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateLayoutResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* Layout
|
|
21
|
+
* @type {LayoutClass}
|
|
22
|
+
* @memberof UpdateLayoutResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'layout': LayoutClass;
|
|
25
|
+
}
|
|
@@ -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
|
+
*
|
|
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 });
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL NotificationService
|
|
3
|
+
* The EMIL NotificationService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
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 { UpdateHtmlTemplateRequestDto } from './update-html-template-request-dto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateNotificationTemplateRequestDto
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateNotificationTemplateRequestDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof UpdateNotificationTemplateRequestDto
|
|
23
|
+
*/
|
|
24
|
+
'id': number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof UpdateNotificationTemplateRequestDto
|
|
29
|
+
*/
|
|
30
|
+
'name': string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof UpdateNotificationTemplateRequestDto
|
|
35
|
+
*/
|
|
36
|
+
'slug': string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof UpdateNotificationTemplateRequestDto
|
|
41
|
+
*/
|
|
42
|
+
'layoutId': number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {UpdateHtmlTemplateRequestDto}
|
|
46
|
+
* @memberof UpdateNotificationTemplateRequestDto
|
|
47
|
+
*/
|
|
48
|
+
'bodyTemplate': UpdateHtmlTemplateRequestDto;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof UpdateNotificationTemplateRequestDto
|
|
53
|
+
*/
|
|
54
|
+
'defaultEmailTo'?: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof UpdateNotificationTemplateRequestDto
|
|
59
|
+
*/
|
|
60
|
+
'defaultEmailCc'?: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof UpdateNotificationTemplateRequestDto
|
|
65
|
+
*/
|
|
66
|
+
'defaultEmailBcc'?: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof UpdateNotificationTemplateRequestDto
|
|
71
|
+
*/
|
|
72
|
+
'defaultEmailSubject'?: string;
|
|
73
|
+
}
|
|
@@ -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
|
+
*
|
|
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 });
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL NotificationService
|
|
3
|
+
* The EMIL NotificationService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
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 { NotificationTemplateClass } from './notification-template-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateNotificationTemplateResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateNotificationTemplateResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* Notification template
|
|
21
|
+
* @type {NotificationTemplateClass}
|
|
22
|
+
* @memberof UpdateNotificationTemplateResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'template': NotificationTemplateClass;
|
|
25
|
+
}
|
|
@@ -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
|
+
*
|
|
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 });
|
package/git_push.sh
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
|
3
|
+
#
|
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
|
5
|
+
|
|
6
|
+
git_user_id=$1
|
|
7
|
+
git_repo_id=$2
|
|
8
|
+
release_note=$3
|
|
9
|
+
git_host=$4
|
|
10
|
+
|
|
11
|
+
if [ "$git_host" = "" ]; then
|
|
12
|
+
git_host="github.com"
|
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
|
17
|
+
git_user_id="Emil"
|
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
19
|
+
fi
|
|
20
|
+
|
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
|
22
|
+
git_repo_id="notification-sdk-node"
|
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
24
|
+
fi
|
|
25
|
+
|
|
26
|
+
if [ "$release_note" = "" ]; then
|
|
27
|
+
release_note="Minor update"
|
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
29
|
+
fi
|
|
30
|
+
|
|
31
|
+
# Initialize the local directory as a Git repository
|
|
32
|
+
git init
|
|
33
|
+
|
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
|
35
|
+
git add .
|
|
36
|
+
|
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
38
|
+
git commit -m "$release_note"
|
|
39
|
+
|
|
40
|
+
# Sets the new remote
|
|
41
|
+
git_remote=$(git remote)
|
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
|
43
|
+
|
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
|
47
|
+
else
|
|
48
|
+
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
|
49
|
+
fi
|
|
50
|
+
|
|
51
|
+
fi
|
|
52
|
+
|
|
53
|
+
git pull origin master
|
|
54
|
+
|
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|
package/index.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
export { Environment, BaseAPI } from "./base";
|
|
17
|
+
export * from "./api";
|
|
18
|
+
export * from "./configuration";
|
|
19
|
+
export * from "./models";
|
|
@@ -0,0 +1,54 @@
|
|
|
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 CreateLayoutRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateLayoutRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof CreateLayoutRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'name': string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CreateLayoutRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'slug': string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CreateLayoutRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'headerTemplate': string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof CreateLayoutRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'footerTemplate': string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof CreateLayoutRequestDto
|
|
51
|
+
*/
|
|
52
|
+
'style': string;
|
|
53
|
+
}
|
|
54
|
+
|