@omniumretail/shared-resources 0.1.0 → 0.1.2

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.
@@ -4,5 +4,6 @@ export interface ExpUsersAnswersProps extends UseQueryOptions<ResponseList<"User
4
4
  tags?: string;
5
5
  page?: number;
6
6
  records?: number;
7
+ queryUser?: string;
7
8
  }
8
- export declare const useExpUsersAnswersQueryHook: ({ tags, page, records }: ExpUsersAnswersProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"Users", ExpUsersAnswers>, unknown>;
9
+ export declare const useExpUsersAnswersQueryHook: ({ tags, page, records, queryUser }: ExpUsersAnswersProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"Users", ExpUsersAnswers>, unknown>;
@@ -1,7 +1,8 @@
1
1
  export interface EvaluationCycle {
2
2
  Id: string;
3
3
  UserId: string;
4
- Type: number;
4
+ Type: string;
5
+ StringType: string;
5
6
  Name: string;
6
7
  Year: number;
7
8
  DateInterval: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniumretail/shared-resources",
3
- "version": "0.1.00",
3
+ "version": "0.1.02",
4
4
  "private": false,
5
5
  "description": "Shared Components and services or utils to the frontend versions",
6
6
  "main": "dist/bundle.js",
@@ -6,15 +6,17 @@ export interface ExpUsersAnswersProps extends UseQueryOptions<ResponseList<"User
6
6
  tags?: string;
7
7
  page?: number;
8
8
  records?: number;
9
+ queryUser?: string
9
10
  }
10
11
 
11
- export const useExpUsersAnswersQueryHook = ({ tags, page, records }: ExpUsersAnswersProps) => {
12
+ export const useExpUsersAnswersQueryHook = ({ tags, page, records, queryUser }: ExpUsersAnswersProps) => {
12
13
  return useQuery(
13
- ['EXP_USERS_ANSWERS_QUERY', tags, page, records],
14
+ ['EXP_USERS_ANSWERS_QUERY', tags, page, records, queryUser],
14
15
  () => getAuth0<ResponseList<"Users", ExpUsersAnswers>>('/APE/Analytics/EvaluationCycle/UsersExperimental', {
15
16
  pPage: page || 1,
16
17
  pRecords: records || 50,
17
18
  pTerms: tags,
19
+ pQueryUser: queryUser
18
20
  }),
19
21
  {
20
22
  keepPreviousData: true,
@@ -2,7 +2,8 @@
2
2
  export interface EvaluationCycle {
3
3
  Id: string;
4
4
  UserId: string;
5
- Type: number;
5
+ Type: string;
6
+ StringType: string;
6
7
  Name: string;
7
8
  Year: number;
8
9
  DateInterval: { StartDate: number; EndDate: number };