@emilgroup/tenant-sdk 1.42.1-beta.143 → 1.42.1-beta.145

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 (101) hide show
  1. package/.openapi-generator/FILES +0 -3
  2. package/README.md +2 -2
  3. package/api/custom-schema-api.ts +12 -32
  4. package/api/dashboard-api.ts +36 -96
  5. package/api/dashboard-group-api.ts +15 -40
  6. package/api/data-report-api.ts +12 -32
  7. package/api/data-report-executor-api.ts +3 -8
  8. package/api/delete-organization-invitations-api.ts +3 -8
  9. package/api/health-check-api.ts +1 -1
  10. package/api/invitation-controller-rest-api.ts +12 -32
  11. package/api/invite-organizations-api.ts +3 -8
  12. package/api/invite-users-api.ts +12 -32
  13. package/api/list-organization-invitations-api.ts +3 -8
  14. package/api/organization-migration-api.ts +15 -40
  15. package/api/organizations-api.ts +9 -24
  16. package/api/re-invite-an-organization-api.ts +3 -8
  17. package/api/report-schedule-api.ts +15 -40
  18. package/api/report-schedule-logs-api.ts +3 -8
  19. package/api/roles-api.ts +3 -8
  20. package/api/settings-api.ts +12 -32
  21. package/api/ssoconnection-api.ts +21 -168
  22. package/api/ssoid-pgroups-api.ts +18 -48
  23. package/api/user-controller-rest-api.ts +49 -108
  24. package/api/user-group-api.ts +24 -64
  25. package/api/users-api.ts +37 -76
  26. package/base.ts +43 -239
  27. package/common.ts +2 -3
  28. package/configuration.ts +0 -20
  29. package/dist/api/custom-schema-api.d.ts +4 -4
  30. package/dist/api/custom-schema-api.js +30 -52
  31. package/dist/api/dashboard-api.d.ts +12 -12
  32. package/dist/api/dashboard-api.js +95 -176
  33. package/dist/api/dashboard-group-api.d.ts +5 -5
  34. package/dist/api/dashboard-group-api.js +39 -71
  35. package/dist/api/data-report-api.d.ts +4 -4
  36. package/dist/api/data-report-api.js +30 -52
  37. package/dist/api/data-report-executor-api.d.ts +1 -1
  38. package/dist/api/data-report-executor-api.js +8 -15
  39. package/dist/api/delete-organization-invitations-api.d.ts +1 -1
  40. package/dist/api/delete-organization-invitations-api.js +8 -15
  41. package/dist/api/health-check-api.d.ts +1 -1
  42. package/dist/api/health-check-api.js +1 -1
  43. package/dist/api/invitation-controller-rest-api.d.ts +4 -4
  44. package/dist/api/invitation-controller-rest-api.js +31 -56
  45. package/dist/api/invite-organizations-api.d.ts +1 -1
  46. package/dist/api/invite-organizations-api.js +8 -15
  47. package/dist/api/invite-users-api.d.ts +4 -4
  48. package/dist/api/invite-users-api.js +31 -56
  49. package/dist/api/list-organization-invitations-api.d.ts +1 -1
  50. package/dist/api/list-organization-invitations-api.js +7 -11
  51. package/dist/api/organization-migration-api.d.ts +5 -5
  52. package/dist/api/organization-migration-api.js +38 -67
  53. package/dist/api/organizations-api.d.ts +3 -3
  54. package/dist/api/organizations-api.js +23 -41
  55. package/dist/api/re-invite-an-organization-api.d.ts +1 -1
  56. package/dist/api/re-invite-an-organization-api.js +8 -15
  57. package/dist/api/report-schedule-api.d.ts +5 -5
  58. package/dist/api/report-schedule-api.js +38 -67
  59. package/dist/api/report-schedule-logs-api.d.ts +1 -1
  60. package/dist/api/report-schedule-logs-api.js +7 -11
  61. package/dist/api/roles-api.d.ts +1 -1
  62. package/dist/api/roles-api.js +7 -11
  63. package/dist/api/settings-api.d.ts +4 -4
  64. package/dist/api/settings-api.js +30 -52
  65. package/dist/api/ssoconnection-api.d.ts +7 -64
  66. package/dist/api/ssoconnection-api.js +56 -205
  67. package/dist/api/ssoid-pgroups-api.d.ts +6 -6
  68. package/dist/api/ssoid-pgroups-api.js +47 -86
  69. package/dist/api/user-controller-rest-api.d.ts +27 -31
  70. package/dist/api/user-controller-rest-api.js +99 -171
  71. package/dist/api/user-group-api.d.ts +8 -8
  72. package/dist/api/user-group-api.js +62 -112
  73. package/dist/api/users-api.d.ts +23 -27
  74. package/dist/api/users-api.js +68 -115
  75. package/dist/base.d.ts +0 -26
  76. package/dist/base.js +60 -243
  77. package/dist/common.d.ts +1 -1
  78. package/dist/common.js +0 -1
  79. package/dist/configuration.d.ts +0 -17
  80. package/dist/configuration.js +0 -2
  81. package/dist/models/create-sso-connection-request-dto.d.ts +0 -1
  82. package/dist/models/create-sso-connection-request-dto.js +1 -2
  83. package/dist/models/dbconfig-dto.d.ts +0 -6
  84. package/dist/models/index.d.ts +0 -3
  85. package/dist/models/index.js +0 -3
  86. package/dist/models/sso-connection-class.d.ts +0 -1
  87. package/dist/models/sso-connection-class.js +1 -2
  88. package/models/create-sso-connection-request-dto.ts +1 -2
  89. package/models/dbconfig-dto.ts +0 -6
  90. package/models/index.ts +0 -3
  91. package/models/sso-connection-class.ts +1 -2
  92. package/package.json +2 -2
  93. package/dist/models/delete-tenant-request-dto.d.ts +0 -30
  94. package/dist/models/delete-tenant-request-dto.js +0 -15
  95. package/dist/models/validate-sso-idp-url-request-dto.d.ts +0 -35
  96. package/dist/models/validate-sso-idp-url-request-dto.js +0 -20
  97. package/dist/models/validate-sso-idp-url-response-class.d.ts +0 -24
  98. package/dist/models/validate-sso-idp-url-response-class.js +0 -15
  99. package/models/delete-tenant-request-dto.ts +0 -36
  100. package/models/validate-sso-idp-url-request-dto.ts +0 -44
  101. package/models/validate-sso-idp-url-response-class.ts +0 -30
@@ -74,7 +74,6 @@ models/data-report-filter-value-dto.ts
74
74
  models/dbconfig-dto.ts
75
75
  models/delete-by-code-response-class.ts
76
76
  models/delete-response-class.ts
77
- models/delete-tenant-request-dto.ts
78
77
  models/disable-users-request-dto.ts
79
78
  models/disable-users-response-class.ts
80
79
  models/duplicate-dashboard-request-dto.ts
@@ -190,7 +189,5 @@ models/update-user-group-response-class.ts
190
189
  models/user-class.ts
191
190
  models/user-group-class.ts
192
191
  models/user-group-member-class.ts
193
- models/validate-sso-idp-url-request-dto.ts
194
- models/validate-sso-idp-url-response-class.ts
195
192
  package.json
196
193
  tsconfig.json
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/tenant-sdk@1.42.1-beta.143 --save
20
+ npm install @emilgroup/tenant-sdk@1.42.1-beta.145 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/tenant-sdk@1.42.1-beta.143
24
+ yarn add @emilgroup/tenant-sdk@1.42.1-beta.145
25
25
  ```
26
26
 
27
27
  And then you can import `UsersApi`.
@@ -67,13 +67,8 @@ export const CustomSchemaApiAxiosParamCreator = function (configuration?: Config
67
67
  // http bearer authentication required
68
68
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
69
69
 
70
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
71
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
72
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
73
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
74
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
75
- if (authorizationValue || authorizationKeepEmpty) {
76
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
70
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
71
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
77
72
  }
78
73
 
79
74
 
@@ -125,13 +120,8 @@ export const CustomSchemaApiAxiosParamCreator = function (configuration?: Config
125
120
  localVarQueryParameter['expand'] = expand;
126
121
  }
127
122
 
128
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
129
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
130
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
131
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
132
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
133
- if (authorizationValue || authorizationKeepEmpty) {
134
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
123
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
124
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
135
125
  }
136
126
 
137
127
 
@@ -206,13 +196,8 @@ export const CustomSchemaApiAxiosParamCreator = function (configuration?: Config
206
196
  localVarQueryParameter['filters'] = filters;
207
197
  }
208
198
 
209
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
210
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
211
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
212
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
213
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
214
- if (authorizationValue || authorizationKeepEmpty) {
215
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
199
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
200
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
216
201
  }
217
202
 
218
203
 
@@ -259,13 +244,8 @@ export const CustomSchemaApiAxiosParamCreator = function (configuration?: Config
259
244
  // http bearer authentication required
260
245
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
261
246
 
262
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
263
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
264
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
265
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
266
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
267
- if (authorizationValue || authorizationKeepEmpty) {
268
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
247
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
248
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
269
249
  }
270
250
 
271
251
 
@@ -569,7 +549,7 @@ export class CustomSchemaApi extends BaseAPI {
569
549
  * @memberof CustomSchemaApi
570
550
  */
571
551
  public createCustomSchema(requestParameters: CustomSchemaApiCreateCustomSchemaRequest, options?: AxiosRequestConfig) {
572
- return CustomSchemaApiFp(this.configuration).createCustomSchema(requestParameters.createCustomSchemaRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
552
+ return CustomSchemaApiFp(this.configuration).createCustomSchema(requestParameters.createCustomSchemaRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
573
553
  }
574
554
 
575
555
  /**
@@ -581,7 +561,7 @@ export class CustomSchemaApi extends BaseAPI {
581
561
  * @memberof CustomSchemaApi
582
562
  */
583
563
  public getCustomSchema(requestParameters: CustomSchemaApiGetCustomSchemaRequest, options?: AxiosRequestConfig) {
584
- return CustomSchemaApiFp(this.configuration).getCustomSchema(requestParameters.code, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
564
+ return CustomSchemaApiFp(this.configuration).getCustomSchema(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
585
565
  }
586
566
 
587
567
  /**
@@ -593,7 +573,7 @@ export class CustomSchemaApi extends BaseAPI {
593
573
  * @memberof CustomSchemaApi
594
574
  */
595
575
  public listCustomSchemas(requestParameters: CustomSchemaApiListCustomSchemasRequest = {}, options?: AxiosRequestConfig) {
596
- return CustomSchemaApiFp(this.configuration).listCustomSchemas(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));
576
+ return CustomSchemaApiFp(this.configuration).listCustomSchemas(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
597
577
  }
598
578
 
599
579
  /**
@@ -605,6 +585,6 @@ export class CustomSchemaApi extends BaseAPI {
605
585
  * @memberof CustomSchemaApi
606
586
  */
607
587
  public updateCustomSchema(requestParameters: CustomSchemaApiUpdateCustomSchemaRequest, options?: AxiosRequestConfig) {
608
- return CustomSchemaApiFp(this.configuration).updateCustomSchema(requestParameters.code, requestParameters.updateCustomSchemaRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
588
+ return CustomSchemaApiFp(this.configuration).updateCustomSchema(requestParameters.code, requestParameters.updateCustomSchemaRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
609
589
  }
610
590
  }
@@ -85,13 +85,8 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
85
85
  // http bearer authentication required
86
86
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
87
87
 
88
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
89
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
90
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
91
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
92
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
93
- if (authorizationValue || authorizationKeepEmpty) {
94
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
88
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
89
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
95
90
  }
96
91
 
97
92
 
@@ -138,13 +133,8 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
138
133
  // http bearer authentication required
139
134
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
140
135
 
141
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
142
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
143
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
144
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
145
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
146
- if (authorizationValue || authorizationKeepEmpty) {
147
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
136
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
137
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
148
138
  }
149
139
 
150
140
 
@@ -191,13 +181,8 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
191
181
  // http bearer authentication required
192
182
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
193
183
 
194
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
195
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
196
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
197
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
198
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
199
- if (authorizationValue || authorizationKeepEmpty) {
200
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
184
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
185
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
201
186
  }
202
187
 
203
188
 
@@ -244,13 +229,8 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
244
229
  // http bearer authentication required
245
230
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
246
231
 
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) {
253
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
232
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
233
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
254
234
  }
255
235
 
256
236
 
@@ -297,13 +277,8 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
297
277
  // http bearer authentication required
298
278
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
299
279
 
300
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
301
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
302
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
303
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
304
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
305
- if (authorizationValue || authorizationKeepEmpty) {
306
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
280
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
281
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
307
282
  }
308
283
 
309
284
 
@@ -347,13 +322,8 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
347
322
  // http bearer authentication required
348
323
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
349
324
 
350
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
351
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
352
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
353
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
354
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
355
- if (authorizationValue || authorizationKeepEmpty) {
356
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
325
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
326
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
357
327
  }
358
328
 
359
329
 
@@ -397,13 +367,8 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
397
367
  // http bearer authentication required
398
368
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
399
369
 
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
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
403
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
404
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
405
- if (authorizationValue || authorizationKeepEmpty) {
406
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
370
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
371
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
407
372
  }
408
373
 
409
374
 
@@ -447,13 +412,8 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
447
412
  // http bearer authentication required
448
413
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
449
414
 
450
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
451
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
452
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
453
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
454
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
455
- if (authorizationValue || authorizationKeepEmpty) {
456
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
415
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
416
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
457
417
  }
458
418
 
459
419
 
@@ -528,13 +488,8 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
528
488
  localVarQueryParameter['filters'] = filters;
529
489
  }
530
490
 
531
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
532
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
533
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
534
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
535
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
536
- if (authorizationValue || authorizationKeepEmpty) {
537
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
491
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
492
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
538
493
  }
539
494
 
540
495
 
@@ -577,13 +532,8 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
577
532
  // http bearer authentication required
578
533
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
579
534
 
580
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
581
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
582
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
583
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
584
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
585
- if (authorizationValue || authorizationKeepEmpty) {
586
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
535
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
536
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
587
537
  }
588
538
 
589
539
 
@@ -629,13 +579,8 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
629
579
  // http bearer authentication required
630
580
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
631
581
 
632
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
633
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
634
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
635
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
636
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
637
- if (authorizationValue || authorizationKeepEmpty) {
638
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
582
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
583
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
639
584
  }
640
585
 
641
586
 
@@ -685,13 +630,8 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
685
630
  // http bearer authentication required
686
631
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
687
632
 
688
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
689
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
690
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
691
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
692
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
693
- if (authorizationValue || authorizationKeepEmpty) {
694
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
633
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
634
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
695
635
  }
696
636
 
697
637
 
@@ -1349,7 +1289,7 @@ export class DashboardApi extends BaseAPI {
1349
1289
  * @memberof DashboardApi
1350
1290
  */
1351
1291
  public createDashboard(requestParameters: DashboardApiCreateDashboardRequest, options?: AxiosRequestConfig) {
1352
- return DashboardApiFp(this.configuration).createDashboard(requestParameters.createDashboardV2RequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1292
+ return DashboardApiFp(this.configuration).createDashboard(requestParameters.createDashboardV2RequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1353
1293
  }
1354
1294
 
1355
1295
  /**
@@ -1362,7 +1302,7 @@ export class DashboardApi extends BaseAPI {
1362
1302
  * @memberof DashboardApi
1363
1303
  */
1364
1304
  public createDashboardLegacy(requestParameters: DashboardApiCreateDashboardLegacyRequest, options?: AxiosRequestConfig) {
1365
- return DashboardApiFp(this.configuration).createDashboardLegacy(requestParameters.createDashboardRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1305
+ return DashboardApiFp(this.configuration).createDashboardLegacy(requestParameters.createDashboardRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1366
1306
  }
1367
1307
 
1368
1308
  /**
@@ -1374,7 +1314,7 @@ export class DashboardApi extends BaseAPI {
1374
1314
  * @memberof DashboardApi
1375
1315
  */
1376
1316
  public deleteDashboard(requestParameters: DashboardApiDeleteDashboardRequest, options?: AxiosRequestConfig) {
1377
- return DashboardApiFp(this.configuration).deleteDashboard(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1317
+ return DashboardApiFp(this.configuration).deleteDashboard(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1378
1318
  }
1379
1319
 
1380
1320
  /**
@@ -1386,7 +1326,7 @@ export class DashboardApi extends BaseAPI {
1386
1326
  * @memberof DashboardApi
1387
1327
  */
1388
1328
  public duplicateDashboard(requestParameters: DashboardApiDuplicateDashboardRequest, options?: AxiosRequestConfig) {
1389
- return DashboardApiFp(this.configuration).duplicateDashboard(requestParameters.code, requestParameters.duplicateDashboardRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1329
+ return DashboardApiFp(this.configuration).duplicateDashboard(requestParameters.code, requestParameters.duplicateDashboardRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1390
1330
  }
1391
1331
 
1392
1332
  /**
@@ -1398,7 +1338,7 @@ export class DashboardApi extends BaseAPI {
1398
1338
  * @memberof DashboardApi
1399
1339
  */
1400
1340
  public getAnalysisEmbeddedUrl(requestParameters: DashboardApiGetAnalysisEmbeddedUrlRequest, options?: AxiosRequestConfig) {
1401
- return DashboardApiFp(this.configuration).getAnalysisEmbeddedUrl(requestParameters.providerDashboardId, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1341
+ return DashboardApiFp(this.configuration).getAnalysisEmbeddedUrl(requestParameters.providerDashboardId, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1402
1342
  }
1403
1343
 
1404
1344
  /**
@@ -1410,7 +1350,7 @@ export class DashboardApi extends BaseAPI {
1410
1350
  * @memberof DashboardApi
1411
1351
  */
1412
1352
  public getDashboard(requestParameters: DashboardApiGetDashboardRequest, options?: AxiosRequestConfig) {
1413
- return DashboardApiFp(this.configuration).getDashboard(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1353
+ return DashboardApiFp(this.configuration).getDashboard(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1414
1354
  }
1415
1355
 
1416
1356
  /**
@@ -1422,7 +1362,7 @@ export class DashboardApi extends BaseAPI {
1422
1362
  * @memberof DashboardApi
1423
1363
  */
1424
1364
  public getDashboardEmbeddedUrl(requestParameters: DashboardApiGetDashboardEmbeddedUrlRequest, options?: AxiosRequestConfig) {
1425
- return DashboardApiFp(this.configuration).getDashboardEmbeddedUrl(requestParameters.providerDashboardId, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1365
+ return DashboardApiFp(this.configuration).getDashboardEmbeddedUrl(requestParameters.providerDashboardId, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1426
1366
  }
1427
1367
 
1428
1368
  /**
@@ -1434,7 +1374,7 @@ export class DashboardApi extends BaseAPI {
1434
1374
  * @memberof DashboardApi
1435
1375
  */
1436
1376
  public getDashboardMetadata(requestParameters: DashboardApiGetDashboardMetadataRequest, options?: AxiosRequestConfig) {
1437
- return DashboardApiFp(this.configuration).getDashboardMetadata(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1377
+ return DashboardApiFp(this.configuration).getDashboardMetadata(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1438
1378
  }
1439
1379
 
1440
1380
  /**
@@ -1446,7 +1386,7 @@ export class DashboardApi extends BaseAPI {
1446
1386
  * @memberof DashboardApi
1447
1387
  */
1448
1388
  public listDashboards(requestParameters: DashboardApiListDashboardsRequest = {}, options?: AxiosRequestConfig) {
1449
- return DashboardApiFp(this.configuration).listDashboards(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));
1389
+ return DashboardApiFp(this.configuration).listDashboards(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1450
1390
  }
1451
1391
 
1452
1392
  /**
@@ -1458,7 +1398,7 @@ export class DashboardApi extends BaseAPI {
1458
1398
  * @memberof DashboardApi
1459
1399
  */
1460
1400
  public publishDashboard(requestParameters: DashboardApiPublishDashboardRequest, options?: AxiosRequestConfig) {
1461
- return DashboardApiFp(this.configuration).publishDashboard(requestParameters.publishDashboardRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1401
+ return DashboardApiFp(this.configuration).publishDashboard(requestParameters.publishDashboardRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1462
1402
  }
1463
1403
 
1464
1404
  /**
@@ -1470,7 +1410,7 @@ export class DashboardApi extends BaseAPI {
1470
1410
  * @memberof DashboardApi
1471
1411
  */
1472
1412
  public revertAnalysis(requestParameters: DashboardApiRevertAnalysisRequest, options?: AxiosRequestConfig) {
1473
- return DashboardApiFp(this.configuration).revertAnalysis(requestParameters.revertAnalysisRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1413
+ return DashboardApiFp(this.configuration).revertAnalysis(requestParameters.revertAnalysisRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1474
1414
  }
1475
1415
 
1476
1416
  /**
@@ -1482,6 +1422,6 @@ export class DashboardApi extends BaseAPI {
1482
1422
  * @memberof DashboardApi
1483
1423
  */
1484
1424
  public updateDashboard(requestParameters: DashboardApiUpdateDashboardRequest, options?: AxiosRequestConfig) {
1485
- return DashboardApiFp(this.configuration).updateDashboard(requestParameters.code, requestParameters.updateDashboardRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
1425
+ return DashboardApiFp(this.configuration).updateDashboard(requestParameters.code, requestParameters.updateDashboardRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1486
1426
  }
1487
1427
  }
@@ -68,13 +68,8 @@ export const DashboardGroupApiAxiosParamCreator = function (configuration?: Conf
68
68
  // http bearer authentication required
69
69
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
70
70
 
71
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
72
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
73
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
74
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
75
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
76
- if (authorizationValue || authorizationKeepEmpty) {
77
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
71
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
72
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
78
73
  }
79
74
 
80
75
 
@@ -120,13 +115,8 @@ export const DashboardGroupApiAxiosParamCreator = function (configuration?: Conf
120
115
  // http bearer authentication required
121
116
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
122
117
 
123
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
124
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
125
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
126
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
127
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
128
- if (authorizationValue || authorizationKeepEmpty) {
129
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
118
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
119
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
120
  }
131
121
 
132
122
 
@@ -169,13 +159,8 @@ export const DashboardGroupApiAxiosParamCreator = function (configuration?: Conf
169
159
  // http bearer authentication required
170
160
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
171
161
 
172
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
173
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
174
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
175
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
176
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
177
- if (authorizationValue || authorizationKeepEmpty) {
178
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
162
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
163
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
179
164
  }
180
165
 
181
166
 
@@ -249,13 +234,8 @@ export const DashboardGroupApiAxiosParamCreator = function (configuration?: Conf
249
234
  localVarQueryParameter['filters'] = filters;
250
235
  }
251
236
 
252
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
253
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
254
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
255
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
256
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
257
- if (authorizationValue || authorizationKeepEmpty) {
258
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
237
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
238
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
259
239
  }
260
240
 
261
241
 
@@ -301,13 +281,8 @@ export const DashboardGroupApiAxiosParamCreator = function (configuration?: Conf
301
281
  // http bearer authentication required
302
282
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
303
283
 
304
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
305
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
306
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
307
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
308
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
309
- if (authorizationValue || authorizationKeepEmpty) {
310
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
284
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
285
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
311
286
  }
312
287
 
313
288
 
@@ -635,7 +610,7 @@ export class DashboardGroupApi extends BaseAPI {
635
610
  * @memberof DashboardGroupApi
636
611
  */
637
612
  public createDashboardGroup(requestParameters: DashboardGroupApiCreateDashboardGroupRequest, options?: AxiosRequestConfig) {
638
- return DashboardGroupApiFp(this.configuration).createDashboardGroup(requestParameters.createDashboardGroupRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
613
+ return DashboardGroupApiFp(this.configuration).createDashboardGroup(requestParameters.createDashboardGroupRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
639
614
  }
640
615
 
641
616
  /**
@@ -646,7 +621,7 @@ export class DashboardGroupApi extends BaseAPI {
646
621
  * @memberof DashboardGroupApi
647
622
  */
648
623
  public deleteDashboardGroup(requestParameters: DashboardGroupApiDeleteDashboardGroupRequest, options?: AxiosRequestConfig) {
649
- return DashboardGroupApiFp(this.configuration).deleteDashboardGroup(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
624
+ return DashboardGroupApiFp(this.configuration).deleteDashboardGroup(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
650
625
  }
651
626
 
652
627
  /**
@@ -657,7 +632,7 @@ export class DashboardGroupApi extends BaseAPI {
657
632
  * @memberof DashboardGroupApi
658
633
  */
659
634
  public getDashboardGroup(requestParameters: DashboardGroupApiGetDashboardGroupRequest, options?: AxiosRequestConfig) {
660
- return DashboardGroupApiFp(this.configuration).getDashboardGroup(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
635
+ return DashboardGroupApiFp(this.configuration).getDashboardGroup(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
661
636
  }
662
637
 
663
638
  /**
@@ -668,7 +643,7 @@ export class DashboardGroupApi extends BaseAPI {
668
643
  * @memberof DashboardGroupApi
669
644
  */
670
645
  public listDashboardGroups(requestParameters: DashboardGroupApiListDashboardGroupsRequest = {}, options?: AxiosRequestConfig) {
671
- return DashboardGroupApiFp(this.configuration).listDashboardGroups(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));
646
+ return DashboardGroupApiFp(this.configuration).listDashboardGroups(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
672
647
  }
673
648
 
674
649
  /**
@@ -679,6 +654,6 @@ export class DashboardGroupApi extends BaseAPI {
679
654
  * @memberof DashboardGroupApi
680
655
  */
681
656
  public updateDashboardGroup(requestParameters: DashboardGroupApiUpdateDashboardGroupRequest, options?: AxiosRequestConfig) {
682
- return DashboardGroupApiFp(this.configuration).updateDashboardGroup(requestParameters.code, requestParameters.updateDashboardGroupRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
657
+ return DashboardGroupApiFp(this.configuration).updateDashboardGroup(requestParameters.code, requestParameters.updateDashboardGroupRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
683
658
  }
684
659
  }