@emilgroup/notification-sdk 0.8.1-beta.7 → 0.8.1-beta.70
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 +25 -0
- package/README.md +2 -2
- package/api/email-mailboxes-api.ts +153 -0
- package/api/email-messages-api.ts +197 -40
- package/api/email-subscriptions-api.ts +799 -0
- package/api/email-tracking-api.ts +313 -52
- package/api/email-verifications-api.ts +32 -14
- package/api/health-api.ts +1 -1
- package/api/layouts-api.ts +96 -51
- package/api/msgraph-webhooks-api.ts +278 -0
- package/api/notification-templates-api.ts +96 -51
- package/api/notifications-api.ts +128 -7
- package/api.ts +6 -0
- package/base.ts +239 -43
- package/common.ts +3 -2
- package/configuration.ts +20 -0
- package/dist/api/email-mailboxes-api.d.ts +87 -0
- package/dist/api/email-mailboxes-api.js +225 -0
- package/dist/api/email-messages-api.d.ts +110 -32
- package/dist/api/email-messages-api.js +199 -56
- package/dist/api/email-subscriptions-api.d.ts +432 -0
- package/dist/api/email-subscriptions-api.js +761 -0
- package/dist/api/email-tracking-api.d.ts +174 -44
- package/dist/api/email-tracking-api.js +299 -64
- package/dist/api/email-verifications-api.d.ts +18 -10
- package/dist/api/email-verifications-api.js +46 -24
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/health-api.js +1 -1
- package/dist/api/layouts-api.d.ts +61 -41
- package/dist/api/layouts-api.js +119 -70
- package/dist/api/msgraph-webhooks-api.d.ts +168 -0
- package/dist/api/msgraph-webhooks-api.js +305 -0
- package/dist/api/notification-templates-api.d.ts +61 -41
- package/dist/api/notification-templates-api.js +119 -70
- package/dist/api/notifications-api.d.ts +66 -5
- package/dist/api/notifications-api.js +123 -12
- package/dist/api.d.ts +3 -0
- package/dist/api.js +3 -0
- package/dist/base.d.ts +26 -0
- package/dist/base.js +243 -60
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/configuration.d.ts +17 -0
- package/dist/configuration.js +2 -0
- package/dist/models/assign-email-thread-entity-body-dto.d.ts +43 -0
- package/dist/models/assign-email-thread-entity-body-dto.js +22 -0
- package/dist/models/assign-email-thread-entity-response-class.d.ts +25 -0
- package/dist/models/assign-email-thread-entity-response-class.js +15 -0
- package/dist/models/catch-up-email-subscription-response-class.d.ts +24 -0
- package/dist/models/catch-up-email-subscription-response-class.js +15 -0
- package/dist/models/catch-up-email-subscriptions-request-dto.d.ts +24 -0
- package/dist/models/catch-up-email-subscriptions-request-dto.js +15 -0
- package/dist/models/catch-up-email-subscriptions-response-class.d.ts +30 -0
- package/dist/models/catch-up-email-subscriptions-response-class.js +15 -0
- package/dist/models/email-mailbox-class.d.ts +47 -0
- package/dist/models/email-mailbox-class.js +20 -0
- package/dist/models/email-message-class.d.ts +102 -7
- package/dist/models/email-message-class.js +25 -2
- package/dist/models/email-message-summary-class.d.ts +121 -0
- package/dist/models/email-message-summary-class.js +37 -0
- package/dist/models/email-subscription-class.d.ts +110 -0
- package/dist/models/email-subscription-class.js +23 -0
- package/dist/models/email-thread-class.d.ts +37 -5
- package/dist/models/entity-ref-class.d.ts +37 -0
- package/dist/models/entity-ref-class.js +22 -0
- package/dist/models/get-email-subscription-response-class.d.ts +25 -0
- package/dist/models/get-email-subscription-response-class.js +15 -0
- package/dist/models/grpc-send-email-request-dto.d.ts +137 -0
- package/dist/models/grpc-send-email-request-dto.js +22 -0
- package/dist/models/index.d.ts +22 -0
- package/dist/models/index.js +22 -0
- package/dist/models/inline-attachment-dto.d.ts +36 -0
- package/dist/models/inline-attachment-dto.js +15 -0
- package/dist/models/list-email-mailboxes-response-class.d.ts +43 -0
- package/dist/models/list-email-mailboxes-response-class.js +15 -0
- package/dist/models/list-email-subscriptions-response-class.d.ts +43 -0
- package/dist/models/list-email-subscriptions-response-class.js +15 -0
- package/dist/models/reconcile-email-subscriptions-request-dto.d.ts +24 -0
- package/dist/models/reconcile-email-subscriptions-request-dto.js +15 -0
- package/dist/models/reconcile-email-subscriptions-response-class.d.ts +48 -0
- package/dist/models/reconcile-email-subscriptions-response-class.js +15 -0
- package/dist/models/renew-email-subscription-response-class.d.ts +25 -0
- package/dist/models/renew-email-subscription-response-class.js +15 -0
- package/dist/models/resend-email-message-body-dto.d.ts +30 -0
- package/dist/models/resend-email-message-body-dto.js +15 -0
- package/dist/models/resend-email-message-response-class.d.ts +25 -0
- package/dist/models/resend-email-message-response-class.js +15 -0
- package/dist/models/send-email-request-dto.d.ts +131 -0
- package/dist/models/send-email-request-dto.js +22 -0
- package/dist/models/send-email-response-class.d.ts +24 -0
- package/dist/models/send-email-response-class.js +15 -0
- package/dist/models/send-notification-request-dto.d.ts +10 -1
- package/dist/models/send-notification-request-dto.js +2 -1
- package/dist/models/unassign-email-thread-entity-response-class.d.ts +25 -0
- package/dist/models/unassign-email-thread-entity-response-class.js +15 -0
- package/models/assign-email-thread-entity-body-dto.ts +52 -0
- package/models/assign-email-thread-entity-response-class.ts +31 -0
- package/models/catch-up-email-subscription-response-class.ts +30 -0
- package/models/catch-up-email-subscriptions-request-dto.ts +30 -0
- package/models/catch-up-email-subscriptions-response-class.ts +36 -0
- package/models/email-mailbox-class.ts +56 -0
- package/models/email-message-class.ts +108 -8
- package/models/email-message-summary-class.ts +133 -0
- package/models/email-subscription-class.ts +119 -0
- package/models/email-thread-class.ts +37 -5
- package/models/entity-ref-class.ts +46 -0
- package/models/get-email-subscription-response-class.ts +31 -0
- package/models/grpc-send-email-request-dto.ts +144 -0
- package/models/index.ts +22 -0
- package/models/inline-attachment-dto.ts +42 -0
- package/models/list-email-mailboxes-response-class.ts +49 -0
- package/models/list-email-subscriptions-response-class.ts +49 -0
- package/models/reconcile-email-subscriptions-request-dto.ts +30 -0
- package/models/reconcile-email-subscriptions-response-class.ts +54 -0
- package/models/renew-email-subscription-response-class.ts +31 -0
- package/models/resend-email-message-body-dto.ts +36 -0
- package/models/resend-email-message-response-class.ts +31 -0
- package/models/send-email-request-dto.ts +138 -0
- package/models/send-email-response-class.ts +30 -0
- package/models/send-notification-request-dto.ts +9 -2
- package/models/unassign-email-thread-entity-response-class.ts +31 -0
- package/package.json +2 -2
package/.openapi-generator/FILES
CHANGED
|
@@ -3,11 +3,14 @@
|
|
|
3
3
|
.openapi-generator-ignore
|
|
4
4
|
README.md
|
|
5
5
|
api.ts
|
|
6
|
+
api/email-mailboxes-api.ts
|
|
6
7
|
api/email-messages-api.ts
|
|
8
|
+
api/email-subscriptions-api.ts
|
|
7
9
|
api/email-tracking-api.ts
|
|
8
10
|
api/email-verifications-api.ts
|
|
9
11
|
api/health-api.ts
|
|
10
12
|
api/layouts-api.ts
|
|
13
|
+
api/msgraph-webhooks-api.ts
|
|
11
14
|
api/notification-templates-api.ts
|
|
12
15
|
api/notifications-api.ts
|
|
13
16
|
base.ts
|
|
@@ -15,6 +18,11 @@ common.ts
|
|
|
15
18
|
configuration.ts
|
|
16
19
|
git_push.sh
|
|
17
20
|
index.ts
|
|
21
|
+
models/assign-email-thread-entity-body-dto.ts
|
|
22
|
+
models/assign-email-thread-entity-response-class.ts
|
|
23
|
+
models/catch-up-email-subscription-response-class.ts
|
|
24
|
+
models/catch-up-email-subscriptions-request-dto.ts
|
|
25
|
+
models/catch-up-email-subscriptions-response-class.ts
|
|
18
26
|
models/complete-email-verification-dto.ts
|
|
19
27
|
models/complete-email-verification-response-class.ts
|
|
20
28
|
models/create-layout-request-dto.ts
|
|
@@ -25,30 +33,47 @@ models/delete-layout-request-dto.ts
|
|
|
25
33
|
models/delete-notification-template-request-dto.ts
|
|
26
34
|
models/download-attachment-response-class.ts
|
|
27
35
|
models/email-attachment-class.ts
|
|
36
|
+
models/email-mailbox-class.ts
|
|
28
37
|
models/email-message-class.ts
|
|
38
|
+
models/email-message-summary-class.ts
|
|
39
|
+
models/email-subscription-class.ts
|
|
29
40
|
models/email-thread-class.ts
|
|
41
|
+
models/entity-ref-class.ts
|
|
30
42
|
models/get-email-message-response-class.ts
|
|
43
|
+
models/get-email-subscription-response-class.ts
|
|
31
44
|
models/get-email-thread-response-class.ts
|
|
32
45
|
models/get-layout-request-dto.ts
|
|
33
46
|
models/get-layout-response-class.ts
|
|
34
47
|
models/get-notification-template-request-dto.ts
|
|
35
48
|
models/get-notification-template-response-class.ts
|
|
49
|
+
models/grpc-send-email-request-dto.ts
|
|
36
50
|
models/html-template-class.ts
|
|
37
51
|
models/index.ts
|
|
38
52
|
models/initiate-email-verification-dto.ts
|
|
39
53
|
models/initiate-email-verification-response-class.ts
|
|
54
|
+
models/inline-attachment-dto.ts
|
|
40
55
|
models/inline-response200.ts
|
|
41
56
|
models/inline-response503.ts
|
|
42
57
|
models/layout-class.ts
|
|
43
58
|
models/list-email-attachments-response-class.ts
|
|
59
|
+
models/list-email-mailboxes-response-class.ts
|
|
44
60
|
models/list-email-messages-response-class.ts
|
|
61
|
+
models/list-email-subscriptions-response-class.ts
|
|
45
62
|
models/list-email-threads-response-class.ts
|
|
46
63
|
models/list-layouts-response-class.ts
|
|
47
64
|
models/list-notification-templates-response-class.ts
|
|
48
65
|
models/notification-template-class.ts
|
|
66
|
+
models/reconcile-email-subscriptions-request-dto.ts
|
|
67
|
+
models/reconcile-email-subscriptions-response-class.ts
|
|
68
|
+
models/renew-email-subscription-response-class.ts
|
|
69
|
+
models/resend-email-message-body-dto.ts
|
|
70
|
+
models/resend-email-message-response-class.ts
|
|
49
71
|
models/s3-document-dto.ts
|
|
72
|
+
models/send-email-request-dto.ts
|
|
73
|
+
models/send-email-response-class.ts
|
|
50
74
|
models/send-notification-request-dto.ts
|
|
51
75
|
models/send-notification-response-class.ts
|
|
76
|
+
models/unassign-email-thread-entity-response-class.ts
|
|
52
77
|
models/update-html-template-request-dto.ts
|
|
53
78
|
models/update-layout-request-dto.ts
|
|
54
79
|
models/update-layout-response-class.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/notification-sdk@0.8.1-beta.
|
|
20
|
+
npm install @emilgroup/notification-sdk@0.8.1-beta.70 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/notification-sdk@0.8.1-beta.
|
|
24
|
+
yarn add @emilgroup/notification-sdk@0.8.1-beta.70
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import ``.
|
|
@@ -0,0 +1,153 @@
|
|
|
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 globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { ListEmailMailboxesResponseClass } from '../models';
|
|
25
|
+
/**
|
|
26
|
+
* EmailMailboxesApi - axios parameter creator
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
export const EmailMailboxesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
30
|
+
return {
|
|
31
|
+
/**
|
|
32
|
+
* Returns the mailboxes of the tenant, sorted by address: the ones its email channel is configured with, merged with the ones that still have messages. Each mailbox carries how many messages it holds per direction. Use the address as the `mailbox` filter when listing email threads or messages. **Required Permissions** \"notification-management.email-messages.view\"
|
|
33
|
+
* @summary List the email mailboxes
|
|
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
|
+
listEmailMailboxes: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39
|
+
const localVarPath = `/notificationservice/v1/email-mailboxes`;
|
|
40
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42
|
+
let baseOptions;
|
|
43
|
+
let baseAccessToken;
|
|
44
|
+
if (configuration) {
|
|
45
|
+
baseOptions = configuration.baseOptions;
|
|
46
|
+
baseAccessToken = configuration.accessToken;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
50
|
+
const localVarHeaderParameter = {} as any;
|
|
51
|
+
const localVarQueryParameter = {} as any;
|
|
52
|
+
|
|
53
|
+
// authentication bearer required
|
|
54
|
+
// http bearer authentication required
|
|
55
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
56
|
+
|
|
57
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
58
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
59
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
60
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
61
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
62
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
63
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
69
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
70
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
71
|
+
|
|
72
|
+
return {
|
|
73
|
+
url: toPathString(localVarUrlObj),
|
|
74
|
+
options: localVarRequestOptions,
|
|
75
|
+
};
|
|
76
|
+
},
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* EmailMailboxesApi - functional programming interface
|
|
82
|
+
* @export
|
|
83
|
+
*/
|
|
84
|
+
export const EmailMailboxesApiFp = function(configuration?: Configuration) {
|
|
85
|
+
const localVarAxiosParamCreator = EmailMailboxesApiAxiosParamCreator(configuration)
|
|
86
|
+
return {
|
|
87
|
+
/**
|
|
88
|
+
* Returns the mailboxes of the tenant, sorted by address: the ones its email channel is configured with, merged with the ones that still have messages. Each mailbox carries how many messages it holds per direction. Use the address as the `mailbox` filter when listing email threads or messages. **Required Permissions** \"notification-management.email-messages.view\"
|
|
89
|
+
* @summary List the email mailboxes
|
|
90
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
91
|
+
* @param {*} [options] Override http request option.
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
*/
|
|
94
|
+
async listEmailMailboxes(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListEmailMailboxesResponseClass>> {
|
|
95
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listEmailMailboxes(authorization, options);
|
|
96
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
97
|
+
},
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* EmailMailboxesApi - factory interface
|
|
103
|
+
* @export
|
|
104
|
+
*/
|
|
105
|
+
export const EmailMailboxesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
106
|
+
const localVarFp = EmailMailboxesApiFp(configuration)
|
|
107
|
+
return {
|
|
108
|
+
/**
|
|
109
|
+
* Returns the mailboxes of the tenant, sorted by address: the ones its email channel is configured with, merged with the ones that still have messages. Each mailbox carries how many messages it holds per direction. Use the address as the `mailbox` filter when listing email threads or messages. **Required Permissions** \"notification-management.email-messages.view\"
|
|
110
|
+
* @summary List the email mailboxes
|
|
111
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
112
|
+
* @param {*} [options] Override http request option.
|
|
113
|
+
* @throws {RequiredError}
|
|
114
|
+
*/
|
|
115
|
+
listEmailMailboxes(authorization?: string, options?: any): AxiosPromise<ListEmailMailboxesResponseClass> {
|
|
116
|
+
return localVarFp.listEmailMailboxes(authorization, options).then((request) => request(axios, basePath));
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Request parameters for listEmailMailboxes operation in EmailMailboxesApi.
|
|
123
|
+
* @export
|
|
124
|
+
* @interface EmailMailboxesApiListEmailMailboxesRequest
|
|
125
|
+
*/
|
|
126
|
+
export interface EmailMailboxesApiListEmailMailboxesRequest {
|
|
127
|
+
/**
|
|
128
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
129
|
+
* @type {string}
|
|
130
|
+
* @memberof EmailMailboxesApiListEmailMailboxes
|
|
131
|
+
*/
|
|
132
|
+
readonly authorization?: string
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* EmailMailboxesApi - object-oriented interface
|
|
137
|
+
* @export
|
|
138
|
+
* @class EmailMailboxesApi
|
|
139
|
+
* @extends {BaseAPI}
|
|
140
|
+
*/
|
|
141
|
+
export class EmailMailboxesApi extends BaseAPI {
|
|
142
|
+
/**
|
|
143
|
+
* Returns the mailboxes of the tenant, sorted by address: the ones its email channel is configured with, merged with the ones that still have messages. Each mailbox carries how many messages it holds per direction. Use the address as the `mailbox` filter when listing email threads or messages. **Required Permissions** \"notification-management.email-messages.view\"
|
|
144
|
+
* @summary List the email mailboxes
|
|
145
|
+
* @param {EmailMailboxesApiListEmailMailboxesRequest} requestParameters Request parameters.
|
|
146
|
+
* @param {*} [options] Override http request option.
|
|
147
|
+
* @throws {RequiredError}
|
|
148
|
+
* @memberof EmailMailboxesApi
|
|
149
|
+
*/
|
|
150
|
+
public listEmailMailboxes(requestParameters: EmailMailboxesApiListEmailMailboxesRequest = {}, options?: AxiosRequestConfig) {
|
|
151
|
+
return EmailMailboxesApiFp(this.configuration).listEmailMailboxes(requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
152
|
+
}
|
|
153
|
+
}
|