@ancon/wildcat-utils 1.21.5 → 1.21.6
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/index.js +1 -1
- package/index.mjs +22 -18
- package/inventory/getDetailedProductVariantStock.d.ts +2 -0
- package/inventory/getDetailedProductVariantStock.js +1 -0
- package/inventory/getDetailedProductVariantStock.mjs +8 -0
- package/inventory/index.d.ts +3 -1
- package/inventory/index.js +1 -1
- package/inventory/index.mjs +8 -4
- package/inventory/isDetailedProductOutOfStock.js +1 -1
- package/inventory/isDetailedProductOutOfStock.mjs +8 -6
- package/inventory/isDetailedProductOutletStockOutOfStock.d.ts +2 -0
- package/inventory/isDetailedProductOutletStockOutOfStock.js +1 -0
- package/inventory/isDetailedProductOutletStockOutOfStock.mjs +6 -0
- package/inventory/isDetailedProductVariantOutOfStocks.js +1 -1
- package/inventory/isDetailedProductVariantOutOfStocks.mjs +6 -6
- package/package.json +11 -1
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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"),
|
|
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"),o=require("./shared/wait.js"),n=require("./outlet/getListOutletOpeningHoursTable.js"),u=require("./outlet/getOutletTagInformation.js"),s=require("./outlet/getOutletAvailabilityInfo.js"),a=require("./outlet/getOutletOfflineOrderFormats.js"),c=require("./outlet/getOutletAvailableOrderFormats.js"),l=require("./outlet/getOutletFormattedDistance.js"),g=require("./outlet/isOutletAcceptingPreOrders.js"),d=require("./outlet/getOutletDeliveryFee.js"),q=require("./outlet/getOutletTodayOpeningTimes.js"),O=require("./outlet/getOutletOrderFormats.js"),_=require("./outlet/serviceDateTimesFromOpeningHours.js"),k=require("./versioning/isVersionALessThanB.js"),m=require("./versioning/cleanVersionString.js"),S=require("./api/getUrlAndParams.js"),y=require("./api/getEndpointWithVersion.js"),f=require("./api/generateBackoffWithEqualJitter.js"),p=require("./string/slugify.js"),P=require("./string/truncate.js"),h=require("./color/lighten.js"),T=require("./color/brighten.js"),v=require("./color/darken.js"),F=require("./color/isDarkBackground.js"),D=require("./user/getFullName.js"),I=require("./user/getFullAddressString.js"),V=require("./logger/Logger.js"),b=require("./logger/types.js"),A=require("./logger/sanitizeAsStringDict.js"),C=require("./printing/getPrinterType.js"),L=require("./printing/isValidPrinter.js"),B=require("./printing/isValidNetworkPrinter.js"),U=require("./printing/isValidStarCloudPrinter.js"),W=require("./printing/isTerminalPrinter.js"),M=require("./number/randomIntFromInterval.js"),H=require("./tables/decodeTableQRPayload.js"),N=require("./checkout/getCheckoutItemModifications.js"),R=require("./checkout/getCheckoutProductName.js"),t=require("./checkout/getCheckoutOrderStatusTexts.js"),w=require("./checkout/getCheckoutItemsMappedByTicketItemStatus.js"),E=require("./checkout/isCheckoutOrderSummary.js"),x=require("./currency/getFormattedCurrency.js"),z=require("./inventory/isDetailedProductOutOfStock.js"),J=require("./inventory/isDetailedProductVariantOutOfStocks.js"),K=require("./inventory/isMenuTreeProductOutOfStock.js"),Q=require("./inventory/isDetailedProductUpSellsOutOfStock.js"),j=require("./inventory/isUpSellProductOutStock.js"),G=require("./inventory/isDetailedProductOutletStockOutOfStock.js"),X=require("./inventory/getDetailedProductVariantStock.js"),Y=require("./signalr/createUseSignalRHook.js"),Z=require("./signalr/SignalR.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("react");require("react-redux");require("@microsoft/signalr");exports.DayOfWeek=e.DayOfWeek;exports.IntervalState=e.IntervalState;exports.IntervalType=e.IntervalType;exports.OrderFormat=e.OrderFormat;exports.isWithinFlag=r;exports.generateId=i;exports.wait=o;exports.getListOutletOpeningHoursTable=n;exports.getOutletTagInformation=u.default;exports.getOutletAvailabilityInfo=s.default;exports.getOutletOfflineOrderFormats=a;exports.getOutletAvailableOrderFormats=c;exports.getOutletFormattedDistance=l;exports.isOutletAcceptingPreOrders=g;exports.getOutletDeliveryFee=d;exports.getOutletTodayOpeningTimes=q;exports.getOutletOrderFormats=O;exports.serviceDateTimesFromOpeningHours=_;exports.isVersionALessThanB=k;exports.cleanVersionString=m;exports.getUrlAndParams=S;exports.getEndpointWithVersion=y;exports.generateBackoffWithEqualJitter=f;exports.slugify=p;exports.truncate=P;exports.lighten=h;exports.brighten=T;exports.darken=v;exports.isDarkBackground=F;exports.getFullName=D;exports.getFullAddressString=I;exports.Logger=V;exports.LogLevel=b.LogLevel;exports.sanitizeAsStringDict=A;exports.getPrinterType=C;exports.isValidPrinter=L;exports.isValidNetworkPrinter=B;exports.isValidStarCloudPrinter=U;exports.isTerminalPrinter=W;exports.randomIntFromInterval=M;exports.decodeTableQRPayload=H;exports.getCheckoutGroupedModifications=N;exports.getCheckoutProductName=R;exports.TranslationKey=t.TranslationKey;exports.getCheckoutOrderStatusTexts=t.default;exports.getCheckoutItemsMappedByTicketItemStatus=w;exports.isCheckoutOrderSummary=E;exports.getFormattedCurrency=x;exports.isDetailedProductOutOfStock=z;exports.isDetailedProductVariantOutOfStocks=J;exports.isMenuTreeProductOutOfStock=K;exports.isDetailedProductUpSellsOutOfStock=Q;exports.isUpSellProductOutOfStock=j;exports.isDetailedProductOutletStockOutOfStock=G;exports.getDetailedProductVariantStock=X;exports.createUseSignalRHook=Y;exports.SignalR=Z;
|
package/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { DayOfWeek as
|
|
1
|
+
import { DayOfWeek as O, IntervalState as k, IntervalType as S, OrderFormat as P } from "./shared/enums.mjs";
|
|
2
2
|
import { default as y } from "./shared/isWithinFlag.mjs";
|
|
3
3
|
import { default as h } from "./shared/generateId.mjs";
|
|
4
4
|
import { default as I } from "./shared/wait.mjs";
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
5
|
+
import { default as V } from "./outlet/getListOutletOpeningHoursTable.mjs";
|
|
6
|
+
import { default as C } from "./outlet/getOutletTagInformation.mjs";
|
|
7
7
|
import { default as L } from "./outlet/getOutletAvailabilityInfo.mjs";
|
|
8
8
|
import { default as U } from "./outlet/getOutletOfflineOrderFormats.mjs";
|
|
9
9
|
import { default as H } from "./outlet/getOutletAvailableOrderFormats.mjs";
|
|
@@ -20,17 +20,17 @@ import { default as rt } from "./api/getEndpointWithVersion.mjs";
|
|
|
20
20
|
import { default as at } from "./api/generateBackoffWithEqualJitter.mjs";
|
|
21
21
|
import { default as lt } from "./string/slugify.mjs";
|
|
22
22
|
import { default as ut } from "./string/truncate.mjs";
|
|
23
|
-
import { default as
|
|
23
|
+
import { default as it } from "./color/lighten.mjs";
|
|
24
24
|
import { default as pt } from "./color/brighten.mjs";
|
|
25
25
|
import { default as nt } from "./color/darken.mjs";
|
|
26
|
-
import { default as
|
|
26
|
+
import { default as ct } from "./color/isDarkBackground.mjs";
|
|
27
27
|
import { default as kt } from "./user/getFullName.mjs";
|
|
28
28
|
import { default as Pt } from "./user/getFullAddressString.mjs";
|
|
29
29
|
import { default as yt } from "./logger/Logger.mjs";
|
|
30
30
|
import { LogLevel as ht } from "./logger/types.mjs";
|
|
31
31
|
import { default as It } from "./logger/sanitizeAsStringDict.mjs";
|
|
32
|
-
import { default as
|
|
33
|
-
import { default as
|
|
32
|
+
import { default as Vt } from "./printing/getPrinterType.mjs";
|
|
33
|
+
import { default as Ct } from "./printing/isValidPrinter.mjs";
|
|
34
34
|
import { default as Lt } from "./printing/isValidNetworkPrinter.mjs";
|
|
35
35
|
import { default as Ut } from "./printing/isValidStarCloudPrinter.mjs";
|
|
36
36
|
import { default as Ht } from "./printing/isTerminalPrinter.mjs";
|
|
@@ -47,8 +47,10 @@ import { default as oe } from "./inventory/isDetailedProductVariantOutOfStocks.m
|
|
|
47
47
|
import { default as fe } from "./inventory/isMenuTreeProductOutOfStock.mjs";
|
|
48
48
|
import { default as se } from "./inventory/isDetailedProductUpSellsOutOfStock.mjs";
|
|
49
49
|
import { default as de } from "./inventory/isUpSellProductOutStock.mjs";
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as xe } from "./
|
|
50
|
+
import { default as me } from "./inventory/isDetailedProductOutletStockOutOfStock.mjs";
|
|
51
|
+
import { default as xe } from "./inventory/getDetailedProductVariantStock.mjs";
|
|
52
|
+
import { default as ge } from "./signalr/createUseSignalRHook.mjs";
|
|
53
|
+
import { default as Oe } from "./signalr/SignalR.mjs";
|
|
52
54
|
import "moment";
|
|
53
55
|
import "@ancon/wildcat-types";
|
|
54
56
|
import "./outlet/types.mjs";
|
|
@@ -65,17 +67,17 @@ import "react";
|
|
|
65
67
|
import "react-redux";
|
|
66
68
|
import "@microsoft/signalr";
|
|
67
69
|
export {
|
|
68
|
-
|
|
70
|
+
O as DayOfWeek,
|
|
69
71
|
k as IntervalState,
|
|
70
72
|
S as IntervalType,
|
|
71
73
|
ht as LogLevel,
|
|
72
74
|
yt as Logger,
|
|
73
75
|
P as OrderFormat,
|
|
74
|
-
|
|
76
|
+
Oe as SignalR,
|
|
75
77
|
Kt as TranslationKey,
|
|
76
78
|
pt as brighten,
|
|
77
79
|
_ as cleanVersionString,
|
|
78
|
-
|
|
80
|
+
ge as createUseSignalRHook,
|
|
79
81
|
nt as darken,
|
|
80
82
|
wt as decodeTableQRPayload,
|
|
81
83
|
at as generateBackoffWithEqualJitter,
|
|
@@ -84,24 +86,26 @@ export {
|
|
|
84
86
|
Xt as getCheckoutItemsMappedByTicketItemStatus,
|
|
85
87
|
Qt as getCheckoutOrderStatusTexts,
|
|
86
88
|
Gt as getCheckoutProductName,
|
|
89
|
+
xe as getDetailedProductVariantStock,
|
|
87
90
|
rt as getEndpointWithVersion,
|
|
88
91
|
$t as getFormattedCurrency,
|
|
89
92
|
Pt as getFullAddressString,
|
|
90
93
|
kt as getFullName,
|
|
91
|
-
|
|
94
|
+
V as getListOutletOpeningHoursTable,
|
|
92
95
|
L as getOutletAvailabilityInfo,
|
|
93
96
|
H as getOutletAvailableOrderFormats,
|
|
94
97
|
q as getOutletDeliveryFee,
|
|
95
98
|
N as getOutletFormattedDistance,
|
|
96
99
|
U as getOutletOfflineOrderFormats,
|
|
97
100
|
K as getOutletOrderFormats,
|
|
98
|
-
|
|
101
|
+
C as getOutletTagInformation,
|
|
99
102
|
G as getOutletTodayOpeningTimes,
|
|
100
|
-
|
|
103
|
+
Vt as getPrinterType,
|
|
101
104
|
tt as getUrlAndParams,
|
|
102
105
|
Zt as isCheckoutOrderSummary,
|
|
103
|
-
|
|
106
|
+
ct as isDarkBackground,
|
|
104
107
|
ee as isDetailedProductOutOfStock,
|
|
108
|
+
me as isDetailedProductOutletStockOutOfStock,
|
|
105
109
|
se as isDetailedProductUpSellsOutOfStock,
|
|
106
110
|
oe as isDetailedProductVariantOutOfStocks,
|
|
107
111
|
fe as isMenuTreeProductOutOfStock,
|
|
@@ -109,11 +113,11 @@ export {
|
|
|
109
113
|
Ht as isTerminalPrinter,
|
|
110
114
|
de as isUpSellProductOutOfStock,
|
|
111
115
|
Lt as isValidNetworkPrinter,
|
|
112
|
-
|
|
116
|
+
Ct as isValidPrinter,
|
|
113
117
|
Ut as isValidStarCloudPrinter,
|
|
114
118
|
Y as isVersionALessThanB,
|
|
115
119
|
y as isWithinFlag,
|
|
116
|
-
|
|
120
|
+
it as lighten,
|
|
117
121
|
Nt as randomIntFromInterval,
|
|
118
122
|
It as sanitizeAsStringDict,
|
|
119
123
|
j as serviceDateTimesFromOpeningHours,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function r(t,e){return t.outletStocks.find(o=>o.outletId===e)}module.exports=r;
|
package/inventory/index.d.ts
CHANGED
|
@@ -3,4 +3,6 @@ import isDetailedProductVariantOutOfStocks from './isDetailedProductVariantOutOf
|
|
|
3
3
|
import isMenuTreeProductOutOfStock from './isMenuTreeProductOutOfStock';
|
|
4
4
|
import isDetailedProductUpSellsOutOfStock from './isDetailedProductUpSellsOutOfStock';
|
|
5
5
|
import isUpSellProductOutOfStock from './isUpSellProductOutStock';
|
|
6
|
-
|
|
6
|
+
import isDetailedProductOutletStockOutOfStock from './isDetailedProductOutletStockOutOfStock';
|
|
7
|
+
import getDetailedProductVariantStock from './getDetailedProductVariantStock';
|
|
8
|
+
export { isDetailedProductOutOfStock, isDetailedProductVariantOutOfStocks, isMenuTreeProductOutOfStock, isDetailedProductUpSellsOutOfStock, isUpSellProductOutOfStock, isDetailedProductOutletStockOutOfStock, getDetailedProductVariantStock, };
|
package/inventory/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./isDetailedProductOutOfStock.js"),e=require("./isDetailedProductVariantOutOfStocks.js"),o=require("./isMenuTreeProductOutOfStock.js"),r=require("./isDetailedProductUpSellsOutOfStock.js"),i=require("./isUpSellProductOutStock.js");exports.isDetailedProductOutOfStock=t;exports.isDetailedProductVariantOutOfStocks=e;exports.isMenuTreeProductOutOfStock=o;exports.isDetailedProductUpSellsOutOfStock=r;exports.isUpSellProductOutOfStock=i;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./isDetailedProductOutOfStock.js"),e=require("./isDetailedProductVariantOutOfStocks.js"),o=require("./isMenuTreeProductOutOfStock.js"),r=require("./isDetailedProductUpSellsOutOfStock.js"),i=require("./isUpSellProductOutStock.js"),u=require("./isDetailedProductOutletStockOutOfStock.js"),c=require("./getDetailedProductVariantStock.js");exports.isDetailedProductOutOfStock=t;exports.isDetailedProductVariantOutOfStocks=e;exports.isMenuTreeProductOutOfStock=o;exports.isDetailedProductUpSellsOutOfStock=r;exports.isUpSellProductOutOfStock=i;exports.isDetailedProductOutletStockOutOfStock=u;exports.getDetailedProductVariantStock=c;
|
package/inventory/index.mjs
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { default as o } from "./isDetailedProductOutOfStock.mjs";
|
|
2
|
-
import { default as
|
|
2
|
+
import { default as a } from "./isDetailedProductVariantOutOfStocks.mjs";
|
|
3
3
|
import { default as f } from "./isMenuTreeProductOutOfStock.mjs";
|
|
4
4
|
import { default as l } from "./isDetailedProductUpSellsOutOfStock.mjs";
|
|
5
|
-
import { default as
|
|
5
|
+
import { default as s } from "./isUpSellProductOutStock.mjs";
|
|
6
|
+
import { default as O } from "./isDetailedProductOutletStockOutOfStock.mjs";
|
|
7
|
+
import { default as p } from "./getDetailedProductVariantStock.mjs";
|
|
6
8
|
export {
|
|
9
|
+
p as getDetailedProductVariantStock,
|
|
7
10
|
o as isDetailedProductOutOfStock,
|
|
11
|
+
O as isDetailedProductOutletStockOutOfStock,
|
|
8
12
|
l as isDetailedProductUpSellsOutOfStock,
|
|
9
|
-
|
|
13
|
+
a as isDetailedProductVariantOutOfStocks,
|
|
10
14
|
f as isMenuTreeProductOutOfStock,
|
|
11
|
-
|
|
15
|
+
s as isUpSellProductOutOfStock
|
|
12
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const u=require("./isDetailedProductVariantOutOfStocks.js");require("./getDetailedProductVariantStock.js");require("./isDetailedProductOutletStockOutOfStock.js");function O(i,e){var t;return((t=e||[])==null?void 0:t.length)>0&&(e==null?void 0:e.every(r=>u(r,i)))}module.exports=O;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import i from "./isDetailedProductVariantOutOfStocks.mjs";
|
|
2
|
+
import "./getDetailedProductVariantStock.mjs";
|
|
3
|
+
import "./isDetailedProductOutletStockOutOfStock.mjs";
|
|
4
|
+
function k(f, e) {
|
|
5
|
+
var t;
|
|
6
|
+
return ((t = e || []) == null ? void 0 : t.length) > 0 && (e == null ? void 0 : e.every(
|
|
7
|
+
(o) => i(o, f)
|
|
6
8
|
));
|
|
7
9
|
}
|
|
8
10
|
export {
|
|
9
|
-
|
|
11
|
+
k as default
|
|
10
12
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function r(s){return!!(s!=null&&s.stockProductId&&s.stockCount<=0)}module.exports=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";const o=require("./getDetailedProductVariantStock.js"),i=require("./isDetailedProductOutletStockOutOfStock.js");function c(t,e){const r=o(t,e);return i(r)}module.exports=c;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
);
|
|
5
|
-
return
|
|
1
|
+
import a from "./getDetailedProductVariantStock.mjs";
|
|
2
|
+
import i from "./isDetailedProductOutletStockOutOfStock.mjs";
|
|
3
|
+
function u(t, o) {
|
|
4
|
+
const r = a(t, o);
|
|
5
|
+
return i(r);
|
|
6
6
|
}
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
u as default
|
|
9
9
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ancon/wildcat-utils",
|
|
3
|
-
"version": "1.21.
|
|
3
|
+
"version": "1.21.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.mjs",
|
|
@@ -101,6 +101,11 @@
|
|
|
101
101
|
"require": "./index.js",
|
|
102
102
|
"types": "./index.d.ts"
|
|
103
103
|
},
|
|
104
|
+
"./inventory/getDetailedProductVariantStock": {
|
|
105
|
+
"import": "./inventory/getDetailedProductVariantStock.mjs",
|
|
106
|
+
"require": "./inventory/getDetailedProductVariantStock.js",
|
|
107
|
+
"types": "./inventory/getDetailedProductVariantStock.d.ts"
|
|
108
|
+
},
|
|
104
109
|
"./inventory": {
|
|
105
110
|
"import": "./inventory/index.mjs",
|
|
106
111
|
"require": "./inventory/index.js",
|
|
@@ -111,6 +116,11 @@
|
|
|
111
116
|
"require": "./inventory/isDetailedProductOutOfStock.js",
|
|
112
117
|
"types": "./inventory/isDetailedProductOutOfStock.d.ts"
|
|
113
118
|
},
|
|
119
|
+
"./inventory/isDetailedProductOutletStockOutOfStock": {
|
|
120
|
+
"import": "./inventory/isDetailedProductOutletStockOutOfStock.mjs",
|
|
121
|
+
"require": "./inventory/isDetailedProductOutletStockOutOfStock.js",
|
|
122
|
+
"types": "./inventory/isDetailedProductOutletStockOutOfStock.d.ts"
|
|
123
|
+
},
|
|
114
124
|
"./inventory/isDetailedProductUpSellsOutOfStock": {
|
|
115
125
|
"import": "./inventory/isDetailedProductUpSellsOutOfStock.mjs",
|
|
116
126
|
"require": "./inventory/isDetailedProductUpSellsOutOfStock.js",
|