@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.
Files changed (97) hide show
  1. package/dist/bundle.js +1 -0
  2. package/dist/styles.css +7 -0
  3. package/dist/types/components/BottomDrawer/index.d.ts +9 -0
  4. package/dist/types/components/Button/index.d.ts +2 -0
  5. package/dist/types/components/Footer/index.d.ts +3 -0
  6. package/dist/types/components/Form/FormInputField/index.d.ts +8 -0
  7. package/dist/types/components/Form/FormSelectField/index.d.ts +9 -0
  8. package/dist/types/components/Form/index.d.ts +2 -0
  9. package/dist/types/components/Header/index.d.ts +4 -0
  10. package/dist/types/components/Link/index.d.ts +6 -0
  11. package/dist/types/components/Navigation/index.d.ts +8 -0
  12. package/dist/types/components/Page/index.d.ts +13 -0
  13. package/dist/types/components/SharedContextProvider/index.d.ts +7 -0
  14. package/dist/types/components/index.d.ts +9 -0
  15. package/dist/types/constants/Icons.d.ts +15 -0
  16. package/dist/types/constants/QueryClient.d.ts +2 -0
  17. package/dist/types/constants/index.d.ts +2 -0
  18. package/dist/types/contexts/useStore.d.ts +8 -0
  19. package/dist/types/hooks/Analytics/get/useAnalyticsEvaluationCyclesQuery.hook.d.ts +7 -0
  20. package/dist/types/hooks/Analytics/get/useAnalyticsQuestionsQuery.hook.d.ts +9 -0
  21. package/dist/types/hooks/Analytics/get/useAnalyticsSideBarQuery.hook.d.ts +7 -0
  22. package/dist/types/hooks/Analytics/get/useAnalyticsUserIdQuery.hook.d.ts +11 -0
  23. package/dist/types/hooks/Analytics/get/useAnalyticsUserQuery.hook.d.ts +14 -0
  24. package/dist/types/hooks/Answer/get/useAnswerIdQuery.hook.d.ts +2 -0
  25. package/dist/types/hooks/Answer/get/useAnswersUserSupervisorQuery.hook.d.ts +7 -0
  26. package/dist/types/hooks/Answer/mutate/useAnswerMutateQuery.hook.d.ts +9 -0
  27. package/dist/types/hooks/AsvProduct/get/getProductsByRefQuery.hook.d.ts +8 -0
  28. package/dist/types/hooks/AsvProduct/get/getProductsByStoreQuery.hook.d.ts +10 -0
  29. package/dist/types/hooks/EvaluationCycle/get/useEvaluationCycleIdQuery.hook.d.ts +2 -0
  30. package/dist/types/hooks/EvaluationCycle/get/useEvaluationCycleQuery.hook.d.ts +11 -0
  31. package/dist/types/hooks/EvaluationCycle/mutate/useEvaluationCycleMutateQuery.hook.d.ts +2 -0
  32. package/dist/types/hooks/EvaluationCycle/others/activateEvaluationCycleQuery.hook.d.ts +2 -0
  33. package/dist/types/hooks/EvaluationCycle/others/cancelEvaluationCycleQuery.hook.d.ts +2 -0
  34. package/dist/types/hooks/EvaluationCycle/others/deleteEvaluationCycleQuery.hook.d.ts +2 -0
  35. package/dist/types/hooks/EvaluationCycle/others/finishEvaluationCycleQuery.hook.d.ts +2 -0
  36. package/dist/types/hooks/Others/useApplicationDataQuery.hook.d.ts +2 -0
  37. package/dist/types/hooks/Others/useContractStatesQuery.hook.d.ts +7 -0
  38. package/dist/types/hooks/Others/useCountriesQuery.hook.d.ts +7 -0
  39. package/dist/types/hooks/Others/useCustomersQuery.hook.d.ts +142 -0
  40. package/dist/types/hooks/Others/useJobTitlesQuery.hook.d.ts +7 -0
  41. package/dist/types/hooks/Others/useTermNotificationQuery.hook.d.ts +2 -0
  42. package/dist/types/hooks/Product/get/useProductHierarchies.hook.d.ts +7 -0
  43. package/dist/types/hooks/Product/get/useProductsQuery.hook.d.ts +142 -0
  44. package/dist/types/hooks/Questionnaire/get/useQuestionnaireIdQuery.hook.d.ts +2 -0
  45. package/dist/types/hooks/Questionnaire/get/useQuestionnaireQuery.hook.d.ts +11 -0
  46. package/dist/types/hooks/Questionnaire/mutate/useQuestionnaireMutateQuery.hook.d.ts +2 -0
  47. package/dist/types/hooks/Questionnaire/others/activateQuestionnaireQuery.hook.d.ts +2 -0
  48. package/dist/types/hooks/Questionnaire/others/cancelQuestionnaireQuery.hook.d.ts +2 -0
  49. package/dist/types/hooks/Questionnaire/others/deleteQuestionnaireQuery.hook.d.ts +2 -0
  50. package/dist/types/hooks/Questionnaire/others/duplicateQuestionnaireQuery.hook.d.ts +2 -0
  51. package/dist/types/hooks/Questionnaire/others/finishQuestionnaireQuery.hook.d.ts +2 -0
  52. package/dist/types/hooks/Roles/get/useAllRolesQuery.hook.d.ts +11 -0
  53. package/dist/types/hooks/Roles/get/useAllStoreQuery.hook.d.ts +13 -0
  54. package/dist/types/hooks/Store/useStoreByCodeQuery.hook.d.ts +8 -0
  55. package/dist/types/hooks/Store/useStoreQuery.d.ts +7 -0
  56. package/dist/types/hooks/Users/get/useExpUsersAnswersQuery.hook.d.ts +8 -0
  57. package/dist/types/hooks/Users/get/useSingleUserIdQuery.hook.d.ts +2 -0
  58. package/dist/types/hooks/Users/get/useUserIdQuery.hook.d.ts +2 -0
  59. package/dist/types/hooks/Users/get/useUserListQuery.hook.d.ts +11 -0
  60. package/dist/types/hooks/Users/get/useUserQuery.hook.d.ts +12 -0
  61. package/dist/types/hooks/Users/mutate/useSingleUserIdMutateQuery.hook.d.ts +2 -0
  62. package/dist/types/hooks/Users/mutate/useUpdateSupervisorMutateQuery.hook.d.ts +8 -0
  63. package/dist/types/hooks/Users/others/useSingleUserResetPassword.hook.d.ts +6 -0
  64. package/dist/types/hooks/Users/others/useUserBlockQuery.hook.d.ts +2 -0
  65. package/dist/types/hooks/Users/others/useUserEmailVerifQuery.hook.d.ts +2 -0
  66. package/dist/types/hooks/Users/others/useUserResetPassByEmail.hook.d.ts +2 -0
  67. package/dist/types/hooks/index.d.ts +48 -0
  68. package/dist/types/index.d.ts +7 -0
  69. package/dist/types/interfaces/AnalyticsEvaluationCycle.d.ts +19 -0
  70. package/dist/types/interfaces/AnalyticsUserId.d.ts +12 -0
  71. package/dist/types/interfaces/Answer.d.ts +12 -0
  72. package/dist/types/interfaces/AnswersUserSupervisor.d.ts +42 -0
  73. package/dist/types/interfaces/ApplicationsByCategory.d.ts +16 -0
  74. package/dist/types/interfaces/AsvProductsByReference.d.ts +12 -0
  75. package/dist/types/interfaces/AsvProductsByStore.d.ts +12 -0
  76. package/dist/types/interfaces/Brand.d.ts +4 -0
  77. package/dist/types/interfaces/Cart.d.ts +10 -0
  78. package/dist/types/interfaces/Configuration.d.ts +6 -0
  79. package/dist/types/interfaces/ContractStates.d.ts +7 -0
  80. package/dist/types/interfaces/Countries.d.ts +10 -0
  81. package/dist/types/interfaces/Customer.d.ts +21 -0
  82. package/dist/types/interfaces/EvaluationCycle.d.ts +32 -0
  83. package/dist/types/interfaces/ExpUsersAnswers.d.ts +15 -0
  84. package/dist/types/interfaces/JobTitles.d.ts +7 -0
  85. package/dist/types/interfaces/Product.d.ts +15 -0
  86. package/dist/types/interfaces/ProductsHierarchies.d.ts +5 -0
  87. package/dist/types/interfaces/Questionnaire.d.ts +36 -0
  88. package/dist/types/interfaces/ResponseList.d.ts +5 -0
  89. package/dist/types/interfaces/Roles.d.ts +5 -0
  90. package/dist/types/interfaces/Store.d.ts +7 -0
  91. package/dist/types/interfaces/TermNotification.d.ts +5 -0
  92. package/dist/types/interfaces/User.d.ts +68 -0
  93. package/dist/types/interfaces/index.d.ts +24 -0
  94. package/dist/types/services/ApiService/index.d.ts +9 -0
  95. package/dist/types/services/InitService/index.d.ts +3 -0
  96. package/dist/types/services/index.d.ts +2 -0
  97. 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,5 @@
1
+ export interface ProductsHierarchies {
2
+ Id: string;
3
+ Name: string;
4
+ SubCategory?: ProductsHierarchies[];
5
+ }
@@ -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,5 @@
1
+ export type ResponseList<K extends string, T> = {
2
+ [key in K]: T[];
3
+ } & {
4
+ Count: number;
5
+ };
@@ -0,0 +1,5 @@
1
+ export interface Roles {
2
+ ApplicationName: string;
3
+ RoleId: string;
4
+ RoleName: string;
5
+ }
@@ -0,0 +1,7 @@
1
+ export interface Store {
2
+ Id: string;
3
+ Name: string;
4
+ Address: string;
5
+ City: string;
6
+ ZipCode: string;
7
+ }
@@ -0,0 +1,5 @@
1
+ export interface TermNotification {
2
+ Id: string;
3
+ Value: string;
4
+ Label: string;
5
+ }
@@ -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>;
@@ -0,0 +1,3 @@
1
+ import { Configuration } from "../../interfaces/Configuration";
2
+ export declare const appConfig: Partial<Configuration>;
3
+ export declare const initService: (configuration: Configuration) => void;
@@ -0,0 +1,2 @@
1
+ export * from './InitService';
2
+ export * from './ApiService';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniumretail/shared-resources",
3
- "version": "0.0.92",
3
+ "version": "0.0.93",
4
4
  "private": false,
5
5
  "description": "Shared Components and services or utils to the frontend versions",
6
6
  "main": "dist/bundle.js",