meemup-library 1.3.37 → 1.3.39

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.
@@ -12,6 +12,7 @@ import IBaseCustomer from "./IBaseCustomer";
12
12
  import IPointOfSaleSetting from "./IPointOfSaleSetting";
13
13
  import IPointOfSaleLocalSetting from "./pos/IPointOfSaleLocalSetting";
14
14
  import IPointOfSaleRestaurantTable from "./pos/IPointOfSaleRestaurantTable";
15
+ import IPointOfSaleCashDrawer from "./pos/IPointOfSaleCashDrawer";
15
16
  interface IApiShop {
16
17
  ok: boolean;
17
18
  products: IProduct[];
@@ -30,6 +31,7 @@ interface IApiShop {
30
31
  localSetting: IPointOfSaleLocalSetting;
31
32
  restaurantTables: IPointOfSaleRestaurantTable[];
32
33
  snoozes: ITextValue[];
34
+ cashDrawers: IPointOfSaleCashDrawer[];
33
35
  }
34
36
  export default IApiShop;
35
37
  export declare const initApiShop: IApiShop;
@@ -20,5 +20,6 @@ export const initApiShop = {
20
20
  orderStates: [],
21
21
  localSetting: initPointOfSaleLocalSetting,
22
22
  restaurantTables: [],
23
- snoozes: []
23
+ snoozes: [],
24
+ cashDrawers: []
24
25
  };
@@ -64,7 +64,7 @@ export default interface IProduct {
64
64
  length: number;
65
65
  };
66
66
  showRecipes: boolean;
67
- ingredientMaterialUnitId: number;
67
+ ingredientMaterialUnitId: number | null;
68
68
  eANBarcode: string;
69
69
  sellWhenOutOfStock: boolean;
70
70
  inventoryControl: boolean;
@@ -62,7 +62,7 @@ export const initProduct = {
62
62
  depth: 0
63
63
  },
64
64
  showRecipes: false,
65
- ingredientMaterialUnitId: 0,
65
+ ingredientMaterialUnitId: null,
66
66
  eANBarcode: "",
67
67
  sellWhenOutOfStock: false,
68
68
  inventoryControl: false,
@@ -0,0 +1,6 @@
1
+ export default interface IPointOfSaleActionCashDrawer {
2
+ mode: number;
3
+ amount: number;
4
+ reason: string;
5
+ dateTime: string;
6
+ }
@@ -0,0 +1,8 @@
1
+ import TCashDrawerMode from "../../types/TCashDrawerMode";
2
+ export default interface IPointOfSaleActionFormCashDrawer {
3
+ mode: TCashDrawerMode;
4
+ money: string;
5
+ reason: string;
6
+ openCashDrawer: boolean;
7
+ }
8
+ export declare const initPointOfSaleActionFormCashDrawer: IPointOfSaleActionFormCashDrawer;
@@ -0,0 +1,6 @@
1
+ export const initPointOfSaleActionFormCashDrawer = {
2
+ mode: 1,
3
+ money: "",
4
+ reason: "",
5
+ openCashDrawer: true
6
+ };
@@ -0,0 +1,5 @@
1
+ export default interface IPointOfSaleAddCashDrawer {
2
+ name: string;
3
+ printerId: number;
4
+ }
5
+ export declare const initPointOfSaleAddCashDrawer: IPointOfSaleAddCashDrawer;
@@ -0,0 +1,4 @@
1
+ export const initPointOfSaleAddCashDrawer = {
2
+ name: "",
3
+ printerId: -1
4
+ };
@@ -0,0 +1,7 @@
1
+ export default interface IPointOfSaleCashDrawer {
2
+ id: number;
3
+ name: string;
4
+ printerId: number;
5
+ printerName: string;
6
+ printerMacAddress: string;
7
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export default interface IPointOfSaleEditCashDrawer {
2
+ id: number;
3
+ name: string;
4
+ printerId: number;
5
+ }
6
+ export declare const initPointOfSaleEditCashDrawer: IPointOfSaleEditCashDrawer;
@@ -0,0 +1,5 @@
1
+ export const initPointOfSaleEditCashDrawer = {
2
+ id: -1,
3
+ name: "",
4
+ printerId: -1
5
+ };
@@ -0,0 +1,2 @@
1
+ type TCashDrawerMode = 1 | 2;
2
+ export default TCashDrawerMode;
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meemup-library",
3
- "version": "1.3.37",
3
+ "version": "1.3.39",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,7 +11,7 @@
11
11
  "remove:one": "rimraf dist",
12
12
  "remove:two": "rimraf ./src/dist",
13
13
  "test": "echo \"Error: no test specified\" && exit 1",
14
- "commit": "git add . && git commit -m \"version.1.3.37 \" && git push origin "
14
+ "commit": "git add . && git commit -m \"version.1.3.39 \" && git push origin "
15
15
  },
16
16
  "files": [
17
17
  "/dist"