meemup-library 1.1.8 → 1.1.10

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.
@@ -0,0 +1,6 @@
1
+ declare enum EnumPointOfSaleReportFormMode {
2
+ STORE_OPERATION = 1,
3
+ DRIVERS = 2,
4
+ STAFS = 3
5
+ }
6
+ export default EnumPointOfSaleReportFormMode;
@@ -0,0 +1,7 @@
1
+ var EnumPointOfSaleReportFormMode;
2
+ (function (EnumPointOfSaleReportFormMode) {
3
+ EnumPointOfSaleReportFormMode[EnumPointOfSaleReportFormMode["STORE_OPERATION"] = 1] = "STORE_OPERATION";
4
+ EnumPointOfSaleReportFormMode[EnumPointOfSaleReportFormMode["DRIVERS"] = 2] = "DRIVERS";
5
+ EnumPointOfSaleReportFormMode[EnumPointOfSaleReportFormMode["STAFS"] = 3] = "STAFS";
6
+ })(EnumPointOfSaleReportFormMode || (EnumPointOfSaleReportFormMode = {}));
7
+ export default EnumPointOfSaleReportFormMode;
@@ -1,6 +1,10 @@
1
+ import EnumPointOfSaleReportFormMode from "../enums/EnumPointOfSaleReportFormMode";
1
2
  export default interface IPointOfSaleReportForm {
2
3
  startDate: Date;
3
4
  endDate: Date;
4
5
  type: number;
6
+ mode: EnumPointOfSaleReportFormMode;
7
+ staffId: number;
8
+ driverId: number;
5
9
  }
6
10
  export declare const initPointOfSaleReportForm: IPointOfSaleReportForm;
@@ -1,5 +1,9 @@
1
+ import EnumPointOfSaleReportFormMode from "../enums/EnumPointOfSaleReportFormMode";
1
2
  export const initPointOfSaleReportForm = {
2
3
  startDate: new Date(),
3
4
  endDate: new Date(),
4
- type: 1
5
+ type: 1,
6
+ mode: EnumPointOfSaleReportFormMode.STORE_OPERATION,
7
+ staffId: -1,
8
+ driverId: -1
5
9
  };
@@ -26,6 +26,14 @@ interface ISetting {
26
26
  tax: number;
27
27
  taxTitle: string;
28
28
  fees: ICompanyFee[];
29
+ firstPageAfterLogin: "dashboard" | "order" | "logs" | "settings" | "management" | "printer" | "reports";
30
+ dashboardَAccess: boolean;
31
+ orderAccess: boolean;
32
+ logsAccess: boolean;
33
+ settingsAccess: boolean;
34
+ managementAccess: boolean;
35
+ printerAccess: boolean;
36
+ reportsAccess: boolean;
29
37
  }
30
38
  export default ISetting;
31
39
  export declare const initSetting: ISetting;
@@ -7,7 +7,6 @@ export const initSetting = {
7
7
  autoPrintOnNewOrder: false,
8
8
  autoPrintOnNewOrderWhen: 1,
9
9
  defaultPaymentMethod: EnumPaymentType.cash,
10
- // defaultPaymentState: EnumPaymentState.NOT_PAID,
11
10
  defaultOrderType: EnumOrderType.dining,
12
11
  customerMandatory: false,
13
12
  checkDeliveryCoverageArea: false,
@@ -21,12 +20,19 @@ export const initSetting = {
21
20
  pickupFrom: 0,
22
21
  pickupMinimumTime: 0,
23
22
  roundCashPayments: 0,
24
- // startingOrderNumberFrom: 0,
25
23
  taxTitle: "HST",
26
24
  skipTipping: false,
27
25
  openCashDrawer: 1,
28
26
  openCashDrawerOnFailedPaymentPrint: false,
29
27
  printCommand: EnumPrintCommand.SYSTEM_PRINT,
30
28
  diningMinimumTime: 15,
31
- fees: []
29
+ fees: [],
30
+ firstPageAfterLogin: "dashboard",
31
+ dashboardَAccess: true,
32
+ orderAccess: true,
33
+ logsAccess: true,
34
+ settingsAccess: true,
35
+ managementAccess: true,
36
+ printerAccess: true,
37
+ reportsAccess: true,
32
38
  };
@@ -1,9 +1,10 @@
1
1
  export default interface IPointOfSaleCompanyAccessLevel {
2
- dashboard: boolean;
3
- order: boolean;
4
- logs: boolean;
5
- settings: boolean;
6
- management: boolean;
7
- printer: boolean;
8
- reports: boolean;
2
+ firstPageAfterLogin: "dashboard" | "order" | "logs" | "settings" | "management" | "printer" | "reports";
3
+ dashboardَAccess: boolean;
4
+ orderAccess: boolean;
5
+ logsAccess: boolean;
6
+ settingsAccess: boolean;
7
+ managementAccess: boolean;
8
+ printerAccess: boolean;
9
+ reportsAccess: boolean;
9
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meemup-library",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",