meemup-library 1.2.71 → 1.2.73

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.
@@ -16,7 +16,7 @@ import IPointOfSaleOrderSummary from "../interfaces/pos/IPointOfSaleOrderSummary
16
16
  import EnumCustomerMandatory from "../enums/EnumCustomerMandatory";
17
17
  import IPointOfSaleSettingRewardProgram from "../interfaces/pos/IPointOfSaleSettingRewardProgram";
18
18
  import ITextValue from "../interfaces/ITextValue";
19
- export default class OrderToolController {
19
+ declare class OrderToolController {
20
20
  replaceItem(item: IOrderItem, items: IOrderItem[]): IOrderItem[];
21
21
  paymentTypeText(order?: IOrder | IPointOfSaleOrderSummary): string;
22
22
  getPaymentTypeText(paymentType: EnumPaymentType, orderType: EnumOrderType): string;
@@ -52,3 +52,5 @@ export default class OrderToolController {
52
52
  isMandatory(orderType: EnumOrderType, value: EnumCustomerMandatory): boolean;
53
53
  private round;
54
54
  }
55
+ declare const _default: OrderToolController;
56
+ export default _default;
@@ -15,7 +15,7 @@ import PhoneController from "../controllers/PhoneController";
15
15
  import EnumChannels from "../enums/EnumChannels";
16
16
  import EnumCustomerMandatory from "../enums/EnumCustomerMandatory";
17
17
  import EnumRewardPointType from "../enums/EnumRewardPointType";
18
- export default class OrderToolController {
18
+ class OrderToolController {
19
19
  constructor() {
20
20
  this.calcDeliveryCost = (displayTotalAmount, zone) => {
21
21
  if (displayTotalAmount >= zone.freeFrom)
@@ -586,3 +586,4 @@ export default class OrderToolController {
586
586
  return Math.round(num * 100) / 100;
587
587
  }
588
588
  }
589
+ export default new OrderToolController();
@@ -0,0 +1,6 @@
1
+ export default interface IPointOfSaleCheckingTimeBody {
2
+ breakId: number | null;
3
+ passCode: string;
4
+ dateTime: string;
5
+ }
6
+ export declare const initPointOfSaleCheckingTimeBody: IPointOfSaleCheckingTimeBody;
@@ -0,0 +1,5 @@
1
+ export const initPointOfSaleCheckingTimeBody = {
2
+ breakId: null,
3
+ passCode: "",
4
+ dateTime: "",
5
+ };
@@ -0,0 +1,9 @@
1
+ import IPointOfSaleCheckingTimeDataSummary from "./IPointOfSaleCheckingTimeDataSummary";
2
+ import IPointOfSaleCheckingTimeDataTimeRecord from "./IPointOfSaleCheckingTimeDataTimeRecord";
3
+ export default interface IPointOfSaleCheckingTimeData {
4
+ firstName: string;
5
+ lastName: string;
6
+ timeRecords: IPointOfSaleCheckingTimeDataTimeRecord[];
7
+ summary: IPointOfSaleCheckingTimeDataSummary;
8
+ }
9
+ export declare const initPointOfSaleCheckingTimeData: IPointOfSaleCheckingTimeData;
@@ -0,0 +1,7 @@
1
+ import { initPointOfSaleCheckingTimeDataSummary } from "./IPointOfSaleCheckingTimeDataSummary";
2
+ export const initPointOfSaleCheckingTimeData = {
3
+ firstName: "",
4
+ lastName: "",
5
+ timeRecords: [],
6
+ summary: initPointOfSaleCheckingTimeDataSummary
7
+ };
@@ -0,0 +1,6 @@
1
+ export default interface IPointOfSaleCheckingTimeDataSummary {
2
+ totalWorkDuration: string;
3
+ totalBreakDuration: string;
4
+ netWorkDuration: string;
5
+ }
6
+ export declare const initPointOfSaleCheckingTimeDataSummary: IPointOfSaleCheckingTimeDataSummary;
@@ -0,0 +1,5 @@
1
+ export const initPointOfSaleCheckingTimeDataSummary = {
2
+ totalWorkDuration: "00:00:00",
3
+ totalBreakDuration: "00:00:00",
4
+ netWorkDuration: "00:00:00",
5
+ };
@@ -0,0 +1,10 @@
1
+ export default interface IPointOfSaleCheckingTimeDataTimeRecord {
2
+ id: number;
3
+ staffId: number;
4
+ breakId: number | null;
5
+ date: string;
6
+ clockedIn: string;
7
+ clockedOut: string;
8
+ break: string | null;
9
+ staff: string | null;
10
+ }
@@ -0,0 +1,9 @@
1
+ import IPointOfSaleCheckingTimeDataSummary from "./IPointOfSaleCheckingTimeDataSummary";
2
+ import IPointOfSaleShiftSummaryTimeRecord from "./IPointOfSaleShiftSummaryTimeRecord";
3
+ export default interface IPointOfSaleShiftSummary {
4
+ firstName: string;
5
+ lastName: string;
6
+ timeRecords: IPointOfSaleShiftSummaryTimeRecord[];
7
+ summary: IPointOfSaleCheckingTimeDataSummary;
8
+ }
9
+ export declare const initPointOfSaleShiftSummary: IPointOfSaleShiftSummary;
@@ -0,0 +1,7 @@
1
+ import { initPointOfSaleCheckingTimeDataSummary } from "./IPointOfSaleCheckingTimeDataSummary";
2
+ export const initPointOfSaleShiftSummary = {
3
+ firstName: "",
4
+ lastName: "",
5
+ timeRecords: [],
6
+ summary: initPointOfSaleCheckingTimeDataSummary
7
+ };
@@ -0,0 +1,9 @@
1
+ export default interface IPointOfSaleShiftSummaryTimeRecord {
2
+ id: number;
3
+ breakId: number | null;
4
+ break: string | null;
5
+ date: string;
6
+ clockedIn: string;
7
+ clockedOut: string;
8
+ workTime: string;
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meemup-library",
3
- "version": "1.2.71",
3
+ "version": "1.2.73",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",