@fenixalliance/abs-api-client 1.0.12 → 1.0.13

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.
@@ -5,12 +5,19 @@
5
5
  import type { AddressDtoListEnvelope } from '../models/AddressDtoListEnvelope';
6
6
  import type { CartDtoEnvelope } from '../models/CartDtoEnvelope';
7
7
  import type { EmptyEnvelope } from '../models/EmptyEnvelope';
8
+ import type { EnrollmentId } from '../models/EnrollmentId';
9
+ import type { ExtendedTenantDtoListEnvelope } from '../models/ExtendedTenantDtoListEnvelope';
10
+ import type { ExtendedTenantEnrolmentDtoListEnvelope } from '../models/ExtendedTenantEnrolmentDtoListEnvelope';
8
11
  import type { ExtendedUserDtoEnvelope } from '../models/ExtendedUserDtoEnvelope';
9
12
  import type { FollowRecordDtoListEnvelope } from '../models/FollowRecordDtoListEnvelope';
10
13
  import type { Int32Envelope } from '../models/Int32Envelope';
11
14
  import type { NotificationDtoListEnvelope } from '../models/NotificationDtoListEnvelope';
12
15
  import type { Operation } from '../models/Operation';
13
16
  import type { SocialProfileDtoEnvelope } from '../models/SocialProfileDtoEnvelope';
17
+ import type { TenantDtoListEnvelope } from '../models/TenantDtoListEnvelope';
18
+ import type { TenantEnrolmentDtoEnvelope } from '../models/TenantEnrolmentDtoEnvelope';
19
+ import type { TenantEnrolmentDtoListEnvelope } from '../models/TenantEnrolmentDtoListEnvelope';
20
+ import type { TenantInvitationDtoListEnvelope } from '../models/TenantInvitationDtoListEnvelope';
14
21
  import type { UserDtoEnvelope } from '../models/UserDtoEnvelope';
15
22
  import type { UserSettingsDtoEnvelope } from '../models/UserSettingsDtoEnvelope';
16
23
  import type { UserSettingsUpdateDto } from '../models/UserSettingsUpdateDto';
@@ -246,6 +253,144 @@ export class UserService {
246
253
  },
247
254
  });
248
255
  }
256
+ /**
257
+ * Get the tenants that the current user is enrolled in
258
+ * Get the tenants that the current user is enrolled in
259
+ * @param xApiVersion
260
+ * @returns TenantDtoListEnvelope OK
261
+ * @throws ApiError
262
+ */
263
+ public static getCurrentUserTenantsAsync(
264
+ xApiVersion?: string,
265
+ ): CancelablePromise<TenantDtoListEnvelope> {
266
+ return __request(OpenAPI, {
267
+ method: 'GET',
268
+ url: '/api/v2/Me/Businesses',
269
+ headers: {
270
+ 'x-api-version': xApiVersion,
271
+ },
272
+ errors: {
273
+ 401: `Unauthorized`,
274
+ 403: `Forbidden`,
275
+ },
276
+ });
277
+ }
278
+ /**
279
+ * Count the tenants that the current user is enrolled in
280
+ * Count the tenants that the current user is enrolled in
281
+ * @param xApiVersion
282
+ * @returns Int32Envelope OK
283
+ * @throws ApiError
284
+ */
285
+ public static countCurrentUserTenantsAsync(
286
+ xApiVersion?: string,
287
+ ): CancelablePromise<Int32Envelope> {
288
+ return __request(OpenAPI, {
289
+ method: 'GET',
290
+ url: '/api/v2/Me/Businesses/Count',
291
+ headers: {
292
+ 'x-api-version': xApiVersion,
293
+ },
294
+ errors: {
295
+ 401: `Unauthorized`,
296
+ 403: `Forbidden`,
297
+ },
298
+ });
299
+ }
300
+ /**
301
+ * Get the tenants that the current user is enrolled in
302
+ * Get the tenants that the current user is enrolled in
303
+ * @param xApiVersion
304
+ * @returns ExtendedTenantDtoListEnvelope OK
305
+ * @throws ApiError
306
+ */
307
+ public static getCurrentUserTenantsExtendedAsync(
308
+ xApiVersion?: string,
309
+ ): CancelablePromise<ExtendedTenantDtoListEnvelope> {
310
+ return __request(OpenAPI, {
311
+ method: 'GET',
312
+ url: '/api/v2/Me/Businesses/Extended',
313
+ headers: {
314
+ 'x-api-version': xApiVersion,
315
+ },
316
+ errors: {
317
+ 401: `Unauthorized`,
318
+ 403: `Forbidden`,
319
+ },
320
+ });
321
+ }
322
+ /**
323
+ * Get the list of enrollments for the current user
324
+ * Get the list of enrollments for the current user
325
+ * @param xApiVersion
326
+ * @returns TenantEnrolmentDtoListEnvelope OK
327
+ * @throws ApiError
328
+ */
329
+ public static getCurrentUserEnrollmentsAsync(
330
+ xApiVersion?: string,
331
+ ): CancelablePromise<TenantEnrolmentDtoListEnvelope> {
332
+ return __request(OpenAPI, {
333
+ method: 'GET',
334
+ url: '/api/v2/Me/Enrollments',
335
+ headers: {
336
+ 'x-api-version': xApiVersion,
337
+ },
338
+ errors: {
339
+ 401: `Unauthorized`,
340
+ },
341
+ });
342
+ }
343
+ /**
344
+ * Get the list of enrollments for the current user
345
+ * Get the list of enrollments for the current user
346
+ * @param xApiVersion
347
+ * @returns ExtendedTenantEnrolmentDtoListEnvelope OK
348
+ * @throws ApiError
349
+ */
350
+ public static getCurrentUserEnrollmentsExtendedAsync(
351
+ xApiVersion?: string,
352
+ ): CancelablePromise<ExtendedTenantEnrolmentDtoListEnvelope> {
353
+ return __request(OpenAPI, {
354
+ method: 'GET',
355
+ url: '/api/v2/Me/Enrollments/Extended',
356
+ headers: {
357
+ 'x-api-version': xApiVersion,
358
+ },
359
+ errors: {
360
+ 401: `Unauthorized`,
361
+ },
362
+ });
363
+ }
364
+ /**
365
+ * Get a single TenantEnrollment by its ID
366
+ * Get a single TenantEnrollment by its ID
367
+ * @param enrollmentId
368
+ * @param xApiVersion
369
+ * @param requestBody
370
+ * @returns TenantEnrolmentDtoEnvelope OK
371
+ * @throws ApiError
372
+ */
373
+ public static getTenantEnrollmentAsync(
374
+ enrollmentId: string,
375
+ xApiVersion?: string,
376
+ requestBody?: EnrollmentId,
377
+ ): CancelablePromise<TenantEnrolmentDtoEnvelope> {
378
+ return __request(OpenAPI, {
379
+ method: 'GET',
380
+ url: '/api/v2/Me/Enrollments/{enrollmentId}',
381
+ path: {
382
+ 'enrollmentId': enrollmentId,
383
+ },
384
+ headers: {
385
+ 'x-api-version': xApiVersion,
386
+ },
387
+ body: requestBody,
388
+ mediaType: 'application/json',
389
+ errors: {
390
+ 401: `Unauthorized`,
391
+ },
392
+ });
393
+ }
249
394
  /**
250
395
  * Get the current user's social profile
251
396
  * Get the current user's social profile
@@ -418,4 +563,25 @@ export class UserService {
418
563
  },
419
564
  });
420
565
  }
566
+ /**
567
+ * Get the list of tenant enrollment invitations for the current user
568
+ * Get the list of tenant enrollment invitations for the current user
569
+ * @param xApiVersion
570
+ * @returns TenantInvitationDtoListEnvelope OK
571
+ * @throws ApiError
572
+ */
573
+ public static getCurrentUserInvitationAsync(
574
+ xApiVersion?: string,
575
+ ): CancelablePromise<TenantInvitationDtoListEnvelope> {
576
+ return __request(OpenAPI, {
577
+ method: 'GET',
578
+ url: '/api/v2/Me/Invitations',
579
+ headers: {
580
+ 'x-api-version': xApiVersion,
581
+ },
582
+ errors: {
583
+ 401: `Unauthorized`,
584
+ },
585
+ });
586
+ }
421
587
  }
@@ -1798,7 +1798,7 @@ class TenantsService {
1798
1798
  * @returns TenantDtoEnvelope OK
1799
1799
  * @throws ApiError
1800
1800
  */
1801
- static getCurrentTenant(tenantId, xApiVersion) {
1801
+ static getCurrentTenantAsync(tenantId, xApiVersion) {
1802
1802
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
1803
1803
  method: 'GET',
1804
1804
  url: '/api/v2/Tenants/Current',
@@ -1822,7 +1822,7 @@ class TenantsService {
1822
1822
  * @returns TenantDtoEnvelope OK
1823
1823
  * @throws ApiError
1824
1824
  */
1825
- static getTenant(tenantId, xApiVersion) {
1825
+ static getTenantAsync(tenantId, xApiVersion) {
1826
1826
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
1827
1827
  method: 'GET',
1828
1828
  url: '/api/v2/Tenants/{tenantId}',
@@ -1847,7 +1847,7 @@ class TenantsService {
1847
1847
  * @returns EmptyEnvelope OK
1848
1848
  * @throws ApiError
1849
1849
  */
1850
- static updateTenant(tenantId, xApiVersion, requestBody) {
1850
+ static updateTenantAsync(tenantId, xApiVersion, requestBody) {
1851
1851
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
1852
1852
  method: 'PUT',
1853
1853
  url: '/api/v2/Tenants/{tenantId}',
@@ -1874,7 +1874,7 @@ class TenantsService {
1874
1874
  * @returns EmptyEnvelope OK
1875
1875
  * @throws ApiError
1876
1876
  */
1877
- static patchTenant(tenantId, xApiVersion, requestBody) {
1877
+ static patchTenantAsync(tenantId, xApiVersion, requestBody) {
1878
1878
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
1879
1879
  method: 'PATCH',
1880
1880
  url: '/api/v2/Tenants/{tenantId}',
@@ -1900,7 +1900,7 @@ class TenantsService {
1900
1900
  * @returns ExtendedTenantDtoEnvelope OK
1901
1901
  * @throws ApiError
1902
1902
  */
1903
- static getExtendedTenant(tenantId, xApiVersion) {
1903
+ static getExtendedTenantAsync(tenantId, xApiVersion) {
1904
1904
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
1905
1905
  method: 'GET',
1906
1906
  url: '/api/v2/Tenants/{tenantId}/Extended',
@@ -1975,7 +1975,7 @@ class TenantsService {
1975
1975
  * @returns WalletDtoEnvelope OK
1976
1976
  * @throws ApiError
1977
1977
  */
1978
- static getTenantWallet(tenantId, xApiVersion) {
1978
+ static getTenantWalletAsync(tenantId, xApiVersion) {
1979
1979
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
1980
1980
  method: 'GET',
1981
1981
  url: '/api/v2/Tenants/{tenantId}/Wallet',
@@ -1999,7 +1999,7 @@ class TenantsService {
1999
1999
  * @returns SocialProfileDtoEnvelope OK
2000
2000
  * @throws ApiError
2001
2001
  */
2002
- static getTenantSocialProfile(tenantId, xApiVersion) {
2002
+ static getTenantSocialProfileAsync(tenantId, xApiVersion) {
2003
2003
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2004
2004
  method: 'GET',
2005
2005
  url: '/api/v2/Tenants/{tenantId}/SocialProfile',
@@ -2023,7 +2023,7 @@ class TenantsService {
2023
2023
  * @returns CartDtoEnvelope OK
2024
2024
  * @throws ApiError
2025
2025
  */
2026
- static getTenantCart(tenantId, xApiVersion) {
2026
+ static getTenantCartAsync(tenantId, xApiVersion) {
2027
2027
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2028
2028
  method: 'GET',
2029
2029
  url: '/api/v2/Tenants/{tenantId}/Cart',
@@ -2047,7 +2047,7 @@ class TenantsService {
2047
2047
  * @returns UserDtoListEnvelope OK
2048
2048
  * @throws ApiError
2049
2049
  */
2050
- static getTenantEnrollments1(tenantId, xApiVersion) {
2050
+ static getTenantUsersAsync(tenantId, xApiVersion) {
2051
2051
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2052
2052
  method: 'GET',
2053
2053
  url: '/api/v2/Tenants/{tenantId}/Users',
@@ -2071,7 +2071,7 @@ class TenantsService {
2071
2071
  * @returns TenantEnrolmentDtoListEnvelope OK
2072
2072
  * @throws ApiError
2073
2073
  */
2074
- static getTenantEnrollments2(tenantId, xApiVersion) {
2074
+ static getTenantEnrollmentsAsync(tenantId, xApiVersion) {
2075
2075
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2076
2076
  method: 'GET',
2077
2077
  url: '/api/v2/Tenants/{tenantId}/Enrollments',
@@ -2096,7 +2096,7 @@ class TenantsService {
2096
2096
  * @returns TenantEnrolmentDtoEnvelope OK
2097
2097
  * @throws ApiError
2098
2098
  */
2099
- static getTenantEnrollment(tenantId, enrollmentId, xApiVersion) {
2099
+ static getTenantEnrollmentAsync(tenantId, enrollmentId, xApiVersion) {
2100
2100
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2101
2101
  method: 'GET',
2102
2102
  url: '/api/v2/Tenants/{tenantId}/Enrollments/{enrollmentId}',
@@ -2122,7 +2122,7 @@ class TenantsService {
2122
2122
  * @returns ExtendedTenantEnrolmentDtoEnvelope OK
2123
2123
  * @throws ApiError
2124
2124
  */
2125
- static getExtendedTenantEnrollment(tenantId, enrollmentId, xApiVersion) {
2125
+ static getExtendedTenantEnrollmentAsync(tenantId, enrollmentId, xApiVersion) {
2126
2126
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2127
2127
  method: 'GET',
2128
2128
  url: '/api/v2/Tenants/{tenantId}/Enrollments/{enrollmentId}/Extended',
@@ -2148,7 +2148,7 @@ class TenantsService {
2148
2148
  * @returns StringListEnvelope OK
2149
2149
  * @throws ApiError
2150
2150
  */
2151
- static getEnrollmentPermissions(tenantId, enrollmentId, xApiVersion) {
2151
+ static getEnrollmentPermissionsAsync(tenantId, enrollmentId, xApiVersion) {
2152
2152
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2153
2153
  method: 'GET',
2154
2154
  url: '/api/v2/Tenants/{tenantId}/Enrollments/{enrollmentId}/Permissions',
@@ -2176,7 +2176,7 @@ class TenantsService {
2176
2176
  * @returns BooleanEnvelope OK
2177
2177
  * @throws ApiError
2178
2178
  */
2179
- static getEnrollmentPermissions1(tenantId, enrollmentId, roles, permissions, xApiVersion) {
2179
+ static getEnrollmentPermissionsAsync1(tenantId, enrollmentId, roles, permissions, xApiVersion) {
2180
2180
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2181
2181
  method: 'GET',
2182
2182
  url: '/api/v2/Tenants/{tenantId}/Enrollments/{EnrollmentID}/Permissions/Validate',
@@ -2205,7 +2205,7 @@ class TenantsService {
2205
2205
  * @returns TenantInvitationDtoListEnvelope OK
2206
2206
  * @throws ApiError
2207
2207
  */
2208
- static getTenantInvitations(tenantId, xApiVersion) {
2208
+ static getTenantInvitationsAsync(tenantId, xApiVersion) {
2209
2209
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2210
2210
  method: 'GET',
2211
2211
  url: '/api/v2/Tenants/{tenantId}/Invitations',
@@ -2229,7 +2229,7 @@ class TenantsService {
2229
2229
  * @returns TenantInvitationDtoListEnvelope OK
2230
2230
  * @throws ApiError
2231
2231
  */
2232
- static getPendingInvitations(tenantId, xApiVersion) {
2232
+ static getTenantPendingInvitationsAsync(tenantId, xApiVersion) {
2233
2233
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2234
2234
  method: 'GET',
2235
2235
  url: '/api/v2/Tenants/{tenantId}/Invitations/Pending',
@@ -2253,7 +2253,7 @@ class TenantsService {
2253
2253
  * @returns TenantInvitationDtoListEnvelope OK
2254
2254
  * @throws ApiError
2255
2255
  */
2256
- static getRedeemedInvitations(tenantId, xApiVersion) {
2256
+ static getTenantRedeemedInvitationsAsync(tenantId, xApiVersion) {
2257
2257
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2258
2258
  method: 'GET',
2259
2259
  url: '/api/v2/Tenants/{tenantId}/Invitations/Redeemed',
@@ -2277,7 +2277,7 @@ class TenantsService {
2277
2277
  * @returns TenantInvitationDtoListEnvelope OK
2278
2278
  * @throws ApiError
2279
2279
  */
2280
- static getRevokedInvitations(tenantId, xApiVersion) {
2280
+ static getTenantRevokedInvitationsAsync(tenantId, xApiVersion) {
2281
2281
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2282
2282
  method: 'GET',
2283
2283
  url: '/api/v2/Tenants/{tenantId}/Invitations/Revoked',
@@ -2301,7 +2301,7 @@ class TenantsService {
2301
2301
  * @returns SuiteLicenseDtoListEnvelope OK
2302
2302
  * @throws ApiError
2303
2303
  */
2304
- static getTenantLicenses(tenantId, xApiVersion) {
2304
+ static getTenantLicensesAsync(tenantId, xApiVersion) {
2305
2305
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2306
2306
  method: 'GET',
2307
2307
  url: '/api/v2/Tenants/{tenantId}/Licenses',
@@ -2326,7 +2326,7 @@ class TenantsService {
2326
2326
  * @returns SuiteLicenseAssignmentDtoListEnvelope OK
2327
2327
  * @throws ApiError
2328
2328
  */
2329
- static getEnrollmentLicenses(tenantId, enrollmentId, xApiVersion) {
2329
+ static getEnrollmentLicensesAsync(tenantId, enrollmentId, xApiVersion) {
2330
2330
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2331
2331
  method: 'GET',
2332
2332
  url: '/api/v2/Tenants/{tenantId}/Enrollments/{EnrollmentId}/Licenses',
@@ -2353,7 +2353,7 @@ class TenantsService {
2353
2353
  * @returns SuiteLicenseDtoListEnvelope OK
2354
2354
  * @throws ApiError
2355
2355
  */
2356
- static getEnrollmentLicenses1(tenantId, enrollmentId, licenseId, xApiVersion) {
2356
+ static getEnrollmentLicensesAsync1(tenantId, enrollmentId, licenseId, xApiVersion) {
2357
2357
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2358
2358
  method: 'GET',
2359
2359
  url: '/api/v2/Tenants/{tenantId}/Enrollments/{EnrollmentId}/Licenses/{licenseId}',
@@ -2381,7 +2381,7 @@ class TenantsService {
2381
2381
  * @returns SuiteLicenseDtoListEnvelope OK
2382
2382
  * @throws ApiError
2383
2383
  */
2384
- static assignLicense(tenantId, enrollmentId, licenseId, xApiVersion) {
2384
+ static assignLicenseAsync(tenantId, enrollmentId, licenseId, xApiVersion) {
2385
2385
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2386
2386
  method: 'POST',
2387
2387
  url: '/api/v2/Tenants/{tenantId}/Enrollments/{EnrollmentId}/Licenses/{licenseId}',
@@ -2409,7 +2409,7 @@ class TenantsService {
2409
2409
  * @returns SuiteLicenseDtoListEnvelope OK
2410
2410
  * @throws ApiError
2411
2411
  */
2412
- static revokeLicense(tenantId, enrollmentId, licenseId, xApiVersion) {
2412
+ static revokeLicenseAsync(tenantId, enrollmentId, licenseId, xApiVersion) {
2413
2413
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2414
2414
  method: 'DELETE',
2415
2415
  url: '/api/v2/Tenants/{tenantId}/Enrollments/{EnrollmentId}/Licenses/{licenseId}',
@@ -2436,7 +2436,7 @@ class TenantsService {
2436
2436
  * @returns SuiteLicenseFeatureDtoListEnvelope OK
2437
2437
  * @throws ApiError
2438
2438
  */
2439
- static getAccessibleFeatures(tenantId, enrollmentId, xApiVersion) {
2439
+ static getAccessibleFeaturesAsync(tenantId, enrollmentId, xApiVersion) {
2440
2440
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2441
2441
  method: 'GET',
2442
2442
  url: '/api/v2/Tenants/{tenantId}/Enrollments/{enrollmentId}/Features',
@@ -2489,7 +2489,7 @@ class TenantsService {
2489
2489
  * @returns EmptyEnvelope OK
2490
2490
  * @throws ApiError
2491
2491
  */
2492
- static createBusinessTenant(xApiVersion, requestBody) {
2492
+ static createTenantAsync(xApiVersion, requestBody) {
2493
2493
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2494
2494
  method: 'POST',
2495
2495
  url: '/api/v2/Tenants',
@@ -2512,7 +2512,7 @@ class TenantsService {
2512
2512
  * @returns EmptyEnvelope OK
2513
2513
  * @throws ApiError
2514
2514
  */
2515
- static deleteTenant(tenantId, xApiVersion) {
2515
+ static deleteTenantAsync(tenantId, xApiVersion) {
2516
2516
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2517
2517
  method: 'DELETE',
2518
2518
  url: '/api/v2/Tenants',
@@ -2532,13 +2532,11 @@ class TenantsService {
2532
2532
  * Select a business tenant as the user's default tenant
2533
2533
  * Select a business tenant as the user's default tenant
2534
2534
  * @param tenantId
2535
- * @param backTo
2536
- * @param enableRedirect
2537
2535
  * @param xApiVersion
2538
2536
  * @returns EmptyEnvelope OK
2539
2537
  * @throws ApiError
2540
2538
  */
2541
- static selectTenant(tenantId, backTo, enableRedirect = true, xApiVersion) {
2539
+ static selectTenantAsync(tenantId, xApiVersion) {
2542
2540
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2543
2541
  method: 'GET',
2544
2542
  url: '/api/v2/Tenants/{tenantId}/Select',
@@ -2548,10 +2546,6 @@ class TenantsService {
2548
2546
  headers: {
2549
2547
  'x-api-version': xApiVersion,
2550
2548
  },
2551
- query: {
2552
- 'backTo': backTo,
2553
- 'enableRedirect': enableRedirect,
2554
- },
2555
2549
  errors: {
2556
2550
  401: `Unauthorized`,
2557
2551
  403: `Forbidden`,
@@ -2562,13 +2556,11 @@ class TenantsService {
2562
2556
  * Select a business tenant as the user's default tenant
2563
2557
  * Select a business tenant as the user's default tenant
2564
2558
  * @param tenantId
2565
- * @param backTo
2566
- * @param enableRedirect
2567
2559
  * @param xApiVersion
2568
2560
  * @returns EmptyEnvelope OK
2569
2561
  * @throws ApiError
2570
2562
  */
2571
- static selectTenant1(tenantId, backTo, enableRedirect = true, xApiVersion) {
2563
+ static selectTenantAsync1(tenantId, xApiVersion) {
2572
2564
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2573
2565
  method: 'POST',
2574
2566
  url: '/api/v2/Tenants/{tenantId}/Select',
@@ -2578,10 +2570,6 @@ class TenantsService {
2578
2570
  headers: {
2579
2571
  'x-api-version': xApiVersion,
2580
2572
  },
2581
- query: {
2582
- 'backTo': backTo,
2583
- 'enableRedirect': enableRedirect,
2584
- },
2585
2573
  errors: {
2586
2574
  401: `Unauthorized`,
2587
2575
  403: `Forbidden`,
@@ -2591,23 +2579,17 @@ class TenantsService {
2591
2579
  /**
2592
2580
  * Deselect the user's default tenant
2593
2581
  * Deselect the user's default tenant
2594
- * @param backTo
2595
- * @param enableRedirect
2596
2582
  * @param xApiVersion
2597
2583
  * @returns EmptyEnvelope OK
2598
2584
  * @throws ApiError
2599
2585
  */
2600
- static deSelectTenant(backTo, enableRedirect = true, xApiVersion) {
2586
+ static deSelectTenantAsync(xApiVersion) {
2601
2587
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2602
2588
  method: 'GET',
2603
2589
  url: '/api/v2/Tenants/Deselect',
2604
2590
  headers: {
2605
2591
  'x-api-version': xApiVersion,
2606
2592
  },
2607
- query: {
2608
- 'backTo': backTo,
2609
- 'enableRedirect': enableRedirect,
2610
- },
2611
2593
  errors: {
2612
2594
  401: `Unauthorized`,
2613
2595
  403: `Forbidden`,
@@ -2617,23 +2599,17 @@ class TenantsService {
2617
2599
  /**
2618
2600
  * Deselect the user's default tenant
2619
2601
  * Deselect the user's default tenant
2620
- * @param backTo
2621
- * @param enableRedirect
2622
2602
  * @param xApiVersion
2623
2603
  * @returns EmptyEnvelope OK
2624
2604
  * @throws ApiError
2625
2605
  */
2626
- static deSelectTenant1(backTo, enableRedirect = true, xApiVersion) {
2606
+ static deSelectTenantAsync1(xApiVersion) {
2627
2607
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2628
2608
  method: 'POST',
2629
2609
  url: '/api/v2/Tenants/Deselect',
2630
2610
  headers: {
2631
2611
  'x-api-version': xApiVersion,
2632
2612
  },
2633
- query: {
2634
- 'backTo': backTo,
2635
- 'enableRedirect': enableRedirect,
2636
- },
2637
2613
  errors: {
2638
2614
  401: `Unauthorized`,
2639
2615
  403: `Forbidden`,
@@ -2648,7 +2624,7 @@ class TenantsService {
2648
2624
  * @returns WebPortalDtoListEnvelope OK
2649
2625
  * @throws ApiError
2650
2626
  */
2651
- static getWebPortals(tenantId, xApiVersion) {
2627
+ static getTenantWebPortalsAsync(tenantId, xApiVersion) {
2652
2628
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2653
2629
  method: 'GET',
2654
2630
  url: '/api/v2/Tenants/{tenantId}/WebPortals',
@@ -2672,7 +2648,7 @@ class TenantsService {
2672
2648
  * @returns NotificationDtoListEnvelope OK
2673
2649
  * @throws ApiError
2674
2650
  */
2675
- static getTenantNotifications(tenantId, xApiVersion) {
2651
+ static getTenantNotificationsAsync(tenantId, xApiVersion) {
2676
2652
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2677
2653
  method: 'GET',
2678
2654
  url: '/api/v2/Tenants/{tenantId}/Notifications',
@@ -2696,7 +2672,7 @@ class TenantsService {
2696
2672
  * @returns Int32Envelope OK
2697
2673
  * @throws ApiError
2698
2674
  */
2699
- static getTenantNotificationsCount(tenantId, xApiVersion) {
2675
+ static getTenantNotificationsCountAsync(tenantId, xApiVersion) {
2700
2676
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
2701
2677
  method: 'GET',
2702
2678
  url: '/api/v2/Tenants/{tenantId}/Notifications/Count',