@omniumretail/shared-resources 0.0.92 → 0.0.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +1 -0
- package/dist/styles.css +7 -0
- package/dist/types/components/BottomDrawer/index.d.ts +9 -0
- package/dist/types/components/Button/index.d.ts +2 -0
- package/dist/types/components/Footer/index.d.ts +3 -0
- package/dist/types/components/Form/FormInputField/index.d.ts +8 -0
- package/dist/types/components/Form/FormSelectField/index.d.ts +9 -0
- package/dist/types/components/Form/index.d.ts +2 -0
- package/dist/types/components/Header/index.d.ts +4 -0
- package/dist/types/components/Link/index.d.ts +6 -0
- package/dist/types/components/Navigation/index.d.ts +8 -0
- package/dist/types/components/Page/index.d.ts +13 -0
- package/dist/types/components/SharedContextProvider/index.d.ts +7 -0
- package/dist/types/components/index.d.ts +9 -0
- package/dist/types/constants/Icons.d.ts +15 -0
- package/dist/types/constants/QueryClient.d.ts +2 -0
- package/dist/types/constants/index.d.ts +2 -0
- package/dist/types/contexts/useStore.d.ts +8 -0
- package/dist/types/hooks/Analytics/get/useAnalyticsEvaluationCyclesQuery.hook.d.ts +7 -0
- package/dist/types/hooks/Analytics/get/useAnalyticsQuestionsQuery.hook.d.ts +9 -0
- package/dist/types/hooks/Analytics/get/useAnalyticsSideBarQuery.hook.d.ts +7 -0
- package/dist/types/hooks/Analytics/get/useAnalyticsUserIdQuery.hook.d.ts +11 -0
- package/dist/types/hooks/Analytics/get/useAnalyticsUserQuery.hook.d.ts +14 -0
- package/dist/types/hooks/Answer/get/useAnswerIdQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Answer/get/useAnswersUserSupervisorQuery.hook.d.ts +7 -0
- package/dist/types/hooks/Answer/mutate/useAnswerMutateQuery.hook.d.ts +9 -0
- package/dist/types/hooks/AsvProduct/get/getProductsByRefQuery.hook.d.ts +8 -0
- package/dist/types/hooks/AsvProduct/get/getProductsByStoreQuery.hook.d.ts +10 -0
- package/dist/types/hooks/EvaluationCycle/get/useEvaluationCycleIdQuery.hook.d.ts +2 -0
- package/dist/types/hooks/EvaluationCycle/get/useEvaluationCycleQuery.hook.d.ts +11 -0
- package/dist/types/hooks/EvaluationCycle/mutate/useEvaluationCycleMutateQuery.hook.d.ts +2 -0
- package/dist/types/hooks/EvaluationCycle/others/activateEvaluationCycleQuery.hook.d.ts +2 -0
- package/dist/types/hooks/EvaluationCycle/others/cancelEvaluationCycleQuery.hook.d.ts +2 -0
- package/dist/types/hooks/EvaluationCycle/others/deleteEvaluationCycleQuery.hook.d.ts +2 -0
- package/dist/types/hooks/EvaluationCycle/others/finishEvaluationCycleQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Others/useApplicationDataQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Others/useContractStatesQuery.hook.d.ts +7 -0
- package/dist/types/hooks/Others/useCountriesQuery.hook.d.ts +7 -0
- package/dist/types/hooks/Others/useCustomersQuery.hook.d.ts +142 -0
- package/dist/types/hooks/Others/useJobTitlesQuery.hook.d.ts +7 -0
- package/dist/types/hooks/Others/useTermNotificationQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Product/get/useProductHierarchies.hook.d.ts +7 -0
- package/dist/types/hooks/Product/get/useProductsQuery.hook.d.ts +142 -0
- package/dist/types/hooks/Questionnaire/get/useQuestionnaireIdQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Questionnaire/get/useQuestionnaireQuery.hook.d.ts +11 -0
- package/dist/types/hooks/Questionnaire/mutate/useQuestionnaireMutateQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Questionnaire/others/activateQuestionnaireQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Questionnaire/others/cancelQuestionnaireQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Questionnaire/others/deleteQuestionnaireQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Questionnaire/others/duplicateQuestionnaireQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Questionnaire/others/finishQuestionnaireQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Roles/get/useAllRolesQuery.hook.d.ts +11 -0
- package/dist/types/hooks/Roles/get/useAllStoreQuery.hook.d.ts +13 -0
- package/dist/types/hooks/Store/useStoreByCodeQuery.hook.d.ts +8 -0
- package/dist/types/hooks/Store/useStoreQuery.d.ts +7 -0
- package/dist/types/hooks/Users/get/useExpUsersAnswersQuery.hook.d.ts +8 -0
- package/dist/types/hooks/Users/get/useSingleUserIdQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Users/get/useUserIdQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Users/get/useUserListQuery.hook.d.ts +11 -0
- package/dist/types/hooks/Users/get/useUserQuery.hook.d.ts +12 -0
- package/dist/types/hooks/Users/mutate/useSingleUserIdMutateQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Users/mutate/useUpdateSupervisorMutateQuery.hook.d.ts +8 -0
- package/dist/types/hooks/Users/others/useSingleUserResetPassword.hook.d.ts +6 -0
- package/dist/types/hooks/Users/others/useUserBlockQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Users/others/useUserEmailVerifQuery.hook.d.ts +2 -0
- package/dist/types/hooks/Users/others/useUserResetPassByEmail.hook.d.ts +2 -0
- package/dist/types/hooks/index.d.ts +48 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/interfaces/AnalyticsEvaluationCycle.d.ts +19 -0
- package/dist/types/interfaces/AnalyticsUserId.d.ts +12 -0
- package/dist/types/interfaces/Answer.d.ts +12 -0
- package/dist/types/interfaces/AnswersUserSupervisor.d.ts +42 -0
- package/dist/types/interfaces/ApplicationsByCategory.d.ts +16 -0
- package/dist/types/interfaces/AsvProductsByReference.d.ts +12 -0
- package/dist/types/interfaces/AsvProductsByStore.d.ts +12 -0
- package/dist/types/interfaces/Brand.d.ts +4 -0
- package/dist/types/interfaces/Cart.d.ts +10 -0
- package/dist/types/interfaces/Configuration.d.ts +6 -0
- package/dist/types/interfaces/ContractStates.d.ts +7 -0
- package/dist/types/interfaces/Countries.d.ts +10 -0
- package/dist/types/interfaces/Customer.d.ts +21 -0
- package/dist/types/interfaces/EvaluationCycle.d.ts +32 -0
- package/dist/types/interfaces/ExpUsersAnswers.d.ts +15 -0
- package/dist/types/interfaces/JobTitles.d.ts +7 -0
- package/dist/types/interfaces/Product.d.ts +15 -0
- package/dist/types/interfaces/ProductsHierarchies.d.ts +5 -0
- package/dist/types/interfaces/Questionnaire.d.ts +36 -0
- package/dist/types/interfaces/ResponseList.d.ts +5 -0
- package/dist/types/interfaces/Roles.d.ts +5 -0
- package/dist/types/interfaces/Store.d.ts +7 -0
- package/dist/types/interfaces/TermNotification.d.ts +5 -0
- package/dist/types/interfaces/User.d.ts +68 -0
- package/dist/types/interfaces/index.d.ts +24 -0
- package/dist/types/services/ApiService/index.d.ts +9 -0
- package/dist/types/services/InitService/index.d.ts +3 -0
- package/dist/types/services/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { Product, ResponseList } from '../../../';
|
|
2
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
3
|
+
export interface ProductsQuery extends UseQueryOptions<ResponseList<"Products", Product>> {
|
|
4
|
+
page?: number;
|
|
5
|
+
limit?: number;
|
|
6
|
+
filterBy?: string;
|
|
7
|
+
search?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const useProductsQueryHook: ({ page, limit, ...options }: ProductsQuery) => import("@tanstack/react-query").UseQueryResult<ResponseList<"Products", Product>, unknown>;
|
|
10
|
+
export declare const useProductInfiniteQueryHook: ({ filterBy, search }?: Omit<ProductsQuery, 'page' | 'limit'>) => {
|
|
11
|
+
count: number;
|
|
12
|
+
data: Product[];
|
|
13
|
+
error: unknown;
|
|
14
|
+
isError: true;
|
|
15
|
+
isLoading: false;
|
|
16
|
+
isLoadingError: true;
|
|
17
|
+
isRefetchError: false;
|
|
18
|
+
isSuccess: false;
|
|
19
|
+
status: "error";
|
|
20
|
+
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Products", Product>, unknown>>;
|
|
21
|
+
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Products", Product>, unknown>>;
|
|
22
|
+
hasNextPage?: boolean;
|
|
23
|
+
hasPreviousPage?: boolean;
|
|
24
|
+
isFetchingNextPage: boolean;
|
|
25
|
+
isFetchingPreviousPage: boolean;
|
|
26
|
+
dataUpdatedAt: number;
|
|
27
|
+
errorUpdatedAt: number;
|
|
28
|
+
failureCount: number;
|
|
29
|
+
failureReason: unknown;
|
|
30
|
+
errorUpdateCount: number;
|
|
31
|
+
isFetched: boolean;
|
|
32
|
+
isFetchedAfterMount: boolean;
|
|
33
|
+
isFetching: boolean;
|
|
34
|
+
isInitialLoading: boolean;
|
|
35
|
+
isPaused: boolean;
|
|
36
|
+
isPlaceholderData: boolean;
|
|
37
|
+
isPreviousData: boolean;
|
|
38
|
+
isRefetching: boolean;
|
|
39
|
+
isStale: boolean;
|
|
40
|
+
refetch: <TPageData>(options?: import("@tanstack/react-query").RefetchOptions & import("@tanstack/react-query").RefetchQueryFilters<TPageData>) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<ResponseList<"Products", Product>>, unknown>>;
|
|
41
|
+
remove: () => void;
|
|
42
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
43
|
+
} | {
|
|
44
|
+
count: number;
|
|
45
|
+
data: Product[];
|
|
46
|
+
error: null;
|
|
47
|
+
isError: false;
|
|
48
|
+
isLoading: true;
|
|
49
|
+
isLoadingError: false;
|
|
50
|
+
isRefetchError: false;
|
|
51
|
+
isSuccess: false;
|
|
52
|
+
status: "loading";
|
|
53
|
+
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Products", Product>, unknown>>;
|
|
54
|
+
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Products", Product>, unknown>>;
|
|
55
|
+
hasNextPage?: boolean;
|
|
56
|
+
hasPreviousPage?: boolean;
|
|
57
|
+
isFetchingNextPage: boolean;
|
|
58
|
+
isFetchingPreviousPage: boolean;
|
|
59
|
+
dataUpdatedAt: number;
|
|
60
|
+
errorUpdatedAt: number;
|
|
61
|
+
failureCount: number;
|
|
62
|
+
failureReason: unknown;
|
|
63
|
+
errorUpdateCount: number;
|
|
64
|
+
isFetched: boolean;
|
|
65
|
+
isFetchedAfterMount: boolean;
|
|
66
|
+
isFetching: boolean;
|
|
67
|
+
isInitialLoading: boolean;
|
|
68
|
+
isPaused: boolean;
|
|
69
|
+
isPlaceholderData: boolean;
|
|
70
|
+
isPreviousData: boolean;
|
|
71
|
+
isRefetching: boolean;
|
|
72
|
+
isStale: boolean;
|
|
73
|
+
refetch: <TPageData>(options?: import("@tanstack/react-query").RefetchOptions & import("@tanstack/react-query").RefetchQueryFilters<TPageData>) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<ResponseList<"Products", Product>>, unknown>>;
|
|
74
|
+
remove: () => void;
|
|
75
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
76
|
+
} | {
|
|
77
|
+
count: number;
|
|
78
|
+
data: Product[];
|
|
79
|
+
error: unknown;
|
|
80
|
+
isError: true;
|
|
81
|
+
isLoading: false;
|
|
82
|
+
isLoadingError: false;
|
|
83
|
+
isRefetchError: true;
|
|
84
|
+
isSuccess: false;
|
|
85
|
+
status: "error";
|
|
86
|
+
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Products", Product>, unknown>>;
|
|
87
|
+
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Products", Product>, unknown>>;
|
|
88
|
+
hasNextPage?: boolean;
|
|
89
|
+
hasPreviousPage?: boolean;
|
|
90
|
+
isFetchingNextPage: boolean;
|
|
91
|
+
isFetchingPreviousPage: boolean;
|
|
92
|
+
dataUpdatedAt: number;
|
|
93
|
+
errorUpdatedAt: number;
|
|
94
|
+
failureCount: number;
|
|
95
|
+
failureReason: unknown;
|
|
96
|
+
errorUpdateCount: number;
|
|
97
|
+
isFetched: boolean;
|
|
98
|
+
isFetchedAfterMount: boolean;
|
|
99
|
+
isFetching: boolean;
|
|
100
|
+
isInitialLoading: boolean;
|
|
101
|
+
isPaused: boolean;
|
|
102
|
+
isPlaceholderData: boolean;
|
|
103
|
+
isPreviousData: boolean;
|
|
104
|
+
isRefetching: boolean;
|
|
105
|
+
isStale: boolean;
|
|
106
|
+
refetch: <TPageData>(options?: import("@tanstack/react-query").RefetchOptions & import("@tanstack/react-query").RefetchQueryFilters<TPageData>) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<ResponseList<"Products", Product>>, unknown>>;
|
|
107
|
+
remove: () => void;
|
|
108
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
109
|
+
} | {
|
|
110
|
+
count: number;
|
|
111
|
+
data: Product[];
|
|
112
|
+
error: null;
|
|
113
|
+
isError: false;
|
|
114
|
+
isLoading: false;
|
|
115
|
+
isLoadingError: false;
|
|
116
|
+
isRefetchError: false;
|
|
117
|
+
isSuccess: true;
|
|
118
|
+
status: "success";
|
|
119
|
+
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Products", Product>, unknown>>;
|
|
120
|
+
fetchPreviousPage: (options?: import("@tanstack/react-query").FetchPreviousPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<ResponseList<"Products", Product>, unknown>>;
|
|
121
|
+
hasNextPage?: boolean;
|
|
122
|
+
hasPreviousPage?: boolean;
|
|
123
|
+
isFetchingNextPage: boolean;
|
|
124
|
+
isFetchingPreviousPage: boolean;
|
|
125
|
+
dataUpdatedAt: number;
|
|
126
|
+
errorUpdatedAt: number;
|
|
127
|
+
failureCount: number;
|
|
128
|
+
failureReason: unknown;
|
|
129
|
+
errorUpdateCount: number;
|
|
130
|
+
isFetched: boolean;
|
|
131
|
+
isFetchedAfterMount: boolean;
|
|
132
|
+
isFetching: boolean;
|
|
133
|
+
isInitialLoading: boolean;
|
|
134
|
+
isPaused: boolean;
|
|
135
|
+
isPlaceholderData: boolean;
|
|
136
|
+
isPreviousData: boolean;
|
|
137
|
+
isRefetching: boolean;
|
|
138
|
+
isStale: boolean;
|
|
139
|
+
refetch: <TPageData>(options?: import("@tanstack/react-query").RefetchOptions & import("@tanstack/react-query").RefetchQueryFilters<TPageData>) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<ResponseList<"Products", Product>>, unknown>>;
|
|
140
|
+
remove: () => void;
|
|
141
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
142
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { Questionnaire, ResponseList } from "../../../interfaces";
|
|
3
|
+
export interface QuestionnaireQuery extends UseQueryOptions<ResponseList<"Questionnairezes", Questionnaire>> {
|
|
4
|
+
tags?: string;
|
|
5
|
+
page?: number;
|
|
6
|
+
records?: number;
|
|
7
|
+
queryField?: string;
|
|
8
|
+
sortBy?: string;
|
|
9
|
+
sortDirection?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const useQuestionnaireQueryHook: ({ tags, page, records, queryField, sortBy, sortDirection }: QuestionnaireQuery) => import("@tanstack/react-query").UseQueryResult<ResponseList<"Questionnairezes", Questionnaire>, unknown>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { Roles, ResponseList } from "../../../interfaces";
|
|
3
|
+
interface RolesQueryProps extends UseQueryOptions<ResponseList<"Roles", Roles>> {
|
|
4
|
+
records: number | string;
|
|
5
|
+
sortBy: string;
|
|
6
|
+
sortDirection: string;
|
|
7
|
+
tags?: string;
|
|
8
|
+
page?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const useAllRolesQuery: ({ records, sortBy, sortDirection, tags, page, ...options }: RolesQueryProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"Roles", Roles>, unknown>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { Store, ResponseList } from "../../../interfaces";
|
|
3
|
+
interface StoreQueryProps extends UseQueryOptions<Store> {
|
|
4
|
+
records: number | string;
|
|
5
|
+
sortBy: string;
|
|
6
|
+
sortDirection: string;
|
|
7
|
+
page: number;
|
|
8
|
+
tags?: string;
|
|
9
|
+
advancedTags?: string;
|
|
10
|
+
filter?: any;
|
|
11
|
+
}
|
|
12
|
+
export declare const useAllStoreQuery: ({ records, sortBy, sortDirection, tags, advancedTags, filter, page, ...options }: StoreQueryProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"Locations", Store>, unknown>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { Store } from "../../interfaces/Store";
|
|
3
|
+
interface StoreQueryProps extends UseQueryOptions<Store> {
|
|
4
|
+
code: string;
|
|
5
|
+
shouldFetch?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const useStoreByCodeQuery: ({ code, shouldFetch }: StoreQueryProps) => import("@tanstack/react-query").UseQueryResult<Store, unknown>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { Store } from "../../interfaces/Store";
|
|
3
|
+
interface StoreQueryProps extends UseQueryOptions<Store> {
|
|
4
|
+
id: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const useStoreQuery: ({ id, ...options }: StoreQueryProps) => import("@tanstack/react-query").UseQueryResult<Store, unknown>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { ExpUsersAnswers, ResponseList } from "../../../interfaces";
|
|
3
|
+
export interface ExpUsersAnswersProps extends UseQueryOptions<ResponseList<"Users", ExpUsersAnswers>> {
|
|
4
|
+
tags?: string;
|
|
5
|
+
page?: number;
|
|
6
|
+
records?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const useExpUsersAnswersQueryHook: ({ tags, page, records }: ExpUsersAnswersProps) => import("@tanstack/react-query").UseQueryResult<ResponseList<"Users", ExpUsersAnswers>, unknown>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { User, ResponseList } from "../../../interfaces";
|
|
3
|
+
export interface UserListQuery extends UseQueryOptions<ResponseList<"Users", User>> {
|
|
4
|
+
tags?: string;
|
|
5
|
+
records: number;
|
|
6
|
+
page: number;
|
|
7
|
+
queryField?: string;
|
|
8
|
+
sortBy?: string;
|
|
9
|
+
sortDirection?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const useUserListQueryHook: ({ tags, page, records, queryField, sortBy, sortDirection }: UserListQuery) => import("@tanstack/react-query").UseQueryResult<ResponseList<"Users", User>, unknown>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { User, ResponseList } from "../../../interfaces";
|
|
3
|
+
export interface UserQuery extends UseQueryOptions<ResponseList<"Users", User>> {
|
|
4
|
+
tags?: string;
|
|
5
|
+
page?: number;
|
|
6
|
+
records?: number;
|
|
7
|
+
evaluationId?: string;
|
|
8
|
+
queryField?: string;
|
|
9
|
+
sortBy?: string;
|
|
10
|
+
sortDirection?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const useUserQueryHook: ({ tags, evaluationId, page, records, queryField, sortBy, sortDirection }: UserQuery) => import("@tanstack/react-query").UseQueryResult<ResponseList<"Users", User>, unknown>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import { EvaluationCycle } from '../../../interfaces/EvaluationCycle';
|
|
3
|
+
export interface UpdateSupervisorMutateQuery extends UseQueryOptions<EvaluationCycle> {
|
|
4
|
+
evaluationCycleId?: string;
|
|
5
|
+
userId?: string;
|
|
6
|
+
supervisorId?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const useUpdateSupervisorMutateQueryHook: ({ evaluationCycleId, userId, supervisorId }: UpdateSupervisorMutateQuery) => import("@tanstack/react-query").UseMutationResult<EvaluationCycle, unknown, EvaluationCycle, unknown>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { User } from "../../../interfaces";
|
|
2
|
+
interface UserWithResetPasswordURL extends User {
|
|
3
|
+
ResetPasswordURL: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const useSingleUserResetPasswordHook: () => import("@tanstack/react-query").UseMutationResult<UserWithResetPasswordURL, unknown, UserWithResetPasswordURL, unknown>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export * from './Store/useStoreQuery';
|
|
2
|
+
export * from './Store/useStoreByCodeQuery.hook';
|
|
3
|
+
export * from './EvaluationCycle/get/useEvaluationCycleIdQuery.hook';
|
|
4
|
+
export * from './EvaluationCycle/mutate/useEvaluationCycleMutateQuery.hook';
|
|
5
|
+
export * from './EvaluationCycle/others/activateEvaluationCycleQuery.hook';
|
|
6
|
+
export * from './EvaluationCycle/others/deleteEvaluationCycleQuery.hook';
|
|
7
|
+
export * from './EvaluationCycle/get/useEvaluationCycleQuery.hook';
|
|
8
|
+
export * from './EvaluationCycle/others/cancelEvaluationCycleQuery.hook';
|
|
9
|
+
export * from './EvaluationCycle/others/finishEvaluationCycleQuery.hook';
|
|
10
|
+
export * from './Questionnaire/get/useQuestionnaireQuery.hook';
|
|
11
|
+
export * from './Questionnaire/others/deleteQuestionnaireQuery.hook';
|
|
12
|
+
export * from './Questionnaire/others/duplicateQuestionnaireQuery.hook';
|
|
13
|
+
export * from './Questionnaire/mutate/useQuestionnaireMutateQuery.hook';
|
|
14
|
+
export * from './Questionnaire/others/activateQuestionnaireQuery.hook';
|
|
15
|
+
export * from './Questionnaire/get/useQuestionnaireIdQuery.hook';
|
|
16
|
+
export * from './Questionnaire/others/finishQuestionnaireQuery.hook';
|
|
17
|
+
export * from './Questionnaire/others/cancelQuestionnaireQuery.hook';
|
|
18
|
+
export * from './Users/get/useUserQuery.hook';
|
|
19
|
+
export * from './Users/get/useUserListQuery.hook';
|
|
20
|
+
export * from './Users/others/useUserBlockQuery.hook';
|
|
21
|
+
export * from './Users/others/useUserEmailVerifQuery.hook';
|
|
22
|
+
export * from './Users/get/useExpUsersAnswersQuery.hook';
|
|
23
|
+
export * from './Users/mutate/useUpdateSupervisorMutateQuery.hook';
|
|
24
|
+
export * from './Users/others/useSingleUserResetPassword.hook';
|
|
25
|
+
export * from './Users/get/useSingleUserIdQuery.hook';
|
|
26
|
+
export * from './Users/mutate/useSingleUserIdMutateQuery.hook';
|
|
27
|
+
export * from './Users/get/useUserIdQuery.hook';
|
|
28
|
+
export * from './Users/others/useUserResetPassByEmail.hook';
|
|
29
|
+
export * from './Analytics/get/useAnalyticsEvaluationCyclesQuery.hook';
|
|
30
|
+
export * from './Analytics/get/useAnalyticsUserIdQuery.hook';
|
|
31
|
+
export * from './Analytics/get/useAnalyticsQuestionsQuery.hook';
|
|
32
|
+
export * from './Analytics/get/useAnalyticsSideBarQuery.hook';
|
|
33
|
+
export * from './Analytics/get/useAnalyticsUserQuery.hook';
|
|
34
|
+
export * from './Answer/get/useAnswerIdQuery.hook';
|
|
35
|
+
export * from './Answer/mutate/useAnswerMutateQuery.hook';
|
|
36
|
+
export * from './Answer/get/useAnswersUserSupervisorQuery.hook';
|
|
37
|
+
export * from './Product/get/useProductsQuery.hook';
|
|
38
|
+
export * from './Product/get/useProductHierarchies.hook';
|
|
39
|
+
export * from './Roles/get/useAllStoreQuery.hook';
|
|
40
|
+
export * from './Roles/get/useAllRolesQuery.hook';
|
|
41
|
+
export * from './AsvProduct/get/getProductsByRefQuery.hook';
|
|
42
|
+
export * from './AsvProduct/get/getProductsByStoreQuery.hook';
|
|
43
|
+
export * from './Others/useJobTitlesQuery.hook';
|
|
44
|
+
export * from './Others/useContractStatesQuery.hook';
|
|
45
|
+
export * from './Others/useApplicationDataQuery.hook';
|
|
46
|
+
export * from './Others/useTermNotificationQuery.hook';
|
|
47
|
+
export * from './Others/useCustomersQuery.hook';
|
|
48
|
+
export * from './Others/useCountriesQuery.hook';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface AnalyticsEvaluationCycle {
|
|
2
|
+
Label: string;
|
|
3
|
+
Items: Items[];
|
|
4
|
+
}
|
|
5
|
+
export interface Items {
|
|
6
|
+
Id: string;
|
|
7
|
+
Name: string;
|
|
8
|
+
Categorys: CategoriesInterface[];
|
|
9
|
+
}
|
|
10
|
+
export interface CategoriesInterface {
|
|
11
|
+
CategoryId: string;
|
|
12
|
+
CategoryName: string;
|
|
13
|
+
SubCategory: CategoriesInterface[];
|
|
14
|
+
Questions: QuestionsInterface[];
|
|
15
|
+
}
|
|
16
|
+
export interface QuestionsInterface {
|
|
17
|
+
QuestionId: string;
|
|
18
|
+
QuestionName: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface AnalyticsUserId {
|
|
2
|
+
StartDate: string;
|
|
3
|
+
EndDate: string;
|
|
4
|
+
EvaluationCycleState: string;
|
|
5
|
+
EvaluationCycleId: string;
|
|
6
|
+
EvaluationCycleName: string;
|
|
7
|
+
UserName: string;
|
|
8
|
+
Type: string;
|
|
9
|
+
UserGrade: string;
|
|
10
|
+
SupervisorGrade: string;
|
|
11
|
+
IsSupervisor: boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Categories, Questions } from './Questionnaire';
|
|
2
|
+
export interface Answer {
|
|
3
|
+
Id: string;
|
|
4
|
+
EvaluationCycleId: string;
|
|
5
|
+
QuestionnaireId: string;
|
|
6
|
+
UserId: string;
|
|
7
|
+
TargetUserId: string;
|
|
8
|
+
StartDate: number;
|
|
9
|
+
EndDate: number;
|
|
10
|
+
CategoryAnswers: Categories[];
|
|
11
|
+
Question: Questions;
|
|
12
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
interface CategoryAnswers {
|
|
16
|
+
Title: string;
|
|
17
|
+
Key: string;
|
|
18
|
+
Data: Data;
|
|
19
|
+
Children: CategoryAnswers[];
|
|
20
|
+
}
|
|
21
|
+
interface Data {
|
|
22
|
+
Id: string;
|
|
23
|
+
CategoryId: string;
|
|
24
|
+
CategoryName: string;
|
|
25
|
+
OpenAnswer: true;
|
|
26
|
+
GeneralEvaluationLevel: number | string;
|
|
27
|
+
Grade: string | number;
|
|
28
|
+
Description: string;
|
|
29
|
+
Score: string;
|
|
30
|
+
SupervisorScore: string;
|
|
31
|
+
Questions: Questions[];
|
|
32
|
+
}
|
|
33
|
+
interface Questions {
|
|
34
|
+
Id: string;
|
|
35
|
+
QuestionId: string;
|
|
36
|
+
Subject: string;
|
|
37
|
+
Description: string;
|
|
38
|
+
Grade: string | number;
|
|
39
|
+
UserAnswer: string;
|
|
40
|
+
SupervisorAnswer: string;
|
|
41
|
+
}
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface ApplicationsByCategory {
|
|
2
|
+
Id: string;
|
|
3
|
+
Name: string;
|
|
4
|
+
Applications: ApplicationAttribute[];
|
|
5
|
+
}
|
|
6
|
+
export interface ApplicationAttribute {
|
|
7
|
+
Id: string;
|
|
8
|
+
Key: string;
|
|
9
|
+
Name: string;
|
|
10
|
+
Description: string;
|
|
11
|
+
URL: string;
|
|
12
|
+
ImageURL: string;
|
|
13
|
+
Status: string;
|
|
14
|
+
CreateDate: number;
|
|
15
|
+
UpdateDate: number;
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface AsvProductsByStore {
|
|
2
|
+
Size: string;
|
|
3
|
+
LegSize: string;
|
|
4
|
+
Reference: string;
|
|
5
|
+
ColorCode: string;
|
|
6
|
+
SKU: string;
|
|
7
|
+
Description: string;
|
|
8
|
+
StoreQuantity: number;
|
|
9
|
+
OnlineQuantity: number;
|
|
10
|
+
WarehouseQuantityInt: number;
|
|
11
|
+
WarehouseQuantityExt: number;
|
|
12
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface Customer {
|
|
2
|
+
Name: string;
|
|
3
|
+
CustomerId: string;
|
|
4
|
+
MemberNumber: string;
|
|
5
|
+
Email: string;
|
|
6
|
+
FirstName: string;
|
|
7
|
+
LastName: string;
|
|
8
|
+
Gender: string;
|
|
9
|
+
Birthday: string;
|
|
10
|
+
Jobtitle: string;
|
|
11
|
+
Address: CustomerAddress;
|
|
12
|
+
DoNotPhone: boolean;
|
|
13
|
+
DoNotEmail: boolean;
|
|
14
|
+
Mobilephone: string;
|
|
15
|
+
}
|
|
16
|
+
export interface CustomerAddress {
|
|
17
|
+
Address: string;
|
|
18
|
+
Zip: string;
|
|
19
|
+
City: string;
|
|
20
|
+
Country: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface EvaluationCycle {
|
|
2
|
+
Id: string;
|
|
3
|
+
UserId: string;
|
|
4
|
+
Type: number;
|
|
5
|
+
Name: string;
|
|
6
|
+
Year: number;
|
|
7
|
+
DateInterval: {
|
|
8
|
+
StartDate: number;
|
|
9
|
+
EndDate: number;
|
|
10
|
+
};
|
|
11
|
+
Users: EvaluationUsers[];
|
|
12
|
+
QuestionnaireId: string;
|
|
13
|
+
QuestionnaireName: string;
|
|
14
|
+
State: string;
|
|
15
|
+
Status: string;
|
|
16
|
+
Notifications: EvaluationNotifications[];
|
|
17
|
+
NotificationAgenda: string;
|
|
18
|
+
TotalNumberOfUsers: number;
|
|
19
|
+
TotalNumberOfAnswers: number;
|
|
20
|
+
IsOnlyForUsers: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface EvaluationNotifications {
|
|
23
|
+
NotificationTypeId: string;
|
|
24
|
+
NotificationReceiver: string;
|
|
25
|
+
Date: number;
|
|
26
|
+
}
|
|
27
|
+
export interface EvaluationUsers {
|
|
28
|
+
UserId: string;
|
|
29
|
+
UserAnswer: boolean;
|
|
30
|
+
SupervisorId: string;
|
|
31
|
+
SupervisorAnswer: boolean;
|
|
32
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface ExpUsersAnswers {
|
|
2
|
+
UserId: string;
|
|
3
|
+
EvaluationCycleName: string;
|
|
4
|
+
FullName: string;
|
|
5
|
+
DisplayName: string;
|
|
6
|
+
Code: string;
|
|
7
|
+
JobTitleId: string;
|
|
8
|
+
JobTitleName: string;
|
|
9
|
+
ContractStateId: string;
|
|
10
|
+
ContractStateName: string;
|
|
11
|
+
Stores: string[];
|
|
12
|
+
UserScore: number;
|
|
13
|
+
SupervisorScore: number;
|
|
14
|
+
Status: string;
|
|
15
|
+
}
|