@omniumretail/shared-resources 0.0.92 → 0.0.93
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,15 @@
|
|
|
1
|
+
export interface Product {
|
|
2
|
+
Id: string;
|
|
3
|
+
Name: string;
|
|
4
|
+
Price: number;
|
|
5
|
+
Description: string;
|
|
6
|
+
CategoryId: string;
|
|
7
|
+
Variants: ProductItem[];
|
|
8
|
+
Images: string[];
|
|
9
|
+
}
|
|
10
|
+
export interface ProductItem {
|
|
11
|
+
SKU: string;
|
|
12
|
+
Size: string;
|
|
13
|
+
Stock: number;
|
|
14
|
+
StockOnline: number;
|
|
15
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface Questionnaire {
|
|
2
|
+
Id: string;
|
|
3
|
+
Name: string;
|
|
4
|
+
Type: number;
|
|
5
|
+
NrLevel: number;
|
|
6
|
+
Level: number;
|
|
7
|
+
State: string;
|
|
8
|
+
Categories: Categories[];
|
|
9
|
+
}
|
|
10
|
+
export interface Categories {
|
|
11
|
+
Id: string;
|
|
12
|
+
Title: string;
|
|
13
|
+
Key: string;
|
|
14
|
+
Data: {
|
|
15
|
+
Id: string;
|
|
16
|
+
CategoryId: string;
|
|
17
|
+
CategoryName: string;
|
|
18
|
+
OpenAnswer: boolean;
|
|
19
|
+
Grade: number;
|
|
20
|
+
GeneralEvaluationLevel: number;
|
|
21
|
+
Description: string;
|
|
22
|
+
Score: string;
|
|
23
|
+
Questions: Questions[];
|
|
24
|
+
};
|
|
25
|
+
Children: Categories[];
|
|
26
|
+
}
|
|
27
|
+
export interface Questions {
|
|
28
|
+
Id: string;
|
|
29
|
+
Question: string;
|
|
30
|
+
Info: string;
|
|
31
|
+
Grade: number;
|
|
32
|
+
QuestionId: string;
|
|
33
|
+
Subject: string;
|
|
34
|
+
Description: string;
|
|
35
|
+
Answer: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export interface User {
|
|
2
|
+
UserId: string;
|
|
3
|
+
DisplayName: string;
|
|
4
|
+
Code: string;
|
|
5
|
+
Store: string[];
|
|
6
|
+
JobTitleId: string;
|
|
7
|
+
JobTitleName: string;
|
|
8
|
+
ContractStateId: string;
|
|
9
|
+
ContractStateName: string;
|
|
10
|
+
IsSelected: boolean;
|
|
11
|
+
UserScore: number;
|
|
12
|
+
SupervisorScore: number;
|
|
13
|
+
Date: number;
|
|
14
|
+
Supervisor: string;
|
|
15
|
+
TypeOfContract: string;
|
|
16
|
+
Team: string;
|
|
17
|
+
UserName: string;
|
|
18
|
+
SupervisorId: string;
|
|
19
|
+
ImageURL: string;
|
|
20
|
+
Image: string;
|
|
21
|
+
}
|
|
22
|
+
interface JobTitle {
|
|
23
|
+
Id: string;
|
|
24
|
+
Name: string;
|
|
25
|
+
}
|
|
26
|
+
interface ContractState {
|
|
27
|
+
Id: string;
|
|
28
|
+
Name: string;
|
|
29
|
+
}
|
|
30
|
+
interface Roles {
|
|
31
|
+
Id: string;
|
|
32
|
+
Name: string;
|
|
33
|
+
}
|
|
34
|
+
export interface SingleUser {
|
|
35
|
+
UserId: string;
|
|
36
|
+
FullName: string;
|
|
37
|
+
Email: string;
|
|
38
|
+
DisplayName: string;
|
|
39
|
+
PhoneNumber: number;
|
|
40
|
+
Code: string;
|
|
41
|
+
Birthday: number;
|
|
42
|
+
AdmissionData: number;
|
|
43
|
+
ResignDate: number;
|
|
44
|
+
Address: string;
|
|
45
|
+
ZipCode: string;
|
|
46
|
+
City: string;
|
|
47
|
+
CountryIso02: string;
|
|
48
|
+
JobTitle: JobTitle;
|
|
49
|
+
ContractState: ContractState;
|
|
50
|
+
Stores: string[];
|
|
51
|
+
SupervisorId: string;
|
|
52
|
+
ImageUrl: string;
|
|
53
|
+
Tags: string[];
|
|
54
|
+
Roles: Roles;
|
|
55
|
+
IdentityCardNumber: number | string;
|
|
56
|
+
IdentityCardExpirationDate: number | string;
|
|
57
|
+
PlaceOfBirth: string;
|
|
58
|
+
MaritalStatus: string;
|
|
59
|
+
NumberOfChildren: number;
|
|
60
|
+
Qualifications: string;
|
|
61
|
+
TaxNumber: string;
|
|
62
|
+
SocialSecurityNumber: string;
|
|
63
|
+
IBAN: string;
|
|
64
|
+
CreateDate: number;
|
|
65
|
+
UpdateDate: string;
|
|
66
|
+
ContractStatusId: string;
|
|
67
|
+
}
|
|
68
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export * from './ResponseList';
|
|
2
|
+
export * from './Configuration';
|
|
3
|
+
export * from './Store';
|
|
4
|
+
export * from './Product';
|
|
5
|
+
export * from './Customer';
|
|
6
|
+
export * from './ApplicationsByCategory';
|
|
7
|
+
export * from './EvaluationCycle';
|
|
8
|
+
export * from './User';
|
|
9
|
+
export * from './Questionnaire';
|
|
10
|
+
export * from './AnalyticsEvaluationCycle';
|
|
11
|
+
export * from './Answer';
|
|
12
|
+
export * from './AnalyticsUserId';
|
|
13
|
+
export * from './Cart';
|
|
14
|
+
export * from './ProductsHierarchies';
|
|
15
|
+
export * from './Brand';
|
|
16
|
+
export * from './Countries';
|
|
17
|
+
export * from './Roles';
|
|
18
|
+
export * from './AnswersUserSupervisor';
|
|
19
|
+
export * from './TermNotification';
|
|
20
|
+
export * from './JobTitles';
|
|
21
|
+
export * from './ContractStates';
|
|
22
|
+
export * from './ExpUsersAnswers';
|
|
23
|
+
export * from './AsvProductsByStore';
|
|
24
|
+
export * from './AsvProductsByReference';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import 'whatwg-fetch';
|
|
2
|
+
export declare const get: <T>(path: string, params?: Record<string, unknown>) => Promise<T>;
|
|
3
|
+
export declare const getAuth0: <T>(path: string, params?: Record<string, unknown>) => Promise<T>;
|
|
4
|
+
export declare const putAuth0: <T>(path: string, params?: Record<string, unknown>, body?: unknown, bodyType?: string) => Promise<T>;
|
|
5
|
+
export declare const postAuth0: <T>(path: string, params?: Record<string, unknown>, body?: unknown, bodyType?: string) => Promise<T>;
|
|
6
|
+
export declare const toDeleteAuth0: <T>(path: string, params?: Record<string, unknown>, body?: unknown) => Promise<T>;
|
|
7
|
+
export declare const post: <T>(path: string, body?: unknown) => Promise<T>;
|
|
8
|
+
export declare const put: <T>(path: string, body?: unknown) => Promise<T>;
|
|
9
|
+
export declare const toDelete: <T>(path: string, body?: unknown) => Promise<T>;
|