@smart-factor/gem-ui-components 0.0.107 → 0.0.108

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.
@@ -1652,31 +1652,31 @@ export interface AppUser {
1652
1652
  id?: number;
1653
1653
  login: string;
1654
1654
  password?: string;
1655
- firstName?: string;
1656
- lastName?: string;
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
- passwordHistory?: string;
1664
- passwordChangeUrl?: string;
1663
+ password_history?: string;
1664
+ password_change_url?: string;
1665
1665
  /** @format date-time */
1666
- passwordChangeExpiration?: string;
1666
+ password_change_expiration?: string;
1667
1667
  /** @format date-time */
1668
- passwordLastChange?: string;
1669
- userRegions?: UserRegion[];
1670
- userMod?: string;
1668
+ password_last_change?: string;
1669
+ user_regions?: UserRegion[];
1670
+ user_mod?: string;
1671
1671
  /** @format date-time */
1672
- dateMod?: string;
1672
+ date_mod?: string;
1673
1673
  consent?: boolean;
1674
1674
  /** @format date-time */
1675
- consentExpirationDate?: string;
1676
- substitutedUser?: AppUser;
1677
- controllingInspector?: boolean;
1678
- rolesList?: string[];
1679
- userGroups?: number[];
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
- userAccount?: AppUser;
1689
- passwordExpired?: boolean;
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;