meemup-library 1.1.95 → 1.1.97

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.
@@ -1,3 +1,4 @@
1
+ import IPointOfSaleDiscount from "./IPointOfSaleDiscount";
1
2
  import IBaseCustomer from "../IBaseCustomer";
2
3
  import ICategory from "../ICategory";
3
4
  import IExtra from "../IExtra";
@@ -29,6 +30,7 @@ interface IPointOfSaleApiShop {
29
30
  orderStates: IOrderState[];
30
31
  members: IPointOfSaleTeamMember[];
31
32
  roles: IPointOfSaleRole[];
33
+ discounts: IPointOfSaleDiscount[];
32
34
  }
33
35
  export default IPointOfSaleApiShop;
34
36
  export declare const initApiShop: IPointOfSaleApiShop;
@@ -17,5 +17,6 @@ export const initApiShop = {
17
17
  driversNames: [],
18
18
  orderStates: [],
19
19
  members: [],
20
- roles: []
20
+ roles: [],
21
+ discounts: []
21
22
  };
@@ -0,0 +1,11 @@
1
+ import EnumDiscountType from "../../enums/EnumDiscountType";
2
+ export default interface IPointOfSaleDiscount {
3
+ id: number;
4
+ title: string;
5
+ enabled: boolean;
6
+ type: EnumDiscountType;
7
+ amount: number;
8
+ percentage: number;
9
+ requirePasscode: boolean;
10
+ }
11
+ export declare const initPointOfSaleDiscount: IPointOfSaleDiscount;
@@ -0,0 +1,10 @@
1
+ import EnumDiscountType from "../../enums/EnumDiscountType";
2
+ export const initPointOfSaleDiscount = {
3
+ id: -1,
4
+ title: "",
5
+ enabled: true,
6
+ type: EnumDiscountType.amount,
7
+ amount: 0,
8
+ percentage: 0,
9
+ requirePasscode: false
10
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meemup-library",
3
- "version": "1.1.95",
3
+ "version": "1.1.97",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -24,6 +24,6 @@
24
24
  "typescript": "^5.2.2"
25
25
  },
26
26
  "dependencies": {
27
- "axios": "^1.6.7"
27
+ "axios": "^1.7.2"
28
28
  }
29
- }
29
+ }