@omniumretail/shared-resources 0.0.83 → 0.0.85
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 +365 -310
- package/dist/types/hooks/{useAnalyticsEvaluationCyclesQuery.hook.d.ts → Analytics/get/useAnalyticsEvaluationCyclesQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{useAnalyticsQuestionsQuery.hook.d.ts → Analytics/get/useAnalyticsQuestionsQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{useAnalyticsSideBarQuery.hook.d.ts → Analytics/get/useAnalyticsSideBarQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{useAnalyticsUserIdQuery.hook.d.ts → Analytics/get/useAnalyticsUserIdQuery.hook.d.ts} +4 -2
- package/dist/types/hooks/{useAnalyticsUserQuery.hook.d.ts → Analytics/get/useAnalyticsUserQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{useAnswerIdQuery.hook.d.ts → Answer/get/useAnswerIdQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{useAnswersUserSupervisorQuery.hook.d.ts → Answer/get/useAnswersUserSupervisorQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{useAnswerMutateQuery.hook.d.ts → Answer/mutate/useAnswerMutateQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/AsvProduct/get/getProductsByRefQuery.hook.d.ts +6 -0
- package/dist/types/hooks/AsvProduct/get/getProductsByStoreQuery.hook.d.ts +7 -0
- package/dist/types/hooks/{useEvaluationCycleIdQuery.hook.d.ts → EvaluationCycle/get/useEvaluationCycleIdQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{useEvaluationCycleQuery.hook.d.ts → EvaluationCycle/get/useEvaluationCycleQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{useEvaluationCycleMutateQuery.hook.d.ts → EvaluationCycle/mutate/useEvaluationCycleMutateQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{activateEvaluationCycleQuery.hook.d.ts → EvaluationCycle/others/activateEvaluationCycleQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{cancelEvaluationCycleQuery.hook.d.ts → EvaluationCycle/others/cancelEvaluationCycleQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{deleteEvaluationCycleQuery.hook.d.ts → EvaluationCycle/others/deleteEvaluationCycleQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{finishEvaluationCycleQuery.hook.d.ts → EvaluationCycle/others/finishEvaluationCycleQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{useApplicationDataQuery.hook.d.ts → Others/useApplicationDataQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{useContractStatesQuery.hook.d.ts → Others/useContractStatesQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{useCountriesQuery.hook.d.ts → Others/useCountriesQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{useCustomersQuery.hook.d.ts → Others/useCustomersQuery.hook.d.ts} +5 -1
- package/dist/types/hooks/{useJobTitlesQuery.hook.d.ts → Others/useJobTitlesQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{useTermNotificationQuery.hook.d.ts → Others/useTermNotificationQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{useProductHierarchies.hook.d.ts → Product/get/useProductHierarchies.hook.d.ts} +1 -1
- package/dist/types/hooks/{useProductsQuery.hook.d.ts → Product/get/useProductsQuery.hook.d.ts} +5 -1
- package/dist/types/hooks/{useQuestionnaireIdQuery.hook.d.ts → Questionnaire/get/useQuestionnaireIdQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{useQuestionnaireQuery.hook.d.ts → Questionnaire/get/useQuestionnaireQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{useQuestionnaireMutateQuery.hook.d.ts → Questionnaire/mutate/useQuestionnaireMutateQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{activateQuestionnaireQuery.hook.d.ts → Questionnaire/others/activateQuestionnaireQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{cancelQuestionnaireQuery.hook.d.ts → Questionnaire/others/cancelQuestionnaireQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{deleteQuestionnaireQuery.hook.d.ts → Questionnaire/others/deleteQuestionnaireQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{duplicateQuestionnaireQuery.hook.d.ts → Questionnaire/others/duplicateQuestionnaireQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{finishQuestionnaireQuery.hook.d.ts → Questionnaire/others/finishQuestionnaireQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{useAllRolesQuery.hook.d.ts → Roles/get/useAllRolesQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{useAllStoreQuery.hook.d.ts → Roles/get/useAllStoreQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{useStoreQuery.d.ts → Store/useStoreQuery.d.ts} +1 -1
- package/dist/types/hooks/{useExpUsersAnswersQuery.hook.d.ts → Users/get/useExpUsersAnswersQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{useSingleUserIdQuery.hook.d.ts → Users/get/useSingleUserIdQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{useUserIdQuery.hook.d.ts → Users/get/useUserIdQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{useUserListQuery.hook.d.ts → Users/get/useUserListQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{useUserQuery.hook.d.ts → Users/get/useUserQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{useSingleUserIdMutateQuery.hook.d.ts → Users/mutate/useSingleUserIdMutateQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{useUpdateSupervisorMutateQuery.hook.d.ts → Users/mutate/useUpdateSupervisorMutateQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{useSingleUserResetPassword.hook.d.ts → Users/others/useSingleUserResetPassword.hook.d.ts} +1 -1
- package/dist/types/hooks/{useUserBlockQuery.hook.d.ts → Users/others/useUserBlockQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/{useUserEmailVerifQuery.hook.d.ts → Users/others/useUserEmailVerifQuery.hook.d.ts} +1 -1
- package/dist/types/hooks/index.d.ts +46 -44
- package/dist/types/interfaces/AsvProductsByReference.d.ts +12 -0
- package/dist/types/interfaces/AsvProductsByStore.d.ts +11 -0
- package/dist/types/interfaces/index.d.ts +2 -0
- package/package.json +2 -2
- package/src/contexts/useStore.tsx +1 -1
- package/src/hooks/{useAnalyticsEvaluationCyclesQuery.hook.ts → Analytics/get/useAnalyticsEvaluationCyclesQuery.hook.ts} +2 -2
- package/src/hooks/{useAnalyticsQuestionsQuery.hook.ts → Analytics/get/useAnalyticsQuestionsQuery.hook.ts} +2 -2
- package/src/hooks/{useAnalyticsSideBarQuery.hook.ts → Analytics/get/useAnalyticsSideBarQuery.hook.ts} +2 -2
- package/src/hooks/{useAnalyticsUserIdQuery.hook.ts → Analytics/get/useAnalyticsUserIdQuery.hook.ts} +8 -4
- package/src/hooks/{useAnalyticsUserQuery.hook.ts → Analytics/get/useAnalyticsUserQuery.hook.ts} +3 -3
- package/src/hooks/{useAnswerIdQuery.hook.ts → Answer/get/useAnswerIdQuery.hook.ts} +2 -2
- package/src/hooks/{useAnswersUserSupervisorQuery.hook.tsx → Answer/get/useAnswersUserSupervisorQuery.hook.tsx} +2 -2
- package/src/hooks/{useAnswerMutateQuery.hook.ts → Answer/mutate/useAnswerMutateQuery.hook.ts} +2 -2
- package/src/hooks/AsvProduct/get/getProductsByRefQuery.hook.ts +19 -0
- package/src/hooks/AsvProduct/get/getProductsByStoreQuery.hook.ts +21 -0
- package/src/hooks/{useEvaluationCycleIdQuery.hook.ts → EvaluationCycle/get/useEvaluationCycleIdQuery.hook.ts} +2 -2
- package/src/hooks/{useEvaluationCycleQuery.hook.ts → EvaluationCycle/get/useEvaluationCycleQuery.hook.ts} +2 -2
- package/src/hooks/{useEvaluationCycleMutateQuery.hook.ts → EvaluationCycle/mutate/useEvaluationCycleMutateQuery.hook.ts} +2 -2
- package/src/hooks/{activateEvaluationCycleQuery.hook.ts → EvaluationCycle/others/activateEvaluationCycleQuery.hook.ts} +2 -2
- package/src/hooks/{cancelEvaluationCycleQuery.hook.ts → EvaluationCycle/others/cancelEvaluationCycleQuery.hook.ts} +2 -2
- package/src/hooks/{deleteEvaluationCycleQuery.hook.ts → EvaluationCycle/others/deleteEvaluationCycleQuery.hook.ts} +2 -2
- package/src/hooks/{finishEvaluationCycleQuery.hook.ts → EvaluationCycle/others/finishEvaluationCycleQuery.hook.ts} +2 -2
- package/src/hooks/{useApplicationDataQuery.hook.ts → Others/useApplicationDataQuery.hook.ts} +2 -2
- package/src/hooks/{useContractStatesQuery.hook.ts → Others/useContractStatesQuery.hook.ts} +2 -2
- package/src/hooks/{useCountriesQuery.hook.ts → Others/useCountriesQuery.hook.ts} +2 -2
- package/src/hooks/{useCustomersQuery.hook.ts → Others/useCustomersQuery.hook.ts} +1 -1
- package/src/hooks/{useJobTitlesQuery.hook.ts → Others/useJobTitlesQuery.hook.ts} +2 -2
- package/src/hooks/{useTermNotificationQuery.hook.ts → Others/useTermNotificationQuery.hook.ts} +2 -2
- package/src/hooks/{useProductHierarchies.hook.ts → Product/get/useProductHierarchies.hook.ts} +1 -1
- package/src/hooks/{useProductsQuery.hook.ts → Product/get/useProductsQuery.hook.ts} +1 -1
- package/src/hooks/{useQuestionnaireIdQuery.hook.ts → Questionnaire/get/useQuestionnaireIdQuery.hook.ts} +2 -2
- package/src/hooks/{useQuestionnaireQuery.hook.ts → Questionnaire/get/useQuestionnaireQuery.hook.ts} +2 -2
- package/src/hooks/{useQuestionnaireMutateQuery.hook.ts → Questionnaire/mutate/useQuestionnaireMutateQuery.hook.ts} +2 -2
- package/src/hooks/{activateQuestionnaireQuery.hook.ts → Questionnaire/others/activateQuestionnaireQuery.hook.ts} +2 -2
- package/src/hooks/{cancelQuestionnaireQuery.hook.ts → Questionnaire/others/cancelQuestionnaireQuery.hook.ts} +2 -2
- package/src/hooks/{deleteQuestionnaireQuery.hook.ts → Questionnaire/others/deleteQuestionnaireQuery.hook.ts} +2 -2
- package/src/hooks/{duplicateQuestionnaireQuery.hook.ts → Questionnaire/others/duplicateQuestionnaireQuery.hook.ts} +2 -2
- package/src/hooks/{finishQuestionnaireQuery.hook.ts → Questionnaire/others/finishQuestionnaireQuery.hook.ts} +2 -2
- package/src/hooks/{useAllRolesQuery.hook.ts → Roles/get/useAllRolesQuery.hook.ts} +2 -2
- package/src/hooks/{useAllStoreQuery.hook.ts → Roles/get/useAllStoreQuery.hook.ts} +2 -2
- package/src/hooks/{useStoreQuery.ts → Store/useStoreQuery.ts} +2 -2
- package/src/hooks/{useExpUsersAnswersQuery.hook.ts → Users/get/useExpUsersAnswersQuery.hook.ts} +2 -2
- package/src/hooks/{useSingleUserIdQuery.hook.ts → Users/get/useSingleUserIdQuery.hook.ts} +2 -2
- package/src/hooks/{useUserIdQuery.hook.ts → Users/get/useUserIdQuery.hook.ts} +2 -2
- package/src/hooks/{useUserListQuery.hook.ts → Users/get/useUserListQuery.hook.ts} +2 -2
- package/src/hooks/{useUserQuery.hook.ts → Users/get/useUserQuery.hook.ts} +2 -2
- package/src/hooks/{useSingleUserIdMutateQuery.hook.ts → Users/mutate/useSingleUserIdMutateQuery.hook.ts} +2 -2
- package/src/hooks/{useUpdateSupervisorMutateQuery.hook.ts → Users/mutate/useUpdateSupervisorMutateQuery.hook.ts} +2 -2
- package/src/hooks/{useSingleUserResetPassword.hook.ts → Users/others/useSingleUserResetPassword.hook.ts} +2 -2
- package/src/hooks/{useUserBlockQuery.hook.ts → Users/others/useUserBlockQuery.hook.ts} +2 -2
- package/src/hooks/{useUserEmailVerifQuery.hook.ts → Users/others/useUserEmailVerifQuery.hook.ts} +2 -2
- package/src/hooks/index.ts +65 -44
- package/src/interfaces/AsvProductsByReference.ts +14 -0
- package/src/interfaces/AsvProductsByStore.ts +12 -0
- package/src/interfaces/index.ts +2 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { AnalyticsEvaluationCycle } from "
|
|
2
|
+
import { AnalyticsEvaluationCycle } from "../../../interfaces";
|
|
3
3
|
export interface AnalyticsEvaluationCycles extends UseQueryOptions<AnalyticsEvaluationCycle[]> {
|
|
4
4
|
pSortDirection?: string;
|
|
5
5
|
pFilter?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { Answer, ResponseList } from "
|
|
2
|
+
import { Answer, ResponseList } from "../../../interfaces";
|
|
3
3
|
export interface AnalyticsQuestionsQuery extends UseQueryOptions<ResponseList<"Answers", Answer>> {
|
|
4
4
|
id: string;
|
|
5
5
|
page?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { AnalyticsEvaluationCycle } from "
|
|
2
|
+
import { AnalyticsEvaluationCycle } from "../../../interfaces";
|
|
3
3
|
export interface AnalyticsSideBar extends UseQueryOptions<AnalyticsEvaluationCycle[]> {
|
|
4
4
|
pSortDirection?: string;
|
|
5
5
|
pFilter?: string;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { AnalyticsUserId, ResponseList } from "
|
|
2
|
+
import { AnalyticsUserId, ResponseList } from "../../../interfaces";
|
|
3
3
|
export interface AnalyticsUserIdQuery extends UseQueryOptions<ResponseList<"UserEvaluationCycleDTOs", AnalyticsUserId>> {
|
|
4
4
|
page?: number;
|
|
5
5
|
records?: number;
|
|
6
6
|
pYear?: string;
|
|
7
7
|
userId: string;
|
|
8
|
+
sortBy?: string;
|
|
9
|
+
sortDirection?: string;
|
|
8
10
|
}
|
|
9
|
-
export declare const useAnalyticsUserIdQueryHook: ({ page, records, userId, pYear }: AnalyticsUserIdQuery) => import("@tanstack/react-query").UseQueryResult<ResponseList<"UserEvaluationCycleDTOs", AnalyticsUserId>, unknown>;
|
|
11
|
+
export declare const useAnalyticsUserIdQueryHook: ({ page, records, userId, pYear, sortBy, sortDirection }: AnalyticsUserIdQuery) => import("@tanstack/react-query").UseQueryResult<ResponseList<"UserEvaluationCycleDTOs", AnalyticsUserId>, unknown>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { User, ResponseList } from "
|
|
2
|
+
import { User, ResponseList } from "../../../interfaces";
|
|
3
3
|
export interface AnalyticsUserQuery extends UseQueryOptions<ResponseList<"Users", User>> {
|
|
4
4
|
tags?: string;
|
|
5
5
|
filter?: string;
|
package/dist/types/hooks/{useAnswerIdQuery.hook.d.ts → Answer/get/useAnswerIdQuery.hook.d.ts}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Answer } from "
|
|
1
|
+
import { Answer } from "../../../interfaces";
|
|
2
2
|
export declare const useAnswerIdQueryHook: (answerId: string) => import("@tanstack/react-query").UseQueryResult<Answer, unknown>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { AnswersUserSupervisor } from "
|
|
2
|
+
import { AnswersUserSupervisor } from "../../../interfaces";
|
|
3
3
|
export interface AnswersUserSupervisorQuery extends UseQueryOptions<AnswersUserSupervisor> {
|
|
4
4
|
evaluationId: string;
|
|
5
5
|
userId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import { Answer } from '
|
|
2
|
+
import { Answer } from '../../../interfaces';
|
|
3
3
|
export interface AnswerQuery extends UseQueryOptions<Answer> {
|
|
4
4
|
pQuestionnaireId?: string;
|
|
5
5
|
pEvaluationCycleId?: string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { AsvProductsByReference, ResponseList } from "../../../interfaces";
|
|
3
|
+
export interface ProductsByRefProps extends UseQueryOptions<ResponseList<"", AsvProductsByReference>> {
|
|
4
|
+
reference: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const getProductsByRef: ({ reference }: ProductsByRefProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"", AsvProductsByReference>, unknown>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { AsvProductsByStore, ResponseList } from "../../../interfaces";
|
|
3
|
+
export interface ProductsByStoreProps extends UseQueryOptions<ResponseList<"", AsvProductsByStore>> {
|
|
4
|
+
reference: string;
|
|
5
|
+
storeCode: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const getProductsByStore: ({ reference, storeCode }: ProductsByStoreProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"", AsvProductsByStore>, unknown>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EvaluationCycle } from "
|
|
1
|
+
import { EvaluationCycle } from "../../../interfaces";
|
|
2
2
|
export declare const useEvaluationCycleIdQueryHook: (evaluationId: string) => import("@tanstack/react-query").UseQueryResult<EvaluationCycle, unknown>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { EvaluationCycle, ResponseList } from "
|
|
2
|
+
import { EvaluationCycle, ResponseList } from "../../../interfaces";
|
|
3
3
|
export interface EvaluationCycleProps extends UseQueryOptions<ResponseList<"EvaluationCycles", EvaluationCycle>> {
|
|
4
4
|
tags?: string;
|
|
5
5
|
page?: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EvaluationCycle } from '
|
|
1
|
+
import { EvaluationCycle } from '../../../interfaces/EvaluationCycle';
|
|
2
2
|
export declare const useEvaluationCycleMutateHook: () => import("@tanstack/react-query").UseMutationResult<EvaluationCycle, unknown, EvaluationCycle, unknown>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EvaluationCycle } from '
|
|
1
|
+
import { EvaluationCycle } from '../../../interfaces/EvaluationCycle';
|
|
2
2
|
export declare const activateEvaluationCycleQueryHook: () => import("@tanstack/react-query").UseMutationResult<EvaluationCycle, unknown, EvaluationCycle, unknown>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EvaluationCycle } from '
|
|
1
|
+
import { EvaluationCycle } from '../../../interfaces/EvaluationCycle';
|
|
2
2
|
export declare const cancelEvaluationCycleQueryHook: () => import("@tanstack/react-query").UseMutationResult<EvaluationCycle, unknown, EvaluationCycle, unknown>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EvaluationCycle } from '
|
|
1
|
+
import { EvaluationCycle } from '../../../interfaces/EvaluationCycle';
|
|
2
2
|
export declare const deleteEvaluationCycleMutateHook: () => import("@tanstack/react-query").UseMutationResult<EvaluationCycle, unknown, EvaluationCycle, unknown>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { EvaluationCycle } from '
|
|
1
|
+
import { EvaluationCycle } from '../../../interfaces/EvaluationCycle';
|
|
2
2
|
export declare const finishEvaluationCycleQueryHook: () => import("@tanstack/react-query").UseMutationResult<EvaluationCycle, unknown, EvaluationCycle, unknown>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ApplicationsByCategory, ResponseList } from "
|
|
1
|
+
import { ApplicationsByCategory, ResponseList } from "../../interfaces";
|
|
2
2
|
export declare const useApplicationDataQueryHook: () => import("@tanstack/react-query").UseQueryResult<ResponseList<"Categories", ApplicationsByCategory>, unknown>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { ContractStates, ResponseList } from "
|
|
2
|
+
import { ContractStates, ResponseList } from "../../interfaces";
|
|
3
3
|
interface ContractStatesQueryProps extends UseQueryOptions<ContractStates> {
|
|
4
4
|
records: string;
|
|
5
5
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Customer, ResponseList } from '
|
|
1
|
+
import { Customer, ResponseList } from '../../';
|
|
2
2
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
3
3
|
export interface CustomersQuery extends UseQueryOptions<ResponseList<"Customers", Customer>> {
|
|
4
4
|
page?: number;
|
|
@@ -26,6 +26,7 @@ export declare const useCustomersInfiniteQueryHook: ({ filterBy, search }?: Omit
|
|
|
26
26
|
dataUpdatedAt: number;
|
|
27
27
|
errorUpdatedAt: number;
|
|
28
28
|
failureCount: number;
|
|
29
|
+
failureReason: unknown;
|
|
29
30
|
errorUpdateCount: number;
|
|
30
31
|
isFetched: boolean;
|
|
31
32
|
isFetchedAfterMount: boolean;
|
|
@@ -58,6 +59,7 @@ export declare const useCustomersInfiniteQueryHook: ({ filterBy, search }?: Omit
|
|
|
58
59
|
dataUpdatedAt: number;
|
|
59
60
|
errorUpdatedAt: number;
|
|
60
61
|
failureCount: number;
|
|
62
|
+
failureReason: unknown;
|
|
61
63
|
errorUpdateCount: number;
|
|
62
64
|
isFetched: boolean;
|
|
63
65
|
isFetchedAfterMount: boolean;
|
|
@@ -90,6 +92,7 @@ export declare const useCustomersInfiniteQueryHook: ({ filterBy, search }?: Omit
|
|
|
90
92
|
dataUpdatedAt: number;
|
|
91
93
|
errorUpdatedAt: number;
|
|
92
94
|
failureCount: number;
|
|
95
|
+
failureReason: unknown;
|
|
93
96
|
errorUpdateCount: number;
|
|
94
97
|
isFetched: boolean;
|
|
95
98
|
isFetchedAfterMount: boolean;
|
|
@@ -122,6 +125,7 @@ export declare const useCustomersInfiniteQueryHook: ({ filterBy, search }?: Omit
|
|
|
122
125
|
dataUpdatedAt: number;
|
|
123
126
|
errorUpdatedAt: number;
|
|
124
127
|
failureCount: number;
|
|
128
|
+
failureReason: unknown;
|
|
125
129
|
errorUpdateCount: number;
|
|
126
130
|
isFetched: boolean;
|
|
127
131
|
isFetchedAfterMount: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TermNotification } from "
|
|
1
|
+
import { TermNotification } from "../../interfaces";
|
|
2
2
|
export declare const useTermNotificationQueryHook: () => import("@tanstack/react-query").UseQueryResult<TermNotification[], unknown>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProductsHierarchies, ResponseList } from '
|
|
1
|
+
import { ProductsHierarchies, ResponseList } from '../../../';
|
|
2
2
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
3
3
|
export interface useProductsHierarchiesQueryHook extends UseQueryOptions<ResponseList<"Hierarchies", ProductsHierarchies>> {
|
|
4
4
|
page?: number;
|
package/dist/types/hooks/{useProductsQuery.hook.d.ts → Product/get/useProductsQuery.hook.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Product, ResponseList } from '
|
|
1
|
+
import { Product, ResponseList } from '../../../';
|
|
2
2
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
3
3
|
export interface ProductsQuery extends UseQueryOptions<ResponseList<"Products", Product>> {
|
|
4
4
|
page?: number;
|
|
@@ -26,6 +26,7 @@ export declare const useProductInfiniteQueryHook: ({ filterBy, search }?: Omit<P
|
|
|
26
26
|
dataUpdatedAt: number;
|
|
27
27
|
errorUpdatedAt: number;
|
|
28
28
|
failureCount: number;
|
|
29
|
+
failureReason: unknown;
|
|
29
30
|
errorUpdateCount: number;
|
|
30
31
|
isFetched: boolean;
|
|
31
32
|
isFetchedAfterMount: boolean;
|
|
@@ -58,6 +59,7 @@ export declare const useProductInfiniteQueryHook: ({ filterBy, search }?: Omit<P
|
|
|
58
59
|
dataUpdatedAt: number;
|
|
59
60
|
errorUpdatedAt: number;
|
|
60
61
|
failureCount: number;
|
|
62
|
+
failureReason: unknown;
|
|
61
63
|
errorUpdateCount: number;
|
|
62
64
|
isFetched: boolean;
|
|
63
65
|
isFetchedAfterMount: boolean;
|
|
@@ -90,6 +92,7 @@ export declare const useProductInfiniteQueryHook: ({ filterBy, search }?: Omit<P
|
|
|
90
92
|
dataUpdatedAt: number;
|
|
91
93
|
errorUpdatedAt: number;
|
|
92
94
|
failureCount: number;
|
|
95
|
+
failureReason: unknown;
|
|
93
96
|
errorUpdateCount: number;
|
|
94
97
|
isFetched: boolean;
|
|
95
98
|
isFetchedAfterMount: boolean;
|
|
@@ -122,6 +125,7 @@ export declare const useProductInfiniteQueryHook: ({ filterBy, search }?: Omit<P
|
|
|
122
125
|
dataUpdatedAt: number;
|
|
123
126
|
errorUpdatedAt: number;
|
|
124
127
|
failureCount: number;
|
|
128
|
+
failureReason: unknown;
|
|
125
129
|
errorUpdateCount: number;
|
|
126
130
|
isFetched: boolean;
|
|
127
131
|
isFetchedAfterMount: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Questionnaire } from "
|
|
1
|
+
import { Questionnaire } from "../../../interfaces";
|
|
2
2
|
export declare const useQuestionnaireIdQueryHook: (surveyId: string) => import("@tanstack/react-query").UseQueryResult<Questionnaire, unknown>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { Questionnaire, ResponseList } from "
|
|
2
|
+
import { Questionnaire, ResponseList } from "../../../interfaces";
|
|
3
3
|
export interface QuestionnaireQuery extends UseQueryOptions<ResponseList<"Questionnairezes", Questionnaire>> {
|
|
4
4
|
tags?: string;
|
|
5
5
|
page?: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Questionnaire } from '
|
|
1
|
+
import { Questionnaire } from '../../../interfaces/Questionnaire';
|
|
2
2
|
export declare const useQuestionnaireMutateHook: () => import("@tanstack/react-query").UseMutationResult<Questionnaire, unknown, Questionnaire, unknown>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Questionnaire } from '
|
|
1
|
+
import { Questionnaire } from '../../../interfaces/Questionnaire';
|
|
2
2
|
export declare const activateQuestionnaireQueryHook: () => import("@tanstack/react-query").UseMutationResult<Questionnaire, unknown, Questionnaire, unknown>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Questionnaire } from '
|
|
1
|
+
import { Questionnaire } from '../../../interfaces/Questionnaire';
|
|
2
2
|
export declare const cancelQuestionnaireQueryHook: () => import("@tanstack/react-query").UseMutationResult<Questionnaire, unknown, Questionnaire, unknown>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Questionnaire } from '
|
|
1
|
+
import { Questionnaire } from '../../../interfaces/Questionnaire';
|
|
2
2
|
export declare const deleteQuestionnaireMutateHook: () => import("@tanstack/react-query").UseMutationResult<Questionnaire, unknown, Questionnaire, unknown>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Questionnaire } from '
|
|
1
|
+
import { Questionnaire } from '../../../interfaces/Questionnaire';
|
|
2
2
|
export declare const duplicateQuestionnaireMutateHook: () => import("@tanstack/react-query").UseMutationResult<Questionnaire, unknown, Questionnaire, unknown>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Answer } from '
|
|
1
|
+
import { Answer } from '../../../interfaces';
|
|
2
2
|
export declare const finishQuestionnaireQueryHook: () => import("@tanstack/react-query").UseMutationResult<Answer, unknown, Answer, unknown>;
|
package/dist/types/hooks/{useAllRolesQuery.hook.d.ts → Roles/get/useAllRolesQuery.hook.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { Roles, ResponseList } from "
|
|
2
|
+
import { Roles, ResponseList } from "../../../interfaces";
|
|
3
3
|
interface RolesQueryProps extends UseQueryOptions<ResponseList<"Roles", Roles>> {
|
|
4
4
|
records: number | string;
|
|
5
5
|
sortBy: string;
|
package/dist/types/hooks/{useAllStoreQuery.hook.d.ts → Roles/get/useAllStoreQuery.hook.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { Store, ResponseList } from "
|
|
2
|
+
import { Store, ResponseList } from "../../../interfaces";
|
|
3
3
|
interface StoreQueryProps extends UseQueryOptions<Store> {
|
|
4
4
|
records: number | string;
|
|
5
5
|
sortBy: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { ExpUsersAnswers, ResponseList } from "
|
|
2
|
+
import { ExpUsersAnswers, ResponseList } from "../../../interfaces";
|
|
3
3
|
export interface ExpUsersAnswersProps extends UseQueryOptions<ResponseList<"Users", ExpUsersAnswers>> {
|
|
4
4
|
tags?: string;
|
|
5
5
|
page?: number;
|
package/dist/types/hooks/{useSingleUserIdQuery.hook.d.ts → Users/get/useSingleUserIdQuery.hook.d.ts}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { User } from "
|
|
1
|
+
import { User } from "../../../interfaces";
|
|
2
2
|
export declare const useSingleUserIdQueryHook: (userId: string) => import("@tanstack/react-query").UseQueryResult<User, unknown>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { User } from "
|
|
1
|
+
import { User } from "../../../interfaces";
|
|
2
2
|
export declare const useUserIdQueryHook: (userId: string) => import("@tanstack/react-query").UseQueryResult<User, unknown>;
|
package/dist/types/hooks/{useUserListQuery.hook.d.ts → Users/get/useUserListQuery.hook.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { User, ResponseList } from "
|
|
2
|
+
import { User, ResponseList } from "../../../interfaces";
|
|
3
3
|
export interface UserListQuery extends UseQueryOptions<ResponseList<"Users", User>> {
|
|
4
4
|
tags?: string;
|
|
5
5
|
records: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { User, ResponseList } from "
|
|
2
|
+
import { User, ResponseList } from "../../../interfaces";
|
|
3
3
|
export interface UserQuery extends UseQueryOptions<ResponseList<"Users", User>> {
|
|
4
4
|
tags?: string;
|
|
5
5
|
page?: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SingleUser } from '
|
|
1
|
+
import { SingleUser } from '../../../interfaces/User';
|
|
2
2
|
export declare const useSingleUserIdMutateQuery: (bodyType?: string) => import("@tanstack/react-query").UseMutationResult<SingleUser, unknown, SingleUser, unknown>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import { EvaluationCycle } from '
|
|
2
|
+
import { EvaluationCycle } from '../../../interfaces/EvaluationCycle';
|
|
3
3
|
export interface UpdateSupervisorMutateQuery extends UseQueryOptions<EvaluationCycle> {
|
|
4
4
|
evaluationCycleId?: string;
|
|
5
5
|
userId?: string;
|
package/dist/types/hooks/{useUserBlockQuery.hook.d.ts → Users/others/useUserBlockQuery.hook.d.ts}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { User } from "
|
|
1
|
+
import { User } from "../../../interfaces";
|
|
2
2
|
export declare const useUserBlockQueryHook: () => import("@tanstack/react-query").UseMutationResult<User, unknown, User, unknown>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { User } from "
|
|
1
|
+
import { User } from "../../../interfaces";
|
|
2
2
|
export declare const useUserEmailVerifQueryHook: () => import("@tanstack/react-query").UseMutationResult<User, unknown, User, unknown>;
|
|
@@ -1,44 +1,46 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './
|
|
16
|
-
export * from './
|
|
17
|
-
export * from './
|
|
18
|
-
export * from './
|
|
19
|
-
export * from './
|
|
20
|
-
export * from './
|
|
21
|
-
export * from './
|
|
22
|
-
export * from './
|
|
23
|
-
export * from './
|
|
24
|
-
export * from './
|
|
25
|
-
export * from './
|
|
26
|
-
export * from './
|
|
27
|
-
export * from './
|
|
28
|
-
export * from './
|
|
29
|
-
export * from './
|
|
30
|
-
export * from './
|
|
31
|
-
export * from './
|
|
32
|
-
export * from './
|
|
33
|
-
export * from './
|
|
34
|
-
export * from './
|
|
35
|
-
export * from './
|
|
36
|
-
export * from './
|
|
37
|
-
export * from './
|
|
38
|
-
export * from './
|
|
39
|
-
export * from './
|
|
40
|
-
export * from './
|
|
41
|
-
export * from './
|
|
42
|
-
export * from './
|
|
43
|
-
export * from './
|
|
44
|
-
export * from './
|
|
1
|
+
export * from './Store/useStoreQuery';
|
|
2
|
+
export * from './EvaluationCycle/get/useEvaluationCycleIdQuery.hook';
|
|
3
|
+
export * from './EvaluationCycle/mutate/useEvaluationCycleMutateQuery.hook';
|
|
4
|
+
export * from './EvaluationCycle/others/activateEvaluationCycleQuery.hook';
|
|
5
|
+
export * from './EvaluationCycle/others/deleteEvaluationCycleQuery.hook';
|
|
6
|
+
export * from './EvaluationCycle/get/useEvaluationCycleQuery.hook';
|
|
7
|
+
export * from './EvaluationCycle/others/cancelEvaluationCycleQuery.hook';
|
|
8
|
+
export * from './EvaluationCycle/others/finishEvaluationCycleQuery.hook';
|
|
9
|
+
export * from './Questionnaire/get/useQuestionnaireQuery.hook';
|
|
10
|
+
export * from './Questionnaire/others/deleteQuestionnaireQuery.hook';
|
|
11
|
+
export * from './Questionnaire/others/duplicateQuestionnaireQuery.hook';
|
|
12
|
+
export * from './Questionnaire/mutate/useQuestionnaireMutateQuery.hook';
|
|
13
|
+
export * from './Questionnaire/others/activateQuestionnaireQuery.hook';
|
|
14
|
+
export * from './Questionnaire/get/useQuestionnaireIdQuery.hook';
|
|
15
|
+
export * from './Questionnaire/others/finishQuestionnaireQuery.hook';
|
|
16
|
+
export * from './Questionnaire/others/cancelQuestionnaireQuery.hook';
|
|
17
|
+
export * from './Users/get/useUserQuery.hook';
|
|
18
|
+
export * from './Users/get/useUserListQuery.hook';
|
|
19
|
+
export * from './Users/others/useUserBlockQuery.hook';
|
|
20
|
+
export * from './Users/others/useUserEmailVerifQuery.hook';
|
|
21
|
+
export * from './Users/get/useExpUsersAnswersQuery.hook';
|
|
22
|
+
export * from './Users/mutate/useUpdateSupervisorMutateQuery.hook';
|
|
23
|
+
export * from './Users/others/useSingleUserResetPassword.hook';
|
|
24
|
+
export * from './Users/get/useSingleUserIdQuery.hook';
|
|
25
|
+
export * from './Users/mutate/useSingleUserIdMutateQuery.hook';
|
|
26
|
+
export * from './Users/get/useUserIdQuery.hook';
|
|
27
|
+
export * from './Analytics/get/useAnalyticsEvaluationCyclesQuery.hook';
|
|
28
|
+
export * from './Analytics/get/useAnalyticsUserIdQuery.hook';
|
|
29
|
+
export * from './Analytics/get/useAnalyticsQuestionsQuery.hook';
|
|
30
|
+
export * from './Analytics/get/useAnalyticsSideBarQuery.hook';
|
|
31
|
+
export * from './Analytics/get/useAnalyticsUserQuery.hook';
|
|
32
|
+
export * from './Answer/get/useAnswerIdQuery.hook';
|
|
33
|
+
export * from './Answer/mutate/useAnswerMutateQuery.hook';
|
|
34
|
+
export * from './Answer/get/useAnswersUserSupervisorQuery.hook';
|
|
35
|
+
export * from './Product/get/useProductsQuery.hook';
|
|
36
|
+
export * from './Product/get/useProductHierarchies.hook';
|
|
37
|
+
export * from './Roles/get/useAllStoreQuery.hook';
|
|
38
|
+
export * from './Roles/get/useAllRolesQuery.hook';
|
|
39
|
+
export * from './AsvProduct/get/getProductsByRefQuery.hook';
|
|
40
|
+
export * from './AsvProduct/get/getProductsByStoreQuery.hook';
|
|
41
|
+
export * from './Others/useJobTitlesQuery.hook';
|
|
42
|
+
export * from './Others/useContractStatesQuery.hook';
|
|
43
|
+
export * from './Others/useApplicationDataQuery.hook';
|
|
44
|
+
export * from './Others/useTermNotificationQuery.hook';
|
|
45
|
+
export * from './Others/useCustomersQuery.hook';
|
|
46
|
+
export * from './Others/useCountriesQuery.hook';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omniumretail/shared-resources",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.85",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared Components and services or utils to the frontend versions",
|
|
6
6
|
"main": "dist/bundle.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@fortawesome/free-regular-svg-icons": "^6.2.0",
|
|
41
41
|
"@fortawesome/free-solid-svg-icons": "^6.2.0",
|
|
42
42
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
43
|
-
"@tanstack/react-query": "4.
|
|
43
|
+
"@tanstack/react-query": "^4.29.19",
|
|
44
44
|
"@tanstack/react-query-devtools": "^4.8.0",
|
|
45
45
|
"antd": "^4.23.4",
|
|
46
46
|
"classnames": "^2.3.2",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { useSearchParams } from 'react-router-dom';
|
|
4
|
-
import { useStoreQuery } from '../hooks/useStoreQuery';
|
|
4
|
+
import { useStoreQuery } from '../hooks/Store/useStoreQuery';
|
|
5
5
|
import { Store } from '../interfaces/Store';
|
|
6
6
|
|
|
7
7
|
const StoreContext = React.createContext<Store | null>(null);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { AnalyticsEvaluationCycle } from "
|
|
3
|
-
import { getAuth0 } from "
|
|
2
|
+
import { AnalyticsEvaluationCycle } from "../../../interfaces";
|
|
3
|
+
import { getAuth0 } from "../../../services/ApiService";
|
|
4
4
|
|
|
5
5
|
export interface AnalyticsEvaluationCycles extends UseQueryOptions<AnalyticsEvaluationCycle[]> {
|
|
6
6
|
pSortDirection?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { Answer, ResponseList } from "
|
|
3
|
-
import { getAuth0 } from "
|
|
2
|
+
import { Answer, ResponseList } from "../../../interfaces";
|
|
3
|
+
import { getAuth0 } from "../../../services/ApiService";
|
|
4
4
|
|
|
5
5
|
export interface AnalyticsQuestionsQuery extends UseQueryOptions<ResponseList<"Answers", Answer>> {
|
|
6
6
|
id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { AnalyticsEvaluationCycle } from "
|
|
3
|
-
import { getAuth0 } from "
|
|
2
|
+
import { AnalyticsEvaluationCycle } from "../../../interfaces";
|
|
3
|
+
import { getAuth0 } from "../../../services/ApiService";
|
|
4
4
|
|
|
5
5
|
export interface AnalyticsSideBar extends UseQueryOptions<AnalyticsEvaluationCycle[]> {
|
|
6
6
|
pSortDirection?: string;
|
package/src/hooks/{useAnalyticsUserIdQuery.hook.ts → Analytics/get/useAnalyticsUserIdQuery.hook.ts}
RENAMED
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { AnalyticsUserId, ResponseList } from "
|
|
3
|
-
import { getAuth0 } from "
|
|
2
|
+
import { AnalyticsUserId, ResponseList } from "../../../interfaces";
|
|
3
|
+
import { getAuth0 } from "../../../services/ApiService";
|
|
4
4
|
|
|
5
5
|
export interface AnalyticsUserIdQuery extends UseQueryOptions<ResponseList<"UserEvaluationCycleDTOs", AnalyticsUserId>> {
|
|
6
6
|
page?: number;
|
|
7
7
|
records?: number;
|
|
8
8
|
pYear?: string;
|
|
9
9
|
userId: string;
|
|
10
|
+
sortBy?: string;
|
|
11
|
+
sortDirection?: string;
|
|
10
12
|
}
|
|
11
13
|
|
|
12
|
-
export const useAnalyticsUserIdQueryHook = ({ page, records, userId, pYear }: AnalyticsUserIdQuery) => {
|
|
14
|
+
export const useAnalyticsUserIdQueryHook = ({ page, records, userId, pYear, sortBy, sortDirection }: AnalyticsUserIdQuery) => {
|
|
13
15
|
return useQuery(
|
|
14
|
-
['ANALYTICS_USER_ID_QUERY', page, records, userId, pYear],
|
|
16
|
+
['ANALYTICS_USER_ID_QUERY', page, records, userId, pYear, sortBy, sortDirection],
|
|
15
17
|
() => getAuth0<ResponseList<"UserEvaluationCycleDTOs", AnalyticsUserId>>(`/APE/Analytics/EvaluationCycles/User/${userId}`, {
|
|
16
18
|
pPage: page || 1,
|
|
19
|
+
pSortBy: sortBy || "Type",
|
|
20
|
+
pSortDirection: sortDirection || "asc",
|
|
17
21
|
pRecords: records || 50,
|
|
18
22
|
pYear: pYear
|
|
19
23
|
}),
|