@ancon/wildcat-utils 1.55.0-check-optimizations.2 → 1.55.0
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/check/getOrganizedCheckItemModifications.d.ts +2 -2
- package/check/getOrganizedCheckItemModifications.js +1 -1
- package/check/getOrganizedCheckItemModifications.mjs +68 -74
- package/check/getUniqueCheckItemModificationId.d.ts +2 -2
- package/check/getUniqueCheckItemModificationId.js +1 -1
- package/check/getUniqueCheckItemModificationId.mjs +5 -5
- package/checkout/getCheckoutAdyenAmount.d.ts +9 -0
- package/checkout/getCheckoutAdyenAmount.js +1 -0
- package/checkout/getCheckoutAdyenAmount.mjs +13 -0
- package/checkout/getCheckoutGrandTotalAmount.d.ts +6 -2
- package/checkout/getCheckoutGrandTotalAmount.js +1 -1
- package/checkout/getCheckoutGrandTotalAmount.mjs +8 -6
- package/checkout/getCheckoutMinimumOrderDifferenceAmount.d.ts +7 -0
- package/checkout/getCheckoutMinimumOrderDifferenceAmount.js +1 -0
- package/checkout/getCheckoutMinimumOrderDifferenceAmount.mjs +12 -0
- package/checkout/index.d.ts +3 -1
- package/checkout/index.js +1 -1
- package/checkout/index.mjs +59 -55
- package/checkout/types.d.ts +5 -0
- package/index.js +1 -1
- package/index.mjs +235 -231
- package/multilingual/createLocalizedCheckDetails.d.ts +2 -2
- package/multilingual/createLocalizedCheckDetails.js +1 -1
- package/multilingual/createLocalizedCheckDetails.mjs +27 -31
- package/package.json +11 -1
package/index.mjs
CHANGED
|
@@ -7,17 +7,17 @@ import { default as ee } from "./shared/gramToKiloGram.mjs";
|
|
|
7
7
|
import { default as re } from "./shared/hooks/usePrevious.mjs";
|
|
8
8
|
import { default as ae } from "./shared/hooks/useMountedRef.mjs";
|
|
9
9
|
import { default as se } from "./outlet/getListOutletOpeningHoursTable.mjs";
|
|
10
|
-
import { default as
|
|
10
|
+
import { default as de } from "./outlet/getOutletTagInformation.mjs";
|
|
11
11
|
import { default as me } from "./outlet/getOutletAvailabilityInfo.mjs";
|
|
12
12
|
import { default as pe } from "./outlet/getOutletOfflineOrderFormats.mjs";
|
|
13
13
|
import { default as ne } from "./outlet/getOutletAvailableOrderFormats.mjs";
|
|
14
14
|
import { default as ge } from "./outlet/getOutletFormattedDistance.mjs";
|
|
15
|
-
import { default as
|
|
15
|
+
import { default as Ce } from "./outlet/isOutletAcceptingPreOrders.mjs";
|
|
16
16
|
import { default as ke } from "./outlet/isOutletAcceptingPreOrdersWhenClosed.mjs";
|
|
17
17
|
import { default as Pe } from "./outlet/getOutletDeliveryFee.mjs";
|
|
18
18
|
import { default as Ae } from "./outlet/getOutletTodayOpeningTimes.mjs";
|
|
19
19
|
import { default as Ie } from "./outlet/getOutletOrderFormats.mjs";
|
|
20
|
-
import { default as
|
|
20
|
+
import { default as ye } from "./outlet/serviceDateTimesFromOpeningHours.mjs";
|
|
21
21
|
import { default as Fe } from "./outlet/getPickerIntervalsForDay.mjs";
|
|
22
22
|
import { default as Le } from "./outlet/getServiceIntervalRange.mjs";
|
|
23
23
|
import { default as be } from "./outlet/getServiceIntervalsForOrderFormat.mjs";
|
|
@@ -34,17 +34,17 @@ import { default as et } from "./outlet/getOutletNextOpeningTagInformation.mjs";
|
|
|
34
34
|
import { default as rt } from "./outlet/getOutletCurrentAvailabilityInfo.mjs";
|
|
35
35
|
import { default as at } from "./outlet/getExpressAvailableOrderFormats.mjs";
|
|
36
36
|
import { default as st } from "./outlet/getExpressNextAvailabilityShiftTime.mjs";
|
|
37
|
-
import { default as
|
|
37
|
+
import { default as dt } from "./outlet/getOrderFormatAOTipSettings.mjs";
|
|
38
38
|
import { default as mt } from "./outlet/isAOTippingEnabledForOrderFormat.mjs";
|
|
39
39
|
import { default as pt } from "./outlet/isMenuTreeHierarchyProductAvailable.mjs";
|
|
40
40
|
import { default as nt } from "./outlet/getOutletMenuProductsSortCriteria.mjs";
|
|
41
41
|
import { default as gt } from "./outlet/getOutletNextServiceTimeOffset.mjs";
|
|
42
|
-
import { default as
|
|
42
|
+
import { default as Ct } from "./versioning/isVersionALessThanB.mjs";
|
|
43
43
|
import { default as kt } from "./versioning/cleanVersionString.mjs";
|
|
44
44
|
import { default as Pt } from "./api/getUrlAndParams.mjs";
|
|
45
45
|
import { default as At } from "./api/getEndpointWithVersion.mjs";
|
|
46
46
|
import { default as It } from "./api/generateBackoffWithEqualJitter.mjs";
|
|
47
|
-
import { default as
|
|
47
|
+
import { default as yt } from "./api/generateBackoffWithVariableJitter.mjs";
|
|
48
48
|
import { default as Ft } from "./api/generateBackoffWithFullJitter.mjs";
|
|
49
49
|
import { RATE_LIMIT_MAX_ATTEMPTS as Lt, RATE_LIMIT_MAX_BACKOFF_MS as vt, RATE_LIMIT_MAX_RETRY_AFTER_MS as bt, default as Nt, isRateLimitWaitTooLong as Gt } from "./api/getRateLimitRetryDelay.mjs";
|
|
50
50
|
import { default as Ut } from "./api/isAcceptedResponse.mjs";
|
|
@@ -59,17 +59,17 @@ import { default as er } from "./string/getParsedJSONFromString.mjs";
|
|
|
59
59
|
import { default as rr } from "./string/base64Encode.mjs";
|
|
60
60
|
import { default as ar } from "./string/base64Decode.mjs";
|
|
61
61
|
import { default as sr } from "./string/getNameInitials.mjs";
|
|
62
|
-
import { default as
|
|
62
|
+
import { default as dr } from "./color/lighten.mjs";
|
|
63
63
|
import { default as mr } from "./color/brighten.mjs";
|
|
64
64
|
import { default as pr } from "./color/darken.mjs";
|
|
65
65
|
import { default as nr } from "./color/isDarkBackground.mjs";
|
|
66
66
|
import { default as gr } from "./color/isColorsReadable.mjs";
|
|
67
|
-
import { default as
|
|
67
|
+
import { default as Cr } from "./color/isColorsEqual.mjs";
|
|
68
68
|
import { default as kr } from "./color/getLuminance.mjs";
|
|
69
69
|
import { default as Pr } from "./color/toHsl.mjs";
|
|
70
70
|
import { default as Ar } from "./color/hslToHex.mjs";
|
|
71
71
|
import { default as Ir } from "./user/getFullName.mjs";
|
|
72
|
-
import { default as
|
|
72
|
+
import { default as yr } from "./user/getFullAddressString.mjs";
|
|
73
73
|
import { default as Fr } from "./user/getCustomerAddressFromGeocoderResult.mjs";
|
|
74
74
|
import { default as Lr } from "./user/getFormattedPhoneNumber.mjs";
|
|
75
75
|
import { default as br } from "./user/getStructuredCustomerAddress.mjs";
|
|
@@ -90,111 +90,113 @@ import { default as lo } from "./checkout/getCheckoutItemModifications.mjs";
|
|
|
90
90
|
import { default as io } from "./checkout/getCheckoutProductName.mjs";
|
|
91
91
|
import { TranslationKey as xo, default as no } from "./checkout/getCheckoutOrderStatusTexts.mjs";
|
|
92
92
|
import { default as go } from "./checkout/getCheckoutItemsMappedByTicketItemStatus.mjs";
|
|
93
|
-
import { default as
|
|
93
|
+
import { default as Co } from "./checkout/isCheckoutOrderSummary.mjs";
|
|
94
94
|
import { default as ko } from "./checkout/buildCheckoutRequestItem.mjs";
|
|
95
95
|
import { default as Po } from "./checkout/getCheckoutGrandTotalAmount.mjs";
|
|
96
|
-
import { default as Ao } from "./checkout/
|
|
97
|
-
import { default as Io } from "./checkout/
|
|
98
|
-
import { default as
|
|
99
|
-
import { default as Fo } from "./checkout/
|
|
100
|
-
import { default as Lo } from "./checkout/
|
|
101
|
-
import { default as bo } from "./checkout/
|
|
102
|
-
import { default as Go } from "./checkout/
|
|
103
|
-
import { default as Uo } from "./checkout/
|
|
104
|
-
import {
|
|
105
|
-
import { default as
|
|
106
|
-
import { default as wo } from "./checkout/
|
|
107
|
-
import { default as Jo } from "./checkout/
|
|
108
|
-
import { default as Xo } from "./checkout/
|
|
109
|
-
import { default as Zo } from "./checkout/
|
|
110
|
-
import { default as $o } from "./checkout/
|
|
111
|
-
import { default as ta } from "./checkout/
|
|
112
|
-
import { default as oa } from "./checkout/
|
|
113
|
-
import { default as fa } from "./checkout/
|
|
114
|
-
import { default as
|
|
115
|
-
import { default as la } from "./checkout/
|
|
116
|
-
import { default as ia } from "./checkout/
|
|
117
|
-
import { default as xa } from "./checkout/
|
|
118
|
-
import { default as ca } from "./
|
|
119
|
-
import { default as Ta } from "./
|
|
120
|
-
import { default as
|
|
121
|
-
import { default as Sa } from "./
|
|
122
|
-
import { default as ha } from "./
|
|
123
|
-
import { default as Ea } from "./currency/
|
|
124
|
-
import { default as Ma } from "./
|
|
125
|
-
import { default as
|
|
126
|
-
import { default as Da } from "./inventory/
|
|
127
|
-
import { default as va } from "./inventory/
|
|
128
|
-
import { default as Na } from "./inventory/
|
|
129
|
-
import { default as _a } from "./inventory/
|
|
130
|
-
import { default as Wa } from "./inventory/
|
|
131
|
-
import { default as Ha } from "./inventory/
|
|
132
|
-
import { default as Va } from "./
|
|
133
|
-
import { default as wa } from "./
|
|
134
|
-
import { default as Ja } from "./
|
|
135
|
-
import { default as Xa } from "./
|
|
136
|
-
import { default as Za } from "./error/
|
|
137
|
-
import { default as $a } from "./error/
|
|
138
|
-
import { default as tf } from "./error/
|
|
139
|
-
import { default as of } from "./error/
|
|
140
|
-
import { default as ff } from "./error/
|
|
141
|
-
import { default as
|
|
142
|
-
import { default as lf } from "./error/
|
|
143
|
-
import { default as pf } from "./error/
|
|
144
|
-
import { default as nf } from "./error/
|
|
145
|
-
import { default as gf } from "./error/
|
|
146
|
-
import { default as
|
|
147
|
-
import { default as kf } from "./error/
|
|
148
|
-
import { default as Pf } from "./error/
|
|
149
|
-
import {
|
|
150
|
-
import { default as
|
|
151
|
-
import { default as Ff } from "./
|
|
152
|
-
import { default as Lf } from "./
|
|
153
|
-
import { default as bf } from "./hangfire/
|
|
154
|
-
import { default as Gf } from "./hangfire/
|
|
155
|
-
import { default as Uf } from "./
|
|
156
|
-
import { default as Bf } from "./
|
|
157
|
-
import { default as zf } from "./product/
|
|
158
|
-
import { default as qf } from "./product/
|
|
159
|
-
import { default as Qf } from "./product/
|
|
160
|
-
import { default as Kf } from "./product/
|
|
161
|
-
import { default as Yf } from "./
|
|
162
|
-
import { default as jf } from "./
|
|
163
|
-
import { default as es } from "./
|
|
164
|
-
import { default as rs } from "./
|
|
165
|
-
import { default as as } from "./
|
|
166
|
-
import { default as ss } from "./preOrder/
|
|
167
|
-
import { default as
|
|
168
|
-
import { default as ms } from "./
|
|
169
|
-
import { default as ps
|
|
170
|
-
import { default as
|
|
171
|
-
import { default as Cs } from "./
|
|
172
|
-
import { default as Ss } from "./
|
|
173
|
-
import { default as hs } from "./date/
|
|
174
|
-
import { default as Es } from "./date/
|
|
175
|
-
import { default as Ms } from "./date/
|
|
176
|
-
import { default as
|
|
177
|
-
import { default as Ds } from "./date/
|
|
178
|
-
import { default as vs } from "./
|
|
179
|
-
import { default as Ns } from "./
|
|
180
|
-
import { default as _s } from "./time/
|
|
181
|
-
import { default as Ws } from "./time/
|
|
182
|
-
import { default as Hs } from "./time/
|
|
183
|
-
import { default as Vs } from "./time/
|
|
184
|
-
import { default as ws } from "./time/
|
|
185
|
-
import { default as Js } from "./time/
|
|
186
|
-
import { default as Xs } from "./time/
|
|
187
|
-
import { default as Zs } from "./time/
|
|
188
|
-
import { default as $s } from "./
|
|
189
|
-
import { default as
|
|
190
|
-
import { default as
|
|
191
|
-
import { default as
|
|
192
|
-
import { default as
|
|
193
|
-
import { default as
|
|
194
|
-
import { default as
|
|
195
|
-
import { default as
|
|
196
|
-
import { default as
|
|
197
|
-
import {
|
|
96
|
+
import { default as Ao } from "./checkout/getCheckoutAdyenAmount.mjs";
|
|
97
|
+
import { default as Io } from "./checkout/getCheckoutMinimumOrderDifferenceAmount.mjs";
|
|
98
|
+
import { default as yo } from "./checkout/getCheckoutRequestItemFromCheckoutItem.mjs";
|
|
99
|
+
import { default as Fo } from "./checkout/isCheckoutItemsAreEqual.mjs";
|
|
100
|
+
import { default as Lo } from "./checkout/checkoutHasWallet.mjs";
|
|
101
|
+
import { default as bo } from "./checkout/getWalletMetaFromCheckout.mjs";
|
|
102
|
+
import { default as Go } from "./checkout/isPreOrderServiceTime.mjs";
|
|
103
|
+
import { default as Uo } from "./checkout/isPreOrderCheckout.mjs";
|
|
104
|
+
import { default as Bo } from "./checkout/isUpdatingCheckoutAllowed.mjs";
|
|
105
|
+
import { default as zo } from "./checkout/isCheckoutAlreadyPaidStatus.mjs";
|
|
106
|
+
import { CheckoutPaymentErrorTranslationKey as qo, default as wo } from "./checkout/getCheckoutPaymentErrorTranslationTexts.mjs";
|
|
107
|
+
import { default as Jo } from "./checkout/isDeletingCheckoutAllowed.mjs";
|
|
108
|
+
import { default as Xo } from "./checkout/getTotalCheckoutItemsQuantity.mjs";
|
|
109
|
+
import { default as Zo } from "./checkout/getCheckoutPenguinLockersMetaData.mjs";
|
|
110
|
+
import { default as $o } from "./checkout/getUniqueCheckoutPenguinDeliveryCodes.mjs";
|
|
111
|
+
import { default as ta } from "./checkout/isWoltDeliveryInProgress.mjs";
|
|
112
|
+
import { default as oa } from "./checkout/isWalletTopUpCheckoutItem.mjs";
|
|
113
|
+
import { default as fa } from "./checkout/isWalletTopUpCheckout.mjs";
|
|
114
|
+
import { default as ua } from "./checkout/getCheckoutWalletTopUpMetaData.mjs";
|
|
115
|
+
import { default as la } from "./checkout/isGiftCardCheckout.mjs";
|
|
116
|
+
import { default as ia } from "./checkout/isGiftCardCheckoutItem.mjs";
|
|
117
|
+
import { default as xa } from "./checkout/getCheckoutGiftCardMetaData.mjs";
|
|
118
|
+
import { default as ca } from "./checkout/getCheckoutGiftCardRecipientsMetaData.mjs";
|
|
119
|
+
import { default as Ta } from "./checkout/getCheckoutGuestGroupsMetaData.mjs";
|
|
120
|
+
import { default as Oa } from "./order/getCheckOrderItemsMappedByTicketItemStatus.mjs";
|
|
121
|
+
import { default as Sa } from "./order/getCheckOrderMinimumStatusTicketItem.mjs";
|
|
122
|
+
import { default as ha } from "./order/getMultiProductSubProductsTicketItems.mjs";
|
|
123
|
+
import { default as Ea } from "./currency/getFormattedCurrency.mjs";
|
|
124
|
+
import { default as Ma } from "./currency/getFormattedCurrencyPostfix.mjs";
|
|
125
|
+
import { default as Ra } from "./currency/placeCurrencySymbol.mjs";
|
|
126
|
+
import { default as Da } from "./inventory/isDetailedProductOutOfStock.mjs";
|
|
127
|
+
import { default as va } from "./inventory/isDetailedProductVariantOutOfStocks.mjs";
|
|
128
|
+
import { default as Na } from "./inventory/isMenuTreeProductOutOfStock.mjs";
|
|
129
|
+
import { default as _a } from "./inventory/isDetailedProductUpSellsOutOfStock.mjs";
|
|
130
|
+
import { default as Wa } from "./inventory/isUpSellProductOutStock.mjs";
|
|
131
|
+
import { default as Ha } from "./inventory/isDetailedProductOutletStockOutOfStock.mjs";
|
|
132
|
+
import { default as Va } from "./inventory/getDetailedProductVariantStock.mjs";
|
|
133
|
+
import { default as wa } from "./inventory/isAddonProductOutOfStock.mjs";
|
|
134
|
+
import { default as Ja } from "./signalr/createUseSignalRHook.mjs";
|
|
135
|
+
import { default as Xa } from "./signalr/SignalR.mjs";
|
|
136
|
+
import { default as Za } from "./error/createCodedError.mjs";
|
|
137
|
+
import { default as $a } from "./error/isCodedError.mjs";
|
|
138
|
+
import { default as tf } from "./error/isNetworkError.mjs";
|
|
139
|
+
import { default as of } from "./error/isLockedError.mjs";
|
|
140
|
+
import { default as ff } from "./error/isNotFoundError.mjs";
|
|
141
|
+
import { default as uf } from "./error/isAPIError.mjs";
|
|
142
|
+
import { default as lf } from "./error/isSerializedAPIError.mjs";
|
|
143
|
+
import { default as pf } from "./error/isSerializedCodedError.mjs";
|
|
144
|
+
import { default as nf } from "./error/serializeError.mjs";
|
|
145
|
+
import { default as gf } from "./error/getErrorCode.mjs";
|
|
146
|
+
import { default as Cf } from "./error/isErrorWithStatusCode.mjs";
|
|
147
|
+
import { default as kf } from "./error/isBadGatewayError.mjs";
|
|
148
|
+
import { default as Pf } from "./error/isServiceUnavailableError.mjs";
|
|
149
|
+
import { default as Af } from "./error/isTooManyRequestsError.mjs";
|
|
150
|
+
import { default as If } from "./error/isUpgradeRequiredError.mjs";
|
|
151
|
+
import { DEFAULT_RATE_LIMIT_RETRY_AFTER_MS as yf, RATE_LIMIT_EXCEEDED_CODE as Rf, default as Ff } from "./error/getRateLimit.mjs";
|
|
152
|
+
import { default as Lf } from "./error/isRateLimitError.mjs";
|
|
153
|
+
import { default as bf } from "./hangfire/isHangfireResponse.mjs";
|
|
154
|
+
import { default as Gf } from "./hangfire/isHangfireWorkerExpiredOrInvalidError.mjs";
|
|
155
|
+
import { default as Uf } from "./hangfire/createHangfirePoller.mjs";
|
|
156
|
+
import { default as Bf } from "./hangfire/createMakeHangfireRequest.mjs";
|
|
157
|
+
import { default as zf } from "./product/extractProductsFromMenuTree.mjs";
|
|
158
|
+
import { default as qf } from "./product/calculateIngredientsCost.mjs";
|
|
159
|
+
import { default as Qf } from "./product/calculateAddonGroupCost.mjs";
|
|
160
|
+
import { default as Kf } from "./product/getAddonGroupInfoBySettings.mjs";
|
|
161
|
+
import { default as Yf } from "./product/calculateWeightProductPrice.mjs";
|
|
162
|
+
import { default as jf } from "./product/calculateProductWeightByPrice.mjs";
|
|
163
|
+
import { default as es } from "./codec/base64URLEncode.mjs";
|
|
164
|
+
import { default as rs } from "./codec/base64URLDecode.mjs";
|
|
165
|
+
import { default as as } from "./hashing/getSHA256Hash.mjs";
|
|
166
|
+
import { default as ss } from "./preOrder/isPreOrderSharable.mjs";
|
|
167
|
+
import { default as ds } from "./preOrder/isPreOrderLink.mjs";
|
|
168
|
+
import { default as ms } from "./preOrder/isGroupPreOrder.mjs";
|
|
169
|
+
import { default as ps } from "./phoneNumber/isPhoneNumberValid.mjs";
|
|
170
|
+
import { default as ns } from "./phoneNumber/formatPhoneNumber.mjs";
|
|
171
|
+
import { default as gs, isLicenseExpired as Ts, isLicenseExtended as Cs, isLicenseTerminated as Os } from "./license/getLicenseUIState.mjs";
|
|
172
|
+
import { default as Ss } from "./googleMap/getComponentNameFromGeocoderResult.mjs";
|
|
173
|
+
import { default as hs } from "./date/createLocalTimezoneDate.mjs";
|
|
174
|
+
import { default as Es } from "./date/createLocalTimezoneMoment.mjs";
|
|
175
|
+
import { default as Ms } from "./date/getFormattedUTCDateTime.mjs";
|
|
176
|
+
import { default as Rs } from "./date/convertToLocalTimezone.mjs";
|
|
177
|
+
import { default as Ds } from "./date/convertToSpecificTimezone.mjs";
|
|
178
|
+
import { default as vs } from "./date/getTimezoneUtcOffsetDifference.mjs";
|
|
179
|
+
import { default as Ns } from "./date/isDSTShiftPresentInRange.mjs";
|
|
180
|
+
import { default as _s } from "./time/toMinutes.mjs";
|
|
181
|
+
import { default as Ws } from "./time/getNextTenthMinute.mjs";
|
|
182
|
+
import { default as Hs } from "./time/getPrevNthMinute.mjs";
|
|
183
|
+
import { default as Vs } from "./time/getTimeSpanParts.mjs";
|
|
184
|
+
import { default as ws } from "./time/getEndTimeSpanOfTimePeriod.mjs";
|
|
185
|
+
import { default as Js } from "./time/createTimeSpan.mjs";
|
|
186
|
+
import { default as Xs } from "./time/formatTimeSpan.mjs";
|
|
187
|
+
import { default as Zs } from "./time/getDurationBetweenTimeSpans.mjs";
|
|
188
|
+
import { default as $s } from "./time/convertSecondsToTimeSpan.mjs";
|
|
189
|
+
import { default as tu } from "./time/convertTimeSpanToSeconds.mjs";
|
|
190
|
+
import { default as ou } from "./ticketItem/isTicketItemReady.mjs";
|
|
191
|
+
import { default as fu } from "./ticketItem/isTicketItemClosed.mjs";
|
|
192
|
+
import { default as uu } from "./quantity/getFormattedQuantity.mjs";
|
|
193
|
+
import { default as lu } from "./checkAuditLog/isPayAndGoCheckAuditLogAction.mjs";
|
|
194
|
+
import { default as iu } from "./checkAuditLog/getCheckAuditLogProductName.mjs";
|
|
195
|
+
import { default as xu } from "./zReport/getZReportPaymentMethodDisplayName.mjs";
|
|
196
|
+
import { default as cu } from "./multilingual/createLocalizedCheckDetails.mjs";
|
|
197
|
+
import { default as Tu, deobfuscateMPSQrPayload as Cu } from "./mpsGiftCard/decodeMPSGiftCardQr.mjs";
|
|
198
|
+
import { default as ku } from "./mpsGiftCard/resolveMPSGiftCardScanAction.mjs";
|
|
199
|
+
import { MPSQrScanActionType as Pu } from "./mpsGiftCard/types.mjs";
|
|
198
200
|
import "react";
|
|
199
201
|
import "moment";
|
|
200
202
|
import "@ancon/wildcat-types";
|
|
@@ -236,95 +238,97 @@ import "./license/types.mjs";
|
|
|
236
238
|
import "bson";
|
|
237
239
|
export {
|
|
238
240
|
qt as APIFilterBuilder,
|
|
239
|
-
|
|
240
|
-
|
|
241
|
+
qo as CheckoutPaymentErrorTranslationKey,
|
|
242
|
+
yf as DEFAULT_RATE_LIMIT_RETRY_AFTER_MS,
|
|
241
243
|
Ur as LogLevel,
|
|
242
244
|
Gr as Logger,
|
|
243
|
-
|
|
244
|
-
|
|
245
|
+
Pu as MPSQrScanActionType,
|
|
246
|
+
Rf as RATE_LIMIT_EXCEEDED_CODE,
|
|
245
247
|
Lt as RATE_LIMIT_MAX_ATTEMPTS,
|
|
246
248
|
vt as RATE_LIMIT_MAX_BACKOFF_MS,
|
|
247
249
|
bt as RATE_LIMIT_MAX_RETRY_AFTER_MS,
|
|
248
|
-
|
|
250
|
+
Xa as SignalR,
|
|
249
251
|
xo as TranslationKey,
|
|
250
252
|
ar as base64Decode,
|
|
251
253
|
rr as base64Encode,
|
|
252
|
-
|
|
253
|
-
|
|
254
|
+
rs as base64URLDecode,
|
|
255
|
+
es as base64URLEncode,
|
|
254
256
|
V as bitmaskToIds,
|
|
255
257
|
mr as brighten,
|
|
256
258
|
ko as buildCheckoutRequestItem,
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
259
|
+
Qf as calculateAddonGroupsCost,
|
|
260
|
+
qf as calculateIngredientsCost,
|
|
261
|
+
jf as calculateProductWeightByPrice,
|
|
262
|
+
Yf as calculateWeightProductPrice,
|
|
263
|
+
Lo as checkoutHasWallet,
|
|
262
264
|
kt as cleanVersionString,
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
265
|
+
$s as convertSecondsToTimeSpan,
|
|
266
|
+
tu as convertTimeSpanToSeconds,
|
|
267
|
+
Rs as convertToLocalTimezone,
|
|
268
|
+
Ds as convertToSpecificTimezone,
|
|
269
|
+
Za as createCodedError,
|
|
270
|
+
Uf as createHangfirePoller,
|
|
271
|
+
hs as createLocalTimezoneDate,
|
|
272
|
+
Es as createLocalTimezoneMoment,
|
|
273
|
+
cu as createLocalizedCheckDetails,
|
|
274
|
+
Bf as createMakeHangfireRequest,
|
|
275
|
+
Js as createTimeSpan,
|
|
276
|
+
Ja as createUseSignalRHook,
|
|
275
277
|
ro as createUseStarCloudScanHook,
|
|
276
278
|
pr as darken,
|
|
277
|
-
|
|
279
|
+
Tu as decodeMPSGiftCardQr,
|
|
278
280
|
so as decodeTableQRPayload,
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
281
|
+
Cu as deobfuscateMPSQrPayload,
|
|
282
|
+
zf as extractProductsFromMenuTree,
|
|
283
|
+
ns as formatPhoneNumber,
|
|
284
|
+
Xs as formatTimeSpan,
|
|
283
285
|
It as generateBackoffWithEqualJitter,
|
|
284
286
|
Ft as generateBackoffWithFullJitter,
|
|
285
|
-
|
|
287
|
+
yt as generateBackoffWithVariableJitter,
|
|
286
288
|
K as generateId,
|
|
287
|
-
|
|
289
|
+
Kf as getAddonGroupInfoBySettings,
|
|
288
290
|
q as getBitValue,
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
291
|
+
iu as getCheckAuditLogProductName,
|
|
292
|
+
Oa as getCheckOrderItemsMappedByTicketItemStatus,
|
|
293
|
+
Sa as getCheckOrderMinimumStatusTicketItem,
|
|
294
|
+
Ao as getCheckoutAdyenAmount,
|
|
295
|
+
xa as getCheckoutGiftCardMetaData,
|
|
296
|
+
ca as getCheckoutGiftCardRecipientsMetaData,
|
|
294
297
|
Po as getCheckoutGrandTotalAmount,
|
|
295
298
|
lo as getCheckoutGroupedModifications,
|
|
296
|
-
|
|
299
|
+
Ta as getCheckoutGuestGroupsMetaData,
|
|
297
300
|
go as getCheckoutItemsMappedByTicketItemStatus,
|
|
301
|
+
Io as getCheckoutMinimumOrderDifferenceAmount,
|
|
298
302
|
no as getCheckoutOrderStatusTexts,
|
|
299
|
-
|
|
300
|
-
|
|
303
|
+
wo as getCheckoutPaymentErrorTranslationTexts,
|
|
304
|
+
Zo as getCheckoutPenguinLockersMetaData,
|
|
301
305
|
io as getCheckoutProductName,
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
306
|
+
yo as getCheckoutRequestItemFromCheckoutItem,
|
|
307
|
+
ua as getCheckoutWalletTopUpMetaData,
|
|
308
|
+
Ss as getComponentNameFromGeocoderResult,
|
|
305
309
|
Fr as getCustomerAddressFromGeocoderResult,
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
310
|
+
Va as getDetailedProductVariantStock,
|
|
311
|
+
Zs as getDurationBetweenTimeSpans,
|
|
312
|
+
ws as getEndTimeSpanOfTimePeriod,
|
|
309
313
|
At as getEndpointWithVersion,
|
|
310
|
-
|
|
314
|
+
gf as getErrorCode,
|
|
311
315
|
at as getExpressAvailableOrderFormats,
|
|
312
316
|
st as getExpressNextAvailabilityShiftTime,
|
|
313
|
-
|
|
314
|
-
|
|
317
|
+
Ea as getFormattedCurrency,
|
|
318
|
+
Ma as getFormattedCurrencyPostfix,
|
|
315
319
|
Lr as getFormattedPhoneNumber,
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
320
|
+
uu as getFormattedQuantity,
|
|
321
|
+
Ms as getFormattedUTCDateTime,
|
|
322
|
+
yr as getFullAddressString,
|
|
319
323
|
Ir as getFullName,
|
|
320
|
-
|
|
324
|
+
gs as getLicenseUIState,
|
|
321
325
|
se as getListOutletOpeningHoursTable,
|
|
322
326
|
kr as getLuminance,
|
|
323
327
|
Qt as getMediaImageClosestSize,
|
|
324
|
-
|
|
328
|
+
ha as getMultiProductSubProductsTicketItems,
|
|
325
329
|
sr as getNameInitials,
|
|
326
|
-
|
|
327
|
-
|
|
330
|
+
Ws as getNextTenthMinute,
|
|
331
|
+
dt as getOrderFormatAOTipSettings,
|
|
328
332
|
me as getOutletAvailabilityInfo,
|
|
329
333
|
ne as getOutletAvailableOrderFormats,
|
|
330
334
|
rt as getOutletCurrentAvailabilityInfo,
|
|
@@ -342,107 +346,107 @@ export {
|
|
|
342
346
|
qe as getOutletOrderPreparationTime,
|
|
343
347
|
ze as getOutletPickerTimesForDay,
|
|
344
348
|
Be as getOutletPickerTimesForWeek,
|
|
345
|
-
|
|
349
|
+
de as getOutletTagInformation,
|
|
346
350
|
Ae as getOutletTodayOpeningTimes,
|
|
347
351
|
er as getParsedJSONFromString,
|
|
348
352
|
Ue as getPartitionedOutletsList,
|
|
349
353
|
Fe as getPickerIntervalsForDay,
|
|
350
|
-
|
|
354
|
+
Hs as getPrevNthMinute,
|
|
351
355
|
qr as getPrinterType,
|
|
352
356
|
jt as getRandomAlphaNumericCode,
|
|
353
|
-
|
|
357
|
+
Ff as getRateLimit,
|
|
354
358
|
Nt as getRateLimitRetryDelay,
|
|
355
|
-
|
|
359
|
+
as as getSHA256Hash,
|
|
356
360
|
Le as getServiceIntervalRange,
|
|
357
361
|
be as getServiceIntervalsForOrderFormat,
|
|
358
362
|
br as getStructuredCustomerAddress,
|
|
359
363
|
Qe as getStructuredOutletAddress,
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
+
Vs as getTimeSpanParts,
|
|
365
|
+
vs as getTimezoneUtcOffsetDifference,
|
|
366
|
+
Xo as getTotalCheckoutItemsQuantity,
|
|
367
|
+
$o as getUniqueCheckoutPenguinDeliveryCodes,
|
|
364
368
|
Pt as getUrlAndParams,
|
|
365
|
-
|
|
366
|
-
|
|
369
|
+
bo as getWalletMetaFromCheckout,
|
|
370
|
+
xu as getZReportPaymentMethodDisplayName,
|
|
367
371
|
ee as gramToKiloGram,
|
|
368
372
|
Ar as hslToHex,
|
|
369
373
|
w as idsToBitmask,
|
|
370
374
|
mt as isAOTippingEnabledForOrderFormat,
|
|
371
|
-
|
|
375
|
+
uf as isAPIError,
|
|
372
376
|
Ut as isAcceptedResponse,
|
|
373
|
-
|
|
374
|
-
|
|
377
|
+
wa as isAddonProductOutOfStock,
|
|
378
|
+
kf as isBadGatewayError,
|
|
375
379
|
Q as isBitSet,
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
380
|
+
zo as isCheckoutAlreadyPaidStatus,
|
|
381
|
+
Fo as isCheckoutItemsAreEqual,
|
|
382
|
+
Co as isCheckoutOrderSummary,
|
|
379
383
|
eo as isCloudPrintModeEnabled,
|
|
380
|
-
|
|
381
|
-
|
|
384
|
+
$a as isCodedError,
|
|
385
|
+
Cr as isColorsEqual,
|
|
382
386
|
gr as isColorsReadable,
|
|
383
|
-
|
|
387
|
+
Ns as isDSTShiftPresentInRange,
|
|
384
388
|
nr as isDarkBackground,
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
389
|
+
Jo as isDeletingCheckoutAllowed,
|
|
390
|
+
Da as isDetailedProductOutOfStock,
|
|
391
|
+
Ha as isDetailedProductOutletStockOutOfStock,
|
|
392
|
+
_a as isDetailedProductUpSellsOutOfStock,
|
|
393
|
+
va as isDetailedProductVariantOutOfStocks,
|
|
394
|
+
Cf as isErrorWithStatusCode,
|
|
395
|
+
la as isGiftCardCheckout,
|
|
396
|
+
ia as isGiftCardCheckoutItem,
|
|
397
|
+
ms as isGroupPreOrder,
|
|
398
|
+
bf as isHangfireResponse,
|
|
399
|
+
Gf as isHangfireWorkerExpiredOrInvalidError,
|
|
400
|
+
Ts as isLicenseExpired,
|
|
401
|
+
Cs as isLicenseExtended,
|
|
402
|
+
Os as isLicenseTerminated,
|
|
403
|
+
of as isLockedError,
|
|
400
404
|
pt as isMenuTreeHierarchyProductAvailable,
|
|
401
|
-
|
|
402
|
-
|
|
405
|
+
Na as isMenuTreeProductOutOfStock,
|
|
406
|
+
tf as isNetworkError,
|
|
403
407
|
Bt as isNoContentResponse,
|
|
404
|
-
|
|
405
|
-
|
|
408
|
+
ff as isNotFoundError,
|
|
409
|
+
Ce as isOutletAcceptingPreOrders,
|
|
406
410
|
ke as isOutletAcceptingPreOrdersWhenClosed,
|
|
407
411
|
zt as isPartialContentResponse,
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
412
|
+
lu as isPayAndGoCheckAuditLogAction,
|
|
413
|
+
ps as isPhoneNumberValid,
|
|
414
|
+
Uo as isPreOrderCheckout,
|
|
415
|
+
ds as isPreOrderLink,
|
|
416
|
+
Go as isPreOrderServiceTime,
|
|
417
|
+
ss as isPreOrderSharable,
|
|
418
|
+
Lf as isRateLimitError,
|
|
415
419
|
Gt as isRateLimitWaitTooLong,
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
420
|
+
lf as isSerializedAPIError,
|
|
421
|
+
pf as isSerializedCodedError,
|
|
422
|
+
Pf as isServiceUnavailableError,
|
|
419
423
|
jr as isTerminalPrinter,
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
424
|
+
fu as isTicketItemClosed,
|
|
425
|
+
ou as isTicketItemReady,
|
|
426
|
+
Af as isTooManyRequestsError,
|
|
427
|
+
Wa as isUpSellProductOutOfStock,
|
|
428
|
+
Bo as isUpdatingCheckoutAllowed,
|
|
429
|
+
If as isUpgradeRequiredError,
|
|
426
430
|
Kr as isValidNetworkPrinter,
|
|
427
431
|
Qr as isValidPrinter,
|
|
428
432
|
Yr as isValidStarCloudPrinter,
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
433
|
+
Ct as isVersionALessThanB,
|
|
434
|
+
fa as isWalletTopUpCheckout,
|
|
435
|
+
oa as isWalletTopUpCheckoutItem,
|
|
432
436
|
H as isWithinFlag,
|
|
433
|
-
|
|
437
|
+
ta as isWoltDeliveryInProgress,
|
|
434
438
|
j as kiloGramToGram,
|
|
435
|
-
|
|
439
|
+
dr as lighten,
|
|
436
440
|
zr as pascalCaseFormatter,
|
|
437
|
-
|
|
441
|
+
Ra as placeCurrencySymbol,
|
|
438
442
|
ao as randomIntFromInterval,
|
|
439
|
-
|
|
443
|
+
ku as resolveMPSGiftCardScanAction,
|
|
440
444
|
Br as sanitizeAsStringDict,
|
|
441
|
-
|
|
442
|
-
|
|
445
|
+
nf as serializeError,
|
|
446
|
+
ye as serviceDateTimesFromOpeningHours,
|
|
443
447
|
Kt as slugify,
|
|
444
448
|
Pr as toHsl,
|
|
445
|
-
|
|
449
|
+
_s as toMinutes,
|
|
446
450
|
Yt as truncate,
|
|
447
451
|
ae as useMountedRef,
|
|
448
452
|
re as usePrevious,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CheckDetails } from '@ancon/wildcat-types';
|
|
2
2
|
/**
|
|
3
3
|
* This creates localized check details by replacing following properties with localized values based on current app language.
|
|
4
4
|
* Affected properties on each check item (and its sub-items):
|
|
@@ -12,5 +12,5 @@ import { CheckDetailsV2 } from '@ancon/wildcat-types';
|
|
|
12
12
|
* @param locale - locale to be used for localization
|
|
13
13
|
* @returns localized check details
|
|
14
14
|
*/
|
|
15
|
-
declare function createLocalizedCheckDetails(checkDetails:
|
|
15
|
+
declare function createLocalizedCheckDetails(checkDetails: CheckDetails, locale: string): CheckDetails;
|
|
16
16
|
export default createLocalizedCheckDetails;
|