@vc-shell/framework 1.0.87 → 1.0.89
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/CHANGELOG.md +14 -0
- package/core/api/catalog.ts +8527 -0
- package/core/api/platform.ts +83 -17
- package/core/composables/useNotifications/index.ts +1 -1
- package/core/composables/useSettings/index.ts +1 -1
- package/core/composables/useUser/index.ts +3 -3
- package/core/plugins/signalR/index.ts +1 -1
- package/core/types/index.ts +1 -1
- package/dist/core/api/catalog.d.ts +2522 -0
- package/dist/core/api/catalog.d.ts.map +1 -0
- package/dist/core/api/platform.d.ts +82 -16
- package/dist/core/api/platform.d.ts.map +1 -1
- package/dist/core/composables/useNotifications/index.d.ts +1 -1
- package/dist/core/composables/useNotifications/index.d.ts.map +1 -1
- package/dist/core/composables/useUser/index.d.ts +1 -1
- package/dist/core/composables/useUser/index.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +1 -1
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/framework.mjs +18434 -18227
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts +1 -1
- package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts.map +1 -1
- package/dist/shared/components/app-switcher/composables/useAppSwitcher/index.d.ts +1 -1
- package/dist/shared/components/app-switcher/composables/useAppSwitcher/index.d.ts.map +1 -1
- package/dist/shared/components/blade-navigation/types/index.d.ts +1 -1
- package/dist/shared/components/blade-navigation/types/index.d.ts.map +1 -1
- package/dist/shared/components/change-password/change-password.vue.d.ts.map +1 -1
- package/dist/shared/components/language-selector/index.d.ts +5 -5
- package/dist/shared/components/language-selector/language-selector.vue.d.ts +1 -1
- package/dist/shared/components/notifications/components/notification-container/index.d.ts +1 -1
- package/dist/shared/modules/assets/components/assets-details/assets-details.vue.d.ts.map +1 -1
- package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts.map +1 -1
- package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts.map +1 -1
- package/dist/shared/pages/LoginPage/components/login/Login.vue.d.ts.map +1 -1
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/index.d.ts +20 -0
- package/dist/ui/components/atoms/index.d.ts.map +1 -0
- package/dist/ui/components/atoms/vc-button/index.d.ts +10 -10
- package/dist/ui/components/atoms/vc-checkbox/index.d.ts +11 -11
- package/dist/ui/components/atoms/vc-icon/index.d.ts +6 -6
- package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-info-row/index.d.ts +8 -8
- package/dist/ui/components/atoms/vc-label/index.d.ts +1 -1
- package/dist/ui/components/atoms/vc-status/index.d.ts +15 -15
- package/dist/ui/components/atoms/vc-status/vc-status.vue.d.ts +1 -1
- package/dist/ui/components/index.d.ts +3 -41
- package/dist/ui/components/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/index.d.ts +14 -0
- package/dist/ui/components/molecules/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-breadcrumbs/_internal/vc-breadcrumbs-item/vc-breadcrumbs-item.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-code-editor/index.d.ts +11 -26
- package/dist/ui/components/molecules/vc-code-editor/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.vue.d.ts +0 -4
- package/dist/ui/components/molecules/vc-code-editor/vc-code-editor.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/index.d.ts +11 -26
- package/dist/ui/components/molecules/vc-editor/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +0 -4
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input/index.d.ts +29 -29
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-input-currency/index.d.ts +24 -24
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-textarea/index.d.ts +20 -20
- package/dist/ui/components/organisms/index.d.ts +10 -0
- package/dist/ui/components/organisms/index.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/vc-app-menu.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/index.d.ts +12 -12
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/index.d.ts +13 -13
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-error/vc-popup-error.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/_internal/vc-popup-warning/vc-popup-warning.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/index.d.ts +9 -9
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
- package/package.json +3 -3
- package/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +1 -1
- package/shared/components/app-switcher/composables/useAppSwitcher/index.ts +1 -1
- package/shared/components/blade-navigation/types/index.ts +1 -1
- package/shared/components/change-password/change-password.vue +16 -14
- package/shared/modules/assets/components/assets-details/assets-details.vue +14 -14
- package/shared/modules/assets/locales/en.json +1 -0
- package/shared/modules/assets-manager/components/assets-manager/assets-manager.vue +7 -7
- package/shared/pages/InvitePage/components/invite/Invite.vue +12 -10
- package/shared/pages/LoginPage/components/login/Login.vue +19 -17
- package/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue +11 -9
- package/ui/components/atoms/index.ts +19 -0
- package/ui/components/index.ts +3 -41
- package/ui/components/molecules/index.ts +13 -0
- package/ui/components/molecules/vc-code-editor/vc-code-editor.vue +0 -2
- package/ui/components/molecules/vc-editor/vc-editor.vue +0 -2
- package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +6 -2
- package/ui/components/molecules/vc-select/vc-select.vue +6 -3
- package/ui/components/organisms/index.ts +9 -0
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue +4 -1
- package/ui/components/organisms/vc-blade/vc-blade.vue +1 -1
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +1 -1
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue +5 -4
- package/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue +5 -2
- package/ui/components/organisms/vc-gallery/vc-gallery.vue +3 -2
- package/ui/components/organisms/vc-notification-dropdown/_internal/notification/notification.vue +1 -1
- package/ui/components/organisms/vc-notification-dropdown/vc-notification-dropdown.vue +5 -4
- package/ui/components/organisms/vc-popup/_internal/vc-popup-error/vc-popup-error.vue +4 -1
- package/ui/components/organisms/vc-popup/_internal/vc-popup-warning/vc-popup-warning.vue +5 -2
- package/ui/components/organisms/vc-table/_internal/vc-table-mobile-item/vc-table-mobile-item.vue +3 -1
- package/ui/components/organisms/vc-table/vc-table.vue +8 -5
- package/ui/locales/en.json +32 -0
- package/core/api/index.ts +0 -1
- package/dist/core/api/index.d.ts +0 -2
- package/dist/core/api/index.d.ts.map +0 -1
package/core/api/platform.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//----------------------
|
|
2
2
|
// <auto-generated>
|
|
3
|
-
// Generated using the NSwag toolchain v13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json
|
|
3
|
+
// Generated using the NSwag toolchain v13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
|
|
4
4
|
// </auto-generated>
|
|
5
5
|
//----------------------
|
|
6
6
|
|
|
@@ -288,6 +288,7 @@ export class AppsClient extends AuthApiBase {
|
|
|
288
288
|
}
|
|
289
289
|
|
|
290
290
|
/**
|
|
291
|
+
* Gets the list of available apps, filtered by user permissions.
|
|
291
292
|
* @return Success
|
|
292
293
|
*/
|
|
293
294
|
getApps(): Promise<AppDescriptor[]> {
|
|
@@ -346,6 +347,7 @@ export class ChangeLogClient extends AuthApiBase {
|
|
|
346
347
|
}
|
|
347
348
|
|
|
348
349
|
/**
|
|
350
|
+
* Force set changes last modified date
|
|
349
351
|
* @param scope (optional)
|
|
350
352
|
* @return Success
|
|
351
353
|
*/
|
|
@@ -437,6 +439,8 @@ export class ChangeLogClient extends AuthApiBase {
|
|
|
437
439
|
}
|
|
438
440
|
|
|
439
441
|
/**
|
|
442
|
+
* Get last modified date for given scope
|
|
443
|
+
Used for signal of what something changed and for cache invalidation in external platform clients
|
|
440
444
|
* @param scope (optional)
|
|
441
445
|
* @return Success
|
|
442
446
|
*/
|
|
@@ -751,6 +755,7 @@ export class DiagnosticsClient extends AuthApiBase {
|
|
|
751
755
|
}
|
|
752
756
|
|
|
753
757
|
/**
|
|
758
|
+
* Get installed modules with errors
|
|
754
759
|
* @return Success
|
|
755
760
|
*/
|
|
756
761
|
getModulesErrors(): Promise<ModuleDescriptor[]> {
|
|
@@ -809,6 +814,7 @@ export class DynamicPropertiesClient extends AuthApiBase {
|
|
|
809
814
|
}
|
|
810
815
|
|
|
811
816
|
/**
|
|
817
|
+
* Get object types which support dynamic properties
|
|
812
818
|
* @return Success
|
|
813
819
|
*/
|
|
814
820
|
getObjectTypes(): Promise<string[]> {
|
|
@@ -863,6 +869,7 @@ export class DynamicPropertiesClient extends AuthApiBase {
|
|
|
863
869
|
}
|
|
864
870
|
|
|
865
871
|
/**
|
|
872
|
+
* Get dynamic properties registered for object type
|
|
866
873
|
* @param body (optional)
|
|
867
874
|
* @return Success
|
|
868
875
|
*/
|
|
@@ -915,6 +922,7 @@ export class DynamicPropertiesClient extends AuthApiBase {
|
|
|
915
922
|
}
|
|
916
923
|
|
|
917
924
|
/**
|
|
925
|
+
* Add new dynamic property
|
|
918
926
|
* @param body (optional)
|
|
919
927
|
* @return Success
|
|
920
928
|
*/
|
|
@@ -967,6 +975,7 @@ export class DynamicPropertiesClient extends AuthApiBase {
|
|
|
967
975
|
}
|
|
968
976
|
|
|
969
977
|
/**
|
|
978
|
+
* Update existing dynamic property
|
|
970
979
|
* @param body (optional)
|
|
971
980
|
* @return Success
|
|
972
981
|
*/
|
|
@@ -1015,6 +1024,7 @@ export class DynamicPropertiesClient extends AuthApiBase {
|
|
|
1015
1024
|
}
|
|
1016
1025
|
|
|
1017
1026
|
/**
|
|
1027
|
+
* Delete dynamic property
|
|
1018
1028
|
* @param propertyIds (optional)
|
|
1019
1029
|
* @return Success
|
|
1020
1030
|
*/
|
|
@@ -1063,6 +1073,7 @@ export class DynamicPropertiesClient extends AuthApiBase {
|
|
|
1063
1073
|
}
|
|
1064
1074
|
|
|
1065
1075
|
/**
|
|
1076
|
+
* Does nothing. Just a way to expose DynamicObjectProperty thru Swagger.
|
|
1066
1077
|
* @return Success
|
|
1067
1078
|
*/
|
|
1068
1079
|
exposeDynamicObjectProperty(): Promise<DynamicObjectProperty> {
|
|
@@ -1114,6 +1125,7 @@ export class DynamicPropertiesClient extends AuthApiBase {
|
|
|
1114
1125
|
}
|
|
1115
1126
|
|
|
1116
1127
|
/**
|
|
1128
|
+
* Get dictionary items
|
|
1117
1129
|
* @param body (optional)
|
|
1118
1130
|
* @return Success
|
|
1119
1131
|
*/
|
|
@@ -1166,6 +1178,7 @@ export class DynamicPropertiesClient extends AuthApiBase {
|
|
|
1166
1178
|
}
|
|
1167
1179
|
|
|
1168
1180
|
/**
|
|
1181
|
+
* Add or update dictionary items
|
|
1169
1182
|
* @param body (optional)
|
|
1170
1183
|
* @return Success
|
|
1171
1184
|
*/
|
|
@@ -1214,7 +1227,8 @@ export class DynamicPropertiesClient extends AuthApiBase {
|
|
|
1214
1227
|
}
|
|
1215
1228
|
|
|
1216
1229
|
/**
|
|
1217
|
-
*
|
|
1230
|
+
* Delete dictionary items
|
|
1231
|
+
* @param ids (optional) IDs of dictionary items to delete.
|
|
1218
1232
|
* @return Success
|
|
1219
1233
|
*/
|
|
1220
1234
|
deleteDictionaryItem(ids?: string[] | undefined): Promise<void> {
|
|
@@ -1274,6 +1288,8 @@ export class JobsClient extends AuthApiBase {
|
|
|
1274
1288
|
}
|
|
1275
1289
|
|
|
1276
1290
|
/**
|
|
1291
|
+
* Get background job status
|
|
1292
|
+
* @param id Job ID.
|
|
1277
1293
|
* @return Success
|
|
1278
1294
|
*/
|
|
1279
1295
|
getStatus(id: string): Promise<Job> {
|
|
@@ -1336,6 +1352,7 @@ export class ModulesClient extends AuthApiBase {
|
|
|
1336
1352
|
}
|
|
1337
1353
|
|
|
1338
1354
|
/**
|
|
1355
|
+
* Reload modules
|
|
1339
1356
|
* @return Success
|
|
1340
1357
|
*/
|
|
1341
1358
|
reloadModules(): Promise<void> {
|
|
@@ -1379,6 +1396,7 @@ export class ModulesClient extends AuthApiBase {
|
|
|
1379
1396
|
}
|
|
1380
1397
|
|
|
1381
1398
|
/**
|
|
1399
|
+
* Get installed modules
|
|
1382
1400
|
* @return Success
|
|
1383
1401
|
*/
|
|
1384
1402
|
getModules(): Promise<ModuleDescriptor[]> {
|
|
@@ -1433,7 +1451,8 @@ export class ModulesClient extends AuthApiBase {
|
|
|
1433
1451
|
}
|
|
1434
1452
|
|
|
1435
1453
|
/**
|
|
1436
|
-
*
|
|
1454
|
+
* Get all dependent modules for module
|
|
1455
|
+
* @param body (optional) modules descriptors
|
|
1437
1456
|
* @return Success
|
|
1438
1457
|
*/
|
|
1439
1458
|
getDependingModules(body?: ModuleDescriptor[] | undefined): Promise<ModuleDescriptor[]> {
|
|
@@ -1492,7 +1511,8 @@ export class ModulesClient extends AuthApiBase {
|
|
|
1492
1511
|
}
|
|
1493
1512
|
|
|
1494
1513
|
/**
|
|
1495
|
-
*
|
|
1514
|
+
* Returns a flat expanded list of modules that depend on passed modules
|
|
1515
|
+
* @param body (optional) modules descriptors
|
|
1496
1516
|
* @return Success
|
|
1497
1517
|
*/
|
|
1498
1518
|
getMissingDependencies(body?: ModuleDescriptor[] | undefined): Promise<ModuleDescriptor[]> {
|
|
@@ -1551,6 +1571,7 @@ export class ModulesClient extends AuthApiBase {
|
|
|
1551
1571
|
}
|
|
1552
1572
|
|
|
1553
1573
|
/**
|
|
1574
|
+
* Upload module package for installation or update
|
|
1554
1575
|
* @return Success
|
|
1555
1576
|
*/
|
|
1556
1577
|
uploadModuleArchive(): Promise<ModuleDescriptor> {
|
|
@@ -1598,7 +1619,8 @@ export class ModulesClient extends AuthApiBase {
|
|
|
1598
1619
|
}
|
|
1599
1620
|
|
|
1600
1621
|
/**
|
|
1601
|
-
*
|
|
1622
|
+
* Install modules
|
|
1623
|
+
* @param body (optional) modules for install
|
|
1602
1624
|
* @return Success
|
|
1603
1625
|
*/
|
|
1604
1626
|
installModules(body?: ModuleDescriptor[] | undefined): Promise<ModulePushNotification> {
|
|
@@ -1650,7 +1672,8 @@ export class ModulesClient extends AuthApiBase {
|
|
|
1650
1672
|
}
|
|
1651
1673
|
|
|
1652
1674
|
/**
|
|
1653
|
-
*
|
|
1675
|
+
* Uninstall module
|
|
1676
|
+
* @param body (optional) modules
|
|
1654
1677
|
* @return Success
|
|
1655
1678
|
*/
|
|
1656
1679
|
uninstallModule(body?: ModuleDescriptor[] | undefined): Promise<ModulePushNotification> {
|
|
@@ -1702,6 +1725,7 @@ export class ModulesClient extends AuthApiBase {
|
|
|
1702
1725
|
}
|
|
1703
1726
|
|
|
1704
1727
|
/**
|
|
1728
|
+
* Restart web application
|
|
1705
1729
|
* @return Success
|
|
1706
1730
|
*/
|
|
1707
1731
|
restart(): Promise<void> {
|
|
@@ -1745,6 +1769,7 @@ export class ModulesClient extends AuthApiBase {
|
|
|
1745
1769
|
}
|
|
1746
1770
|
|
|
1747
1771
|
/**
|
|
1772
|
+
* Auto-install modules with specified groups
|
|
1748
1773
|
* @return Success
|
|
1749
1774
|
*/
|
|
1750
1775
|
tryToAutoInstallModules(): Promise<ModuleAutoInstallPushNotification> {
|
|
@@ -2015,7 +2040,8 @@ export class PushNotificationClient extends AuthApiBase {
|
|
|
2015
2040
|
}
|
|
2016
2041
|
|
|
2017
2042
|
/**
|
|
2018
|
-
*
|
|
2043
|
+
* SearchAsync push notifications
|
|
2044
|
+
* @param body (optional) SearchAsync parameters.
|
|
2019
2045
|
* @return Success
|
|
2020
2046
|
*/
|
|
2021
2047
|
searchPushNotification(body?: PushNotificationSearchCriteria | undefined): Promise<PushNotificationSearchResult> {
|
|
@@ -2067,6 +2093,7 @@ export class PushNotificationClient extends AuthApiBase {
|
|
|
2067
2093
|
}
|
|
2068
2094
|
|
|
2069
2095
|
/**
|
|
2096
|
+
* Mark all notifications as read
|
|
2070
2097
|
* @return Success
|
|
2071
2098
|
*/
|
|
2072
2099
|
markAllAsRead(): Promise<PushNotificationSearchResult> {
|
|
@@ -2126,7 +2153,8 @@ export class SecurityClient extends AuthApiBase {
|
|
|
2126
2153
|
}
|
|
2127
2154
|
|
|
2128
2155
|
/**
|
|
2129
|
-
*
|
|
2156
|
+
* Sign in with user name and password
|
|
2157
|
+
* @param body (optional) Login request.
|
|
2130
2158
|
* @return Success
|
|
2131
2159
|
*/
|
|
2132
2160
|
login(body?: LoginRequest | undefined): Promise<SignInResult> {
|
|
@@ -2170,6 +2198,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
2170
2198
|
}
|
|
2171
2199
|
|
|
2172
2200
|
/**
|
|
2201
|
+
* Sign out
|
|
2173
2202
|
* @return Success
|
|
2174
2203
|
*/
|
|
2175
2204
|
logout(): Promise<void> {
|
|
@@ -2213,6 +2242,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
2213
2242
|
}
|
|
2214
2243
|
|
|
2215
2244
|
/**
|
|
2245
|
+
* Get current user details
|
|
2216
2246
|
* @return Success
|
|
2217
2247
|
*/
|
|
2218
2248
|
getCurrentUser(): Promise<UserDetail> {
|
|
@@ -2314,6 +2344,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
2314
2344
|
}
|
|
2315
2345
|
|
|
2316
2346
|
/**
|
|
2347
|
+
* Get all registered permissions
|
|
2317
2348
|
* @return Success
|
|
2318
2349
|
*/
|
|
2319
2350
|
getAllRegisteredPermissions(): Promise<Permission[]> {
|
|
@@ -2368,7 +2399,8 @@ export class SecurityClient extends AuthApiBase {
|
|
|
2368
2399
|
}
|
|
2369
2400
|
|
|
2370
2401
|
/**
|
|
2371
|
-
*
|
|
2402
|
+
* SearchAsync roles by keyword
|
|
2403
|
+
* @param body (optional) SearchAsync parameters.
|
|
2372
2404
|
* @return Success
|
|
2373
2405
|
*/
|
|
2374
2406
|
searchRoles(body?: RoleSearchCriteria | undefined): Promise<RoleSearchResult> {
|
|
@@ -2420,6 +2452,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
2420
2452
|
}
|
|
2421
2453
|
|
|
2422
2454
|
/**
|
|
2455
|
+
* Get role by ID
|
|
2423
2456
|
* @return Success
|
|
2424
2457
|
*/
|
|
2425
2458
|
getRole(roleName: string): Promise<Role> {
|
|
@@ -2470,7 +2503,8 @@ export class SecurityClient extends AuthApiBase {
|
|
|
2470
2503
|
}
|
|
2471
2504
|
|
|
2472
2505
|
/**
|
|
2473
|
-
*
|
|
2506
|
+
* Delete roles by ID
|
|
2507
|
+
* @param ids (optional) An array of role IDs.
|
|
2474
2508
|
* @return Success
|
|
2475
2509
|
*/
|
|
2476
2510
|
deleteRoles(ids?: string[] | undefined): Promise<void> {
|
|
@@ -2518,6 +2552,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
2518
2552
|
}
|
|
2519
2553
|
|
|
2520
2554
|
/**
|
|
2555
|
+
* Update an existing role or create new
|
|
2521
2556
|
* @param body (optional)
|
|
2522
2557
|
* @return Success
|
|
2523
2558
|
*/
|
|
@@ -2570,7 +2605,8 @@ export class SecurityClient extends AuthApiBase {
|
|
|
2570
2605
|
}
|
|
2571
2606
|
|
|
2572
2607
|
/**
|
|
2573
|
-
*
|
|
2608
|
+
* SearchAsync users by keyword
|
|
2609
|
+
* @param body (optional) Search criteria.
|
|
2574
2610
|
* @return Success
|
|
2575
2611
|
*/
|
|
2576
2612
|
searchUsers(body?: UserSearchCriteria | undefined): Promise<UserSearchResult> {
|
|
@@ -2622,6 +2658,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
2622
2658
|
}
|
|
2623
2659
|
|
|
2624
2660
|
/**
|
|
2661
|
+
* Get user details by user name
|
|
2625
2662
|
* @return Success
|
|
2626
2663
|
*/
|
|
2627
2664
|
getUserByName(userName: string): Promise<ApplicationUser> {
|
|
@@ -2672,6 +2709,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
2672
2709
|
}
|
|
2673
2710
|
|
|
2674
2711
|
/**
|
|
2712
|
+
* Get user details by user ID
|
|
2675
2713
|
* @return Success
|
|
2676
2714
|
*/
|
|
2677
2715
|
getUserById(id: string): Promise<ApplicationUser> {
|
|
@@ -2722,6 +2760,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
2722
2760
|
}
|
|
2723
2761
|
|
|
2724
2762
|
/**
|
|
2763
|
+
* Get user details by user email
|
|
2725
2764
|
* @return Success
|
|
2726
2765
|
*/
|
|
2727
2766
|
getUserByEmail(email: string): Promise<ApplicationUser> {
|
|
@@ -2772,6 +2811,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
2772
2811
|
}
|
|
2773
2812
|
|
|
2774
2813
|
/**
|
|
2814
|
+
* Get user details by external login provider
|
|
2775
2815
|
* @return Success
|
|
2776
2816
|
*/
|
|
2777
2817
|
getUserByLogin(loginProvider: string, providerKey: string): Promise<ApplicationUser> {
|
|
@@ -2825,6 +2865,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
2825
2865
|
}
|
|
2826
2866
|
|
|
2827
2867
|
/**
|
|
2868
|
+
* Create new user
|
|
2828
2869
|
* @param body (optional)
|
|
2829
2870
|
* @return Success
|
|
2830
2871
|
*/
|
|
@@ -2877,7 +2918,8 @@ export class SecurityClient extends AuthApiBase {
|
|
|
2877
2918
|
}
|
|
2878
2919
|
|
|
2879
2920
|
/**
|
|
2880
|
-
*
|
|
2921
|
+
* Change password for current user.
|
|
2922
|
+
* @param body (optional) Old and new passwords.
|
|
2881
2923
|
* @return Success
|
|
2882
2924
|
*/
|
|
2883
2925
|
changeCurrentUserPassword(body?: ChangePasswordRequest | undefined): Promise<SecurityResult> {
|
|
@@ -2933,7 +2975,9 @@ export class SecurityClient extends AuthApiBase {
|
|
|
2933
2975
|
}
|
|
2934
2976
|
|
|
2935
2977
|
/**
|
|
2936
|
-
*
|
|
2978
|
+
* Change password
|
|
2979
|
+
* @param userName user name
|
|
2980
|
+
* @param body (optional) Old and new passwords.
|
|
2937
2981
|
* @return Success
|
|
2938
2982
|
*/
|
|
2939
2983
|
changePassword(userName: string, body?: ChangePasswordRequest | undefined): Promise<SecurityResult> {
|
|
@@ -2992,7 +3036,8 @@ export class SecurityClient extends AuthApiBase {
|
|
|
2992
3036
|
}
|
|
2993
3037
|
|
|
2994
3038
|
/**
|
|
2995
|
-
*
|
|
3039
|
+
* Reset password confirmation
|
|
3040
|
+
* @param body (optional) Password reset information containing new password.
|
|
2996
3041
|
* @return Success
|
|
2997
3042
|
*/
|
|
2998
3043
|
resetPassword(userName: string, body?: ResetPasswordConfirmRequest | undefined): Promise<SecurityResult> {
|
|
@@ -3047,7 +3092,8 @@ export class SecurityClient extends AuthApiBase {
|
|
|
3047
3092
|
}
|
|
3048
3093
|
|
|
3049
3094
|
/**
|
|
3050
|
-
*
|
|
3095
|
+
* Reset password confirmation
|
|
3096
|
+
* @param body (optional) New password.
|
|
3051
3097
|
* @return Success
|
|
3052
3098
|
*/
|
|
3053
3099
|
resetPasswordByToken(userId: string, body?: ResetPasswordConfirmRequest | undefined): Promise<SecurityResult> {
|
|
@@ -3094,6 +3140,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
3094
3140
|
}
|
|
3095
3141
|
|
|
3096
3142
|
/**
|
|
3143
|
+
* Validate password reset token
|
|
3097
3144
|
* @param body (optional)
|
|
3098
3145
|
* @return Success
|
|
3099
3146
|
*/
|
|
@@ -3142,6 +3189,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
3142
3189
|
}
|
|
3143
3190
|
|
|
3144
3191
|
/**
|
|
3192
|
+
* Send email with instructions on how to reset user password.
|
|
3145
3193
|
* @return Success
|
|
3146
3194
|
*/
|
|
3147
3195
|
requestPasswordReset(loginOrEmail: string): Promise<void> {
|
|
@@ -3276,7 +3324,8 @@ export class SecurityClient extends AuthApiBase {
|
|
|
3276
3324
|
}
|
|
3277
3325
|
|
|
3278
3326
|
/**
|
|
3279
|
-
*
|
|
3327
|
+
* Update user details by user ID
|
|
3328
|
+
* @param body (optional) User details.
|
|
3280
3329
|
* @return Success
|
|
3281
3330
|
*/
|
|
3282
3331
|
update(body?: ApplicationUser | undefined): Promise<SecurityResult> {
|
|
@@ -3328,7 +3377,8 @@ export class SecurityClient extends AuthApiBase {
|
|
|
3328
3377
|
}
|
|
3329
3378
|
|
|
3330
3379
|
/**
|
|
3331
|
-
*
|
|
3380
|
+
* Delete users by name
|
|
3381
|
+
* @param names (optional) An array of user names.
|
|
3332
3382
|
* @return Success
|
|
3333
3383
|
*/
|
|
3334
3384
|
delete(names?: string[] | undefined): Promise<void> {
|
|
@@ -3376,6 +3426,8 @@ export class SecurityClient extends AuthApiBase {
|
|
|
3376
3426
|
}
|
|
3377
3427
|
|
|
3378
3428
|
/**
|
|
3429
|
+
* Checks if user locked
|
|
3430
|
+
* @param id User id
|
|
3379
3431
|
* @return Success
|
|
3380
3432
|
*/
|
|
3381
3433
|
isUserLocked(id: string): Promise<UserLockedResult> {
|
|
@@ -3426,6 +3478,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
3426
3478
|
}
|
|
3427
3479
|
|
|
3428
3480
|
/**
|
|
3481
|
+
* Checks if manual password change is enabled
|
|
3429
3482
|
* @return Success
|
|
3430
3483
|
*/
|
|
3431
3484
|
passwordChangeEnabled(): Promise<UserLockedResult> {
|
|
@@ -3473,6 +3526,8 @@ export class SecurityClient extends AuthApiBase {
|
|
|
3473
3526
|
}
|
|
3474
3527
|
|
|
3475
3528
|
/**
|
|
3529
|
+
* Lock user
|
|
3530
|
+
* @param id >User id
|
|
3476
3531
|
* @return Success
|
|
3477
3532
|
*/
|
|
3478
3533
|
lockUser(id: string): Promise<SecurityResult> {
|
|
@@ -3523,6 +3578,8 @@ export class SecurityClient extends AuthApiBase {
|
|
|
3523
3578
|
}
|
|
3524
3579
|
|
|
3525
3580
|
/**
|
|
3581
|
+
* Unlock user
|
|
3582
|
+
* @param id >User id
|
|
3526
3583
|
* @return Success
|
|
3527
3584
|
*/
|
|
3528
3585
|
unlockUser(id: string): Promise<SecurityResult> {
|
|
@@ -3807,6 +3864,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
3807
3864
|
}
|
|
3808
3865
|
|
|
3809
3866
|
/**
|
|
3867
|
+
* Get allowed login types
|
|
3810
3868
|
* @return Success
|
|
3811
3869
|
*/
|
|
3812
3870
|
getLoginTypes(): Promise<LoginType[]> {
|
|
@@ -3853,6 +3911,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
3853
3911
|
}
|
|
3854
3912
|
|
|
3855
3913
|
/**
|
|
3914
|
+
* Verify user email
|
|
3856
3915
|
* @return Success
|
|
3857
3916
|
*/
|
|
3858
3917
|
sendVerificationEmail(userId: string): Promise<void> {
|
|
@@ -4241,6 +4300,7 @@ export class SettingClient extends AuthApiBase {
|
|
|
4241
4300
|
}
|
|
4242
4301
|
|
|
4243
4302
|
/**
|
|
4303
|
+
* Get all settings
|
|
4244
4304
|
* @return Success
|
|
4245
4305
|
*/
|
|
4246
4306
|
getAllGlobalSettings(): Promise<ObjectSettingEntry> {
|
|
@@ -4288,6 +4348,7 @@ export class SettingClient extends AuthApiBase {
|
|
|
4288
4348
|
}
|
|
4289
4349
|
|
|
4290
4350
|
/**
|
|
4351
|
+
* Update settings values
|
|
4291
4352
|
* @param body (optional)
|
|
4292
4353
|
* @return Success
|
|
4293
4354
|
*/
|
|
@@ -4336,6 +4397,8 @@ export class SettingClient extends AuthApiBase {
|
|
|
4336
4397
|
}
|
|
4337
4398
|
|
|
4338
4399
|
/**
|
|
4400
|
+
* Get settings registered by specific module
|
|
4401
|
+
* @param id Module ID.
|
|
4339
4402
|
* @return Success
|
|
4340
4403
|
*/
|
|
4341
4404
|
getGlobalModuleSettings(id: string): Promise<ObjectSettingEntry[]> {
|
|
@@ -4393,6 +4456,8 @@ export class SettingClient extends AuthApiBase {
|
|
|
4393
4456
|
}
|
|
4394
4457
|
|
|
4395
4458
|
/**
|
|
4459
|
+
* Get setting details by name
|
|
4460
|
+
* @param name Setting system name.
|
|
4396
4461
|
* @return Success
|
|
4397
4462
|
*/
|
|
4398
4463
|
getGlobalSetting(name: string): Promise<ObjectSettingEntry> {
|
|
@@ -4443,6 +4508,7 @@ export class SettingClient extends AuthApiBase {
|
|
|
4443
4508
|
}
|
|
4444
4509
|
|
|
4445
4510
|
/**
|
|
4511
|
+
* Get UI customization setting
|
|
4446
4512
|
* @return Success
|
|
4447
4513
|
*/
|
|
4448
4514
|
getUICustomizationSetting(): Promise<ObjectSettingEntry> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PushNotification, PushNotificationClient } from "./../../api";
|
|
1
|
+
import { PushNotification, PushNotificationClient } from "./../../api/platform";
|
|
2
2
|
import { useUser } from "./../useUser";
|
|
3
3
|
import { computed, ComputedRef, ref } from "vue";
|
|
4
4
|
import * as _ from "lodash-es";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
ChangePasswordRequest,
|
|
12
12
|
LoginType,
|
|
13
13
|
ExternalSignInProviderInfo,
|
|
14
|
-
} from "./../../api";
|
|
14
|
+
} from "./../../api/platform";
|
|
15
15
|
import { AuthData, RequestPasswordResult, SignInResults } from "./../../types";
|
|
16
16
|
import { useLocalStorage } from "@vueuse/core";
|
|
17
17
|
//The Platform Manager uses the same key to store authorization data in the
|
|
@@ -27,7 +27,6 @@ const authClient = new ClientOAuth2({
|
|
|
27
27
|
scopes: ["offline_access"],
|
|
28
28
|
});
|
|
29
29
|
const securityClient = new SecurityClient();
|
|
30
|
-
const externalSecurityClient = new ExternalSignInClient();
|
|
31
30
|
|
|
32
31
|
interface IUseUser {
|
|
33
32
|
user: ComputedRef<UserDetail | null>;
|
|
@@ -49,7 +48,8 @@ interface IUseUser {
|
|
|
49
48
|
|
|
50
49
|
export function useUser(): IUseUser {
|
|
51
50
|
const instance = getCurrentInstance();
|
|
52
|
-
const base = instance && inject("platformUrl");
|
|
51
|
+
const base = instance && inject<string>("platformUrl");
|
|
52
|
+
const externalSecurityClient = new ExternalSignInClient(base);
|
|
53
53
|
const externalSignInStorage = useLocalStorage<{ providerType: string }>("externalSignIn", { providerType: null });
|
|
54
54
|
|
|
55
55
|
const isAuthenticated = async () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HubConnectionBuilder, LogLevel } from "@microsoft/signalr";
|
|
2
|
-
import { PushNotification } from "../../api";
|
|
2
|
+
import { PushNotification } from "../../api/platform";
|
|
3
3
|
import { useNotifications } from "./../../composables/useNotifications";
|
|
4
4
|
|
|
5
5
|
const { addNotification } = useNotifications();
|
package/core/types/index.ts
CHANGED