@open-tender/store
Version:
A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API
12 lines (11 loc) • 549 B
TypeScript
import { Employee, PunchType, PunchesProcessed, Shift, Shifts, Timezone } from '@open-tender/types';
export declare const punchTypes: {
PUNCH_IN: string;
BREAK_IN: string;
BREAK_OUT: string;
PUNCH_OUT: string;
};
export declare const makePunchMessage: (employee: Employee, punch_type: PunchType) => string;
export declare const calcBreakSeconds: (breaks: PunchesProcessed) => number;
export declare const makeShifts: (employee: Employee, tz: Timezone) => Shifts | null;
export declare const processShift: (shift: Shift) => string[];