@commercengine/storefront-sdk 0.3.12 → 0.4.1

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.
@@ -1,9 +1,11 @@
1
+ import createClient from 'openapi-fetch';
2
+
1
3
  /**
2
4
  * This file was auto-generated by openapi-typescript.
3
5
  * Do not make direct changes to the file.
4
6
  */
5
7
 
6
- export interface paths {
8
+ interface paths {
7
9
  "/catalog/products": {
8
10
  parameters: {
9
11
  query?: never;
@@ -1840,8 +1842,7 @@ export interface paths {
1840
1842
  trace?: never;
1841
1843
  };
1842
1844
  }
1843
- export type webhooks = Record<string, never>;
1844
- export interface components {
1845
+ interface components {
1845
1846
  schemas: {
1846
1847
  /** Product */
1847
1848
  Product: {
@@ -2499,36 +2500,18 @@ export interface components {
2499
2500
  * @description Subtotal including tax.
2500
2501
  */
2501
2502
  subtotal_including_tax: number;
2502
- /**
2503
- * Format: double
2504
- * @description Estimated cost of shipping.
2505
- */
2506
- shipping_estimated_cost: number;
2507
- /**
2508
- * Format: double
2509
- * @description Discount applied on estimated shipping cost.
2510
- */
2511
- shipping_discount_amount: number;
2512
- /**
2513
- * Format: double
2514
- * @description Shipping amount chargable to customer.
2515
- */
2516
- shipping_amount: number;
2517
- /**
2518
- * Format: double
2519
- * @description Shipping tax rate applied on shipping amount.
2520
- */
2521
- shipping_tax_rate: number;
2522
- /**
2523
- * Format: double
2524
- * @description Tax applied on shipping_amount.
2525
- */
2526
- shipping_tax_amount: number;
2527
- /**
2528
- * Format: double
2529
- * @description Shipping amount including shipping tax.
2530
- */
2531
- shipping_amount_including_tax: number;
2503
+ /** @description Estimated cost of shipping. */
2504
+ shipping_estimated_cost: number | null;
2505
+ /** @description Discount applied on estimated shipping cost. */
2506
+ shipping_discount_amount: number | null;
2507
+ /** @description Shipping amount chargable to customer. */
2508
+ shipping_amount: number | null;
2509
+ /** @description Shipping tax rate applied on shipping amount. */
2510
+ shipping_tax_rate: number | null;
2511
+ /** @description Tax applied on shipping_amount. */
2512
+ shipping_tax_amount: number | null;
2513
+ /** @description Shipping amount including shipping tax. */
2514
+ shipping_amount_including_tax: number | null;
2532
2515
  shipping_provider_id: string | null;
2533
2516
  shipping_provider_name: string | null;
2534
2517
  courier_company_id: string | null;
@@ -4545,8 +4528,7 @@ export interface components {
4545
4528
  headers: never;
4546
4529
  pathItems: never;
4547
4530
  }
4548
- export type $defs = Record<string, never>;
4549
- export interface operations {
4531
+ interface operations {
4550
4532
  "list-products": {
4551
4533
  parameters: {
4552
4534
  query?: {
@@ -8681,3 +8663,1487 @@ export interface operations {
8681
8663
  };
8682
8664
  };
8683
8665
  }
8666
+
8667
+ type ApiResult<T> = {
8668
+ data: T;
8669
+ error: null;
8670
+ response: Response;
8671
+ } | {
8672
+ data: null;
8673
+ error: ApiErrorResponse;
8674
+ response: Response;
8675
+ };
8676
+ type ApiErrorResponse = {
8677
+ success?: boolean;
8678
+ error?: any;
8679
+ code?: string;
8680
+ message?: string;
8681
+ };
8682
+ type ListProductsResponse = paths['/catalog/products']['get']['responses'][200]['content']['application/json'];
8683
+ type ListProductsContent = ListProductsResponse['content'];
8684
+ type ListProductsQuery = paths['/catalog/products']['get']['parameters']['query'];
8685
+ type ListProductsHeaderParams = paths['/catalog/products']['get']['parameters']['header'];
8686
+ type ListSkusResponse = paths['/catalog/skus']['get']['responses'][200]['content']['application/json'];
8687
+ type ListSkusContent = ListSkusResponse['content'];
8688
+ type ListSkusQuery = paths['/catalog/skus']['get']['parameters']['query'];
8689
+ type ListSkusHeaderParams = paths['/catalog/skus']['get']['parameters']['header'];
8690
+ type GetProductDetailResponse = paths['/catalog/products/{product_id_or_slug}']['get']['responses'][200]['content']['application/json'];
8691
+ type GetProductDetailContent = GetProductDetailResponse['content'];
8692
+ type GetProductDetailPathParams = paths['/catalog/products/{product_id_or_slug}']['get']['parameters']['path'];
8693
+ type GetProductDetailHeaderParams = paths['/catalog/products/{product_id_or_slug}']['get']['parameters']['header'];
8694
+ type ListProductVariantsResponse = paths['/catalog/products/{product_id}/variants']['get']['responses'][200]['content']['application/json'];
8695
+ type ListProductVariantsContent = ListProductVariantsResponse['content'];
8696
+ type ListProductVariantsPathParams = paths['/catalog/products/{product_id}/variants']['get']['parameters']['path'];
8697
+ type ListProductVariantsHeaderParams = paths['/catalog/products/{product_id}/variants']['get']['parameters']['header'];
8698
+ type GetVariantDetailResponse = paths['/catalog/products/{product_id}/variants/{variant_id}']['get']['responses'][200]['content']['application/json'];
8699
+ type GetVariantDetailContent = GetVariantDetailResponse['content'];
8700
+ type GetVariantDetailPathParams = paths['/catalog/products/{product_id}/variants/{variant_id}']['get']['parameters']['path'];
8701
+ type GetVariantDetailHeaderParams = paths['/catalog/products/{product_id}/variants/{variant_id}']['get']['parameters']['header'];
8702
+ type ListCategoriesResponse = paths['/catalog/categories']['get']['responses'][200]['content']['application/json'];
8703
+ type ListCategoriesContent = ListCategoriesResponse['content'];
8704
+ type ListCategoriesQuery = paths['/catalog/categories']['get']['parameters']['query'];
8705
+ type ListProductReviewsResponse = paths['/catalog/products/{product_id}/reviews']['get']['responses'][200]['content']['application/json'];
8706
+ type ListProductReviewsContent = ListProductReviewsResponse['content'];
8707
+ type ListProductReviewsQuery = paths['/catalog/products/{product_id}/reviews']['get']['parameters']['query'];
8708
+ type ListProductReviewsPathParams = paths['/catalog/products/{product_id}/reviews']['get']['parameters']['path'];
8709
+ type CreateProductReviewResponse = paths['/catalog/products/{product_id}/reviews']['post']['responses'][200]['content']['application/json'];
8710
+ type CreateProductReviewPathParams = paths['/catalog/products/{product_id}/reviews']['post']['parameters']['path'];
8711
+ type CreateProductReviewFormData = NonNullable<paths['/catalog/products/{product_id}/reviews']['post']['requestBody']>['content']['multipart/form-data'];
8712
+ type ListSimilarProductsResponse = paths['/catalog/products/similar']['get']['responses'][200]['content']['application/json'];
8713
+ type ListSimilarProductsContent = ListSimilarProductsResponse['content'];
8714
+ type ListSimilarProductsQuery = paths['/catalog/products/similar']['get']['parameters']['query'];
8715
+ type ListSimilarProductsHeaderParams = paths['/catalog/products/similar']['get']['parameters']['header'];
8716
+ type ListUpsellProductsResponse = paths['/catalog/products/up-sell']['get']['responses'][200]['content']['application/json'];
8717
+ type ListUpsellProductsContent = ListUpsellProductsResponse['content'];
8718
+ type ListUpsellProductsQuery = paths['/catalog/products/up-sell']['get']['parameters']['query'];
8719
+ type ListUpsellProductsHeaderParams = paths['/catalog/products/up-sell']['get']['parameters']['header'];
8720
+ type ListCrosssellProductsResponse = paths['/catalog/products/cross-sell']['get']['responses'][200]['content']['application/json'];
8721
+ type ListCrosssellProductsContent = ListCrosssellProductsResponse['content'];
8722
+ type ListCrosssellProductsQuery = paths['/catalog/products/cross-sell']['get']['parameters']['query'];
8723
+ type ListCrosssellProductsHeaderParams = paths['/catalog/products/cross-sell']['get']['parameters']['header'];
8724
+ type SearchProductsResponse = paths['/catalog/products/search']['post']['responses'][200]['content']['application/json'];
8725
+ type SearchProductsContent = SearchProductsResponse['content'];
8726
+ type SearchProductsHeaderParams = paths['/catalog/products/search']['post']['parameters']['header'];
8727
+ type SearchProductsBody = NonNullable<paths['/catalog/products/search']['post']['requestBody']>['content']['application/json'];
8728
+ type CreateCartResponse = paths['/carts']['post']['responses'][200]['content']['application/json'];
8729
+ type CreateCartContent = CreateCartResponse['content'];
8730
+ type CreateCartBody = NonNullable<paths['/carts']['post']['requestBody']>['content']['application/json'];
8731
+ type GetCartResponse = paths['/carts/{id}']['get']['responses'][200]['content']['application/json'];
8732
+ type GetCartContent = GetCartResponse['content'];
8733
+ type GetCartPathParams = paths['/carts/{id}']['get']['parameters']['path'];
8734
+ type DeleteCartResponse = paths['/carts/{id}']['delete']['responses'][200]['content']['application/json'];
8735
+ type DeleteCartPathParams = paths['/carts/{id}']['delete']['parameters']['path'];
8736
+ type GetUserCartResponse = paths['/carts/users/{user_id}']['get']['responses'][200]['content']['application/json'];
8737
+ type GetUserCartContent = GetUserCartResponse['content'];
8738
+ type GetUserCartPathParams = paths['/carts/users/{user_id}']['get']['parameters']['path'];
8739
+ type DeleteUserCartResponse = paths['/carts/users/{user_id}']['delete']['responses'][200]['content']['application/json'];
8740
+ type DeleteUserCartPathParams = paths['/carts/users/{user_id}']['delete']['parameters']['path'];
8741
+ type UpdateCartResponse = paths['/carts/{id}/items']['post']['responses'][200]['content']['application/json'];
8742
+ type UpdateCartContent = UpdateCartResponse['content'];
8743
+ type UpdateCartPathParams = paths['/carts/{id}/items']['post']['parameters']['path'];
8744
+ type UpdateCartBody = NonNullable<paths['/carts/{id}/items']['post']['requestBody']>['content']['application/json'];
8745
+ type CreateCartAddressResponse = paths['/carts/{id}/address']['post']['responses'][200]['content']['application/json'];
8746
+ type CreateCartAddressContent = CreateCartAddressResponse['content'];
8747
+ type CreateCartAddressPathParams = paths['/carts/{id}/address']['post']['parameters']['path'];
8748
+ type CreateCartAddressBody = NonNullable<paths['/carts/{id}/address']['post']['requestBody']>['content']['application/json'];
8749
+ type UpdateShippingMethodResponse = paths['/carts/{id}/shipping-method']['post']['responses'][200]['content']['application/json'];
8750
+ type UpdateShippingMethodContent = UpdateShippingMethodResponse['content'];
8751
+ type UpdateShippingMethodPathParams = paths['/carts/{id}/shipping-method']['post']['parameters']['path'];
8752
+ type UpdateShippingMethodBody = NonNullable<paths['/carts/{id}/shipping-method']['post']['requestBody']>['content']['application/json'];
8753
+ type ApplyCouponResponse = paths['/carts/{id}/coupon']['post']['responses'][200]['content']['application/json'];
8754
+ type ApplyCouponContent = ApplyCouponResponse['content'];
8755
+ type ApplyCouponPathParams = paths['/carts/{id}/coupon']['post']['parameters']['path'];
8756
+ type ApplyCouponBody = NonNullable<paths['/carts/{id}/coupon']['post']['requestBody']>['content']['application/json'];
8757
+ type RemoveCouponResponse = paths['/carts/{id}/coupon']['delete']['responses'][200]['content']['application/json'];
8758
+ type RemoveCouponContent = RemoveCouponResponse['content'];
8759
+ type RemoveCouponPathParams = paths['/carts/{id}/coupon']['delete']['parameters']['path'];
8760
+ type RedeemLoyaltyPointsResponse = paths['/carts/{id}/loyalty-points']['post']['responses'][200]['content']['application/json'];
8761
+ type RedeemLoyaltyPointsContent = RedeemLoyaltyPointsResponse['content'];
8762
+ type RedeemLoyaltyPointsPathParams = paths['/carts/{id}/loyalty-points']['post']['parameters']['path'];
8763
+ type RedeemLoyaltyPointsBody = NonNullable<paths['/carts/{id}/loyalty-points']['post']['requestBody']>['content']['application/json'];
8764
+ type RemoveLoyaltyPointsResponse = paths['/carts/{id}/loyalty-points']['delete']['responses'][200]['content']['application/json'];
8765
+ type RemoveLoyaltyPointsContent = RemoveLoyaltyPointsResponse['content'];
8766
+ type RemoveLoyaltyPointsPathParams = paths['/carts/{id}/loyalty-points']['delete']['parameters']['path'];
8767
+ type RedeemCreditBalanceResponse = paths['/carts/{id}/credit-balance']['post']['responses'][200]['content']['application/json'];
8768
+ type RedeemCreditBalanceContent = RedeemCreditBalanceResponse['content'];
8769
+ type RedeemCreditBalancePathParams = paths['/carts/{id}/credit-balance']['post']['parameters']['path'];
8770
+ type RedeemCreditBalanceBody = NonNullable<paths['/carts/{id}/credit-balance']['post']['requestBody']>['content']['application/json'];
8771
+ type RemoveCreditBalanceResponse = paths['/carts/{id}/credit-balance']['delete']['responses'][200]['content']['application/json'];
8772
+ type RemoveCreditBalanceContent = RemoveCreditBalanceResponse['content'];
8773
+ type RemoveCreditBalancePathParams = paths['/carts/{id}/credit-balance']['delete']['parameters']['path'];
8774
+ type RedeemGiftCardResponse = paths['/carts/{id}/gift-card']['post']['responses'][200]['content']['application/json'];
8775
+ type RedeemGiftCardContent = RedeemGiftCardResponse['content'];
8776
+ type RedeemGiftCardPathParams = paths['/carts/{id}/gift-card']['post']['parameters']['path'];
8777
+ type RedeemGiftCardBody = NonNullable<paths['/carts/{id}/gift-card']['post']['requestBody']>['content']['application/json'];
8778
+ type RemoveGiftCardResponse = paths['/carts/{id}/gift-card']['delete']['responses'][200]['content']['application/json'];
8779
+ type RemoveGiftCardContent = RemoveGiftCardResponse['content'];
8780
+ type RemoveGiftCardPathParams = paths['/carts/{id}/gift-card']['delete']['parameters']['path'];
8781
+ type ListCouponsResponse = paths['/carts/available-coupons']['get']['responses'][200]['content']['application/json'];
8782
+ type ListCouponsContent = ListCouponsResponse['content'];
8783
+ type ListCouponsHeaderParams = paths['/carts/available-coupons']['get']['parameters']['header'];
8784
+ type ListPromotionsResponse = paths['/carts/available-promotions']['get']['responses'][200]['content']['application/json'];
8785
+ type ListPromotionsContent = ListPromotionsResponse['content'];
8786
+ type ListPromotionsHeaderParams = paths['/carts/available-promotions']['get']['parameters']['header'];
8787
+ type GetWishlistResponse = paths['/wishlist/{user_id}']['get']['responses'][200]['content']['application/json'];
8788
+ type GetWishlistContent = GetWishlistResponse['content'];
8789
+ type GetWishlistPathParams = paths['/wishlist/{user_id}']['get']['parameters']['path'];
8790
+ type AddToWishlistResponse = paths['/wishlist/{user_id}']['post']['responses'][200]['content']['application/json'];
8791
+ type AddToWishlistContent = AddToWishlistResponse['content'];
8792
+ type AddToWishlistPathParams = paths['/wishlist/{user_id}']['post']['parameters']['path'];
8793
+ type AddToWishlistBody = NonNullable<paths['/wishlist/{user_id}']['post']['requestBody']>['content']['application/json'];
8794
+ type DeleteFromWishlistResponse = paths['/wishlist/{user_id}']['delete']['responses'][200]['content']['application/json'];
8795
+ type DeleteFromWishlistContent = DeleteFromWishlistResponse['content'];
8796
+ type DeleteFromWishlistPathParams = paths['/wishlist/{user_id}']['delete']['parameters']['path'];
8797
+ type DeleteFromWishlistBody = NonNullable<paths['/wishlist/{user_id}']['delete']['requestBody']>['content']['application/json'];
8798
+ type CreateCustomerResponse = paths['/customers']['post']['responses'][200]['content']['application/json'];
8799
+ type CreateCustomerContent = CreateCustomerResponse['content'];
8800
+ type CreateCustomerBody = NonNullable<paths['/customers']['post']['requestBody']>['content']['application/json'];
8801
+ type GetCustomerDetailResponse = paths['/customers/{id}']['get']['responses'][200]['content']['application/json'];
8802
+ type GetCustomerDetailContent = GetCustomerDetailResponse['content'];
8803
+ type GetCustomerDetailPathParams = paths['/customers/{id}']['get']['parameters']['path'];
8804
+ type UpdateCustomerResponse = paths['/customers/{id}']['put']['responses'][200]['content']['application/json'];
8805
+ type UpdateCustomerContent = UpdateCustomerResponse['content'];
8806
+ type UpdateCustomerPathParams = paths['/customers/{id}']['put']['parameters']['path'];
8807
+ type UpdateCustomerBody = NonNullable<paths['/customers/{id}']['put']['requestBody']>['content']['application/json'];
8808
+ type ListAddressesResponse = paths['/customers/{user_id}/addresses']['get']['responses'][200]['content']['application/json'];
8809
+ type ListAddressesContent = ListAddressesResponse['content'];
8810
+ type ListAddressesQuery = paths['/customers/{user_id}/addresses']['get']['parameters']['query'];
8811
+ type ListAddressesPathParams = paths['/customers/{user_id}/addresses']['get']['parameters']['path'];
8812
+ type CreateAddressResponse = paths['/customers/{user_id}/addresses']['post']['responses'][200]['content']['application/json'];
8813
+ type CreateAddressContent = CreateAddressResponse['content'];
8814
+ type CreateAddressPathParams = paths['/customers/{user_id}/addresses']['post']['parameters']['path'];
8815
+ type CreateAddressBody = NonNullable<paths['/customers/{user_id}/addresses']['post']['requestBody']>['content']['application/json'];
8816
+ type GetAddressDetailResponse = paths['/customers/{user_id}/addresses/{address_id}']['get']['responses'][200]['content']['application/json'];
8817
+ type GetAddressDetailContent = GetAddressDetailResponse['content'];
8818
+ type GetAddressDetailPathParams = paths['/customers/{user_id}/addresses/{address_id}']['get']['parameters']['path'];
8819
+ type UpdateAddressDetailResponse = paths['/customers/{user_id}/addresses/{address_id}']['put']['responses'][200]['content']['application/json'];
8820
+ type UpdateAddressDetailContent = UpdateAddressDetailResponse['content'];
8821
+ type UpdateAddressDetailPathParams = paths['/customers/{user_id}/addresses/{address_id}']['put']['parameters']['path'];
8822
+ type UpdateAddressDetailBody = NonNullable<paths['/customers/{user_id}/addresses/{address_id}']['put']['requestBody']>['content']['application/json'];
8823
+ type DeleteAddressResponse = paths['/customers/{user_id}/addresses/{address_id}']['delete']['responses'][200]['content']['application/json'];
8824
+ type DeleteAddressPathParams = paths['/customers/{user_id}/addresses/{address_id}']['delete']['parameters']['path'];
8825
+ type ListKycDocumentResponse = paths['/store/kyc-document']['get']['responses'][200]['content']['application/json'];
8826
+ type ListKycDocumentContent = ListKycDocumentResponse['content'];
8827
+ type GetConfigResponse = paths['/store/config']['get']['responses'][200]['content']['application/json'];
8828
+ type GetConfigContent = GetConfigResponse['content'];
8829
+ type ListDocumentsResponse = paths['/customers/{id}/documents']['get']['responses'][200]['content']['application/json'];
8830
+ type ListDocumentsContent = ListDocumentsResponse['content'];
8831
+ type ListDocumentsPathParams = paths['/customers/{id}/documents']['get']['parameters']['path'];
8832
+ type CreateDocumentResponse = paths['/customers/{id}/documents']['post']['responses'][200]['content']['application/json'];
8833
+ type CreateDocumentContent = CreateDocumentResponse['content'];
8834
+ type CreateDocumentPathParams = paths['/customers/{id}/documents']['post']['parameters']['path'];
8835
+ type CreateDocumentFormData = NonNullable<paths['/customers/{id}/documents']['post']['requestBody']>['content']['multipart/form-data'];
8836
+ type GetDocumentResponse = paths['/customers/{id}/documents/{document_id}']['get']['responses'][200]['content']['application/json'];
8837
+ type GetDocumentContent = GetDocumentResponse['content'];
8838
+ type GetDocumentPathParams = paths['/customers/{id}/documents/{document_id}']['get']['parameters']['path'];
8839
+ type UpdateDocumentResponse = paths['/customers/{id}/documents/{document_id}']['put']['responses'][200]['content']['application/json'];
8840
+ type UpdateDocumentContent = UpdateDocumentResponse['content'];
8841
+ type UpdateDocumentPathParams = paths['/customers/{id}/documents/{document_id}']['put']['parameters']['path'];
8842
+ type UpdateDocumentFormData = NonNullable<paths['/customers/{id}/documents/{document_id}']['put']['requestBody']>['content']['multipart/form-data'];
8843
+ type DeleteDocumentResponse = paths['/customers/{id}/documents/{document_id}']['delete']['responses'][200]['content']['application/json'];
8844
+ type DeleteDocumentPathParams = paths['/customers/{id}/documents/{document_id}']['delete']['parameters']['path'];
8845
+ type VerifyDocumentResponse = paths['/customers/{id}/documents/verify']['post']['responses'][200]['content']['application/json'];
8846
+ type VerifyDocumentContent = VerifyDocumentResponse['content'];
8847
+ type VerifyDocumentPathParams = paths['/customers/{id}/documents/verify']['post']['parameters']['path'];
8848
+ type VerifyDocumentBody = NonNullable<paths['/customers/{id}/documents/verify']['post']['requestBody']>['content']['application/json'];
8849
+ type GetLoyaltyDetailsResponse = paths['/customers/{user_id}/loyalty']['get']['responses'][200]['content']['application/json'];
8850
+ type GetLoyaltyDetailsContent = GetLoyaltyDetailsResponse['content'];
8851
+ type GetLoyaltyDetailsPathParams = paths['/customers/{user_id}/loyalty']['get']['parameters']['path'];
8852
+ type ListLoyaltyActivitiesResponse = paths['/customers/{user_id}/loyalty-points-activity']['get']['responses'][200]['content']['application/json'];
8853
+ type ListLoyaltyActivitiesContent = ListLoyaltyActivitiesResponse['content'];
8854
+ type ListLoyaltyActivitiesQuery = paths['/customers/{user_id}/loyalty-points-activity']['get']['parameters']['query'];
8855
+ type ListLoyaltyActivitiesPathParams = paths['/customers/{user_id}/loyalty-points-activity']['get']['parameters']['path'];
8856
+ type ListOrdersResponse = paths['/orders']['get']['responses'][200]['content']['application/json'];
8857
+ type ListOrdersContent = ListOrdersResponse['content'];
8858
+ type ListOrdersQuery = paths['/orders']['get']['parameters']['query'];
8859
+ type CreateOrderResponse = paths['/orders']['post']['responses'][200]['content']['application/json'];
8860
+ type CreateOrderContent = CreateOrderResponse['content'];
8861
+ type CreateOrderBody = NonNullable<paths['/orders']['post']['requestBody']>['content']['application/json'];
8862
+ type GetOrderDetailResponse = paths['/orders/{order_number}']['get']['responses'][200]['content']['application/json'];
8863
+ type GetOrderDetailContent = GetOrderDetailResponse['content'];
8864
+ type GetOrderDetailPathParams = paths['/orders/{order_number}']['get']['parameters']['path'];
8865
+ type GetPaymentStatusResponse = paths['/orders/{order_number}/payment-status']['get']['responses'][200]['content']['application/json'];
8866
+ type GetPaymentStatusContent = GetPaymentStatusResponse['content'];
8867
+ type GetPaymentStatusPathParams = paths['/orders/{order_number}/payment-status']['get']['parameters']['path'];
8868
+ type ListOrderShipmentsResponse = paths['/orders/{order_number}/shipments']['get']['responses'][200]['content']['application/json'];
8869
+ type ListOrderShipmentsContent = ListOrderShipmentsResponse['content'];
8870
+ type ListOrderShipmentsPathParams = paths['/orders/{order_number}/shipments']['get']['parameters']['path'];
8871
+ type ListOrderRefundsResponse = paths['/orders/{order_number}/refunds']['get']['responses'][200]['content']['application/json'];
8872
+ type ListOrderRefundsContent = ListOrderRefundsResponse['content'];
8873
+ type ListOrderRefundsPathParams = paths['/orders/{order_number}/refunds']['get']['parameters']['path'];
8874
+ type ListOrderPaymentsResponse = paths['/orders/{order_number}/payments']['get']['responses'][200]['content']['application/json'];
8875
+ type ListOrderPaymentsContent = ListOrderPaymentsResponse['content'];
8876
+ type ListOrderPaymentsPathParams = paths['/orders/{order_number}/payments']['get']['parameters']['path'];
8877
+ type CreateOrderReturnResponse = paths['/orders/{order_number}/return']['post']['responses'][200]['content']['application/json'];
8878
+ type CreateOrderReturnContent = CreateOrderReturnResponse['content'];
8879
+ type CreateOrderReturnPathParams = paths['/orders/{order_number}/return']['post']['parameters']['path'];
8880
+ type CreateOrderReturnBody = NonNullable<paths['/orders/{order_number}/return']['post']['requestBody']>['content']['application/json'];
8881
+ type GetOrderReturnDetailResponse = paths['/orders/{order_number}/return/{return_id}']['get']['responses'][200]['content']['application/json'];
8882
+ type GetOrderReturnDetailContent = GetOrderReturnDetailResponse['content'];
8883
+ type GetOrderReturnDetailPathParams = paths['/orders/{order_number}/return/{return_id}']['get']['parameters']['path'];
8884
+ type CancelOrderResponse = paths['/orders/{order_number}/cancel']['post']['responses'][200]['content']['application/json'];
8885
+ type CancelOrderContent = CancelOrderResponse['content'];
8886
+ type CancelOrderPathParams = paths['/orders/{order_number}/cancel']['post']['parameters']['path'];
8887
+ type CancelOrderBody = NonNullable<paths['/orders/{order_number}/cancel']['post']['requestBody']>['content']['application/json'];
8888
+ type RetryOrderPaymentResponse = paths['/orders/{order_number}/retry-payment']['post']['responses'][200]['content']['application/json'];
8889
+ type RetryOrderPaymentContent = RetryOrderPaymentResponse['content'];
8890
+ type RetryOrderPaymentPathParams = paths['/orders/{order_number}/retry-payment']['post']['parameters']['path'];
8891
+ type RetryOrderPaymentBody = NonNullable<paths['/orders/{order_number}/retry-payment']['post']['requestBody']>['content']['application/json'];
8892
+ type GetShippingMethodsResponse = paths['/shipping/shipping-methods']['post']['responses'][200]['content']['application/json'];
8893
+ type GetShippingMethodsContent = GetShippingMethodsResponse['content'];
8894
+ type GetShippingMethodsBody = NonNullable<paths['/shipping/shipping-methods']['post']['requestBody']>['content']['application/json'];
8895
+ type CheckPincodeServiceabilityResponse = paths['/shipping/serviceability/{pincode}']['get']['responses'][200]['content']['application/json'];
8896
+ type CheckPincodeServiceabilityContent = CheckPincodeServiceabilityResponse['content'];
8897
+ type CheckPincodeServiceabilityPathParams = paths['/shipping/serviceability/{pincode}']['get']['parameters']['path'];
8898
+ type GetAnonymousTokenResponse = paths['/auth/anonymous']['post']['responses'][200]['content']['application/json'];
8899
+ type GetAnonymousTokenContent = GetAnonymousTokenResponse['content'];
8900
+ type LoginWithPhoneResponse = paths['/auth/login/phone']['post']['responses'][200]['content']['application/json'];
8901
+ type LoginWithPhoneContent = LoginWithPhoneResponse['content'];
8902
+ type LoginWithPhoneBody = NonNullable<paths['/auth/login/phone']['post']['requestBody']>['content']['application/json'];
8903
+ type LoginWithEmailResponse = paths['/auth/login/email']['post']['responses'][200]['content']['application/json'];
8904
+ type LoginWithEmailContent = LoginWithEmailResponse['content'];
8905
+ type LoginWithEmailBody = NonNullable<paths['/auth/login/email']['post']['requestBody']>['content']['application/json'];
8906
+ type LoginWithWhatsappResponse = paths['/auth/login/whatsapp']['post']['responses'][200]['content']['application/json'];
8907
+ type LoginWithWhatsappContent = LoginWithWhatsappResponse['content'];
8908
+ type LoginWithWhatsappBody = NonNullable<paths['/auth/login/whatsapp']['post']['requestBody']>['content']['application/json'];
8909
+ type LoginWithPasswordResponse = paths['/auth/login/password']['post']['responses'][200]['content']['application/json'];
8910
+ type LoginWithPasswordContent = LoginWithPasswordResponse['content'];
8911
+ type LoginWithPasswordBody = NonNullable<paths['/auth/login/password']['post']['requestBody']>['content']['application/json'];
8912
+ type VerifyOtpResponse = paths['/auth/verify-otp']['post']['responses'][200]['content']['application/json'];
8913
+ type VerifyOtpContent = VerifyOtpResponse['content'];
8914
+ type VerifyOtpBody = NonNullable<paths['/auth/verify-otp']['post']['requestBody']>['content']['application/json'];
8915
+ type RegisterWithPhoneResponse = paths['/auth/register/phone']['post']['responses'][200]['content']['application/json'];
8916
+ type RegisterWithPhoneContent = RegisterWithPhoneResponse['content'];
8917
+ type RegisterWithPhoneBody = NonNullable<paths['/auth/register/phone']['post']['requestBody']>['content']['application/json'];
8918
+ type RegisterWithEmailResponse = paths['/auth/register/email']['post']['responses'][200]['content']['application/json'];
8919
+ type RegisterWithEmailContent = RegisterWithEmailResponse['content'];
8920
+ type RegisterWithEmailBody = NonNullable<paths['/auth/register/email']['post']['requestBody']>['content']['application/json'];
8921
+ type RegisterWithWhatsappResponse = paths['/auth/register/whatsapp']['post']['responses'][200]['content']['application/json'];
8922
+ type RegisterWithWhatsappContent = RegisterWithWhatsappResponse['content'];
8923
+ type RegisterWithWhatsappBody = NonNullable<paths['/auth/register/whatsapp']['post']['requestBody']>['content']['application/json'];
8924
+ type RegisterWithPasswordResponse = paths['/auth/register/password']['post']['responses'][200]['content']['application/json'];
8925
+ type RegisterWithPasswordContent = RegisterWithPasswordResponse['content'];
8926
+ type RegisterWithPasswordBody = NonNullable<paths['/auth/register/password']['post']['requestBody']>['content']['application/json'];
8927
+ type GetUserDetailResponse = paths['/auth/user/{id}']['get']['responses'][200]['content']['application/json'];
8928
+ type GetUserDetailContent = GetUserDetailResponse['content'];
8929
+ type GetUserDetailPathParams = paths['/auth/user/{id}']['get']['parameters']['path'];
8930
+ type UpdateUserResponse = paths['/auth/user/{id}']['put']['responses'][200]['content']['application/json'];
8931
+ type UpdateUserContent = UpdateUserResponse['content'];
8932
+ type UpdateUserPathParams = paths['/auth/user/{id}']['put']['parameters']['path'];
8933
+ type UpdateUserBody = NonNullable<paths['/auth/user/{id}']['put']['requestBody']>['content']['application/json'];
8934
+ type GetProfileImageResponse = paths['/auth/user/{id}/profile-image']['get']['responses'][200]['content']['application/json'];
8935
+ type GetProfileImageContent = GetProfileImageResponse['content'];
8936
+ type GetProfileImagePathParams = paths['/auth/user/{id}/profile-image']['get']['parameters']['path'];
8937
+ type UpdateProfileImageResponse = paths['/auth/user/{id}/profile-image']['put']['responses'][200]['content']['application/json'];
8938
+ type UpdateProfileImageContent = UpdateProfileImageResponse['content'];
8939
+ type UpdateProfileImagePathParams = paths['/auth/user/{id}/profile-image']['put']['parameters']['path'];
8940
+ type UpdateProfileImageFormData = NonNullable<paths['/auth/user/{id}/profile-image']['put']['requestBody']>['content']['multipart/form-data'];
8941
+ type AddProfileImageResponse = paths['/auth/user/{id}/profile-image']['post']['responses'][200]['content']['application/json'];
8942
+ type AddProfileImageContent = AddProfileImageResponse['content'];
8943
+ type AddProfileImagePathParams = paths['/auth/user/{id}/profile-image']['post']['parameters']['path'];
8944
+ type AddProfileImageFormData = NonNullable<paths['/auth/user/{id}/profile-image']['post']['requestBody']>['content']['multipart/form-data'];
8945
+ type RemoveProfileImageResponse = paths['/auth/user/{id}/profile-image']['delete']['responses'][200]['content']['application/json'];
8946
+ type RemoveProfileImagePathParams = paths['/auth/user/{id}/profile-image']['delete']['parameters']['path'];
8947
+ type DeactivateUserResponse = paths['/auth/user/{id}/deactivate']['put']['responses'][200]['content']['application/json'];
8948
+ type DeactivateUserPathParams = paths['/auth/user/{id}/deactivate']['put']['parameters']['path'];
8949
+ type RefreshTokenResponse = paths['/auth/refresh-token']['post']['responses'][200]['content']['application/json'];
8950
+ type RefreshTokenContent = RefreshTokenResponse['content'];
8951
+ type RefreshTokenBody = NonNullable<paths['/auth/refresh-token']['post']['requestBody']>['content']['application/json'];
8952
+ type ChangePasswordResponse = paths['/auth/change-password']['post']['responses'][200]['content']['application/json'];
8953
+ type ChangePasswordContent = ChangePasswordResponse['content'];
8954
+ type ChangePasswordBody = NonNullable<paths['/auth/change-password']['post']['requestBody']>['content']['application/json'];
8955
+ type ForgotPasswordResponse = paths['/auth/forgot-password']['post']['responses'][200]['content']['application/json'];
8956
+ type ForgotPasswordContent = ForgotPasswordResponse['content'];
8957
+ type ForgotPasswordBody = NonNullable<paths['/auth/forgot-password']['post']['requestBody']>['content']['application/json'];
8958
+ type ResetPasswordResponse = paths['/auth/reset-password']['post']['responses'][200]['content']['application/json'];
8959
+ type ResetPasswordContent = ResetPasswordResponse['content'];
8960
+ type ResetPasswordBody = NonNullable<paths['/auth/reset-password']['post']['requestBody']>['content']['application/json'];
8961
+ type GetNotificationPreferencesResponse = paths['/auth/user/{id}/notification-preferences']['get']['responses'][200]['content']['application/json'];
8962
+ type GetNotificationPreferencesContent = GetNotificationPreferencesResponse['content'];
8963
+ type GetNotificationPreferencesPathParams = paths['/auth/user/{id}/notification-preferences']['get']['parameters']['path'];
8964
+ type UpdateNotificationPreferencesResponse = paths['/auth/user/{id}/notification-preferences']['put']['responses'][200]['content']['application/json'];
8965
+ type UpdateNotificationPreferencesContent = UpdateNotificationPreferencesResponse['content'];
8966
+ type UpdateNotificationPreferencesPathParams = paths['/auth/user/{id}/notification-preferences']['put']['parameters']['path'];
8967
+ type UpdateNotificationPreferencesBody = NonNullable<paths['/auth/user/{id}/notification-preferences']['put']['requestBody']>['content']['application/json'];
8968
+ type CreateNotificationPreferencesResponse = paths['/auth/user/{id}/notification-preferences']['post']['responses'][200]['content']['application/json'];
8969
+ type CreateNotificationPreferencesContent = CreateNotificationPreferencesResponse['content'];
8970
+ type CreateNotificationPreferencesPathParams = paths['/auth/user/{id}/notification-preferences']['post']['parameters']['path'];
8971
+ type CreateNotificationPreferencesBody = NonNullable<paths['/auth/user/{id}/notification-preferences']['post']['requestBody']>['content']['application/json'];
8972
+ type GenerateOtpResponse = paths['/auth/generate-otp']['post']['responses'][200]['content']['application/json'];
8973
+ type GenerateOtpContent = GenerateOtpResponse['content'];
8974
+ type GenerateOtpBody = NonNullable<paths['/auth/generate-otp']['post']['requestBody']>['content']['application/json'];
8975
+ type LogoutResponse = paths['/auth/logout']['post']['responses'][200]['content']['application/json'];
8976
+ type LogoutContent = LogoutResponse['content'];
8977
+ type ListUserReviewsResponse = paths['/customers/{user_id}/reviews']['get']['responses'][200]['content']['application/json'];
8978
+ type ListUserReviewsContent = ListUserReviewsResponse['content'];
8979
+ type ListUserReviewsPathParams = paths['/customers/{user_id}/reviews']['get']['parameters']['path'];
8980
+ type CheckVerificationStatusResponse = paths['/auth/verified-email-phone']['post']['responses'][200]['content']['application/json'];
8981
+ type CheckVerificationStatusContent = CheckVerificationStatusResponse['content'];
8982
+ type CheckVerificationStatusBody = NonNullable<paths['/auth/verified-email-phone']['post']['requestBody']>['content']['application/json'];
8983
+ type GenerateHashResponse = paths['/payments/generate-hash']['post']['responses'][200]['content']['application/json'];
8984
+ type GenerateHashContent = GenerateHashResponse['content'];
8985
+ type GenerateHashBody = NonNullable<paths['/payments/generate-hash']['post']['requestBody']>['content']['application/json'];
8986
+ type ListPaymentMethodsResponse = paths['/payments/payment-methods']['get']['responses'][200]['content']['application/json'];
8987
+ type ListPaymentMethodsContent = ListPaymentMethodsResponse['content'];
8988
+ type ListPaymentMethodsQuery = paths['/payments/payment-methods']['get']['parameters']['query'];
8989
+ type ListSavedCardsResponse = paths['/payments/cards']['get']['responses'][200]['content']['application/json'];
8990
+ type ListSavedCardsContent = ListSavedCardsResponse['content'];
8991
+ type ListSavedCardsQuery = paths['/payments/cards']['get']['parameters']['query'];
8992
+ type AddCardResponse = paths['/payments/cards']['post']['responses'][200]['content']['application/json'];
8993
+ type AddCardContent = AddCardResponse['content'];
8994
+ type AddCardBody = NonNullable<paths['/payments/cards']['post']['requestBody']>['content']['application/json'];
8995
+ type VerifyVpaResponse = paths['/payments/verify-vpa']['get']['responses'][200]['content']['application/json'];
8996
+ type VerifyVpaContent = VerifyVpaResponse['content'];
8997
+ type VerifyVpaQuery = paths['/payments/verify-vpa']['get']['parameters']['query'];
8998
+ type CreateJuspayOrderResponse = paths['/payments/juspay/create-order']['post']['responses'][200]['content']['application/json'];
8999
+ type CreateJuspayOrderContent = CreateJuspayOrderResponse['content'];
9000
+ type CreateJuspayOrderBody = NonNullable<paths['/payments/juspay/create-order']['post']['requestBody']>['content']['application/json'];
9001
+ type CreateJuspayCustomerResponse = paths['/payments/juspay/customers']['post']['responses'][200]['content']['application/json'];
9002
+ type CreateJuspayCustomerContent = CreateJuspayCustomerResponse['content'];
9003
+ type CreateJuspayCustomerBody = NonNullable<paths['/payments/juspay/customers']['post']['requestBody']>['content']['application/json'];
9004
+ type GetJuspayCustomerResponse = paths['/payments/juspay/customers/{user-id}']['get']['responses'][200]['content']['application/json'];
9005
+ type GetJuspayCustomerContent = GetJuspayCustomerResponse['content'];
9006
+ type GetJuspayCustomerPathParams = paths['/payments/juspay/customers/{user-id}']['get']['parameters']['path'];
9007
+ type ListCountriesResponse = paths['/common/countries']['get']['responses'][200]['content']['application/json'];
9008
+ type ListCountriesContent = ListCountriesResponse['content'];
9009
+ type ListCountryStatesResponse = paths['/common/countries/{country_iso_code}/states']['get']['responses'][200]['content']['application/json'];
9010
+ type ListCountryStatesContent = ListCountryStatesResponse['content'];
9011
+ type ListCountryStatesPathParams = paths['/common/countries/{country_iso_code}/states']['get']['parameters']['path'];
9012
+ type ListCountryPincodesResponse = paths['/common/countries/{country_iso_code}/pincodes']['get']['responses'][200]['content']['application/json'];
9013
+ type ListCountryPincodesContent = ListCountryPincodesResponse['content'];
9014
+ type ListCountryPincodesQuery = paths['/common/countries/{country_iso_code}/pincodes']['get']['parameters']['query'];
9015
+ type ListCountryPincodesPathParams = paths['/common/countries/{country_iso_code}/pincodes']['get']['parameters']['path'];
9016
+ type ListReturnsResponse = paths['/orders/returns']['get']['responses'][200]['content']['application/json'];
9017
+ type ListReturnsContent = ListReturnsResponse['content'];
9018
+ type TrackAnalyticsEventResponse = paths['/analytics/track']['post']['responses'][200]['content']['application/json'];
9019
+ type TrackAnalyticsEventBody = NonNullable<paths['/analytics/track']['post']['requestBody']>['content']['application/json'];
9020
+ type SubscribeNewsletterResponse = paths['/campaigns/newsletter-subscribe']['post']['responses'][200]['content']['application/json'];
9021
+ type SubscribeNewsletterBody = NonNullable<paths['/campaigns/newsletter-subscribe']['post']['requestBody']>['content']['application/json'];
9022
+ type ListSubscriptionsResponse = paths['/subscriptions']['get']['responses'][200]['content']['application/json'];
9023
+ type ListSubscriptionsContent = ListSubscriptionsResponse['content'];
9024
+ type CreateSubscriptionResponse = paths['/subscriptions']['post']['responses'][200]['content']['application/json'];
9025
+ type CreateSubscriptionContent = CreateSubscriptionResponse['content'];
9026
+ type CreateSubscriptionBody = NonNullable<paths['/subscriptions']['post']['requestBody']>['content']['application/json'];
9027
+ type GetSubscriptionResponse = paths['/subscriptions/{id}']['get']['responses'][200]['content']['application/json'];
9028
+ type GetSubscriptionContent = GetSubscriptionResponse['content'];
9029
+ type GetSubscriptionPathParams = paths['/subscriptions/{id}']['get']['parameters']['path'];
9030
+ type UpdateSubscriptionResponse = paths['/subscriptions/{id}']['put']['responses'][200]['content']['application/json'];
9031
+ type UpdateSubscriptionContent = UpdateSubscriptionResponse['content'];
9032
+ type UpdateSubscriptionPathParams = paths['/subscriptions/{id}']['put']['parameters']['path'];
9033
+ type UpdateSubscriptionBody = NonNullable<paths['/subscriptions/{id}']['put']['requestBody']>['content']['application/json'];
9034
+
9035
+ /**
9036
+ * Available API environments
9037
+ */
9038
+ declare enum Environment {
9039
+ /**
9040
+ * Staging environment
9041
+ */
9042
+ Staging = "staging",
9043
+ /**
9044
+ * Production environment
9045
+ */
9046
+ Production = "production"
9047
+ }
9048
+ /**
9049
+ * Base API client for Storefront API
9050
+ */
9051
+ declare class StorefrontAPIClient {
9052
+ protected client: ReturnType<typeof createClient<paths>>;
9053
+ protected config: StorefrontSDKOptions;
9054
+ private readonly baseUrl;
9055
+ private initializationPromise;
9056
+ /**
9057
+ * Create a new StorefrontAPIClient
9058
+ *
9059
+ * @param config - Configuration for the API client
9060
+ */
9061
+ constructor(config: StorefrontSDKOptions);
9062
+ /**
9063
+ * Set up timeout middleware
9064
+ */
9065
+ private setupTimeoutMiddleware;
9066
+ /**
9067
+ * Constructs the base URL from the configuration
9068
+ *
9069
+ * @param config - The client configuration
9070
+ * @returns The constructed base URL
9071
+ */
9072
+ private getBaseUrlFromConfig;
9073
+ /**
9074
+ * Get the base URL of the API
9075
+ *
9076
+ * @returns The base URL of the API
9077
+ */
9078
+ getBaseUrl(): string;
9079
+ /**
9080
+ * Get the authorization header value
9081
+ * If using token storage, gets the current token from storage
9082
+ * Otherwise returns the manual token
9083
+ *
9084
+ * @returns The Authorization header value or empty string if no token is set
9085
+ */
9086
+ getAuthorizationHeader(): Promise<string>;
9087
+ /**
9088
+ * Set authentication tokens
9089
+ *
9090
+ * @param accessToken - The access token (required)
9091
+ * @param refreshToken - The refresh token (optional)
9092
+ *
9093
+ * Behavior:
9094
+ * - If tokenStorage is provided: Stores tokens for automatic management
9095
+ * - If tokenStorage is not provided: Only stores access token for manual management
9096
+ */
9097
+ setTokens(accessToken: string, refreshToken?: string): Promise<void>;
9098
+ /**
9099
+ * Clear all authentication tokens
9100
+ *
9101
+ * Behavior:
9102
+ * - If tokenStorage is provided: Clears both access and refresh tokens from storage
9103
+ * - If tokenStorage is not provided: Clears the manual access token
9104
+ */
9105
+ clearTokens(): Promise<void>;
9106
+ /**
9107
+ * Set the X-Api-Key header
9108
+ *
9109
+ * @param apiKey - The API key to set
9110
+ */
9111
+ setApiKey(apiKey: string): void;
9112
+ /**
9113
+ * Clear the X-Api-Key header
9114
+ */
9115
+ clearApiKey(): void;
9116
+ /**
9117
+ * Execute a request and handle the response
9118
+ *
9119
+ * @param apiCall - Function that executes the API request
9120
+ * @returns Promise with the API response
9121
+ */
9122
+ protected executeRequest<T>(apiCall: () => Promise<{
9123
+ data?: {
9124
+ message?: string;
9125
+ success?: boolean;
9126
+ content?: T;
9127
+ };
9128
+ error?: ApiErrorResponse;
9129
+ response: Response;
9130
+ }>): Promise<ApiResult<T>>;
9131
+ /**
9132
+ * Initialize tokens in storage (private helper method)
9133
+ */
9134
+ private initializeTokens;
9135
+ /**
9136
+ * Merge default headers with method-level headers
9137
+ * Method-level headers take precedence over default headers
9138
+ *
9139
+ * @param methodHeaders - Headers passed to the specific method call
9140
+ * @returns Merged headers object with proper HTTP header names
9141
+ */
9142
+ protected mergeHeaders<T extends Record<string, any> = Record<string, any>>(methodHeaders?: T): T;
9143
+ }
9144
+
9145
+ /**
9146
+ * Client for interacting with catalog endpoints
9147
+ */
9148
+ declare class CatalogClient extends StorefrontAPIClient {
9149
+ /**
9150
+ * List all products
9151
+ *
9152
+ * @param options - Optional query parameters
9153
+ * @param headers - Optional header parameters (customer_group_id, etc.)
9154
+ * @returns Promise with products and pagination info
9155
+ */
9156
+ listProducts(options?: ListProductsQuery, headers?: ListProductsHeaderParams): Promise<ApiResult<ListProductsContent>>;
9157
+ /**
9158
+ * List all skus
9159
+ *
9160
+ * @param options - Optional query parameters
9161
+ * @param headers - Optional header parameters (customer_group_id, etc.)
9162
+ * @returns Promise with skus and pagination info
9163
+ */
9164
+ listSkus(options?: ListSkusQuery, headers?: ListSkusHeaderParams): Promise<ApiResult<ListSkusContent>>;
9165
+ /**
9166
+ * Get details for a specific product
9167
+ *
9168
+ * @param pathParams - The path parameters (product ID or slug)
9169
+ * @param headers - Optional header parameters (customer_group_id, etc.)
9170
+ * @returns Promise with product details
9171
+ */
9172
+ getProductDetail(pathParams: GetProductDetailPathParams, headers?: GetProductDetailHeaderParams): Promise<ApiResult<GetProductDetailContent>>;
9173
+ /**
9174
+ * List variants for a specific product
9175
+ *
9176
+ * @param pathParams - The path parameters (product ID)
9177
+ * @param headers - Optional header parameters (customer_group_id, etc.)
9178
+ * @returns Promise with variants
9179
+ */
9180
+ listProductVariants(pathParams: ListProductVariantsPathParams, headers?: ListProductVariantsHeaderParams): Promise<ApiResult<ListProductVariantsContent>>;
9181
+ /**
9182
+ * Get details for a specific variant
9183
+ *
9184
+ * @param pathParams - The path parameters (product ID and variant ID)
9185
+ * @param headers - Optional header parameters (customer_group_id, etc.)
9186
+ * @returns Promise with variant details
9187
+ */
9188
+ getVariantDetail(pathParams: GetVariantDetailPathParams, headers?: GetVariantDetailHeaderParams): Promise<ApiResult<GetVariantDetailContent>>;
9189
+ /**
9190
+ * List all categories
9191
+ *
9192
+ * @param options - Optional query parameters
9193
+ * @returns Promise with categories and pagination info
9194
+ */
9195
+ listCategories(options?: ListCategoriesQuery): Promise<ApiResult<ListCategoriesContent>>;
9196
+ /**
9197
+ * List reviews for a specific product
9198
+ *
9199
+ * @param pathParams - The path parameters (product ID)
9200
+ * @param queryParams - Optional query parameters
9201
+ * @returns Promise with reviews and pagination info
9202
+ */
9203
+ listProductReviews(pathParams: ListProductReviewsPathParams, queryParams?: ListProductReviewsQuery): Promise<ApiResult<ListProductReviewsContent>>;
9204
+ /**
9205
+ * Create a review for a specific product
9206
+ *
9207
+ * @param pathParams - The path parameters (product ID)
9208
+ * @param formData - The review data
9209
+ * @returns Promise that resolves when the review is created
9210
+ */
9211
+ createProductReview(pathParams: CreateProductReviewPathParams, formData: CreateProductReviewFormData): Promise<ApiResult<CreateProductReviewResponse>>;
9212
+ /**
9213
+ * Search for products
9214
+ *
9215
+ * @param searchData - The search parameters
9216
+ * @returns Promise with search results, facet distribution, facet stats, and pagination
9217
+ */
9218
+ searchProducts(searchData: SearchProductsBody, headers?: SearchProductsHeaderParams): Promise<ApiResult<SearchProductsContent>>;
9219
+ /**
9220
+ * List cross-sell products
9221
+ *
9222
+ * @param options - Optional query parameters
9223
+ * @param headers - Optional header parameters (customer_group_id, etc.)
9224
+ * @returns Promise with cross-sell products
9225
+ */
9226
+ listCrossSellProducts(options?: ListCrosssellProductsQuery, headers?: ListCrosssellProductsHeaderParams): Promise<ApiResult<ListCrosssellProductsContent>>;
9227
+ /**
9228
+ * List up-sell products
9229
+ *
9230
+ * @param options - Optional query parameters
9231
+ * @param headers - Optional header parameters (customer_group_id, etc.)
9232
+ * @returns Promise with up-sell products
9233
+ */
9234
+ listUpSellProducts(options?: ListUpsellProductsQuery, headers?: ListUpsellProductsHeaderParams): Promise<ApiResult<ListUpsellProductsContent>>;
9235
+ /**
9236
+ * List similar products
9237
+ *
9238
+ * @param options - Optional query parameters
9239
+ * @param headers - Optional header parameters (customer_group_id, etc.)
9240
+ * @returns Promise with similar products
9241
+ */
9242
+ listSimilarProducts(options?: ListSimilarProductsQuery, headers?: ListSimilarProductsHeaderParams): Promise<ApiResult<ListSimilarProductsContent>>;
9243
+ }
9244
+
9245
+ /**
9246
+ * Client for interacting with cart endpoints
9247
+ */
9248
+ declare class CartClient extends StorefrontAPIClient {
9249
+ /**
9250
+ * Create a new cart
9251
+ *
9252
+ * @param payload - Object containing the items to add to the cart
9253
+ * @returns Promise with the created cart
9254
+ */
9255
+ createCart(payload: CreateCartBody): Promise<ApiResult<CreateCartContent>>;
9256
+ /**
9257
+ * Get cart details - either by ID or using the stored cart ID
9258
+ *
9259
+ * @param cartId - The ID of the cart
9260
+ * @returns Promise with cart details
9261
+ */
9262
+ getCart(cartId: GetCartPathParams): Promise<ApiResult<GetCartContent>>;
9263
+ /**
9264
+ * Delete a cart - either by ID or using the stored cart ID
9265
+ *
9266
+ * @param cartId - The ID of the cart
9267
+ * @returns Promise that resolves when the cart is deleted
9268
+ */
9269
+ deleteCart(cartId: DeleteCartPathParams): Promise<ApiResult<DeleteCartResponse>>;
9270
+ /**
9271
+ * Update cart items (add, update quantity, remove)
9272
+ *
9273
+ * @param cartId - The cart id
9274
+ * @param body - The body of the request
9275
+ * @returns Promise with updated cart
9276
+ */
9277
+ addDeleteCartItem(cartId: UpdateCartPathParams, body: UpdateCartBody): Promise<ApiResult<UpdateCartContent>>;
9278
+ /**
9279
+ * Get cart details by user ID
9280
+ *
9281
+ * @param userId - The ID of the user
9282
+ * @returns Promise with cart details
9283
+ */
9284
+ getUserCart(userId: GetUserCartPathParams): Promise<ApiResult<GetUserCartContent>>;
9285
+ /**
9286
+ * Delete a cart by user ID
9287
+ *
9288
+ * @param userId - The ID of the user
9289
+ * @returns Promise that resolves when the cart is deleted
9290
+ */
9291
+ deleteUserCart(userId: DeleteUserCartPathParams): Promise<ApiResult<DeleteUserCartResponse>>;
9292
+ /**
9293
+ * Update cart addresses
9294
+ *
9295
+ * @param cartId - The ID of the cart
9296
+ * @param addressData - The address data
9297
+ * @returns Promise with updated cart
9298
+ */
9299
+ updateCartAddress(cartId: CreateCartAddressPathParams, addressData: CreateCartAddressBody): Promise<ApiResult<CreateCartAddressContent>>;
9300
+ /**
9301
+ * Apply a coupon to the cart
9302
+ *
9303
+ * @param cartId - The ID of the cart
9304
+ * @param couponCode - The coupon code
9305
+ * @returns Promise with updated cart
9306
+ */
9307
+ applyCoupon(cartId: ApplyCouponPathParams, couponCode: ApplyCouponBody): Promise<ApiResult<ApplyCouponContent>>;
9308
+ /**
9309
+ * Remove a coupon from the cart
9310
+ *
9311
+ * @param cartId - The ID of the cart
9312
+ * @returns Promise with updated cart
9313
+ */
9314
+ removeCoupon(cartId: RemoveCouponPathParams): Promise<ApiResult<RemoveCouponContent>>;
9315
+ /**
9316
+ * Redeem loyalty points
9317
+ *
9318
+ * @param cartId - The ID of the cart
9319
+ * @param points - The number of points to redeem
9320
+ * @returns Promise with updated cart
9321
+ */
9322
+ redeemLoyaltyPoints(cartId: RedeemLoyaltyPointsPathParams, points: RedeemLoyaltyPointsBody): Promise<ApiResult<RedeemLoyaltyPointsContent>>;
9323
+ /**
9324
+ * Remove loyalty points
9325
+ *
9326
+ * @param cartId - The ID of the cart
9327
+ * @returns Promise with updated cart
9328
+ */
9329
+ removeLoyaltyPoints(cartId: RemoveLoyaltyPointsPathParams): Promise<ApiResult<RemoveLoyaltyPointsContent>>;
9330
+ /**
9331
+ * Update shipping method
9332
+ *
9333
+ * @param cartId - The ID of the cart
9334
+ * @param body - The body of the request
9335
+ * @returns Promise with updated cart
9336
+ */
9337
+ updateShippingMethod(cartId: UpdateShippingMethodPathParams, body: UpdateShippingMethodBody): Promise<ApiResult<UpdateShippingMethodContent>>;
9338
+ /**
9339
+ * Use credit balance
9340
+ *
9341
+ * @param cartId - The ID of the cart
9342
+ * @param body - The body of the request
9343
+ * @returns Promise with updated cart
9344
+ */
9345
+ redeemCreditBalance(cartId: RedeemCreditBalancePathParams, body: RedeemCreditBalanceBody): Promise<ApiResult<RedeemCreditBalanceContent>>;
9346
+ /**
9347
+ * Remove credit balance
9348
+ *
9349
+ * @param cartId - The ID of the cart
9350
+ * @returns Promise with updated cart
9351
+ */
9352
+ removeCreditBalance(cartId: RemoveCreditBalancePathParams): Promise<ApiResult<RemoveCreditBalanceContent>>;
9353
+ /**
9354
+ * Redeem gift card
9355
+ *
9356
+ * @param cartId - The ID of the cart
9357
+ * @param body - The body of the request
9358
+ * @returns Promise with updated cart
9359
+ */
9360
+ redeemGiftCard(cartId: RedeemGiftCardPathParams, body: RedeemGiftCardBody): Promise<ApiResult<RedeemGiftCardContent>>;
9361
+ /**
9362
+ * Remove gift card
9363
+ *
9364
+ * @param cartId - The ID of the cart
9365
+ * @returns Promise with updated cart
9366
+ */
9367
+ removeGiftCard(cartId: RemoveGiftCardPathParams): Promise<ApiResult<RemoveGiftCardContent>>;
9368
+ /**
9369
+ * Get wishlist items
9370
+ *
9371
+ * @param userId - The ID of the user
9372
+ * @returns Promise with wishlist items
9373
+ */
9374
+ getWishlist(userId: GetWishlistPathParams): Promise<ApiResult<GetWishlistContent>>;
9375
+ /**
9376
+ * Add item to wishlist
9377
+ *
9378
+ * @param userId - The ID of the user
9379
+ * @param itemId - The ID of the item
9380
+ * @returns Promise with updated wishlist
9381
+ */
9382
+ addToWishlist(userId: AddToWishlistPathParams, itemId: AddToWishlistBody): Promise<ApiResult<AddToWishlistContent>>;
9383
+ /**
9384
+ * Remove item from wishlist
9385
+ *
9386
+ * @param userId - The ID of the user
9387
+ * @param itemId - The ID of the item
9388
+ * @returns Promise with updated wishlist
9389
+ */
9390
+ removeFromWishlist(userId: DeleteFromWishlistPathParams, body: DeleteFromWishlistBody): Promise<ApiResult<DeleteFromWishlistContent>>;
9391
+ /**
9392
+ * Get all available coupons
9393
+ *
9394
+ * @param headers - Optional header parameters (customer_group_id, etc.)
9395
+ * @returns Promise with all available coupons
9396
+ */
9397
+ getAvailableCoupons(headers?: ListCouponsHeaderParams): Promise<ApiResult<ListCouponsContent>>;
9398
+ /**
9399
+ * Get all available promotions
9400
+ *
9401
+ * @param headers - Optional header parameters (customer_group_id, etc.)
9402
+ * @returns Promise with all available promotions
9403
+ */
9404
+ getAvailablePromotions(headers?: ListPromotionsHeaderParams): Promise<ApiResult<ListPromotionsContent>>;
9405
+ }
9406
+
9407
+ /**
9408
+ * Client for interacting with authentication endpoints
9409
+ */
9410
+ declare class AuthClient extends StorefrontAPIClient {
9411
+ /**
9412
+ * Get anonymous token for guest users
9413
+ */
9414
+ getAnonymousToken(): Promise<ApiResult<GetAnonymousTokenContent>>;
9415
+ /**
9416
+ * Login with phone number
9417
+ *
9418
+ * @param phoneNumber - Phone number (without country code)
9419
+ * @param countryCode - Country code (defaults to +91)
9420
+ * @param registerIfNotExists - Whether to register if user doesn't exist
9421
+ * @returns Promise with OTP token and action
9422
+ */
9423
+ loginWithPhone(body: LoginWithPhoneBody): Promise<ApiResult<LoginWithPhoneContent>>;
9424
+ /**
9425
+ * Login with WhatsApp
9426
+ *
9427
+ * @param phoneNumber - Phone number (without country code)
9428
+ * @param countryCode - Country code (defaults to +91)
9429
+ * @param registerIfNotExists - Whether to register if user doesn't exist
9430
+ * @returns Promise with OTP token and action
9431
+ */
9432
+ loginWithWhatsApp(body: LoginWithWhatsappBody): Promise<ApiResult<LoginWithWhatsappContent>>;
9433
+ /**
9434
+ * Login with email
9435
+ *
9436
+ * @param email - Email address
9437
+ * @param registerIfNotExists - Whether to register if user doesn't exist
9438
+ * @returns Promise with OTP token and action
9439
+ */
9440
+ loginWithEmail(body: LoginWithEmailBody): Promise<ApiResult<LoginWithEmailContent>>;
9441
+ /**
9442
+ * Login with password
9443
+ *
9444
+ * @param credentials - Login credentials
9445
+ * @returns Promise with user info and tokens
9446
+ */
9447
+ loginWithPassword(body: LoginWithPasswordBody): Promise<ApiResult<LoginWithPasswordContent>>;
9448
+ /**
9449
+ * Forgot password
9450
+ *
9451
+ * @param email - Email address
9452
+ * @returns Promise with user info and tokens
9453
+ */
9454
+ forgotPassword(body: ForgotPasswordBody): Promise<ApiResult<ForgotPasswordContent>>;
9455
+ /**
9456
+ * Reset password
9457
+ *
9458
+ * @param email - Email address
9459
+ * @returns Promise with user info and tokens
9460
+ */
9461
+ resetPassword(body: ResetPasswordBody): Promise<ApiResult<ResetPasswordContent>>;
9462
+ /**
9463
+ * Change password
9464
+ *
9465
+ * @param oldPassword - Old password
9466
+ * @param newPassword - New password
9467
+ * @param newPasswordConfirmation - New password confirmation
9468
+ * @returns Promise with new access token and refresh token
9469
+ */
9470
+ changePassword(body: ChangePasswordBody): Promise<ApiResult<ChangePasswordContent>>;
9471
+ /**
9472
+ * Verify OTP
9473
+ *
9474
+ * @param otp - One-time password
9475
+ * @param otpToken - OTP token from login request
9476
+ * @param otpAction - OTP action from login request
9477
+ * @returns Promise with user info and tokens
9478
+ */
9479
+ verifyOtp(body: VerifyOtpBody): Promise<ApiResult<VerifyOtpContent>>;
9480
+ /**
9481
+ * Register with phone
9482
+ *
9483
+ * @param options - Registration details
9484
+ * @returns Promise with user info and tokens
9485
+ */
9486
+ registerWithPhone(body: RegisterWithPhoneBody): Promise<ApiResult<RegisterWithPhoneContent>>;
9487
+ /**
9488
+ * Register with email
9489
+ *
9490
+ * @param options - Registration details
9491
+ * @returns Promise with user info and tokens
9492
+ */
9493
+ registerWithEmail(body: RegisterWithEmailBody): Promise<ApiResult<RegisterWithEmailContent>>;
9494
+ /**
9495
+ * Refresh the access token using a refresh token
9496
+ * @param refreshToken - The refresh token to use for refreshing the access token
9497
+ * @returns Promise with the new access token and refresh token
9498
+ */
9499
+ refreshToken(body: RefreshTokenBody): Promise<ApiResult<RefreshTokenContent>>;
9500
+ /**
9501
+ * Logout
9502
+ *
9503
+ * @returns Promise that resolves when logout is complete
9504
+ */
9505
+ logout(): Promise<ApiResult<LogoutContent>>;
9506
+ /**
9507
+ * Get user details
9508
+ *
9509
+ * @param userId - User ID
9510
+ * @returns Promise with user details
9511
+ */
9512
+ getUserDetails(pathParams: GetUserDetailPathParams): Promise<ApiResult<GetUserDetailContent>>;
9513
+ /**
9514
+ * Update user details
9515
+ *
9516
+ * @param userId - User ID
9517
+ * @returns Promise with user details
9518
+ */
9519
+ updateUserDetails(pathParams: UpdateUserPathParams, body: UpdateUserBody): Promise<ApiResult<UpdateUserContent>>;
9520
+ /**
9521
+ * Add profile image
9522
+ *
9523
+ * @param userId - User ID
9524
+ * @returns Promise with user details
9525
+ */
9526
+ addProfileImage(pathParams: AddProfileImagePathParams, formData: AddProfileImageFormData): Promise<ApiResult<AddProfileImageContent>>;
9527
+ /**
9528
+ * Update profile image
9529
+ *
9530
+ * @param userId - User ID
9531
+ * @returns Promise with user details
9532
+ */
9533
+ updateProfileImage(pathParams: UpdateProfileImagePathParams, formData: UpdateProfileImageFormData): Promise<ApiResult<UpdateProfileImageContent>>;
9534
+ /**
9535
+ * Delete profile image
9536
+ *
9537
+ * @param userId - User ID
9538
+ * @returns Promise with user details
9539
+ */
9540
+ deleteProfileImage(pathParams: RemoveProfileImagePathParams): Promise<ApiResult<RemoveProfileImageResponse>>;
9541
+ /**
9542
+ * Get profile image
9543
+ *
9544
+ * @param userId - User ID
9545
+ * @returns Promise with user details
9546
+ */
9547
+ getProfileImage(pathParams: GetProfileImagePathParams): Promise<ApiResult<GetProfileImageContent>>;
9548
+ /**
9549
+ * Deactivate user account
9550
+ *
9551
+ * @param userId - User ID
9552
+ * @returns Promise with user details
9553
+ */
9554
+ deactivateUserAccount(pathParams: DeactivateUserPathParams): Promise<ApiResult<DeactivateUserResponse>>;
9555
+ /**
9556
+ * Get user notification preferences
9557
+ *
9558
+ * @param userId - User ID
9559
+ * @returns Promise with user details
9560
+ */
9561
+ getUserNotificationPreferences(pathParams: GetNotificationPreferencesPathParams): Promise<ApiResult<GetNotificationPreferencesContent>>;
9562
+ /**
9563
+ * Update user notification preferences
9564
+ *
9565
+ * @param userId - User ID
9566
+ * @returns Promise with user details
9567
+ */
9568
+ updateUserNotificationPreferences(pathParams: UpdateNotificationPreferencesPathParams, body: UpdateNotificationPreferencesBody): Promise<ApiResult<UpdateNotificationPreferencesContent>>;
9569
+ /**
9570
+ * Create user notification preference
9571
+ *
9572
+ * @param userId - User ID
9573
+ * @returns Promise with user details
9574
+ */
9575
+ createUserNotificationPreference(pathParams: CreateNotificationPreferencesPathParams, body: CreateNotificationPreferencesBody): Promise<ApiResult<CreateNotificationPreferencesContent>>;
9576
+ /**
9577
+ * Generate OTP
9578
+ *
9579
+ * @param body - OTP generation body
9580
+ * @returns Promise with OTP generation response
9581
+ */
9582
+ generateOtp(body: GenerateOtpBody): Promise<ApiResult<GenerateOtpContent>>;
9583
+ /**
9584
+ * Check whether email or phone is already verified
9585
+ *
9586
+ * @param body - OTP generation body
9587
+ * @returns Promise with OTP generation response
9588
+ */
9589
+ checkEmailOrPhoneIsVerified(body: CheckVerificationStatusBody): Promise<ApiResult<CheckVerificationStatusContent>>;
9590
+ }
9591
+
9592
+ /**
9593
+ * Client for interacting with order endpoints
9594
+ */
9595
+ declare class OrderClient extends StorefrontAPIClient {
9596
+ /**
9597
+ * Get order details
9598
+ *
9599
+ * @param orderNumber - Order number
9600
+ * @returns Promise with order details
9601
+ */
9602
+ getOrderDetails(pathParams: GetOrderDetailPathParams): Promise<ApiResult<GetOrderDetailContent>>;
9603
+ /**
9604
+ * Create order
9605
+ *
9606
+ * @param cartId - Cart ID
9607
+ * @param paymentGateway - Payment gateway
9608
+ * @param paymentGatewayParams - Params for the selected payment gateway
9609
+ * @returns Promise with order details
9610
+ */
9611
+ createOrder(body: CreateOrderBody): Promise<ApiResult<CreateOrderContent>>;
9612
+ /**
9613
+ * List all orders
9614
+ *
9615
+ * @param queryParams - Query parameters
9616
+ * @returns Promise with order details
9617
+ */
9618
+ listOrders(queryParams: ListOrdersQuery): Promise<ApiResult<ListOrdersContent>>;
9619
+ /**
9620
+ * Get payment status for an order
9621
+ *
9622
+ * @param orderNumber - Order number
9623
+ * @returns Promise with payment status
9624
+ */
9625
+ getPaymentStatus(orderNumber: string): Promise<ApiResult<GetPaymentStatusContent>>;
9626
+ /**
9627
+ * Get all shipments for an order
9628
+ *
9629
+ * @param orderNumber - Order number
9630
+ * @returns Promise with shipments
9631
+ */
9632
+ listOrderShipments(pathParams: ListOrderShipmentsPathParams): Promise<ApiResult<ListOrderShipmentsContent>>;
9633
+ /**
9634
+ * List order payments
9635
+ *
9636
+ * @param orderNumber - Order number
9637
+ * @returns Promise with payments
9638
+ */
9639
+ listOrderPayments(pathParams: ListOrderPaymentsPathParams): Promise<ApiResult<ListOrderPaymentsContent>>;
9640
+ /**
9641
+ * List order refunds
9642
+ *
9643
+ * @param orderNumber - Order number
9644
+ * @returns Promise with refunds
9645
+ */
9646
+ listOrderRefunds(pathParams: ListOrderRefundsPathParams): Promise<ApiResult<ListOrderRefundsContent>>;
9647
+ /**
9648
+ * Cancel an order
9649
+ *
9650
+ * @param orderNumber - Order number
9651
+ * @returns Promise with order details
9652
+ */
9653
+ cancelOrder(pathParams: CancelOrderPathParams, body: CancelOrderBody): Promise<ApiResult<CancelOrderContent>>;
9654
+ /**
9655
+ * Retry payment for an order
9656
+ *
9657
+ * @param orderNumber - Order number
9658
+ * @returns Promise with order details
9659
+ */
9660
+ retryOrderPayment(pathParams: RetryOrderPaymentPathParams, body: RetryOrderPaymentBody): Promise<ApiResult<RetryOrderPaymentContent>>;
9661
+ }
9662
+
9663
+ /**
9664
+ * Client for interacting with shipping endpoints
9665
+ */
9666
+ declare class ShippingClient extends StorefrontAPIClient {
9667
+ /**
9668
+ * Get shipping options for an order
9669
+ *
9670
+ * @param body - Shipping methods body
9671
+ * @returns Promise with shipping options
9672
+ */
9673
+ getShippingMethods(body: GetShippingMethodsBody): Promise<ApiResult<GetShippingMethodsContent>>;
9674
+ /**
9675
+ * Check pincode deliverability
9676
+ *
9677
+ * @param pathParams - Path parameters
9678
+ * @returns Promise with pincode deliverability result
9679
+ */
9680
+ checkPincodeDeliverability(pathParams: CheckPincodeServiceabilityPathParams): Promise<ApiResult<CheckPincodeServiceabilityContent>>;
9681
+ }
9682
+
9683
+ /**
9684
+ * Client for interacting with helper endpoints
9685
+ */
9686
+ declare class HelpersClient extends StorefrontAPIClient {
9687
+ /**
9688
+ * Get a list of countries
9689
+ *
9690
+ * @returns Promise with countries
9691
+ */
9692
+ listCountries(): Promise<ApiResult<ListCountriesContent>>;
9693
+ /**
9694
+ * - Get a list of states for a country
9695
+ *
9696
+ * @param pathParams - Path parameters
9697
+ * @returns Promise with states
9698
+ */
9699
+ listCountryStates(pathParams: ListCountryStatesPathParams): Promise<ApiResult<ListCountryStatesContent>>;
9700
+ /**
9701
+ * Get pincodes for a country
9702
+ *
9703
+ * @param pathParams - Path parameters
9704
+ * @returns Promise with pincodes
9705
+ */
9706
+ listCountryPincodes(pathParams: ListCountryPincodesPathParams): Promise<ApiResult<ListCountryPincodesContent>>;
9707
+ }
9708
+
9709
+ /**
9710
+ * Client for interacting with customer endpoints
9711
+ */
9712
+ declare class CustomerClient extends StorefrontAPIClient {
9713
+ /**
9714
+ * Create a customer
9715
+ *
9716
+ * @param body - Customer creation body
9717
+ * @returns Promise with customer details
9718
+ */
9719
+ createCustomer(body: CreateCustomerBody): Promise<ApiResult<CreateCustomerContent>>;
9720
+ /**
9721
+ * Get customer details
9722
+ *
9723
+ * @param pathParams - Path parameters
9724
+ * @returns Promise with customer details
9725
+ */
9726
+ getCustomer(pathParams: GetCustomerDetailPathParams): Promise<ApiResult<GetCustomerDetailContent>>;
9727
+ /**
9728
+ * Update a customer
9729
+ *
9730
+ * @param pathParams - Path parameters
9731
+ * @param body - Customer update body
9732
+ * @returns Promise with customer details
9733
+ */
9734
+ updateCustomer(pathParams: UpdateCustomerPathParams, body: UpdateCustomerBody): Promise<ApiResult<UpdateCustomerContent>>;
9735
+ /**
9736
+ * Get all saved addresses for a customer
9737
+ *
9738
+ * @param pathParams - Path parameters
9739
+ * @returns Promise with addresses
9740
+ */
9741
+ listAddresses(pathParams: ListAddressesPathParams): Promise<ApiResult<ListAddressesContent>>;
9742
+ /**
9743
+ * Create a new address for a customer
9744
+ *
9745
+ * @param pathParams - Path parameters
9746
+ * @param body - Address creation body
9747
+ * @returns Promise with address details
9748
+ */
9749
+ createAddress(pathParams: CreateAddressPathParams, body: CreateAddressBody): Promise<ApiResult<CreateAddressContent>>;
9750
+ /**
9751
+ * Get an address for a customer
9752
+ *
9753
+ * @param pathParams - Path parameters
9754
+ * @returns Promise with address details
9755
+ */
9756
+ getAddress(pathParams: GetAddressDetailPathParams): Promise<ApiResult<GetAddressDetailContent>>;
9757
+ /**
9758
+ * Update an address for a customer
9759
+ *
9760
+ * @param pathParams - Path parameters
9761
+ * @param body - Address update body
9762
+ * @returns Promise with address details
9763
+ */
9764
+ updateAddress(pathParams: UpdateAddressDetailPathParams, body: UpdateAddressDetailBody): Promise<ApiResult<UpdateAddressDetailContent>>;
9765
+ /**
9766
+ * Delete an address for a customer
9767
+ *
9768
+ * @param pathParams - Path parameters
9769
+ * @returns Promise with address details
9770
+ */
9771
+ deleteAddress(pathParams: DeleteAddressPathParams): Promise<ApiResult<DeleteAddressResponse>>;
9772
+ /**
9773
+ * Get customer loyalty details
9774
+ *
9775
+ * @param pathParams - Path parameters
9776
+ * @returns Promise with loyalty details
9777
+ */
9778
+ getLoyaltyDetails(pathParams: GetLoyaltyDetailsPathParams): Promise<ApiResult<GetLoyaltyDetailsContent>>;
9779
+ /**
9780
+ * List all loyalty points activity for a customer
9781
+ *
9782
+ * @param pathParams - Path parameters
9783
+ * @returns Promise with loyalty points activity
9784
+ */
9785
+ listLoyaltyPointsActivity(pathParams: ListLoyaltyActivitiesPathParams): Promise<ApiResult<ListLoyaltyActivitiesContent>>;
9786
+ /**
9787
+ * List all reviews left by a customer
9788
+ *
9789
+ * @param pathParams - Path parameters
9790
+ * @returns Promise with reviews
9791
+ */
9792
+ listCustomerReviews(pathParams: ListUserReviewsPathParams): Promise<ApiResult<ListUserReviewsContent>>;
9793
+ }
9794
+
9795
+ /**
9796
+ * Token storage interface for the auth middleware
9797
+ */
9798
+ interface TokenStorage {
9799
+ getAccessToken(): Promise<string | null>;
9800
+ setAccessToken(token: string): Promise<void>;
9801
+ getRefreshToken(): Promise<string | null>;
9802
+ setRefreshToken(token: string): Promise<void>;
9803
+ clearTokens(): Promise<void>;
9804
+ }
9805
+ /**
9806
+ * Simple in-memory token storage implementation
9807
+ */
9808
+ declare class MemoryTokenStorage implements TokenStorage {
9809
+ private accessToken;
9810
+ private refreshToken;
9811
+ getAccessToken(): Promise<string | null>;
9812
+ setAccessToken(token: string): Promise<void>;
9813
+ getRefreshToken(): Promise<string | null>;
9814
+ setRefreshToken(token: string): Promise<void>;
9815
+ clearTokens(): Promise<void>;
9816
+ }
9817
+ /**
9818
+ * Browser localStorage token storage implementation
9819
+ */
9820
+ declare class BrowserTokenStorage implements TokenStorage {
9821
+ private accessTokenKey;
9822
+ private refreshTokenKey;
9823
+ constructor(prefix?: string);
9824
+ getAccessToken(): Promise<string | null>;
9825
+ setAccessToken(token: string): Promise<void>;
9826
+ getRefreshToken(): Promise<string | null>;
9827
+ setRefreshToken(token: string): Promise<void>;
9828
+ clearTokens(): Promise<void>;
9829
+ }
9830
+ /**
9831
+ * Cookie-based token storage implementation
9832
+ */
9833
+ declare class CookieTokenStorage implements TokenStorage {
9834
+ private accessTokenKey;
9835
+ private refreshTokenKey;
9836
+ private options;
9837
+ constructor(options?: CookieTokenStorageOptions);
9838
+ getAccessToken(): Promise<string | null>;
9839
+ setAccessToken(token: string): Promise<void>;
9840
+ getRefreshToken(): Promise<string | null>;
9841
+ setRefreshToken(token: string): Promise<void>;
9842
+ clearTokens(): Promise<void>;
9843
+ private getCookie;
9844
+ private setCookie;
9845
+ private deleteCookie;
9846
+ }
9847
+ /**
9848
+ * Configuration options for CookieTokenStorage
9849
+ */
9850
+ interface CookieTokenStorageOptions {
9851
+ /**
9852
+ * Prefix for cookie names (default: "storefront_")
9853
+ */
9854
+ prefix?: string;
9855
+ /**
9856
+ * Maximum age of cookies in seconds (default: 7 days)
9857
+ */
9858
+ maxAge?: number;
9859
+ /**
9860
+ * Cookie path (default: "/")
9861
+ */
9862
+ path?: string;
9863
+ /**
9864
+ * Cookie domain (default: current domain)
9865
+ */
9866
+ domain?: string;
9867
+ /**
9868
+ * Whether cookies should be secure (default: auto-detect based on protocol)
9869
+ */
9870
+ secure?: boolean;
9871
+ /**
9872
+ * SameSite cookie attribute (default: "Lax")
9873
+ */
9874
+ sameSite?: "Strict" | "Lax" | "None";
9875
+ }
9876
+
9877
+ /**
9878
+ * User information extracted from JWT token
9879
+ */
9880
+ interface UserInfo {
9881
+ id: string;
9882
+ email: string | null;
9883
+ phone: string | null;
9884
+ username: string;
9885
+ firstName: string | null;
9886
+ lastName: string | null;
9887
+ storeId: string;
9888
+ isLoggedIn: boolean;
9889
+ isAnonymous: boolean;
9890
+ customerId: string | null;
9891
+ customerGroupId: string | null;
9892
+ anonymousId: string;
9893
+ tokenExpiry: Date;
9894
+ tokenIssuedAt: Date;
9895
+ }
9896
+
9897
+ /**
9898
+ * Debug logger function interface
9899
+ */
9900
+ interface DebugLoggerFn {
9901
+ (level: "info" | "warn" | "error", message: string, data?: any): void;
9902
+ }
9903
+ /**
9904
+ * Response utilities for debugging and working with Response objects
9905
+ */
9906
+ declare class ResponseUtils {
9907
+ /**
9908
+ * Get response headers as a plain object
9909
+ */
9910
+ static getHeaders(response: Response): Record<string, string>;
9911
+ /**
9912
+ * Get specific header value
9913
+ */
9914
+ static getHeader(response: Response, name: string): string | null;
9915
+ /**
9916
+ * Check if response was successful
9917
+ */
9918
+ static isSuccess(response: Response): boolean;
9919
+ /**
9920
+ * Get response metadata
9921
+ */
9922
+ static getMetadata(response: Response): {
9923
+ status: number;
9924
+ statusText: string;
9925
+ ok: boolean;
9926
+ url: string;
9927
+ redirected: boolean;
9928
+ type: ResponseType;
9929
+ headers: {
9930
+ [k: string]: string;
9931
+ };
9932
+ };
9933
+ /**
9934
+ * Clone and read response as text (useful for debugging)
9935
+ * Note: This can only be called once per response
9936
+ */
9937
+ static getText(response: Response): Promise<string>;
9938
+ /**
9939
+ * Clone and read response as JSON (useful for debugging)
9940
+ * Note: This can only be called once per response
9941
+ */
9942
+ static getJSON(response: Response): Promise<any>;
9943
+ /**
9944
+ * Format response information for debugging
9945
+ */
9946
+ static format(response: Response): string;
9947
+ }
9948
+
9949
+ /**
9950
+ * Supported default headers that can be set at the SDK level
9951
+ * Only includes headers that are actually supported by API endpoints
9952
+ */
9953
+ interface SupportedDefaultHeaders {
9954
+ /**
9955
+ * Customer group ID used for pricing, promotions, and subscription rates
9956
+ * If not provided, the API will use default pricing
9957
+ */
9958
+ customer_group_id?: string;
9959
+ }
9960
+ /**
9961
+ * SDK initialization options
9962
+ */
9963
+ interface StorefrontSDKOptions {
9964
+ /**
9965
+ * Store ID for the API requests
9966
+ */
9967
+ storeId: string;
9968
+ /**
9969
+ * Environment to use (defaults to Production)
9970
+ */
9971
+ environment?: Environment;
9972
+ /**
9973
+ * Custom base URL (overrides environment if provided)
9974
+ */
9975
+ baseUrl?: string;
9976
+ /**
9977
+ * Optional initial access token
9978
+ * - If tokenStorage is provided: Used as initial token value, then managed automatically
9979
+ * - If tokenStorage is not provided: Used for manual token management
9980
+ */
9981
+ accessToken?: string;
9982
+ /**
9983
+ * Optional initial refresh token
9984
+ * - Only used when tokenStorage is provided
9985
+ * - Allows initialization with both access and refresh tokens
9986
+ */
9987
+ refreshToken?: string;
9988
+ /**
9989
+ * X-Api-Key for anonymous authentication endpoints
9990
+ * Required for initial authentication
9991
+ */
9992
+ apiKey?: string;
9993
+ /**
9994
+ * Optional timeout in milliseconds
9995
+ */
9996
+ timeout?: number;
9997
+ /**
9998
+ * Optional token storage for automatic token management
9999
+ * If provided, enables automatic token refresh and management
10000
+ */
10001
+ tokenStorage?: TokenStorage;
10002
+ /**
10003
+ * Callback when tokens are updated (login/refresh)
10004
+ */
10005
+ onTokensUpdated?: (accessToken: string, refreshToken: string) => void;
10006
+ /**
10007
+ * Callback when tokens are cleared (logout/error)
10008
+ */
10009
+ onTokensCleared?: () => void;
10010
+ /**
10011
+ * Default headers to include with API requests
10012
+ * These can be overridden at the method level
10013
+ * Only supports headers that are actually available in the API
10014
+ */
10015
+ defaultHeaders?: SupportedDefaultHeaders;
10016
+ /**
10017
+ * Enable debug mode for detailed request/response logging
10018
+ * When enabled, detailed debug information will be logged via the logger
10019
+ * Note: Response objects are always included in ApiResult regardless of debug mode
10020
+ */
10021
+ debug?: boolean;
10022
+ /**
10023
+ * Custom logger function for debug information
10024
+ * If not provided and debug is enabled, will use console.log
10025
+ */
10026
+ logger?: DebugLoggerFn;
10027
+ }
10028
+ /**
10029
+ * Main SDK class for the Storefront API
10030
+ */
10031
+ declare class StorefrontSDK {
10032
+ /**
10033
+ * Client for catalog-related endpoints (products, categories, etc.)
10034
+ */
10035
+ readonly catalog: CatalogClient;
10036
+ /**
10037
+ * Client for cart-related endpoints
10038
+ */
10039
+ readonly cart: CartClient;
10040
+ /**
10041
+ * Client for authentication-related endpoints
10042
+ */
10043
+ readonly auth: AuthClient;
10044
+ /**
10045
+ * Client for customer-related endpoints
10046
+ */
10047
+ readonly customer: CustomerClient;
10048
+ /**
10049
+ * Client for helper-related endpoints
10050
+ */
10051
+ readonly helpers: HelpersClient;
10052
+ /**
10053
+ * Client for shipping-related endpoints
10054
+ */
10055
+ readonly shipping: ShippingClient;
10056
+ /**
10057
+ * Client for order-related endpoints
10058
+ */
10059
+ readonly order: OrderClient;
10060
+ /**
10061
+ * Create a new StorefrontSDK instance
10062
+ *
10063
+ * @param options - Configuration options for the SDK
10064
+ */
10065
+ constructor(options: StorefrontSDKOptions);
10066
+ /**
10067
+ * Set authentication tokens for all clients
10068
+ *
10069
+ * @param accessToken - The access token (required)
10070
+ * @param refreshToken - The refresh token (optional)
10071
+ *
10072
+ * Behavior:
10073
+ * - If tokenStorage is provided: Stores tokens for automatic management
10074
+ * - If tokenStorage is not provided: Only stores access token for manual management
10075
+ */
10076
+ setTokens(accessToken: string, refreshToken?: string): Promise<void>;
10077
+ /**
10078
+ * Clear all authentication tokens from all clients
10079
+ *
10080
+ * Behavior:
10081
+ * - If tokenStorage is provided: Clears both access and refresh tokens from storage
10082
+ * - If tokenStorage is not provided: Clears the manual access token
10083
+ */
10084
+ clearTokens(): Promise<void>;
10085
+ /**
10086
+ * Set the API key for all clients
10087
+ *
10088
+ * @param apiKey - The API key to set
10089
+ */
10090
+ setApiKey(apiKey: string): void;
10091
+ /**
10092
+ * Clear the API key from all clients
10093
+ */
10094
+ clearApiKey(): void;
10095
+ /**
10096
+ * Get the current access token if using token storage
10097
+ */
10098
+ getAccessToken(): Promise<string | null>;
10099
+ /**
10100
+ * Get user information from the current access token
10101
+ *
10102
+ * @returns User information extracted from JWT token, or null if no token or invalid token
10103
+ */
10104
+ getUserInfo(): Promise<UserInfo | null>;
10105
+ /**
10106
+ * Get the current user ID from the access token
10107
+ *
10108
+ * @returns User ID (ulid) or null if no token or invalid token
10109
+ */
10110
+ getUserId(): Promise<string | null>;
10111
+ /**
10112
+ * Check if the current user is logged in (not anonymous)
10113
+ *
10114
+ * @returns True if user is logged in, false if anonymous or no token
10115
+ */
10116
+ isLoggedIn(): Promise<boolean>;
10117
+ /**
10118
+ * Check if the current user is anonymous
10119
+ *
10120
+ * @returns True if user is anonymous or no token, false if logged in
10121
+ */
10122
+ isAnonymous(): Promise<boolean>;
10123
+ /**
10124
+ * Get the customer ID from the current access token
10125
+ *
10126
+ * @returns Customer ID or null if no token, invalid token, or user has no customer ID
10127
+ */
10128
+ getCustomerId(): Promise<string | null>;
10129
+ /**
10130
+ * Get the customer group ID from the current access token
10131
+ *
10132
+ * @returns Customer group ID or null if no token, invalid token, or user has no customer group
10133
+ */
10134
+ getCustomerGroupId(): Promise<string | null>;
10135
+ /**
10136
+ * Set default headers for all clients
10137
+ *
10138
+ * @param headers - Default headers to set (only supported headers allowed)
10139
+ */
10140
+ setDefaultHeaders(headers: SupportedDefaultHeaders): void;
10141
+ /**
10142
+ * Get current default headers
10143
+ *
10144
+ * @returns Current default headers
10145
+ */
10146
+ getDefaultHeaders(): SupportedDefaultHeaders | undefined;
10147
+ }
10148
+
10149
+ export { type AddCardBody, type AddCardContent, type AddCardResponse, type AddProfileImageContent, type AddProfileImageFormData, type AddProfileImagePathParams, type AddProfileImageResponse, type AddToWishlistBody, type AddToWishlistContent, type AddToWishlistPathParams, type AddToWishlistResponse, type ApiErrorResponse, type ApiResult, type ApplyCouponBody, type ApplyCouponContent, type ApplyCouponPathParams, type ApplyCouponResponse, AuthClient, BrowserTokenStorage, type CancelOrderBody, type CancelOrderContent, type CancelOrderPathParams, type CancelOrderResponse, CartClient, CatalogClient, type ChangePasswordBody, type ChangePasswordContent, type ChangePasswordResponse, type CheckPincodeServiceabilityContent, type CheckPincodeServiceabilityPathParams, type CheckPincodeServiceabilityResponse, type CheckVerificationStatusBody, type CheckVerificationStatusContent, type CheckVerificationStatusResponse, CookieTokenStorage, type CookieTokenStorageOptions, type CreateAddressBody, type CreateAddressContent, type CreateAddressPathParams, type CreateAddressResponse, type CreateCartAddressBody, type CreateCartAddressContent, type CreateCartAddressPathParams, type CreateCartAddressResponse, type CreateCartBody, type CreateCartContent, type CreateCartResponse, type CreateCustomerBody, type CreateCustomerContent, type CreateCustomerResponse, type CreateDocumentContent, type CreateDocumentFormData, type CreateDocumentPathParams, type CreateDocumentResponse, type CreateJuspayCustomerBody, type CreateJuspayCustomerContent, type CreateJuspayCustomerResponse, type CreateJuspayOrderBody, type CreateJuspayOrderContent, type CreateJuspayOrderResponse, type CreateNotificationPreferencesBody, type CreateNotificationPreferencesContent, type CreateNotificationPreferencesPathParams, type CreateNotificationPreferencesResponse, type CreateOrderBody, type CreateOrderContent, type CreateOrderResponse, type CreateOrderReturnBody, type CreateOrderReturnContent, type CreateOrderReturnPathParams, type CreateOrderReturnResponse, type CreateProductReviewFormData, type CreateProductReviewPathParams, type CreateProductReviewResponse, type CreateSubscriptionBody, type CreateSubscriptionContent, type CreateSubscriptionResponse, CustomerClient, type DeactivateUserPathParams, type DeactivateUserResponse, type DebugLoggerFn, type DeleteAddressPathParams, type DeleteAddressResponse, type DeleteCartPathParams, type DeleteCartResponse, type DeleteDocumentPathParams, type DeleteDocumentResponse, type DeleteFromWishlistBody, type DeleteFromWishlistContent, type DeleteFromWishlistPathParams, type DeleteFromWishlistResponse, type DeleteUserCartPathParams, type DeleteUserCartResponse, Environment, type ForgotPasswordBody, type ForgotPasswordContent, type ForgotPasswordResponse, type GenerateHashBody, type GenerateHashContent, type GenerateHashResponse, type GenerateOtpBody, type GenerateOtpContent, type GenerateOtpResponse, type GetAddressDetailContent, type GetAddressDetailPathParams, type GetAddressDetailResponse, type GetAnonymousTokenContent, type GetAnonymousTokenResponse, type GetCartContent, type GetCartPathParams, type GetCartResponse, type GetConfigContent, type GetConfigResponse, type GetCustomerDetailContent, type GetCustomerDetailPathParams, type GetCustomerDetailResponse, type GetDocumentContent, type GetDocumentPathParams, type GetDocumentResponse, type GetJuspayCustomerContent, type GetJuspayCustomerPathParams, type GetJuspayCustomerResponse, type GetLoyaltyDetailsContent, type GetLoyaltyDetailsPathParams, type GetLoyaltyDetailsResponse, type GetNotificationPreferencesContent, type GetNotificationPreferencesPathParams, type GetNotificationPreferencesResponse, type GetOrderDetailContent, type GetOrderDetailPathParams, type GetOrderDetailResponse, type GetOrderReturnDetailContent, type GetOrderReturnDetailPathParams, type GetOrderReturnDetailResponse, type GetPaymentStatusContent, type GetPaymentStatusPathParams, type GetPaymentStatusResponse, type GetProductDetailContent, type GetProductDetailHeaderParams, type GetProductDetailPathParams, type GetProductDetailResponse, type GetProfileImageContent, type GetProfileImagePathParams, type GetProfileImageResponse, type GetShippingMethodsBody, type GetShippingMethodsContent, type GetShippingMethodsResponse, type GetSubscriptionContent, type GetSubscriptionPathParams, type GetSubscriptionResponse, type GetUserCartContent, type GetUserCartPathParams, type GetUserCartResponse, type GetUserDetailContent, type GetUserDetailPathParams, type GetUserDetailResponse, type GetVariantDetailContent, type GetVariantDetailHeaderParams, type GetVariantDetailPathParams, type GetVariantDetailResponse, type GetWishlistContent, type GetWishlistPathParams, type GetWishlistResponse, HelpersClient, type ListAddressesContent, type ListAddressesPathParams, type ListAddressesQuery, type ListAddressesResponse, type ListCategoriesContent, type ListCategoriesQuery, type ListCategoriesResponse, type ListCountriesContent, type ListCountriesResponse, type ListCountryPincodesContent, type ListCountryPincodesPathParams, type ListCountryPincodesQuery, type ListCountryPincodesResponse, type ListCountryStatesContent, type ListCountryStatesPathParams, type ListCountryStatesResponse, type ListCouponsContent, type ListCouponsHeaderParams, type ListCouponsResponse, type ListCrosssellProductsContent, type ListCrosssellProductsHeaderParams, type ListCrosssellProductsQuery, type ListCrosssellProductsResponse, type ListDocumentsContent, type ListDocumentsPathParams, type ListDocumentsResponse, type ListKycDocumentContent, type ListKycDocumentResponse, type ListLoyaltyActivitiesContent, type ListLoyaltyActivitiesPathParams, type ListLoyaltyActivitiesQuery, type ListLoyaltyActivitiesResponse, type ListOrderPaymentsContent, type ListOrderPaymentsPathParams, type ListOrderPaymentsResponse, type ListOrderRefundsContent, type ListOrderRefundsPathParams, type ListOrderRefundsResponse, type ListOrderShipmentsContent, type ListOrderShipmentsPathParams, type ListOrderShipmentsResponse, type ListOrdersContent, type ListOrdersQuery, type ListOrdersResponse, type ListPaymentMethodsContent, type ListPaymentMethodsQuery, type ListPaymentMethodsResponse, type ListProductReviewsContent, type ListProductReviewsPathParams, type ListProductReviewsQuery, type ListProductReviewsResponse, type ListProductVariantsContent, type ListProductVariantsHeaderParams, type ListProductVariantsPathParams, type ListProductVariantsResponse, type ListProductsContent, type ListProductsHeaderParams, type ListProductsQuery, type ListProductsResponse, type ListPromotionsContent, type ListPromotionsHeaderParams, type ListPromotionsResponse, type ListReturnsContent, type ListReturnsResponse, type ListSavedCardsContent, type ListSavedCardsQuery, type ListSavedCardsResponse, type ListSimilarProductsContent, type ListSimilarProductsHeaderParams, type ListSimilarProductsQuery, type ListSimilarProductsResponse, type ListSkusContent, type ListSkusHeaderParams, type ListSkusQuery, type ListSkusResponse, type ListSubscriptionsContent, type ListSubscriptionsResponse, type ListUpsellProductsContent, type ListUpsellProductsHeaderParams, type ListUpsellProductsQuery, type ListUpsellProductsResponse, type ListUserReviewsContent, type ListUserReviewsPathParams, type ListUserReviewsResponse, type LoginWithEmailBody, type LoginWithEmailContent, type LoginWithEmailResponse, type LoginWithPasswordBody, type LoginWithPasswordContent, type LoginWithPasswordResponse, type LoginWithPhoneBody, type LoginWithPhoneContent, type LoginWithPhoneResponse, type LoginWithWhatsappBody, type LoginWithWhatsappContent, type LoginWithWhatsappResponse, type LogoutContent, type LogoutResponse, MemoryTokenStorage, OrderClient, type RedeemCreditBalanceBody, type RedeemCreditBalanceContent, type RedeemCreditBalancePathParams, type RedeemCreditBalanceResponse, type RedeemGiftCardBody, type RedeemGiftCardContent, type RedeemGiftCardPathParams, type RedeemGiftCardResponse, type RedeemLoyaltyPointsBody, type RedeemLoyaltyPointsContent, type RedeemLoyaltyPointsPathParams, type RedeemLoyaltyPointsResponse, type RefreshTokenBody, type RefreshTokenContent, type RefreshTokenResponse, type RegisterWithEmailBody, type RegisterWithEmailContent, type RegisterWithEmailResponse, type RegisterWithPasswordBody, type RegisterWithPasswordContent, type RegisterWithPasswordResponse, type RegisterWithPhoneBody, type RegisterWithPhoneContent, type RegisterWithPhoneResponse, type RegisterWithWhatsappBody, type RegisterWithWhatsappContent, type RegisterWithWhatsappResponse, type RemoveCouponContent, type RemoveCouponPathParams, type RemoveCouponResponse, type RemoveCreditBalanceContent, type RemoveCreditBalancePathParams, type RemoveCreditBalanceResponse, type RemoveGiftCardContent, type RemoveGiftCardPathParams, type RemoveGiftCardResponse, type RemoveLoyaltyPointsContent, type RemoveLoyaltyPointsPathParams, type RemoveLoyaltyPointsResponse, type RemoveProfileImagePathParams, type RemoveProfileImageResponse, type ResetPasswordBody, type ResetPasswordContent, type ResetPasswordResponse, ResponseUtils, type RetryOrderPaymentBody, type RetryOrderPaymentContent, type RetryOrderPaymentPathParams, type RetryOrderPaymentResponse, type SearchProductsBody, type SearchProductsContent, type SearchProductsHeaderParams, type SearchProductsResponse, ShippingClient, StorefrontAPIClient, StorefrontSDK, type StorefrontSDKOptions, type SubscribeNewsletterBody, type SubscribeNewsletterResponse, type SupportedDefaultHeaders, type TokenStorage, type TrackAnalyticsEventBody, type TrackAnalyticsEventResponse, type UpdateAddressDetailBody, type UpdateAddressDetailContent, type UpdateAddressDetailPathParams, type UpdateAddressDetailResponse, type UpdateCartBody, type UpdateCartContent, type UpdateCartPathParams, type UpdateCartResponse, type UpdateCustomerBody, type UpdateCustomerContent, type UpdateCustomerPathParams, type UpdateCustomerResponse, type UpdateDocumentContent, type UpdateDocumentFormData, type UpdateDocumentPathParams, type UpdateDocumentResponse, type UpdateNotificationPreferencesBody, type UpdateNotificationPreferencesContent, type UpdateNotificationPreferencesPathParams, type UpdateNotificationPreferencesResponse, type UpdateProfileImageContent, type UpdateProfileImageFormData, type UpdateProfileImagePathParams, type UpdateProfileImageResponse, type UpdateShippingMethodBody, type UpdateShippingMethodContent, type UpdateShippingMethodPathParams, type UpdateShippingMethodResponse, type UpdateSubscriptionBody, type UpdateSubscriptionContent, type UpdateSubscriptionPathParams, type UpdateSubscriptionResponse, type UpdateUserBody, type UpdateUserContent, type UpdateUserPathParams, type UpdateUserResponse, type UserInfo, type VerifyDocumentBody, type VerifyDocumentContent, type VerifyDocumentPathParams, type VerifyDocumentResponse, type VerifyOtpBody, type VerifyOtpContent, type VerifyOtpResponse, type VerifyVpaContent, type VerifyVpaQuery, type VerifyVpaResponse, type components, StorefrontSDK as default, type operations, type paths };