@open-tender/store 0.3.90 → 0.3.91
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/cjs/slices/pos.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DeviceColorScheme, DeviceFontSize, Employee, RequestError } from '../types';
|
|
1
|
+
import { Cashier, DeviceColorScheme, DeviceFontSize, Employee, RequestError } from '../types';
|
|
2
2
|
import { AppState } from '../app';
|
|
3
3
|
export interface PosState {
|
|
4
|
-
cashier:
|
|
4
|
+
cashier: Cashier | null;
|
|
5
5
|
manager: Employee | null;
|
|
6
6
|
isOffline: boolean;
|
|
7
7
|
lastOrderId: string | null;
|
|
@@ -31,7 +31,7 @@ export declare const selectLastOrderId: (state: AppState) => string | null;
|
|
|
31
31
|
export declare const selectMenuPage: (state: AppState) => number | null;
|
|
32
32
|
export declare const selectPosName: (state: AppState) => string | null;
|
|
33
33
|
export declare const selectPosNotes: (state: AppState) => string | null;
|
|
34
|
-
export declare const selectCashier: (state: AppState) =>
|
|
34
|
+
export declare const selectCashier: (state: AppState) => Cashier | null;
|
|
35
35
|
export declare const selectManager: (state: AppState) => Employee | null;
|
|
36
36
|
export declare const selectIsOffline: (state: AppState) => boolean;
|
|
37
37
|
export declare const selectPosFontSize: (state: AppState) => DeviceFontSize;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ISOStringOffset } from '../datetimes';
|
|
1
|
+
import { DateString, ISOStringOffset } from '../datetimes';
|
|
2
2
|
import { Money, NegativeMoney } from '../global';
|
|
3
3
|
export declare type PunchAuthType = 'PIN' | 'CARD';
|
|
4
4
|
export declare type PunchType = 'PUNCH_IN' | 'PUNCH_OUT' | 'BREAK_IN' | 'BREAK_OUT';
|
|
@@ -46,6 +46,9 @@ export interface Employee {
|
|
|
46
46
|
departments: Array<Department>;
|
|
47
47
|
punches?: Array<Punch>;
|
|
48
48
|
}
|
|
49
|
+
export interface Cashier extends Employee {
|
|
50
|
+
businessDate: DateString;
|
|
51
|
+
}
|
|
49
52
|
export declare type Employees = Array<Employee>;
|
|
50
53
|
export declare type CashEventType = 'FLOAT' | 'PAID_IN' | 'PAID_OUT' | 'DECLARED';
|
|
51
54
|
export interface CashEvent {
|
package/dist/esm/slices/pos.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DeviceColorScheme, DeviceFontSize, Employee, RequestError } from '../types';
|
|
1
|
+
import { Cashier, DeviceColorScheme, DeviceFontSize, Employee, RequestError } from '../types';
|
|
2
2
|
import { AppState } from '../app';
|
|
3
3
|
export interface PosState {
|
|
4
|
-
cashier:
|
|
4
|
+
cashier: Cashier | null;
|
|
5
5
|
manager: Employee | null;
|
|
6
6
|
isOffline: boolean;
|
|
7
7
|
lastOrderId: string | null;
|
|
@@ -31,7 +31,7 @@ export declare const selectLastOrderId: (state: AppState) => string | null;
|
|
|
31
31
|
export declare const selectMenuPage: (state: AppState) => number | null;
|
|
32
32
|
export declare const selectPosName: (state: AppState) => string | null;
|
|
33
33
|
export declare const selectPosNotes: (state: AppState) => string | null;
|
|
34
|
-
export declare const selectCashier: (state: AppState) =>
|
|
34
|
+
export declare const selectCashier: (state: AppState) => Cashier | null;
|
|
35
35
|
export declare const selectManager: (state: AppState) => Employee | null;
|
|
36
36
|
export declare const selectIsOffline: (state: AppState) => boolean;
|
|
37
37
|
export declare const selectPosFontSize: (state: AppState) => DeviceFontSize;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ISOStringOffset } from '../datetimes';
|
|
1
|
+
import { DateString, ISOStringOffset } from '../datetimes';
|
|
2
2
|
import { Money, NegativeMoney } from '../global';
|
|
3
3
|
export declare type PunchAuthType = 'PIN' | 'CARD';
|
|
4
4
|
export declare type PunchType = 'PUNCH_IN' | 'PUNCH_OUT' | 'BREAK_IN' | 'BREAK_OUT';
|
|
@@ -46,6 +46,9 @@ export interface Employee {
|
|
|
46
46
|
departments: Array<Department>;
|
|
47
47
|
punches?: Array<Punch>;
|
|
48
48
|
}
|
|
49
|
+
export interface Cashier extends Employee {
|
|
50
|
+
businessDate: DateString;
|
|
51
|
+
}
|
|
49
52
|
export declare type Employees = Array<Employee>;
|
|
50
53
|
export declare type CashEventType = 'FLOAT' | 'PAID_IN' | 'PAID_OUT' | 'DECLARED';
|
|
51
54
|
export interface CashEvent {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.91",
|
|
4
4
|
"description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|