@emilgroup/notification-sdk 0.8.1-beta.38 → 0.8.1-beta.4
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 -8
- package/README.md +2 -2
- package/api/email-messages-api.ts +24 -259
- package/api/email-tracking-api.ts +24 -32
- package/api/email-verifications-api.ts +8 -16
- package/api/layouts-api.ts +36 -56
- package/api/notification-templates-api.ts +36 -56
- package/api/notifications-api.ts +4 -115
- package/api.ts +0 -2
- package/dist/api/email-messages-api.d.ts +24 -158
- package/dist/api/email-messages-api.js +22 -225
- package/dist/api/email-tracking-api.d.ts +24 -32
- package/dist/api/email-tracking-api.js +22 -30
- package/dist/api/email-verifications-api.d.ts +8 -16
- package/dist/api/email-verifications-api.js +8 -16
- package/dist/api/layouts-api.d.ts +36 -56
- package/dist/api/layouts-api.js +32 -52
- package/dist/api/notification-templates-api.d.ts +36 -56
- package/dist/api/notification-templates-api.js +32 -52
- package/dist/api/notifications-api.d.ts +4 -65
- package/dist/api/notifications-api.js +4 -101
- package/dist/api.d.ts +0 -1
- package/dist/api.js +0 -1
- package/dist/models/email-message-class.d.ts +2 -49
- package/dist/models/email-message-class.js +2 -16
- package/dist/models/index.d.ts +0 -7
- package/dist/models/index.js +0 -7
- package/dist/models/send-notification-request-dto.d.ts +0 -9
- package/dist/models/send-notification-request-dto.js +1 -2
- package/models/email-message-class.ts +3 -53
- package/models/index.ts +0 -7
- package/models/send-notification-request-dto.ts +1 -8
- package/package.json +1 -1
- package/api/msgraph-webhooks-api.ts +0 -278
- package/dist/api/msgraph-webhooks-api.d.ts +0 -168
- package/dist/api/msgraph-webhooks-api.js +0 -305
- package/dist/models/assign-email-message-entity-body-dto.d.ts +0 -43
- package/dist/models/assign-email-message-entity-body-dto.js +0 -22
- package/dist/models/assign-email-message-entity-response-class.d.ts +0 -25
- package/dist/models/assign-email-message-entity-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/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-message-entity-response-class.d.ts +0 -25
- package/dist/models/unassign-email-message-entity-response-class.js +0 -15
- package/models/assign-email-message-entity-body-dto.ts +0 -52
- package/models/assign-email-message-entity-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/send-email-request-dto.ts +0 -138
- package/models/send-email-response-class.ts +0 -30
- package/models/unassign-email-message-entity-response-class.ts +0 -31
package/dist/models/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export * from './assign-email-message-entity-body-dto';
|
|
2
|
-
export * from './assign-email-message-entity-response-class';
|
|
3
1
|
export * from './complete-email-verification-dto';
|
|
4
2
|
export * from './complete-email-verification-response-class';
|
|
5
3
|
export * from './create-layout-request-dto';
|
|
@@ -18,11 +16,9 @@ export * from './get-layout-request-dto';
|
|
|
18
16
|
export * from './get-layout-response-class';
|
|
19
17
|
export * from './get-notification-template-request-dto';
|
|
20
18
|
export * from './get-notification-template-response-class';
|
|
21
|
-
export * from './grpc-send-email-request-dto';
|
|
22
19
|
export * from './html-template-class';
|
|
23
20
|
export * from './initiate-email-verification-dto';
|
|
24
21
|
export * from './initiate-email-verification-response-class';
|
|
25
|
-
export * from './inline-attachment-dto';
|
|
26
22
|
export * from './inline-response200';
|
|
27
23
|
export * from './inline-response503';
|
|
28
24
|
export * from './layout-class';
|
|
@@ -33,11 +29,8 @@ export * from './list-layouts-response-class';
|
|
|
33
29
|
export * from './list-notification-templates-response-class';
|
|
34
30
|
export * from './notification-template-class';
|
|
35
31
|
export * from './s3-document-dto';
|
|
36
|
-
export * from './send-email-request-dto';
|
|
37
|
-
export * from './send-email-response-class';
|
|
38
32
|
export * from './send-notification-request-dto';
|
|
39
33
|
export * from './send-notification-response-class';
|
|
40
|
-
export * from './unassign-email-message-entity-response-class';
|
|
41
34
|
export * from './update-html-template-request-dto';
|
|
42
35
|
export * from './update-layout-request-dto';
|
|
43
36
|
export * from './update-layout-response-class';
|
package/dist/models/index.js
CHANGED
|
@@ -14,8 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./assign-email-message-entity-body-dto"), exports);
|
|
18
|
-
__exportStar(require("./assign-email-message-entity-response-class"), exports);
|
|
19
17
|
__exportStar(require("./complete-email-verification-dto"), exports);
|
|
20
18
|
__exportStar(require("./complete-email-verification-response-class"), exports);
|
|
21
19
|
__exportStar(require("./create-layout-request-dto"), exports);
|
|
@@ -34,11 +32,9 @@ __exportStar(require("./get-layout-request-dto"), exports);
|
|
|
34
32
|
__exportStar(require("./get-layout-response-class"), exports);
|
|
35
33
|
__exportStar(require("./get-notification-template-request-dto"), exports);
|
|
36
34
|
__exportStar(require("./get-notification-template-response-class"), exports);
|
|
37
|
-
__exportStar(require("./grpc-send-email-request-dto"), exports);
|
|
38
35
|
__exportStar(require("./html-template-class"), exports);
|
|
39
36
|
__exportStar(require("./initiate-email-verification-dto"), exports);
|
|
40
37
|
__exportStar(require("./initiate-email-verification-response-class"), exports);
|
|
41
|
-
__exportStar(require("./inline-attachment-dto"), exports);
|
|
42
38
|
__exportStar(require("./inline-response200"), exports);
|
|
43
39
|
__exportStar(require("./inline-response503"), exports);
|
|
44
40
|
__exportStar(require("./layout-class"), exports);
|
|
@@ -49,11 +45,8 @@ __exportStar(require("./list-layouts-response-class"), exports);
|
|
|
49
45
|
__exportStar(require("./list-notification-templates-response-class"), exports);
|
|
50
46
|
__exportStar(require("./notification-template-class"), exports);
|
|
51
47
|
__exportStar(require("./s3-document-dto"), exports);
|
|
52
|
-
__exportStar(require("./send-email-request-dto"), exports);
|
|
53
|
-
__exportStar(require("./send-email-response-class"), exports);
|
|
54
48
|
__exportStar(require("./send-notification-request-dto"), exports);
|
|
55
49
|
__exportStar(require("./send-notification-response-class"), exports);
|
|
56
|
-
__exportStar(require("./unassign-email-message-entity-response-class"), exports);
|
|
57
50
|
__exportStar(require("./update-html-template-request-dto"), exports);
|
|
58
51
|
__exportStar(require("./update-layout-request-dto"), exports);
|
|
59
52
|
__exportStar(require("./update-layout-response-class"), exports);
|
|
@@ -108,19 +108,10 @@ export interface SendNotificationRequestDto {
|
|
|
108
108
|
* @memberof SendNotificationRequestDto
|
|
109
109
|
*/
|
|
110
110
|
'references': Array<string>;
|
|
111
|
-
/**
|
|
112
|
-
* Custom headers to set on the outgoing email
|
|
113
|
-
* @type {{ [key: string]: string; }}
|
|
114
|
-
* @memberof SendNotificationRequestDto
|
|
115
|
-
*/
|
|
116
|
-
'customHeaders': {
|
|
117
|
-
[key: string]: string;
|
|
118
|
-
};
|
|
119
111
|
}
|
|
120
112
|
export declare const SendNotificationRequestDtoEntityTypeEnum: {
|
|
121
113
|
readonly Claim: "Claim";
|
|
122
114
|
readonly Policy: "Policy";
|
|
123
115
|
readonly Lead: "Lead";
|
|
124
|
-
readonly Partner: "Partner";
|
|
125
116
|
};
|
|
126
117
|
export type SendNotificationRequestDtoEntityTypeEnum = typeof SendNotificationRequestDtoEntityTypeEnum[keyof typeof SendNotificationRequestDtoEntityTypeEnum];
|
|
@@ -34,35 +34,11 @@ export interface EmailMessageClass {
|
|
|
34
34
|
*/
|
|
35
35
|
'code': string;
|
|
36
36
|
/**
|
|
37
|
-
* Thread code this message belongs to
|
|
37
|
+
* Thread code this message belongs to
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof EmailMessageClass
|
|
40
40
|
*/
|
|
41
41
|
'threadCode': string;
|
|
42
|
-
/**
|
|
43
|
-
* Correlation state of an inbound message: pending, matched (thread and entity known) or unassigned (thread known, no entity yet)
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof EmailMessageClass
|
|
46
|
-
*/
|
|
47
|
-
'matchStatus': EmailMessageClassMatchStatusEnum;
|
|
48
|
-
/**
|
|
49
|
-
* What this row is: a message somebody wrote, or a delivery report (bounce) a mail server sent back about an outbound message
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof EmailMessageClass
|
|
52
|
-
*/
|
|
53
|
-
'kind': EmailMessageClassKindEnum;
|
|
54
|
-
/**
|
|
55
|
-
* Delivery report only: code of the outbound message the report is about
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof EmailMessageClass
|
|
58
|
-
*/
|
|
59
|
-
'reportedMessageCode'?: string;
|
|
60
|
-
/**
|
|
61
|
-
* Provider that received an inbound message
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof EmailMessageClass
|
|
64
|
-
*/
|
|
65
|
-
'provider'?: EmailMessageClassProviderEnum;
|
|
66
42
|
/**
|
|
67
43
|
* Direction of the email
|
|
68
44
|
* @type {string}
|
|
@@ -106,7 +82,7 @@ export interface EmailMessageClass {
|
|
|
106
82
|
*/
|
|
107
83
|
'bodyHtml'?: string;
|
|
108
84
|
/**
|
|
109
|
-
* Delivery status of the email
|
|
85
|
+
* Delivery status of the email
|
|
110
86
|
* @type {string}
|
|
111
87
|
* @memberof EmailMessageClass
|
|
112
88
|
*/
|
|
@@ -171,33 +147,8 @@ export interface EmailMessageClass {
|
|
|
171
147
|
* @memberof EmailMessageClass
|
|
172
148
|
*/
|
|
173
149
|
'entityCode': string;
|
|
174
|
-
/**
|
|
175
|
-
* Business number of the linked entity (policy, lead, claim or partner number)
|
|
176
|
-
* @type {string}
|
|
177
|
-
* @memberof EmailMessageClass
|
|
178
|
-
*/
|
|
179
|
-
'entityNumber'?: string;
|
|
180
150
|
}
|
|
181
151
|
|
|
182
|
-
export const EmailMessageClassMatchStatusEnum = {
|
|
183
|
-
Pending: 'pending',
|
|
184
|
-
Matched: 'matched',
|
|
185
|
-
Unassigned: 'unassigned'
|
|
186
|
-
} as const;
|
|
187
|
-
|
|
188
|
-
export type EmailMessageClassMatchStatusEnum = typeof EmailMessageClassMatchStatusEnum[keyof typeof EmailMessageClassMatchStatusEnum];
|
|
189
|
-
export const EmailMessageClassKindEnum = {
|
|
190
|
-
Message: 'message',
|
|
191
|
-
DeliveryReport: 'delivery_report'
|
|
192
|
-
} as const;
|
|
193
|
-
|
|
194
|
-
export type EmailMessageClassKindEnum = typeof EmailMessageClassKindEnum[keyof typeof EmailMessageClassKindEnum];
|
|
195
|
-
export const EmailMessageClassProviderEnum = {
|
|
196
|
-
Ses: 'ses',
|
|
197
|
-
Msgraph: 'msgraph'
|
|
198
|
-
} as const;
|
|
199
|
-
|
|
200
|
-
export type EmailMessageClassProviderEnum = typeof EmailMessageClassProviderEnum[keyof typeof EmailMessageClassProviderEnum];
|
|
201
152
|
export const EmailMessageClassDirectionEnum = {
|
|
202
153
|
Outbound: 'outbound',
|
|
203
154
|
Inbound: 'inbound'
|
|
@@ -209,8 +160,7 @@ export const EmailMessageClassDeliveryStatusEnum = {
|
|
|
209
160
|
Sent: 'sent',
|
|
210
161
|
Delivered: 'delivered',
|
|
211
162
|
Bounced: 'bounced',
|
|
212
|
-
Failed: 'failed'
|
|
213
|
-
Received: 'received'
|
|
163
|
+
Failed: 'failed'
|
|
214
164
|
} as const;
|
|
215
165
|
|
|
216
166
|
export type EmailMessageClassDeliveryStatusEnum = typeof EmailMessageClassDeliveryStatusEnum[keyof typeof EmailMessageClassDeliveryStatusEnum];
|
package/models/index.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export * from './assign-email-message-entity-body-dto';
|
|
2
|
-
export * from './assign-email-message-entity-response-class';
|
|
3
1
|
export * from './complete-email-verification-dto';
|
|
4
2
|
export * from './complete-email-verification-response-class';
|
|
5
3
|
export * from './create-layout-request-dto';
|
|
@@ -18,11 +16,9 @@ export * from './get-layout-request-dto';
|
|
|
18
16
|
export * from './get-layout-response-class';
|
|
19
17
|
export * from './get-notification-template-request-dto';
|
|
20
18
|
export * from './get-notification-template-response-class';
|
|
21
|
-
export * from './grpc-send-email-request-dto';
|
|
22
19
|
export * from './html-template-class';
|
|
23
20
|
export * from './initiate-email-verification-dto';
|
|
24
21
|
export * from './initiate-email-verification-response-class';
|
|
25
|
-
export * from './inline-attachment-dto';
|
|
26
22
|
export * from './inline-response200';
|
|
27
23
|
export * from './inline-response503';
|
|
28
24
|
export * from './layout-class';
|
|
@@ -33,11 +29,8 @@ export * from './list-layouts-response-class';
|
|
|
33
29
|
export * from './list-notification-templates-response-class';
|
|
34
30
|
export * from './notification-template-class';
|
|
35
31
|
export * from './s3-document-dto';
|
|
36
|
-
export * from './send-email-request-dto';
|
|
37
|
-
export * from './send-email-response-class';
|
|
38
32
|
export * from './send-notification-request-dto';
|
|
39
33
|
export * from './send-notification-response-class';
|
|
40
|
-
export * from './unassign-email-message-entity-response-class';
|
|
41
34
|
export * from './update-html-template-request-dto';
|
|
42
35
|
export * from './update-layout-request-dto';
|
|
43
36
|
export * from './update-layout-response-class';
|
|
@@ -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,278 +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
|
-
/**
|
|
24
|
-
* MSGraphWebhooksApi - axios parameter creator
|
|
25
|
-
* @export
|
|
26
|
-
*/
|
|
27
|
-
export const MSGraphWebhooksApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
28
|
-
return {
|
|
29
|
-
/**
|
|
30
|
-
* Public route called by Microsoft Graph. Echoes `validationToken` as text/plain, otherwise enqueues the lifecycle events and answers 202. See docs/webhooks/msgraph.md. **Required Permissions** none
|
|
31
|
-
* @summary Receive Microsoft Graph subscription lifecycle notifications
|
|
32
|
-
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
33
|
-
* @param {string} [validationToken] Echoed back as text/plain when present.
|
|
34
|
-
* @param {object} [body] Graph lifecycle collection `{ \"value\": [...] }`.
|
|
35
|
-
* @param {*} [options] Override http request option.
|
|
36
|
-
* @throws {RequiredError}
|
|
37
|
-
*/
|
|
38
|
-
receiveLifecycle: async (tenantSlug: string, validationToken?: string, body?: object, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39
|
-
// verify required parameter 'tenantSlug' is not null or undefined
|
|
40
|
-
assertParamExists('receiveLifecycle', 'tenantSlug', tenantSlug)
|
|
41
|
-
const localVarPath = `/notificationservice/v1/webhooks/msgraph/{tenantSlug}/lifecycle`
|
|
42
|
-
.replace(`{${"tenantSlug"}}`, encodeURIComponent(String(tenantSlug)));
|
|
43
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
44
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
45
|
-
let baseOptions;
|
|
46
|
-
let baseAccessToken;
|
|
47
|
-
if (configuration) {
|
|
48
|
-
baseOptions = configuration.baseOptions;
|
|
49
|
-
baseAccessToken = configuration.accessToken;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
53
|
-
const localVarHeaderParameter = {} as any;
|
|
54
|
-
const localVarQueryParameter = {} as any;
|
|
55
|
-
|
|
56
|
-
if (validationToken !== undefined) {
|
|
57
|
-
localVarQueryParameter['validationToken'] = validationToken;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
63
|
-
|
|
64
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
65
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
66
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
67
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
68
|
-
|
|
69
|
-
return {
|
|
70
|
-
url: toPathString(localVarUrlObj),
|
|
71
|
-
options: localVarRequestOptions,
|
|
72
|
-
};
|
|
73
|
-
},
|
|
74
|
-
/**
|
|
75
|
-
* Public route called by Microsoft Graph. Echoes `validationToken` as text/plain, otherwise enqueues the notifications and answers 202. See docs/webhooks/msgraph.md. **Required Permissions** none
|
|
76
|
-
* @summary Receive Microsoft Graph change notifications
|
|
77
|
-
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
78
|
-
* @param {string} [validationToken] Echoed back as text/plain when present.
|
|
79
|
-
* @param {object} [body] Graph change-notification collection: `{ \"value\": [ ... ] }`.
|
|
80
|
-
* @param {*} [options] Override http request option.
|
|
81
|
-
* @throws {RequiredError}
|
|
82
|
-
*/
|
|
83
|
-
receiveNotifications: async (tenantSlug: string, validationToken?: string, body?: object, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
84
|
-
// verify required parameter 'tenantSlug' is not null or undefined
|
|
85
|
-
assertParamExists('receiveNotifications', 'tenantSlug', tenantSlug)
|
|
86
|
-
const localVarPath = `/notificationservice/v1/webhooks/msgraph/{tenantSlug}/notifications`
|
|
87
|
-
.replace(`{${"tenantSlug"}}`, encodeURIComponent(String(tenantSlug)));
|
|
88
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
89
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
90
|
-
let baseOptions;
|
|
91
|
-
let baseAccessToken;
|
|
92
|
-
if (configuration) {
|
|
93
|
-
baseOptions = configuration.baseOptions;
|
|
94
|
-
baseAccessToken = configuration.accessToken;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
98
|
-
const localVarHeaderParameter = {} as any;
|
|
99
|
-
const localVarQueryParameter = {} as any;
|
|
100
|
-
|
|
101
|
-
if (validationToken !== undefined) {
|
|
102
|
-
localVarQueryParameter['validationToken'] = validationToken;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
108
|
-
|
|
109
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
110
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
111
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
112
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
113
|
-
|
|
114
|
-
return {
|
|
115
|
-
url: toPathString(localVarUrlObj),
|
|
116
|
-
options: localVarRequestOptions,
|
|
117
|
-
};
|
|
118
|
-
},
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* MSGraphWebhooksApi - functional programming interface
|
|
124
|
-
* @export
|
|
125
|
-
*/
|
|
126
|
-
export const MSGraphWebhooksApiFp = function(configuration?: Configuration) {
|
|
127
|
-
const localVarAxiosParamCreator = MSGraphWebhooksApiAxiosParamCreator(configuration)
|
|
128
|
-
return {
|
|
129
|
-
/**
|
|
130
|
-
* Public route called by Microsoft Graph. Echoes `validationToken` as text/plain, otherwise enqueues the lifecycle events and answers 202. See docs/webhooks/msgraph.md. **Required Permissions** none
|
|
131
|
-
* @summary Receive Microsoft Graph subscription lifecycle notifications
|
|
132
|
-
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
133
|
-
* @param {string} [validationToken] Echoed back as text/plain when present.
|
|
134
|
-
* @param {object} [body] Graph lifecycle collection `{ \"value\": [...] }`.
|
|
135
|
-
* @param {*} [options] Override http request option.
|
|
136
|
-
* @throws {RequiredError}
|
|
137
|
-
*/
|
|
138
|
-
async receiveLifecycle(tenantSlug: string, validationToken?: string, body?: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
139
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.receiveLifecycle(tenantSlug, validationToken, body, options);
|
|
140
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
141
|
-
},
|
|
142
|
-
/**
|
|
143
|
-
* Public route called by Microsoft Graph. Echoes `validationToken` as text/plain, otherwise enqueues the notifications and answers 202. See docs/webhooks/msgraph.md. **Required Permissions** none
|
|
144
|
-
* @summary Receive Microsoft Graph change notifications
|
|
145
|
-
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
146
|
-
* @param {string} [validationToken] Echoed back as text/plain when present.
|
|
147
|
-
* @param {object} [body] Graph change-notification collection: `{ \"value\": [ ... ] }`.
|
|
148
|
-
* @param {*} [options] Override http request option.
|
|
149
|
-
* @throws {RequiredError}
|
|
150
|
-
*/
|
|
151
|
-
async receiveNotifications(tenantSlug: string, validationToken?: string, body?: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
152
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.receiveNotifications(tenantSlug, validationToken, body, options);
|
|
153
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
154
|
-
},
|
|
155
|
-
}
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* MSGraphWebhooksApi - factory interface
|
|
160
|
-
* @export
|
|
161
|
-
*/
|
|
162
|
-
export const MSGraphWebhooksApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
163
|
-
const localVarFp = MSGraphWebhooksApiFp(configuration)
|
|
164
|
-
return {
|
|
165
|
-
/**
|
|
166
|
-
* Public route called by Microsoft Graph. Echoes `validationToken` as text/plain, otherwise enqueues the lifecycle events and answers 202. See docs/webhooks/msgraph.md. **Required Permissions** none
|
|
167
|
-
* @summary Receive Microsoft Graph subscription lifecycle notifications
|
|
168
|
-
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
169
|
-
* @param {string} [validationToken] Echoed back as text/plain when present.
|
|
170
|
-
* @param {object} [body] Graph lifecycle collection `{ \"value\": [...] }`.
|
|
171
|
-
* @param {*} [options] Override http request option.
|
|
172
|
-
* @throws {RequiredError}
|
|
173
|
-
*/
|
|
174
|
-
receiveLifecycle(tenantSlug: string, validationToken?: string, body?: object, options?: any): AxiosPromise<void> {
|
|
175
|
-
return localVarFp.receiveLifecycle(tenantSlug, validationToken, body, options).then((request) => request(axios, basePath));
|
|
176
|
-
},
|
|
177
|
-
/**
|
|
178
|
-
* Public route called by Microsoft Graph. Echoes `validationToken` as text/plain, otherwise enqueues the notifications and answers 202. See docs/webhooks/msgraph.md. **Required Permissions** none
|
|
179
|
-
* @summary Receive Microsoft Graph change notifications
|
|
180
|
-
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
181
|
-
* @param {string} [validationToken] Echoed back as text/plain when present.
|
|
182
|
-
* @param {object} [body] Graph change-notification collection: `{ \"value\": [ ... ] }`.
|
|
183
|
-
* @param {*} [options] Override http request option.
|
|
184
|
-
* @throws {RequiredError}
|
|
185
|
-
*/
|
|
186
|
-
receiveNotifications(tenantSlug: string, validationToken?: string, body?: object, options?: any): AxiosPromise<void> {
|
|
187
|
-
return localVarFp.receiveNotifications(tenantSlug, validationToken, body, options).then((request) => request(axios, basePath));
|
|
188
|
-
},
|
|
189
|
-
};
|
|
190
|
-
};
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* Request parameters for receiveLifecycle operation in MSGraphWebhooksApi.
|
|
194
|
-
* @export
|
|
195
|
-
* @interface MSGraphWebhooksApiReceiveLifecycleRequest
|
|
196
|
-
*/
|
|
197
|
-
export interface MSGraphWebhooksApiReceiveLifecycleRequest {
|
|
198
|
-
/**
|
|
199
|
-
* Unique slug identifier representing a tenant.
|
|
200
|
-
* @type {string}
|
|
201
|
-
* @memberof MSGraphWebhooksApiReceiveLifecycle
|
|
202
|
-
*/
|
|
203
|
-
readonly tenantSlug: string
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* Echoed back as text/plain when present.
|
|
207
|
-
* @type {string}
|
|
208
|
-
* @memberof MSGraphWebhooksApiReceiveLifecycle
|
|
209
|
-
*/
|
|
210
|
-
readonly validationToken?: string
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* Graph lifecycle collection `{ \"value\": [...] }`.
|
|
214
|
-
* @type {object}
|
|
215
|
-
* @memberof MSGraphWebhooksApiReceiveLifecycle
|
|
216
|
-
*/
|
|
217
|
-
readonly body?: object
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* Request parameters for receiveNotifications operation in MSGraphWebhooksApi.
|
|
222
|
-
* @export
|
|
223
|
-
* @interface MSGraphWebhooksApiReceiveNotificationsRequest
|
|
224
|
-
*/
|
|
225
|
-
export interface MSGraphWebhooksApiReceiveNotificationsRequest {
|
|
226
|
-
/**
|
|
227
|
-
* Unique slug identifier representing a tenant.
|
|
228
|
-
* @type {string}
|
|
229
|
-
* @memberof MSGraphWebhooksApiReceiveNotifications
|
|
230
|
-
*/
|
|
231
|
-
readonly tenantSlug: string
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* Echoed back as text/plain when present.
|
|
235
|
-
* @type {string}
|
|
236
|
-
* @memberof MSGraphWebhooksApiReceiveNotifications
|
|
237
|
-
*/
|
|
238
|
-
readonly validationToken?: string
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* Graph change-notification collection: `{ \"value\": [ ... ] }`.
|
|
242
|
-
* @type {object}
|
|
243
|
-
* @memberof MSGraphWebhooksApiReceiveNotifications
|
|
244
|
-
*/
|
|
245
|
-
readonly body?: object
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* MSGraphWebhooksApi - object-oriented interface
|
|
250
|
-
* @export
|
|
251
|
-
* @class MSGraphWebhooksApi
|
|
252
|
-
* @extends {BaseAPI}
|
|
253
|
-
*/
|
|
254
|
-
export class MSGraphWebhooksApi extends BaseAPI {
|
|
255
|
-
/**
|
|
256
|
-
* Public route called by Microsoft Graph. Echoes `validationToken` as text/plain, otherwise enqueues the lifecycle events and answers 202. See docs/webhooks/msgraph.md. **Required Permissions** none
|
|
257
|
-
* @summary Receive Microsoft Graph subscription lifecycle notifications
|
|
258
|
-
* @param {MSGraphWebhooksApiReceiveLifecycleRequest} requestParameters Request parameters.
|
|
259
|
-
* @param {*} [options] Override http request option.
|
|
260
|
-
* @throws {RequiredError}
|
|
261
|
-
* @memberof MSGraphWebhooksApi
|
|
262
|
-
*/
|
|
263
|
-
public receiveLifecycle(requestParameters: MSGraphWebhooksApiReceiveLifecycleRequest, options?: AxiosRequestConfig) {
|
|
264
|
-
return MSGraphWebhooksApiFp(this.configuration).receiveLifecycle(requestParameters.tenantSlug, requestParameters.validationToken, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* Public route called by Microsoft Graph. Echoes `validationToken` as text/plain, otherwise enqueues the notifications and answers 202. See docs/webhooks/msgraph.md. **Required Permissions** none
|
|
269
|
-
* @summary Receive Microsoft Graph change notifications
|
|
270
|
-
* @param {MSGraphWebhooksApiReceiveNotificationsRequest} requestParameters Request parameters.
|
|
271
|
-
* @param {*} [options] Override http request option.
|
|
272
|
-
* @throws {RequiredError}
|
|
273
|
-
* @memberof MSGraphWebhooksApi
|
|
274
|
-
*/
|
|
275
|
-
public receiveNotifications(requestParameters: MSGraphWebhooksApiReceiveNotificationsRequest, options?: AxiosRequestConfig) {
|
|
276
|
-
return MSGraphWebhooksApiFp(this.configuration).receiveNotifications(requestParameters.tenantSlug, requestParameters.validationToken, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
277
|
-
}
|
|
278
|
-
}
|