@emilgroup/public-api-sdk 1.40.1-beta.20 → 1.40.1-beta.22

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.
Files changed (47) hide show
  1. package/README.md +2 -2
  2. package/api/address-completions-validations-api.ts +16 -6
  3. package/api/booking-funnels-api.ts +8 -3
  4. package/api/documents-api.ts +56 -21
  5. package/api/health-api.ts +1 -1
  6. package/api/ibanvalidator-api.ts +8 -3
  7. package/api/leads-api.ts +64 -24
  8. package/api/named-ranges-api.ts +8 -3
  9. package/api/notifications-api.ts +24 -9
  10. package/api/partners-api.ts +8 -3
  11. package/api/payments-setup-api.ts +60 -20
  12. package/api/product-versions-api.ts +32 -12
  13. package/api/products-api.ts +72 -27
  14. package/base.ts +239 -43
  15. package/common.ts +3 -2
  16. package/configuration.ts +20 -0
  17. package/dist/api/address-completions-validations-api.d.ts +2 -2
  18. package/dist/api/address-completions-validations-api.js +22 -14
  19. package/dist/api/booking-funnels-api.d.ts +1 -1
  20. package/dist/api/booking-funnels-api.js +11 -7
  21. package/dist/api/documents-api.d.ts +7 -7
  22. package/dist/api/documents-api.js +93 -53
  23. package/dist/api/health-api.d.ts +1 -1
  24. package/dist/api/health-api.js +1 -1
  25. package/dist/api/ibanvalidator-api.d.ts +1 -1
  26. package/dist/api/ibanvalidator-api.js +15 -8
  27. package/dist/api/leads-api.d.ts +8 -8
  28. package/dist/api/leads-api.js +120 -64
  29. package/dist/api/named-ranges-api.d.ts +1 -1
  30. package/dist/api/named-ranges-api.js +11 -7
  31. package/dist/api/notifications-api.d.ts +3 -3
  32. package/dist/api/notifications-api.js +45 -24
  33. package/dist/api/partners-api.d.ts +1 -1
  34. package/dist/api/partners-api.js +15 -8
  35. package/dist/api/payments-setup-api.d.ts +4 -4
  36. package/dist/api/payments-setup-api.js +80 -40
  37. package/dist/api/product-versions-api.d.ts +4 -4
  38. package/dist/api/product-versions-api.js +56 -31
  39. package/dist/api/products-api.d.ts +9 -9
  40. package/dist/api/products-api.js +119 -68
  41. package/dist/base.d.ts +26 -0
  42. package/dist/base.js +243 -60
  43. package/dist/common.d.ts +1 -1
  44. package/dist/common.js +1 -0
  45. package/dist/configuration.d.ts +17 -0
  46. package/dist/configuration.js +2 -0
  47. package/package.json +2 -2
@@ -103,9 +103,10 @@ var LeadsApiAxiosParamCreator = function (configuration) {
103
103
  createLead: function (createLeadRequestDto, 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, headersFromBaseOptions;
107
- return __generator(this, function (_a) {
108
- switch (_a.label) {
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 'createLeadRequestDto' is not null or undefined
111
112
  (0, common_1.assertParamExists)('createLead', 'createLeadRequestDto', createLeadRequestDto);
@@ -120,13 +121,19 @@ var LeadsApiAxiosParamCreator = function (configuration) {
120
121
  localVarQueryParameter = {};
121
122
  // authentication bearer required
122
123
  // http bearer authentication required
123
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
124
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
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
+ ];
124
128
  case 1:
125
129
  // authentication bearer required
126
130
  // http bearer authentication required
127
- _a.sent();
128
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
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) {
136
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
130
137
  }
131
138
  localVarHeaderParameter['Content-Type'] = 'application/json';
132
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -152,9 +159,10 @@ var LeadsApiAxiosParamCreator = function (configuration) {
152
159
  createLeadAsync: function (createLeadRequestDto, authorization, options) {
153
160
  if (options === void 0) { options = {}; }
154
161
  return __awaiter(_this, void 0, void 0, function () {
155
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
156
- return __generator(this, function (_a) {
157
- switch (_a.label) {
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) {
158
166
  case 0:
159
167
  // verify required parameter 'createLeadRequestDto' is not null or undefined
160
168
  (0, common_1.assertParamExists)('createLeadAsync', 'createLeadRequestDto', createLeadRequestDto);
@@ -169,13 +177,19 @@ var LeadsApiAxiosParamCreator = function (configuration) {
169
177
  localVarQueryParameter = {};
170
178
  // authentication bearer required
171
179
  // http bearer authentication required
172
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
180
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
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.
183
+ ];
173
184
  case 1:
174
185
  // authentication bearer required
175
186
  // http bearer authentication required
176
- _a.sent();
177
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
178
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
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) {
192
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
179
193
  }
180
194
  localVarHeaderParameter['Content-Type'] = 'application/json';
181
195
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -201,9 +215,10 @@ var LeadsApiAxiosParamCreator = function (configuration) {
201
215
  createLeadSync: function (createLeadRequestDto, authorization, options) {
202
216
  if (options === void 0) { options = {}; }
203
217
  return __awaiter(_this, void 0, void 0, function () {
204
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
205
- return __generator(this, function (_a) {
206
- switch (_a.label) {
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) {
207
222
  case 0:
208
223
  // verify required parameter 'createLeadRequestDto' is not null or undefined
209
224
  (0, common_1.assertParamExists)('createLeadSync', 'createLeadRequestDto', createLeadRequestDto);
@@ -218,13 +233,19 @@ var LeadsApiAxiosParamCreator = function (configuration) {
218
233
  localVarQueryParameter = {};
219
234
  // authentication bearer required
220
235
  // http bearer authentication required
221
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
236
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
237
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
238
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
239
+ ];
222
240
  case 1:
223
241
  // authentication bearer required
224
242
  // http bearer authentication required
225
- _a.sent();
226
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
227
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
243
+ _b.sent();
244
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
245
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
246
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
247
+ if (authorizationValue || authorizationKeepEmpty) {
248
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
228
249
  }
229
250
  localVarHeaderParameter['Content-Type'] = 'application/json';
230
251
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -250,9 +271,10 @@ var LeadsApiAxiosParamCreator = function (configuration) {
250
271
  getLead: function (code, authorization, options) {
251
272
  if (options === void 0) { options = {}; }
252
273
  return __awaiter(_this, void 0, void 0, function () {
253
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
254
- return __generator(this, function (_a) {
255
- switch (_a.label) {
274
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
275
+ var _a;
276
+ return __generator(this, function (_b) {
277
+ switch (_b.label) {
256
278
  case 0:
257
279
  // verify required parameter 'code' is not null or undefined
258
280
  (0, common_1.assertParamExists)('getLead', 'code', code);
@@ -268,13 +290,19 @@ var LeadsApiAxiosParamCreator = function (configuration) {
268
290
  localVarQueryParameter = {};
269
291
  // authentication bearer required
270
292
  // http bearer authentication required
271
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
293
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
294
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
295
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
296
+ ];
272
297
  case 1:
273
298
  // authentication bearer required
274
299
  // http bearer authentication required
275
- _a.sent();
276
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
277
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
300
+ _b.sent();
301
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
302
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
303
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
304
+ if (authorizationValue || authorizationKeepEmpty) {
305
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
278
306
  }
279
307
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
280
308
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -297,9 +325,10 @@ var LeadsApiAxiosParamCreator = function (configuration) {
297
325
  initiateLead: function (authorization, options) {
298
326
  if (options === void 0) { options = {}; }
299
327
  return __awaiter(_this, void 0, void 0, function () {
300
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
301
- return __generator(this, function (_a) {
302
- switch (_a.label) {
328
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
329
+ var _a;
330
+ return __generator(this, function (_b) {
331
+ switch (_b.label) {
303
332
  case 0:
304
333
  localVarPath = "/publicapi/v1/leads/initiate";
305
334
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -312,13 +341,19 @@ var LeadsApiAxiosParamCreator = function (configuration) {
312
341
  localVarQueryParameter = {};
313
342
  // authentication bearer required
314
343
  // http bearer authentication required
315
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
344
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
345
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
346
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
347
+ ];
316
348
  case 1:
317
349
  // authentication bearer required
318
350
  // http bearer authentication required
319
- _a.sent();
320
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
321
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
351
+ _b.sent();
352
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
353
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
354
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
355
+ if (authorizationValue || authorizationKeepEmpty) {
356
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
322
357
  }
323
358
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
324
359
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -342,9 +377,10 @@ var LeadsApiAxiosParamCreator = function (configuration) {
342
377
  initiateLeadWithProduct: function (productSlug, authorization, options) {
343
378
  if (options === void 0) { options = {}; }
344
379
  return __awaiter(_this, void 0, void 0, function () {
345
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
346
- return __generator(this, function (_a) {
347
- switch (_a.label) {
380
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
381
+ var _a;
382
+ return __generator(this, function (_b) {
383
+ switch (_b.label) {
348
384
  case 0:
349
385
  // verify required parameter 'productSlug' is not null or undefined
350
386
  (0, common_1.assertParamExists)('initiateLeadWithProduct', 'productSlug', productSlug);
@@ -360,13 +396,19 @@ var LeadsApiAxiosParamCreator = function (configuration) {
360
396
  localVarQueryParameter = {};
361
397
  // authentication bearer required
362
398
  // http bearer authentication required
363
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
399
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
400
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
401
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
402
+ ];
364
403
  case 1:
365
404
  // authentication bearer required
366
405
  // http bearer authentication required
367
- _a.sent();
368
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
369
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
406
+ _b.sent();
407
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
408
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
409
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
410
+ if (authorizationValue || authorizationKeepEmpty) {
411
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
370
412
  }
371
413
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
372
414
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -391,9 +433,10 @@ var LeadsApiAxiosParamCreator = function (configuration) {
391
433
  updateLead: function (code, updateLeadRequestDto, authorization, options) {
392
434
  if (options === void 0) { options = {}; }
393
435
  return __awaiter(_this, void 0, void 0, function () {
394
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
395
- return __generator(this, function (_a) {
396
- switch (_a.label) {
436
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
437
+ var _a;
438
+ return __generator(this, function (_b) {
439
+ switch (_b.label) {
397
440
  case 0:
398
441
  // verify required parameter 'code' is not null or undefined
399
442
  (0, common_1.assertParamExists)('updateLead', 'code', code);
@@ -411,13 +454,19 @@ var LeadsApiAxiosParamCreator = function (configuration) {
411
454
  localVarQueryParameter = {};
412
455
  // authentication bearer required
413
456
  // http bearer authentication required
414
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
457
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
458
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
459
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
460
+ ];
415
461
  case 1:
416
462
  // authentication bearer required
417
463
  // http bearer authentication required
418
- _a.sent();
419
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
420
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
464
+ _b.sent();
465
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
466
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
467
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
468
+ if (authorizationValue || authorizationKeepEmpty) {
469
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
421
470
  }
422
471
  localVarHeaderParameter['Content-Type'] = 'application/json';
423
472
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -444,9 +493,10 @@ var LeadsApiAxiosParamCreator = function (configuration) {
444
493
  updateLeadSync: function (code, updateLeadRequestDto, authorization, options) {
445
494
  if (options === void 0) { options = {}; }
446
495
  return __awaiter(_this, void 0, void 0, function () {
447
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
448
- return __generator(this, function (_a) {
449
- switch (_a.label) {
496
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
497
+ var _a;
498
+ return __generator(this, function (_b) {
499
+ switch (_b.label) {
450
500
  case 0:
451
501
  // verify required parameter 'code' is not null or undefined
452
502
  (0, common_1.assertParamExists)('updateLeadSync', 'code', code);
@@ -464,13 +514,19 @@ var LeadsApiAxiosParamCreator = function (configuration) {
464
514
  localVarQueryParameter = {};
465
515
  // authentication bearer required
466
516
  // http bearer authentication required
467
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
517
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
518
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
519
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
520
+ ];
468
521
  case 1:
469
522
  // authentication bearer required
470
523
  // http bearer authentication required
471
- _a.sent();
472
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
473
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
524
+ _b.sent();
525
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
526
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
527
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
528
+ if (authorizationValue || authorizationKeepEmpty) {
529
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
474
530
  }
475
531
  localVarHeaderParameter['Content-Type'] = 'application/json';
476
532
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -787,7 +843,7 @@ var LeadsApi = /** @class */ (function (_super) {
787
843
  */
788
844
  LeadsApi.prototype.createLead = function (requestParameters, options) {
789
845
  var _this = this;
790
- return (0, exports.LeadsApiFp)(this.configuration).createLead(requestParameters.createLeadRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
846
+ return (0, exports.LeadsApiFp)(this.configuration).createLead(requestParameters.createLeadRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
791
847
  };
792
848
  /**
793
849
  * This will send the lead to the queue for creation. Should be used when creating multiple leads at the same time - also called \'batch processing\'.
@@ -799,7 +855,7 @@ var LeadsApi = /** @class */ (function (_super) {
799
855
  */
800
856
  LeadsApi.prototype.createLeadAsync = function (requestParameters, options) {
801
857
  var _this = this;
802
- return (0, exports.LeadsApiFp)(this.configuration).createLeadAsync(requestParameters.createLeadRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
858
+ return (0, exports.LeadsApiFp)(this.configuration).createLeadAsync(requestParameters.createLeadRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
803
859
  };
804
860
  /**
805
861
  * This endpoint initiates the creation of a lead, which is the initial step in a comprehensive workflow responsible for the creation of an account, policy, and banking information. Unlike the standard lead creation endpoint, this variant ensures that the process waits until the entire workflow is successfully completed before providing a response.
@@ -811,7 +867,7 @@ var LeadsApi = /** @class */ (function (_super) {
811
867
  */
812
868
  LeadsApi.prototype.createLeadSync = function (requestParameters, options) {
813
869
  var _this = this;
814
- return (0, exports.LeadsApiFp)(this.configuration).createLeadSync(requestParameters.createLeadRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
870
+ return (0, exports.LeadsApiFp)(this.configuration).createLeadSync(requestParameters.createLeadRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
815
871
  };
816
872
  /**
817
873
  * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
@@ -823,7 +879,7 @@ var LeadsApi = /** @class */ (function (_super) {
823
879
  */
824
880
  LeadsApi.prototype.getLead = function (requestParameters, options) {
825
881
  var _this = this;
826
- return (0, exports.LeadsApiFp)(this.configuration).getLead(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
882
+ return (0, exports.LeadsApiFp)(this.configuration).getLead(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
827
883
  };
828
884
  /**
829
885
  * This will initiate a lead code.
@@ -836,7 +892,7 @@ var LeadsApi = /** @class */ (function (_super) {
836
892
  LeadsApi.prototype.initiateLead = function (requestParameters, options) {
837
893
  var _this = this;
838
894
  if (requestParameters === void 0) { requestParameters = {}; }
839
- return (0, exports.LeadsApiFp)(this.configuration).initiateLead(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
895
+ return (0, exports.LeadsApiFp)(this.configuration).initiateLead(requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
840
896
  };
841
897
  /**
842
898
  * This will initiate a lead code for the specified product.
@@ -848,7 +904,7 @@ var LeadsApi = /** @class */ (function (_super) {
848
904
  */
849
905
  LeadsApi.prototype.initiateLeadWithProduct = function (requestParameters, options) {
850
906
  var _this = this;
851
- return (0, exports.LeadsApiFp)(this.configuration).initiateLeadWithProduct(requestParameters.productSlug, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
907
+ return (0, exports.LeadsApiFp)(this.configuration).initiateLeadWithProduct(requestParameters.productSlug, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
852
908
  };
853
909
  /**
854
910
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
@@ -860,7 +916,7 @@ var LeadsApi = /** @class */ (function (_super) {
860
916
  */
861
917
  LeadsApi.prototype.updateLead = function (requestParameters, options) {
862
918
  var _this = this;
863
- return (0, exports.LeadsApiFp)(this.configuration).updateLead(requestParameters.code, requestParameters.updateLeadRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
919
+ return (0, exports.LeadsApiFp)(this.configuration).updateLead(requestParameters.code, requestParameters.updateLeadRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
864
920
  };
865
921
  /**
866
922
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
@@ -872,7 +928,7 @@ var LeadsApi = /** @class */ (function (_super) {
872
928
  */
873
929
  LeadsApi.prototype.updateLeadSync = function (requestParameters, options) {
874
930
  var _this = this;
875
- return (0, exports.LeadsApiFp)(this.configuration).updateLeadSync(requestParameters.code, requestParameters.updateLeadRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
931
+ return (0, exports.LeadsApiFp)(this.configuration).updateLeadSync(requestParameters.code, requestParameters.updateLeadRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
876
932
  };
877
933
  return LeadsApi;
878
934
  }(base_1.BaseAPI));
@@ -155,5 +155,5 @@ export declare class NamedRangesApi extends BaseAPI {
155
155
  * @throws {RequiredError}
156
156
  * @memberof NamedRangesApi
157
157
  */
158
- filterNamedRange(requestParameters: NamedRangesApiFilterNamedRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<FilterNamedRangeResponseClass, any, {}>>;
158
+ filterNamedRange(requestParameters: NamedRangesApiFilterNamedRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<FilterNamedRangeResponseClass, any, {}, any>>;
159
159
  }
@@ -110,9 +110,10 @@ var NamedRangesApiAxiosParamCreator = function (configuration) {
110
110
  filterNamedRange: function (productSlug, name, authorization, productVersionId, pageSize, pageToken, filters, search, order, options) {
111
111
  if (options === void 0) { options = {}; }
112
112
  return __awaiter(_this, void 0, void 0, function () {
113
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
114
- return __generator(this, function (_a) {
115
- switch (_a.label) {
113
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
114
+ var _a;
115
+ return __generator(this, function (_b) {
116
+ switch (_b.label) {
116
117
  case 0:
117
118
  // verify required parameter 'productSlug' is not null or undefined
118
119
  (0, common_1.assertParamExists)('filterNamedRange', 'productSlug', productSlug);
@@ -133,7 +134,7 @@ var NamedRangesApiAxiosParamCreator = function (configuration) {
133
134
  case 1:
134
135
  // authentication bearer required
135
136
  // http bearer authentication required
136
- _a.sent();
137
+ _b.sent();
137
138
  if (productSlug !== undefined) {
138
139
  localVarQueryParameter['productSlug'] = productSlug;
139
140
  }
@@ -158,8 +159,11 @@ var NamedRangesApiAxiosParamCreator = function (configuration) {
158
159
  if (order !== undefined) {
159
160
  localVarQueryParameter['order'] = order;
160
161
  }
161
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
162
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
162
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
163
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
164
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
165
+ if (authorizationValue || authorizationKeepEmpty) {
166
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
163
167
  }
164
168
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
165
169
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -262,7 +266,7 @@ var NamedRangesApi = /** @class */ (function (_super) {
262
266
  */
263
267
  NamedRangesApi.prototype.filterNamedRange = function (requestParameters, options) {
264
268
  var _this = this;
265
- return (0, exports.NamedRangesApiFp)(this.configuration).filterNamedRange(requestParameters.productSlug, requestParameters.name, requestParameters.authorization, requestParameters.productVersionId, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filters, requestParameters.search, requestParameters.order, options).then(function (request) { return request(_this.axios, _this.basePath); });
269
+ return (0, exports.NamedRangesApiFp)(this.configuration).filterNamedRange(requestParameters.productSlug, requestParameters.name, requestParameters.authorization, requestParameters.productVersionId, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filters, requestParameters.search, requestParameters.order, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
266
270
  };
267
271
  return NamedRangesApi;
268
272
  }(base_1.BaseAPI));
@@ -189,7 +189,7 @@ export declare class NotificationsApi extends BaseAPI {
189
189
  * @throws {RequiredError}
190
190
  * @memberof NotificationsApi
191
191
  */
192
- completeEmailVerification(requestParameters: NotificationsApiCompleteEmailVerificationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CompleteEmailVerificationResponseClass, any, {}>>;
192
+ completeEmailVerification(requestParameters: NotificationsApiCompleteEmailVerificationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CompleteEmailVerificationResponseClass, any, {}, any>>;
193
193
  /**
194
194
  * This sends an email to the specific recipient set to receive verification code.
195
195
  * @summary Initiate Email Verification.
@@ -198,7 +198,7 @@ export declare class NotificationsApi extends BaseAPI {
198
198
  * @throws {RequiredError}
199
199
  * @memberof NotificationsApi
200
200
  */
201
- initiateEmailVerification(requestParameters: NotificationsApiInitiateEmailVerificationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateEmailVerificationResponseClass, any, {}>>;
201
+ initiateEmailVerification(requestParameters: NotificationsApiInitiateEmailVerificationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InitiateEmailVerificationResponseClass, any, {}, any>>;
202
202
  /**
203
203
  * This sends an email to the specific recipient set to receive customers\' messages.
204
204
  * @summary Send an email.
@@ -207,5 +207,5 @@ export declare class NotificationsApi extends BaseAPI {
207
207
  * @throws {RequiredError}
208
208
  * @memberof NotificationsApi
209
209
  */
210
- sendNotification(requestParameters: NotificationsApiSendNotificationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SendNotificationResponseClass, any, {}>>;
210
+ sendNotification(requestParameters: NotificationsApiSendNotificationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SendNotificationResponseClass, any, {}, any>>;
211
211
  }
@@ -103,9 +103,10 @@ var NotificationsApiAxiosParamCreator = 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, headersFromBaseOptions;
107
- return __generator(this, function (_a) {
108
- switch (_a.label) {
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);
@@ -120,13 +121,19 @@ var NotificationsApiAxiosParamCreator = function (configuration) {
120
121
  localVarQueryParameter = {};
121
122
  // authentication bearer required
122
123
  // http bearer authentication required
123
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
124
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
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
+ ];
124
128
  case 1:
125
129
  // authentication bearer required
126
130
  // http bearer authentication required
127
- _a.sent();
128
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
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) {
136
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
130
137
  }
131
138
  localVarHeaderParameter['Content-Type'] = 'application/json';
132
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -152,9 +159,10 @@ var NotificationsApiAxiosParamCreator = function (configuration) {
152
159
  initiateEmailVerification: function (initiateEmailVerificationDto, authorization, options) {
153
160
  if (options === void 0) { options = {}; }
154
161
  return __awaiter(_this, void 0, void 0, function () {
155
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
156
- return __generator(this, function (_a) {
157
- switch (_a.label) {
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) {
158
166
  case 0:
159
167
  // verify required parameter 'initiateEmailVerificationDto' is not null or undefined
160
168
  (0, common_1.assertParamExists)('initiateEmailVerification', 'initiateEmailVerificationDto', initiateEmailVerificationDto);
@@ -169,13 +177,19 @@ var NotificationsApiAxiosParamCreator = function (configuration) {
169
177
  localVarQueryParameter = {};
170
178
  // authentication bearer required
171
179
  // http bearer authentication required
172
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
180
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
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.
183
+ ];
173
184
  case 1:
174
185
  // authentication bearer required
175
186
  // http bearer authentication required
176
- _a.sent();
177
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
178
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
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) {
192
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
179
193
  }
180
194
  localVarHeaderParameter['Content-Type'] = 'application/json';
181
195
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -201,9 +215,10 @@ var NotificationsApiAxiosParamCreator = function (configuration) {
201
215
  sendNotification: function (sendNotificationRequestDto, authorization, options) {
202
216
  if (options === void 0) { options = {}; }
203
217
  return __awaiter(_this, void 0, void 0, function () {
204
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
205
- return __generator(this, function (_a) {
206
- switch (_a.label) {
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) {
207
222
  case 0:
208
223
  // verify required parameter 'sendNotificationRequestDto' is not null or undefined
209
224
  (0, common_1.assertParamExists)('sendNotification', 'sendNotificationRequestDto', sendNotificationRequestDto);
@@ -218,13 +233,19 @@ var NotificationsApiAxiosParamCreator = function (configuration) {
218
233
  localVarQueryParameter = {};
219
234
  // authentication bearer required
220
235
  // http bearer authentication required
221
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
236
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
237
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
238
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
239
+ ];
222
240
  case 1:
223
241
  // authentication bearer required
224
242
  // http bearer authentication required
225
- _a.sent();
226
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
227
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
243
+ _b.sent();
244
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
245
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
246
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
247
+ if (authorizationValue || authorizationKeepEmpty) {
248
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
228
249
  }
229
250
  localVarHeaderParameter['Content-Type'] = 'application/json';
230
251
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -379,7 +400,7 @@ var NotificationsApi = /** @class */ (function (_super) {
379
400
  */
380
401
  NotificationsApi.prototype.completeEmailVerification = function (requestParameters, options) {
381
402
  var _this = this;
382
- return (0, exports.NotificationsApiFp)(this.configuration).completeEmailVerification(requestParameters.completeEmailVerificationDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
403
+ return (0, exports.NotificationsApiFp)(this.configuration).completeEmailVerification(requestParameters.completeEmailVerificationDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
383
404
  };
384
405
  /**
385
406
  * This sends an email to the specific recipient set to receive verification code.
@@ -391,7 +412,7 @@ var NotificationsApi = /** @class */ (function (_super) {
391
412
  */
392
413
  NotificationsApi.prototype.initiateEmailVerification = function (requestParameters, options) {
393
414
  var _this = this;
394
- return (0, exports.NotificationsApiFp)(this.configuration).initiateEmailVerification(requestParameters.initiateEmailVerificationDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
415
+ return (0, exports.NotificationsApiFp)(this.configuration).initiateEmailVerification(requestParameters.initiateEmailVerificationDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
395
416
  };
396
417
  /**
397
418
  * This sends an email to the specific recipient set to receive customers\' messages.
@@ -403,7 +424,7 @@ var NotificationsApi = /** @class */ (function (_super) {
403
424
  */
404
425
  NotificationsApi.prototype.sendNotification = function (requestParameters, options) {
405
426
  var _this = this;
406
- return (0, exports.NotificationsApiFp)(this.configuration).sendNotification(requestParameters.sendNotificationRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
427
+ return (0, exports.NotificationsApiFp)(this.configuration).sendNotification(requestParameters.sendNotificationRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
407
428
  };
408
429
  return NotificationsApi;
409
430
  }(base_1.BaseAPI));