@smart-factor/gem-ui-components 0.0.107 → 0.0.109
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/dist/{Drawer-Q3D0v6B2.js → Drawer-CR1frcWF.js} +1 -1
- package/dist/SignEditor.js +15109 -16664
- package/dist/{Stack-CdVfRhco.js → Stack-CP81SpOh.js} +21 -21
- package/dist/{Tree-xeWEfulP.js → Tree-6R0L5vqg.js} +190 -195
- package/dist/components/Drawer/index.js +1 -1
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +5 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.stories.d.ts +6 -0
- package/dist/components/ErrorBoundary/ErrorBoundaryFallback.d.ts +6 -0
- package/dist/components/ErrorBoundary/ErrorBoundaryFallback.styles.d.ts +1 -0
- package/dist/components/LoginModal/LoginModal.d.ts +11 -0
- package/dist/components/LoginModal/LoginModal.stories.d.ts +6 -0
- package/dist/components/Tree/index.js +1 -1
- package/dist/hocs/withQueryClientProvider.d.ts +17 -0
- package/dist/licenses.txt +82 -49
- package/dist/main.d.ts +2 -0
- package/dist/main.js +1708 -1580
- package/dist/services/generated/api.d.ts +16 -16
- package/dist/services/mutations/auth/useLoginWithPassword.d.ts +10 -0
- package/dist/{theme-Bn1sHCu0.js → theme-B10ryfSl.js} +31134 -28982
- package/dist/{warning-VmSVedfJ.js → warning-CJpi1iFg.js} +38 -31
- package/package.json +2 -1
|
@@ -1652,31 +1652,31 @@ export interface AppUser {
|
|
|
1652
1652
|
id?: number;
|
|
1653
1653
|
login: string;
|
|
1654
1654
|
password?: string;
|
|
1655
|
-
|
|
1656
|
-
|
|
1655
|
+
first_name?: string;
|
|
1656
|
+
last_name?: string;
|
|
1657
1657
|
description?: string;
|
|
1658
1658
|
email: string;
|
|
1659
1659
|
phone?: string;
|
|
1660
1660
|
status?: 'REQ_CONFIRM' | 'ACTIVE' | 'BLOCKED';
|
|
1661
1661
|
source?: 'GEM' | 'LDAP';
|
|
1662
1662
|
addres?: string;
|
|
1663
|
-
|
|
1664
|
-
|
|
1663
|
+
password_history?: string;
|
|
1664
|
+
password_change_url?: string;
|
|
1665
1665
|
/** @format date-time */
|
|
1666
|
-
|
|
1666
|
+
password_change_expiration?: string;
|
|
1667
1667
|
/** @format date-time */
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1668
|
+
password_last_change?: string;
|
|
1669
|
+
user_regions?: UserRegion[];
|
|
1670
|
+
user_mod?: string;
|
|
1671
1671
|
/** @format date-time */
|
|
1672
|
-
|
|
1672
|
+
date_mod?: string;
|
|
1673
1673
|
consent?: boolean;
|
|
1674
1674
|
/** @format date-time */
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1675
|
+
consent_expiration_date?: string;
|
|
1676
|
+
substituted_user?: AppUser;
|
|
1677
|
+
controlling_inspector?: boolean;
|
|
1678
|
+
roles_list?: string[];
|
|
1679
|
+
user_groups?: number[];
|
|
1680
1680
|
}
|
|
1681
1681
|
export interface UserRegion {
|
|
1682
1682
|
uuid?: string;
|
|
@@ -1685,8 +1685,8 @@ export interface UserRegion {
|
|
|
1685
1685
|
export interface AuthResult {
|
|
1686
1686
|
result?: string;
|
|
1687
1687
|
token?: string;
|
|
1688
|
-
|
|
1689
|
-
|
|
1688
|
+
user_account?: AppUser;
|
|
1689
|
+
password_expired?: boolean;
|
|
1690
1690
|
}
|
|
1691
1691
|
export interface FieldError {
|
|
1692
1692
|
fieldName?: string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LoginWithPasswordParams } from '../../generated/api';
|
|
2
|
+
import { MutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
3
|
+
type Variables = LoginWithPasswordParams;
|
|
4
|
+
type LoginResult = {
|
|
5
|
+
login: string;
|
|
6
|
+
token: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const loginWithPassword: (params: Variables) => Promise<LoginResult>;
|
|
9
|
+
declare const useLoginWithPassword: (mutationOptions?: MutationOptions<LoginResult, Error, Variables, MutationOptions>) => UseMutationResult<LoginResult, Error, Variables, MutationOptions>;
|
|
10
|
+
export default useLoginWithPassword;
|