@tuki-io/tuki-widgets 0.0.222 → 0.0.223
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/user-manage/src/user-manage-widget.component.mjs +10 -4
- package/esm2020/users-list/src/app.constants.mjs +2 -1
- package/esm2020/users-list/src/services/user.service.mjs +8 -1
- package/esm2020/users-list/src/users-list.component.mjs +20 -7
- package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs +10 -4
- package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs.map +1 -1
- package/fesm2015/tuki-io-tuki-widgets-users-list.mjs +27 -6
- package/fesm2015/tuki-io-tuki-widgets-users-list.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs +9 -3
- package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-users-list.mjs +27 -6
- package/fesm2020/tuki-io-tuki-widgets-users-list.mjs.map +1 -1
- package/package.json +1 -1
- package/users-list/src/app.constants.d.ts +1 -0
- package/users-list/src/services/user.service.d.ts +1 -0
|
@@ -79,6 +79,7 @@ const API = {
|
|
|
79
79
|
MIGRATION_FORM_ENTITIES_MIGRATED: "/api/search/webex/customers/:customerId/migrationformentities/migrated",
|
|
80
80
|
START_MIGRATION: "/api/migration/webex/startpersonmigration",
|
|
81
81
|
TRIGGER_FIRMWARE_MIGRATION: "/api/migration/:migrationType/firmwaremigration/customer/:customerId/migration/:migrationFormId",
|
|
82
|
+
REMOVE_UCM_LICENSE: "/api/migration/:controlHubType/removeucmlicense/customer/:customerId/migrationform/:migrationFormId",
|
|
82
83
|
WEBEX_REVERT: "/api/webex/provisioning/customers/:customerId/persons/:personId/revertmigration",
|
|
83
84
|
REVERT: "/api/webex/provisioning/customers/:customerId/persons/:personId/revertmigration",
|
|
84
85
|
SWAP_STATUSES: "/api/cache/user/customer/:customerId/swap-status",
|
|
@@ -562,6 +563,13 @@ class UserService {
|
|
|
562
563
|
return this.apiWebexService.post(url, {});
|
|
563
564
|
// .pipe(this.handleError(true, true));
|
|
564
565
|
}
|
|
566
|
+
removeUcmLicense(customerId, migrationFormId, controlHubType = 'WEBEX') {
|
|
567
|
+
const url = API.REMOVE_UCM_LICENSE
|
|
568
|
+
.replace(':controlHubType', String(controlHubType))
|
|
569
|
+
.replace(':customerId', String(customerId))
|
|
570
|
+
.replace(':migrationFormId', String(migrationFormId));
|
|
571
|
+
return this.apiWebexService.post(url, {});
|
|
572
|
+
}
|
|
565
573
|
swapStatuses(customerId, email) {
|
|
566
574
|
return this.apiService.put(API.SWAP_STATUSES.replace(':customerId', String(customerId)), null, { email });
|
|
567
575
|
}
|
|
@@ -2287,12 +2295,25 @@ class UsersListComponent {
|
|
|
2287
2295
|
}))
|
|
2288
2296
|
.subscribe({
|
|
2289
2297
|
next: (formId) => {
|
|
2290
|
-
|
|
2291
|
-
this.
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2298
|
+
window.setTimeout(() => {
|
|
2299
|
+
this.pollMigrationFormStatusByUserId(formId, user.userid, () => {
|
|
2300
|
+
this.setUserPendingStatus(user, 'Active');
|
|
2301
|
+
this.setOriginalUserStatus(user.email, 'Inactive');
|
|
2302
|
+
this.userService
|
|
2303
|
+
.removeUcmLicense(this.customerId, formId)
|
|
2304
|
+
.pipe(takeUntil(this.destroy$))
|
|
2305
|
+
.subscribe({
|
|
2306
|
+
next: () => {
|
|
2307
|
+
console.log('Remove finished...');
|
|
2308
|
+
},
|
|
2309
|
+
error: () => {
|
|
2310
|
+
this.notifications.error('UCM license removal failed.');
|
|
2311
|
+
}
|
|
2312
|
+
});
|
|
2313
|
+
// this.notifications.success(`${user.userid} successfully activated`);
|
|
2314
|
+
this.refreshUsersAfterOperation();
|
|
2315
|
+
});
|
|
2316
|
+
}, 10000);
|
|
2296
2317
|
},
|
|
2297
2318
|
error: () => {
|
|
2298
2319
|
this.setUserPendingStatus(user, 'Inactive');
|