@commercengine/storefront-sdk 0.5.0 → 0.6.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.
- package/README.md +16 -3
- package/dist/index.cjs +111 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +48 -9
- package/dist/index.d.ts +48 -9
- package/dist/index.iife.js +116 -17
- package/dist/index.iife.js.map +1 -1
- package/dist/index.js +117 -17
- package/dist/index.js.map +1 -1
- package/package.json +2 -5
package/dist/index.d.cts
CHANGED
|
@@ -11052,14 +11052,6 @@ declare class CartClient extends StorefrontAPIClient {
|
|
|
11052
11052
|
* @returns Promise with evaluated coupons
|
|
11053
11053
|
*/
|
|
11054
11054
|
evaluateCoupons(cartId: EvaluateCouponsPathParams): Promise<ApiResult<EvaluateCouponsContent>>;
|
|
11055
|
-
/**
|
|
11056
|
-
* Update cart customer
|
|
11057
|
-
*
|
|
11058
|
-
* @param cartId - The ID of the cart
|
|
11059
|
-
* @param body - The body of the request
|
|
11060
|
-
* @returns Promise with updated cart
|
|
11061
|
-
*/
|
|
11062
|
-
updateCartCustomer(cartId: UpdateCartCustomerPathParams, body: UpdateCartCustomerBody): Promise<ApiResult<UpdateCartCustomerContent>>;
|
|
11063
11055
|
}
|
|
11064
11056
|
|
|
11065
11057
|
/**
|
|
@@ -11541,6 +11533,53 @@ interface CookieTokenStorageOptions {
|
|
|
11541
11533
|
*/
|
|
11542
11534
|
sameSite?: "Strict" | "Lax" | "None";
|
|
11543
11535
|
}
|
|
11536
|
+
/**
|
|
11537
|
+
* Configuration options for NextJSTokenStorage
|
|
11538
|
+
*/
|
|
11539
|
+
interface NextJSTokenStorageOptions {
|
|
11540
|
+
/**
|
|
11541
|
+
* Prefix for cookie names (default: "storefront_")
|
|
11542
|
+
*/
|
|
11543
|
+
prefix?: string;
|
|
11544
|
+
/**
|
|
11545
|
+
* Maximum age of cookies in seconds (default: 30 days)
|
|
11546
|
+
*/
|
|
11547
|
+
maxAge?: number;
|
|
11548
|
+
/**
|
|
11549
|
+
* Cookie path (default: "/")
|
|
11550
|
+
*/
|
|
11551
|
+
path?: string;
|
|
11552
|
+
/**
|
|
11553
|
+
* Cookie domain (default: current domain)
|
|
11554
|
+
*/
|
|
11555
|
+
domain?: string;
|
|
11556
|
+
/**
|
|
11557
|
+
* Whether cookies should be secure (default: auto-detect based on protocol)
|
|
11558
|
+
*/
|
|
11559
|
+
secure?: boolean;
|
|
11560
|
+
/**
|
|
11561
|
+
* SameSite cookie attribute (default: "Lax")
|
|
11562
|
+
*/
|
|
11563
|
+
sameSite?: "Strict" | "Lax" | "None";
|
|
11564
|
+
}
|
|
11565
|
+
/**
|
|
11566
|
+
* Universal token storage for Next.js applications that works on both client and server
|
|
11567
|
+
* Uses cookies for persistent storage accessible in both environments
|
|
11568
|
+
*/
|
|
11569
|
+
declare class NextJSTokenStorage implements TokenStorage {
|
|
11570
|
+
private accessTokenKey;
|
|
11571
|
+
private refreshTokenKey;
|
|
11572
|
+
private options;
|
|
11573
|
+
constructor(options?: NextJSTokenStorageOptions);
|
|
11574
|
+
getAccessToken(): Promise<string | null>;
|
|
11575
|
+
setAccessToken(token: string): Promise<void>;
|
|
11576
|
+
getRefreshToken(): Promise<string | null>;
|
|
11577
|
+
setRefreshToken(token: string): Promise<void>;
|
|
11578
|
+
clearTokens(): Promise<void>;
|
|
11579
|
+
private getCookie;
|
|
11580
|
+
private setCookie;
|
|
11581
|
+
private deleteCookie;
|
|
11582
|
+
}
|
|
11544
11583
|
|
|
11545
11584
|
/**
|
|
11546
11585
|
* User information extracted from JWT token
|
|
@@ -11818,4 +11857,4 @@ declare class StorefrontSDK {
|
|
|
11818
11857
|
getDefaultHeaders(): SupportedDefaultHeaders | undefined;
|
|
11819
11858
|
}
|
|
11820
11859
|
|
|
11821
|
-
export { type AcceleratedRewardCouponPromotion, type AcceleratedRewardRule, type AddCardBody, type AddCardContent, type AddCardResponse, type AddProfileImageContent, type AddProfileImageFormData, type AddProfileImagePathParams, type AddProfileImageResponse, type AddToWishlistBody, type AddToWishlistContent, type AddToWishlistPathParams, type AddToWishlistResponse, type AdditionalProductDetails, type AnalyticsEvent, type AnonymousUser, type ApiErrorResponse, type ApiResult, type AppliedCoupon, type AppliedPromotion, type ApplyCouponBody, type ApplyCouponContent, type ApplyCouponPathParams, type ApplyCouponResponse, type AssociatedOption, AuthClient, type AutoScaleBasedOnAmount, type AutoScaleBasedOnQuantity, type BankTransfer, type BooleanAttribute, type Brand, BrowserTokenStorage, type Business, type BuyXGetYCouponPromotion, type BuyXGetYRule, type BuyXGetYRuleBasedOnAmount, type BuyXGetYRuleBasedOnQuantity, type CancelOrderBody, type CancelOrderContent, type CancelOrderPathParams, type CancelOrderResponse, type CardPayment, type Cart, type CartBasedServiceabilityCheck, CartClient, type CartItem, CatalogClient, type Category, type ChangePasswordBody, type ChangePasswordContent, type ChangePasswordResponse, type CheckPincodeServiceabilityContent, type CheckPincodeServiceabilityPathParams, type CheckPincodeServiceabilityResponse, type CheckVerificationStatusBody, type CheckVerificationStatusContent, type CheckVerificationStatusResponse, type ColorAttribute, type ColorOption, CookieTokenStorage, type CookieTokenStorageOptions, type Country, type CountryState, type Coupon, type CouponPromotionCommonDetail, type CreateAddressBody, type CreateAddressContent, type CreateAddressPathParams, type CreateAddressResponse, type CreateCartAddressBody, type CreateCartAddressContent, type CreateCartAddressPathParams, type CreateCartAddressResponse, type CreateCartBody, type CreateCartContent, type CreateCartResponse, type CreateCustomSubscription, type CreateCustomer, 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 CreateOrderReturn, type CreateOrderReturnBody, type CreateOrderReturnContent, type CreateOrderReturnPathParams, type CreateOrderReturnResponse, type CreatePosCartBody, type CreatePosCartContent, type CreatePosCartResponse, type CreateProductReviewFormData, type CreateProductReviewPathParams, type CreateProductReviewResponse, type CreateReview, type CreateStandardSubscription, type CreateSubscription, type CreateSubscriptionBody, type CreateSubscriptionContent, type CreateSubscriptionResponse, type Currency, type CustomSlabsBasedOnAmount, type CustomSlabsBasedOnQuantity, type CustomerAddress, CustomerClient, type CustomerDetail, type CustomerGroup, type CustomerLoyalty, type CustomerReadyForReview, type CustomerReview, type DateAttribute, 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, type DiscountBasedPromotion, type DiscountCouponPromotion, type DiscountRule, type Document, Environment, type EvaluateCouponsContent, type EvaluateCouponsPathParams, type EvaluateCouponsResponse, type EvaluatePosCouponsContent, type EvaluatePosCouponsPathParams, type EvaluatePosCouponsResponse, type EvaluatePosPromotionsContent, type EvaluatePosPromotionsPathParams, type EvaluatePosPromotionsResponse, type EvaluatePromotionsContent, type EvaluatePromotionsPathParams, type EvaluatePromotionsResponse, type FixedAmountDiscountRule, type FixedPriceCouponPromotion, type FixedPricePromotion, type FixedPriceRule, type FixedPriceRuleBasedAmount, type FixedPriceRuleBasedQuantity, type ForgotPasswordBody, type ForgotPasswordContent, type ForgotPasswordResponse, type FreeGoodCouponPromotion, type FreeGoodsPromotion, type FreeGoodsRule, type FreeShipingCouponPromotion, type GenerateHashBody, type GenerateHashContent, type GenerateHashResponse, type GenerateOtpBody, type GenerateOtpContent, type GenerateOtpResponse, type GenerateOtpWithEmail, type GenerateOtpWithPhone, 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 GetPosCartContent, type GetPosCartPathParams, type GetPosCartResponse, 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, type GstinDetail, HelpersClient, type Item, type JuspayCardPayload, type JuspayCreateCardResponse, type JuspayCreateCustomerPayload, type JuspayCreateOrderPayload, type JuspayCustomer, type JuspayOrder, type JuspayPaymentGatewayParams, type JuspayPaymentInfo, type JuspayPaymentMethod, type JuspaySavedCard, type KycDocument, type KycDocumentConfig, 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 LoginPosDeviceWithEmailBody, type LoginPosDeviceWithEmailContent, type LoginPosDeviceWithEmailResponse, type LoginPosDeviceWithPhoneBody, type LoginPosDeviceWithPhoneContent, type LoginPosDeviceWithPhoneResponse, type LoginPosDeviceWithWhatsappBody, type LoginPosDeviceWithWhatsappContent, type LoginPosDeviceWithWhatsappResponse, 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, type LoyaltyPointActivity, type MeasurementUnit, MemoryTokenStorage, type MultiSelectAttribute, type NetbankingPayment, type NotificationChannelPreferences, type NotificationPreferences, type NumberAttribute, type Order, OrderClient, type OrderDetail, type OrderItem, type OrderList, type OrderPayment, type OrderRefund, type OrderReturn, type OrderReturnItem, type OrderShipment, type Pagination, type PairPosDeviceBody, type PairPosDeviceContent, type PairPosDeviceResponse, type PanDetail, type PauseSubscription, type PaymentInfo, type PayuCardPayload, type PayuCreateCardResponse, type PayuPaymentGatewayParams, type PayuPaymentInfo, type PayuPaymentMethod, type PayuSavedCard, type PercentageDiscountRule, type Pincode, type PincodeServiceability, type PosDevice, type PosUpdateCustomerWithEmail, type PosUpdateCustomerWithId, type PosUpdateCustomerWithPhone, type PosUser, type Product, type ProductAttribute, type ProductBundleItem, type ProductCategory, type ProductDetail, type ProductImage, type ProductPricing, type ProductPromotion, type ProductReview, type ProductShipping, type ProductSubscription, type ProductVideo, type Promotion, 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 RefreshPosAccessTokenBody, type RefreshPosAccessTokenContent, type RefreshPosAccessTokenResponse, type RefreshTokenBody, type RefreshTokenContent, type RefreshTokenResponse, type RegisterWithEmailBody, type RegisterWithEmailContent, type RegisterWithEmailPassword, type RegisterWithEmailResponse, type RegisterWithPasswordBody, type RegisterWithPasswordContent, type RegisterWithPasswordResponse, type RegisterWithPhoneBody, type RegisterWithPhoneContent, type RegisterWithPhonePassword, 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 RevokeSubscription, type SearchProduct, type SearchProductsBody, type SearchProductsContent, type SearchProductsHeaderParams, type SearchProductsResponse, type Seo, type ShipmentItem, ShippingClient, type SingleSelectAttribute, type SingleSelectOption, type StoreConfig, StoreConfigClient, type StoreTemplate, StorefrontAPIClient, StorefrontSDK, type StorefrontSDKOptions, type SubscribeNewsletterBody, type SubscribeNewsletterResponse, type Subscription, type SubscriptionBehaviour, type SubscriptionDetail, type SubscriptionInvoiceItem, type SupportedDefaultHeaders, type TextAttribute, type TokenStorage, type TrackAnalyticsEventBody, type TrackAnalyticsEventResponse, type UpdateAddressDetailBody, type UpdateAddressDetailContent, type UpdateAddressDetailPathParams, type UpdateAddressDetailResponse, type UpdateCartBody, type UpdateCartContent, type UpdateCartCustomerBody, type UpdateCartCustomerContent, type UpdateCartCustomerPathParams, type UpdateCartCustomerResponse, type UpdateCartItem, type UpdateCartPathParams, type UpdateCartResponse, type UpdateCustomer, type UpdateCustomerBody, type UpdateCustomerContent, type UpdateCustomerPathParams, type UpdateCustomerResponse, type UpdateDigitalProductSubscription, type UpdateDocument, type UpdateDocumentContent, type UpdateDocumentFormData, type UpdateDocumentPathParams, type UpdateDocumentResponse, type UpdateNotificationPreferencesBody, type UpdateNotificationPreferencesContent, type UpdateNotificationPreferencesPathParams, type UpdateNotificationPreferencesResponse, type UpdatePhysicalProductSubscription, type UpdatePosCartAddressBody, type UpdatePosCartAddressContent, type UpdatePosCartAddressPathParams, type UpdatePosCartAddressResponse, type UpdatePosCartBody, type UpdatePosCartContent, type UpdatePosCartCustomerBody, type UpdatePosCartCustomerContent, type UpdatePosCartCustomerPathParams, type UpdatePosCartCustomerResponse, type UpdatePosCartPathParams, type UpdatePosCartResponse, 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 UpiPayment, type User, type UserInfo, type Variant, type VariantDetail, type VariantOption, type VerifyDocumentBody, type VerifyDocumentContent, type VerifyDocumentPathParams, type VerifyDocumentResponse, type VerifyOtpBody, type VerifyOtpContent, type VerifyOtpResponse, type VerifyPosLoginOtpBody, type VerifyPosLoginOtpContent, type VerifyPosLoginOtpResponse, type VerifyVpaContent, type VerifyVpaQuery, type VerifyVpaResponse, type VolumeBasedCouponPromotion, type VolumeBasedPromotion, type VolumeBasedRule, type WalletPayment, type components, StorefrontSDK as default, type operations, type paths };
|
|
11860
|
+
export { type AcceleratedRewardCouponPromotion, type AcceleratedRewardRule, type AddCardBody, type AddCardContent, type AddCardResponse, type AddProfileImageContent, type AddProfileImageFormData, type AddProfileImagePathParams, type AddProfileImageResponse, type AddToWishlistBody, type AddToWishlistContent, type AddToWishlistPathParams, type AddToWishlistResponse, type AdditionalProductDetails, type AnalyticsEvent, type AnonymousUser, type ApiErrorResponse, type ApiResult, type AppliedCoupon, type AppliedPromotion, type ApplyCouponBody, type ApplyCouponContent, type ApplyCouponPathParams, type ApplyCouponResponse, type AssociatedOption, AuthClient, type AutoScaleBasedOnAmount, type AutoScaleBasedOnQuantity, type BankTransfer, type BooleanAttribute, type Brand, BrowserTokenStorage, type Business, type BuyXGetYCouponPromotion, type BuyXGetYRule, type BuyXGetYRuleBasedOnAmount, type BuyXGetYRuleBasedOnQuantity, type CancelOrderBody, type CancelOrderContent, type CancelOrderPathParams, type CancelOrderResponse, type CardPayment, type Cart, type CartBasedServiceabilityCheck, CartClient, type CartItem, CatalogClient, type Category, type ChangePasswordBody, type ChangePasswordContent, type ChangePasswordResponse, type CheckPincodeServiceabilityContent, type CheckPincodeServiceabilityPathParams, type CheckPincodeServiceabilityResponse, type CheckVerificationStatusBody, type CheckVerificationStatusContent, type CheckVerificationStatusResponse, type ColorAttribute, type ColorOption, CookieTokenStorage, type CookieTokenStorageOptions, type Country, type CountryState, type Coupon, type CouponPromotionCommonDetail, type CreateAddressBody, type CreateAddressContent, type CreateAddressPathParams, type CreateAddressResponse, type CreateCartAddressBody, type CreateCartAddressContent, type CreateCartAddressPathParams, type CreateCartAddressResponse, type CreateCartBody, type CreateCartContent, type CreateCartResponse, type CreateCustomSubscription, type CreateCustomer, 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 CreateOrderReturn, type CreateOrderReturnBody, type CreateOrderReturnContent, type CreateOrderReturnPathParams, type CreateOrderReturnResponse, type CreatePosCartBody, type CreatePosCartContent, type CreatePosCartResponse, type CreateProductReviewFormData, type CreateProductReviewPathParams, type CreateProductReviewResponse, type CreateReview, type CreateStandardSubscription, type CreateSubscription, type CreateSubscriptionBody, type CreateSubscriptionContent, type CreateSubscriptionResponse, type Currency, type CustomSlabsBasedOnAmount, type CustomSlabsBasedOnQuantity, type CustomerAddress, CustomerClient, type CustomerDetail, type CustomerGroup, type CustomerLoyalty, type CustomerReadyForReview, type CustomerReview, type DateAttribute, 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, type DiscountBasedPromotion, type DiscountCouponPromotion, type DiscountRule, type Document, Environment, type EvaluateCouponsContent, type EvaluateCouponsPathParams, type EvaluateCouponsResponse, type EvaluatePosCouponsContent, type EvaluatePosCouponsPathParams, type EvaluatePosCouponsResponse, type EvaluatePosPromotionsContent, type EvaluatePosPromotionsPathParams, type EvaluatePosPromotionsResponse, type EvaluatePromotionsContent, type EvaluatePromotionsPathParams, type EvaluatePromotionsResponse, type FixedAmountDiscountRule, type FixedPriceCouponPromotion, type FixedPricePromotion, type FixedPriceRule, type FixedPriceRuleBasedAmount, type FixedPriceRuleBasedQuantity, type ForgotPasswordBody, type ForgotPasswordContent, type ForgotPasswordResponse, type FreeGoodCouponPromotion, type FreeGoodsPromotion, type FreeGoodsRule, type FreeShipingCouponPromotion, type GenerateHashBody, type GenerateHashContent, type GenerateHashResponse, type GenerateOtpBody, type GenerateOtpContent, type GenerateOtpResponse, type GenerateOtpWithEmail, type GenerateOtpWithPhone, 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 GetPosCartContent, type GetPosCartPathParams, type GetPosCartResponse, 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, type GstinDetail, HelpersClient, type Item, type JuspayCardPayload, type JuspayCreateCardResponse, type JuspayCreateCustomerPayload, type JuspayCreateOrderPayload, type JuspayCustomer, type JuspayOrder, type JuspayPaymentGatewayParams, type JuspayPaymentInfo, type JuspayPaymentMethod, type JuspaySavedCard, type KycDocument, type KycDocumentConfig, 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 LoginPosDeviceWithEmailBody, type LoginPosDeviceWithEmailContent, type LoginPosDeviceWithEmailResponse, type LoginPosDeviceWithPhoneBody, type LoginPosDeviceWithPhoneContent, type LoginPosDeviceWithPhoneResponse, type LoginPosDeviceWithWhatsappBody, type LoginPosDeviceWithWhatsappContent, type LoginPosDeviceWithWhatsappResponse, 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, type LoyaltyPointActivity, type MeasurementUnit, MemoryTokenStorage, type MultiSelectAttribute, type NetbankingPayment, NextJSTokenStorage, type NextJSTokenStorageOptions, type NotificationChannelPreferences, type NotificationPreferences, type NumberAttribute, type Order, OrderClient, type OrderDetail, type OrderItem, type OrderList, type OrderPayment, type OrderRefund, type OrderReturn, type OrderReturnItem, type OrderShipment, type Pagination, type PairPosDeviceBody, type PairPosDeviceContent, type PairPosDeviceResponse, type PanDetail, type PauseSubscription, type PaymentInfo, type PayuCardPayload, type PayuCreateCardResponse, type PayuPaymentGatewayParams, type PayuPaymentInfo, type PayuPaymentMethod, type PayuSavedCard, type PercentageDiscountRule, type Pincode, type PincodeServiceability, type PosDevice, type PosUpdateCustomerWithEmail, type PosUpdateCustomerWithId, type PosUpdateCustomerWithPhone, type PosUser, type Product, type ProductAttribute, type ProductBundleItem, type ProductCategory, type ProductDetail, type ProductImage, type ProductPricing, type ProductPromotion, type ProductReview, type ProductShipping, type ProductSubscription, type ProductVideo, type Promotion, 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 RefreshPosAccessTokenBody, type RefreshPosAccessTokenContent, type RefreshPosAccessTokenResponse, type RefreshTokenBody, type RefreshTokenContent, type RefreshTokenResponse, type RegisterWithEmailBody, type RegisterWithEmailContent, type RegisterWithEmailPassword, type RegisterWithEmailResponse, type RegisterWithPasswordBody, type RegisterWithPasswordContent, type RegisterWithPasswordResponse, type RegisterWithPhoneBody, type RegisterWithPhoneContent, type RegisterWithPhonePassword, 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 RevokeSubscription, type SearchProduct, type SearchProductsBody, type SearchProductsContent, type SearchProductsHeaderParams, type SearchProductsResponse, type Seo, type ShipmentItem, ShippingClient, type SingleSelectAttribute, type SingleSelectOption, type StoreConfig, StoreConfigClient, type StoreTemplate, StorefrontAPIClient, StorefrontSDK, type StorefrontSDKOptions, type SubscribeNewsletterBody, type SubscribeNewsletterResponse, type Subscription, type SubscriptionBehaviour, type SubscriptionDetail, type SubscriptionInvoiceItem, type SupportedDefaultHeaders, type TextAttribute, type TokenStorage, type TrackAnalyticsEventBody, type TrackAnalyticsEventResponse, type UpdateAddressDetailBody, type UpdateAddressDetailContent, type UpdateAddressDetailPathParams, type UpdateAddressDetailResponse, type UpdateCartBody, type UpdateCartContent, type UpdateCartCustomerBody, type UpdateCartCustomerContent, type UpdateCartCustomerPathParams, type UpdateCartCustomerResponse, type UpdateCartItem, type UpdateCartPathParams, type UpdateCartResponse, type UpdateCustomer, type UpdateCustomerBody, type UpdateCustomerContent, type UpdateCustomerPathParams, type UpdateCustomerResponse, type UpdateDigitalProductSubscription, type UpdateDocument, type UpdateDocumentContent, type UpdateDocumentFormData, type UpdateDocumentPathParams, type UpdateDocumentResponse, type UpdateNotificationPreferencesBody, type UpdateNotificationPreferencesContent, type UpdateNotificationPreferencesPathParams, type UpdateNotificationPreferencesResponse, type UpdatePhysicalProductSubscription, type UpdatePosCartAddressBody, type UpdatePosCartAddressContent, type UpdatePosCartAddressPathParams, type UpdatePosCartAddressResponse, type UpdatePosCartBody, type UpdatePosCartContent, type UpdatePosCartCustomerBody, type UpdatePosCartCustomerContent, type UpdatePosCartCustomerPathParams, type UpdatePosCartCustomerResponse, type UpdatePosCartPathParams, type UpdatePosCartResponse, 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 UpiPayment, type User, type UserInfo, type Variant, type VariantDetail, type VariantOption, type VerifyDocumentBody, type VerifyDocumentContent, type VerifyDocumentPathParams, type VerifyDocumentResponse, type VerifyOtpBody, type VerifyOtpContent, type VerifyOtpResponse, type VerifyPosLoginOtpBody, type VerifyPosLoginOtpContent, type VerifyPosLoginOtpResponse, type VerifyVpaContent, type VerifyVpaQuery, type VerifyVpaResponse, type VolumeBasedCouponPromotion, type VolumeBasedPromotion, type VolumeBasedRule, type WalletPayment, type components, StorefrontSDK as default, type operations, type paths };
|
package/dist/index.d.ts
CHANGED
|
@@ -11052,14 +11052,6 @@ declare class CartClient extends StorefrontAPIClient {
|
|
|
11052
11052
|
* @returns Promise with evaluated coupons
|
|
11053
11053
|
*/
|
|
11054
11054
|
evaluateCoupons(cartId: EvaluateCouponsPathParams): Promise<ApiResult<EvaluateCouponsContent>>;
|
|
11055
|
-
/**
|
|
11056
|
-
* Update cart customer
|
|
11057
|
-
*
|
|
11058
|
-
* @param cartId - The ID of the cart
|
|
11059
|
-
* @param body - The body of the request
|
|
11060
|
-
* @returns Promise with updated cart
|
|
11061
|
-
*/
|
|
11062
|
-
updateCartCustomer(cartId: UpdateCartCustomerPathParams, body: UpdateCartCustomerBody): Promise<ApiResult<UpdateCartCustomerContent>>;
|
|
11063
11055
|
}
|
|
11064
11056
|
|
|
11065
11057
|
/**
|
|
@@ -11541,6 +11533,53 @@ interface CookieTokenStorageOptions {
|
|
|
11541
11533
|
*/
|
|
11542
11534
|
sameSite?: "Strict" | "Lax" | "None";
|
|
11543
11535
|
}
|
|
11536
|
+
/**
|
|
11537
|
+
* Configuration options for NextJSTokenStorage
|
|
11538
|
+
*/
|
|
11539
|
+
interface NextJSTokenStorageOptions {
|
|
11540
|
+
/**
|
|
11541
|
+
* Prefix for cookie names (default: "storefront_")
|
|
11542
|
+
*/
|
|
11543
|
+
prefix?: string;
|
|
11544
|
+
/**
|
|
11545
|
+
* Maximum age of cookies in seconds (default: 30 days)
|
|
11546
|
+
*/
|
|
11547
|
+
maxAge?: number;
|
|
11548
|
+
/**
|
|
11549
|
+
* Cookie path (default: "/")
|
|
11550
|
+
*/
|
|
11551
|
+
path?: string;
|
|
11552
|
+
/**
|
|
11553
|
+
* Cookie domain (default: current domain)
|
|
11554
|
+
*/
|
|
11555
|
+
domain?: string;
|
|
11556
|
+
/**
|
|
11557
|
+
* Whether cookies should be secure (default: auto-detect based on protocol)
|
|
11558
|
+
*/
|
|
11559
|
+
secure?: boolean;
|
|
11560
|
+
/**
|
|
11561
|
+
* SameSite cookie attribute (default: "Lax")
|
|
11562
|
+
*/
|
|
11563
|
+
sameSite?: "Strict" | "Lax" | "None";
|
|
11564
|
+
}
|
|
11565
|
+
/**
|
|
11566
|
+
* Universal token storage for Next.js applications that works on both client and server
|
|
11567
|
+
* Uses cookies for persistent storage accessible in both environments
|
|
11568
|
+
*/
|
|
11569
|
+
declare class NextJSTokenStorage implements TokenStorage {
|
|
11570
|
+
private accessTokenKey;
|
|
11571
|
+
private refreshTokenKey;
|
|
11572
|
+
private options;
|
|
11573
|
+
constructor(options?: NextJSTokenStorageOptions);
|
|
11574
|
+
getAccessToken(): Promise<string | null>;
|
|
11575
|
+
setAccessToken(token: string): Promise<void>;
|
|
11576
|
+
getRefreshToken(): Promise<string | null>;
|
|
11577
|
+
setRefreshToken(token: string): Promise<void>;
|
|
11578
|
+
clearTokens(): Promise<void>;
|
|
11579
|
+
private getCookie;
|
|
11580
|
+
private setCookie;
|
|
11581
|
+
private deleteCookie;
|
|
11582
|
+
}
|
|
11544
11583
|
|
|
11545
11584
|
/**
|
|
11546
11585
|
* User information extracted from JWT token
|
|
@@ -11818,4 +11857,4 @@ declare class StorefrontSDK {
|
|
|
11818
11857
|
getDefaultHeaders(): SupportedDefaultHeaders | undefined;
|
|
11819
11858
|
}
|
|
11820
11859
|
|
|
11821
|
-
export { type AcceleratedRewardCouponPromotion, type AcceleratedRewardRule, type AddCardBody, type AddCardContent, type AddCardResponse, type AddProfileImageContent, type AddProfileImageFormData, type AddProfileImagePathParams, type AddProfileImageResponse, type AddToWishlistBody, type AddToWishlistContent, type AddToWishlistPathParams, type AddToWishlistResponse, type AdditionalProductDetails, type AnalyticsEvent, type AnonymousUser, type ApiErrorResponse, type ApiResult, type AppliedCoupon, type AppliedPromotion, type ApplyCouponBody, type ApplyCouponContent, type ApplyCouponPathParams, type ApplyCouponResponse, type AssociatedOption, AuthClient, type AutoScaleBasedOnAmount, type AutoScaleBasedOnQuantity, type BankTransfer, type BooleanAttribute, type Brand, BrowserTokenStorage, type Business, type BuyXGetYCouponPromotion, type BuyXGetYRule, type BuyXGetYRuleBasedOnAmount, type BuyXGetYRuleBasedOnQuantity, type CancelOrderBody, type CancelOrderContent, type CancelOrderPathParams, type CancelOrderResponse, type CardPayment, type Cart, type CartBasedServiceabilityCheck, CartClient, type CartItem, CatalogClient, type Category, type ChangePasswordBody, type ChangePasswordContent, type ChangePasswordResponse, type CheckPincodeServiceabilityContent, type CheckPincodeServiceabilityPathParams, type CheckPincodeServiceabilityResponse, type CheckVerificationStatusBody, type CheckVerificationStatusContent, type CheckVerificationStatusResponse, type ColorAttribute, type ColorOption, CookieTokenStorage, type CookieTokenStorageOptions, type Country, type CountryState, type Coupon, type CouponPromotionCommonDetail, type CreateAddressBody, type CreateAddressContent, type CreateAddressPathParams, type CreateAddressResponse, type CreateCartAddressBody, type CreateCartAddressContent, type CreateCartAddressPathParams, type CreateCartAddressResponse, type CreateCartBody, type CreateCartContent, type CreateCartResponse, type CreateCustomSubscription, type CreateCustomer, 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 CreateOrderReturn, type CreateOrderReturnBody, type CreateOrderReturnContent, type CreateOrderReturnPathParams, type CreateOrderReturnResponse, type CreatePosCartBody, type CreatePosCartContent, type CreatePosCartResponse, type CreateProductReviewFormData, type CreateProductReviewPathParams, type CreateProductReviewResponse, type CreateReview, type CreateStandardSubscription, type CreateSubscription, type CreateSubscriptionBody, type CreateSubscriptionContent, type CreateSubscriptionResponse, type Currency, type CustomSlabsBasedOnAmount, type CustomSlabsBasedOnQuantity, type CustomerAddress, CustomerClient, type CustomerDetail, type CustomerGroup, type CustomerLoyalty, type CustomerReadyForReview, type CustomerReview, type DateAttribute, 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, type DiscountBasedPromotion, type DiscountCouponPromotion, type DiscountRule, type Document, Environment, type EvaluateCouponsContent, type EvaluateCouponsPathParams, type EvaluateCouponsResponse, type EvaluatePosCouponsContent, type EvaluatePosCouponsPathParams, type EvaluatePosCouponsResponse, type EvaluatePosPromotionsContent, type EvaluatePosPromotionsPathParams, type EvaluatePosPromotionsResponse, type EvaluatePromotionsContent, type EvaluatePromotionsPathParams, type EvaluatePromotionsResponse, type FixedAmountDiscountRule, type FixedPriceCouponPromotion, type FixedPricePromotion, type FixedPriceRule, type FixedPriceRuleBasedAmount, type FixedPriceRuleBasedQuantity, type ForgotPasswordBody, type ForgotPasswordContent, type ForgotPasswordResponse, type FreeGoodCouponPromotion, type FreeGoodsPromotion, type FreeGoodsRule, type FreeShipingCouponPromotion, type GenerateHashBody, type GenerateHashContent, type GenerateHashResponse, type GenerateOtpBody, type GenerateOtpContent, type GenerateOtpResponse, type GenerateOtpWithEmail, type GenerateOtpWithPhone, 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 GetPosCartContent, type GetPosCartPathParams, type GetPosCartResponse, 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, type GstinDetail, HelpersClient, type Item, type JuspayCardPayload, type JuspayCreateCardResponse, type JuspayCreateCustomerPayload, type JuspayCreateOrderPayload, type JuspayCustomer, type JuspayOrder, type JuspayPaymentGatewayParams, type JuspayPaymentInfo, type JuspayPaymentMethod, type JuspaySavedCard, type KycDocument, type KycDocumentConfig, 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 LoginPosDeviceWithEmailBody, type LoginPosDeviceWithEmailContent, type LoginPosDeviceWithEmailResponse, type LoginPosDeviceWithPhoneBody, type LoginPosDeviceWithPhoneContent, type LoginPosDeviceWithPhoneResponse, type LoginPosDeviceWithWhatsappBody, type LoginPosDeviceWithWhatsappContent, type LoginPosDeviceWithWhatsappResponse, 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, type LoyaltyPointActivity, type MeasurementUnit, MemoryTokenStorage, type MultiSelectAttribute, type NetbankingPayment, type NotificationChannelPreferences, type NotificationPreferences, type NumberAttribute, type Order, OrderClient, type OrderDetail, type OrderItem, type OrderList, type OrderPayment, type OrderRefund, type OrderReturn, type OrderReturnItem, type OrderShipment, type Pagination, type PairPosDeviceBody, type PairPosDeviceContent, type PairPosDeviceResponse, type PanDetail, type PauseSubscription, type PaymentInfo, type PayuCardPayload, type PayuCreateCardResponse, type PayuPaymentGatewayParams, type PayuPaymentInfo, type PayuPaymentMethod, type PayuSavedCard, type PercentageDiscountRule, type Pincode, type PincodeServiceability, type PosDevice, type PosUpdateCustomerWithEmail, type PosUpdateCustomerWithId, type PosUpdateCustomerWithPhone, type PosUser, type Product, type ProductAttribute, type ProductBundleItem, type ProductCategory, type ProductDetail, type ProductImage, type ProductPricing, type ProductPromotion, type ProductReview, type ProductShipping, type ProductSubscription, type ProductVideo, type Promotion, 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 RefreshPosAccessTokenBody, type RefreshPosAccessTokenContent, type RefreshPosAccessTokenResponse, type RefreshTokenBody, type RefreshTokenContent, type RefreshTokenResponse, type RegisterWithEmailBody, type RegisterWithEmailContent, type RegisterWithEmailPassword, type RegisterWithEmailResponse, type RegisterWithPasswordBody, type RegisterWithPasswordContent, type RegisterWithPasswordResponse, type RegisterWithPhoneBody, type RegisterWithPhoneContent, type RegisterWithPhonePassword, 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 RevokeSubscription, type SearchProduct, type SearchProductsBody, type SearchProductsContent, type SearchProductsHeaderParams, type SearchProductsResponse, type Seo, type ShipmentItem, ShippingClient, type SingleSelectAttribute, type SingleSelectOption, type StoreConfig, StoreConfigClient, type StoreTemplate, StorefrontAPIClient, StorefrontSDK, type StorefrontSDKOptions, type SubscribeNewsletterBody, type SubscribeNewsletterResponse, type Subscription, type SubscriptionBehaviour, type SubscriptionDetail, type SubscriptionInvoiceItem, type SupportedDefaultHeaders, type TextAttribute, type TokenStorage, type TrackAnalyticsEventBody, type TrackAnalyticsEventResponse, type UpdateAddressDetailBody, type UpdateAddressDetailContent, type UpdateAddressDetailPathParams, type UpdateAddressDetailResponse, type UpdateCartBody, type UpdateCartContent, type UpdateCartCustomerBody, type UpdateCartCustomerContent, type UpdateCartCustomerPathParams, type UpdateCartCustomerResponse, type UpdateCartItem, type UpdateCartPathParams, type UpdateCartResponse, type UpdateCustomer, type UpdateCustomerBody, type UpdateCustomerContent, type UpdateCustomerPathParams, type UpdateCustomerResponse, type UpdateDigitalProductSubscription, type UpdateDocument, type UpdateDocumentContent, type UpdateDocumentFormData, type UpdateDocumentPathParams, type UpdateDocumentResponse, type UpdateNotificationPreferencesBody, type UpdateNotificationPreferencesContent, type UpdateNotificationPreferencesPathParams, type UpdateNotificationPreferencesResponse, type UpdatePhysicalProductSubscription, type UpdatePosCartAddressBody, type UpdatePosCartAddressContent, type UpdatePosCartAddressPathParams, type UpdatePosCartAddressResponse, type UpdatePosCartBody, type UpdatePosCartContent, type UpdatePosCartCustomerBody, type UpdatePosCartCustomerContent, type UpdatePosCartCustomerPathParams, type UpdatePosCartCustomerResponse, type UpdatePosCartPathParams, type UpdatePosCartResponse, 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 UpiPayment, type User, type UserInfo, type Variant, type VariantDetail, type VariantOption, type VerifyDocumentBody, type VerifyDocumentContent, type VerifyDocumentPathParams, type VerifyDocumentResponse, type VerifyOtpBody, type VerifyOtpContent, type VerifyOtpResponse, type VerifyPosLoginOtpBody, type VerifyPosLoginOtpContent, type VerifyPosLoginOtpResponse, type VerifyVpaContent, type VerifyVpaQuery, type VerifyVpaResponse, type VolumeBasedCouponPromotion, type VolumeBasedPromotion, type VolumeBasedRule, type WalletPayment, type components, StorefrontSDK as default, type operations, type paths };
|
|
11860
|
+
export { type AcceleratedRewardCouponPromotion, type AcceleratedRewardRule, type AddCardBody, type AddCardContent, type AddCardResponse, type AddProfileImageContent, type AddProfileImageFormData, type AddProfileImagePathParams, type AddProfileImageResponse, type AddToWishlistBody, type AddToWishlistContent, type AddToWishlistPathParams, type AddToWishlistResponse, type AdditionalProductDetails, type AnalyticsEvent, type AnonymousUser, type ApiErrorResponse, type ApiResult, type AppliedCoupon, type AppliedPromotion, type ApplyCouponBody, type ApplyCouponContent, type ApplyCouponPathParams, type ApplyCouponResponse, type AssociatedOption, AuthClient, type AutoScaleBasedOnAmount, type AutoScaleBasedOnQuantity, type BankTransfer, type BooleanAttribute, type Brand, BrowserTokenStorage, type Business, type BuyXGetYCouponPromotion, type BuyXGetYRule, type BuyXGetYRuleBasedOnAmount, type BuyXGetYRuleBasedOnQuantity, type CancelOrderBody, type CancelOrderContent, type CancelOrderPathParams, type CancelOrderResponse, type CardPayment, type Cart, type CartBasedServiceabilityCheck, CartClient, type CartItem, CatalogClient, type Category, type ChangePasswordBody, type ChangePasswordContent, type ChangePasswordResponse, type CheckPincodeServiceabilityContent, type CheckPincodeServiceabilityPathParams, type CheckPincodeServiceabilityResponse, type CheckVerificationStatusBody, type CheckVerificationStatusContent, type CheckVerificationStatusResponse, type ColorAttribute, type ColorOption, CookieTokenStorage, type CookieTokenStorageOptions, type Country, type CountryState, type Coupon, type CouponPromotionCommonDetail, type CreateAddressBody, type CreateAddressContent, type CreateAddressPathParams, type CreateAddressResponse, type CreateCartAddressBody, type CreateCartAddressContent, type CreateCartAddressPathParams, type CreateCartAddressResponse, type CreateCartBody, type CreateCartContent, type CreateCartResponse, type CreateCustomSubscription, type CreateCustomer, 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 CreateOrderReturn, type CreateOrderReturnBody, type CreateOrderReturnContent, type CreateOrderReturnPathParams, type CreateOrderReturnResponse, type CreatePosCartBody, type CreatePosCartContent, type CreatePosCartResponse, type CreateProductReviewFormData, type CreateProductReviewPathParams, type CreateProductReviewResponse, type CreateReview, type CreateStandardSubscription, type CreateSubscription, type CreateSubscriptionBody, type CreateSubscriptionContent, type CreateSubscriptionResponse, type Currency, type CustomSlabsBasedOnAmount, type CustomSlabsBasedOnQuantity, type CustomerAddress, CustomerClient, type CustomerDetail, type CustomerGroup, type CustomerLoyalty, type CustomerReadyForReview, type CustomerReview, type DateAttribute, 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, type DiscountBasedPromotion, type DiscountCouponPromotion, type DiscountRule, type Document, Environment, type EvaluateCouponsContent, type EvaluateCouponsPathParams, type EvaluateCouponsResponse, type EvaluatePosCouponsContent, type EvaluatePosCouponsPathParams, type EvaluatePosCouponsResponse, type EvaluatePosPromotionsContent, type EvaluatePosPromotionsPathParams, type EvaluatePosPromotionsResponse, type EvaluatePromotionsContent, type EvaluatePromotionsPathParams, type EvaluatePromotionsResponse, type FixedAmountDiscountRule, type FixedPriceCouponPromotion, type FixedPricePromotion, type FixedPriceRule, type FixedPriceRuleBasedAmount, type FixedPriceRuleBasedQuantity, type ForgotPasswordBody, type ForgotPasswordContent, type ForgotPasswordResponse, type FreeGoodCouponPromotion, type FreeGoodsPromotion, type FreeGoodsRule, type FreeShipingCouponPromotion, type GenerateHashBody, type GenerateHashContent, type GenerateHashResponse, type GenerateOtpBody, type GenerateOtpContent, type GenerateOtpResponse, type GenerateOtpWithEmail, type GenerateOtpWithPhone, 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 GetPosCartContent, type GetPosCartPathParams, type GetPosCartResponse, 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, type GstinDetail, HelpersClient, type Item, type JuspayCardPayload, type JuspayCreateCardResponse, type JuspayCreateCustomerPayload, type JuspayCreateOrderPayload, type JuspayCustomer, type JuspayOrder, type JuspayPaymentGatewayParams, type JuspayPaymentInfo, type JuspayPaymentMethod, type JuspaySavedCard, type KycDocument, type KycDocumentConfig, 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 LoginPosDeviceWithEmailBody, type LoginPosDeviceWithEmailContent, type LoginPosDeviceWithEmailResponse, type LoginPosDeviceWithPhoneBody, type LoginPosDeviceWithPhoneContent, type LoginPosDeviceWithPhoneResponse, type LoginPosDeviceWithWhatsappBody, type LoginPosDeviceWithWhatsappContent, type LoginPosDeviceWithWhatsappResponse, 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, type LoyaltyPointActivity, type MeasurementUnit, MemoryTokenStorage, type MultiSelectAttribute, type NetbankingPayment, NextJSTokenStorage, type NextJSTokenStorageOptions, type NotificationChannelPreferences, type NotificationPreferences, type NumberAttribute, type Order, OrderClient, type OrderDetail, type OrderItem, type OrderList, type OrderPayment, type OrderRefund, type OrderReturn, type OrderReturnItem, type OrderShipment, type Pagination, type PairPosDeviceBody, type PairPosDeviceContent, type PairPosDeviceResponse, type PanDetail, type PauseSubscription, type PaymentInfo, type PayuCardPayload, type PayuCreateCardResponse, type PayuPaymentGatewayParams, type PayuPaymentInfo, type PayuPaymentMethod, type PayuSavedCard, type PercentageDiscountRule, type Pincode, type PincodeServiceability, type PosDevice, type PosUpdateCustomerWithEmail, type PosUpdateCustomerWithId, type PosUpdateCustomerWithPhone, type PosUser, type Product, type ProductAttribute, type ProductBundleItem, type ProductCategory, type ProductDetail, type ProductImage, type ProductPricing, type ProductPromotion, type ProductReview, type ProductShipping, type ProductSubscription, type ProductVideo, type Promotion, 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 RefreshPosAccessTokenBody, type RefreshPosAccessTokenContent, type RefreshPosAccessTokenResponse, type RefreshTokenBody, type RefreshTokenContent, type RefreshTokenResponse, type RegisterWithEmailBody, type RegisterWithEmailContent, type RegisterWithEmailPassword, type RegisterWithEmailResponse, type RegisterWithPasswordBody, type RegisterWithPasswordContent, type RegisterWithPasswordResponse, type RegisterWithPhoneBody, type RegisterWithPhoneContent, type RegisterWithPhonePassword, 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 RevokeSubscription, type SearchProduct, type SearchProductsBody, type SearchProductsContent, type SearchProductsHeaderParams, type SearchProductsResponse, type Seo, type ShipmentItem, ShippingClient, type SingleSelectAttribute, type SingleSelectOption, type StoreConfig, StoreConfigClient, type StoreTemplate, StorefrontAPIClient, StorefrontSDK, type StorefrontSDKOptions, type SubscribeNewsletterBody, type SubscribeNewsletterResponse, type Subscription, type SubscriptionBehaviour, type SubscriptionDetail, type SubscriptionInvoiceItem, type SupportedDefaultHeaders, type TextAttribute, type TokenStorage, type TrackAnalyticsEventBody, type TrackAnalyticsEventResponse, type UpdateAddressDetailBody, type UpdateAddressDetailContent, type UpdateAddressDetailPathParams, type UpdateAddressDetailResponse, type UpdateCartBody, type UpdateCartContent, type UpdateCartCustomerBody, type UpdateCartCustomerContent, type UpdateCartCustomerPathParams, type UpdateCartCustomerResponse, type UpdateCartItem, type UpdateCartPathParams, type UpdateCartResponse, type UpdateCustomer, type UpdateCustomerBody, type UpdateCustomerContent, type UpdateCustomerPathParams, type UpdateCustomerResponse, type UpdateDigitalProductSubscription, type UpdateDocument, type UpdateDocumentContent, type UpdateDocumentFormData, type UpdateDocumentPathParams, type UpdateDocumentResponse, type UpdateNotificationPreferencesBody, type UpdateNotificationPreferencesContent, type UpdateNotificationPreferencesPathParams, type UpdateNotificationPreferencesResponse, type UpdatePhysicalProductSubscription, type UpdatePosCartAddressBody, type UpdatePosCartAddressContent, type UpdatePosCartAddressPathParams, type UpdatePosCartAddressResponse, type UpdatePosCartBody, type UpdatePosCartContent, type UpdatePosCartCustomerBody, type UpdatePosCartCustomerContent, type UpdatePosCartCustomerPathParams, type UpdatePosCartCustomerResponse, type UpdatePosCartPathParams, type UpdatePosCartResponse, 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 UpiPayment, type User, type UserInfo, type Variant, type VariantDetail, type VariantOption, type VerifyDocumentBody, type VerifyDocumentContent, type VerifyDocumentPathParams, type VerifyDocumentResponse, type VerifyOtpBody, type VerifyOtpContent, type VerifyOtpResponse, type VerifyPosLoginOtpBody, type VerifyPosLoginOtpContent, type VerifyPosLoginOtpResponse, type VerifyVpaContent, type VerifyVpaQuery, type VerifyVpaResponse, type VolumeBasedCouponPromotion, type VolumeBasedPromotion, type VolumeBasedRule, type WalletPayment, type components, StorefrontSDK as default, type operations, type paths };
|
package/dist/index.iife.js
CHANGED
|
@@ -4,6 +4,12 @@ var CE_SDK = (() => {
|
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
8
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
|
+
}) : x)(function(x) {
|
|
10
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
11
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
12
|
+
});
|
|
7
13
|
var __export = (target, all) => {
|
|
8
14
|
for (var name in all)
|
|
9
15
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -30,6 +36,7 @@ var CE_SDK = (() => {
|
|
|
30
36
|
Environment: () => Environment,
|
|
31
37
|
HelpersClient: () => HelpersClient,
|
|
32
38
|
MemoryTokenStorage: () => MemoryTokenStorage,
|
|
39
|
+
NextJSTokenStorage: () => NextJSTokenStorage,
|
|
33
40
|
OrderClient: () => OrderClient,
|
|
34
41
|
ResponseUtils: () => ResponseUtils,
|
|
35
42
|
ShippingClient: () => ShippingClient,
|
|
@@ -806,6 +813,115 @@ var CE_SDK = (() => {
|
|
|
806
813
|
document.cookie = cookieString;
|
|
807
814
|
}
|
|
808
815
|
};
|
|
816
|
+
var NextJSTokenStorage = class {
|
|
817
|
+
accessTokenKey;
|
|
818
|
+
refreshTokenKey;
|
|
819
|
+
options;
|
|
820
|
+
constructor(options = {}) {
|
|
821
|
+
const prefix = options.prefix || "storefront_";
|
|
822
|
+
this.accessTokenKey = `${prefix}access_token`;
|
|
823
|
+
this.refreshTokenKey = `${prefix}refresh_token`;
|
|
824
|
+
this.options = {
|
|
825
|
+
maxAge: options.maxAge || 30 * 24 * 60 * 60,
|
|
826
|
+
// 30 days default
|
|
827
|
+
path: options.path || "/",
|
|
828
|
+
domain: options.domain,
|
|
829
|
+
secure: options.secure ?? (typeof window !== "undefined" && window.location?.protocol === "https:"),
|
|
830
|
+
sameSite: options.sameSite || "Lax"
|
|
831
|
+
};
|
|
832
|
+
}
|
|
833
|
+
async getAccessToken() {
|
|
834
|
+
return await this.getCookie(this.accessTokenKey);
|
|
835
|
+
}
|
|
836
|
+
async setAccessToken(token) {
|
|
837
|
+
await this.setCookie(this.accessTokenKey, token);
|
|
838
|
+
}
|
|
839
|
+
async getRefreshToken() {
|
|
840
|
+
return await this.getCookie(this.refreshTokenKey);
|
|
841
|
+
}
|
|
842
|
+
async setRefreshToken(token) {
|
|
843
|
+
await this.setCookie(this.refreshTokenKey, token);
|
|
844
|
+
}
|
|
845
|
+
async clearTokens() {
|
|
846
|
+
await this.deleteCookie(this.accessTokenKey);
|
|
847
|
+
await this.deleteCookie(this.refreshTokenKey);
|
|
848
|
+
}
|
|
849
|
+
async getCookie(name) {
|
|
850
|
+
if (typeof window !== "undefined") {
|
|
851
|
+
const value = `; ${document.cookie}`;
|
|
852
|
+
const parts = value.split(`; ${name}=`);
|
|
853
|
+
if (parts.length === 2) {
|
|
854
|
+
const cookieValue = parts.pop()?.split(";").shift();
|
|
855
|
+
return cookieValue ? decodeURIComponent(cookieValue) : null;
|
|
856
|
+
}
|
|
857
|
+
return null;
|
|
858
|
+
} else {
|
|
859
|
+
try {
|
|
860
|
+
const { cookies } = __require("next/headers");
|
|
861
|
+
const cookieStore = await cookies();
|
|
862
|
+
return cookieStore.get(name)?.value || null;
|
|
863
|
+
} catch {
|
|
864
|
+
return null;
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
async setCookie(name, value) {
|
|
869
|
+
if (typeof window !== "undefined") {
|
|
870
|
+
const encodedValue = encodeURIComponent(value);
|
|
871
|
+
let cookieString = `${name}=${encodedValue}`;
|
|
872
|
+
if (this.options.maxAge) {
|
|
873
|
+
cookieString += `; Max-Age=${this.options.maxAge}`;
|
|
874
|
+
}
|
|
875
|
+
if (this.options.path) {
|
|
876
|
+
cookieString += `; Path=${this.options.path}`;
|
|
877
|
+
}
|
|
878
|
+
if (this.options.domain) {
|
|
879
|
+
cookieString += `; Domain=${this.options.domain}`;
|
|
880
|
+
}
|
|
881
|
+
if (this.options.secure) {
|
|
882
|
+
cookieString += `; Secure`;
|
|
883
|
+
}
|
|
884
|
+
if (this.options.sameSite) {
|
|
885
|
+
cookieString += `; SameSite=${this.options.sameSite}`;
|
|
886
|
+
}
|
|
887
|
+
document.cookie = cookieString;
|
|
888
|
+
} else {
|
|
889
|
+
try {
|
|
890
|
+
const { cookies } = __require("next/headers");
|
|
891
|
+
const cookieStore = await cookies();
|
|
892
|
+
cookieStore.set(name, value, {
|
|
893
|
+
maxAge: this.options.maxAge,
|
|
894
|
+
path: this.options.path,
|
|
895
|
+
domain: this.options.domain,
|
|
896
|
+
secure: this.options.secure,
|
|
897
|
+
sameSite: this.options.sameSite?.toLowerCase()
|
|
898
|
+
});
|
|
899
|
+
} catch {
|
|
900
|
+
console.warn(`Could not set cookie ${name} on server side`);
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
async deleteCookie(name) {
|
|
905
|
+
if (typeof window !== "undefined") {
|
|
906
|
+
let cookieString = `${name}=; Max-Age=0`;
|
|
907
|
+
if (this.options.path) {
|
|
908
|
+
cookieString += `; Path=${this.options.path}`;
|
|
909
|
+
}
|
|
910
|
+
if (this.options.domain) {
|
|
911
|
+
cookieString += `; Domain=${this.options.domain}`;
|
|
912
|
+
}
|
|
913
|
+
document.cookie = cookieString;
|
|
914
|
+
} else {
|
|
915
|
+
try {
|
|
916
|
+
const { cookies } = __require("next/headers");
|
|
917
|
+
const cookieStore = await cookies();
|
|
918
|
+
cookieStore.delete(name);
|
|
919
|
+
} catch {
|
|
920
|
+
console.warn(`Could not remove cookie ${name} on server side`);
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
};
|
|
809
925
|
function createAuthMiddleware(config) {
|
|
810
926
|
let isRefreshing = false;
|
|
811
927
|
let refreshPromise = null;
|
|
@@ -2041,23 +2157,6 @@ var CE_SDK = (() => {
|
|
|
2041
2157
|
})
|
|
2042
2158
|
);
|
|
2043
2159
|
}
|
|
2044
|
-
/**
|
|
2045
|
-
* Update cart customer
|
|
2046
|
-
*
|
|
2047
|
-
* @param cartId - The ID of the cart
|
|
2048
|
-
* @param body - The body of the request
|
|
2049
|
-
* @returns Promise with updated cart
|
|
2050
|
-
*/
|
|
2051
|
-
async updateCartCustomer(cartId, body) {
|
|
2052
|
-
return this.executeRequest(
|
|
2053
|
-
() => this.client.POST("/carts/{id}/update-customer", {
|
|
2054
|
-
params: {
|
|
2055
|
-
path: cartId
|
|
2056
|
-
},
|
|
2057
|
-
body
|
|
2058
|
-
})
|
|
2059
|
-
);
|
|
2060
|
-
}
|
|
2061
2160
|
};
|
|
2062
2161
|
|
|
2063
2162
|
// src/lib/auth.ts
|