meemup-library 1.4.72 → 1.4.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.
@@ -522,7 +522,8 @@ class SimplePreviewController {
522
522
  return "";
523
523
  }
524
524
  printQrCode(template, detail) {
525
- if (!template.qrCodeOrderDetails || detail.order.qrCodeDetailUrl.trim() === "")
525
+ var _a, _b;
526
+ if (!template.qrCodeOrderDetails || ((_a = detail.order.qrCodeDetailUrl) === null || _a === void 0 ? void 0 : _a.trim()) === "" || !((_b = detail.order.qrCodeDetailUrl) === null || _b === void 0 ? void 0 : _b.startsWith("http")))
526
527
  return "";
527
528
  let content = this.createDivContainer(template);
528
529
  // content += this.printSolidLine();
@@ -0,0 +1,5 @@
1
+ declare enum EnumPointOfSaleSettingFeature {
2
+ SplitPayment = 1,
3
+ SplitOrder = 2
4
+ }
5
+ export default EnumPointOfSaleSettingFeature;
@@ -0,0 +1,6 @@
1
+ var EnumPointOfSaleSettingFeature;
2
+ (function (EnumPointOfSaleSettingFeature) {
3
+ EnumPointOfSaleSettingFeature[EnumPointOfSaleSettingFeature["SplitPayment"] = 1] = "SplitPayment";
4
+ EnumPointOfSaleSettingFeature[EnumPointOfSaleSettingFeature["SplitOrder"] = 2] = "SplitOrder";
5
+ })(EnumPointOfSaleSettingFeature || (EnumPointOfSaleSettingFeature = {}));
6
+ export default EnumPointOfSaleSettingFeature;
@@ -11,6 +11,7 @@ import IPointOfSaleSettingRewardProgram from "./IPointOfSaleSettingRewardProgram
11
11
  import IPointOfSaleSettingTemplateReceipt from "./IPointOfSaleSettingTemplateReceipt";
12
12
  import EnumPointOfSaleAccessType from "../../enums/EnumPointOfSaleAccessType";
13
13
  import IPointOfSalePrinterConnections from "./IPointOfSalePrinterConnections";
14
+ import EnumPointOfSaleSettingFeature from "../../enums/EnumPointOfSaleSettingFeature";
14
15
  export default interface IPointOfSaleSetting {
15
16
  sendOrderNotificationViaSMSToCustomer: boolean;
16
17
  sendOrderNotificationViaEmailToCustomer: boolean;
@@ -56,5 +57,6 @@ export default interface IPointOfSaleSetting {
56
57
  awaitingPaymentDeviceResponse: boolean;
57
58
  permissions: EnumPointOfSaleAccessType[];
58
59
  availableOrderTypes: EnumOrderType[];
60
+ features: EnumPointOfSaleSettingFeature[];
59
61
  }
60
62
  export declare const initPointOfSaleSetting: IPointOfSaleSetting;
@@ -62,5 +62,6 @@ export const initPointOfSaleSetting = {
62
62
  externalClerkSystem: false,
63
63
  awaitingPaymentDeviceResponse: false,
64
64
  permissions: [],
65
- availableOrderTypes: [EnumOrderType.delivery, EnumOrderType.pickup, EnumOrderType.dining]
65
+ availableOrderTypes: [EnumOrderType.delivery, EnumOrderType.pickup, EnumOrderType.dining],
66
+ features: []
66
67
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meemup-library",
3
- "version": "1.4.72",
3
+ "version": "1.4.74",
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.4.72\" && git push origin "
14
+ "commit": "git add . && git commit -m \"version.1.4.74\" && git push origin "
15
15
  },
16
16
  "files": [
17
17
  "/dist"