@omniumretail/shared-resources 0.0.75 → 0.0.76
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/.eslintrc.json +31 -31
- package/README.md +44 -44
- package/dist/bundle.js +259 -259
- package/dist/types/components/BottomDrawer/index.d.ts +9 -9
- package/dist/types/components/Button/index.d.ts +2 -2
- package/dist/types/components/Footer/index.d.ts +3 -3
- package/dist/types/components/Form/FormInputField/index.d.ts +8 -8
- package/dist/types/components/Form/FormSelectField/index.d.ts +9 -9
- package/dist/types/components/Form/index.d.ts +2 -2
- package/dist/types/components/Header/index.d.ts +4 -4
- package/dist/types/components/Link/index.d.ts +6 -6
- package/dist/types/components/Navigation/index.d.ts +8 -8
- package/dist/types/components/Page/index.d.ts +13 -13
- package/dist/types/components/SharedContextProvider/index.d.ts +7 -7
- package/dist/types/components/index.d.ts +9 -9
- package/dist/types/constants/Icons.d.ts +15 -15
- package/dist/types/constants/QueryClient.d.ts +2 -2
- package/dist/types/constants/index.d.ts +2 -2
- package/dist/types/contexts/useStore.d.ts +8 -8
- package/dist/types/hooks/activateEvaluationCycleQuery.hook.d.ts +2 -2
- package/dist/types/hooks/activateQuestionnaireQuery.hook.d.ts +2 -2
- package/dist/types/hooks/cancelEvaluationCycleQuery.hook.d.ts +2 -2
- package/dist/types/hooks/cancelQuestionnaireQuery.hook.d.ts +2 -2
- package/dist/types/hooks/deleteEvaluationCycleQuery.hook.d.ts +2 -2
- package/dist/types/hooks/deleteQuestionnaireQuery.hook.d.ts +2 -2
- package/dist/types/hooks/duplicateQuestionnaireQuery.hook.d.ts +2 -2
- package/dist/types/hooks/finishEvaluationCycleQuery.hook.d.ts +2 -2
- package/dist/types/hooks/finishQuestionnaireQuery.hook.d.ts +2 -2
- package/dist/types/hooks/index.d.ts +44 -44
- package/dist/types/hooks/useAllRolesQuery.hook.d.ts +11 -11
- package/dist/types/hooks/useAllStoreQuery.hook.d.ts +13 -13
- package/dist/types/hooks/useAnalyticsEvaluationCyclesQuery.hook.d.ts +7 -7
- package/dist/types/hooks/useAnalyticsQuestionsQuery.hook.d.ts +9 -9
- package/dist/types/hooks/useAnalyticsSideBarQuery.hook.d.ts +7 -7
- package/dist/types/hooks/useAnalyticsUserIdQuery.hook.d.ts +9 -9
- package/dist/types/hooks/useAnalyticsUserQuery.hook.d.ts +11 -9
- package/dist/types/hooks/useAnswerIdQuery.hook.d.ts +2 -2
- package/dist/types/hooks/useAnswerMutateQuery.hook.d.ts +9 -9
- package/dist/types/hooks/useAnswersUserSupervisorQuery.hook.d.ts +7 -7
- package/dist/types/hooks/useApplicationDataQuery.hook.d.ts +2 -2
- package/dist/types/hooks/useContractStatesQuery.hook.d.ts +7 -7
- package/dist/types/hooks/useCountriesQuery.hook.d.ts +7 -7
- package/dist/types/hooks/useCustomersQuery.hook.d.ts +138 -138
- package/dist/types/hooks/useEvaluationCycleIdQuery.hook.d.ts +2 -2
- package/dist/types/hooks/useEvaluationCycleMutateQuery.hook.d.ts +2 -2
- package/dist/types/hooks/useEvaluationCycleQuery.hook.d.ts +10 -8
- package/dist/types/hooks/useExpUsersAnswersQuery.hook.d.ts +8 -8
- package/dist/types/hooks/useJobTitlesQuery.hook.d.ts +7 -7
- package/dist/types/hooks/useProductHierarchies.hook.d.ts +7 -7
- package/dist/types/hooks/useProductsQuery.hook.d.ts +138 -138
- package/dist/types/hooks/useQuestionnaireIdQuery.hook.d.ts +2 -2
- package/dist/types/hooks/useQuestionnaireMutateQuery.hook.d.ts +2 -2
- package/dist/types/hooks/useQuestionnaireQuery.hook.d.ts +11 -9
- package/dist/types/hooks/useSingleUserIdMutateQuery.hook.d.ts +2 -2
- package/dist/types/hooks/useSingleUserIdQuery.hook.d.ts +2 -2
- package/dist/types/hooks/useSingleUserResetPassword.hook.d.ts +2 -2
- package/dist/types/hooks/useStoreQuery.d.ts +7 -7
- package/dist/types/hooks/useTermNotificationQuery.hook.d.ts +2 -2
- package/dist/types/hooks/useUpdateSupervisorMutateQuery.hook.d.ts +8 -8
- package/dist/types/hooks/useUserBlockQuery.hook.d.ts +2 -2
- package/dist/types/hooks/useUserEmailVerifQuery.hook.d.ts +2 -2
- package/dist/types/hooks/useUserIdQuery.hook.d.ts +2 -2
- package/dist/types/hooks/useUserListQuery.hook.d.ts +8 -8
- package/dist/types/hooks/useUserQuery.hook.d.ts +12 -10
- package/dist/types/index.d.ts +7 -7
- package/dist/types/interfaces/AnalyticsEvaluationCycle.d.ts +19 -19
- package/dist/types/interfaces/AnalyticsUserId.d.ts +12 -12
- package/dist/types/interfaces/Answer.d.ts +12 -12
- package/dist/types/interfaces/AnswersUserSupervisor.d.ts +42 -42
- package/dist/types/interfaces/ApplicationsByCategory.d.ts +16 -16
- package/dist/types/interfaces/Brand.d.ts +4 -4
- package/dist/types/interfaces/Cart.d.ts +10 -10
- package/dist/types/interfaces/Configuration.d.ts +6 -6
- package/dist/types/interfaces/ContractStates.d.ts +7 -7
- package/dist/types/interfaces/Countries.d.ts +10 -10
- package/dist/types/interfaces/Customer.d.ts +21 -21
- package/dist/types/interfaces/EvaluationCycle.d.ts +32 -32
- package/dist/types/interfaces/ExpUsersAnswers.d.ts +15 -15
- package/dist/types/interfaces/JobTitles.d.ts +7 -7
- package/dist/types/interfaces/Product.d.ts +15 -15
- package/dist/types/interfaces/ProductsHierarchies.d.ts +5 -5
- package/dist/types/interfaces/Questionnaire.d.ts +36 -36
- package/dist/types/interfaces/ResponseList.d.ts +5 -5
- package/dist/types/interfaces/Roles.d.ts +5 -5
- package/dist/types/interfaces/Store.d.ts +7 -7
- package/dist/types/interfaces/TermNotification.d.ts +5 -5
- package/dist/types/interfaces/User.d.ts +67 -65
- package/dist/types/interfaces/index.d.ts +22 -22
- package/dist/types/services/ApiService/index.d.ts +9 -9
- package/dist/types/services/InitService/index.d.ts +3 -3
- package/dist/types/services/index.d.ts +2 -2
- package/package.json +54 -54
- package/src/assets/sitoo.svg +9 -9
- package/src/components/BottomDrawer/index.tsx +32 -32
- package/src/components/BottomDrawer/styles.module.scss +59 -59
- package/src/components/Button/index.tsx +7 -7
- package/src/components/Footer/index.tsx +44 -44
- package/src/components/Footer/styles.module.scss +33 -33
- package/src/components/Form/FormInputField/index.tsx +18 -18
- package/src/components/Form/FormSelectField/index.tsx +16 -16
- package/src/components/Form/index.ts +2 -2
- package/src/components/Header/index.tsx +20 -20
- package/src/components/Header/styles.module.scss +16 -16
- package/src/components/Link/index.tsx +21 -21
- package/src/components/Link/styles.module.scss +24 -24
- package/src/components/Navigation/index.tsx +30 -30
- package/src/components/Navigation/styles.module.scss +34 -34
- package/src/components/Page/index.tsx +35 -35
- package/src/components/Page/styles.module.scss +26 -26
- package/src/components/SharedContextProvider/index.tsx +30 -30
- package/src/components/index.ts +9 -9
- package/src/constants/Icons.ts +23 -23
- package/src/constants/QueryClient.ts +10 -10
- package/src/constants/index.ts +2 -2
- package/src/contexts/useStore.tsx +20 -20
- package/src/global.scss +124 -124
- package/src/hooks/activateEvaluationCycleQuery.hook.ts +15 -15
- package/src/hooks/activateQuestionnaireQuery.hook.ts +15 -15
- package/src/hooks/cancelEvaluationCycleQuery.hook.ts +15 -15
- package/src/hooks/cancelQuestionnaireQuery.hook.ts +15 -15
- package/src/hooks/deleteEvaluationCycleQuery.hook.ts +15 -15
- package/src/hooks/deleteQuestionnaireQuery.hook.ts +15 -15
- package/src/hooks/duplicateQuestionnaireQuery.hook.ts +14 -14
- package/src/hooks/finishEvaluationCycleQuery.hook.ts +15 -15
- package/src/hooks/finishQuestionnaireQuery.hook.ts +15 -15
- package/src/hooks/index.ts +44 -44
- package/src/hooks/useAllRolesQuery.hook.ts +25 -25
- package/src/hooks/useAllStoreQuery.hook.ts +39 -39
- package/src/hooks/useAnalyticsEvaluationCyclesQuery.hook.ts +21 -21
- package/src/hooks/useAnalyticsQuestionsQuery.hook.ts +22 -22
- package/src/hooks/useAnalyticsSideBarQuery.hook.ts +21 -21
- package/src/hooks/useAnalyticsUserIdQuery.hook.ts +24 -24
- package/src/hooks/useAnalyticsUserQuery.hook.ts +29 -27
- package/src/hooks/useAnswerIdQuery.hook.ts +13 -13
- package/src/hooks/useAnswerMutateQuery.hook.ts +31 -31
- package/src/hooks/useAnswersUserSupervisorQuery.hook.tsx +21 -21
- package/src/hooks/useApplicationDataQuery.hook.ts +10 -10
- package/src/hooks/useContractStatesQuery.hook.ts +14 -14
- package/src/hooks/useCountriesQuery.hook.ts +14 -14
- package/src/hooks/useCustomersQuery.hook.ts +30 -30
- package/src/hooks/useEvaluationCycleIdQuery.hook.ts +13 -13
- package/src/hooks/useEvaluationCycleMutateQuery.hook.ts +17 -17
- package/src/hooks/useEvaluationCycleQuery.hook.ts +27 -25
- package/src/hooks/useExpUsersAnswersQuery.hook.ts +25 -25
- package/src/hooks/useJobTitlesQuery.hook.ts +14 -14
- package/src/hooks/useProductHierarchies.hook.ts +12 -12
- package/src/hooks/useProductsQuery.hook.ts +30 -30
- package/src/hooks/useQuestionnaireIdQuery.hook.ts +13 -13
- package/src/hooks/useQuestionnaireMutateQuery.hook.ts +17 -17
- package/src/hooks/useQuestionnaireQuery.hook.ts +29 -27
- package/src/hooks/useSingleUserIdMutateQuery.hook.ts +18 -18
- package/src/hooks/useSingleUserIdQuery.hook.ts +14 -14
- package/src/hooks/useSingleUserResetPassword.hook.ts +15 -15
- package/src/hooks/useStoreQuery.ts +13 -13
- package/src/hooks/useTermNotificationQuery.hook.ts +11 -11
- package/src/hooks/useUpdateSupervisorMutateQuery.hook.ts +27 -27
- package/src/hooks/useUserBlockQuery.hook.ts +15 -15
- package/src/hooks/useUserEmailVerifQuery.hook.ts +15 -15
- package/src/hooks/useUserIdQuery.hook.ts +14 -14
- package/src/hooks/useUserListQuery.hook.ts +25 -25
- package/src/hooks/useUserQuery.hook.ts +31 -29
- package/src/index.ts +9 -9
- package/src/interfaces/AnalyticsEvaluationCycle.ts +24 -24
- package/src/interfaces/AnalyticsUserId.ts +13 -13
- package/src/interfaces/Answer.ts +13 -13
- package/src/interfaces/AnswersUserSupervisor.ts +45 -45
- package/src/interfaces/ApplicationsByCategory.ts +19 -19
- package/src/interfaces/Brand.ts +4 -4
- package/src/interfaces/Cart.ts +13 -13
- package/src/interfaces/Configuration.ts +7 -7
- package/src/interfaces/ContractStates.ts +7 -7
- package/src/interfaces/Countries.ts +10 -10
- package/src/interfaces/Customer.ts +23 -23
- package/src/interfaces/EvaluationCycle.ts +32 -32
- package/src/interfaces/ExpUsersAnswers.ts +16 -16
- package/src/interfaces/JobTitles.ts +7 -7
- package/src/interfaces/Product.ts +17 -17
- package/src/interfaces/ProductsHierarchies.ts +6 -6
- package/src/interfaces/Questionnaire.ts +38 -38
- package/src/interfaces/ResponseList.ts +6 -6
- package/src/interfaces/Roles.ts +5 -5
- package/src/interfaces/Store.ts +8 -8
- package/src/interfaces/TermNotification.ts +5 -5
- package/src/interfaces/User.ts +71 -69
- package/src/interfaces/index.ts +22 -22
- package/src/services/ApiService/index.ts +125 -125
- package/src/services/InitService/index.ts +7 -7
- package/src/services/index.ts +3 -3
- package/src/types/Global.d.ts +4 -4
- package/tsconfig.json +27 -27
- package/webpack.config.js +48 -48
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { useQuery } from "@tanstack/react-query";
|
|
2
|
-
import { EvaluationCycle } from "../interfaces";
|
|
3
|
-
import { getAuth0 } from "../services/ApiService";
|
|
4
|
-
|
|
5
|
-
export const useEvaluationCycleIdQueryHook = (evaluationId: string) => {
|
|
6
|
-
return useQuery(
|
|
7
|
-
['EVALUATION_CYCLE_ID_QUERY', evaluationId],
|
|
8
|
-
() => getAuth0<EvaluationCycle>(`/APE/EvaluationCycle/${evaluationId}`),
|
|
9
|
-
{
|
|
10
|
-
enabled: !!(evaluationId),
|
|
11
|
-
},
|
|
12
|
-
);
|
|
13
|
-
}
|
|
1
|
+
import { useQuery } from "@tanstack/react-query";
|
|
2
|
+
import { EvaluationCycle } from "../interfaces";
|
|
3
|
+
import { getAuth0 } from "../services/ApiService";
|
|
4
|
+
|
|
5
|
+
export const useEvaluationCycleIdQueryHook = (evaluationId: string) => {
|
|
6
|
+
return useQuery(
|
|
7
|
+
['EVALUATION_CYCLE_ID_QUERY', evaluationId],
|
|
8
|
+
() => getAuth0<EvaluationCycle>(`/APE/EvaluationCycle/${evaluationId}`),
|
|
9
|
+
{
|
|
10
|
+
enabled: !!(evaluationId),
|
|
11
|
+
},
|
|
12
|
+
);
|
|
13
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
-
import { EvaluationCycle } from '../interfaces/EvaluationCycle';
|
|
3
|
-
import { putAuth0, postAuth0 } from '../services/ApiService';
|
|
4
|
-
|
|
5
|
-
export const useEvaluationCycleMutateHook = () => {
|
|
6
|
-
const queryClient = useQueryClient();
|
|
7
|
-
return useMutation<EvaluationCycle, unknown, EvaluationCycle>((data: EvaluationCycle) => {
|
|
8
|
-
return data.Id ?
|
|
9
|
-
putAuth0(`/APE/EvaluationCycle/${data.Id}`, undefined, data) :
|
|
10
|
-
postAuth0('/APE/EvaluationCycle', undefined, data);
|
|
11
|
-
}, {
|
|
12
|
-
onSuccess: (data: EvaluationCycle) => {
|
|
13
|
-
queryClient.setQueryData(
|
|
14
|
-
['EVALUATION_CYCLE_ID_QUERY'], data);
|
|
15
|
-
},
|
|
16
|
-
});
|
|
17
|
-
}
|
|
1
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { EvaluationCycle } from '../interfaces/EvaluationCycle';
|
|
3
|
+
import { putAuth0, postAuth0 } from '../services/ApiService';
|
|
4
|
+
|
|
5
|
+
export const useEvaluationCycleMutateHook = () => {
|
|
6
|
+
const queryClient = useQueryClient();
|
|
7
|
+
return useMutation<EvaluationCycle, unknown, EvaluationCycle>((data: EvaluationCycle) => {
|
|
8
|
+
return data.Id ?
|
|
9
|
+
putAuth0(`/APE/EvaluationCycle/${data.Id}`, undefined, data) :
|
|
10
|
+
postAuth0('/APE/EvaluationCycle', undefined, data);
|
|
11
|
+
}, {
|
|
12
|
+
onSuccess: (data: EvaluationCycle) => {
|
|
13
|
+
queryClient.setQueryData(
|
|
14
|
+
['EVALUATION_CYCLE_ID_QUERY'], data);
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
}
|
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { EvaluationCycle, ResponseList } from "../interfaces";
|
|
3
|
-
import { getAuth0 } from "../services/ApiService";
|
|
4
|
-
|
|
5
|
-
export interface EvaluationCycleProps extends UseQueryOptions<ResponseList<"EvaluationCycles", EvaluationCycle>> {
|
|
6
|
-
tags?: string;
|
|
7
|
-
page?: number;
|
|
8
|
-
records?: number;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
1
|
+
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { EvaluationCycle, ResponseList } from "../interfaces";
|
|
3
|
+
import { getAuth0 } from "../services/ApiService";
|
|
4
|
+
|
|
5
|
+
export interface EvaluationCycleProps extends UseQueryOptions<ResponseList<"EvaluationCycles", EvaluationCycle>> {
|
|
6
|
+
tags?: string;
|
|
7
|
+
page?: number;
|
|
8
|
+
records?: number;
|
|
9
|
+
sortBy?: string;
|
|
10
|
+
sortDirection?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const useEvaluationCycleQueryHook = ({ tags, page, records, sortBy, sortDirection }: EvaluationCycleProps) => {
|
|
14
|
+
return useQuery(
|
|
15
|
+
['EVALUATION_CYCLE_QUERY', tags, page, records, sortBy, sortDirection],
|
|
16
|
+
() => getAuth0<ResponseList<"EvaluationCycles", EvaluationCycle>>('/APE/EvaluationCycle', {
|
|
17
|
+
pPage: page || 1,
|
|
18
|
+
pRecords: records || 50,
|
|
19
|
+
pSortBy: sortBy || 'Type',
|
|
20
|
+
pSortDirection: sortDirection || 'asc',
|
|
21
|
+
pTerms: tags,
|
|
22
|
+
}),
|
|
23
|
+
{
|
|
24
|
+
keepPreviousData: true,
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { ExpUsersAnswers, ResponseList } from "../interfaces";
|
|
3
|
-
import { getAuth0 } from "../services/ApiService";
|
|
4
|
-
|
|
5
|
-
export interface ExpUsersAnswersProps extends UseQueryOptions<ResponseList<"Users", ExpUsersAnswers>> {
|
|
6
|
-
tags?: string;
|
|
7
|
-
page?: number;
|
|
8
|
-
records?: number;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const useExpUsersAnswersQueryHook = ({ tags, page, records }: ExpUsersAnswersProps) => {
|
|
12
|
-
return useQuery(
|
|
13
|
-
['EXP_USERS_ANSWERS_QUERY', tags, page, records],
|
|
14
|
-
() => getAuth0<ResponseList<"Users", ExpUsersAnswers>>('/APE/Analytics/EvaluationCycle/UsersExperimental', {
|
|
15
|
-
pPage: page || 1,
|
|
16
|
-
pRecords: records || 50,
|
|
17
|
-
pSortBy: 'Type',
|
|
18
|
-
pSortDirection: 'asc',
|
|
19
|
-
pTerms: tags,
|
|
20
|
-
}),
|
|
21
|
-
{
|
|
22
|
-
keepPreviousData: true,
|
|
23
|
-
}
|
|
24
|
-
);
|
|
25
|
-
}
|
|
1
|
+
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { ExpUsersAnswers, ResponseList } from "../interfaces";
|
|
3
|
+
import { getAuth0 } from "../services/ApiService";
|
|
4
|
+
|
|
5
|
+
export interface ExpUsersAnswersProps extends UseQueryOptions<ResponseList<"Users", ExpUsersAnswers>> {
|
|
6
|
+
tags?: string;
|
|
7
|
+
page?: number;
|
|
8
|
+
records?: number;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const useExpUsersAnswersQueryHook = ({ tags, page, records }: ExpUsersAnswersProps) => {
|
|
12
|
+
return useQuery(
|
|
13
|
+
['EXP_USERS_ANSWERS_QUERY', tags, page, records],
|
|
14
|
+
() => getAuth0<ResponseList<"Users", ExpUsersAnswers>>('/APE/Analytics/EvaluationCycle/UsersExperimental', {
|
|
15
|
+
pPage: page || 1,
|
|
16
|
+
pRecords: records || 50,
|
|
17
|
+
pSortBy: 'Type',
|
|
18
|
+
pSortDirection: 'asc',
|
|
19
|
+
pTerms: tags,
|
|
20
|
+
}),
|
|
21
|
+
{
|
|
22
|
+
keepPreviousData: true,
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { JobTitles, ResponseList } from "../interfaces";
|
|
3
|
-
import { getAuth0 } from "../services";
|
|
4
|
-
|
|
5
|
-
interface JobTitlesQueryProps extends UseQueryOptions<JobTitles> {
|
|
6
|
-
records: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export const useJobTitlesQuery = ({ records }: JobTitlesQueryProps) => {
|
|
10
|
-
return useQuery(
|
|
11
|
-
['JOBTITLES_QUERY', records],
|
|
12
|
-
() => getAuth0<ResponseList<"JobTitles", JobTitles>>(`/JobTitles`, { pPage: 1, pRecords: records || 195 })
|
|
13
|
-
);
|
|
14
|
-
}
|
|
1
|
+
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { JobTitles, ResponseList } from "../interfaces";
|
|
3
|
+
import { getAuth0 } from "../services";
|
|
4
|
+
|
|
5
|
+
interface JobTitlesQueryProps extends UseQueryOptions<JobTitles> {
|
|
6
|
+
records: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const useJobTitlesQuery = ({ records }: JobTitlesQueryProps) => {
|
|
10
|
+
return useQuery(
|
|
11
|
+
['JOBTITLES_QUERY', records],
|
|
12
|
+
() => getAuth0<ResponseList<"JobTitles", JobTitles>>(`/JobTitles`, { pPage: 1, pRecords: records || 195 })
|
|
13
|
+
);
|
|
14
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { get, ProductsHierarchies, ResponseList } from '..';
|
|
2
|
-
import { useQuery, UseQueryOptions } from '@tanstack/react-query';
|
|
3
|
-
|
|
4
|
-
export interface useProductsHierarchiesQueryHook extends UseQueryOptions<ResponseList<"Hierarchies", ProductsHierarchies>> {
|
|
5
|
-
page?: number;
|
|
6
|
-
limit?: number;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export const useProductsHierarchiesQueryHook = ({ page, limit, ...options }: useProductsHierarchiesQueryHook) => {
|
|
10
|
-
return useQuery<ResponseList<"Hierarchies", ProductsHierarchies>>(['HIERARCHIES', page, limit], () =>
|
|
11
|
-
get('/Product/ProductHierarchies', { pPage: page, pRecords: limit || 50 }), options);
|
|
12
|
-
};
|
|
1
|
+
import { get, ProductsHierarchies, ResponseList } from '..';
|
|
2
|
+
import { useQuery, UseQueryOptions } from '@tanstack/react-query';
|
|
3
|
+
|
|
4
|
+
export interface useProductsHierarchiesQueryHook extends UseQueryOptions<ResponseList<"Hierarchies", ProductsHierarchies>> {
|
|
5
|
+
page?: number;
|
|
6
|
+
limit?: number;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const useProductsHierarchiesQueryHook = ({ page, limit, ...options }: useProductsHierarchiesQueryHook) => {
|
|
10
|
+
return useQuery<ResponseList<"Hierarchies", ProductsHierarchies>>(['HIERARCHIES', page, limit], () =>
|
|
11
|
+
get('/Product/ProductHierarchies', { pPage: page, pRecords: limit || 50 }), options);
|
|
12
|
+
};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { get, Product, ResponseList } from '..';
|
|
2
|
-
import { useInfiniteQuery, useQuery, UseQueryOptions } from '@tanstack/react-query';
|
|
3
|
-
|
|
4
|
-
export interface ProductsQuery extends UseQueryOptions<ResponseList<"Products", Product>> {
|
|
5
|
-
page?: number;
|
|
6
|
-
limit?: number;
|
|
7
|
-
filterBy?: string;
|
|
8
|
-
search?: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const useProductsQueryHook = ({ page, limit, ...options }: ProductsQuery) => {
|
|
12
|
-
return useQuery<ResponseList<"Products", Product>>(['PRODUCTS', page, limit], () =>
|
|
13
|
-
get('/Product/Products', { pPage: page, pRecords: limit || 50 }), options);
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export const useProductInfiniteQueryHook = ({ filterBy, search }: Omit<ProductsQuery, 'page' | 'limit' > = {}) => {
|
|
17
|
-
const infiniteQuery = useInfiniteQuery(['PRODUCTS_INFINITE', filterBy, search], ({ pageParam = 1 }) =>
|
|
18
|
-
get<ResponseList<"Products", Product>>('/Product/Products', {
|
|
19
|
-
pPage: pageParam, pRecords: 50,
|
|
20
|
-
}));
|
|
21
|
-
|
|
22
|
-
const pagesMulti = infiniteQuery.data?.pages?.map((page) => (page.Products as Product[]) || []) || [];
|
|
23
|
-
const allDataGrouped = ([] as Product[]).concat(...pagesMulti);
|
|
24
|
-
|
|
25
|
-
return {
|
|
26
|
-
...infiniteQuery,
|
|
27
|
-
count: infiniteQuery.data?.pages?.[0].Count || 0,
|
|
28
|
-
data: allDataGrouped,
|
|
29
|
-
}
|
|
30
|
-
};
|
|
1
|
+
import { get, Product, ResponseList } from '..';
|
|
2
|
+
import { useInfiniteQuery, useQuery, UseQueryOptions } from '@tanstack/react-query';
|
|
3
|
+
|
|
4
|
+
export interface ProductsQuery extends UseQueryOptions<ResponseList<"Products", Product>> {
|
|
5
|
+
page?: number;
|
|
6
|
+
limit?: number;
|
|
7
|
+
filterBy?: string;
|
|
8
|
+
search?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const useProductsQueryHook = ({ page, limit, ...options }: ProductsQuery) => {
|
|
12
|
+
return useQuery<ResponseList<"Products", Product>>(['PRODUCTS', page, limit], () =>
|
|
13
|
+
get('/Product/Products', { pPage: page, pRecords: limit || 50 }), options);
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export const useProductInfiniteQueryHook = ({ filterBy, search }: Omit<ProductsQuery, 'page' | 'limit' > = {}) => {
|
|
17
|
+
const infiniteQuery = useInfiniteQuery(['PRODUCTS_INFINITE', filterBy, search], ({ pageParam = 1 }) =>
|
|
18
|
+
get<ResponseList<"Products", Product>>('/Product/Products', {
|
|
19
|
+
pPage: pageParam, pRecords: 50,
|
|
20
|
+
}));
|
|
21
|
+
|
|
22
|
+
const pagesMulti = infiniteQuery.data?.pages?.map((page) => (page.Products as Product[]) || []) || [];
|
|
23
|
+
const allDataGrouped = ([] as Product[]).concat(...pagesMulti);
|
|
24
|
+
|
|
25
|
+
return {
|
|
26
|
+
...infiniteQuery,
|
|
27
|
+
count: infiniteQuery.data?.pages?.[0].Count || 0,
|
|
28
|
+
data: allDataGrouped,
|
|
29
|
+
}
|
|
30
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { useQuery } from "@tanstack/react-query";
|
|
2
|
-
import { Questionnaire } from "../interfaces";
|
|
3
|
-
import { getAuth0 } from "../services/ApiService";
|
|
4
|
-
|
|
5
|
-
export const useQuestionnaireIdQueryHook = (surveyId: string) => {
|
|
6
|
-
return useQuery(
|
|
7
|
-
['QUESTIONNAIRE_ID_QUERY', surveyId],
|
|
8
|
-
() => getAuth0<Questionnaire>(`/APE/Questionnaire/${surveyId}`),
|
|
9
|
-
{
|
|
10
|
-
enabled: !!(surveyId),
|
|
11
|
-
},
|
|
12
|
-
);
|
|
13
|
-
}
|
|
1
|
+
import { useQuery } from "@tanstack/react-query";
|
|
2
|
+
import { Questionnaire } from "../interfaces";
|
|
3
|
+
import { getAuth0 } from "../services/ApiService";
|
|
4
|
+
|
|
5
|
+
export const useQuestionnaireIdQueryHook = (surveyId: string) => {
|
|
6
|
+
return useQuery(
|
|
7
|
+
['QUESTIONNAIRE_ID_QUERY', surveyId],
|
|
8
|
+
() => getAuth0<Questionnaire>(`/APE/Questionnaire/${surveyId}`),
|
|
9
|
+
{
|
|
10
|
+
enabled: !!(surveyId),
|
|
11
|
+
},
|
|
12
|
+
);
|
|
13
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
-
import { Questionnaire } from '../interfaces/Questionnaire';
|
|
3
|
-
import { putAuth0, postAuth0 } from '../services/ApiService';
|
|
4
|
-
|
|
5
|
-
export const useQuestionnaireMutateHook = () => {
|
|
6
|
-
const queryClient = useQueryClient();
|
|
7
|
-
return useMutation<Questionnaire, unknown, Questionnaire>((data: Questionnaire) => {
|
|
8
|
-
return data.Id ?
|
|
9
|
-
putAuth0(`/APE/Questionnaire/${data.Id}`, undefined, data) :
|
|
10
|
-
postAuth0('/APE/Questionnaire', undefined, data);
|
|
11
|
-
}, {
|
|
12
|
-
onSuccess: (data: Questionnaire) => {
|
|
13
|
-
queryClient.setQueryData(
|
|
14
|
-
['QUESTIONNAIRE_ID_QUERY'], data);
|
|
15
|
-
},
|
|
16
|
-
});
|
|
17
|
-
}
|
|
1
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { Questionnaire } from '../interfaces/Questionnaire';
|
|
3
|
+
import { putAuth0, postAuth0 } from '../services/ApiService';
|
|
4
|
+
|
|
5
|
+
export const useQuestionnaireMutateHook = () => {
|
|
6
|
+
const queryClient = useQueryClient();
|
|
7
|
+
return useMutation<Questionnaire, unknown, Questionnaire>((data: Questionnaire) => {
|
|
8
|
+
return data.Id ?
|
|
9
|
+
putAuth0(`/APE/Questionnaire/${data.Id}`, undefined, data) :
|
|
10
|
+
postAuth0('/APE/Questionnaire', undefined, data);
|
|
11
|
+
}, {
|
|
12
|
+
onSuccess: (data: Questionnaire) => {
|
|
13
|
+
queryClient.setQueryData(
|
|
14
|
+
['QUESTIONNAIRE_ID_QUERY'], data);
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
}
|
|
@@ -1,27 +1,29 @@
|
|
|
1
|
-
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { Questionnaire, ResponseList } from "../interfaces";
|
|
3
|
-
import { getAuth0 } from "../services/ApiService";
|
|
4
|
-
|
|
5
|
-
export interface QuestionnaireQuery extends UseQueryOptions<ResponseList<"Questionnairezes", Questionnaire>> {
|
|
6
|
-
tags?: string;
|
|
7
|
-
page?: number;
|
|
8
|
-
records?: number;
|
|
9
|
-
queryField?: string;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
1
|
+
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { Questionnaire, ResponseList } from "../interfaces";
|
|
3
|
+
import { getAuth0 } from "../services/ApiService";
|
|
4
|
+
|
|
5
|
+
export interface QuestionnaireQuery extends UseQueryOptions<ResponseList<"Questionnairezes", Questionnaire>> {
|
|
6
|
+
tags?: string;
|
|
7
|
+
page?: number;
|
|
8
|
+
records?: number;
|
|
9
|
+
queryField?: string;
|
|
10
|
+
sortBy?: string;
|
|
11
|
+
sortDirection?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const useQuestionnaireQueryHook = ({ tags, page, records, queryField, sortBy, sortDirection }: QuestionnaireQuery) => {
|
|
15
|
+
return useQuery(
|
|
16
|
+
['QUESTIONNAIRE_QUERY', tags, page, records, sortBy, sortDirection, queryField],
|
|
17
|
+
() => getAuth0<ResponseList<"Questionnairezes", Questionnaire>>('/APE/Questionnaire', {
|
|
18
|
+
pPage: page || 1,
|
|
19
|
+
pRecords: records || 50,
|
|
20
|
+
pSortBy: sortBy || 'Type',
|
|
21
|
+
pSortDirection: sortDirection || 'asc',
|
|
22
|
+
pTerms: tags,
|
|
23
|
+
pQuery: queryField
|
|
24
|
+
}),
|
|
25
|
+
{
|
|
26
|
+
keepPreviousData: true,
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
-
import { SingleUser } from '../interfaces/User';
|
|
3
|
-
import { putAuth0, postAuth0 } from '../services/ApiService';
|
|
4
|
-
|
|
5
|
-
export const useSingleUserIdMutateQuery = (bodyType?: string) => {
|
|
6
|
-
const queryClient = useQueryClient();
|
|
7
|
-
return useMutation<SingleUser, unknown, SingleUser>((data: SingleUser | any) => {
|
|
8
|
-
const userId = bodyType === 'formdata' ? data.get('UserId') : data.UserId
|
|
9
|
-
return userId
|
|
10
|
-
? putAuth0(`/Users/${userId}`, undefined, data, bodyType)
|
|
11
|
-
: postAuth0('/Users/', undefined, data, bodyType);
|
|
12
|
-
}, {
|
|
13
|
-
onSuccess: (data: SingleUser) => {
|
|
14
|
-
queryClient.setQueryData(
|
|
15
|
-
['SINGLE_USER_ID_QUERY'], data);
|
|
16
|
-
},
|
|
17
|
-
});
|
|
18
|
-
}
|
|
1
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { SingleUser } from '../interfaces/User';
|
|
3
|
+
import { putAuth0, postAuth0 } from '../services/ApiService';
|
|
4
|
+
|
|
5
|
+
export const useSingleUserIdMutateQuery = (bodyType?: string) => {
|
|
6
|
+
const queryClient = useQueryClient();
|
|
7
|
+
return useMutation<SingleUser, unknown, SingleUser>((data: SingleUser | any) => {
|
|
8
|
+
const userId = bodyType === 'formdata' ? data.get('UserId') : data.UserId
|
|
9
|
+
return userId
|
|
10
|
+
? putAuth0(`/Users/${userId}`, undefined, data, bodyType)
|
|
11
|
+
: postAuth0('/Users/', undefined, data, bodyType);
|
|
12
|
+
}, {
|
|
13
|
+
onSuccess: (data: SingleUser) => {
|
|
14
|
+
queryClient.setQueryData(
|
|
15
|
+
['SINGLE_USER_ID_QUERY'], data);
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { useQuery } from "@tanstack/react-query";
|
|
2
|
-
import { User } from "../interfaces";
|
|
3
|
-
import { getAuth0 } from "../services/ApiService";
|
|
4
|
-
|
|
5
|
-
export const useSingleUserIdQueryHook = (userId: string) => {
|
|
6
|
-
return useQuery(
|
|
7
|
-
['SINGLE_USER_ID_QUERY', userId],
|
|
8
|
-
() => getAuth0<User>(`/Users/${userId}`),
|
|
9
|
-
{
|
|
10
|
-
enabled: !!(userId),
|
|
11
|
-
},
|
|
12
|
-
);
|
|
13
|
-
}
|
|
14
|
-
|
|
1
|
+
import { useQuery } from "@tanstack/react-query";
|
|
2
|
+
import { User } from "../interfaces";
|
|
3
|
+
import { getAuth0 } from "../services/ApiService";
|
|
4
|
+
|
|
5
|
+
export const useSingleUserIdQueryHook = (userId: string) => {
|
|
6
|
+
return useQuery(
|
|
7
|
+
['SINGLE_USER_ID_QUERY', userId],
|
|
8
|
+
() => getAuth0<User>(`/Users/${userId}`),
|
|
9
|
+
{
|
|
10
|
+
enabled: !!(userId),
|
|
11
|
+
},
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
-
import { User } from "../interfaces";
|
|
3
|
-
import { postAuth0 } from "../services/ApiService";
|
|
4
|
-
|
|
5
|
-
export const useSingleUserResetPassword = (userId: string) => {
|
|
6
|
-
const queryClient = useQueryClient();
|
|
7
|
-
return useMutation<User, unknown, User>(() => {
|
|
8
|
-
return postAuth0(`/Users/${userId}/resetPassword`)
|
|
9
|
-
}, {
|
|
10
|
-
onSuccess: (data: any) => {
|
|
11
|
-
queryClient.setQueryData(
|
|
12
|
-
['USER_RESET_PASSWORD_QUERY'], data);
|
|
13
|
-
},
|
|
14
|
-
});
|
|
15
|
-
}
|
|
1
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { User } from "../interfaces";
|
|
3
|
+
import { postAuth0 } from "../services/ApiService";
|
|
4
|
+
|
|
5
|
+
export const useSingleUserResetPassword = (userId: string) => {
|
|
6
|
+
const queryClient = useQueryClient();
|
|
7
|
+
return useMutation<User, unknown, User>(() => {
|
|
8
|
+
return postAuth0(`/Users/${userId}/resetPassword`)
|
|
9
|
+
}, {
|
|
10
|
+
onSuccess: (data: any) => {
|
|
11
|
+
queryClient.setQueryData(
|
|
12
|
+
['USER_RESET_PASSWORD_QUERY'], data);
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { Store } from "../interfaces/Store";
|
|
3
|
-
import { get } from "../services";
|
|
4
|
-
|
|
5
|
-
interface StoreQueryProps extends UseQueryOptions<Store> {
|
|
6
|
-
id: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
const FixedStore = "C62A59C7-DE0C-4EF7-9A5F-1929A4F93F46";
|
|
10
|
-
|
|
11
|
-
export const useStoreQuery = ({ id, ...options }: StoreQueryProps) => {
|
|
12
|
-
return useQuery(['STORE_QUERY', id], () => get(`/Franchise/Locations/${id || FixedStore}`), options);
|
|
13
|
-
}
|
|
1
|
+
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { Store } from "../interfaces/Store";
|
|
3
|
+
import { get } from "../services";
|
|
4
|
+
|
|
5
|
+
interface StoreQueryProps extends UseQueryOptions<Store> {
|
|
6
|
+
id: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const FixedStore = "C62A59C7-DE0C-4EF7-9A5F-1929A4F93F46";
|
|
10
|
+
|
|
11
|
+
export const useStoreQuery = ({ id, ...options }: StoreQueryProps) => {
|
|
12
|
+
return useQuery(['STORE_QUERY', id], () => get(`/Franchise/Locations/${id || FixedStore}`), options);
|
|
13
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { useQuery } from "@tanstack/react-query";
|
|
2
|
-
import { TermNotification } from "../interfaces";
|
|
3
|
-
import { getAuth0 } from "../services/ApiService";
|
|
4
|
-
|
|
5
|
-
export const useTermNotificationQueryHook = () => {
|
|
6
|
-
return useQuery(
|
|
7
|
-
['TERM_NOTIFICATION_QUERY'],
|
|
8
|
-
() => getAuth0<TermNotification[]>(`/APE/TermNotification`),
|
|
9
|
-
);
|
|
10
|
-
}
|
|
11
|
-
|
|
1
|
+
import { useQuery } from "@tanstack/react-query";
|
|
2
|
+
import { TermNotification } from "../interfaces";
|
|
3
|
+
import { getAuth0 } from "../services/ApiService";
|
|
4
|
+
|
|
5
|
+
export const useTermNotificationQueryHook = () => {
|
|
6
|
+
return useQuery(
|
|
7
|
+
['TERM_NOTIFICATION_QUERY'],
|
|
8
|
+
() => getAuth0<TermNotification[]>(`/APE/TermNotification`),
|
|
9
|
+
);
|
|
10
|
+
}
|
|
11
|
+
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { useMutation, useQueryClient, UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import { EvaluationCycle } from '../interfaces/EvaluationCycle';
|
|
3
|
-
import { putAuth0 } from '../services/ApiService';
|
|
4
|
-
|
|
5
|
-
export interface UpdateSupervisorMutateQuery extends UseQueryOptions<EvaluationCycle> {
|
|
6
|
-
evaluationCycleId?: string;
|
|
7
|
-
userId?: string;
|
|
8
|
-
supervisorId?: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const useUpdateSupervisorMutateQueryHook = ({ evaluationCycleId, userId, supervisorId }: UpdateSupervisorMutateQuery) => {
|
|
12
|
-
const queryClient = useQueryClient();
|
|
13
|
-
return useMutation<EvaluationCycle, unknown, EvaluationCycle>((data: EvaluationCycle) => {
|
|
14
|
-
return putAuth0(`/APE/EvaluationCycle/UpdateSupervisor`, {
|
|
15
|
-
pEvaluationCycleId: evaluationCycleId,
|
|
16
|
-
pUserId: userId,
|
|
17
|
-
pSupervisor: supervisorId
|
|
18
|
-
},
|
|
19
|
-
data
|
|
20
|
-
);
|
|
21
|
-
}, {
|
|
22
|
-
onSuccess: (data: EvaluationCycle) => {
|
|
23
|
-
queryClient.setQueryData(
|
|
24
|
-
['UPDATE_SUPERVISOR'], data);
|
|
25
|
-
},
|
|
26
|
-
});
|
|
27
|
-
}
|
|
1
|
+
import { useMutation, useQueryClient, UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import { EvaluationCycle } from '../interfaces/EvaluationCycle';
|
|
3
|
+
import { putAuth0 } from '../services/ApiService';
|
|
4
|
+
|
|
5
|
+
export interface UpdateSupervisorMutateQuery extends UseQueryOptions<EvaluationCycle> {
|
|
6
|
+
evaluationCycleId?: string;
|
|
7
|
+
userId?: string;
|
|
8
|
+
supervisorId?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const useUpdateSupervisorMutateQueryHook = ({ evaluationCycleId, userId, supervisorId }: UpdateSupervisorMutateQuery) => {
|
|
12
|
+
const queryClient = useQueryClient();
|
|
13
|
+
return useMutation<EvaluationCycle, unknown, EvaluationCycle>((data: EvaluationCycle) => {
|
|
14
|
+
return putAuth0(`/APE/EvaluationCycle/UpdateSupervisor`, {
|
|
15
|
+
pEvaluationCycleId: evaluationCycleId,
|
|
16
|
+
pUserId: userId,
|
|
17
|
+
pSupervisor: supervisorId
|
|
18
|
+
},
|
|
19
|
+
data
|
|
20
|
+
);
|
|
21
|
+
}, {
|
|
22
|
+
onSuccess: (data: EvaluationCycle) => {
|
|
23
|
+
queryClient.setQueryData(
|
|
24
|
+
['UPDATE_SUPERVISOR'], data);
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
}
|