@open-tender/types 0.4.39 → 0.4.40
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/.DS_Store +0 -0
- package/dist/cjs/types/api/employee.d.ts +21 -2
- package/dist/cjs/types/api/errorAlerts.d.ts +1 -1
- package/dist/cjs/types/api/menuPages.d.ts +4 -3
- package/dist/cjs/types/api/notifications.d.ts +1 -1
- package/dist/cjs/types/api/offlineAuths.d.ts +1 -1
- package/dist/esm/types/api/employee.d.ts +21 -2
- package/dist/esm/types/api/errorAlerts.d.ts +1 -1
- package/dist/esm/types/api/menuPages.d.ts +4 -3
- package/dist/esm/types/api/notifications.d.ts +1 -1
- package/dist/esm/types/api/offlineAuths.d.ts +1 -1
- package/package.json +1 -1
package/dist/.DS_Store
CHANGED
|
Binary file
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DateString, ISOStringOffset } from '../datetimes';
|
|
1
2
|
import { Money, NegativeMoney } from '../global';
|
|
2
3
|
export declare type PunchAuthType = 'PIN' | 'CARD';
|
|
3
4
|
export declare type PunchType = 'PUNCH_IN' | 'PUNCH_OUT' | 'BREAK_IN' | 'BREAK_OUT';
|
|
@@ -6,7 +7,7 @@ export interface Punch {
|
|
|
6
7
|
department_id: number;
|
|
7
8
|
punch_type: PunchType;
|
|
8
9
|
tips: Money;
|
|
9
|
-
created_at?:
|
|
10
|
+
created_at?: ISOStringOffset;
|
|
10
11
|
created_dt?: string;
|
|
11
12
|
}
|
|
12
13
|
export interface Department {
|
|
@@ -18,7 +19,22 @@ export interface Department {
|
|
|
18
19
|
overtime_pay_rate: string;
|
|
19
20
|
pay_rate: string;
|
|
20
21
|
}
|
|
21
|
-
export
|
|
22
|
+
export interface PunchProcessed extends Punch {
|
|
23
|
+
department?: Department;
|
|
24
|
+
date: Date;
|
|
25
|
+
}
|
|
26
|
+
export declare type PunchesProcessed = PunchProcessed[];
|
|
27
|
+
export interface Shift {
|
|
28
|
+
department: string;
|
|
29
|
+
punchIn?: PunchProcessed;
|
|
30
|
+
punchOut?: PunchProcessed;
|
|
31
|
+
breaks: PunchesProcessed;
|
|
32
|
+
breakOut: PunchProcessed | null;
|
|
33
|
+
breakSeconds: number;
|
|
34
|
+
netSeconds: number;
|
|
35
|
+
}
|
|
36
|
+
export declare type Shifts = Shift[];
|
|
37
|
+
export declare type Role = 'MANAGER' | 'CASHIER' | 'EMPLOYEE';
|
|
22
38
|
export interface Employee {
|
|
23
39
|
employee_id: number;
|
|
24
40
|
timeclock_id: string;
|
|
@@ -30,6 +46,9 @@ export interface Employee {
|
|
|
30
46
|
departments: Array<Department>;
|
|
31
47
|
punches?: Array<Punch>;
|
|
32
48
|
}
|
|
49
|
+
export interface Cashier extends Employee {
|
|
50
|
+
businessDate: DateString;
|
|
51
|
+
}
|
|
33
52
|
export declare type Employees = Array<Employee>;
|
|
34
53
|
export declare type CashEventType = 'FLOAT' | 'PAID_IN' | 'PAID_OUT' | 'DECLARED';
|
|
35
54
|
export interface CashEvent {
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FullOrderType } from '../global';
|
|
2
2
|
export interface MenuPageSection {
|
|
3
3
|
name: string;
|
|
4
|
+
pos_page_id: number;
|
|
4
5
|
pos_section_id: number;
|
|
5
6
|
position: number;
|
|
6
7
|
}
|
|
7
8
|
export declare type MenuPageSections = MenuPageSection[];
|
|
8
9
|
export interface MenuPage {
|
|
9
10
|
name: string;
|
|
10
|
-
order_type:
|
|
11
|
+
order_type: FullOrderType;
|
|
11
12
|
pos_page_id: number;
|
|
12
13
|
position: number;
|
|
13
14
|
sections: MenuPageSections;
|
|
14
15
|
}
|
|
15
|
-
export declare type MenuPages = MenuPage
|
|
16
|
+
export declare type MenuPages = Array<MenuPage>;
|
|
16
17
|
export interface MenuColor {
|
|
17
18
|
id: number;
|
|
18
19
|
color: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DateString, ISOStringOffset } from '../datetimes';
|
|
1
2
|
import { Money, NegativeMoney } from '../global';
|
|
2
3
|
export declare type PunchAuthType = 'PIN' | 'CARD';
|
|
3
4
|
export declare type PunchType = 'PUNCH_IN' | 'PUNCH_OUT' | 'BREAK_IN' | 'BREAK_OUT';
|
|
@@ -6,7 +7,7 @@ export interface Punch {
|
|
|
6
7
|
department_id: number;
|
|
7
8
|
punch_type: PunchType;
|
|
8
9
|
tips: Money;
|
|
9
|
-
created_at?:
|
|
10
|
+
created_at?: ISOStringOffset;
|
|
10
11
|
created_dt?: string;
|
|
11
12
|
}
|
|
12
13
|
export interface Department {
|
|
@@ -18,7 +19,22 @@ export interface Department {
|
|
|
18
19
|
overtime_pay_rate: string;
|
|
19
20
|
pay_rate: string;
|
|
20
21
|
}
|
|
21
|
-
export
|
|
22
|
+
export interface PunchProcessed extends Punch {
|
|
23
|
+
department?: Department;
|
|
24
|
+
date: Date;
|
|
25
|
+
}
|
|
26
|
+
export declare type PunchesProcessed = PunchProcessed[];
|
|
27
|
+
export interface Shift {
|
|
28
|
+
department: string;
|
|
29
|
+
punchIn?: PunchProcessed;
|
|
30
|
+
punchOut?: PunchProcessed;
|
|
31
|
+
breaks: PunchesProcessed;
|
|
32
|
+
breakOut: PunchProcessed | null;
|
|
33
|
+
breakSeconds: number;
|
|
34
|
+
netSeconds: number;
|
|
35
|
+
}
|
|
36
|
+
export declare type Shifts = Shift[];
|
|
37
|
+
export declare type Role = 'MANAGER' | 'CASHIER' | 'EMPLOYEE';
|
|
22
38
|
export interface Employee {
|
|
23
39
|
employee_id: number;
|
|
24
40
|
timeclock_id: string;
|
|
@@ -30,6 +46,9 @@ export interface Employee {
|
|
|
30
46
|
departments: Array<Department>;
|
|
31
47
|
punches?: Array<Punch>;
|
|
32
48
|
}
|
|
49
|
+
export interface Cashier extends Employee {
|
|
50
|
+
businessDate: DateString;
|
|
51
|
+
}
|
|
33
52
|
export declare type Employees = Array<Employee>;
|
|
34
53
|
export declare type CashEventType = 'FLOAT' | 'PAID_IN' | 'PAID_OUT' | 'DECLARED';
|
|
35
54
|
export interface CashEvent {
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FullOrderType } from '../global';
|
|
2
2
|
export interface MenuPageSection {
|
|
3
3
|
name: string;
|
|
4
|
+
pos_page_id: number;
|
|
4
5
|
pos_section_id: number;
|
|
5
6
|
position: number;
|
|
6
7
|
}
|
|
7
8
|
export declare type MenuPageSections = MenuPageSection[];
|
|
8
9
|
export interface MenuPage {
|
|
9
10
|
name: string;
|
|
10
|
-
order_type:
|
|
11
|
+
order_type: FullOrderType;
|
|
11
12
|
pos_page_id: number;
|
|
12
13
|
position: number;
|
|
13
14
|
sections: MenuPageSections;
|
|
14
15
|
}
|
|
15
|
-
export declare type MenuPages = MenuPage
|
|
16
|
+
export declare type MenuPages = Array<MenuPage>;
|
|
16
17
|
export interface MenuColor {
|
|
17
18
|
id: number;
|
|
18
19
|
color: string;
|
package/package.json
CHANGED