@emilgroup/notification-sdk 0.8.1-beta.62 → 0.8.1-beta.64
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 +6 -3
- package/api/email-messages-api.ts +30 -15
- package/api/email-subscriptions-api.ts +36 -18
- package/api/email-tracking-api.ts +36 -18
- package/api/email-verifications-api.ts +12 -6
- package/api/layouts-api.ts +30 -15
- package/api/notification-templates-api.ts +30 -15
- package/api/notifications-api.ts +12 -6
- package/base.ts +14 -0
- package/dist/api/email-mailboxes-api.js +11 -7
- package/dist/api/email-messages-api.js +53 -34
- package/dist/api/email-subscriptions-api.js +64 -41
- package/dist/api/email-tracking-api.js +62 -40
- package/dist/api/email-verifications-api.js +22 -14
- package/dist/api/layouts-api.js +51 -33
- package/dist/api/notification-templates-api.js +51 -33
- package/dist/api/notifications-api.js +22 -14
- package/dist/base.js +15 -1
- package/package.json +1 -1
|
@@ -104,9 +104,10 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
|
|
|
104
104
|
assignEntity: function (code, assignEmailThreadEntityBodyDto, authorization, options) {
|
|
105
105
|
if (options === void 0) { options = {}; }
|
|
106
106
|
return __awaiter(_this, void 0, void 0, function () {
|
|
107
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
108
|
+
var _a;
|
|
109
|
+
return __generator(this, function (_b) {
|
|
110
|
+
switch (_b.label) {
|
|
110
111
|
case 0:
|
|
111
112
|
// verify required parameter 'code' is not null or undefined
|
|
112
113
|
(0, common_1.assertParamExists)('assignEntity', 'code', code);
|
|
@@ -125,14 +126,17 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
|
|
|
125
126
|
// authentication bearer required
|
|
126
127
|
// http bearer authentication required
|
|
127
128
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
128
|
-
// Only Authorization falls back to the configured token
|
|
129
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
130
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
129
131
|
];
|
|
130
132
|
case 1:
|
|
131
133
|
// authentication bearer required
|
|
132
134
|
// http bearer authentication required
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
135
|
+
_b.sent();
|
|
136
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
137
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
138
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
139
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
136
140
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
137
141
|
}
|
|
138
142
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -159,9 +163,10 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
|
|
|
159
163
|
closeThread: function (code, authorization, options) {
|
|
160
164
|
if (options === void 0) { options = {}; }
|
|
161
165
|
return __awaiter(_this, void 0, void 0, function () {
|
|
162
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
163
|
-
|
|
164
|
-
|
|
166
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
167
|
+
var _a;
|
|
168
|
+
return __generator(this, function (_b) {
|
|
169
|
+
switch (_b.label) {
|
|
165
170
|
case 0:
|
|
166
171
|
// verify required parameter 'code' is not null or undefined
|
|
167
172
|
(0, common_1.assertParamExists)('closeThread', 'code', code);
|
|
@@ -178,14 +183,17 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
|
|
|
178
183
|
// authentication bearer required
|
|
179
184
|
// http bearer authentication required
|
|
180
185
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
181
|
-
// Only Authorization falls back to the configured token
|
|
186
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
187
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
182
188
|
];
|
|
183
189
|
case 1:
|
|
184
190
|
// authentication bearer required
|
|
185
191
|
// http bearer authentication required
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
192
|
+
_b.sent();
|
|
193
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
194
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
195
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
196
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
189
197
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
190
198
|
}
|
|
191
199
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -210,9 +218,10 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
|
|
|
210
218
|
getThread: function (code, authorization, options) {
|
|
211
219
|
if (options === void 0) { options = {}; }
|
|
212
220
|
return __awaiter(_this, void 0, void 0, function () {
|
|
213
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
214
|
-
|
|
215
|
-
|
|
221
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
222
|
+
var _a;
|
|
223
|
+
return __generator(this, function (_b) {
|
|
224
|
+
switch (_b.label) {
|
|
216
225
|
case 0:
|
|
217
226
|
// verify required parameter 'code' is not null or undefined
|
|
218
227
|
(0, common_1.assertParamExists)('getThread', 'code', code);
|
|
@@ -229,14 +238,17 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
|
|
|
229
238
|
// authentication bearer required
|
|
230
239
|
// http bearer authentication required
|
|
231
240
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
232
|
-
// Only Authorization falls back to the configured token
|
|
241
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
242
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
233
243
|
];
|
|
234
244
|
case 1:
|
|
235
245
|
// authentication bearer required
|
|
236
246
|
// http bearer authentication required
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
247
|
+
_b.sent();
|
|
248
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
249
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
250
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
251
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
240
252
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
241
253
|
}
|
|
242
254
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -265,9 +277,10 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
|
|
|
265
277
|
listMessages: function (code, authorization, filter, filters, order, expand, options) {
|
|
266
278
|
if (options === void 0) { options = {}; }
|
|
267
279
|
return __awaiter(_this, void 0, void 0, function () {
|
|
268
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
269
|
-
|
|
270
|
-
|
|
280
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
281
|
+
var _a;
|
|
282
|
+
return __generator(this, function (_b) {
|
|
283
|
+
switch (_b.label) {
|
|
271
284
|
case 0:
|
|
272
285
|
// verify required parameter 'code' is not null or undefined
|
|
273
286
|
(0, common_1.assertParamExists)('listMessages', 'code', code);
|
|
@@ -287,7 +300,7 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
|
|
|
287
300
|
case 1:
|
|
288
301
|
// authentication bearer required
|
|
289
302
|
// http bearer authentication required
|
|
290
|
-
|
|
303
|
+
_b.sent();
|
|
291
304
|
if (filter !== undefined) {
|
|
292
305
|
localVarQueryParameter['filter'] = filter;
|
|
293
306
|
}
|
|
@@ -300,8 +313,10 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
|
|
|
300
313
|
if (expand !== undefined) {
|
|
301
314
|
localVarQueryParameter['expand'] = expand;
|
|
302
315
|
}
|
|
303
|
-
|
|
304
|
-
|
|
316
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
317
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
318
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
319
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
305
320
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
306
321
|
}
|
|
307
322
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -332,9 +347,10 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
|
|
|
332
347
|
listThreads: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
333
348
|
if (options === void 0) { options = {}; }
|
|
334
349
|
return __awaiter(_this, void 0, void 0, function () {
|
|
335
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
336
|
-
|
|
337
|
-
|
|
350
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
351
|
+
var _a;
|
|
352
|
+
return __generator(this, function (_b) {
|
|
353
|
+
switch (_b.label) {
|
|
338
354
|
case 0:
|
|
339
355
|
localVarPath = "/notificationservice/v1/email-threads";
|
|
340
356
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -351,7 +367,7 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
|
|
|
351
367
|
case 1:
|
|
352
368
|
// authentication bearer required
|
|
353
369
|
// http bearer authentication required
|
|
354
|
-
|
|
370
|
+
_b.sent();
|
|
355
371
|
if (pageSize !== undefined) {
|
|
356
372
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
357
373
|
}
|
|
@@ -373,8 +389,10 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
|
|
|
373
389
|
if (filters !== undefined) {
|
|
374
390
|
localVarQueryParameter['filters'] = filters;
|
|
375
391
|
}
|
|
376
|
-
|
|
377
|
-
|
|
392
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
393
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
394
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
395
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
378
396
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
379
397
|
}
|
|
380
398
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -399,9 +417,10 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
|
|
|
399
417
|
unassignEntity: function (code, authorization, options) {
|
|
400
418
|
if (options === void 0) { options = {}; }
|
|
401
419
|
return __awaiter(_this, void 0, void 0, function () {
|
|
402
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
403
|
-
|
|
404
|
-
|
|
420
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
421
|
+
var _a;
|
|
422
|
+
return __generator(this, function (_b) {
|
|
423
|
+
switch (_b.label) {
|
|
405
424
|
case 0:
|
|
406
425
|
// verify required parameter 'code' is not null or undefined
|
|
407
426
|
(0, common_1.assertParamExists)('unassignEntity', 'code', code);
|
|
@@ -418,14 +437,17 @@ var EmailTrackingApiAxiosParamCreator = function (configuration) {
|
|
|
418
437
|
// authentication bearer required
|
|
419
438
|
// http bearer authentication required
|
|
420
439
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
421
|
-
// Only Authorization falls back to the configured token
|
|
440
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
441
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
422
442
|
];
|
|
423
443
|
case 1:
|
|
424
444
|
// authentication bearer required
|
|
425
445
|
// http bearer authentication required
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
446
|
+
_b.sent();
|
|
447
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
448
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
449
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
450
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
429
451
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
430
452
|
}
|
|
431
453
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -103,9 +103,10 @@ var EmailVerificationsApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
completeEmailVerification: function (completeEmailVerificationDto, authorization, options) {
|
|
104
104
|
if (options === void 0) { options = {}; }
|
|
105
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
107
|
+
var _a;
|
|
108
|
+
return __generator(this, function (_b) {
|
|
109
|
+
switch (_b.label) {
|
|
109
110
|
case 0:
|
|
110
111
|
// verify required parameter 'completeEmailVerificationDto' is not null or undefined
|
|
111
112
|
(0, common_1.assertParamExists)('completeEmailVerification', 'completeEmailVerificationDto', completeEmailVerificationDto);
|
|
@@ -121,14 +122,17 @@ var EmailVerificationsApiAxiosParamCreator = function (configuration) {
|
|
|
121
122
|
// authentication bearer required
|
|
122
123
|
// http bearer authentication required
|
|
123
124
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
124
|
-
// Only Authorization falls back to the configured token
|
|
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.
|
|
125
127
|
];
|
|
126
128
|
case 1:
|
|
127
129
|
// authentication bearer required
|
|
128
130
|
// http bearer authentication required
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
_b.sent();
|
|
132
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
133
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
134
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
135
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
132
136
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
133
137
|
}
|
|
134
138
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -155,9 +159,10 @@ var EmailVerificationsApiAxiosParamCreator = function (configuration) {
|
|
|
155
159
|
initiateEmailVerification: function (initiateEmailVerificationDto, authorization, options) {
|
|
156
160
|
if (options === void 0) { options = {}; }
|
|
157
161
|
return __awaiter(_this, void 0, void 0, function () {
|
|
158
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
159
|
-
|
|
160
|
-
|
|
162
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
163
|
+
var _a;
|
|
164
|
+
return __generator(this, function (_b) {
|
|
165
|
+
switch (_b.label) {
|
|
161
166
|
case 0:
|
|
162
167
|
// verify required parameter 'initiateEmailVerificationDto' is not null or undefined
|
|
163
168
|
(0, common_1.assertParamExists)('initiateEmailVerification', 'initiateEmailVerificationDto', initiateEmailVerificationDto);
|
|
@@ -173,14 +178,17 @@ var EmailVerificationsApiAxiosParamCreator = function (configuration) {
|
|
|
173
178
|
// authentication bearer required
|
|
174
179
|
// http bearer authentication required
|
|
175
180
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
176
|
-
// Only Authorization falls back to the configured token
|
|
181
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
182
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
177
183
|
];
|
|
178
184
|
case 1:
|
|
179
185
|
// authentication bearer required
|
|
180
186
|
// http bearer authentication required
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
187
|
+
_b.sent();
|
|
188
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
189
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
190
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
191
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
184
192
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
185
193
|
}
|
|
186
194
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
package/dist/api/layouts-api.js
CHANGED
|
@@ -103,9 +103,10 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
createLayout: function (createLayoutRequestDto, authorization, options) {
|
|
104
104
|
if (options === void 0) { options = {}; }
|
|
105
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
107
|
+
var _a;
|
|
108
|
+
return __generator(this, function (_b) {
|
|
109
|
+
switch (_b.label) {
|
|
109
110
|
case 0:
|
|
110
111
|
// verify required parameter 'createLayoutRequestDto' is not null or undefined
|
|
111
112
|
(0, common_1.assertParamExists)('createLayout', 'createLayoutRequestDto', createLayoutRequestDto);
|
|
@@ -121,14 +122,17 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
121
122
|
// authentication bearer required
|
|
122
123
|
// http bearer authentication required
|
|
123
124
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
124
|
-
// Only Authorization falls back to the configured token
|
|
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.
|
|
125
127
|
];
|
|
126
128
|
case 1:
|
|
127
129
|
// authentication bearer required
|
|
128
130
|
// http bearer authentication required
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
_b.sent();
|
|
132
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
133
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
134
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
135
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
132
136
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
133
137
|
}
|
|
134
138
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -155,9 +159,10 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
155
159
|
deleteLayout: function (id, authorization, options) {
|
|
156
160
|
if (options === void 0) { options = {}; }
|
|
157
161
|
return __awaiter(_this, void 0, void 0, function () {
|
|
158
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
159
|
-
|
|
160
|
-
|
|
162
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
163
|
+
var _a;
|
|
164
|
+
return __generator(this, function (_b) {
|
|
165
|
+
switch (_b.label) {
|
|
161
166
|
case 0:
|
|
162
167
|
// verify required parameter 'id' is not null or undefined
|
|
163
168
|
(0, common_1.assertParamExists)('deleteLayout', 'id', id);
|
|
@@ -174,14 +179,17 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
174
179
|
// authentication bearer required
|
|
175
180
|
// http bearer authentication required
|
|
176
181
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
177
|
-
// Only Authorization falls back to the configured token
|
|
182
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
183
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
178
184
|
];
|
|
179
185
|
case 1:
|
|
180
186
|
// authentication bearer required
|
|
181
187
|
// http bearer authentication required
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
188
|
+
_b.sent();
|
|
189
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
190
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
191
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
192
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
185
193
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
186
194
|
}
|
|
187
195
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -207,9 +215,10 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
207
215
|
getLayout: function (id, id2, authorization, options) {
|
|
208
216
|
if (options === void 0) { options = {}; }
|
|
209
217
|
return __awaiter(_this, void 0, void 0, function () {
|
|
210
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
211
|
-
|
|
212
|
-
|
|
218
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
219
|
+
var _a;
|
|
220
|
+
return __generator(this, function (_b) {
|
|
221
|
+
switch (_b.label) {
|
|
213
222
|
case 0:
|
|
214
223
|
// verify required parameter 'id' is not null or undefined
|
|
215
224
|
(0, common_1.assertParamExists)('getLayout', 'id', id);
|
|
@@ -231,12 +240,14 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
231
240
|
case 1:
|
|
232
241
|
// authentication bearer required
|
|
233
242
|
// http bearer authentication required
|
|
234
|
-
|
|
243
|
+
_b.sent();
|
|
235
244
|
if (id2 !== undefined) {
|
|
236
245
|
localVarQueryParameter['id'] = id2;
|
|
237
246
|
}
|
|
238
|
-
|
|
239
|
-
|
|
247
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
248
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
249
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
250
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
240
251
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
241
252
|
}
|
|
242
253
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -267,9 +278,10 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
267
278
|
listLayouts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
268
279
|
if (options === void 0) { options = {}; }
|
|
269
280
|
return __awaiter(_this, void 0, void 0, function () {
|
|
270
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
271
|
-
|
|
272
|
-
|
|
281
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
282
|
+
var _a;
|
|
283
|
+
return __generator(this, function (_b) {
|
|
284
|
+
switch (_b.label) {
|
|
273
285
|
case 0:
|
|
274
286
|
localVarPath = "/notificationservice/v1/layouts";
|
|
275
287
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -286,7 +298,7 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
286
298
|
case 1:
|
|
287
299
|
// authentication bearer required
|
|
288
300
|
// http bearer authentication required
|
|
289
|
-
|
|
301
|
+
_b.sent();
|
|
290
302
|
if (pageSize !== undefined) {
|
|
291
303
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
292
304
|
}
|
|
@@ -308,8 +320,10 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
308
320
|
if (filters !== undefined) {
|
|
309
321
|
localVarQueryParameter['filters'] = filters;
|
|
310
322
|
}
|
|
311
|
-
|
|
312
|
-
|
|
323
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
324
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
325
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
326
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
313
327
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
314
328
|
}
|
|
315
329
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -335,9 +349,10 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
335
349
|
updateLayout: function (id, updateLayoutRequestDto, authorization, options) {
|
|
336
350
|
if (options === void 0) { options = {}; }
|
|
337
351
|
return __awaiter(_this, void 0, void 0, function () {
|
|
338
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
339
|
-
|
|
340
|
-
|
|
352
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
353
|
+
var _a;
|
|
354
|
+
return __generator(this, function (_b) {
|
|
355
|
+
switch (_b.label) {
|
|
341
356
|
case 0:
|
|
342
357
|
// verify required parameter 'id' is not null or undefined
|
|
343
358
|
(0, common_1.assertParamExists)('updateLayout', 'id', id);
|
|
@@ -356,14 +371,17 @@ var LayoutsApiAxiosParamCreator = function (configuration) {
|
|
|
356
371
|
// authentication bearer required
|
|
357
372
|
// http bearer authentication required
|
|
358
373
|
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
359
|
-
// Only Authorization falls back to the configured token
|
|
374
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
375
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
360
376
|
];
|
|
361
377
|
case 1:
|
|
362
378
|
// authentication bearer required
|
|
363
379
|
// http bearer authentication required
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
380
|
+
_b.sent();
|
|
381
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
382
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
383
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
384
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
367
385
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
368
386
|
}
|
|
369
387
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|