@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.
- package/dist/bundle.js +1 -1
- package/dist/types/hooks/ATIM/BackOffice/get/useAbsenceTypes.hook.d.ts +10 -0
- package/dist/types/hooks/ATIM/BackOffice/get/useAttendancesSummary.hook.d.ts +10 -0
- package/dist/types/hooks/ATIM/BackOffice/get/useEmployeeWorklogDetails.hook.d.ts +5 -3
- package/dist/types/hooks/ATIM/BackOffice/get/useWorkMonths.hook.d.ts +9 -0
- package/dist/types/hooks/ATIM/BackOffice/mutate/postAttendanceSummary.hook.d.ts +2 -0
- package/dist/types/hooks/OSUA/MIMO/get/getIntegrationByName.hook.d.ts +6 -0
- package/dist/types/hooks/OSUA/MIMO/mutate/postDagsAdjustStock.hook.d.ts +1 -0
- package/dist/types/hooks/OSUA/MIMO/mutate/postProductVendusIntegration.hook.d.ts +2 -0
- package/dist/types/hooks/OSUA/get/documentos/getGngDocumentos.hook.d.ts +2 -2
- package/dist/types/hooks/index.d.ts +150 -144
- package/dist/types/interfaces/BackofficeAtim.d.ts +68 -0
- package/dist/types/interfaces/MIMO.d.ts +12 -0
- package/dist/types/interfaces/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/hooks/ATIM/BackOffice/get/useAbsenceTypes.hook.ts +33 -0
- package/src/hooks/ATIM/BackOffice/get/useAttendancesSummary.hook.ts +40 -0
- package/src/hooks/ATIM/BackOffice/get/useEmployeeWorklogDetails.hook.ts +63 -38
- package/src/hooks/ATIM/BackOffice/get/useWorkMonths.hook.ts +31 -0
- package/src/hooks/ATIM/BackOffice/mutate/postAttendanceSummary.hook.ts +17 -0
- package/src/hooks/OSUA/MIMO/get/getIntegrationByName.hook.ts +19 -0
- package/src/hooks/OSUA/MIMO/mutate/postDagsAdjustStock.hook.ts +13 -0
- package/src/hooks/OSUA/MIMO/mutate/postProductVendusIntegration.hook.ts +15 -0
- package/src/hooks/OSUA/get/documentos/getGngDocumentos.hook.ts +17 -10
- package/src/hooks/index.ts +157 -148
- package/src/interfaces/BackofficeAtim.ts +106 -31
- package/src/interfaces/MIMO.ts +13 -0
- package/src/interfaces/index.ts +2 -1
|
@@ -1,45 +1,120 @@
|
|
|
1
1
|
export interface WorkLogDetail {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
Id: string;
|
|
3
|
+
Type: number;
|
|
4
|
+
Date: number;
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
export interface Breaks {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
Number: number;
|
|
9
|
+
Time: number;
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
|
|
12
12
|
export interface WorkDayLog {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
WorkDay: number;
|
|
14
|
+
TimeWorked: number;
|
|
15
|
+
Breaks: Breaks;
|
|
16
|
+
Details: WorkLogDetail[];
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
|
|
19
19
|
export interface EmployeesWorklog {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
+
}
|
package/src/interfaces/index.ts
CHANGED