@omniumretail/shared-resources 0.2.61 → 0.2.62
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/useEmployeeQueryHook.hook.d.ts +3 -3
- package/dist/types/hooks/ATIM/BackOffice/get/useEmployeesQuery.hook.d.ts +11 -0
- package/dist/types/hooks/ATIM/BackOffice/get/useKPIsQuery.hook.d.ts +11 -0
- package/dist/types/hooks/ATIM/BackOffice/get/useSchedulePeriodQuery.hook.d.ts +2 -0
- package/dist/types/hooks/ATIM/BackOffice/get/useSchedulePeriodTypesQuery.hook.d.ts +10 -0
- package/dist/types/hooks/ATIM/BackOffice/get/useSchedulesQuery.hook.d.ts +8 -0
- package/dist/types/hooks/ATIM/BackOffice/get/useWorkWeekSchedule.hook.d.ts +9 -0
- package/dist/types/hooks/ATIM/BackOffice/mutate/useScheduleMutateQuery.hook.d.ts +2 -0
- package/dist/types/hooks/index.d.ts +12 -4
- package/dist/types/interfaces/Atim.d.ts +101 -0
- package/dist/types/interfaces/AtimScheduling.d.ts +70 -0
- package/dist/types/interfaces/Employee.d.ts +3 -0
- package/dist/types/interfaces/OSUA.d.ts +294 -0
- package/dist/types/interfaces/TimeKeeping.d.ts +0 -6
- package/dist/types/interfaces/index.d.ts +3 -2
- package/package.json +1 -1
- package/src/hooks/ATIM/BackOffice/get/useEmployeeQueryHook.hook.ts +3 -3
- package/src/hooks/ATIM/BackOffice/get/useEmployeesQuery.hook.ts +36 -0
- package/src/hooks/ATIM/BackOffice/get/useKPIsQuery.hook.ts +36 -0
- package/src/hooks/ATIM/BackOffice/get/useSchedulePeriodQuery.hook.ts +16 -0
- package/src/hooks/ATIM/BackOffice/get/useSchedulePeriodTypesQuery.hook.ts +36 -0
- package/src/hooks/ATIM/BackOffice/get/useSchedulesQuery.hook.ts +28 -0
- package/src/hooks/ATIM/BackOffice/get/useWorkWeekSchedule.hook.ts +31 -0
- package/src/hooks/ATIM/BackOffice/mutate/useScheduleMutateQuery.hook.ts +25 -0
- package/src/hooks/index.ts +17 -4
- package/src/interfaces/{BackofficeAtim.ts → Atim.ts} +5 -5
- package/src/interfaces/AtimScheduling.ts +64 -0
- package/src/interfaces/Employee.ts +5 -0
- package/src/interfaces/ResponseList.ts +1 -2
- package/src/interfaces/TimeKeeping.ts +0 -9
- package/src/interfaces/index.ts +3 -2
- package/src/hooks/ATIM/BackOffice/mutate/postAttendanceSummary.hook.ts +0 -17
- /package/src/interfaces/{OUSA.ts → OSUA.ts} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import { ResponseList,
|
|
3
|
-
interface EmployeeQueryOptions extends UseQueryOptions<ResponseList<'Users',
|
|
2
|
+
import { ResponseList, Employee } from '../../../../interfaces';
|
|
3
|
+
interface EmployeeQueryOptions extends UseQueryOptions<ResponseList<'Users', Employee>> {
|
|
4
4
|
query?: string;
|
|
5
5
|
page?: number;
|
|
6
6
|
records?: number;
|
|
7
7
|
sortBy?: string;
|
|
8
8
|
sortDirection?: string;
|
|
9
9
|
}
|
|
10
|
-
export declare const useEmployeeQueryHook: ({ query, page, records, sortBy, sortDirection, ...options }: EmployeeQueryOptions) => import("@tanstack/react-query").UseQueryResult<ResponseList<"Users",
|
|
10
|
+
export declare const useEmployeeQueryHook: ({ query, page, records, sortBy, sortDirection, ...options }: EmployeeQueryOptions) => import("@tanstack/react-query").UseQueryResult<ResponseList<"Users", Employee>, unknown>;
|
|
11
11
|
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { Employee, ResponseList } from "../../../../interfaces";
|
|
3
|
+
interface EmployeesQueryOptions extends UseQueryOptions<ResponseList<"Users", Employee>> {
|
|
4
|
+
page: number;
|
|
5
|
+
records: number;
|
|
6
|
+
storeId: string;
|
|
7
|
+
sortBy: string;
|
|
8
|
+
sortDirection: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const useEmployeesQuery: ({ page, records, storeId, sortBy, sortDirection, ...options }: EmployeesQueryOptions) => import("@tanstack/react-query").UseQueryResult<ResponseList<"Users", Employee>, unknown>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { KPISchedule, ResponseList } from "../../../../interfaces";
|
|
3
|
+
interface KpisQueryOptions extends UseQueryOptions<ResponseList<'KPISchedules', KPISchedule>> {
|
|
4
|
+
date: number;
|
|
5
|
+
storeId: string;
|
|
6
|
+
type: string;
|
|
7
|
+
sortBy: string;
|
|
8
|
+
sortDirection: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const useKpisQueryHook: ({ date, storeId, type, sortBy, sortDirection, ...options }: KpisQueryOptions) => import("@tanstack/react-query").UseQueryResult<ResponseList<"KPISchedules", KPISchedule>, unknown>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { SchedulePeriodType, ResponseList } from "../../../../interfaces";
|
|
3
|
+
interface ScheduleTimePeriodTypesQueryOptions extends UseQueryOptions<ResponseList<'PeriodTypes', SchedulePeriodType>> {
|
|
4
|
+
page: number;
|
|
5
|
+
records: number;
|
|
6
|
+
sortBy: string;
|
|
7
|
+
sortDirection: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const useScheduleTimePeriodTypesQueryHook: ({ page, records, sortBy, sortDirection, ...options }: ScheduleTimePeriodTypesQueryOptions) => import("@tanstack/react-query").UseQueryResult<ResponseList<"PeriodTypes", SchedulePeriodType>, unknown>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { Schedule } from "../../../../interfaces";
|
|
3
|
+
interface ScheduleQueryOptions extends UseQueryOptions<Schedule> {
|
|
4
|
+
date: number;
|
|
5
|
+
storeId: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const useScheduleQueryHook: ({ date, storeId, ...options }: ScheduleQueryOptions) => import("@tanstack/react-query").UseQueryResult<Schedule, unknown>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
import { EmployeeScheduleWeek, ResponseList } from "../../../../interfaces";
|
|
3
|
+
interface WorkWeekScheduleQueryOptions extends UseQueryOptions<ResponseList<'Employees', EmployeeScheduleWeek>> {
|
|
4
|
+
storeId: string;
|
|
5
|
+
begin: number;
|
|
6
|
+
end: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const useWorkWeekScheduleQueryHook: ({ storeId, begin, end, ...options }: WorkWeekScheduleQueryOptions) => import("@tanstack/react-query").UseQueryResult<ResponseList<"Employees", EmployeeScheduleWeek>, unknown>;
|
|
9
|
+
export {};
|
|
@@ -135,8 +135,6 @@ export * from "./Asgt/get/getProductsListingASGTQuery.hook";
|
|
|
135
135
|
export * from "./Asgt/mutate/createPackageASGTMutateQuery.hook";
|
|
136
136
|
export * from "./Asgt/mutate/createTransferASGTMutateQuery.hook";
|
|
137
137
|
export * from "./ATIM/PicaPonto/get/getEmployeesWithTimekeeping.hook";
|
|
138
|
-
export * from "./ATIM/PicaPonto/mutate/postVerifyUserQuery.hook";
|
|
139
|
-
export * from "./ATIM/PicaPonto/mutate/postAttendance.hook";
|
|
140
138
|
export * from "./ATIM/PicaPonto/get/getEmployeesWithTimekeeping.hook";
|
|
141
139
|
export * from "./ATIM/PicaPonto/mutate/postVerifyUserQuery.hook";
|
|
142
140
|
export * from "./ATIM/PicaPonto/mutate/postAttendance.hook";
|
|
@@ -250,13 +248,17 @@ export * from "./OSUA/get/faqs/getFaqsQuery.hook";
|
|
|
250
248
|
export * from "./OSUA/mutate/postCreateIntegrationRequest.hook";
|
|
251
249
|
export * from "./OSUA/mutate/useSetIntegrationToFinished.hook";
|
|
252
250
|
export * from "./OSUA/mutate/postCreateIntegrationRequest.hook";
|
|
251
|
+
export * from "./OSUA/mutate/postCreateIntegrationRequest.hook";
|
|
253
252
|
export * from "./OSUA/MIMO/get/getIntegrationByName.hook";
|
|
254
253
|
export * from "./OSUA/MIMO/get/getProductIntegrationHistory.hook";
|
|
255
254
|
export * from "./OSUA/MIMO/get/useIntegrationDataQuery.hook";
|
|
256
255
|
export * from "./OSUA/MIMO/get/useErrorHistory.hook";
|
|
256
|
+
export * from "./OSUA/MIMO/get/useIntegrationDataQuery.hook";
|
|
257
|
+
export * from "./OSUA/MIMO/get/useErrorHistory.hook";
|
|
257
258
|
export * from "./OSUA/MIMO/mutate/postProductVendusIntegration.hook";
|
|
258
259
|
export * from "./OSUA/MIMO/mutate/postDagsAdjustStock.hook";
|
|
259
260
|
export * from "./OSUA/MIMO/mutate/updateErrorHistory.hook";
|
|
261
|
+
export * from "./OSUA/MIMO/mutate/updateErrorHistory.hook";
|
|
260
262
|
export * from "./OSUA/MIMO/get/getIntegrationByName.hook";
|
|
261
263
|
export * from "./OSUA/MIMO/mutate/postProductVendusIntegration.hook";
|
|
262
264
|
export * from "./OSUA/MIMO/mutate/postDagsAdjustStock.hook";
|
|
@@ -271,20 +273,26 @@ export * from "./ACB/mutate/postClientBalance.hook";
|
|
|
271
273
|
export * from "./ATIM/BackOffice/get/useEmployeeWorklogDetails.hook";
|
|
272
274
|
export * from "./ATIM/BackOffice/get/useEmployeeQueryHook.hook";
|
|
273
275
|
export * from "./ATIM/BackOffice/get/useStoresQueryHook.hook";
|
|
274
|
-
export * from "./ATIM/BackOffice/mutate/postAttendanceRange.hook";
|
|
275
276
|
export * from "./ATIM/BackOffice/get/useAbsenceTypes.hook";
|
|
276
277
|
export * from "./ATIM/BackOffice/get/useAttendancesSummary.hook";
|
|
277
278
|
export * from "./ATIM/BackOffice/get/useWorkMonths.hook";
|
|
278
279
|
export * from "./ATIM/BackOffice/get/useEmployeeWorklogDetails.hook";
|
|
279
280
|
export * from "./ATIM/BackOffice/get/useEmployeeQueryHook.hook";
|
|
280
281
|
export * from "./ATIM/BackOffice/get/useStoresQueryHook.hook";
|
|
281
|
-
export * from "./ATIM/BackOffice/mutate/postAttendanceRange.hook";
|
|
282
282
|
export * from "./ATIM/BackOffice/get/useAbsenceTypes.hook";
|
|
283
283
|
export * from "./ATIM/BackOffice/get/useAttendancesSummary.hook";
|
|
284
284
|
export * from "./ATIM/BackOffice/get/useAttendancesSummarySearch.hook";
|
|
285
285
|
export * from "./ATIM/BackOffice/get/useWorkMonths.hook";
|
|
286
|
+
export * from "./ATIM/BackOffice/get/useSchedulePeriodTypesQuery.hook";
|
|
287
|
+
export * from "./ATIM/BackOffice/get/useSchedulePeriodQuery.hook";
|
|
288
|
+
export * from "./ATIM/BackOffice/get/useSchedulesQuery.hook";
|
|
289
|
+
export * from "./ATIM/BackOffice/get/useKPIsQuery.hook";
|
|
290
|
+
export * from "./ATIM/BackOffice/get/useWorkWeekSchedule.hook";
|
|
291
|
+
export * from "./ATIM/BackOffice/get/useEmployeesQuery.hook";
|
|
292
|
+
export * from "./ATIM/BackOffice/mutate/postAttendanceRange.hook";
|
|
286
293
|
export * from "./ATIM/BackOffice/mutate/useUpdateAttendancesSummary.hook";
|
|
287
294
|
export * from "./ATIM/BackOffice/mutate/useAttendancesById.hook";
|
|
295
|
+
export * from "./ATIM/BackOffice/mutate/useScheduleMutateQuery.hook";
|
|
288
296
|
export * from "./Others/useJobTitlesQuery.hook";
|
|
289
297
|
export * from "./Others/useContractStatesQuery.hook";
|
|
290
298
|
export * from "./Others/useApplicationDataQuery.hook";
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
export interface WorkLogDetail {
|
|
2
|
+
Id: string;
|
|
3
|
+
Type: number;
|
|
4
|
+
Date: number;
|
|
5
|
+
}
|
|
6
|
+
export interface Breaks {
|
|
7
|
+
Number: number;
|
|
8
|
+
Time: number;
|
|
9
|
+
}
|
|
10
|
+
export interface WorkDayLog {
|
|
11
|
+
WorkDay: number;
|
|
12
|
+
TimeWorked: number;
|
|
13
|
+
Breaks: Breaks;
|
|
14
|
+
Details: WorkLogDetail[];
|
|
15
|
+
}
|
|
16
|
+
export interface EmployeesWorklog {
|
|
17
|
+
Id: string;
|
|
18
|
+
Code: string;
|
|
19
|
+
Name: string;
|
|
20
|
+
JobTitle: string;
|
|
21
|
+
IsWorking: boolean;
|
|
22
|
+
TimeWorked: number;
|
|
23
|
+
Breaks: Breaks;
|
|
24
|
+
WorkDayLogs: WorkDayLog[];
|
|
25
|
+
}
|
|
26
|
+
export interface Location {
|
|
27
|
+
Id: string;
|
|
28
|
+
Name: string;
|
|
29
|
+
Code: string;
|
|
30
|
+
Status: string;
|
|
31
|
+
}
|
|
32
|
+
export interface WorkMonths {
|
|
33
|
+
BeginDate: number;
|
|
34
|
+
EndDate: number;
|
|
35
|
+
}
|
|
36
|
+
export interface AbsenceTypes {
|
|
37
|
+
CreateDate: number;
|
|
38
|
+
Id: string;
|
|
39
|
+
Name: string;
|
|
40
|
+
Status: string;
|
|
41
|
+
UpdateDate: number;
|
|
42
|
+
}
|
|
43
|
+
export interface AbsenceOthers {
|
|
44
|
+
Days: number;
|
|
45
|
+
Notes: string;
|
|
46
|
+
}
|
|
47
|
+
export interface AbsenceInterval {
|
|
48
|
+
BeginDate: number;
|
|
49
|
+
EndDate: number;
|
|
50
|
+
}
|
|
51
|
+
export interface AbsenceDetail {
|
|
52
|
+
LineNumber: number;
|
|
53
|
+
AbsenceTypeId: string;
|
|
54
|
+
Name: string;
|
|
55
|
+
Notes: string;
|
|
56
|
+
Interval: AbsenceInterval;
|
|
57
|
+
}
|
|
58
|
+
export interface AbsenceDetails {
|
|
59
|
+
Justified: number;
|
|
60
|
+
Unjustified: number;
|
|
61
|
+
Others: AbsenceOthers;
|
|
62
|
+
Details: AbsenceDetail[];
|
|
63
|
+
}
|
|
64
|
+
export interface ExtraHours {
|
|
65
|
+
Hours: string;
|
|
66
|
+
AuthorizedBy: string | null;
|
|
67
|
+
}
|
|
68
|
+
export interface WorkPeriod {
|
|
69
|
+
Begin: number;
|
|
70
|
+
End: number;
|
|
71
|
+
}
|
|
72
|
+
export interface ScheduleWorkHours {
|
|
73
|
+
Daily: string;
|
|
74
|
+
Night: string;
|
|
75
|
+
Total: string;
|
|
76
|
+
Stocktaking: string;
|
|
77
|
+
}
|
|
78
|
+
export interface WorkedHours {
|
|
79
|
+
Total: string;
|
|
80
|
+
Daily: string;
|
|
81
|
+
Night: string;
|
|
82
|
+
}
|
|
83
|
+
export interface AttendancesSummary {
|
|
84
|
+
Id: string | null;
|
|
85
|
+
StoreId: string;
|
|
86
|
+
Absences: AbsenceDetails;
|
|
87
|
+
CreateDate: number;
|
|
88
|
+
Delay: string;
|
|
89
|
+
EmployeeId: string;
|
|
90
|
+
Extra: ExtraHours;
|
|
91
|
+
Others: {
|
|
92
|
+
Hours: string;
|
|
93
|
+
Notes: string | null;
|
|
94
|
+
};
|
|
95
|
+
Stocktaking: string;
|
|
96
|
+
ScheduleWorkHours: ScheduleWorkHours;
|
|
97
|
+
WorkPeriod: WorkPeriod;
|
|
98
|
+
WorkedHours: WorkedHours;
|
|
99
|
+
UpdateDate: number;
|
|
100
|
+
Observations: string | null;
|
|
101
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export interface KPISchedule {
|
|
2
|
+
Type: string;
|
|
3
|
+
Value: number;
|
|
4
|
+
StoreId: string;
|
|
5
|
+
Time: number;
|
|
6
|
+
Rank: number;
|
|
7
|
+
}
|
|
8
|
+
export interface Schedule {
|
|
9
|
+
Id: string;
|
|
10
|
+
StoreId: string;
|
|
11
|
+
Date: number;
|
|
12
|
+
Status: string;
|
|
13
|
+
CreateDate: number;
|
|
14
|
+
UpdateDate: number;
|
|
15
|
+
Employees: ScheduleEmployee[];
|
|
16
|
+
}
|
|
17
|
+
export interface ScheduleEmployee {
|
|
18
|
+
Id: string;
|
|
19
|
+
Periods: SchedulePeriod[];
|
|
20
|
+
LocalPeriod?: Record<string, string>;
|
|
21
|
+
}
|
|
22
|
+
export interface SchedulePeriod {
|
|
23
|
+
BeginDateId: string;
|
|
24
|
+
EndDateId: string;
|
|
25
|
+
PeriodTypeId: string;
|
|
26
|
+
}
|
|
27
|
+
export interface ScheduleTimePeriod {
|
|
28
|
+
Id: string;
|
|
29
|
+
Time: string;
|
|
30
|
+
}
|
|
31
|
+
export interface SchedulePeriodType {
|
|
32
|
+
CompanyId: string;
|
|
33
|
+
Id: string;
|
|
34
|
+
Name: string;
|
|
35
|
+
Value: string;
|
|
36
|
+
Rank: number;
|
|
37
|
+
Status: string;
|
|
38
|
+
CreateDate: number;
|
|
39
|
+
UpdateDate: number;
|
|
40
|
+
}
|
|
41
|
+
export interface EmployeeScheduleWeek {
|
|
42
|
+
Id: string;
|
|
43
|
+
Code: string;
|
|
44
|
+
Name: string;
|
|
45
|
+
NameShort: string;
|
|
46
|
+
JobTitle: string;
|
|
47
|
+
Schedules: Array<{
|
|
48
|
+
EndTime: string;
|
|
49
|
+
StartTime: string;
|
|
50
|
+
Date: number;
|
|
51
|
+
Period: {
|
|
52
|
+
Id: string;
|
|
53
|
+
};
|
|
54
|
+
}>;
|
|
55
|
+
}
|
|
56
|
+
export interface EmployeeSchedule {
|
|
57
|
+
Id: string;
|
|
58
|
+
Code: string;
|
|
59
|
+
Name: string;
|
|
60
|
+
NameShort: string;
|
|
61
|
+
JobTitle: string;
|
|
62
|
+
Schedules: Array<{
|
|
63
|
+
EndTime: string;
|
|
64
|
+
StartTime: string;
|
|
65
|
+
Date: number;
|
|
66
|
+
Period: {
|
|
67
|
+
Id: string;
|
|
68
|
+
};
|
|
69
|
+
}>;
|
|
70
|
+
}
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
export interface GiftCards {
|
|
2
|
+
Id: string;
|
|
3
|
+
Number: string;
|
|
4
|
+
CustomerId: string;
|
|
5
|
+
CompanyCode: string;
|
|
6
|
+
Pin: string | null;
|
|
7
|
+
Type: string;
|
|
8
|
+
CurrencyISO3: string;
|
|
9
|
+
Value: number;
|
|
10
|
+
ExpirationDate: number;
|
|
11
|
+
CreateDate: number;
|
|
12
|
+
UpdateDate: number;
|
|
13
|
+
Status: string;
|
|
14
|
+
}
|
|
15
|
+
export interface Transaction {
|
|
16
|
+
transactionid: string;
|
|
17
|
+
date: number;
|
|
18
|
+
moneyamount: string;
|
|
19
|
+
merchant_reference: string | null;
|
|
20
|
+
staff_reference: string | null;
|
|
21
|
+
transaction_reference: string | null;
|
|
22
|
+
}
|
|
23
|
+
export interface SitooVoucher {
|
|
24
|
+
type: string;
|
|
25
|
+
currencycode: string;
|
|
26
|
+
cardnumber: string;
|
|
27
|
+
cardnumber_display: string;
|
|
28
|
+
redeemable: boolean;
|
|
29
|
+
date_expires: number;
|
|
30
|
+
date_created: number;
|
|
31
|
+
moneyamount: string;
|
|
32
|
+
requirespin: boolean;
|
|
33
|
+
transactions: Transaction;
|
|
34
|
+
}
|
|
35
|
+
export interface Stage {
|
|
36
|
+
StageCode: number;
|
|
37
|
+
StageMessage: string;
|
|
38
|
+
}
|
|
39
|
+
export interface SourcePlatform {
|
|
40
|
+
Id: string;
|
|
41
|
+
Name: string;
|
|
42
|
+
}
|
|
43
|
+
export interface IntegrationRequestStatus {
|
|
44
|
+
Id: string;
|
|
45
|
+
IntegrationType: string;
|
|
46
|
+
Stage: Stage;
|
|
47
|
+
GroupIntegrationRequest: string | null;
|
|
48
|
+
Details: [];
|
|
49
|
+
TotalRecords: number;
|
|
50
|
+
Sucess: number;
|
|
51
|
+
Errors: number;
|
|
52
|
+
Notes: string | null;
|
|
53
|
+
Destinations: string | null;
|
|
54
|
+
SourcePlatform: SourcePlatform;
|
|
55
|
+
ImpersonatePlatform: string | null;
|
|
56
|
+
SearchQuery: string;
|
|
57
|
+
BeginDate: number | null;
|
|
58
|
+
EndDate: number | null;
|
|
59
|
+
Duration: string | null;
|
|
60
|
+
Status: string;
|
|
61
|
+
CreateDate: number;
|
|
62
|
+
UpdatedDate: number;
|
|
63
|
+
}
|
|
64
|
+
export interface BillingAddress {
|
|
65
|
+
Street: string | null;
|
|
66
|
+
City: string | null;
|
|
67
|
+
ZipCode: string | null;
|
|
68
|
+
CountryISO2: string | null;
|
|
69
|
+
}
|
|
70
|
+
export interface DeliveryAddress {
|
|
71
|
+
Street: string | null;
|
|
72
|
+
City: string | null;
|
|
73
|
+
ZipCode: string | null;
|
|
74
|
+
CountryISO2: string | null;
|
|
75
|
+
}
|
|
76
|
+
export interface FiscalInformation {
|
|
77
|
+
TaxName: string | null;
|
|
78
|
+
TaxNumber: string | null;
|
|
79
|
+
}
|
|
80
|
+
export interface Lines {
|
|
81
|
+
LineNumber: number;
|
|
82
|
+
Description: string;
|
|
83
|
+
Reference: string;
|
|
84
|
+
SKU: string;
|
|
85
|
+
Quantity: number;
|
|
86
|
+
VAT: string;
|
|
87
|
+
Taxes: number;
|
|
88
|
+
UnitPrice: number;
|
|
89
|
+
Discount: number;
|
|
90
|
+
PriceNet: number;
|
|
91
|
+
PriceGross: number;
|
|
92
|
+
CostPrice: number;
|
|
93
|
+
CampaignId: string | null;
|
|
94
|
+
ReasonCode: string;
|
|
95
|
+
UnitLabel: string;
|
|
96
|
+
}
|
|
97
|
+
export interface Payments {
|
|
98
|
+
LineNumber: number;
|
|
99
|
+
Amount: number;
|
|
100
|
+
PaymentTypeId: string;
|
|
101
|
+
GiftCardNumber: string | null;
|
|
102
|
+
Name: string;
|
|
103
|
+
}
|
|
104
|
+
export interface AdditionalFields {
|
|
105
|
+
Name: string;
|
|
106
|
+
Value: string;
|
|
107
|
+
}
|
|
108
|
+
export interface DocumentGng {
|
|
109
|
+
Id: string;
|
|
110
|
+
DocumentNumber: string;
|
|
111
|
+
CompanyCode: string;
|
|
112
|
+
DocumentTypeCode: string;
|
|
113
|
+
LocationCode: string;
|
|
114
|
+
Date: number;
|
|
115
|
+
AssociatedDocumentNumber: string | null;
|
|
116
|
+
SourceLocationCode: string | null;
|
|
117
|
+
DestinationLocationCode: string | null;
|
|
118
|
+
UserCode: string;
|
|
119
|
+
CustomerId: string | null;
|
|
120
|
+
SalesAssociateUserCode: string;
|
|
121
|
+
BillingAddress: BillingAddress | null;
|
|
122
|
+
DeliveryAddress: DeliveryAddress | null;
|
|
123
|
+
SubTotalNet: number;
|
|
124
|
+
SubTotalGross: number;
|
|
125
|
+
PostageNet: number;
|
|
126
|
+
PostageGross: number;
|
|
127
|
+
Taxes: number;
|
|
128
|
+
Discount: number;
|
|
129
|
+
TotalGross: number;
|
|
130
|
+
InternalStaffComments: string | null;
|
|
131
|
+
FiscalInformation: FiscalInformation | null;
|
|
132
|
+
POSReceiptId: string | null;
|
|
133
|
+
CreateDate: number;
|
|
134
|
+
UpdateDate: number;
|
|
135
|
+
Status: string;
|
|
136
|
+
Lines: Lines;
|
|
137
|
+
Payments: Payments;
|
|
138
|
+
ExternalPlatforms: any | null;
|
|
139
|
+
AdditionalFields: AdditionalFields;
|
|
140
|
+
}
|
|
141
|
+
export interface OrderItemAdditionalData {
|
|
142
|
+
ReasonCodeReturn: string | null;
|
|
143
|
+
InventTransId: string | null;
|
|
144
|
+
ReasonCodeManualPrice: string | null;
|
|
145
|
+
ReasonCodeManualDiscount: string | null;
|
|
146
|
+
POSStaffSalesExternalId: string | null;
|
|
147
|
+
OrderItemMoneyRowDiscount: string | null;
|
|
148
|
+
}
|
|
149
|
+
export interface OrderItems {
|
|
150
|
+
OrderItemId: number;
|
|
151
|
+
OrderItemType: number;
|
|
152
|
+
ProductId: number;
|
|
153
|
+
ProductName: string;
|
|
154
|
+
SKU: string;
|
|
155
|
+
ProductAttributes: string;
|
|
156
|
+
ExternalInput: string;
|
|
157
|
+
ExternalInputTitle: string;
|
|
158
|
+
Quantity: number;
|
|
159
|
+
DecimalUnitQuantity: number | null;
|
|
160
|
+
MoneyNetPricePerUnit: string;
|
|
161
|
+
MoneyPriceOrg: string;
|
|
162
|
+
VatValue: number;
|
|
163
|
+
DeliveryInfo: string;
|
|
164
|
+
MoneyItemTotalNet: string;
|
|
165
|
+
MoneyItemTotalVat: string;
|
|
166
|
+
VoucherId: number;
|
|
167
|
+
VoucherCode: string;
|
|
168
|
+
VoucherName: string;
|
|
169
|
+
MoneyOriginalPrice: string;
|
|
170
|
+
MoneyDiscountedPrice: string;
|
|
171
|
+
MoneyDiscount: string;
|
|
172
|
+
SalesTaxes: any;
|
|
173
|
+
DecimalQuantityTotal: string;
|
|
174
|
+
MoneyNetPricePerQuantity: string;
|
|
175
|
+
AdditionalData: OrderItemAdditionalData;
|
|
176
|
+
}
|
|
177
|
+
export interface PaymentAdditionalData {
|
|
178
|
+
GiftCardNumber: string | null;
|
|
179
|
+
}
|
|
180
|
+
export interface Payment {
|
|
181
|
+
Name: string;
|
|
182
|
+
MoneyAmount: string;
|
|
183
|
+
ExternalId: string;
|
|
184
|
+
AdditionalData: PaymentAdditionalData;
|
|
185
|
+
}
|
|
186
|
+
export interface AdditionalData {
|
|
187
|
+
POSTimezone: string;
|
|
188
|
+
StoreExternalId: string | null;
|
|
189
|
+
POSStaffSalesUserId: string | null;
|
|
190
|
+
POSStaffUserId: string | null;
|
|
191
|
+
CrmMemberNumber: string;
|
|
192
|
+
POSStaffExternalId: string;
|
|
193
|
+
POSStaffSalesExternalId: string;
|
|
194
|
+
CustomerTaxId: string | null;
|
|
195
|
+
POSReceiptId: string | null;
|
|
196
|
+
ATCUD: string | null;
|
|
197
|
+
CTUInvoiceNumber: string | null;
|
|
198
|
+
POSOriginalSalesOrderId: string | null;
|
|
199
|
+
OmniumIdentification: string | null;
|
|
200
|
+
FiscalInvoiceNumber: string | null;
|
|
201
|
+
InvoiceNumberCorrected: string | null;
|
|
202
|
+
FiscalInvoiceType: string | null;
|
|
203
|
+
}
|
|
204
|
+
export interface DocumentSitoo {
|
|
205
|
+
OrderId: number;
|
|
206
|
+
EshopId: number;
|
|
207
|
+
ExternalId: string;
|
|
208
|
+
CreditOrderId: number | null;
|
|
209
|
+
CheckoutTypeId: number;
|
|
210
|
+
DeliveryTypeId: number;
|
|
211
|
+
Email: string | null;
|
|
212
|
+
NameFirst: string | null;
|
|
213
|
+
NameLast: string | null;
|
|
214
|
+
PersonalId: string;
|
|
215
|
+
Company: string;
|
|
216
|
+
Phone: string | null;
|
|
217
|
+
InvoiceAddress: string;
|
|
218
|
+
InvoiceAddress2: string;
|
|
219
|
+
InvoiceZip: string;
|
|
220
|
+
InvoiceCity: string;
|
|
221
|
+
InvoiceState: string | null;
|
|
222
|
+
InvoiceCountryid: string;
|
|
223
|
+
DeliveryAddress: string;
|
|
224
|
+
DeliveryAddress2: string;
|
|
225
|
+
DeliveryZip: string;
|
|
226
|
+
DeliveryCity: string;
|
|
227
|
+
DeliveryState: string;
|
|
228
|
+
DeliveryCountryid: string;
|
|
229
|
+
Comment: string | null;
|
|
230
|
+
CommentInternal: string;
|
|
231
|
+
CustomerRef: string | null;
|
|
232
|
+
CheckoutRef: string | null;
|
|
233
|
+
MoneyTotalNet: string | null;
|
|
234
|
+
MoneyTotalVat: string | null;
|
|
235
|
+
MoneyCheckoutNet: string | null;
|
|
236
|
+
MoneyCheckoutVat: string | null;
|
|
237
|
+
MoneyTotalGrossCheckout: string | null;
|
|
238
|
+
MoneyDeliveryNet: string;
|
|
239
|
+
MoneyDeliveryVat: string | null;
|
|
240
|
+
MoneyTotalGrossDelivery: string;
|
|
241
|
+
MoneyFinalNet: string | null;
|
|
242
|
+
MoneyFinalVat: string | null;
|
|
243
|
+
MoneyFinalSalestax: string | null;
|
|
244
|
+
MoneyTotalGrossRoundoff: string | null;
|
|
245
|
+
MoneyTotalGrossAll: string | null;
|
|
246
|
+
CheckoutTypeName: string | null;
|
|
247
|
+
CheckoutMethodId: number;
|
|
248
|
+
CheckoutMethodSubId: number;
|
|
249
|
+
DeliveryTypeName: string | null;
|
|
250
|
+
OrderDate: number;
|
|
251
|
+
OrderStateId: number;
|
|
252
|
+
PaymentStateId: number;
|
|
253
|
+
OrderTypeId: number;
|
|
254
|
+
UserIdStaff: string | null;
|
|
255
|
+
RegisterId: string | null;
|
|
256
|
+
WarehouseId: number;
|
|
257
|
+
DateReserved: string | null;
|
|
258
|
+
CurrencyCode: string;
|
|
259
|
+
AdditionalData: AdditionalData;
|
|
260
|
+
OrderItems: OrderItems;
|
|
261
|
+
Payments: Payment;
|
|
262
|
+
}
|
|
263
|
+
export interface Language {
|
|
264
|
+
Content: string;
|
|
265
|
+
Type: string;
|
|
266
|
+
}
|
|
267
|
+
export interface Block {
|
|
268
|
+
PT: Language[];
|
|
269
|
+
ES: Language[];
|
|
270
|
+
Type: string;
|
|
271
|
+
}
|
|
272
|
+
export interface Section {
|
|
273
|
+
Title: string;
|
|
274
|
+
Description: string;
|
|
275
|
+
Icon: string;
|
|
276
|
+
Tags: string[];
|
|
277
|
+
Blocks: Block[];
|
|
278
|
+
}
|
|
279
|
+
export interface IntegrationData {
|
|
280
|
+
Id: string;
|
|
281
|
+
Name: string;
|
|
282
|
+
DateToImport: number;
|
|
283
|
+
OrderIdFrom: string;
|
|
284
|
+
OrderIdTo: string;
|
|
285
|
+
Status: string;
|
|
286
|
+
LastSuccessfullDate: string;
|
|
287
|
+
}
|
|
288
|
+
export interface ErrorHistoryItem {
|
|
289
|
+
CreateDate: string;
|
|
290
|
+
ErrorMessage: string;
|
|
291
|
+
Flow: string;
|
|
292
|
+
Id: string;
|
|
293
|
+
Information: string;
|
|
294
|
+
}
|
|
@@ -51,8 +51,9 @@ export * from './GetMonths';
|
|
|
51
51
|
export * from './AstsStockInfo';
|
|
52
52
|
export * from './AstsStock';
|
|
53
53
|
export * from './UserAuthentication';
|
|
54
|
-
export * from './
|
|
55
|
-
export * from './
|
|
54
|
+
export * from './OSUA';
|
|
55
|
+
export * from './Atim';
|
|
56
|
+
export * from './AtimScheduling';
|
|
56
57
|
export * from './ACB';
|
|
57
58
|
export * from './MIMO';
|
|
58
59
|
export * from './Bulk';
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useQuery, UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import { getAuth0 } from '../../../../services/ApiService';
|
|
3
|
-
import { Store, ResponseList,
|
|
3
|
+
import { Store, ResponseList, Employee } from '../../../../interfaces';
|
|
4
4
|
|
|
5
|
-
interface EmployeeQueryOptions extends UseQueryOptions<ResponseList<'Users',
|
|
5
|
+
interface EmployeeQueryOptions extends UseQueryOptions<ResponseList<'Users', Employee >> {
|
|
6
6
|
query?: string;
|
|
7
7
|
page?: number;
|
|
8
8
|
records?: number;
|
|
@@ -11,7 +11,7 @@ interface EmployeeQueryOptions extends UseQueryOptions<ResponseList<'Users', Use
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export const useEmployeeQueryHook = ({ query, page, records, sortBy, sortDirection, ...options }: EmployeeQueryOptions) => {
|
|
14
|
-
return useQuery<ResponseList<'Users',
|
|
14
|
+
return useQuery<ResponseList<'Users', Employee>>(
|
|
15
15
|
['EMPLOYEES_QUERY', query, page, records, sortBy, sortDirection],
|
|
16
16
|
() =>
|
|
17
17
|
getAuth0('/AACP/Users', {
|