@tuki-io/tuki-widgets 0.0.206 → 0.0.207

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.
@@ -78,6 +78,7 @@ const API = {
78
78
  MIGRATION_FORM_ENTITIES_MIGRATED: "/api/search/webex/customers/:customerId/migrationformentities/migrated",
79
79
  START_MIGRATION: "/api/migration/webex/startpersonmigration",
80
80
  TRIGGER_FIRMWARE_MIGRATION: "/api/migration/:migrationType/firmwaremigration/customer/:customerId/migration/:migrationFormId",
81
+ WEBEX_REVERT: "/api/webex/provisioning/customers/:customerId/persons/:personId/revertmigration",
81
82
  REVERT: "/api/webex/provisioning/customers/:customerId/persons/:personId/revertmigration",
82
83
  SWAP_STATUSES: "/api/cache/user/customer/:customerId/swap-status"
83
84
  };
@@ -548,7 +549,10 @@ class UserService {
548
549
  // .pipe(this.handleError(true, true));
549
550
  }
550
551
  revertMigration(customerId, personId) {
551
- return this.apiService.post(API.REVERT.replace(':customerId', String(customerId)).replace(':personId', personId), {});
552
+ const url = API.WEBEX_REVERT
553
+ .replace(':customerId', String(customerId))
554
+ .replace(':personId', personId);
555
+ return this.apiWebexService.post(url, {});
552
556
  // .pipe(this.handleError(true, true));
553
557
  }
554
558
  swapStatuses(customerId, email) {
@@ -2109,8 +2113,7 @@ class UsersListComponent {
2109
2113
  onRevertClicked(user) {
2110
2114
  if (user?.webexUUID) {
2111
2115
  this.setUserPendingStatus(user, 'Pending Deactivation');
2112
- this.userService.swapStatuses(this.customerId, user.email || '')
2113
- // this.userService.revertMigration(this.customerId, user.webexUUID)
2116
+ this.userService.revertMigration(this.customerId, user.webexUUID)
2114
2117
  .pipe(takeUntil(this.destroy$), switchMap(() => timer(2000)))
2115
2118
  .subscribe({
2116
2119
  next: () => {