@ancon/wildcat-utils 1.20.0 → 1.20.1
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.
- package/checkout/getCheckoutOrderStatusTexts.d.ts +1 -0
- package/checkout/getCheckoutOrderStatusTexts.js +1 -1
- package/checkout/getCheckoutOrderStatusTexts.mjs +29 -27
- package/checkout/index.d.ts +2 -2
- package/checkout/index.js +1 -1
- package/checkout/index.mjs +5 -4
- package/index.js +1 -1
- package/index.mjs +23 -22
- package/package.json +1 -1
|
@@ -57,4 +57,5 @@ declare type TranslationsWithMeta = {
|
|
|
57
57
|
};
|
|
58
58
|
declare type TranslatedTexts = Record<Exclude<TranslationKey, keyof TranslationsWithMeta>, () => Translation> & TranslationsWithMeta;
|
|
59
59
|
declare function getOrderStatusTexts(checkout: CheckoutSummary, options: Options, texts?: TranslatedTexts): [Translation, TranslationKey];
|
|
60
|
+
export { TranslationKey };
|
|
60
61
|
export default getOrderStatusTexts;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("@ancon/wildcat-types"),O=require("./getCheckoutItemsMappedByTicketItemStatus.js");var n=(e=>(e.YourOrderIsBeingProcessed="yourOrderIsBeingProcessed",e.YourOrderWasCancelled="yourOrderWasCancelled",e.ProcessingPayment="processingPayment",e.YourOrderIsBeingPrepared="yourOrderIsBeingPrepared",e.YourOrderIsReadyToCollect="yourOrderIsReadyToCollect",e.YourOrderHasBeenCompleted="yourOrderHasBeenCompleted",e.YourOrderWillArriveAtYourTable="yourOrderWillArriveAtYourTable",e.ModifiedDeliveryStartTime="modifiedDeliveryStartTime",e.ModifiedPickUpTime="modifiedPickUpTime",e.YourOrderHasBeenAcceptedEstimatedTime="yourOrderHasBeenAcceptedEstimatedTime",e.YourOrderHasBeenAcceptedPickupTime="yourOrderHasBeenAcceptedPickupTime",e.YourOrderIsBeingDelivered="yourOrderIsBeingDelivered",e.YourOrderIsReady="yourOrderIsReady",e.DeliveryWasCompleted="deliveryWasCompleted",e.OneItemIsReadyToCollect="oneItemIsReadyToCollect",e.MultipleItemsAreReadyToCollect="multipleItemsAreReadyToCollect",e.EnjoyMealWhileOtherItemsBeingPrepared="enjoyMealWhileOtherItemsBeingPrepared",e))(n||{});function C(e){switch(e){case r.CheckoutStatus.Created:case r.CheckoutStatus.Ready:case r.CheckoutStatus.Processing:case r.CheckoutStatus.Authorized:return"yourOrderIsBeingProcessed";case r.CheckoutStatus.Canceled:return"yourOrderWasCancelled";case r.CheckoutStatus.Received:return"processingPayment";case r.CheckoutStatus.ReadyToCollect:return"yourOrderIsReadyToCollect";default:throw new Error(`Unhandled checkout status "${e}" in getTranslationKeyByCheckoutStatus()`)}}function h(e){switch(e){case r.TicketStatus.Pending:case r.TicketStatus.PendingAccept:return"processingPayment";case r.TicketStatus.Preparing:return"yourOrderIsBeingPrepared";case r.TicketStatus.Ready:return"yourOrderIsReadyToCollect";case r.TicketStatus.Closed:return"yourOrderHasBeenCompleted";case r.TicketStatus.Canceled:return"yourOrderWasCancelled";default:throw new Error(`Unhandled ticket status "${e}" in getTranslationKeyByTicketStatus()`)}}function I({orderFormat:e},{checkoutStatus:d,ticketStatus:s,useMarkAsPickedUp:o,pickupTimeUpdated:i},t){if(o&&t.ready>0)return t.ready<2?["oneItemIsReadyToCollect"]:["multipleItemsAreReadyToCollect",{count:t.ready}];if(o&&t.done>0&&t.done<t.all)return["enjoyMealWhileOtherItemsBeingPrepared",{count:Math.max(0,t.all-t.done-t.ready)}];if(s!=null)return[h(s)];const a=C(d);if(a)return[a];const c=d===r.CheckoutStatus.Captured,y=d===r.CheckoutStatus.InProgress,m=d===r.CheckoutStatus.Canceled,u=e===r.OrderFormat.TableOrder,l=e===r.OrderFormat.Delivery;if(c)return u?["yourOrderWillArriveAtYourTable"]:i&&l?["modifiedDeliveryStartTime"]:i?["modifiedPickUpTime"]:o?["yourOrderHasBeenAcceptedPickupTime"]:["yourOrderHasBeenAcceptedEstimatedTime"];if(y)return i&&l?["modifiedDeliveryStartTime"]:l?["yourOrderIsBeingDelivered"]:i?["modifiedPickUpTime"]:o?["yourOrderHasBeenAcceptedPickupTime"]:["yourOrderHasBeenAcceptedEstimatedTime"];if(m){const p=e===r.OrderFormat.EatIn,g=e===r.OrderFormat.TakeAway;if(p||g)return o?["yourOrderHasBeenCompleted"]:["yourOrderIsReady"];if(l)return["deliveryWasCompleted"];if(u)return o?["yourOrderIsReadyToCollect"]:["yourOrderWillArriveAtYourTable"]}throw new Error("Could not resolve translation key in getTranslationKey()")}const T={yourOrderIsBeingProcessed:()=>({title:"Your order is being processed."}),yourOrderWasCancelled:()=>({title:"Your order was canceled",message:"Sorry. Your order could not go through."}),processingPayment:()=>({title:"Processing payment",message:"Please wait while your payment is being processed"}),yourOrderIsBeingPrepared:()=>({title:"Your order is now being prepared!",message:"We will let you know when it is ready for pickup."}),yourOrderIsReadyToCollect:()=>({title:"Your order is ready to be collected!",message:"Please go ahead and show this screen at the collection point"}),yourOrderHasBeenCompleted:()=>({title:"Enjoy your meal!",message:"Your order has been completed!"}),yourOrderWillArriveAtYourTable:()=>({title:"Your order has been accepted!",message:"It will arrive at your table shortly"}),modifiedDeliveryStartTime:()=>({title:"Your delivery time was modified",message:"Delivery will start at approximately 00:00."}),modifiedPickUpTime:()=>({title:"Your pickup time was modified",message:"Pickup time: 00:00"}),yourOrderHasBeenAcceptedEstimatedTime:()=>({title:"Your order has been accepted",message:"Estimated time: 00:00"}),yourOrderHasBeenAcceptedPickupTime:()=>({title:"Your order has been accepted",message:"Pickup time: 00:00"}),yourOrderIsBeingDelivered:()=>({title:"Your order is being delivered",message:"It will arrive at your door shortly. Enjoy your meal!"}),yourOrderIsReady:()=>({title:"Your order is ready",message:"Enjoy your meal!"}),deliveryWasCompleted:()=>({title:"Your order was completed",message:"Enjoy your meal!"}),oneItemIsReadyToCollect:()=>({title:"One item is ready to pick up!"}),multipleItemsAreReadyToCollect:()=>({title:"Multiple items are ready to pick up!"}),enjoyMealWhileOtherItemsBeingPrepared:({meta:e})=>({title:"Enjoy your meal while the rest of the items are being prepared!",message:`${e.count} more items are being prepared`})};function f(e,d,s=T){const o=O(e.items),[i,t]=I(e,d,{all:o.all.length,ready:o.ready.length,done:o.done.length}),a=s[i]({meta:t});if(!a)throw new Error("Could not resolve translation in getOrderStatusTexts()");return[a,i]}exports.TranslationKey=n;exports.default=f;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { CheckoutStatus as o, OrderFormat as u, TicketStatus as
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { CheckoutStatus as o, OrderFormat as u, TicketStatus as a } from "@ancon/wildcat-types";
|
|
2
|
+
import I from "./getCheckoutItemsMappedByTicketItemStatus.mjs";
|
|
3
|
+
var f = /* @__PURE__ */ ((e) => (e.YourOrderIsBeingProcessed = "yourOrderIsBeingProcessed", e.YourOrderWasCancelled = "yourOrderWasCancelled", e.ProcessingPayment = "processingPayment", e.YourOrderIsBeingPrepared = "yourOrderIsBeingPrepared", e.YourOrderIsReadyToCollect = "yourOrderIsReadyToCollect", e.YourOrderHasBeenCompleted = "yourOrderHasBeenCompleted", e.YourOrderWillArriveAtYourTable = "yourOrderWillArriveAtYourTable", e.ModifiedDeliveryStartTime = "modifiedDeliveryStartTime", e.ModifiedPickUpTime = "modifiedPickUpTime", e.YourOrderHasBeenAcceptedEstimatedTime = "yourOrderHasBeenAcceptedEstimatedTime", e.YourOrderHasBeenAcceptedPickupTime = "yourOrderHasBeenAcceptedPickupTime", e.YourOrderIsBeingDelivered = "yourOrderIsBeingDelivered", e.YourOrderIsReady = "yourOrderIsReady", e.DeliveryWasCompleted = "deliveryWasCompleted", e.OneItemIsReadyToCollect = "oneItemIsReadyToCollect", e.MultipleItemsAreReadyToCollect = "multipleItemsAreReadyToCollect", e.EnjoyMealWhileOtherItemsBeingPrepared = "enjoyMealWhileOtherItemsBeingPrepared", e))(f || {});
|
|
4
|
+
function C(e) {
|
|
4
5
|
switch (e) {
|
|
5
6
|
case o.Created:
|
|
6
7
|
case o.Ready:
|
|
@@ -19,18 +20,18 @@ function h(e) {
|
|
|
19
20
|
);
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
|
-
function
|
|
23
|
+
function h(e) {
|
|
23
24
|
switch (e) {
|
|
24
|
-
case
|
|
25
|
-
case
|
|
25
|
+
case a.Pending:
|
|
26
|
+
case a.PendingAccept:
|
|
26
27
|
return "processingPayment";
|
|
27
|
-
case
|
|
28
|
+
case a.Preparing:
|
|
28
29
|
return "yourOrderIsBeingPrepared";
|
|
29
|
-
case
|
|
30
|
+
case a.Ready:
|
|
30
31
|
return "yourOrderIsReadyToCollect";
|
|
31
|
-
case
|
|
32
|
+
case a.Closed:
|
|
32
33
|
return "yourOrderHasBeenCompleted";
|
|
33
|
-
case
|
|
34
|
+
case a.Canceled:
|
|
34
35
|
return "yourOrderWasCancelled";
|
|
35
36
|
default:
|
|
36
37
|
throw new Error(
|
|
@@ -38,8 +39,8 @@ function O(e) {
|
|
|
38
39
|
);
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
|
-
function
|
|
42
|
-
checkoutStatus:
|
|
42
|
+
function T({ orderFormat: e }, {
|
|
43
|
+
checkoutStatus: d,
|
|
43
44
|
ticketStatus: l,
|
|
44
45
|
useMarkAsPickedUp: t,
|
|
45
46
|
pickupTimeUpdated: i
|
|
@@ -55,27 +56,27 @@ function C({ orderFormat: e }, {
|
|
|
55
56
|
{ count: Math.max(0, r.all - r.done - r.ready) }
|
|
56
57
|
];
|
|
57
58
|
if (l != null)
|
|
58
|
-
return [
|
|
59
|
-
const s =
|
|
59
|
+
return [h(l)];
|
|
60
|
+
const s = C(d);
|
|
60
61
|
if (s)
|
|
61
62
|
return [s];
|
|
62
|
-
const
|
|
63
|
-
if (
|
|
64
|
-
return
|
|
63
|
+
const y = d === o.Captured, m = d === o.InProgress, p = d === o.Canceled, c = e === u.TableOrder, n = e === u.Delivery;
|
|
64
|
+
if (y)
|
|
65
|
+
return c ? ["yourOrderWillArriveAtYourTable"] : i && n ? ["modifiedDeliveryStartTime"] : i ? ["modifiedPickUpTime"] : t ? ["yourOrderHasBeenAcceptedPickupTime"] : ["yourOrderHasBeenAcceptedEstimatedTime"];
|
|
65
66
|
if (m)
|
|
66
|
-
return i &&
|
|
67
|
-
if (
|
|
68
|
-
const
|
|
69
|
-
if (
|
|
67
|
+
return i && n ? ["modifiedDeliveryStartTime"] : n ? ["yourOrderIsBeingDelivered"] : i ? ["modifiedPickUpTime"] : t ? ["yourOrderHasBeenAcceptedPickupTime"] : ["yourOrderHasBeenAcceptedEstimatedTime"];
|
|
68
|
+
if (p) {
|
|
69
|
+
const g = e === u.EatIn, O = e === u.TakeAway;
|
|
70
|
+
if (g || O)
|
|
70
71
|
return t ? ["yourOrderHasBeenCompleted"] : ["yourOrderIsReady"];
|
|
71
|
-
if (
|
|
72
|
+
if (n)
|
|
72
73
|
return ["deliveryWasCompleted"];
|
|
73
|
-
if (
|
|
74
|
+
if (c)
|
|
74
75
|
return t ? ["yourOrderIsReadyToCollect"] : ["yourOrderWillArriveAtYourTable"];
|
|
75
76
|
}
|
|
76
77
|
throw new Error("Could not resolve translation key in getTranslationKey()");
|
|
77
78
|
}
|
|
78
|
-
const
|
|
79
|
+
const B = {
|
|
79
80
|
yourOrderIsBeingProcessed: () => ({
|
|
80
81
|
title: "Your order is being processed."
|
|
81
82
|
}),
|
|
@@ -142,8 +143,8 @@ const I = {
|
|
|
142
143
|
message: `${e.count} more items are being prepared`
|
|
143
144
|
})
|
|
144
145
|
};
|
|
145
|
-
function
|
|
146
|
-
const t =
|
|
146
|
+
function Y(e, d, l = B) {
|
|
147
|
+
const t = I(e.items), [i, r] = T(e, d, {
|
|
147
148
|
all: t.all.length,
|
|
148
149
|
ready: t.ready.length,
|
|
149
150
|
done: t.done.length
|
|
@@ -153,5 +154,6 @@ function P(e, a, l = I) {
|
|
|
153
154
|
return [s, i];
|
|
154
155
|
}
|
|
155
156
|
export {
|
|
156
|
-
|
|
157
|
+
f as TranslationKey,
|
|
158
|
+
Y as default
|
|
157
159
|
};
|
package/checkout/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import getCheckoutGroupedModifications from './getCheckoutItemModifications';
|
|
2
2
|
import getCheckoutProductName from './getCheckoutProductName';
|
|
3
|
-
import getCheckoutOrderStatusTexts from './getCheckoutOrderStatusTexts';
|
|
3
|
+
import getCheckoutOrderStatusTexts, { TranslationKey } from './getCheckoutOrderStatusTexts';
|
|
4
4
|
import isCheckoutOrderSummary from './isCheckoutOrderSummary';
|
|
5
|
-
export { getCheckoutGroupedModifications, getCheckoutProductName, getCheckoutOrderStatusTexts, isCheckoutOrderSummary, };
|
|
5
|
+
export { TranslationKey, getCheckoutGroupedModifications, getCheckoutProductName, getCheckoutOrderStatusTexts, isCheckoutOrderSummary, };
|
package/checkout/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./getCheckoutItemModifications.js"),r=require("./getCheckoutProductName.js"),e=require("./getCheckoutOrderStatusTexts.js"),u=require("./isCheckoutOrderSummary.js");require("@ancon/wildcat-types");require("../currency/getFormattedCurrency.js");require("../currency/getFormattedCurrencyPostfix.js");require("./getCheckoutItemsMappedByTicketItemStatus.js");exports.getCheckoutGroupedModifications=t;exports.getCheckoutProductName=r;exports.TranslationKey=e.TranslationKey;exports.getCheckoutOrderStatusTexts=e.default;exports.isCheckoutOrderSummary=u;
|
package/checkout/index.mjs
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { default as m } from "./getCheckoutItemModifications.mjs";
|
|
2
2
|
import { default as f } from "./getCheckoutProductName.mjs";
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
3
|
+
import { TranslationKey as p, default as s } from "./getCheckoutOrderStatusTexts.mjs";
|
|
4
|
+
import { default as l } from "./isCheckoutOrderSummary.mjs";
|
|
5
5
|
import "@ancon/wildcat-types";
|
|
6
6
|
import "../currency/getFormattedCurrency.mjs";
|
|
7
7
|
import "../currency/getFormattedCurrencyPostfix.mjs";
|
|
8
8
|
import "./getCheckoutItemsMappedByTicketItemStatus.mjs";
|
|
9
9
|
export {
|
|
10
|
+
p as TranslationKey,
|
|
10
11
|
m as getCheckoutGroupedModifications,
|
|
11
|
-
|
|
12
|
+
s as getCheckoutOrderStatusTexts,
|
|
12
13
|
f as getCheckoutProductName,
|
|
13
|
-
|
|
14
|
+
l as isCheckoutOrderSummary
|
|
14
15
|
};
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./shared/enums.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./shared/enums.js"),r=require("./shared/isWithinFlag.js"),i=require("./shared/generateId.js"),n=require("./outlet/getListOutletOpeningHoursTable.js"),o=require("./outlet/getOutletTagInformation.js"),u=require("./outlet/getOutletAvailabilityInfo.js"),s=require("./outlet/getOutletOfflineOrderFormats.js"),a=require("./outlet/getOutletAvailableOrderFormats.js"),c=require("./outlet/getOutletFormattedDistance.js"),l=require("./outlet/isOutletAcceptingPreOrders.js"),g=require("./outlet/getOutletDeliveryFee.js"),d=require("./outlet/getOutletTodayOpeningTimes.js"),q=require("./outlet/getOutletOrderFormats.js"),O=require("./outlet/serviceDateTimesFromOpeningHours.js"),_=require("./versioning/isVersionALessThanB.js"),m=require("./versioning/cleanVersionString.js"),k=require("./api/getUrlAndParams.js"),y=require("./api/getEndpointWithVersion.js"),f=require("./api/generateBackoffWithEqualJitter.js"),h=require("./string/slugify.js"),T=require("./string/truncate.js"),p=require("./color/lighten.js"),P=require("./color/brighten.js"),F=require("./color/darken.js"),v=require("./color/isDarkBackground.js"),S=require("./user/getFullName.js"),D=require("./user/getFullAddressString.js"),I=require("./logger/Logger.js"),b=require("./logger/types.js"),A=require("./logger/sanitizeAsStringDict.js"),V=require("./printing/getPrinterType.js"),C=require("./printing/isValidPrinter.js"),L=require("./printing/isValidNetworkPrinter.js"),W=require("./printing/isValidStarCloudPrinter.js"),B=require("./printing/isTerminalPrinter.js"),N=require("./number/randomIntFromInterval.js"),M=require("./tables/decodeTableQRPayload.js"),E=require("./checkout/getCheckoutItemModifications.js"),H=require("./checkout/getCheckoutProductName.js"),t=require("./checkout/getCheckoutOrderStatusTexts.js"),w=require("./checkout/isCheckoutOrderSummary.js"),x=require("./currency/getFormattedCurrency.js"),z=require("./inventory/isDetailedProductOutOfStock.js"),J=require("./inventory/isDetailedProductVariantOutOfStocks.js"),K=require("./inventory/isMenuTreeProductOutOfStock.js");require("moment");require("@ancon/wildcat-types");require("./outlet/types.js");require("./outlet/constants.js");require("./outlet/getOutletCurrentActiveOperatingHour.js");require("./outlet/getMomentFromDateAndTimeString.js");require("./outlet/searchNextOpeningMoment.js");require("lodash");require("compare-versions");require("tinycolor2");require("@ancon/wildcat-printing");require("./currency/getFormattedCurrencyPostfix.js");require("./checkout/getCheckoutItemsMappedByTicketItemStatus.js");exports.DayOfWeek=e.DayOfWeek;exports.IntervalState=e.IntervalState;exports.IntervalType=e.IntervalType;exports.OrderFormat=e.OrderFormat;exports.isWithinFlag=r;exports.generateId=i;exports.getListOutletOpeningHoursTable=n;exports.getOutletTagInformation=o.default;exports.getOutletAvailabilityInfo=u.default;exports.getOutletOfflineOrderFormats=s;exports.getOutletAvailableOrderFormats=a;exports.getOutletFormattedDistance=c;exports.isOutletAcceptingPreOrders=l;exports.getOutletDeliveryFee=g;exports.getOutletTodayOpeningTimes=d;exports.getOutletOrderFormats=q;exports.serviceDateTimesFromOpeningHours=O;exports.isVersionALessThanB=_;exports.cleanVersionString=m;exports.getUrlAndParams=k;exports.getEndpointWithVersion=y;exports.generateBackoffWithEqualJitter=f;exports.slugify=h;exports.truncate=T;exports.lighten=p;exports.brighten=P;exports.darken=F;exports.isDarkBackground=v;exports.getFullName=S;exports.getFullAddressString=D;exports.Logger=I;exports.LogLevel=b.LogLevel;exports.sanitizeAsStringDict=A;exports.getPrinterType=V;exports.isValidPrinter=C;exports.isValidNetworkPrinter=L;exports.isValidStarCloudPrinter=W;exports.isTerminalPrinter=B;exports.randomIntFromInterval=N;exports.decodeTableQRPayload=M;exports.getCheckoutGroupedModifications=E;exports.getCheckoutProductName=H;exports.TranslationKey=t.TranslationKey;exports.getCheckoutOrderStatusTexts=t.default;exports.isCheckoutOrderSummary=w;exports.getFormattedCurrency=x;exports.isDetailedProductOutOfStock=z;exports.isDetailedProductVariantOutOfStocks=J;exports.isMenuTreeProductOutOfStock=K;
|
package/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DayOfWeek as g, IntervalState as O, IntervalType as c, OrderFormat as k } from "./shared/enums.mjs";
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as
|
|
2
|
+
import { default as F } from "./shared/isWithinFlag.mjs";
|
|
3
|
+
import { default as y } from "./shared/generateId.mjs";
|
|
4
4
|
import { default as S } from "./outlet/getListOutletOpeningHoursTable.mjs";
|
|
5
5
|
import { default as D } from "./outlet/getOutletTagInformation.mjs";
|
|
6
6
|
import { default as I } from "./outlet/getOutletAvailabilityInfo.mjs";
|
|
@@ -11,9 +11,9 @@ import { default as E } from "./outlet/isOutletAcceptingPreOrders.mjs";
|
|
|
11
11
|
import { default as M } from "./outlet/getOutletDeliveryFee.mjs";
|
|
12
12
|
import { default as w } from "./outlet/getOutletTodayOpeningTimes.mjs";
|
|
13
13
|
import { default as G } from "./outlet/getOutletOrderFormats.mjs";
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
14
|
+
import { default as K } from "./outlet/serviceDateTimesFromOpeningHours.mjs";
|
|
15
|
+
import { default as R } from "./versioning/isVersionALessThanB.mjs";
|
|
16
|
+
import { default as j } from "./versioning/cleanVersionString.mjs";
|
|
17
17
|
import { default as Y } from "./api/getUrlAndParams.mjs";
|
|
18
18
|
import { default as _ } from "./api/getEndpointWithVersion.mjs";
|
|
19
19
|
import { default as tt } from "./api/generateBackoffWithEqualJitter.mjs";
|
|
@@ -26,8 +26,8 @@ import { default as pt } from "./color/isDarkBackground.mjs";
|
|
|
26
26
|
import { default as xt } from "./user/getFullName.mjs";
|
|
27
27
|
import { default as Ot } from "./user/getFullAddressString.mjs";
|
|
28
28
|
import { default as kt } from "./logger/Logger.mjs";
|
|
29
|
-
import { LogLevel as
|
|
30
|
-
import { default as
|
|
29
|
+
import { LogLevel as Ft } from "./logger/types.mjs";
|
|
30
|
+
import { default as yt } from "./logger/sanitizeAsStringDict.mjs";
|
|
31
31
|
import { default as St } from "./printing/getPrinterType.mjs";
|
|
32
32
|
import { default as Dt } from "./printing/isValidPrinter.mjs";
|
|
33
33
|
import { default as It } from "./printing/isValidNetworkPrinter.mjs";
|
|
@@ -37,12 +37,12 @@ import { default as Bt } from "./number/randomIntFromInterval.mjs";
|
|
|
37
37
|
import { default as Et } from "./tables/decodeTableQRPayload.mjs";
|
|
38
38
|
import { default as Mt } from "./checkout/getCheckoutItemModifications.mjs";
|
|
39
39
|
import { default as wt } from "./checkout/getCheckoutProductName.mjs";
|
|
40
|
-
import {
|
|
40
|
+
import { TranslationKey as Gt, default as Jt } from "./checkout/getCheckoutOrderStatusTexts.mjs";
|
|
41
41
|
import { default as Qt } from "./checkout/isCheckoutOrderSummary.mjs";
|
|
42
42
|
import { default as Ut } from "./currency/getFormattedCurrency.mjs";
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
43
|
+
import { default as Xt } from "./inventory/isDetailedProductOutOfStock.mjs";
|
|
44
|
+
import { default as Zt } from "./inventory/isDetailedProductVariantOutOfStocks.mjs";
|
|
45
|
+
import { default as $t } from "./inventory/isMenuTreeProductOutOfStock.mjs";
|
|
46
46
|
import "moment";
|
|
47
47
|
import "@ancon/wildcat-types";
|
|
48
48
|
import "./outlet/types.mjs";
|
|
@@ -60,17 +60,18 @@ export {
|
|
|
60
60
|
g as DayOfWeek,
|
|
61
61
|
O as IntervalState,
|
|
62
62
|
c as IntervalType,
|
|
63
|
-
|
|
63
|
+
Ft as LogLevel,
|
|
64
64
|
kt as Logger,
|
|
65
65
|
k as OrderFormat,
|
|
66
|
+
Gt as TranslationKey,
|
|
66
67
|
ut as brighten,
|
|
67
|
-
|
|
68
|
+
j as cleanVersionString,
|
|
68
69
|
mt as darken,
|
|
69
70
|
Et as decodeTableQRPayload,
|
|
70
71
|
tt as generateBackoffWithEqualJitter,
|
|
71
|
-
|
|
72
|
+
y as generateId,
|
|
72
73
|
Mt as getCheckoutGroupedModifications,
|
|
73
|
-
|
|
74
|
+
Jt as getCheckoutOrderStatusTexts,
|
|
74
75
|
wt as getCheckoutProductName,
|
|
75
76
|
_ as getEndpointWithVersion,
|
|
76
77
|
Ut as getFormattedCurrency,
|
|
@@ -89,20 +90,20 @@ export {
|
|
|
89
90
|
Y as getUrlAndParams,
|
|
90
91
|
Qt as isCheckoutOrderSummary,
|
|
91
92
|
pt as isDarkBackground,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
Xt as isDetailedProductOutOfStock,
|
|
94
|
+
Zt as isDetailedProductVariantOutOfStocks,
|
|
95
|
+
$t as isMenuTreeProductOutOfStock,
|
|
95
96
|
E as isOutletAcceptingPreOrders,
|
|
96
97
|
Lt as isTerminalPrinter,
|
|
97
98
|
It as isValidNetworkPrinter,
|
|
98
99
|
Dt as isValidPrinter,
|
|
99
100
|
Ct as isValidStarCloudPrinter,
|
|
100
|
-
|
|
101
|
-
|
|
101
|
+
R as isVersionALessThanB,
|
|
102
|
+
F as isWithinFlag,
|
|
102
103
|
lt as lighten,
|
|
103
104
|
Bt as randomIntFromInterval,
|
|
104
|
-
|
|
105
|
-
|
|
105
|
+
yt as sanitizeAsStringDict,
|
|
106
|
+
K as serviceDateTimesFromOpeningHours,
|
|
106
107
|
rt as slugify,
|
|
107
108
|
at as truncate
|
|
108
109
|
};
|