meemup-library 1.0.72 → 1.0.74

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,7 +1,7 @@
1
1
  interface IApiPayOnTerminalBody {
2
2
  orderId: number;
3
3
  skipTipping: boolean;
4
- deviceId: null | number;
4
+ device: null | number;
5
5
  }
6
6
  export default IApiPayOnTerminalBody;
7
7
  export declare const initApiPayOnTerminalBody: IApiPayOnTerminalBody;
@@ -1,5 +1,5 @@
1
1
  export const initApiPayOnTerminalBody = {
2
- deviceId: null,
2
+ device: null,
3
3
  orderId: -1,
4
4
  skipTipping: false
5
5
  };
@@ -3,7 +3,6 @@ import ICategory from "./ICategory";
3
3
  import IExtra from "./IExtra";
4
4
  import ISetting from "./ISetting";
5
5
  import IGeneralInformation from "./IGeneralInformation";
6
- import ISystem from "./ISystem";
7
6
  import ICustomer from "./ICustomer";
8
7
  import ITextValue from "./ITextValue";
9
8
  import ICheckoutOption from "./ICheckoutOption";
@@ -18,7 +17,6 @@ interface IApiShop {
18
17
  extras: IExtra[];
19
18
  setting: ISetting;
20
19
  generalInformation: IGeneralInformation;
21
- system: ISystem;
22
20
  customers: ICustomer[];
23
21
  printTemplates: IPrintTemplate[];
24
22
  terminals: ITextValue[];
@@ -1,12 +1,10 @@
1
1
  import { initSetting } from "./ISetting";
2
2
  import { initGeneralInformation } from "./IGeneralInformation";
3
- import { initSystem } from "./ISystem";
4
3
  import { initCheckoutOption } from "./ICheckoutOption";
5
4
  import { initGeneralItems } from "./IGeneralItems";
6
5
  export const initApiShop = {
7
6
  ok: false,
8
7
  extras: [],
9
- system: initSystem,
10
8
  customers: [],
11
9
  categories: [],
12
10
  generalInformation: initGeneralInformation,
@@ -0,0 +1,24 @@
1
+ import IAccount from "./IAccount";
2
+ import ILocalSetting from "./ILocalSetting";
3
+ import IOnlineOrderItem from "./IOnlineOrderItem";
4
+ import IOrderScreenState from "./IOrderScreenState";
5
+ import IPaymentStatusChanged from "./IPaymentStatusChanged";
6
+ import IProductModalState from "./IProductModalState";
7
+ import IStarMicronicPrintTask from "./IStarMicronicPrintTask";
8
+ import IWorkScreen from "./IWorkScreen";
9
+ import IOrder from "./order/IOrder";
10
+ interface IPointOfSaleStore {
11
+ account: IAccount;
12
+ orderScreen: IOrderScreenState;
13
+ order: IOrder;
14
+ onlineOrders: IOnlineOrderItem[];
15
+ localOrders: IOrder[];
16
+ orders: IOrder[];
17
+ isConnected: boolean;
18
+ productModals: IProductModalState[];
19
+ starMicronicTasks: IStarMicronicPrintTask[];
20
+ localSetting: ILocalSetting;
21
+ customPayment: IPaymentStatusChanged;
22
+ workScreen: IWorkScreen;
23
+ }
24
+ export default IPointOfSaleStore;
@@ -0,0 +1 @@
1
+ export {};
@@ -37,9 +37,9 @@ export default interface IPrintTemplate {
37
37
  sortProducts: number;
38
38
  showCategoryTitle: boolean;
39
39
  printOnlyCertainCategories: boolean;
40
- printOnlyCertainCategoriesList: Array<any>;
40
+ printOnlyCertainCategoriesList: any[];
41
41
  printOnlyCertainProducts: boolean;
42
- printOnlyCertainProductsList: Array<any>;
42
+ printOnlyCertainProductsList: any[];
43
43
  textEnd: string;
44
44
  textEndCenter: boolean;
45
45
  promoCode: string | null;
@@ -34,7 +34,7 @@ export interface ISaveOrder {
34
34
  driverId: number | null;
35
35
  deviceId: string | null;
36
36
  zoneId: number | null;
37
- referenceId: string;
37
+ refrenceId: string;
38
38
  }
39
39
  export interface ISaveOrderAnswer {
40
40
  orderId: number;
@@ -1,9 +1,12 @@
1
+ import TApiStatus from "../types/TApiStatus";
1
2
  import IOrderDetails from "./print/IOrderDetails";
2
3
  interface IWorkScreen {
3
4
  screen: string;
4
5
  waitLogOut: boolean;
5
6
  waitDestroyToken: boolean;
6
7
  waitSyncLocalOrders: boolean;
8
+ apiOnlineOrders: TApiStatus;
9
+ apiShop: TApiStatus;
7
10
  detail: IOrderDetails | null;
8
11
  }
9
12
  export default IWorkScreen;
@@ -3,5 +3,7 @@ export const initWorkScreen = {
3
3
  waitLogOut: false,
4
4
  waitDestroyToken: false,
5
5
  waitSyncLocalOrders: false,
6
+ apiOnlineOrders: "FREE",
7
+ apiShop: "FREE",
6
8
  detail: null
7
9
  };
@@ -8,3 +8,4 @@ interface IPrintOrder {
8
8
  numberOfCopies: number;
9
9
  manually: string;
10
10
  }
11
+ export default IPrintOrder;
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meemup-library",
3
- "version": "1.0.72",
3
+ "version": "1.0.74",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",