@ancon/wildcat-utils 1.50.25 → 1.50.26

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ancon/wildcat-utils",
3
- "version": "1.50.25",
3
+ "version": "1.50.26",
4
4
  "private": false,
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",
@@ -1,4 +1,6 @@
1
- import { CheckoutOrderType } from '@ancon/wildcat-types';
2
- export default function isGroupPreOrder<T extends {
3
- orderType?: CheckoutOrderType;
4
- }>(preOrder: T): boolean;
1
+ import { OrderType } from '@ancon/wildcat-types';
2
+ declare type Order = {
3
+ orderType?: OrderType;
4
+ };
5
+ export default function isGroupPreOrder<T extends Order>(preOrder: T): boolean;
6
+ export {};
@@ -1 +1 @@
1
- "use strict";const e=require("@ancon/wildcat-types");function o(t){return(t==null?void 0:t.orderType)===e.CheckoutOrderType.GroupPreOrder}module.exports=o;
1
+ "use strict";const e=require("@ancon/wildcat-types");function o(t){return(t==null?void 0:t.orderType)===e.OrderType.GroupPreOrder}module.exports=o;
@@ -1,7 +1,7 @@
1
- import { CheckoutOrderType as t } from "@ancon/wildcat-types";
2
- function r(o) {
3
- return (o == null ? void 0 : o.orderType) === t.GroupPreOrder;
1
+ import { OrderType as r } from "@ancon/wildcat-types";
2
+ function u(o) {
3
+ return (o == null ? void 0 : o.orderType) === r.GroupPreOrder;
4
4
  }
5
5
  export {
6
- r as default
6
+ u as default
7
7
  };
@@ -1,4 +1,6 @@
1
- import { CheckoutOrderType } from '@ancon/wildcat-types';
2
- export default function isPreOrderLink<T extends {
3
- orderType?: CheckoutOrderType;
4
- }>(preOrder: T): boolean;
1
+ import { OrderType } from '@ancon/wildcat-types';
2
+ declare type Order = {
3
+ orderType?: OrderType;
4
+ };
5
+ export default function isPreOrderLink<T extends Order>(preOrder: T): boolean;
6
+ export {};
@@ -1 +1 @@
1
- "use strict";const e=require("@ancon/wildcat-types");function i(t){return(t==null?void 0:t.orderType)===e.CheckoutOrderType.PreOrderLink}module.exports=i;
1
+ "use strict";const t=require("@ancon/wildcat-types");function e(i){return(i==null?void 0:i.orderType)===t.OrderType.PreOrderLink}module.exports=e;
@@ -1,7 +1,7 @@
1
- import { CheckoutOrderType as t } from "@ancon/wildcat-types";
2
- function n(o) {
3
- return (o == null ? void 0 : o.orderType) === t.PreOrderLink;
1
+ import { OrderType as n } from "@ancon/wildcat-types";
2
+ function t(i) {
3
+ return (i == null ? void 0 : i.orderType) === n.PreOrderLink;
4
4
  }
5
5
  export {
6
- n as default
6
+ t as default
7
7
  };
@@ -1,4 +1,6 @@
1
- import { CheckoutOrderType } from '@ancon/wildcat-types';
2
- export default function isPreOrderSharable<T extends {
3
- orderType?: CheckoutOrderType;
4
- }>(preOrder: T): boolean;
1
+ import { OrderType } from '@ancon/wildcat-types';
2
+ declare type Order = {
3
+ orderType?: OrderType;
4
+ };
5
+ export default function isPreOrderSharable<T extends Order>(preOrder: T): boolean;
6
+ export {};
@@ -1 +1 @@
1
- "use strict";const t=require("@ancon/wildcat-types");function o(e){const r=e==null?void 0:e.orderType;return r===t.CheckoutOrderType.PreOrderLink||r===t.CheckoutOrderType.GroupPreOrder}module.exports=o;
1
+ "use strict";const t=require("@ancon/wildcat-types");function o(e){const r=e==null?void 0:e.orderType;return r===t.OrderType.PreOrderLink||r===t.OrderType.GroupPreOrder}module.exports=o;
@@ -1,4 +1,4 @@
1
- import { CheckoutOrderType as o } from "@ancon/wildcat-types";
1
+ import { OrderType as o } from "@ancon/wildcat-types";
2
2
  function n(r) {
3
3
  const e = r == null ? void 0 : r.orderType;
4
4
  return e === o.PreOrderLink || e === o.GroupPreOrder;