@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.
- package/dist/bundle.js +1 -1
- package/dist/types/hooks/Users/get/useExpUsersAnswersQuery.hook.d.ts +2 -1
- package/dist/types/interfaces/EvaluationCycle.d.ts +2 -1
- package/package.json +1 -1
- package/src/hooks/Users/get/useExpUsersAnswersQuery.hook.ts +4 -2
- package/src/interfaces/EvaluationCycle.ts +2 -1
|
@@ -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>;
|
package/package.json
CHANGED
|
@@ -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,
|