@tuki-io/tuki-widgets 0.0.221 → 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",
|
|
@@ -558,6 +559,13 @@ class UserService {
|
|
|
558
559
|
return this.apiWebexService.post(url, {});
|
|
559
560
|
// .pipe(this.handleError(true, true));
|
|
560
561
|
}
|
|
562
|
+
removeUcmLicense(customerId, migrationFormId, controlHubType = 'WEBEX') {
|
|
563
|
+
const url = API.REMOVE_UCM_LICENSE
|
|
564
|
+
.replace(':controlHubType', String(controlHubType))
|
|
565
|
+
.replace(':customerId', String(customerId))
|
|
566
|
+
.replace(':migrationFormId', String(migrationFormId));
|
|
567
|
+
return this.apiWebexService.post(url, {});
|
|
568
|
+
}
|
|
561
569
|
swapStatuses(customerId, email) {
|
|
562
570
|
return this.apiService.put(API.SWAP_STATUSES.replace(':customerId', String(customerId)), null, { email });
|
|
563
571
|
}
|
|
@@ -2262,12 +2270,25 @@ class UsersListComponent {
|
|
|
2262
2270
|
}))
|
|
2263
2271
|
.subscribe({
|
|
2264
2272
|
next: (formId) => {
|
|
2265
|
-
|
|
2266
|
-
this.
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2273
|
+
window.setTimeout(() => {
|
|
2274
|
+
this.pollMigrationFormStatusByUserId(formId, user.userid, () => {
|
|
2275
|
+
this.setUserPendingStatus(user, 'Active');
|
|
2276
|
+
this.setOriginalUserStatus(user.email, 'Inactive');
|
|
2277
|
+
this.userService
|
|
2278
|
+
.removeUcmLicense(this.customerId, formId)
|
|
2279
|
+
.pipe(takeUntil(this.destroy$))
|
|
2280
|
+
.subscribe({
|
|
2281
|
+
next: () => {
|
|
2282
|
+
console.log('Remove finished...');
|
|
2283
|
+
},
|
|
2284
|
+
error: () => {
|
|
2285
|
+
this.notifications.error('UCM license removal failed.');
|
|
2286
|
+
}
|
|
2287
|
+
});
|
|
2288
|
+
// this.notifications.success(`${user.userid} successfully activated`);
|
|
2289
|
+
this.refreshUsersAfterOperation();
|
|
2290
|
+
});
|
|
2291
|
+
}, 10000);
|
|
2271
2292
|
},
|
|
2272
2293
|
error: () => {
|
|
2273
2294
|
this.setUserPendingStatus(user, 'Inactive');
|