@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,15 +1,15 @@
|
|
|
1
|
-
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
-
import { User } from "../interfaces";
|
|
3
|
-
import { putAuth0 } from "../services/ApiService";
|
|
4
|
-
|
|
5
|
-
export const useUserBlockQueryHook = () => {
|
|
6
|
-
const queryClient = useQueryClient();
|
|
7
|
-
return useMutation<User, unknown, User>((data: User) => {
|
|
8
|
-
return putAuth0(`/Users/block?pUserId=${data.UserId}`)
|
|
9
|
-
}, {
|
|
10
|
-
onSuccess: (data: User) => {
|
|
11
|
-
queryClient.setQueryData(
|
|
12
|
-
['USER_LIST_QUERY'], data);
|
|
13
|
-
},
|
|
14
|
-
});
|
|
15
|
-
}
|
|
1
|
+
import { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { User } from "../interfaces";
|
|
3
|
+
import { putAuth0 } from "../services/ApiService";
|
|
4
|
+
|
|
5
|
+
export const useUserBlockQueryHook = () => {
|
|
6
|
+
const queryClient = useQueryClient();
|
|
7
|
+
return useMutation<User, unknown, User>((data: User) => {
|
|
8
|
+
return putAuth0(`/Users/block?pUserId=${data.UserId}`)
|
|
9
|
+
}, {
|
|
10
|
+
onSuccess: (data: User) => {
|
|
11
|
+
queryClient.setQueryData(
|
|
12
|
+
['USER_LIST_QUERY'], data);
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
}
|
|
@@ -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 useUserEmailVerifQueryHook = () => {
|
|
6
|
-
const queryClient = useQueryClient();
|
|
7
|
-
return useMutation<User, unknown, User>((data: User) => {
|
|
8
|
-
return postAuth0(`/Users/sendVerificationEmail?pUserId=${data.UserId}`)
|
|
9
|
-
}, {
|
|
10
|
-
onSuccess: (data: User) => {
|
|
11
|
-
queryClient.setQueryData(
|
|
12
|
-
['USER_LIST_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 useUserEmailVerifQueryHook = () => {
|
|
6
|
+
const queryClient = useQueryClient();
|
|
7
|
+
return useMutation<User, unknown, User>((data: User) => {
|
|
8
|
+
return postAuth0(`/Users/sendVerificationEmail?pUserId=${data.UserId}`)
|
|
9
|
+
}, {
|
|
10
|
+
onSuccess: (data: User) => {
|
|
11
|
+
queryClient.setQueryData(
|
|
12
|
+
['USER_LIST_QUERY'], data);
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
}
|
|
@@ -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 useUserIdQueryHook = (userId: string) => {
|
|
6
|
-
return useQuery(
|
|
7
|
-
['USER_ID_QUERY', userId],
|
|
8
|
-
() => getAuth0<User>(`/APE/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 useUserIdQueryHook = (userId: string) => {
|
|
6
|
+
return useQuery(
|
|
7
|
+
['USER_ID_QUERY', userId],
|
|
8
|
+
() => getAuth0<User>(`/APE/Users/${userId}`),
|
|
9
|
+
{
|
|
10
|
+
enabled: !!(userId),
|
|
11
|
+
},
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { User, ResponseList } from "../interfaces";
|
|
3
|
-
import { getAuth0 } from "../services/ApiService";
|
|
4
|
-
|
|
5
|
-
export interface UserListQuery extends UseQueryOptions<ResponseList<"Users", User>> {
|
|
6
|
-
tags?: string;
|
|
7
|
-
records: number;
|
|
8
|
-
page: number;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export const useUserListQueryHook = ({ tags, records, page }: UserListQuery) => {
|
|
12
|
-
return useQuery(
|
|
13
|
-
['USER_LIST_QUERY', tags, records, page],
|
|
14
|
-
() => getAuth0<ResponseList<"Users", User>>('/Users', {
|
|
15
|
-
pPage: page,
|
|
16
|
-
pRecords: records,
|
|
17
|
-
pSortBy: 'Code',
|
|
18
|
-
pSortDirection: 'asc',
|
|
19
|
-
pTerms: tags,
|
|
20
|
-
}),
|
|
21
|
-
{
|
|
22
|
-
keepPreviousData: true,
|
|
23
|
-
},
|
|
24
|
-
);
|
|
25
|
-
}
|
|
1
|
+
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { User, ResponseList } from "../interfaces";
|
|
3
|
+
import { getAuth0 } from "../services/ApiService";
|
|
4
|
+
|
|
5
|
+
export interface UserListQuery extends UseQueryOptions<ResponseList<"Users", User>> {
|
|
6
|
+
tags?: string;
|
|
7
|
+
records: number;
|
|
8
|
+
page: number;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const useUserListQueryHook = ({ tags, records, page }: UserListQuery) => {
|
|
12
|
+
return useQuery(
|
|
13
|
+
['USER_LIST_QUERY', tags, records, page],
|
|
14
|
+
() => getAuth0<ResponseList<"Users", User>>('/Users', {
|
|
15
|
+
pPage: page,
|
|
16
|
+
pRecords: records,
|
|
17
|
+
pSortBy: 'Code',
|
|
18
|
+
pSortDirection: 'asc',
|
|
19
|
+
pTerms: tags,
|
|
20
|
+
}),
|
|
21
|
+
{
|
|
22
|
+
keepPreviousData: true,
|
|
23
|
+
},
|
|
24
|
+
);
|
|
25
|
+
}
|
|
@@ -1,29 +1,31 @@
|
|
|
1
|
-
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
-
import { User, ResponseList } from "../interfaces";
|
|
3
|
-
import { getAuth0 } from "../services/ApiService";
|
|
4
|
-
|
|
5
|
-
export interface UserQuery extends UseQueryOptions<ResponseList<"Users", User>> {
|
|
6
|
-
tags?: string;
|
|
7
|
-
page?: number;
|
|
8
|
-
records?: number;
|
|
9
|
-
evaluationId?: string;
|
|
10
|
-
queryField?: string;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
1
|
+
import { useQuery, UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { User, ResponseList } from "../interfaces";
|
|
3
|
+
import { getAuth0 } from "../services/ApiService";
|
|
4
|
+
|
|
5
|
+
export interface UserQuery extends UseQueryOptions<ResponseList<"Users", User>> {
|
|
6
|
+
tags?: string;
|
|
7
|
+
page?: number;
|
|
8
|
+
records?: number;
|
|
9
|
+
evaluationId?: string;
|
|
10
|
+
queryField?: string;
|
|
11
|
+
sortBy?: string;
|
|
12
|
+
sortDirection?: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const useUserQueryHook = ({ tags, evaluationId, page, records, queryField, sortBy, sortDirection }: UserQuery) => {
|
|
16
|
+
return useQuery(
|
|
17
|
+
['USER_QUERY', tags, evaluationId, page, records, queryField],
|
|
18
|
+
() => getAuth0<ResponseList<"Users", User>>('/APE/Users', {
|
|
19
|
+
pPage: page || 1,
|
|
20
|
+
pRecords: records || 50,
|
|
21
|
+
pSortBy: sortBy || 'Type',
|
|
22
|
+
pSortDirection: sortDirection || 'asc',
|
|
23
|
+
pTerms: tags,
|
|
24
|
+
pEvaluationCycleId: evaluationId,
|
|
25
|
+
pQuery: queryField
|
|
26
|
+
}),
|
|
27
|
+
{
|
|
28
|
+
keepPreviousData: true,
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
// Hacky way because of the hooks and the npm link
|
|
3
|
-
export { Form } from 'antd';
|
|
4
|
-
export * from './interfaces';
|
|
5
|
-
export * from './services';
|
|
6
|
-
export * from './components';
|
|
7
|
-
export * from './constants';
|
|
8
|
-
export * from './hooks';
|
|
9
|
-
import './global.scss';
|
|
1
|
+
|
|
2
|
+
// Hacky way because of the hooks and the npm link
|
|
3
|
+
export { Form } from 'antd';
|
|
4
|
+
export * from './interfaces';
|
|
5
|
+
export * from './services';
|
|
6
|
+
export * from './components';
|
|
7
|
+
export * from './constants';
|
|
8
|
+
export * from './hooks';
|
|
9
|
+
import './global.scss';
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
export interface AnalyticsEvaluationCycle {
|
|
3
|
-
Label: string;
|
|
4
|
-
Items: Items[];
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export interface Items {
|
|
8
|
-
Id: string;
|
|
9
|
-
Name: string;
|
|
10
|
-
Categorys: CategoriesInterface[];
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface CategoriesInterface {
|
|
14
|
-
CategoryId: string;
|
|
15
|
-
CategoryName: string;
|
|
16
|
-
SubCategory: CategoriesInterface[];
|
|
17
|
-
Questions: QuestionsInterface[];
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface QuestionsInterface {
|
|
21
|
-
QuestionId: string;
|
|
22
|
-
QuestionName: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
1
|
+
|
|
2
|
+
export interface AnalyticsEvaluationCycle {
|
|
3
|
+
Label: string;
|
|
4
|
+
Items: Items[];
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface Items {
|
|
8
|
+
Id: string;
|
|
9
|
+
Name: string;
|
|
10
|
+
Categorys: CategoriesInterface[];
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface CategoriesInterface {
|
|
14
|
+
CategoryId: string;
|
|
15
|
+
CategoryName: string;
|
|
16
|
+
SubCategory: CategoriesInterface[];
|
|
17
|
+
Questions: QuestionsInterface[];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface QuestionsInterface {
|
|
21
|
+
QuestionId: string;
|
|
22
|
+
QuestionName: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
export interface AnalyticsUserId {
|
|
3
|
-
StartDate: string;
|
|
4
|
-
EndDate: string;
|
|
5
|
-
EvaluationCycleState: string;
|
|
6
|
-
EvaluationCycleId: string;
|
|
7
|
-
EvaluationCycleName: string;
|
|
8
|
-
UserName: string;
|
|
9
|
-
Type: string;
|
|
10
|
-
UserGrade: string;
|
|
11
|
-
SupervisorGrade: string;
|
|
12
|
-
IsSupervisor: boolean;
|
|
13
|
-
}
|
|
1
|
+
|
|
2
|
+
export interface AnalyticsUserId {
|
|
3
|
+
StartDate: string;
|
|
4
|
+
EndDate: string;
|
|
5
|
+
EvaluationCycleState: string;
|
|
6
|
+
EvaluationCycleId: string;
|
|
7
|
+
EvaluationCycleName: string;
|
|
8
|
+
UserName: string;
|
|
9
|
+
Type: string;
|
|
10
|
+
UserGrade: string;
|
|
11
|
+
SupervisorGrade: string;
|
|
12
|
+
IsSupervisor: boolean;
|
|
13
|
+
}
|
package/src/interfaces/Answer.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Categories, Questions } from './Questionnaire';
|
|
2
|
-
|
|
3
|
-
export interface Answer {
|
|
4
|
-
Id: string;
|
|
5
|
-
EvaluationCycleId: string;
|
|
6
|
-
QuestionnaireId: string;
|
|
7
|
-
UserId: string;
|
|
8
|
-
TargetUserId: string;
|
|
9
|
-
StartDate: number;
|
|
10
|
-
EndDate: number;
|
|
11
|
-
CategoryAnswers: Categories[];
|
|
12
|
-
Question: Questions;
|
|
13
|
-
}
|
|
1
|
+
import { Categories, Questions } from './Questionnaire';
|
|
2
|
+
|
|
3
|
+
export interface Answer {
|
|
4
|
+
Id: string;
|
|
5
|
+
EvaluationCycleId: string;
|
|
6
|
+
QuestionnaireId: string;
|
|
7
|
+
UserId: string;
|
|
8
|
+
TargetUserId: string;
|
|
9
|
+
StartDate: number;
|
|
10
|
+
EndDate: number;
|
|
11
|
+
CategoryAnswers: Categories[];
|
|
12
|
+
Question: Questions;
|
|
13
|
+
}
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
export interface AnswersUserSupervisor {
|
|
2
|
-
Id: string;
|
|
3
|
-
EvaluationCycleId: string;
|
|
4
|
-
QuestionnaireId: string;
|
|
5
|
-
UserId: string;
|
|
6
|
-
TargetUserId: string;
|
|
7
|
-
StartDate: number,
|
|
8
|
-
EndDate: number,
|
|
9
|
-
UserFinalScore: string;
|
|
10
|
-
SupervisorFinalScore: string;
|
|
11
|
-
UserColer: string;
|
|
12
|
-
SupervisorColer: string;
|
|
13
|
-
CategoryAnswers: CategoryAnswers[];
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
interface CategoryAnswers {
|
|
17
|
-
Title: string;
|
|
18
|
-
Key: string;
|
|
19
|
-
Data: Data,
|
|
20
|
-
Children: CategoryAnswers[];
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
interface Data {
|
|
24
|
-
Id: string;
|
|
25
|
-
CategoryId: string;
|
|
26
|
-
CategoryName: string;
|
|
27
|
-
OpenAnswer: true,
|
|
28
|
-
GeneralEvaluationLevel: number | string;
|
|
29
|
-
Grade: string | number;
|
|
30
|
-
Description: string;
|
|
31
|
-
Score: string;
|
|
32
|
-
SupervisorScore: string;
|
|
33
|
-
Questions: Questions[];
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
interface Questions {
|
|
37
|
-
Id: string;
|
|
38
|
-
QuestionId: string;
|
|
39
|
-
Subject: string;
|
|
40
|
-
Description: string;
|
|
41
|
-
Grade: string | number;
|
|
42
|
-
UserAnswer: string;
|
|
43
|
-
SupervisorAnswer: string;
|
|
44
|
-
}
|
|
45
|
-
|
|
1
|
+
export interface AnswersUserSupervisor {
|
|
2
|
+
Id: string;
|
|
3
|
+
EvaluationCycleId: string;
|
|
4
|
+
QuestionnaireId: string;
|
|
5
|
+
UserId: string;
|
|
6
|
+
TargetUserId: string;
|
|
7
|
+
StartDate: number,
|
|
8
|
+
EndDate: number,
|
|
9
|
+
UserFinalScore: string;
|
|
10
|
+
SupervisorFinalScore: string;
|
|
11
|
+
UserColer: string;
|
|
12
|
+
SupervisorColer: string;
|
|
13
|
+
CategoryAnswers: CategoryAnswers[];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface CategoryAnswers {
|
|
17
|
+
Title: string;
|
|
18
|
+
Key: string;
|
|
19
|
+
Data: Data,
|
|
20
|
+
Children: CategoryAnswers[];
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
interface Data {
|
|
24
|
+
Id: string;
|
|
25
|
+
CategoryId: string;
|
|
26
|
+
CategoryName: string;
|
|
27
|
+
OpenAnswer: true,
|
|
28
|
+
GeneralEvaluationLevel: number | string;
|
|
29
|
+
Grade: string | number;
|
|
30
|
+
Description: string;
|
|
31
|
+
Score: string;
|
|
32
|
+
SupervisorScore: string;
|
|
33
|
+
Questions: Questions[];
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
interface Questions {
|
|
37
|
+
Id: string;
|
|
38
|
+
QuestionId: string;
|
|
39
|
+
Subject: string;
|
|
40
|
+
Description: string;
|
|
41
|
+
Grade: string | number;
|
|
42
|
+
UserAnswer: string;
|
|
43
|
+
SupervisorAnswer: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
export interface ApplicationsByCategory {
|
|
3
|
-
Id: string;
|
|
4
|
-
Name: string;
|
|
5
|
-
Applications: ApplicationAttribute[];
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface ApplicationAttribute {
|
|
9
|
-
Id: string;
|
|
10
|
-
Key: string;
|
|
11
|
-
Name: string;
|
|
12
|
-
Description: string;
|
|
13
|
-
URL: string;
|
|
14
|
-
ImageURL: string;
|
|
15
|
-
Status: string;
|
|
16
|
-
CreateDate: number;
|
|
17
|
-
UpdateDate: number;
|
|
18
|
-
}
|
|
19
|
-
|
|
1
|
+
|
|
2
|
+
export interface ApplicationsByCategory {
|
|
3
|
+
Id: string;
|
|
4
|
+
Name: string;
|
|
5
|
+
Applications: ApplicationAttribute[];
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface ApplicationAttribute {
|
|
9
|
+
Id: string;
|
|
10
|
+
Key: string;
|
|
11
|
+
Name: string;
|
|
12
|
+
Description: string;
|
|
13
|
+
URL: string;
|
|
14
|
+
ImageURL: string;
|
|
15
|
+
Status: string;
|
|
16
|
+
CreateDate: number;
|
|
17
|
+
UpdateDate: number;
|
|
18
|
+
}
|
|
19
|
+
|
package/src/interfaces/Brand.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export interface Brand {
|
|
3
|
-
Id: string;
|
|
4
|
-
Name:string;
|
|
1
|
+
|
|
2
|
+
export interface Brand {
|
|
3
|
+
Id: string;
|
|
4
|
+
Name:string;
|
|
5
5
|
}
|
package/src/interfaces/Cart.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Product, Customer } from "./";
|
|
2
|
-
|
|
3
|
-
export interface Cart {
|
|
4
|
-
customer: Customer | null;
|
|
5
|
-
products: CartProduct[];
|
|
6
|
-
total: number;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export interface CartProduct extends Product {
|
|
11
|
-
quantity: number;
|
|
12
|
-
SKU: string;
|
|
13
|
-
}
|
|
1
|
+
import { Product, Customer } from "./";
|
|
2
|
+
|
|
3
|
+
export interface Cart {
|
|
4
|
+
customer: Customer | null;
|
|
5
|
+
products: CartProduct[];
|
|
6
|
+
total: number;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
export interface CartProduct extends Product {
|
|
11
|
+
quantity: number;
|
|
12
|
+
SKU: string;
|
|
13
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
export interface Configuration {
|
|
3
|
-
ApiHost: string;
|
|
4
|
-
ApiPath: string;
|
|
5
|
-
token?: string;
|
|
6
|
-
tokenAuth0?: string;
|
|
7
|
-
}
|
|
1
|
+
|
|
2
|
+
export interface Configuration {
|
|
3
|
+
ApiHost: string;
|
|
4
|
+
ApiPath: string;
|
|
5
|
+
token?: string;
|
|
6
|
+
tokenAuth0?: string;
|
|
7
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface ContractStates {
|
|
2
|
-
Id: string;
|
|
3
|
-
Name: string;
|
|
4
|
-
Status: string;
|
|
5
|
-
CreateDate: number;
|
|
6
|
-
UpdatedDate: number;
|
|
7
|
-
}
|
|
1
|
+
export interface ContractStates {
|
|
2
|
+
Id: string;
|
|
3
|
+
Name: string;
|
|
4
|
+
Status: string;
|
|
5
|
+
CreateDate: number;
|
|
6
|
+
UpdatedDate: number;
|
|
7
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export interface Countries {
|
|
2
|
-
Id: string;
|
|
3
|
-
ISO2: string;
|
|
4
|
-
ISO3: string;
|
|
5
|
-
Name: string;
|
|
6
|
-
Status: string;
|
|
7
|
-
CreateDate: number;
|
|
8
|
-
UpdateDate: number;
|
|
9
|
-
DialCode: any;
|
|
10
|
-
}
|
|
1
|
+
export interface Countries {
|
|
2
|
+
Id: string;
|
|
3
|
+
ISO2: string;
|
|
4
|
+
ISO3: string;
|
|
5
|
+
Name: string;
|
|
6
|
+
Status: string;
|
|
7
|
+
CreateDate: number;
|
|
8
|
+
UpdateDate: number;
|
|
9
|
+
DialCode: any;
|
|
10
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
export interface Customer {
|
|
3
|
-
Name: string;
|
|
4
|
-
CustomerId: string;
|
|
5
|
-
MemberNumber: string;
|
|
6
|
-
Email: string;
|
|
7
|
-
FirstName: string;
|
|
8
|
-
LastName: string;
|
|
9
|
-
Gender: string;
|
|
10
|
-
Birthday: string;
|
|
11
|
-
Jobtitle: string;
|
|
12
|
-
Address: CustomerAddress;
|
|
13
|
-
DoNotPhone: boolean;
|
|
14
|
-
DoNotEmail: boolean;
|
|
15
|
-
Mobilephone: string;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface CustomerAddress {
|
|
19
|
-
Address: string;
|
|
20
|
-
Zip: string;
|
|
21
|
-
City: string;
|
|
22
|
-
Country: string;
|
|
23
|
-
}
|
|
1
|
+
|
|
2
|
+
export interface Customer {
|
|
3
|
+
Name: string;
|
|
4
|
+
CustomerId: string;
|
|
5
|
+
MemberNumber: string;
|
|
6
|
+
Email: string;
|
|
7
|
+
FirstName: string;
|
|
8
|
+
LastName: string;
|
|
9
|
+
Gender: string;
|
|
10
|
+
Birthday: string;
|
|
11
|
+
Jobtitle: string;
|
|
12
|
+
Address: CustomerAddress;
|
|
13
|
+
DoNotPhone: boolean;
|
|
14
|
+
DoNotEmail: boolean;
|
|
15
|
+
Mobilephone: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface CustomerAddress {
|
|
19
|
+
Address: string;
|
|
20
|
+
Zip: string;
|
|
21
|
+
City: string;
|
|
22
|
+
Country: string;
|
|
23
|
+
}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
export interface EvaluationCycle {
|
|
3
|
-
Id: string;
|
|
4
|
-
UserId: string;
|
|
5
|
-
Type: number;
|
|
6
|
-
Name: string;
|
|
7
|
-
Year: number;
|
|
8
|
-
DateInterval: { StartDate: number; EndDate: number };
|
|
9
|
-
Users: EvaluationUsers[];
|
|
10
|
-
QuestionnaireId: string;
|
|
11
|
-
QuestionnaireName: string;
|
|
12
|
-
State: string;
|
|
13
|
-
Status: string;
|
|
14
|
-
Notifications: EvaluationNotifications[];
|
|
15
|
-
NotificationAgenda: string;
|
|
16
|
-
TotalNumberOfUsers: number;
|
|
17
|
-
TotalNumberOfAnswers: number;
|
|
18
|
-
IsOnlyForUsers: boolean;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface EvaluationNotifications {
|
|
22
|
-
NotificationTypeId: string;
|
|
23
|
-
NotificationReceiver: string;
|
|
24
|
-
Date: number;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface EvaluationUsers {
|
|
28
|
-
UserId: string;
|
|
29
|
-
UserAnswer: boolean;
|
|
30
|
-
SupervisorId: string;
|
|
31
|
-
SupervisorAnswer: boolean;
|
|
32
|
-
}
|
|
1
|
+
|
|
2
|
+
export interface EvaluationCycle {
|
|
3
|
+
Id: string;
|
|
4
|
+
UserId: string;
|
|
5
|
+
Type: number;
|
|
6
|
+
Name: string;
|
|
7
|
+
Year: number;
|
|
8
|
+
DateInterval: { StartDate: number; EndDate: number };
|
|
9
|
+
Users: EvaluationUsers[];
|
|
10
|
+
QuestionnaireId: string;
|
|
11
|
+
QuestionnaireName: string;
|
|
12
|
+
State: string;
|
|
13
|
+
Status: string;
|
|
14
|
+
Notifications: EvaluationNotifications[];
|
|
15
|
+
NotificationAgenda: string;
|
|
16
|
+
TotalNumberOfUsers: number;
|
|
17
|
+
TotalNumberOfAnswers: number;
|
|
18
|
+
IsOnlyForUsers: boolean;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface EvaluationNotifications {
|
|
22
|
+
NotificationTypeId: string;
|
|
23
|
+
NotificationReceiver: string;
|
|
24
|
+
Date: number;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface EvaluationUsers {
|
|
28
|
+
UserId: string;
|
|
29
|
+
UserAnswer: boolean;
|
|
30
|
+
SupervisorId: string;
|
|
31
|
+
SupervisorAnswer: boolean;
|
|
32
|
+
}
|