@tuki-io/tuki-widgets 0.0.181 → 0.0.183
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/di2mt/api/api.endpoints.d.ts +1 -0
- package/di2mt/widgets/upgrade-overview/upgrade-overview.service.d.ts +1 -0
- package/esm2020/contact-center/cc-script-editor/components/wxcc-flowchart/wxcc-flowchart.component.mjs +2 -2
- package/esm2020/di2mt/api/api.endpoints.mjs +3 -2
- package/esm2020/di2mt/widgets/upgrade-overview/cards/pending-activation-users/pending-activation-users.component.mjs +9 -8
- package/esm2020/di2mt/widgets/upgrade-overview/upgrade-overview.service.mjs +9 -1
- package/esm2020/user-manage/src/user-info/user-info.component.mjs +3 -3
- package/esm2020/users-list/src/components/table-toolbar/table-toolbar.component.mjs +3 -3
- package/esm2020/users-list/src/users-list.component.mjs +3 -3
- package/fesm2015/tuki-io-tuki-widgets-contact-center.mjs +2 -2
- package/fesm2015/tuki-io-tuki-widgets-contact-center.mjs.map +1 -1
- package/fesm2015/tuki-io-tuki-widgets-di2mt.mjs +17 -5
- package/fesm2015/tuki-io-tuki-widgets-di2mt.mjs.map +1 -1
- package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs +2 -2
- package/fesm2015/tuki-io-tuki-widgets-user-manage.mjs.map +1 -1
- package/fesm2015/tuki-io-tuki-widgets-users-list.mjs +4 -4
- package/fesm2015/tuki-io-tuki-widgets-users-list.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-contact-center.mjs +2 -2
- package/fesm2020/tuki-io-tuki-widgets-contact-center.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-di2mt.mjs +17 -7
- package/fesm2020/tuki-io-tuki-widgets-di2mt.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs +2 -2
- package/fesm2020/tuki-io-tuki-widgets-user-manage.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-users-list.mjs +4 -4
- package/fesm2020/tuki-io-tuki-widgets-users-list.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -42,7 +42,8 @@ const API$1 = {
|
|
|
42
42
|
GET_USERS_UPGRADE_SUMMARY: '/api/webex-upgrade/customers/:customerId/users/upgrade/fetch',
|
|
43
43
|
GET_SITES_UPGRADE_SUMMARY: '/api/webex-upgrade/customers/:customerId/sites/upgrade/fetch',
|
|
44
44
|
GET_USERS_UPGRADE_READINESS: '/api/webex-upgrade/customers/:customerId/users/readiness/fetch',
|
|
45
|
-
GET_SITES_UPGRADE_READINESS: '/api/webex-upgrade/customers/:customerId/sites/readiness/fetch'
|
|
45
|
+
GET_SITES_UPGRADE_READINESS: '/api/webex-upgrade/customers/:customerId/sites/readiness/fetch',
|
|
46
|
+
GET_PENDING_ACTIVATION_COUNT: '/customers/:customerId/users/pending-activation/count'
|
|
46
47
|
},
|
|
47
48
|
USER_UPGRADE: {
|
|
48
49
|
GET_USERS_UPGRADE_DATA: '/api/webex-upgrade/customers/:customerId/user-upgrade',
|
|
@@ -1729,6 +1730,15 @@ class UpgradeOverviewService {
|
|
|
1729
1730
|
};
|
|
1730
1731
|
}));
|
|
1731
1732
|
}
|
|
1733
|
+
getPendingActivationCount() {
|
|
1734
|
+
return this.apiService.fetch(API$1.OVERVIEW.GET_PENDING_ACTIVATION_COUNT.replace(':customerId', this.customerId)).pipe(map((resp) => {
|
|
1735
|
+
var _a, _b, _c;
|
|
1736
|
+
if (typeof resp === "number") {
|
|
1737
|
+
return resp;
|
|
1738
|
+
}
|
|
1739
|
+
return (_c = (_b = (_a = resp === null || resp === void 0 ? void 0 : resp.count) !== null && _a !== void 0 ? _a : resp === null || resp === void 0 ? void 0 : resp.pendingActivation) !== null && _b !== void 0 ? _b : resp === null || resp === void 0 ? void 0 : resp.total) !== null && _c !== void 0 ? _c : 0;
|
|
1740
|
+
}));
|
|
1741
|
+
}
|
|
1732
1742
|
getSitesUpgradeSummary() {
|
|
1733
1743
|
return this.apiService.fetch(API$1.OVERVIEW.GET_SITES_UPGRADE_SUMMARY.replace(':customerId', this.customerId)).pipe(map((resp) => {
|
|
1734
1744
|
return {
|
|
@@ -2217,10 +2227,12 @@ class PendingActivationUsersCardComponent {
|
|
|
2217
2227
|
this.apiService.apiUrl = this.host;
|
|
2218
2228
|
this.upgradeOverviewService.customerId = this.customerId;
|
|
2219
2229
|
this.loading = true;
|
|
2220
|
-
|
|
2221
|
-
.
|
|
2222
|
-
.
|
|
2223
|
-
|
|
2230
|
+
forkJoin({
|
|
2231
|
+
summary: this.upgradeOverviewService.getUsersUpgradeSummary(),
|
|
2232
|
+
pendingActivation: this.upgradeOverviewService.getPendingActivationCount()
|
|
2233
|
+
}).pipe(takeUntil(this.destroy$))
|
|
2234
|
+
.subscribe(({ summary, pendingActivation }) => {
|
|
2235
|
+
this.readinessStats = Object.assign(Object.assign({}, summary), { pendingActivation });
|
|
2224
2236
|
this.loading = false;
|
|
2225
2237
|
});
|
|
2226
2238
|
}
|