@emilgroup/notification-sdk 0.8.1-beta.63 → 0.8.1-beta.65
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/README.md +2 -2
- package/api/email-mailboxes-api.ts +7 -4
- package/api/email-messages-api.ts +35 -20
- package/api/email-subscriptions-api.ts +42 -24
- package/api/email-tracking-api.ts +42 -24
- package/api/email-verifications-api.ts +14 -8
- package/api/health-api.ts +1 -1
- package/api/layouts-api.ts +35 -20
- package/api/msgraph-webhooks-api.ts +2 -2
- package/api/notification-templates-api.ts +35 -20
- package/api/notifications-api.ts +14 -8
- package/base.ts +72 -9
- package/dist/api/email-mailboxes-api.js +12 -8
- package/dist/api/email-messages-api.js +58 -39
- package/dist/api/email-subscriptions-api.js +70 -47
- package/dist/api/email-tracking-api.js +68 -46
- package/dist/api/email-verifications-api.js +24 -16
- package/dist/api/health-api.js +1 -1
- package/dist/api/layouts-api.js +56 -38
- package/dist/api/msgraph-webhooks-api.js +2 -2
- package/dist/api/notification-templates-api.js +56 -38
- package/dist/api/notifications-api.js +24 -16
- package/dist/base.d.ts +2 -0
- package/dist/base.js +74 -10
- package/package.json +1 -1
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.65 --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.65
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import ``.
|
|
@@ -54,9 +54,12 @@ export const EmailMailboxesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
54
54
|
// http bearer authentication required
|
|
55
55
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
56
56
|
|
|
57
|
-
// Only Authorization falls back to the configured token
|
|
58
|
-
|
|
59
|
-
|
|
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) {
|
|
60
63
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
61
64
|
}
|
|
62
65
|
|
|
@@ -145,6 +148,6 @@ export class EmailMailboxesApi extends BaseAPI {
|
|
|
145
148
|
* @memberof EmailMailboxesApi
|
|
146
149
|
*/
|
|
147
150
|
public listEmailMailboxes(requestParameters: EmailMailboxesApiListEmailMailboxesRequest = {}, options?: AxiosRequestConfig) {
|
|
148
|
-
return EmailMailboxesApiFp(this.configuration).listEmailMailboxes(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
151
|
+
return EmailMailboxesApiFp(this.configuration).listEmailMailboxes(requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
149
152
|
}
|
|
150
153
|
}
|
|
@@ -72,9 +72,12 @@ export const EmailMessagesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
72
72
|
// http bearer authentication required
|
|
73
73
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
74
74
|
|
|
75
|
-
// Only Authorization falls back to the configured token
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
76
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
77
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
78
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
79
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
80
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
78
81
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
79
82
|
}
|
|
80
83
|
|
|
@@ -119,9 +122,12 @@ export const EmailMessagesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
119
122
|
// http bearer authentication required
|
|
120
123
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
121
124
|
|
|
122
|
-
// Only Authorization falls back to the configured token
|
|
123
|
-
|
|
124
|
-
|
|
125
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
126
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
127
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
128
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
129
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
130
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
125
131
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
126
132
|
}
|
|
127
133
|
|
|
@@ -166,9 +172,12 @@ export const EmailMessagesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
166
172
|
// http bearer authentication required
|
|
167
173
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
168
174
|
|
|
169
|
-
// Only Authorization falls back to the configured token
|
|
170
|
-
|
|
171
|
-
|
|
175
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
176
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
177
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
178
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
179
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
180
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
172
181
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
173
182
|
}
|
|
174
183
|
|
|
@@ -244,9 +253,12 @@ export const EmailMessagesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
244
253
|
localVarQueryParameter['filters'] = filters;
|
|
245
254
|
}
|
|
246
255
|
|
|
247
|
-
// Only Authorization falls back to the configured token
|
|
248
|
-
|
|
249
|
-
|
|
256
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
257
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
258
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
259
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
260
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
261
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
250
262
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
251
263
|
}
|
|
252
264
|
|
|
@@ -294,9 +306,12 @@ export const EmailMessagesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
294
306
|
// http bearer authentication required
|
|
295
307
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
296
308
|
|
|
297
|
-
// Only Authorization falls back to the configured token
|
|
298
|
-
|
|
299
|
-
|
|
309
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
310
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
311
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
312
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
313
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
314
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
300
315
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
301
316
|
}
|
|
302
317
|
|
|
@@ -645,7 +660,7 @@ export class EmailMessagesApi extends BaseAPI {
|
|
|
645
660
|
* @memberof EmailMessagesApi
|
|
646
661
|
*/
|
|
647
662
|
public downloadAttachment(requestParameters: EmailMessagesApiDownloadAttachmentRequest, options?: AxiosRequestConfig) {
|
|
648
|
-
return EmailMessagesApiFp(this.configuration).downloadAttachment(requestParameters.code, requestParameters.attachmentId, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
663
|
+
return EmailMessagesApiFp(this.configuration).downloadAttachment(requestParameters.code, requestParameters.attachmentId, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
649
664
|
}
|
|
650
665
|
|
|
651
666
|
/**
|
|
@@ -657,7 +672,7 @@ export class EmailMessagesApi extends BaseAPI {
|
|
|
657
672
|
* @memberof EmailMessagesApi
|
|
658
673
|
*/
|
|
659
674
|
public getMessage(requestParameters: EmailMessagesApiGetMessageRequest, options?: AxiosRequestConfig) {
|
|
660
|
-
return EmailMessagesApiFp(this.configuration).getMessage(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
675
|
+
return EmailMessagesApiFp(this.configuration).getMessage(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
661
676
|
}
|
|
662
677
|
|
|
663
678
|
/**
|
|
@@ -669,7 +684,7 @@ export class EmailMessagesApi extends BaseAPI {
|
|
|
669
684
|
* @memberof EmailMessagesApi
|
|
670
685
|
*/
|
|
671
686
|
public listAttachments(requestParameters: EmailMessagesApiListAttachmentsRequest, options?: AxiosRequestConfig) {
|
|
672
|
-
return EmailMessagesApiFp(this.configuration).listAttachments(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
687
|
+
return EmailMessagesApiFp(this.configuration).listAttachments(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
673
688
|
}
|
|
674
689
|
|
|
675
690
|
/**
|
|
@@ -681,7 +696,7 @@ export class EmailMessagesApi extends BaseAPI {
|
|
|
681
696
|
* @memberof EmailMessagesApi
|
|
682
697
|
*/
|
|
683
698
|
public listEmailMessages(requestParameters: EmailMessagesApiListEmailMessagesRequest = {}, options?: AxiosRequestConfig) {
|
|
684
|
-
return EmailMessagesApiFp(this.configuration).listEmailMessages(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
699
|
+
return EmailMessagesApiFp(this.configuration).listEmailMessages(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
685
700
|
}
|
|
686
701
|
|
|
687
702
|
/**
|
|
@@ -693,6 +708,6 @@ export class EmailMessagesApi extends BaseAPI {
|
|
|
693
708
|
* @memberof EmailMessagesApi
|
|
694
709
|
*/
|
|
695
710
|
public resendMessage(requestParameters: EmailMessagesApiResendMessageRequest, options?: AxiosRequestConfig) {
|
|
696
|
-
return EmailMessagesApiFp(this.configuration).resendMessage(requestParameters.code, requestParameters.resendEmailMessageBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
711
|
+
return EmailMessagesApiFp(this.configuration).resendMessage(requestParameters.code, requestParameters.resendEmailMessageBodyDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
697
712
|
}
|
|
698
713
|
}
|
|
@@ -72,9 +72,12 @@ export const EmailSubscriptionsApiAxiosParamCreator = function (configuration?:
|
|
|
72
72
|
// http bearer authentication required
|
|
73
73
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
74
74
|
|
|
75
|
-
// Only Authorization falls back to the configured token
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
76
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
77
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
78
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
79
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
80
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
78
81
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
79
82
|
}
|
|
80
83
|
|
|
@@ -118,9 +121,12 @@ export const EmailSubscriptionsApiAxiosParamCreator = function (configuration?:
|
|
|
118
121
|
// http bearer authentication required
|
|
119
122
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
120
123
|
|
|
121
|
-
// Only Authorization falls back to the configured token
|
|
122
|
-
|
|
123
|
-
|
|
124
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
125
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
126
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
127
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
128
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
129
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
124
130
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
125
131
|
}
|
|
126
132
|
|
|
@@ -168,9 +174,12 @@ export const EmailSubscriptionsApiAxiosParamCreator = function (configuration?:
|
|
|
168
174
|
// http bearer authentication required
|
|
169
175
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
170
176
|
|
|
171
|
-
// Only Authorization falls back to the configured token
|
|
172
|
-
|
|
173
|
-
|
|
177
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
178
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
179
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
180
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
181
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
182
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
174
183
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
175
184
|
}
|
|
176
185
|
|
|
@@ -246,9 +255,12 @@ export const EmailSubscriptionsApiAxiosParamCreator = function (configuration?:
|
|
|
246
255
|
localVarQueryParameter['filters'] = filters;
|
|
247
256
|
}
|
|
248
257
|
|
|
249
|
-
// Only Authorization falls back to the configured token
|
|
250
|
-
|
|
251
|
-
|
|
258
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
259
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
260
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
261
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
262
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
263
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
252
264
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
253
265
|
}
|
|
254
266
|
|
|
@@ -292,9 +304,12 @@ export const EmailSubscriptionsApiAxiosParamCreator = function (configuration?:
|
|
|
292
304
|
// http bearer authentication required
|
|
293
305
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
294
306
|
|
|
295
|
-
// Only Authorization falls back to the configured token
|
|
296
|
-
|
|
297
|
-
|
|
307
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
308
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
309
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
310
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
311
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
312
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
298
313
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
299
314
|
}
|
|
300
315
|
|
|
@@ -342,9 +357,12 @@ export const EmailSubscriptionsApiAxiosParamCreator = function (configuration?:
|
|
|
342
357
|
// http bearer authentication required
|
|
343
358
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
344
359
|
|
|
345
|
-
// Only Authorization falls back to the configured token
|
|
346
|
-
|
|
347
|
-
|
|
360
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
361
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
362
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
363
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
364
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
365
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
348
366
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
349
367
|
}
|
|
350
368
|
|
|
@@ -716,7 +734,7 @@ export class EmailSubscriptionsApi extends BaseAPI {
|
|
|
716
734
|
* @memberof EmailSubscriptionsApi
|
|
717
735
|
*/
|
|
718
736
|
public catchUpEmailSubscription(requestParameters: EmailSubscriptionsApiCatchUpEmailSubscriptionRequest, options?: AxiosRequestConfig) {
|
|
719
|
-
return EmailSubscriptionsApiFp(this.configuration).catchUpEmailSubscription(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
737
|
+
return EmailSubscriptionsApiFp(this.configuration).catchUpEmailSubscription(requestParameters.id, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
720
738
|
}
|
|
721
739
|
|
|
722
740
|
/**
|
|
@@ -728,7 +746,7 @@ export class EmailSubscriptionsApi extends BaseAPI {
|
|
|
728
746
|
* @memberof EmailSubscriptionsApi
|
|
729
747
|
*/
|
|
730
748
|
public catchUpEmailSubscriptions(requestParameters: EmailSubscriptionsApiCatchUpEmailSubscriptionsRequest, options?: AxiosRequestConfig) {
|
|
731
|
-
return EmailSubscriptionsApiFp(this.configuration).catchUpEmailSubscriptions(requestParameters.catchUpEmailSubscriptionsRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
749
|
+
return EmailSubscriptionsApiFp(this.configuration).catchUpEmailSubscriptions(requestParameters.catchUpEmailSubscriptionsRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
732
750
|
}
|
|
733
751
|
|
|
734
752
|
/**
|
|
@@ -740,7 +758,7 @@ export class EmailSubscriptionsApi extends BaseAPI {
|
|
|
740
758
|
* @memberof EmailSubscriptionsApi
|
|
741
759
|
*/
|
|
742
760
|
public getEmailSubscription(requestParameters: EmailSubscriptionsApiGetEmailSubscriptionRequest, options?: AxiosRequestConfig) {
|
|
743
|
-
return EmailSubscriptionsApiFp(this.configuration).getEmailSubscription(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
761
|
+
return EmailSubscriptionsApiFp(this.configuration).getEmailSubscription(requestParameters.id, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
744
762
|
}
|
|
745
763
|
|
|
746
764
|
/**
|
|
@@ -752,7 +770,7 @@ export class EmailSubscriptionsApi extends BaseAPI {
|
|
|
752
770
|
* @memberof EmailSubscriptionsApi
|
|
753
771
|
*/
|
|
754
772
|
public listEmailSubscriptions(requestParameters: EmailSubscriptionsApiListEmailSubscriptionsRequest = {}, options?: AxiosRequestConfig) {
|
|
755
|
-
return EmailSubscriptionsApiFp(this.configuration).listEmailSubscriptions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
773
|
+
return EmailSubscriptionsApiFp(this.configuration).listEmailSubscriptions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
756
774
|
}
|
|
757
775
|
|
|
758
776
|
/**
|
|
@@ -764,7 +782,7 @@ export class EmailSubscriptionsApi extends BaseAPI {
|
|
|
764
782
|
* @memberof EmailSubscriptionsApi
|
|
765
783
|
*/
|
|
766
784
|
public reconcileEmailSubscriptions(requestParameters: EmailSubscriptionsApiReconcileEmailSubscriptionsRequest, options?: AxiosRequestConfig) {
|
|
767
|
-
return EmailSubscriptionsApiFp(this.configuration).reconcileEmailSubscriptions(requestParameters.reconcileEmailSubscriptionsRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
785
|
+
return EmailSubscriptionsApiFp(this.configuration).reconcileEmailSubscriptions(requestParameters.reconcileEmailSubscriptionsRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
768
786
|
}
|
|
769
787
|
|
|
770
788
|
/**
|
|
@@ -776,6 +794,6 @@ export class EmailSubscriptionsApi extends BaseAPI {
|
|
|
776
794
|
* @memberof EmailSubscriptionsApi
|
|
777
795
|
*/
|
|
778
796
|
public renewEmailSubscription(requestParameters: EmailSubscriptionsApiRenewEmailSubscriptionRequest, options?: AxiosRequestConfig) {
|
|
779
|
-
return EmailSubscriptionsApiFp(this.configuration).renewEmailSubscription(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
797
|
+
return EmailSubscriptionsApiFp(this.configuration).renewEmailSubscription(requestParameters.id, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
780
798
|
}
|
|
781
799
|
}
|
|
@@ -71,9 +71,12 @@ export const EmailTrackingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
71
71
|
// http bearer authentication required
|
|
72
72
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
73
73
|
|
|
74
|
-
// Only Authorization falls back to the configured token
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
75
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
76
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
77
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
78
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
79
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
77
80
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
78
81
|
}
|
|
79
82
|
|
|
@@ -121,9 +124,12 @@ export const EmailTrackingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
121
124
|
// http bearer authentication required
|
|
122
125
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
123
126
|
|
|
124
|
-
// Only Authorization falls back to the configured token
|
|
125
|
-
|
|
126
|
-
|
|
127
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
128
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
129
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
130
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
131
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
132
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
127
133
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
128
134
|
}
|
|
129
135
|
|
|
@@ -168,9 +174,12 @@ export const EmailTrackingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
168
174
|
// http bearer authentication required
|
|
169
175
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
170
176
|
|
|
171
|
-
// Only Authorization falls back to the configured token
|
|
172
|
-
|
|
173
|
-
|
|
177
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
178
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
179
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
180
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
181
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
182
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
174
183
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
175
184
|
}
|
|
176
185
|
|
|
@@ -235,9 +244,12 @@ export const EmailTrackingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
235
244
|
localVarQueryParameter['expand'] = expand;
|
|
236
245
|
}
|
|
237
246
|
|
|
238
|
-
// Only Authorization falls back to the configured token
|
|
239
|
-
|
|
240
|
-
|
|
247
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
248
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
249
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
250
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
251
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
252
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
241
253
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
242
254
|
}
|
|
243
255
|
|
|
@@ -313,9 +325,12 @@ export const EmailTrackingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
313
325
|
localVarQueryParameter['filters'] = filters;
|
|
314
326
|
}
|
|
315
327
|
|
|
316
|
-
// Only Authorization falls back to the configured token
|
|
317
|
-
|
|
318
|
-
|
|
328
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
329
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
330
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
331
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
332
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
333
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
319
334
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
320
335
|
}
|
|
321
336
|
|
|
@@ -360,9 +375,12 @@ export const EmailTrackingApiAxiosParamCreator = function (configuration?: Confi
|
|
|
360
375
|
// http bearer authentication required
|
|
361
376
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
362
377
|
|
|
363
|
-
// Only Authorization falls back to the configured token
|
|
364
|
-
|
|
365
|
-
|
|
378
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
379
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
380
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
381
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
382
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
383
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
366
384
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
367
385
|
}
|
|
368
386
|
|
|
@@ -779,7 +797,7 @@ export class EmailTrackingApi extends BaseAPI {
|
|
|
779
797
|
* @memberof EmailTrackingApi
|
|
780
798
|
*/
|
|
781
799
|
public assignEntity(requestParameters: EmailTrackingApiAssignEntityRequest, options?: AxiosRequestConfig) {
|
|
782
|
-
return EmailTrackingApiFp(this.configuration).assignEntity(requestParameters.code, requestParameters.assignEmailThreadEntityBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
800
|
+
return EmailTrackingApiFp(this.configuration).assignEntity(requestParameters.code, requestParameters.assignEmailThreadEntityBodyDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
783
801
|
}
|
|
784
802
|
|
|
785
803
|
/**
|
|
@@ -791,7 +809,7 @@ export class EmailTrackingApi extends BaseAPI {
|
|
|
791
809
|
* @memberof EmailTrackingApi
|
|
792
810
|
*/
|
|
793
811
|
public closeThread(requestParameters: EmailTrackingApiCloseThreadRequest, options?: AxiosRequestConfig) {
|
|
794
|
-
return EmailTrackingApiFp(this.configuration).closeThread(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
812
|
+
return EmailTrackingApiFp(this.configuration).closeThread(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
795
813
|
}
|
|
796
814
|
|
|
797
815
|
/**
|
|
@@ -803,7 +821,7 @@ export class EmailTrackingApi extends BaseAPI {
|
|
|
803
821
|
* @memberof EmailTrackingApi
|
|
804
822
|
*/
|
|
805
823
|
public getThread(requestParameters: EmailTrackingApiGetThreadRequest, options?: AxiosRequestConfig) {
|
|
806
|
-
return EmailTrackingApiFp(this.configuration).getThread(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
824
|
+
return EmailTrackingApiFp(this.configuration).getThread(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
807
825
|
}
|
|
808
826
|
|
|
809
827
|
/**
|
|
@@ -815,7 +833,7 @@ export class EmailTrackingApi extends BaseAPI {
|
|
|
815
833
|
* @memberof EmailTrackingApi
|
|
816
834
|
*/
|
|
817
835
|
public listMessages(requestParameters: EmailTrackingApiListMessagesRequest, options?: AxiosRequestConfig) {
|
|
818
|
-
return EmailTrackingApiFp(this.configuration).listMessages(requestParameters.code, requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
836
|
+
return EmailTrackingApiFp(this.configuration).listMessages(requestParameters.code, requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
819
837
|
}
|
|
820
838
|
|
|
821
839
|
/**
|
|
@@ -827,7 +845,7 @@ export class EmailTrackingApi extends BaseAPI {
|
|
|
827
845
|
* @memberof EmailTrackingApi
|
|
828
846
|
*/
|
|
829
847
|
public listThreads(requestParameters: EmailTrackingApiListThreadsRequest = {}, options?: AxiosRequestConfig) {
|
|
830
|
-
return EmailTrackingApiFp(this.configuration).listThreads(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
848
|
+
return EmailTrackingApiFp(this.configuration).listThreads(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
831
849
|
}
|
|
832
850
|
|
|
833
851
|
/**
|
|
@@ -839,6 +857,6 @@ export class EmailTrackingApi extends BaseAPI {
|
|
|
839
857
|
* @memberof EmailTrackingApi
|
|
840
858
|
*/
|
|
841
859
|
public unassignEntity(requestParameters: EmailTrackingApiUnassignEntityRequest, options?: AxiosRequestConfig) {
|
|
842
|
-
return EmailTrackingApiFp(this.configuration).unassignEntity(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
860
|
+
return EmailTrackingApiFp(this.configuration).unassignEntity(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
843
861
|
}
|
|
844
862
|
}
|
|
@@ -63,9 +63,12 @@ export const EmailVerificationsApiAxiosParamCreator = function (configuration?:
|
|
|
63
63
|
// http bearer authentication required
|
|
64
64
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
65
65
|
|
|
66
|
-
// Only Authorization falls back to the configured token
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
67
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
68
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
69
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
70
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
71
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
69
72
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
70
73
|
}
|
|
71
74
|
|
|
@@ -112,9 +115,12 @@ export const EmailVerificationsApiAxiosParamCreator = function (configuration?:
|
|
|
112
115
|
// http bearer authentication required
|
|
113
116
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
114
117
|
|
|
115
|
-
// Only Authorization falls back to the configured token
|
|
116
|
-
|
|
117
|
-
|
|
118
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
119
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
120
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
121
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
122
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
123
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
118
124
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
119
125
|
}
|
|
120
126
|
|
|
@@ -259,7 +265,7 @@ export class EmailVerificationsApi extends BaseAPI {
|
|
|
259
265
|
* @memberof EmailVerificationsApi
|
|
260
266
|
*/
|
|
261
267
|
public completeEmailVerification(requestParameters: EmailVerificationsApiCompleteEmailVerificationRequest, options?: AxiosRequestConfig) {
|
|
262
|
-
return EmailVerificationsApiFp(this.configuration).completeEmailVerification(requestParameters.completeEmailVerificationDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
268
|
+
return EmailVerificationsApiFp(this.configuration).completeEmailVerification(requestParameters.completeEmailVerificationDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
263
269
|
}
|
|
264
270
|
|
|
265
271
|
/**
|
|
@@ -271,6 +277,6 @@ export class EmailVerificationsApi extends BaseAPI {
|
|
|
271
277
|
* @memberof EmailVerificationsApi
|
|
272
278
|
*/
|
|
273
279
|
public initiateEmailVerification(requestParameters: EmailVerificationsApiInitiateEmailVerificationRequest, options?: AxiosRequestConfig) {
|
|
274
|
-
return EmailVerificationsApiFp(this.configuration).initiateEmailVerification(requestParameters.initiateEmailVerificationDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
280
|
+
return EmailVerificationsApiFp(this.configuration).initiateEmailVerification(requestParameters.initiateEmailVerificationDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
275
281
|
}
|
|
276
282
|
}
|
package/api/health-api.ts
CHANGED
|
@@ -119,6 +119,6 @@ export class HealthApi extends BaseAPI {
|
|
|
119
119
|
* @memberof HealthApi
|
|
120
120
|
*/
|
|
121
121
|
public check(options?: AxiosRequestConfig) {
|
|
122
|
-
return HealthApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
|
|
122
|
+
return HealthApiFp(this.configuration).check(this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
123
123
|
}
|
|
124
124
|
}
|