@vc-shell/framework 1.0.73 → 1.0.74
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 +10 -0
- package/core/api/platform.ts +56 -56
- package/core/composables/useSettings/index.ts +4 -3
- package/core/composables/useUser/index.ts +3 -12
- package/dist/core/composables/useSettings/index.d.ts +1 -1
- package/dist/core/composables/useSettings/index.d.ts.map +1 -1
- package/dist/core/composables/useUser/index.d.ts.map +1 -1
- package/dist/framework.mjs +3956 -3960
- package/dist/shared/components/app-switcher/components/vc-app-switcher/index.d.ts +0 -8
- package/dist/shared/components/app-switcher/components/vc-app-switcher/index.d.ts.map +1 -1
- package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts +0 -1
- package/dist/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
- package/dist/vite.config.d.ts.map +1 -1
- package/package.json +4 -4
- package/shared/components/app-switcher/components/vc-app-switcher/vc-app-switcher.vue +3 -3
- package/shared/pages/LoginPage/components/login/Login.vue +2 -2
- package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +0 -1
- package/ui/components/molecules/vc-select/vc-select.vue +0 -1
- package/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## [1.0.74](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.73...v1.0.74) (2023-06-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* azure base env ([b511031](https://github.com/VirtoCommerce/vc-shell/commit/b511031c302be5f2ae251eddeb09f5f3fbf2f2bb))
|
|
7
|
+
* pass platformUrl to shell ([6265790](https://github.com/VirtoCommerce/vc-shell/commit/62657901ae6738883ed785e4f54507db85ba7d66))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
1
11
|
## [1.0.73](https://github.com/VirtoCommerce/vc-shell/compare/v1.0.72...v1.0.73) (2023-06-08)
|
|
2
12
|
|
|
3
13
|
|
package/core/api/platform.ts
CHANGED
|
@@ -103,7 +103,7 @@ export class ExternalSignInClient extends AuthApiBase {
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
|
-
* @param authenticationType (optional)
|
|
106
|
+
* @param authenticationType (optional)
|
|
107
107
|
* @return Success
|
|
108
108
|
*/
|
|
109
109
|
signIn(authenticationType?: string | undefined): Promise<void> {
|
|
@@ -143,7 +143,7 @@ export class ExternalSignInClient extends AuthApiBase {
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
|
-
* @param authenticationType (optional)
|
|
146
|
+
* @param authenticationType (optional)
|
|
147
147
|
* @return Success
|
|
148
148
|
*/
|
|
149
149
|
signOut(authenticationType?: string | undefined): Promise<void> {
|
|
@@ -183,7 +183,7 @@ export class ExternalSignInClient extends AuthApiBase {
|
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
/**
|
|
186
|
-
* @param returnUrl (optional)
|
|
186
|
+
* @param returnUrl (optional)
|
|
187
187
|
* @return Success
|
|
188
188
|
*/
|
|
189
189
|
signInCallback(returnUrl?: string | undefined): Promise<void> {
|
|
@@ -328,7 +328,7 @@ export class ChangeLogClient extends AuthApiBase {
|
|
|
328
328
|
}
|
|
329
329
|
|
|
330
330
|
/**
|
|
331
|
-
* @param scope (optional)
|
|
331
|
+
* @param scope (optional)
|
|
332
332
|
* @return Success
|
|
333
333
|
*/
|
|
334
334
|
forceChanges(scope?: string | undefined): Promise<void> {
|
|
@@ -419,7 +419,7 @@ export class ChangeLogClient extends AuthApiBase {
|
|
|
419
419
|
}
|
|
420
420
|
|
|
421
421
|
/**
|
|
422
|
-
* @param scope (optional)
|
|
422
|
+
* @param scope (optional)
|
|
423
423
|
* @return Success
|
|
424
424
|
*/
|
|
425
425
|
getLastModifiedDate(scope?: string | undefined): Promise<LastModifiedResponse> {
|
|
@@ -463,7 +463,7 @@ export class ChangeLogClient extends AuthApiBase {
|
|
|
463
463
|
}
|
|
464
464
|
|
|
465
465
|
/**
|
|
466
|
-
* @param body (optional)
|
|
466
|
+
* @param body (optional)
|
|
467
467
|
* @return Success
|
|
468
468
|
*/
|
|
469
469
|
getChangedEntities(body?: ChangedEntitiesRequest | undefined): Promise<ChangedEntitiesResponse> {
|
|
@@ -507,7 +507,7 @@ export class ChangeLogClient extends AuthApiBase {
|
|
|
507
507
|
}
|
|
508
508
|
|
|
509
509
|
/**
|
|
510
|
-
* @param body (optional)
|
|
510
|
+
* @param body (optional)
|
|
511
511
|
* @return Success
|
|
512
512
|
*/
|
|
513
513
|
resetChangedEntities(body?: string[] | undefined): Promise<void> {
|
|
@@ -555,7 +555,7 @@ export class ChangeLogClient extends AuthApiBase {
|
|
|
555
555
|
}
|
|
556
556
|
|
|
557
557
|
/**
|
|
558
|
-
* @param body (optional)
|
|
558
|
+
* @param body (optional)
|
|
559
559
|
* @return Success
|
|
560
560
|
*/
|
|
561
561
|
searchChanges(body?: ChangeLogSearchCriteria | undefined): Promise<ChangeLogSearchResult> {
|
|
@@ -607,8 +607,8 @@ export class ChangeLogClient extends AuthApiBase {
|
|
|
607
607
|
}
|
|
608
608
|
|
|
609
609
|
/**
|
|
610
|
-
* @param start (optional)
|
|
611
|
-
* @param end (optional)
|
|
610
|
+
* @param start (optional)
|
|
611
|
+
* @param end (optional)
|
|
612
612
|
* @return Success
|
|
613
613
|
*/
|
|
614
614
|
searchTypeChangeHistory(type: string, start?: Date | undefined, end?: Date | undefined): Promise<OperationLog[]> {
|
|
@@ -845,7 +845,7 @@ export class DynamicPropertiesClient extends AuthApiBase {
|
|
|
845
845
|
}
|
|
846
846
|
|
|
847
847
|
/**
|
|
848
|
-
* @param body (optional)
|
|
848
|
+
* @param body (optional)
|
|
849
849
|
* @return Success
|
|
850
850
|
*/
|
|
851
851
|
searchDynamicProperties(body?: DynamicPropertySearchCriteria | undefined): Promise<DynamicPropertySearchResult> {
|
|
@@ -897,7 +897,7 @@ export class DynamicPropertiesClient extends AuthApiBase {
|
|
|
897
897
|
}
|
|
898
898
|
|
|
899
899
|
/**
|
|
900
|
-
* @param body (optional)
|
|
900
|
+
* @param body (optional)
|
|
901
901
|
* @return Success
|
|
902
902
|
*/
|
|
903
903
|
createProperty(body?: DynamicProperty | undefined): Promise<DynamicProperty> {
|
|
@@ -949,7 +949,7 @@ export class DynamicPropertiesClient extends AuthApiBase {
|
|
|
949
949
|
}
|
|
950
950
|
|
|
951
951
|
/**
|
|
952
|
-
* @param body (optional)
|
|
952
|
+
* @param body (optional)
|
|
953
953
|
* @return Success
|
|
954
954
|
*/
|
|
955
955
|
updateProperty(body?: DynamicProperty | undefined): Promise<void> {
|
|
@@ -997,7 +997,7 @@ export class DynamicPropertiesClient extends AuthApiBase {
|
|
|
997
997
|
}
|
|
998
998
|
|
|
999
999
|
/**
|
|
1000
|
-
* @param propertyIds (optional)
|
|
1000
|
+
* @param propertyIds (optional)
|
|
1001
1001
|
* @return Success
|
|
1002
1002
|
*/
|
|
1003
1003
|
deleteProperty(propertyIds?: string[] | undefined): Promise<void> {
|
|
@@ -1096,7 +1096,7 @@ export class DynamicPropertiesClient extends AuthApiBase {
|
|
|
1096
1096
|
}
|
|
1097
1097
|
|
|
1098
1098
|
/**
|
|
1099
|
-
* @param body (optional)
|
|
1099
|
+
* @param body (optional)
|
|
1100
1100
|
* @return Success
|
|
1101
1101
|
*/
|
|
1102
1102
|
searchDictionaryItems(body?: DynamicPropertyDictionaryItemSearchCriteria | undefined): Promise<DynamicPropertyDictionaryItemSearchResult> {
|
|
@@ -1148,7 +1148,7 @@ export class DynamicPropertiesClient extends AuthApiBase {
|
|
|
1148
1148
|
}
|
|
1149
1149
|
|
|
1150
1150
|
/**
|
|
1151
|
-
* @param body (optional)
|
|
1151
|
+
* @param body (optional)
|
|
1152
1152
|
* @return Success
|
|
1153
1153
|
*/
|
|
1154
1154
|
saveDictionaryItems(body?: DynamicPropertyDictionaryItem[] | undefined): Promise<void> {
|
|
@@ -1196,7 +1196,7 @@ export class DynamicPropertiesClient extends AuthApiBase {
|
|
|
1196
1196
|
}
|
|
1197
1197
|
|
|
1198
1198
|
/**
|
|
1199
|
-
* @param ids (optional)
|
|
1199
|
+
* @param ids (optional)
|
|
1200
1200
|
* @return Success
|
|
1201
1201
|
*/
|
|
1202
1202
|
deleteDictionaryItem(ids?: string[] | undefined): Promise<void> {
|
|
@@ -1415,7 +1415,7 @@ export class ModulesClient extends AuthApiBase {
|
|
|
1415
1415
|
}
|
|
1416
1416
|
|
|
1417
1417
|
/**
|
|
1418
|
-
* @param body (optional)
|
|
1418
|
+
* @param body (optional)
|
|
1419
1419
|
* @return Success
|
|
1420
1420
|
*/
|
|
1421
1421
|
getDependingModules(body?: ModuleDescriptor[] | undefined): Promise<ModuleDescriptor[]> {
|
|
@@ -1474,7 +1474,7 @@ export class ModulesClient extends AuthApiBase {
|
|
|
1474
1474
|
}
|
|
1475
1475
|
|
|
1476
1476
|
/**
|
|
1477
|
-
* @param body (optional)
|
|
1477
|
+
* @param body (optional)
|
|
1478
1478
|
* @return Success
|
|
1479
1479
|
*/
|
|
1480
1480
|
getMissingDependencies(body?: ModuleDescriptor[] | undefined): Promise<ModuleDescriptor[]> {
|
|
@@ -1580,7 +1580,7 @@ export class ModulesClient extends AuthApiBase {
|
|
|
1580
1580
|
}
|
|
1581
1581
|
|
|
1582
1582
|
/**
|
|
1583
|
-
* @param body (optional)
|
|
1583
|
+
* @param body (optional)
|
|
1584
1584
|
* @return Success
|
|
1585
1585
|
*/
|
|
1586
1586
|
installModules(body?: ModuleDescriptor[] | undefined): Promise<ModulePushNotification> {
|
|
@@ -1632,7 +1632,7 @@ export class ModulesClient extends AuthApiBase {
|
|
|
1632
1632
|
}
|
|
1633
1633
|
|
|
1634
1634
|
/**
|
|
1635
|
-
* @param body (optional)
|
|
1635
|
+
* @param body (optional)
|
|
1636
1636
|
* @return Success
|
|
1637
1637
|
*/
|
|
1638
1638
|
uninstallModule(body?: ModuleDescriptor[] | undefined): Promise<ModulePushNotification> {
|
|
@@ -1833,7 +1833,7 @@ export class OAuthAppsClient extends AuthApiBase {
|
|
|
1833
1833
|
}
|
|
1834
1834
|
|
|
1835
1835
|
/**
|
|
1836
|
-
* @param body (optional)
|
|
1836
|
+
* @param body (optional)
|
|
1837
1837
|
* @return Success
|
|
1838
1838
|
*/
|
|
1839
1839
|
save(body?: OpenIddictApplicationDescriptor | undefined): Promise<OpenIddictApplicationDescriptor> {
|
|
@@ -1885,7 +1885,7 @@ export class OAuthAppsClient extends AuthApiBase {
|
|
|
1885
1885
|
}
|
|
1886
1886
|
|
|
1887
1887
|
/**
|
|
1888
|
-
* @param clientIds (optional)
|
|
1888
|
+
* @param clientIds (optional)
|
|
1889
1889
|
* @return Success
|
|
1890
1890
|
*/
|
|
1891
1891
|
delete(clientIds?: string[] | undefined): Promise<void> {
|
|
@@ -1933,7 +1933,7 @@ export class OAuthAppsClient extends AuthApiBase {
|
|
|
1933
1933
|
}
|
|
1934
1934
|
|
|
1935
1935
|
/**
|
|
1936
|
-
* @param body (optional)
|
|
1936
|
+
* @param body (optional)
|
|
1937
1937
|
* @return Success
|
|
1938
1938
|
*/
|
|
1939
1939
|
search(body?: OAuthAppSearchCriteria | undefined): Promise<OAuthAppSearchResult> {
|
|
@@ -1997,7 +1997,7 @@ export class PushNotificationClient extends AuthApiBase {
|
|
|
1997
1997
|
}
|
|
1998
1998
|
|
|
1999
1999
|
/**
|
|
2000
|
-
* @param body (optional)
|
|
2000
|
+
* @param body (optional)
|
|
2001
2001
|
* @return Success
|
|
2002
2002
|
*/
|
|
2003
2003
|
searchPushNotification(body?: PushNotificationSearchCriteria | undefined): Promise<PushNotificationSearchResult> {
|
|
@@ -2108,7 +2108,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
2108
2108
|
}
|
|
2109
2109
|
|
|
2110
2110
|
/**
|
|
2111
|
-
* @param body (optional)
|
|
2111
|
+
* @param body (optional)
|
|
2112
2112
|
* @return Success
|
|
2113
2113
|
*/
|
|
2114
2114
|
login(body?: LoginRequest | undefined): Promise<SignInResult> {
|
|
@@ -2350,7 +2350,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
2350
2350
|
}
|
|
2351
2351
|
|
|
2352
2352
|
/**
|
|
2353
|
-
* @param body (optional)
|
|
2353
|
+
* @param body (optional)
|
|
2354
2354
|
* @return Success
|
|
2355
2355
|
*/
|
|
2356
2356
|
searchRoles(body?: RoleSearchCriteria | undefined): Promise<RoleSearchResult> {
|
|
@@ -2452,7 +2452,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
2452
2452
|
}
|
|
2453
2453
|
|
|
2454
2454
|
/**
|
|
2455
|
-
* @param ids (optional)
|
|
2455
|
+
* @param ids (optional)
|
|
2456
2456
|
* @return Success
|
|
2457
2457
|
*/
|
|
2458
2458
|
deleteRoles(ids?: string[] | undefined): Promise<void> {
|
|
@@ -2500,7 +2500,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
2500
2500
|
}
|
|
2501
2501
|
|
|
2502
2502
|
/**
|
|
2503
|
-
* @param body (optional)
|
|
2503
|
+
* @param body (optional)
|
|
2504
2504
|
* @return Success
|
|
2505
2505
|
*/
|
|
2506
2506
|
updateRole(body?: Role | undefined): Promise<SecurityResult> {
|
|
@@ -2552,7 +2552,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
2552
2552
|
}
|
|
2553
2553
|
|
|
2554
2554
|
/**
|
|
2555
|
-
* @param body (optional)
|
|
2555
|
+
* @param body (optional)
|
|
2556
2556
|
* @return Success
|
|
2557
2557
|
*/
|
|
2558
2558
|
searchUsers(body?: UserSearchCriteria | undefined): Promise<UserSearchResult> {
|
|
@@ -2807,7 +2807,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
2807
2807
|
}
|
|
2808
2808
|
|
|
2809
2809
|
/**
|
|
2810
|
-
* @param body (optional)
|
|
2810
|
+
* @param body (optional)
|
|
2811
2811
|
* @return Success
|
|
2812
2812
|
*/
|
|
2813
2813
|
create(body?: ApplicationUser | undefined): Promise<SecurityResult> {
|
|
@@ -2859,7 +2859,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
2859
2859
|
}
|
|
2860
2860
|
|
|
2861
2861
|
/**
|
|
2862
|
-
* @param body (optional)
|
|
2862
|
+
* @param body (optional)
|
|
2863
2863
|
* @return Success
|
|
2864
2864
|
*/
|
|
2865
2865
|
changeCurrentUserPassword(body?: ChangePasswordRequest | undefined): Promise<SecurityResult> {
|
|
@@ -2915,7 +2915,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
2915
2915
|
}
|
|
2916
2916
|
|
|
2917
2917
|
/**
|
|
2918
|
-
* @param body (optional)
|
|
2918
|
+
* @param body (optional)
|
|
2919
2919
|
* @return Success
|
|
2920
2920
|
*/
|
|
2921
2921
|
changePassword(userName: string, body?: ChangePasswordRequest | undefined): Promise<SecurityResult> {
|
|
@@ -2974,7 +2974,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
2974
2974
|
}
|
|
2975
2975
|
|
|
2976
2976
|
/**
|
|
2977
|
-
* @param body (optional)
|
|
2977
|
+
* @param body (optional)
|
|
2978
2978
|
* @return Success
|
|
2979
2979
|
*/
|
|
2980
2980
|
resetPassword(userName: string, body?: ResetPasswordConfirmRequest | undefined): Promise<SecurityResult> {
|
|
@@ -3029,7 +3029,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
3029
3029
|
}
|
|
3030
3030
|
|
|
3031
3031
|
/**
|
|
3032
|
-
* @param body (optional)
|
|
3032
|
+
* @param body (optional)
|
|
3033
3033
|
* @return Success
|
|
3034
3034
|
*/
|
|
3035
3035
|
resetPasswordByToken(userId: string, body?: ResetPasswordConfirmRequest | undefined): Promise<SecurityResult> {
|
|
@@ -3076,7 +3076,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
3076
3076
|
}
|
|
3077
3077
|
|
|
3078
3078
|
/**
|
|
3079
|
-
* @param body (optional)
|
|
3079
|
+
* @param body (optional)
|
|
3080
3080
|
* @return Success
|
|
3081
3081
|
*/
|
|
3082
3082
|
validatePasswordResetToken(userId: string, body?: ValidatePasswordResetTokenRequest | undefined): Promise<boolean> {
|
|
@@ -3112,7 +3112,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
3112
3112
|
let result200: any = null;
|
|
3113
3113
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3114
3114
|
result200 = resultData200 !== undefined ? resultData200 : <any>null;
|
|
3115
|
-
|
|
3115
|
+
|
|
3116
3116
|
return result200;
|
|
3117
3117
|
});
|
|
3118
3118
|
} else if (status !== 200 && status !== 204) {
|
|
@@ -3162,7 +3162,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
3162
3162
|
}
|
|
3163
3163
|
|
|
3164
3164
|
/**
|
|
3165
|
-
* @param body (optional)
|
|
3165
|
+
* @param body (optional)
|
|
3166
3166
|
* @return Success
|
|
3167
3167
|
*/
|
|
3168
3168
|
validatePassword(body?: string | undefined): Promise<IdentityResult> {
|
|
@@ -3206,7 +3206,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
3206
3206
|
}
|
|
3207
3207
|
|
|
3208
3208
|
/**
|
|
3209
|
-
* @param body (optional)
|
|
3209
|
+
* @param body (optional)
|
|
3210
3210
|
* @return Success
|
|
3211
3211
|
*/
|
|
3212
3212
|
validateUserPassword(body?: ChangePasswordRequest | undefined): Promise<IdentityResult> {
|
|
@@ -3258,7 +3258,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
3258
3258
|
}
|
|
3259
3259
|
|
|
3260
3260
|
/**
|
|
3261
|
-
* @param body (optional)
|
|
3261
|
+
* @param body (optional)
|
|
3262
3262
|
* @return Success
|
|
3263
3263
|
*/
|
|
3264
3264
|
update(body?: ApplicationUser | undefined): Promise<SecurityResult> {
|
|
@@ -3310,7 +3310,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
3310
3310
|
}
|
|
3311
3311
|
|
|
3312
3312
|
/**
|
|
3313
|
-
* @param names (optional)
|
|
3313
|
+
* @param names (optional)
|
|
3314
3314
|
* @return Success
|
|
3315
3315
|
*/
|
|
3316
3316
|
delete(names?: string[] | undefined): Promise<void> {
|
|
@@ -3612,7 +3612,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
3612
3612
|
}
|
|
3613
3613
|
|
|
3614
3614
|
/**
|
|
3615
|
-
* @param body (optional)
|
|
3615
|
+
* @param body (optional)
|
|
3616
3616
|
* @return Success
|
|
3617
3617
|
*/
|
|
3618
3618
|
saveUserApiKey(body?: UserApiKey | undefined): Promise<UserApiKey[]> {
|
|
@@ -3671,7 +3671,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
3671
3671
|
}
|
|
3672
3672
|
|
|
3673
3673
|
/**
|
|
3674
|
-
* @param body (optional)
|
|
3674
|
+
* @param body (optional)
|
|
3675
3675
|
* @return Success
|
|
3676
3676
|
*/
|
|
3677
3677
|
updateUserApiKey(body?: UserApiKey | undefined): Promise<UserApiKey[]> {
|
|
@@ -3730,7 +3730,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
3730
3730
|
}
|
|
3731
3731
|
|
|
3732
3732
|
/**
|
|
3733
|
-
* @param ids (optional)
|
|
3733
|
+
* @param ids (optional)
|
|
3734
3734
|
* @return Success
|
|
3735
3735
|
*/
|
|
3736
3736
|
deleteUserApiKeys(ids?: string[] | undefined): Promise<UserApiKey[]> {
|
|
@@ -3870,7 +3870,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
3870
3870
|
}
|
|
3871
3871
|
|
|
3872
3872
|
/**
|
|
3873
|
-
* @param body (optional)
|
|
3873
|
+
* @param body (optional)
|
|
3874
3874
|
* @return Success
|
|
3875
3875
|
*/
|
|
3876
3876
|
confirmEmail(userId: string, body?: ConfirmEmailRequest | undefined): Promise<SecurityResult> {
|
|
@@ -3925,7 +3925,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
3925
3925
|
}
|
|
3926
3926
|
|
|
3927
3927
|
/**
|
|
3928
|
-
* @param newEmail (optional)
|
|
3928
|
+
* @param newEmail (optional)
|
|
3929
3929
|
* @return Success
|
|
3930
3930
|
*/
|
|
3931
3931
|
generateChangeEmailToken(userId: string, newEmail?: string | undefined): Promise<string> {
|
|
@@ -3961,7 +3961,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
3961
3961
|
let result200: any = null;
|
|
3962
3962
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
3963
3963
|
result200 = resultData200 !== undefined ? resultData200 : <any>null;
|
|
3964
|
-
|
|
3964
|
+
|
|
3965
3965
|
return result200;
|
|
3966
3966
|
});
|
|
3967
3967
|
} else if (status === 401) {
|
|
@@ -4012,7 +4012,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
4012
4012
|
let result200: any = null;
|
|
4013
4013
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4014
4014
|
result200 = resultData200 !== undefined ? resultData200 : <any>null;
|
|
4015
|
-
|
|
4015
|
+
|
|
4016
4016
|
return result200;
|
|
4017
4017
|
});
|
|
4018
4018
|
} else if (status === 401) {
|
|
@@ -4063,7 +4063,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
4063
4063
|
let result200: any = null;
|
|
4064
4064
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4065
4065
|
result200 = resultData200 !== undefined ? resultData200 : <any>null;
|
|
4066
|
-
|
|
4066
|
+
|
|
4067
4067
|
return result200;
|
|
4068
4068
|
});
|
|
4069
4069
|
} else if (status === 401) {
|
|
@@ -4083,8 +4083,8 @@ export class SecurityClient extends AuthApiBase {
|
|
|
4083
4083
|
}
|
|
4084
4084
|
|
|
4085
4085
|
/**
|
|
4086
|
-
* @param tokenProvider (optional)
|
|
4087
|
-
* @param purpose (optional)
|
|
4086
|
+
* @param tokenProvider (optional)
|
|
4087
|
+
* @param purpose (optional)
|
|
4088
4088
|
* @return Success
|
|
4089
4089
|
*/
|
|
4090
4090
|
generateUserToken(userId: string, tokenProvider?: string | undefined, purpose?: string | undefined): Promise<string> {
|
|
@@ -4124,7 +4124,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
4124
4124
|
let result200: any = null;
|
|
4125
4125
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4126
4126
|
result200 = resultData200 !== undefined ? resultData200 : <any>null;
|
|
4127
|
-
|
|
4127
|
+
|
|
4128
4128
|
return result200;
|
|
4129
4129
|
});
|
|
4130
4130
|
} else if (status === 401) {
|
|
@@ -4144,7 +4144,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
4144
4144
|
}
|
|
4145
4145
|
|
|
4146
4146
|
/**
|
|
4147
|
-
* @param body (optional)
|
|
4147
|
+
* @param body (optional)
|
|
4148
4148
|
* @return Success
|
|
4149
4149
|
*/
|
|
4150
4150
|
verifyUserToken(userId: string, body?: VerifyTokenRequest | undefined): Promise<boolean> {
|
|
@@ -4180,7 +4180,7 @@ export class SecurityClient extends AuthApiBase {
|
|
|
4180
4180
|
let result200: any = null;
|
|
4181
4181
|
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4182
4182
|
result200 = resultData200 !== undefined ? resultData200 : <any>null;
|
|
4183
|
-
|
|
4183
|
+
|
|
4184
4184
|
return result200;
|
|
4185
4185
|
});
|
|
4186
4186
|
} else if (status === 401) {
|
|
@@ -4259,7 +4259,7 @@ export class SettingClient extends AuthApiBase {
|
|
|
4259
4259
|
}
|
|
4260
4260
|
|
|
4261
4261
|
/**
|
|
4262
|
-
* @param body (optional)
|
|
4262
|
+
* @param body (optional)
|
|
4263
4263
|
* @return Success
|
|
4264
4264
|
*/
|
|
4265
4265
|
update(body?: ObjectSettingEntry[] | undefined): Promise<void> {
|
|
@@ -8866,4 +8866,4 @@ function throwException(message: string, status: number, response: string, heade
|
|
|
8866
8866
|
throw new ApiException(message, status, response, headers, null);
|
|
8867
8867
|
}
|
|
8868
8868
|
|
|
8869
|
-
/* eslint-disable */
|
|
8869
|
+
/* eslint-disable */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useUser } from "./../useUser";
|
|
2
|
-
import { computed, Ref, ref } from "vue";
|
|
2
|
+
import { computed, inject, Ref, ref } from "vue";
|
|
3
3
|
import { SettingClient } from "./../../api";
|
|
4
4
|
|
|
5
5
|
interface IUISetting {
|
|
@@ -10,7 +10,7 @@ interface IUISetting {
|
|
|
10
10
|
|
|
11
11
|
interface IUseSettings {
|
|
12
12
|
readonly uiSettings: Ref<IUISetting>;
|
|
13
|
-
getUiCustomizationSettings: (
|
|
13
|
+
getUiCustomizationSettings: () => void;
|
|
14
14
|
applySettings: (args: { logo?: string; title?: string }) => void;
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -20,6 +20,7 @@ const uiSettings = ref<IUISetting>({
|
|
|
20
20
|
});
|
|
21
21
|
export function useSettings(): IUseSettings {
|
|
22
22
|
const { getAccessToken } = useUser();
|
|
23
|
+
const base = inject("platformUrl");
|
|
23
24
|
|
|
24
25
|
async function getApiClient() {
|
|
25
26
|
const client = new SettingClient();
|
|
@@ -27,7 +28,7 @@ export function useSettings(): IUseSettings {
|
|
|
27
28
|
return client;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
|
-
async function getUiCustomizationSettings(
|
|
31
|
+
async function getUiCustomizationSettings() {
|
|
31
32
|
const client = await getApiClient();
|
|
32
33
|
|
|
33
34
|
try {
|
|
@@ -60,14 +60,6 @@ interface IUseUser {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
export function useUser(): IUseUser {
|
|
63
|
-
// const instance = getCurrentInstance();
|
|
64
|
-
// if (instance) {
|
|
65
|
-
// onUnmounted(() => {
|
|
66
|
-
// console.error("UNREGISTET");
|
|
67
|
-
// unregister();
|
|
68
|
-
// });
|
|
69
|
-
// }
|
|
70
|
-
|
|
71
63
|
async function validateToken(userId: string, token: string): Promise<boolean> {
|
|
72
64
|
let result = false;
|
|
73
65
|
try {
|
|
@@ -271,9 +263,8 @@ export function useUser(): IUseUser {
|
|
|
271
263
|
async function getExternalLoginProviders(): Promise<LoginProviders[]> {
|
|
272
264
|
let result = null as LoginProviders[];
|
|
273
265
|
try {
|
|
274
|
-
const fetchResult = await fetch(
|
|
266
|
+
const fetchResult = await fetch("externalsignin/providers", {
|
|
275
267
|
method: "GET",
|
|
276
|
-
mode: "no-cors",
|
|
277
268
|
});
|
|
278
269
|
|
|
279
270
|
const response = await fetchResult.text();
|
|
@@ -292,7 +283,7 @@ export function useUser(): IUseUser {
|
|
|
292
283
|
async function externalSignIn(authenticationType?: string | undefined, returnUrl?: string | undefined) {
|
|
293
284
|
activeAuthenticationType.value = authenticationType;
|
|
294
285
|
try {
|
|
295
|
-
let url_ =
|
|
286
|
+
let url_ = "externalsignin?";
|
|
296
287
|
if (authenticationType === null) throw new Error("The parameter 'authenticationType' cannot be null.");
|
|
297
288
|
else {
|
|
298
289
|
if (authenticationType !== undefined)
|
|
@@ -314,7 +305,7 @@ export function useUser(): IUseUser {
|
|
|
314
305
|
|
|
315
306
|
async function externalSignOut(authenticationType?: string | undefined): Promise<void> {
|
|
316
307
|
try {
|
|
317
|
-
let url_ =
|
|
308
|
+
let url_ = "externalsignin/signout?";
|
|
318
309
|
if (authenticationType === null) throw new Error("The parameter 'authenticationType' cannot be null.");
|
|
319
310
|
else {
|
|
320
311
|
if (authenticationType !== undefined)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/composables/useSettings/index.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/composables/useSettings/index.ts"],"names":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