@retaila/shared-types 1.1.112 → 1.1.114

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/dist/index.d.mts CHANGED
@@ -974,6 +974,8 @@ interface FulfillmentProviderAdapter {
974
974
  getRecollectionCapabilities(): Promise<FulfillmentRecollectionCapabilities>;
975
975
  createFulfillment(input: FulfillmentProviderCreateInput): Promise<FulfillmentProviderCreateOutput>;
976
976
  processWebhook(input: FulfillmentProviderProcessWebhookInput): Promise<FulfillmentProviderProcessWebhookOutput | null>;
977
+ /** Optional: cancel the fulfillment with the provider (e.g. cancel shipping label). */
978
+ cancelFulfillment?(fulfillment: Fulfillment): Promise<void>;
977
979
  }
978
980
 
979
981
  /**
@@ -1577,6 +1579,12 @@ interface Cart {
1577
1579
  description?: string;
1578
1580
  isAutomatic?: boolean;
1579
1581
  }[];
1582
+ freeShippingProgress?: {
1583
+ threshold: number;
1584
+ currentSubtotal: number;
1585
+ remaining: number;
1586
+ qualified: boolean;
1587
+ } | null;
1580
1588
  }
1581
1589
  interface CartItem {
1582
1590
  id: string;
@@ -2749,6 +2757,7 @@ declare enum AnalyticsEventType {
2749
2757
  PRODUCT_VIEW = "product_view",
2750
2758
  PRODUCT_LIST_VIEW = "product_list_view",
2751
2759
  PRODUCT_SEARCH = "product_search",
2760
+ SEARCH_SUGGESTION_CLICK = "search_suggestion_click",
2752
2761
  ADD_TO_CART = "add_to_cart",
2753
2762
  REMOVE_FROM_CART = "remove_from_cart",
2754
2763
  UPDATE_CART_QUANTITY = "update_cart_quantity",
package/dist/index.d.ts CHANGED
@@ -974,6 +974,8 @@ interface FulfillmentProviderAdapter {
974
974
  getRecollectionCapabilities(): Promise<FulfillmentRecollectionCapabilities>;
975
975
  createFulfillment(input: FulfillmentProviderCreateInput): Promise<FulfillmentProviderCreateOutput>;
976
976
  processWebhook(input: FulfillmentProviderProcessWebhookInput): Promise<FulfillmentProviderProcessWebhookOutput | null>;
977
+ /** Optional: cancel the fulfillment with the provider (e.g. cancel shipping label). */
978
+ cancelFulfillment?(fulfillment: Fulfillment): Promise<void>;
977
979
  }
978
980
 
979
981
  /**
@@ -1577,6 +1579,12 @@ interface Cart {
1577
1579
  description?: string;
1578
1580
  isAutomatic?: boolean;
1579
1581
  }[];
1582
+ freeShippingProgress?: {
1583
+ threshold: number;
1584
+ currentSubtotal: number;
1585
+ remaining: number;
1586
+ qualified: boolean;
1587
+ } | null;
1580
1588
  }
1581
1589
  interface CartItem {
1582
1590
  id: string;
@@ -2749,6 +2757,7 @@ declare enum AnalyticsEventType {
2749
2757
  PRODUCT_VIEW = "product_view",
2750
2758
  PRODUCT_LIST_VIEW = "product_list_view",
2751
2759
  PRODUCT_SEARCH = "product_search",
2760
+ SEARCH_SUGGESTION_CLICK = "search_suggestion_click",
2752
2761
  ADD_TO_CART = "add_to_cart",
2753
2762
  REMOVE_FROM_CART = "remove_from_cart",
2754
2763
  UPDATE_CART_QUANTITY = "update_cart_quantity",
package/dist/index.js CHANGED
@@ -1009,6 +1009,7 @@ var AnalyticsEventType = /* @__PURE__ */ ((AnalyticsEventType2) => {
1009
1009
  AnalyticsEventType2["PRODUCT_VIEW"] = "product_view";
1010
1010
  AnalyticsEventType2["PRODUCT_LIST_VIEW"] = "product_list_view";
1011
1011
  AnalyticsEventType2["PRODUCT_SEARCH"] = "product_search";
1012
+ AnalyticsEventType2["SEARCH_SUGGESTION_CLICK"] = "search_suggestion_click";
1012
1013
  AnalyticsEventType2["ADD_TO_CART"] = "add_to_cart";
1013
1014
  AnalyticsEventType2["REMOVE_FROM_CART"] = "remove_from_cart";
1014
1015
  AnalyticsEventType2["UPDATE_CART_QUANTITY"] = "update_cart_quantity";