@emilgroup/notification-sdk 0.8.1-beta.59 → 0.8.1-beta.7
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 +0 -23
- package/README.md +2 -2
- package/api/email-messages-api.ts +36 -56
- package/api/email-tracking-api.ts +48 -291
- package/api/email-verifications-api.ts +12 -24
- package/api/layouts-api.ts +46 -76
- package/api/notification-templates-api.ts +46 -76
- package/api/notifications-api.ts +6 -121
- package/api.ts +0 -6
- package/base.ts +41 -174
- package/configuration.ts +0 -20
- package/dist/api/email-messages-api.d.ts +28 -40
- package/dist/api/email-messages-api.js +40 -62
- package/dist/api/email-tracking-api.d.ts +40 -170
- package/dist/api/email-tracking-api.js +48 -261
- package/dist/api/email-verifications-api.d.ts +8 -16
- package/dist/api/email-verifications-api.js +16 -30
- package/dist/api/layouts-api.d.ts +36 -56
- package/dist/api/layouts-api.js +50 -81
- package/dist/api/notification-templates-api.d.ts +36 -56
- package/dist/api/notification-templates-api.js +50 -81
- package/dist/api/notifications-api.d.ts +4 -65
- package/dist/api/notifications-api.js +8 -111
- package/dist/api.d.ts +0 -3
- package/dist/api.js +0 -3
- package/dist/base.d.ts +0 -24
- package/dist/base.js +59 -178
- package/dist/configuration.d.ts +0 -17
- package/dist/configuration.js +0 -2
- package/dist/models/email-message-class.d.ts +7 -73
- package/dist/models/email-message-class.js +3 -22
- package/dist/models/email-thread-class.d.ts +5 -37
- package/dist/models/index.d.ts +0 -20
- package/dist/models/index.js +0 -20
- package/dist/models/send-notification-request-dto.d.ts +1 -10
- package/dist/models/send-notification-request-dto.js +1 -2
- package/models/email-message-class.ts +8 -78
- package/models/email-thread-class.ts +5 -37
- package/models/index.ts +0 -20
- package/models/send-notification-request-dto.ts +2 -9
- package/package.json +1 -1
- package/api/email-mailboxes-api.ts +0 -150
- package/api/email-subscriptions-api.ts +0 -781
- package/api/msgraph-webhooks-api.ts +0 -278
- package/dist/api/email-mailboxes-api.d.ts +0 -87
- package/dist/api/email-mailboxes-api.js +0 -221
- package/dist/api/email-subscriptions-api.d.ts +0 -432
- package/dist/api/email-subscriptions-api.js +0 -738
- package/dist/api/msgraph-webhooks-api.d.ts +0 -168
- package/dist/api/msgraph-webhooks-api.js +0 -305
- package/dist/models/assign-email-thread-entity-body-dto.d.ts +0 -43
- package/dist/models/assign-email-thread-entity-body-dto.js +0 -22
- package/dist/models/assign-email-thread-entity-response-class.d.ts +0 -25
- package/dist/models/assign-email-thread-entity-response-class.js +0 -15
- package/dist/models/catch-up-email-subscription-response-class.d.ts +0 -24
- package/dist/models/catch-up-email-subscription-response-class.js +0 -15
- package/dist/models/catch-up-email-subscriptions-request-dto.d.ts +0 -24
- package/dist/models/catch-up-email-subscriptions-request-dto.js +0 -15
- package/dist/models/catch-up-email-subscriptions-response-class.d.ts +0 -30
- package/dist/models/catch-up-email-subscriptions-response-class.js +0 -15
- package/dist/models/email-mailbox-class.d.ts +0 -47
- package/dist/models/email-mailbox-class.js +0 -20
- package/dist/models/email-message-summary-class.d.ts +0 -98
- package/dist/models/email-message-summary-class.js +0 -33
- package/dist/models/email-subscription-class.d.ts +0 -110
- package/dist/models/email-subscription-class.js +0 -23
- package/dist/models/entity-ref-class.d.ts +0 -37
- package/dist/models/entity-ref-class.js +0 -22
- package/dist/models/get-email-subscription-response-class.d.ts +0 -25
- package/dist/models/get-email-subscription-response-class.js +0 -15
- package/dist/models/grpc-send-email-request-dto.d.ts +0 -137
- package/dist/models/grpc-send-email-request-dto.js +0 -22
- package/dist/models/inline-attachment-dto.d.ts +0 -36
- package/dist/models/inline-attachment-dto.js +0 -15
- package/dist/models/list-email-mailboxes-response-class.d.ts +0 -43
- package/dist/models/list-email-mailboxes-response-class.js +0 -15
- package/dist/models/list-email-subscriptions-response-class.d.ts +0 -43
- package/dist/models/list-email-subscriptions-response-class.js +0 -15
- package/dist/models/reconcile-email-subscriptions-request-dto.d.ts +0 -24
- package/dist/models/reconcile-email-subscriptions-request-dto.js +0 -15
- package/dist/models/reconcile-email-subscriptions-response-class.d.ts +0 -48
- package/dist/models/reconcile-email-subscriptions-response-class.js +0 -15
- package/dist/models/renew-email-subscription-response-class.d.ts +0 -25
- package/dist/models/renew-email-subscription-response-class.js +0 -15
- package/dist/models/send-email-request-dto.d.ts +0 -131
- package/dist/models/send-email-request-dto.js +0 -22
- package/dist/models/send-email-response-class.d.ts +0 -24
- package/dist/models/send-email-response-class.js +0 -15
- package/dist/models/unassign-email-thread-entity-response-class.d.ts +0 -25
- package/dist/models/unassign-email-thread-entity-response-class.js +0 -15
- package/models/assign-email-thread-entity-body-dto.ts +0 -52
- package/models/assign-email-thread-entity-response-class.ts +0 -31
- package/models/catch-up-email-subscription-response-class.ts +0 -30
- package/models/catch-up-email-subscriptions-request-dto.ts +0 -30
- package/models/catch-up-email-subscriptions-response-class.ts +0 -36
- package/models/email-mailbox-class.ts +0 -56
- package/models/email-message-summary-class.ts +0 -109
- package/models/email-subscription-class.ts +0 -119
- package/models/entity-ref-class.ts +0 -46
- package/models/get-email-subscription-response-class.ts +0 -31
- package/models/grpc-send-email-request-dto.ts +0 -144
- package/models/inline-attachment-dto.ts +0 -42
- package/models/list-email-mailboxes-response-class.ts +0 -49
- package/models/list-email-subscriptions-response-class.ts +0 -49
- package/models/reconcile-email-subscriptions-request-dto.ts +0 -30
- package/models/reconcile-email-subscriptions-response-class.ts +0 -54
- package/models/renew-email-subscription-response-class.ts +0 -31
- package/models/send-email-request-dto.ts +0 -138
- package/models/send-email-response-class.ts +0 -30
- package/models/unassign-email-thread-entity-response-class.ts +0 -31
|
@@ -88,7 +88,7 @@ export interface SendNotificationRequestDto {
|
|
|
88
88
|
*/
|
|
89
89
|
'entityCode'?: string;
|
|
90
90
|
/**
|
|
91
|
-
* Reply-To address for email reply tracking. Auto-generated when
|
|
91
|
+
* Reply-To address for email reply tracking. Auto-generated when entityType and entityCode are provided.
|
|
92
92
|
* @type {string}
|
|
93
93
|
* @memberof SendNotificationRequestDto
|
|
94
94
|
*/
|
|
@@ -111,19 +111,12 @@ export interface SendNotificationRequestDto {
|
|
|
111
111
|
* @memberof SendNotificationRequestDto
|
|
112
112
|
*/
|
|
113
113
|
'references': Array<string>;
|
|
114
|
-
/**
|
|
115
|
-
* Custom headers to set on the outgoing email
|
|
116
|
-
* @type {{ [key: string]: string; }}
|
|
117
|
-
* @memberof SendNotificationRequestDto
|
|
118
|
-
*/
|
|
119
|
-
'customHeaders': { [key: string]: string; };
|
|
120
114
|
}
|
|
121
115
|
|
|
122
116
|
export const SendNotificationRequestDtoEntityTypeEnum = {
|
|
123
117
|
Claim: 'Claim',
|
|
124
118
|
Policy: 'Policy',
|
|
125
|
-
Lead: 'Lead'
|
|
126
|
-
Partner: 'Partner'
|
|
119
|
+
Lead: 'Lead'
|
|
127
120
|
} as const;
|
|
128
121
|
|
|
129
122
|
export type SendNotificationRequestDtoEntityTypeEnum = typeof SendNotificationRequestDtoEntityTypeEnum[keyof typeof SendNotificationRequestDtoEntityTypeEnum];
|
package/package.json
CHANGED
|
@@ -1,150 +0,0 @@
|
|
|
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; an empty value is never sent.
|
|
58
|
-
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
59
|
-
if (authorizationValue) {
|
|
60
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
66
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
67
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
68
|
-
|
|
69
|
-
return {
|
|
70
|
-
url: toPathString(localVarUrlObj),
|
|
71
|
-
options: localVarRequestOptions,
|
|
72
|
-
};
|
|
73
|
-
},
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* EmailMailboxesApi - functional programming interface
|
|
79
|
-
* @export
|
|
80
|
-
*/
|
|
81
|
-
export const EmailMailboxesApiFp = function(configuration?: Configuration) {
|
|
82
|
-
const localVarAxiosParamCreator = EmailMailboxesApiAxiosParamCreator(configuration)
|
|
83
|
-
return {
|
|
84
|
-
/**
|
|
85
|
-
* 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\"
|
|
86
|
-
* @summary List the email mailboxes
|
|
87
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
88
|
-
* @param {*} [options] Override http request option.
|
|
89
|
-
* @throws {RequiredError}
|
|
90
|
-
*/
|
|
91
|
-
async listEmailMailboxes(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListEmailMailboxesResponseClass>> {
|
|
92
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listEmailMailboxes(authorization, options);
|
|
93
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
94
|
-
},
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* EmailMailboxesApi - factory interface
|
|
100
|
-
* @export
|
|
101
|
-
*/
|
|
102
|
-
export const EmailMailboxesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
103
|
-
const localVarFp = EmailMailboxesApiFp(configuration)
|
|
104
|
-
return {
|
|
105
|
-
/**
|
|
106
|
-
* 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\"
|
|
107
|
-
* @summary List the email mailboxes
|
|
108
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
109
|
-
* @param {*} [options] Override http request option.
|
|
110
|
-
* @throws {RequiredError}
|
|
111
|
-
*/
|
|
112
|
-
listEmailMailboxes(authorization?: string, options?: any): AxiosPromise<ListEmailMailboxesResponseClass> {
|
|
113
|
-
return localVarFp.listEmailMailboxes(authorization, options).then((request) => request(axios, basePath));
|
|
114
|
-
},
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Request parameters for listEmailMailboxes operation in EmailMailboxesApi.
|
|
120
|
-
* @export
|
|
121
|
-
* @interface EmailMailboxesApiListEmailMailboxesRequest
|
|
122
|
-
*/
|
|
123
|
-
export interface EmailMailboxesApiListEmailMailboxesRequest {
|
|
124
|
-
/**
|
|
125
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
126
|
-
* @type {string}
|
|
127
|
-
* @memberof EmailMailboxesApiListEmailMailboxes
|
|
128
|
-
*/
|
|
129
|
-
readonly authorization?: string
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* EmailMailboxesApi - object-oriented interface
|
|
134
|
-
* @export
|
|
135
|
-
* @class EmailMailboxesApi
|
|
136
|
-
* @extends {BaseAPI}
|
|
137
|
-
*/
|
|
138
|
-
export class EmailMailboxesApi extends BaseAPI {
|
|
139
|
-
/**
|
|
140
|
-
* 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\"
|
|
141
|
-
* @summary List the email mailboxes
|
|
142
|
-
* @param {EmailMailboxesApiListEmailMailboxesRequest} requestParameters Request parameters.
|
|
143
|
-
* @param {*} [options] Override http request option.
|
|
144
|
-
* @throws {RequiredError}
|
|
145
|
-
* @memberof EmailMailboxesApi
|
|
146
|
-
*/
|
|
147
|
-
public listEmailMailboxes(requestParameters: EmailMailboxesApiListEmailMailboxesRequest = {}, options?: AxiosRequestConfig) {
|
|
148
|
-
return EmailMailboxesApiFp(this.configuration).listEmailMailboxes(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
149
|
-
}
|
|
150
|
-
}
|