@omniumretail/shared-resources 0.2.29 → 0.2.30

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 (28) hide show
  1. package/dist/bundle.js +1 -1
  2. package/dist/types/hooks/ATIM/BackOffice/get/useAbsenceTypes.hook.d.ts +10 -0
  3. package/dist/types/hooks/ATIM/BackOffice/get/useAttendancesSummary.hook.d.ts +10 -0
  4. package/dist/types/hooks/ATIM/BackOffice/get/useEmployeeWorklogDetails.hook.d.ts +5 -3
  5. package/dist/types/hooks/ATIM/BackOffice/get/useWorkMonths.hook.d.ts +9 -0
  6. package/dist/types/hooks/ATIM/BackOffice/mutate/postAttendanceSummary.hook.d.ts +2 -0
  7. package/dist/types/hooks/OSUA/MIMO/get/getIntegrationByName.hook.d.ts +6 -0
  8. package/dist/types/hooks/OSUA/MIMO/mutate/postDagsAdjustStock.hook.d.ts +1 -0
  9. package/dist/types/hooks/OSUA/MIMO/mutate/postProductVendusIntegration.hook.d.ts +2 -0
  10. package/dist/types/hooks/OSUA/get/documentos/getGngDocumentos.hook.d.ts +2 -2
  11. package/dist/types/hooks/index.d.ts +150 -144
  12. package/dist/types/interfaces/BackofficeAtim.d.ts +68 -0
  13. package/dist/types/interfaces/MIMO.d.ts +12 -0
  14. package/dist/types/interfaces/index.d.ts +1 -0
  15. package/package.json +1 -1
  16. package/src/hooks/ATIM/BackOffice/get/useAbsenceTypes.hook.ts +33 -0
  17. package/src/hooks/ATIM/BackOffice/get/useAttendancesSummary.hook.ts +40 -0
  18. package/src/hooks/ATIM/BackOffice/get/useEmployeeWorklogDetails.hook.ts +63 -38
  19. package/src/hooks/ATIM/BackOffice/get/useWorkMonths.hook.ts +31 -0
  20. package/src/hooks/ATIM/BackOffice/mutate/postAttendanceSummary.hook.ts +17 -0
  21. package/src/hooks/OSUA/MIMO/get/getIntegrationByName.hook.ts +19 -0
  22. package/src/hooks/OSUA/MIMO/mutate/postDagsAdjustStock.hook.ts +13 -0
  23. package/src/hooks/OSUA/MIMO/mutate/postProductVendusIntegration.hook.ts +15 -0
  24. package/src/hooks/OSUA/get/documentos/getGngDocumentos.hook.ts +17 -10
  25. package/src/hooks/index.ts +157 -148
  26. package/src/interfaces/BackofficeAtim.ts +106 -31
  27. package/src/interfaces/MIMO.ts +13 -0
  28. package/src/interfaces/index.ts +2 -1
@@ -1,45 +1,120 @@
1
1
  export interface WorkLogDetail {
2
- Id: string;
3
- Type: number;
4
- Date: number;
2
+ Id: string;
3
+ Type: number;
4
+ Date: number;
5
5
  }
6
-
6
+
7
7
  export interface Breaks {
8
- Number: number;
9
- Time: number;
8
+ Number: number;
9
+ Time: number;
10
10
  }
11
-
11
+
12
12
  export interface WorkDayLog {
13
- WorkDay: number;
14
- TimeWorked: number;
15
- Breaks: Breaks;
16
- Details: WorkLogDetail[];
13
+ WorkDay: number;
14
+ TimeWorked: number;
15
+ Breaks: Breaks;
16
+ Details: WorkLogDetail[];
17
17
  }
18
-
18
+
19
19
  export interface EmployeesWorklog {
20
- Id: string;
21
- Code: string;
22
- Name: string;
23
- JobTitle: string;
24
- IsWorking: boolean;
25
- TimeWorked: number;
26
- Breaks: Breaks;
27
- WorkDayLogs: WorkDayLog[];
20
+ Id: string;
21
+ Code: string;
22
+ Name: string;
23
+ JobTitle: string;
24
+ IsWorking: boolean;
25
+ TimeWorked: number;
26
+ Breaks: Breaks;
27
+ WorkDayLogs: WorkDayLog[];
28
+ }
29
+
30
+ export interface Location {
31
+ Id: string;
32
+ Name: string;
33
+ Code: string;
34
+ Status: string;
35
+ }
28
36
 
37
+ export interface UserBackoffice {
38
+ UserId: string;
39
+ FullName: string;
40
+ DisplayName: string;
29
41
  }
30
42
 
43
+ export interface WorkMonths {
44
+ BeginDate: number;
45
+ EndDate: number;
46
+ }
31
47
 
32
- export interface Location {
33
- Id: string;
34
- Name: string;
35
- Code: string;
36
- Status: string;
48
+ export interface AbsenceTypes {
49
+ CreateDate: number;
50
+ Id: string;
51
+ Name: string;
52
+ Status: string;
53
+ UpdateDate: number;
54
+ }
37
55
 
56
+ export interface AbsenceOthers {
57
+ Days: number;
58
+ Notes: string;
38
59
  }
39
60
 
40
- export interface UserBackoffice {
41
- UserId: string;
42
- FullName: string;
43
- DisplayName: string;
44
-
45
- }
61
+ export interface AbsenceInterval {
62
+ BeginDate: number;
63
+ EndDate: number;
64
+ }
65
+
66
+ export interface AbsenceDetail {
67
+ LineNumber: number;
68
+ AbsenceTypeId: string;
69
+ Name: string;
70
+ Notes: string;
71
+ Interval: AbsenceInterval;
72
+ }
73
+
74
+ export interface AbsenceDetails {
75
+ Justified: number;
76
+ Unjustified: number;
77
+ Others: AbsenceOthers[];
78
+ }
79
+
80
+ export interface ExtraHours {
81
+ Hours: string;
82
+ AuthorizedBy: string | null;
83
+ }
84
+
85
+ export interface WorkPeriod {
86
+ Begin: number;
87
+ End: number;
88
+ }
89
+
90
+ export interface ScheduleWorkHours {
91
+ Daily: string;
92
+ Night: string;
93
+ Total: string;
94
+ Stocktaking: string;
95
+ }
96
+
97
+ export interface WorkedHours {
98
+ Total: string;
99
+ Daily: string;
100
+ Night: string;
101
+ }
102
+
103
+ export interface AttendancesSummary {
104
+ Id: string | null;
105
+ StoreId: string;
106
+ Absences: AbsenceDetails;
107
+ CreateDate: number;
108
+ Delay: string;
109
+ EmployeeId: string;
110
+ Extra: ExtraHours;
111
+ Others: {
112
+ Hours: string;
113
+ Notes: string | null;
114
+ };
115
+ ScheduleWorkHours: ScheduleWorkHours;
116
+ WorkPeriod: WorkPeriod;
117
+ WorkedHours: WorkedHours;
118
+ UpdateDate: number;
119
+ Observations: string | null;
120
+ }
@@ -0,0 +1,13 @@
1
+ export interface ImportData {
2
+ Id: string;
3
+ Name: string;
4
+ DateToImport: number;
5
+ OrderIdFrom: string;
6
+ OrderIdTo: string;
7
+ Status: string;
8
+ LastSuccessfullDate: number;
9
+ }
10
+
11
+ export interface VendusIntegration {
12
+ Result: boolean;
13
+ }
@@ -53,4 +53,5 @@ export * from './AstsStock';
53
53
  export * from './UserAuthentication';
54
54
  export * from './OUSA';
55
55
  export * from './BackofficeAtim';
56
- export * from './ACB';
56
+ export * from './ACB';
57
+ export * from './MIMO';