@ancon/wildcat-utils 1.25.5 → 1.25.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/outlet/constants.d.ts +0 -5
- package/outlet/constants.js +1 -1
- package/outlet/constants.mjs +6 -8
- package/outlet/getPartitionedOutletsList.js +1 -1
- package/outlet/getPartitionedOutletsList.mjs +1 -1
- package/outlet/types.d.ts +5 -0
- package/outlet/types.js +1 -1
- package/outlet/types.mjs +3 -2
- package/package.json +1 -1
package/outlet/constants.d.ts
CHANGED
|
@@ -3,8 +3,3 @@ export declare const OnlineOrderFormatsArray: OrderFormat[];
|
|
|
3
3
|
export declare const OutletMapKeyFormatter = "YYYY-MM-DD";
|
|
4
4
|
export declare const OutletTimelineDayCount = 7;
|
|
5
5
|
export declare const OutletClosingLabelThreshold = 60;
|
|
6
|
-
export declare enum OutletListSection {
|
|
7
|
-
PreOrder = "PreOrder",
|
|
8
|
-
OrderNow = "OrderNow",
|
|
9
|
-
Closed = "Closed"
|
|
10
|
-
}
|
package/outlet/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@ancon/wildcat-types"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@ancon/wildcat-types"),r=[e.OrderFormat.EatIn,e.OrderFormat.TakeAway,e.OrderFormat.Delivery,e.OrderFormat.TableOrder],t="YYYY-MM-DD",a=7,o=60;exports.OnlineOrderFormatsArray=r;exports.OutletClosingLabelThreshold=o;exports.OutletMapKeyFormatter=t;exports.OutletTimelineDayCount=a;
|
package/outlet/constants.mjs
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { OrderFormat as e } from "@ancon/wildcat-types";
|
|
2
|
-
const
|
|
2
|
+
const r = [
|
|
3
3
|
e.EatIn,
|
|
4
4
|
e.TakeAway,
|
|
5
5
|
e.Delivery,
|
|
6
6
|
e.TableOrder
|
|
7
|
-
],
|
|
8
|
-
var o = /* @__PURE__ */ ((r) => (r.PreOrder = "PreOrder", r.OrderNow = "OrderNow", r.Closed = "Closed", r))(o || {});
|
|
7
|
+
], o = "YYYY-MM-DD", a = 7, l = 60;
|
|
9
8
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
o as
|
|
13
|
-
|
|
14
|
-
l as OutletTimelineDayCount
|
|
9
|
+
r as OnlineOrderFormatsArray,
|
|
10
|
+
l as OutletClosingLabelThreshold,
|
|
11
|
+
o as OutletMapKeyFormatter,
|
|
12
|
+
a as OutletTimelineDayCount
|
|
15
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("@ancon/wildcat-types"),
|
|
1
|
+
"use strict";const n=require("@ancon/wildcat-types"),u=require("./isOutletAcceptingPreOrders.js"),e=require("./types.js");function o(s){return s.reduce((r,t)=>{const i=u(t.orderFormatSettings);return t.state===n.OutletState.Open?r[e.OutletListSection.OrderNow].push(t):i?r[e.OutletListSection.PreOrder].push(t):r[e.OutletListSection.Closed].push(t),r},{[e.OutletListSection.OrderNow]:[],[e.OutletListSection.PreOrder]:[],[e.OutletListSection.Closed]:[]})}module.exports=o;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OutletState as o } from "@ancon/wildcat-types";
|
|
2
2
|
import d from "./isOutletAcceptingPreOrders.mjs";
|
|
3
|
-
import { OutletListSection as e } from "./
|
|
3
|
+
import { OutletListSection as e } from "./types.mjs";
|
|
4
4
|
function f(s) {
|
|
5
5
|
return s.reduce(
|
|
6
6
|
(t, r) => {
|
package/outlet/types.d.ts
CHANGED
package/outlet/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e=(
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e=(r=>(r[r.Interval=0]="Interval",r[r.Exception=1]="Exception",r))(e||{}),d=(r=>(r.PreOrder="PreOrder",r.OrderNow="OrderNow",r.Closed="Closed",r))(d||{});exports.OperatingHourType=e;exports.OutletListSection=d;
|
package/outlet/types.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
var
|
|
1
|
+
var d = /* @__PURE__ */ ((r) => (r[r.Interval = 0] = "Interval", r[r.Exception = 1] = "Exception", r))(d || {}), e = /* @__PURE__ */ ((r) => (r.PreOrder = "PreOrder", r.OrderNow = "OrderNow", r.Closed = "Closed", r))(e || {});
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
d as OperatingHourType,
|
|
4
|
+
e as OutletListSection
|
|
4
5
|
};
|