aquasis-fe-components 2.1.0 → 2.3.0

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.
@@ -1,5 +1,6 @@
1
1
  import { FC } from 'react';
2
2
  export interface LanguageSwitcherProps {
3
3
  onlyFlag?: boolean;
4
+ gauApiUrl: string;
4
5
  }
5
6
  export declare const LanguageSwitcher: FC<LanguageSwitcherProps>;
@@ -5,5 +5,6 @@ export interface ReleaseNotesSlidesProps {
5
5
  idLanguage: number;
6
6
  currentSlide: ActiveSlide;
7
7
  changeSlide: CarouselProps["beforeChange"];
8
+ gauApiUrl: string;
8
9
  }
9
10
  export declare const ReleaseNotesSlides: FC<ReleaseNotesSlidesProps>;
@@ -7,5 +7,6 @@ export interface CreateReleaseNoteProps {
7
7
  beforeOpenModal?: () => void;
8
8
  beforeCloseModal?: () => void;
9
9
  afterSubmit?: () => void;
10
+ gauApiUrl: string;
10
11
  }
11
12
  export declare const CreateReleaseNote: FC<CreateReleaseNoteProps>;
@@ -6,6 +6,7 @@ import { CreateReleaseNoteProps } from './CreateReleaseNote';
6
6
  */
7
7
  export interface ReleaseNoteProps extends CreateReleaseNoteProps {
8
8
  showAddBtn?: boolean;
9
+ gauApiUrl: string;
9
10
  }
10
11
  /**
11
12
  * @deprecated ReleaseNote will be removed in the next major version.
@@ -5,6 +5,8 @@ export interface UserModalProps {
5
5
  user: IUser;
6
6
  /** Current application id from the host app (e.g. cookie); used to resolve the user's role for this app */
7
7
  appId: string;
8
+ /** Base URL for the GA / auth HTTP API (same value used for roles and maintain user). */
9
+ gauApiUrl: string;
8
10
  isLoading?: boolean;
9
11
  onCancel: () => void;
10
12
  }
@@ -1,5 +1,5 @@
1
1
  import { IApp, ILanguage, IRole } from '../types/app';
2
2
  import { AxiosError } from 'axios';
3
- export declare const useGetApps: () => import('@tanstack/react-query').UseQueryResult<IApp[], AxiosError<unknown, any>>;
4
- export declare const useGetRoles: () => import('@tanstack/react-query').UseQueryResult<IRole[], AxiosError<unknown, any>>;
5
- export declare const useGetLanguages: () => import('@tanstack/react-query').UseQueryResult<ILanguage[], AxiosError<unknown, any>>;
3
+ export declare const useGetApps: (gauApiUrl: string) => import('@tanstack/react-query').UseQueryResult<IApp[], AxiosError<unknown, any>>;
4
+ export declare const useGetRoles: (gauApiUrl: string) => import('@tanstack/react-query').UseQueryResult<IRole[], AxiosError<unknown, any>>;
5
+ export declare const useGetLanguages: (gauApiUrl: string) => import('@tanstack/react-query').UseQueryResult<ILanguage[], AxiosError<unknown, any>>;
@@ -1,4 +1,4 @@
1
1
  import { IApp, ILanguage, IRole } from '../types/app';
2
- export declare const getApps: () => Promise<IApp[]>;
3
- export declare const getLanguages: () => Promise<ILanguage[]>;
4
- export declare const getRoles: () => Promise<IRole[]>;
2
+ export declare const getApps: (gauApiUrl: string) => Promise<IApp[]>;
3
+ export declare const getLanguages: (gauApiUrl: string) => Promise<ILanguage[]>;
4
+ export declare const getRoles: (gauApiUrl: string) => Promise<IRole[]>;
@@ -1,4 +1,4 @@
1
1
  import { GetReleaseNotePayload, IReleaseNote, ReleaseNotesPayload } from '../types/releaseNotes';
2
- export declare const getReleases: (payload: GetReleaseNotePayload) => Promise<IReleaseNote[]>;
3
- export declare const maintainReleaseNote: (payload: ReleaseNotesPayload) => Promise<any>;
4
- export declare const applyDoNotShowAgain: (idRelease: number, userId: string) => Promise<any>;
2
+ export declare const getReleases: (gauApiUrl: string, payload: GetReleaseNotePayload) => Promise<IReleaseNote[]>;
3
+ export declare const maintainReleaseNote: (gauApiUrl: string, payload: ReleaseNotesPayload) => Promise<any>;
4
+ export declare const applyDoNotShowAgain: (gauApiUrl: string, idRelease: number, userId: string) => Promise<any>;
@@ -1,2 +1,2 @@
1
1
  import { UserPayload } from '../types/user';
2
- export declare const maintainUser: (payload: UserPayload) => Promise<import('axios').AxiosResponse<any, any, {}>>;
2
+ export declare const maintainUser: (gauApiUrl: string, payload: UserPayload) => Promise<import('axios').AxiosResponse<any, any, {}>>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aquasis-fe-components",
3
3
  "private": false,
4
- "version": "2.1.0",
4
+ "version": "2.3.0",
5
5
  "type": "module",
6
6
  "license": "ISC",
7
7
  "author": "Ewerton Souza",