@kasuvia/sdk 0.0.6 → 0.0.8

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.
@@ -33,6 +33,21 @@ interface DeliveryAddress {
33
33
  country: string;
34
34
  postal: string;
35
35
  }
36
+ interface AddressValidationErrorData {
37
+ message: string;
38
+ errorType?: 'state' | 'city' | 'general';
39
+ cities?: Array<{
40
+ name: string;
41
+ city_id: string;
42
+ stateCode: string;
43
+ countryCode: string;
44
+ }>;
45
+ states?: Array<{
46
+ name: string;
47
+ code: string;
48
+ countryCode: string;
49
+ }>;
50
+ }
36
51
 
37
52
  type ProductType = "physical" | "digital" | "service" | "bespoke";
38
53
  declare enum ServiceTypeEnum {
@@ -489,4 +504,4 @@ interface UpdateCmsEntryParams {
489
504
  data: Record<string, any>;
490
505
  }
491
506
 
492
- export { type WishlistListResponse as $, type Address as A, type BackendLanguage as B, type CheckoutCustomer as C, type DeliveryAddress as D, type ProductVariant as E, type FindOrderParams as F, type SdkConfig as G, type ServiceLocationType as H, type Inventory as I, ServiceLocationTypeEnum as J, type ServiceRecurringInterval as K, type ListCmsEntriesParams as L, ServiceRecurringIntervalEnum as M, type ServiceType as N, type Order as O, type PaginatedResponse as P, ServiceTypeEnum as Q, type ShippingRate as R, type ShippingLocation as S, type ShippingRatesResponse as T, type SupportedCurrenciesResponse as U, type SupportedLang as V, type SupportedLanguagesResponse as W, type TransactionVerifyResponse as X, type UpdateCmsEntryParams as Y, type WishlistCheckResponse as Z, type WishlistItem as _, type BespokeStageKey as a, type CartItem as b, type CartResponse as c, type CmsEntry as d, type CmsEntryListResponse as e, type CmsField as f, type CmsIcon as g, type CmsIconListResponse as h, type CmsModel as i, type CmsModelPermissions as j, type CmsModelPublicApiPermissions as k, type Collection as l, type ConversionQuote as m, type CreateCmsEntryParams as n, type CreateOrderParams as o, type Currency as p, type CustomField as q, type DVACreateRequest as r, type DVADetails as s, type ListParams as t, type OrderItem as u, type OrderStatus as v, type PaymentInitiateRequest as w, type PaymentInitiateResponse as x, type Product as y, type ProductType as z };
507
+ export { type WishlistItem as $, type Address as A, type BackendLanguage as B, type CheckoutCustomer as C, type DeliveryAddress as D, type ProductType as E, type FindOrderParams as F, type ProductVariant as G, type SdkConfig as H, type Inventory as I, type ServiceLocationType as J, ServiceLocationTypeEnum as K, type ListCmsEntriesParams as L, type ServiceRecurringInterval as M, ServiceRecurringIntervalEnum as N, type Order as O, type PaginatedResponse as P, type ServiceType as Q, ServiceTypeEnum as R, type ShippingLocation as S, type ShippingRate as T, type ShippingRatesResponse as U, type SupportedCurrenciesResponse as V, type SupportedLang as W, type SupportedLanguagesResponse as X, type TransactionVerifyResponse as Y, type UpdateCmsEntryParams as Z, type WishlistCheckResponse as _, type AddressValidationErrorData as a, type WishlistListResponse as a0, type BespokeStageKey as b, type CartItem as c, type CartResponse as d, type CmsEntry as e, type CmsEntryListResponse as f, type CmsField as g, type CmsIcon as h, type CmsIconListResponse as i, type CmsModel as j, type CmsModelPermissions as k, type CmsModelPublicApiPermissions as l, type Collection as m, type ConversionQuote as n, type CreateCmsEntryParams as o, type CreateOrderParams as p, type Currency as q, type CustomField as r, type DVACreateRequest as s, type DVADetails as t, type ListParams as u, type OrderItem as v, type OrderStatus as w, type PaymentInitiateRequest as x, type PaymentInitiateResponse as y, type Product as z };
@@ -33,6 +33,21 @@ interface DeliveryAddress {
33
33
  country: string;
34
34
  postal: string;
35
35
  }
36
+ interface AddressValidationErrorData {
37
+ message: string;
38
+ errorType?: 'state' | 'city' | 'general';
39
+ cities?: Array<{
40
+ name: string;
41
+ city_id: string;
42
+ stateCode: string;
43
+ countryCode: string;
44
+ }>;
45
+ states?: Array<{
46
+ name: string;
47
+ code: string;
48
+ countryCode: string;
49
+ }>;
50
+ }
36
51
 
37
52
  type ProductType = "physical" | "digital" | "service" | "bespoke";
38
53
  declare enum ServiceTypeEnum {
@@ -489,4 +504,4 @@ interface UpdateCmsEntryParams {
489
504
  data: Record<string, any>;
490
505
  }
491
506
 
492
- export { type WishlistListResponse as $, type Address as A, type BackendLanguage as B, type CheckoutCustomer as C, type DeliveryAddress as D, type ProductVariant as E, type FindOrderParams as F, type SdkConfig as G, type ServiceLocationType as H, type Inventory as I, ServiceLocationTypeEnum as J, type ServiceRecurringInterval as K, type ListCmsEntriesParams as L, ServiceRecurringIntervalEnum as M, type ServiceType as N, type Order as O, type PaginatedResponse as P, ServiceTypeEnum as Q, type ShippingRate as R, type ShippingLocation as S, type ShippingRatesResponse as T, type SupportedCurrenciesResponse as U, type SupportedLang as V, type SupportedLanguagesResponse as W, type TransactionVerifyResponse as X, type UpdateCmsEntryParams as Y, type WishlistCheckResponse as Z, type WishlistItem as _, type BespokeStageKey as a, type CartItem as b, type CartResponse as c, type CmsEntry as d, type CmsEntryListResponse as e, type CmsField as f, type CmsIcon as g, type CmsIconListResponse as h, type CmsModel as i, type CmsModelPermissions as j, type CmsModelPublicApiPermissions as k, type Collection as l, type ConversionQuote as m, type CreateCmsEntryParams as n, type CreateOrderParams as o, type Currency as p, type CustomField as q, type DVACreateRequest as r, type DVADetails as s, type ListParams as t, type OrderItem as u, type OrderStatus as v, type PaymentInitiateRequest as w, type PaymentInitiateResponse as x, type Product as y, type ProductType as z };
507
+ export { type WishlistItem as $, type Address as A, type BackendLanguage as B, type CheckoutCustomer as C, type DeliveryAddress as D, type ProductType as E, type FindOrderParams as F, type ProductVariant as G, type SdkConfig as H, type Inventory as I, type ServiceLocationType as J, ServiceLocationTypeEnum as K, type ListCmsEntriesParams as L, type ServiceRecurringInterval as M, ServiceRecurringIntervalEnum as N, type Order as O, type PaginatedResponse as P, type ServiceType as Q, ServiceTypeEnum as R, type ShippingLocation as S, type ShippingRate as T, type ShippingRatesResponse as U, type SupportedCurrenciesResponse as V, type SupportedLang as W, type SupportedLanguagesResponse as X, type TransactionVerifyResponse as Y, type UpdateCmsEntryParams as Z, type WishlistCheckResponse as _, type AddressValidationErrorData as a, type WishlistListResponse as a0, type BespokeStageKey as b, type CartItem as c, type CartResponse as d, type CmsEntry as e, type CmsEntryListResponse as f, type CmsField as g, type CmsIcon as h, type CmsIconListResponse as i, type CmsModel as j, type CmsModelPermissions as k, type CmsModelPublicApiPermissions as l, type Collection as m, type ConversionQuote as n, type CreateCmsEntryParams as o, type CreateOrderParams as p, type Currency as q, type CustomField as r, type DVACreateRequest as s, type DVADetails as t, type ListParams as u, type OrderItem as v, type OrderStatus as w, type PaymentInitiateRequest as x, type PaymentInitiateResponse as y, type Product as z };
@@ -1,4 +1,4 @@
1
- import { H as ServiceLocationType, G as SdkConfig, c as CartResponse, b as CartItem, O as Order, o as CreateOrderParams, F as FindOrderParams, t as ListParams, P as PaginatedResponse, y as Product, l as Collection, _ as WishlistItem, Z as WishlistCheckResponse, $ as WishlistListResponse, r as DVACreateRequest, s as DVADetails, X as TransactionVerifyResponse, w as PaymentInitiateRequest, x as PaymentInitiateResponse, m as ConversionQuote, E as ProductVariant, T as ShippingRatesResponse, W as SupportedLanguagesResponse, U as SupportedCurrenciesResponse, n as CreateCmsEntryParams, d as CmsEntry, L as ListCmsEntriesParams, e as CmsEntryListResponse, Y as UpdateCmsEntryParams } from './index-ac_Jx9NI.js';
1
+ import { J as ServiceLocationType, H as SdkConfig, d as CartResponse, c as CartItem, O as Order, p as CreateOrderParams, F as FindOrderParams, u as ListParams, P as PaginatedResponse, z as Product, m as Collection, $ as WishlistItem, _ as WishlistCheckResponse, a0 as WishlistListResponse, s as DVACreateRequest, t as DVADetails, Y as TransactionVerifyResponse, x as PaymentInitiateRequest, y as PaymentInitiateResponse, n as ConversionQuote, G as ProductVariant, U as ShippingRatesResponse, X as SupportedLanguagesResponse, V as SupportedCurrenciesResponse, o as CreateCmsEntryParams, e as CmsEntry, L as ListCmsEntriesParams, f as CmsEntryListResponse, Z as UpdateCmsEntryParams } from './index-C5YO9gTl.mjs';
2
2
 
3
3
  /**
4
4
  * Simplified customer auth types for kasuvia-storefront.
@@ -625,12 +625,19 @@ declare function validateShippingAddress(config: SdkConfig, payload: {
625
625
  }): Promise<{
626
626
  valid: boolean;
627
627
  message?: string;
628
- data?: Array<{
628
+ errorType?: 'state' | 'city' | 'general';
629
+ data?: unknown;
630
+ cities?: Array<{
629
631
  name: string;
630
632
  city_id: string;
631
633
  stateCode: string;
632
634
  countryCode: string;
633
635
  }>;
636
+ states?: Array<{
637
+ name: string;
638
+ code: string;
639
+ countryCode: string;
640
+ }>;
634
641
  }>;
635
642
  declare const logisticsService: {
636
643
  getShippingRates: typeof getShippingRates;
@@ -1,4 +1,4 @@
1
- import { H as ServiceLocationType, G as SdkConfig, c as CartResponse, b as CartItem, O as Order, o as CreateOrderParams, F as FindOrderParams, t as ListParams, P as PaginatedResponse, y as Product, l as Collection, _ as WishlistItem, Z as WishlistCheckResponse, $ as WishlistListResponse, r as DVACreateRequest, s as DVADetails, X as TransactionVerifyResponse, w as PaymentInitiateRequest, x as PaymentInitiateResponse, m as ConversionQuote, E as ProductVariant, T as ShippingRatesResponse, W as SupportedLanguagesResponse, U as SupportedCurrenciesResponse, n as CreateCmsEntryParams, d as CmsEntry, L as ListCmsEntriesParams, e as CmsEntryListResponse, Y as UpdateCmsEntryParams } from './index-ac_Jx9NI.mjs';
1
+ import { J as ServiceLocationType, H as SdkConfig, d as CartResponse, c as CartItem, O as Order, p as CreateOrderParams, F as FindOrderParams, u as ListParams, P as PaginatedResponse, z as Product, m as Collection, $ as WishlistItem, _ as WishlistCheckResponse, a0 as WishlistListResponse, s as DVACreateRequest, t as DVADetails, Y as TransactionVerifyResponse, x as PaymentInitiateRequest, y as PaymentInitiateResponse, n as ConversionQuote, G as ProductVariant, U as ShippingRatesResponse, X as SupportedLanguagesResponse, V as SupportedCurrenciesResponse, o as CreateCmsEntryParams, e as CmsEntry, L as ListCmsEntriesParams, f as CmsEntryListResponse, Z as UpdateCmsEntryParams } from './index-C5YO9gTl.js';
2
2
 
3
3
  /**
4
4
  * Simplified customer auth types for kasuvia-storefront.
@@ -625,12 +625,19 @@ declare function validateShippingAddress(config: SdkConfig, payload: {
625
625
  }): Promise<{
626
626
  valid: boolean;
627
627
  message?: string;
628
- data?: Array<{
628
+ errorType?: 'state' | 'city' | 'general';
629
+ data?: unknown;
630
+ cities?: Array<{
629
631
  name: string;
630
632
  city_id: string;
631
633
  stateCode: string;
632
634
  countryCode: string;
633
635
  }>;
636
+ states?: Array<{
637
+ name: string;
638
+ code: string;
639
+ countryCode: string;
640
+ }>;
634
641
  }>;
635
642
  declare const logisticsService: {
636
643
  getShippingRates: typeof getShippingRates;
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
- import { C as CheckoutCustomer, S as ShippingLocation, D as DeliveryAddress, O as Order } from './index-ac_Jx9NI.mjs';
2
- export { A as Address, B as BackendLanguage, a as BespokeStageKey, b as CartItem, c as CartResponse, d as CmsEntry, e as CmsEntryListResponse, f as CmsField, g as CmsIcon, h as CmsIconListResponse, i as CmsModel, j as CmsModelPermissions, k as CmsModelPublicApiPermissions, l as Collection, m as ConversionQuote, n as CreateCmsEntryParams, o as CreateOrderParams, p as Currency, q as CustomField, r as DVACreateRequest, s as DVADetails, F as FindOrderParams, I as Inventory, L as ListCmsEntriesParams, t as ListParams, u as OrderItem, v as OrderStatus, P as PaginatedResponse, w as PaymentInitiateRequest, x as PaymentInitiateResponse, y as Product, z as ProductType, E as ProductVariant, G as SdkConfig, H as ServiceLocationType, J as ServiceLocationTypeEnum, K as ServiceRecurringInterval, M as ServiceRecurringIntervalEnum, N as ServiceType, Q as ServiceTypeEnum, R as ShippingRate, T as ShippingRatesResponse, U as SupportedCurrenciesResponse, V as SupportedLang, W as SupportedLanguagesResponse, X as TransactionVerifyResponse, Y as UpdateCmsEntryParams, Z as WishlistCheckResponse, _ as WishlistItem, $ as WishlistListResponse } from './index-ac_Jx9NI.mjs';
3
- import { C as CustomerUser } from './index-D9ojrziq.mjs';
4
- export { A as AppointmentStatus, a as AuthContextValue, b as AuthUserResponse, c as AvailableSlot, d as AvatarObject, B as BespokeAvailability, e as BusinessConfig, f as BusinessContext, g as CartItemPayload, h as Consultation, i as ConsultationCreatePayload, j as ConsultationMessage, k as ConsultationMessagePayload, l as ConsultationProductType, m as ConsultationQuoteAcceptPayload, n as ConsultationStatus, o as ContactFormData, p as CustomerAuthResponse, q as CustomerLoginPayload, r as CustomerProfileFields, s as CustomerRegisterPayload, D as DeliverableApprovalPayload, t as DeliverableStatus, u as DeliverableStatusType, L as LogoutPayload, N as NotificationPreferences, O as OTPVerifyPayload, R as RateAddress, v as RefreshTokenResponse, w as ResendOTPPayload, S as ServiceAppointment, x as ServiceAppointmentCreatePayload, y as ServiceDeliverable, z as ShippingRatesRequest, U as UpdateProfilePayload, E as acceptQuote, F as addToCart, G as addToGuestCart, H as addToWishlist, I as approveDeliverable, J as bespokeService, K as bookAppointment, M as cancelAppointment, P as cancelOrder, Q as checkAvailability, T as checkInWishlist, V as clearCart, W as clearGuestCart, X as clearTokens, Y as configService, Z as consultationService, _ as createCmsEntry, $ as createConsultation, a0 as createDedicatedAccount, a1 as createOrder, a2 as deleteCmsEntry, a3 as findOrder, a4 as findOrderByToken, a5 as getAppointment, a6 as getAppointments, a7 as getAuthUser, a8 as getAvailableSlots, a9 as getBusinessConfig, aa as getCart, ab as getCmsEntry, ac as getConsultation, ad as getConsultations, ae as getDeliverables, af as getFeaturedProducts, ag as getGuestCart, ah as getGuestCartCount, ai as getGuestCartProductType, aj as getGuestCartSubtotal, ak as getLatestProducts, al as getLowStockProducts, am as getMe, an as getNewProducts, ao as getOnSaleProducts, ap as getOrders, aq as getPopularProducts, ar as getRecommendedProducts, as as getSellerShippingAddress, at as getShippingRates, au as getStoredTokens, av as getStorefrontCollectionBySlug, aw as getStorefrontCollections, ax as getStorefrontProductBySlug, ay as getStorefrontProducts, az as getSupportedCurrencies, aA as getSupportedLanguages, aB as getTransactionStatus, aC as getWishlist, aD as googleTranslate, aE as initiatePayment, aF as listCmsEntries, aG as loginCustomer, aH as logisticsService, aI as logout, aJ as mapAuthUserToCustomer, aK as mergeGuestCart, aL as mergeGuestCartIfPresent, aM as notificationsService, aN as paymentService, aO as refreshToken, aP as registerCustomer, aQ as rejectQuote, aR as removeFromCart, aS as removeFromGuestCart, aT as removeFromWishlist, aU as removeProductFromWishlist, aV as requestQuote, aW as requestRevision, aX as sendContactConfirmation, aY as sendContactEmail, aZ as sendMessage, a_ as serviceBookingService, a$ as silentRefresh, b0 as storeTokens, b1 as trackOrder, b2 as updateCartItem, b3 as updateCmsEntry, b4 as updateGuestCartItemQuantity, b5 as updateProfile, b6 as validateShippingAddress, b7 as verifySocialToken, b8 as verifyTransaction } from './index-D9ojrziq.mjs';
1
+ import { C as CheckoutCustomer, S as ShippingLocation, D as DeliveryAddress, O as Order } from './index-C5YO9gTl.mjs';
2
+ export { A as Address, a as AddressValidationErrorData, B as BackendLanguage, b as BespokeStageKey, c as CartItem, d as CartResponse, e as CmsEntry, f as CmsEntryListResponse, g as CmsField, h as CmsIcon, i as CmsIconListResponse, j as CmsModel, k as CmsModelPermissions, l as CmsModelPublicApiPermissions, m as Collection, n as ConversionQuote, o as CreateCmsEntryParams, p as CreateOrderParams, q as Currency, r as CustomField, s as DVACreateRequest, t as DVADetails, F as FindOrderParams, I as Inventory, L as ListCmsEntriesParams, u as ListParams, v as OrderItem, w as OrderStatus, P as PaginatedResponse, x as PaymentInitiateRequest, y as PaymentInitiateResponse, z as Product, E as ProductType, G as ProductVariant, H as SdkConfig, J as ServiceLocationType, K as ServiceLocationTypeEnum, M as ServiceRecurringInterval, N as ServiceRecurringIntervalEnum, Q as ServiceType, R as ServiceTypeEnum, T as ShippingRate, U as ShippingRatesResponse, V as SupportedCurrenciesResponse, W as SupportedLang, X as SupportedLanguagesResponse, Y as TransactionVerifyResponse, Z as UpdateCmsEntryParams, _ as WishlistCheckResponse, $ as WishlistItem, a0 as WishlistListResponse } from './index-C5YO9gTl.mjs';
3
+ import { C as CustomerUser } from './index-CefG7_xq.mjs';
4
+ export { A as AppointmentStatus, a as AuthContextValue, b as AuthUserResponse, c as AvailableSlot, d as AvatarObject, B as BespokeAvailability, e as BusinessConfig, f as BusinessContext, g as CartItemPayload, h as Consultation, i as ConsultationCreatePayload, j as ConsultationMessage, k as ConsultationMessagePayload, l as ConsultationProductType, m as ConsultationQuoteAcceptPayload, n as ConsultationStatus, o as ContactFormData, p as CustomerAuthResponse, q as CustomerLoginPayload, r as CustomerProfileFields, s as CustomerRegisterPayload, D as DeliverableApprovalPayload, t as DeliverableStatus, u as DeliverableStatusType, L as LogoutPayload, N as NotificationPreferences, O as OTPVerifyPayload, R as RateAddress, v as RefreshTokenResponse, w as ResendOTPPayload, S as ServiceAppointment, x as ServiceAppointmentCreatePayload, y as ServiceDeliverable, z as ShippingRatesRequest, U as UpdateProfilePayload, E as acceptQuote, F as addToCart, G as addToGuestCart, H as addToWishlist, I as approveDeliverable, J as bespokeService, K as bookAppointment, M as cancelAppointment, P as cancelOrder, Q as checkAvailability, T as checkInWishlist, V as clearCart, W as clearGuestCart, X as clearTokens, Y as configService, Z as consultationService, _ as createCmsEntry, $ as createConsultation, a0 as createDedicatedAccount, a1 as createOrder, a2 as deleteCmsEntry, a3 as findOrder, a4 as findOrderByToken, a5 as getAppointment, a6 as getAppointments, a7 as getAuthUser, a8 as getAvailableSlots, a9 as getBusinessConfig, aa as getCart, ab as getCmsEntry, ac as getConsultation, ad as getConsultations, ae as getDeliverables, af as getFeaturedProducts, ag as getGuestCart, ah as getGuestCartCount, ai as getGuestCartProductType, aj as getGuestCartSubtotal, ak as getLatestProducts, al as getLowStockProducts, am as getMe, an as getNewProducts, ao as getOnSaleProducts, ap as getOrders, aq as getPopularProducts, ar as getRecommendedProducts, as as getSellerShippingAddress, at as getShippingRates, au as getStoredTokens, av as getStorefrontCollectionBySlug, aw as getStorefrontCollections, ax as getStorefrontProductBySlug, ay as getStorefrontProducts, az as getSupportedCurrencies, aA as getSupportedLanguages, aB as getTransactionStatus, aC as getWishlist, aD as googleTranslate, aE as initiatePayment, aF as listCmsEntries, aG as loginCustomer, aH as logisticsService, aI as logout, aJ as mapAuthUserToCustomer, aK as mergeGuestCart, aL as mergeGuestCartIfPresent, aM as notificationsService, aN as paymentService, aO as refreshToken, aP as registerCustomer, aQ as rejectQuote, aR as removeFromCart, aS as removeFromGuestCart, aT as removeFromWishlist, aU as removeProductFromWishlist, aV as requestQuote, aW as requestRevision, aX as sendContactConfirmation, aY as sendContactEmail, aZ as sendMessage, a_ as serviceBookingService, a$ as silentRefresh, b0 as storeTokens, b1 as trackOrder, b2 as updateCartItem, b3 as updateCmsEntry, b4 as updateGuestCartItemQuantity, b5 as updateProfile, b6 as validateShippingAddress, b7 as verifySocialToken, b8 as verifyTransaction } from './index-CefG7_xq.mjs';
5
5
  export { A as AppContextValue, a as AppState, C as Country, L as LangCode, S as State, T as Theme } from './index-C1chUA3P.mjs';
6
6
 
7
7
  /**
@@ -16,6 +16,10 @@ declare const STORAGE_KEYS: {
16
16
  readonly ORDERS_LINKED: "kasuvia_orders_linked";
17
17
  readonly STOREFRONT_STATE: "storefront_state_v3";
18
18
  };
19
+ declare const PAYMENT_URLS: {
20
+ readonly MONNIFY: "https://sdk.monnify.com/plugin/monnify.js";
21
+ readonly FLUTTERWAVE: "https://checkout.flutterwave.com/v3.js";
22
+ };
19
23
 
20
24
  /**
21
25
  * Bespoke slot booking types for customer-facing storefront
@@ -234,4 +238,4 @@ declare function validateRequired(value: string, fieldName: string): string | nu
234
238
  declare function validateConfirmPassword(password: string, confirmPassword: string): string | null;
235
239
  declare function validateMessage(message: string): string | null;
236
240
 
237
- export { type BespokeCapacityConfig, type BespokeSlotBooking, CheckoutCustomer, CustomerUser, DeliveryAddress, InvalidBaseURLError, type MediaAsset, type MediaAssetUpdatePayload, type MediaUploadParams, Order, STORAGE_KEYS, ShippingLocation, type SlotBookingStatus, type StorageStats, buildDeliveryAddress, buildFullName, enrichCompletedOrder, getCacheTier, getCheckoutCustomerName, getCustomerDisplayName, getErrorMessage, getStorefrontUrl, localStore, logger, sanitizeBaseUrl, sessionStore, setEnvironmentMode, setLoggerEnvironmentMode, splitFullName, validateConfirmPassword, validateEmail, validateMessage, validateName, validatePassword, validateRequired };
241
+ export { type BespokeCapacityConfig, type BespokeSlotBooking, CheckoutCustomer, CustomerUser, DeliveryAddress, InvalidBaseURLError, type MediaAsset, type MediaAssetUpdatePayload, type MediaUploadParams, Order, PAYMENT_URLS, STORAGE_KEYS, ShippingLocation, type SlotBookingStatus, type StorageStats, buildDeliveryAddress, buildFullName, enrichCompletedOrder, getCacheTier, getCheckoutCustomerName, getCustomerDisplayName, getErrorMessage, getStorefrontUrl, localStore, logger, sanitizeBaseUrl, sessionStore, setEnvironmentMode, setLoggerEnvironmentMode, splitFullName, validateConfirmPassword, validateEmail, validateMessage, validateName, validatePassword, validateRequired };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { C as CheckoutCustomer, S as ShippingLocation, D as DeliveryAddress, O as Order } from './index-ac_Jx9NI.js';
2
- export { A as Address, B as BackendLanguage, a as BespokeStageKey, b as CartItem, c as CartResponse, d as CmsEntry, e as CmsEntryListResponse, f as CmsField, g as CmsIcon, h as CmsIconListResponse, i as CmsModel, j as CmsModelPermissions, k as CmsModelPublicApiPermissions, l as Collection, m as ConversionQuote, n as CreateCmsEntryParams, o as CreateOrderParams, p as Currency, q as CustomField, r as DVACreateRequest, s as DVADetails, F as FindOrderParams, I as Inventory, L as ListCmsEntriesParams, t as ListParams, u as OrderItem, v as OrderStatus, P as PaginatedResponse, w as PaymentInitiateRequest, x as PaymentInitiateResponse, y as Product, z as ProductType, E as ProductVariant, G as SdkConfig, H as ServiceLocationType, J as ServiceLocationTypeEnum, K as ServiceRecurringInterval, M as ServiceRecurringIntervalEnum, N as ServiceType, Q as ServiceTypeEnum, R as ShippingRate, T as ShippingRatesResponse, U as SupportedCurrenciesResponse, V as SupportedLang, W as SupportedLanguagesResponse, X as TransactionVerifyResponse, Y as UpdateCmsEntryParams, Z as WishlistCheckResponse, _ as WishlistItem, $ as WishlistListResponse } from './index-ac_Jx9NI.js';
3
- import { C as CustomerUser } from './index-hgK4j47a.js';
4
- export { A as AppointmentStatus, a as AuthContextValue, b as AuthUserResponse, c as AvailableSlot, d as AvatarObject, B as BespokeAvailability, e as BusinessConfig, f as BusinessContext, g as CartItemPayload, h as Consultation, i as ConsultationCreatePayload, j as ConsultationMessage, k as ConsultationMessagePayload, l as ConsultationProductType, m as ConsultationQuoteAcceptPayload, n as ConsultationStatus, o as ContactFormData, p as CustomerAuthResponse, q as CustomerLoginPayload, r as CustomerProfileFields, s as CustomerRegisterPayload, D as DeliverableApprovalPayload, t as DeliverableStatus, u as DeliverableStatusType, L as LogoutPayload, N as NotificationPreferences, O as OTPVerifyPayload, R as RateAddress, v as RefreshTokenResponse, w as ResendOTPPayload, S as ServiceAppointment, x as ServiceAppointmentCreatePayload, y as ServiceDeliverable, z as ShippingRatesRequest, U as UpdateProfilePayload, E as acceptQuote, F as addToCart, G as addToGuestCart, H as addToWishlist, I as approveDeliverable, J as bespokeService, K as bookAppointment, M as cancelAppointment, P as cancelOrder, Q as checkAvailability, T as checkInWishlist, V as clearCart, W as clearGuestCart, X as clearTokens, Y as configService, Z as consultationService, _ as createCmsEntry, $ as createConsultation, a0 as createDedicatedAccount, a1 as createOrder, a2 as deleteCmsEntry, a3 as findOrder, a4 as findOrderByToken, a5 as getAppointment, a6 as getAppointments, a7 as getAuthUser, a8 as getAvailableSlots, a9 as getBusinessConfig, aa as getCart, ab as getCmsEntry, ac as getConsultation, ad as getConsultations, ae as getDeliverables, af as getFeaturedProducts, ag as getGuestCart, ah as getGuestCartCount, ai as getGuestCartProductType, aj as getGuestCartSubtotal, ak as getLatestProducts, al as getLowStockProducts, am as getMe, an as getNewProducts, ao as getOnSaleProducts, ap as getOrders, aq as getPopularProducts, ar as getRecommendedProducts, as as getSellerShippingAddress, at as getShippingRates, au as getStoredTokens, av as getStorefrontCollectionBySlug, aw as getStorefrontCollections, ax as getStorefrontProductBySlug, ay as getStorefrontProducts, az as getSupportedCurrencies, aA as getSupportedLanguages, aB as getTransactionStatus, aC as getWishlist, aD as googleTranslate, aE as initiatePayment, aF as listCmsEntries, aG as loginCustomer, aH as logisticsService, aI as logout, aJ as mapAuthUserToCustomer, aK as mergeGuestCart, aL as mergeGuestCartIfPresent, aM as notificationsService, aN as paymentService, aO as refreshToken, aP as registerCustomer, aQ as rejectQuote, aR as removeFromCart, aS as removeFromGuestCart, aT as removeFromWishlist, aU as removeProductFromWishlist, aV as requestQuote, aW as requestRevision, aX as sendContactConfirmation, aY as sendContactEmail, aZ as sendMessage, a_ as serviceBookingService, a$ as silentRefresh, b0 as storeTokens, b1 as trackOrder, b2 as updateCartItem, b3 as updateCmsEntry, b4 as updateGuestCartItemQuantity, b5 as updateProfile, b6 as validateShippingAddress, b7 as verifySocialToken, b8 as verifyTransaction } from './index-hgK4j47a.js';
1
+ import { C as CheckoutCustomer, S as ShippingLocation, D as DeliveryAddress, O as Order } from './index-C5YO9gTl.js';
2
+ export { A as Address, a as AddressValidationErrorData, B as BackendLanguage, b as BespokeStageKey, c as CartItem, d as CartResponse, e as CmsEntry, f as CmsEntryListResponse, g as CmsField, h as CmsIcon, i as CmsIconListResponse, j as CmsModel, k as CmsModelPermissions, l as CmsModelPublicApiPermissions, m as Collection, n as ConversionQuote, o as CreateCmsEntryParams, p as CreateOrderParams, q as Currency, r as CustomField, s as DVACreateRequest, t as DVADetails, F as FindOrderParams, I as Inventory, L as ListCmsEntriesParams, u as ListParams, v as OrderItem, w as OrderStatus, P as PaginatedResponse, x as PaymentInitiateRequest, y as PaymentInitiateResponse, z as Product, E as ProductType, G as ProductVariant, H as SdkConfig, J as ServiceLocationType, K as ServiceLocationTypeEnum, M as ServiceRecurringInterval, N as ServiceRecurringIntervalEnum, Q as ServiceType, R as ServiceTypeEnum, T as ShippingRate, U as ShippingRatesResponse, V as SupportedCurrenciesResponse, W as SupportedLang, X as SupportedLanguagesResponse, Y as TransactionVerifyResponse, Z as UpdateCmsEntryParams, _ as WishlistCheckResponse, $ as WishlistItem, a0 as WishlistListResponse } from './index-C5YO9gTl.js';
3
+ import { C as CustomerUser } from './index-DeHCf3zI.js';
4
+ export { A as AppointmentStatus, a as AuthContextValue, b as AuthUserResponse, c as AvailableSlot, d as AvatarObject, B as BespokeAvailability, e as BusinessConfig, f as BusinessContext, g as CartItemPayload, h as Consultation, i as ConsultationCreatePayload, j as ConsultationMessage, k as ConsultationMessagePayload, l as ConsultationProductType, m as ConsultationQuoteAcceptPayload, n as ConsultationStatus, o as ContactFormData, p as CustomerAuthResponse, q as CustomerLoginPayload, r as CustomerProfileFields, s as CustomerRegisterPayload, D as DeliverableApprovalPayload, t as DeliverableStatus, u as DeliverableStatusType, L as LogoutPayload, N as NotificationPreferences, O as OTPVerifyPayload, R as RateAddress, v as RefreshTokenResponse, w as ResendOTPPayload, S as ServiceAppointment, x as ServiceAppointmentCreatePayload, y as ServiceDeliverable, z as ShippingRatesRequest, U as UpdateProfilePayload, E as acceptQuote, F as addToCart, G as addToGuestCart, H as addToWishlist, I as approveDeliverable, J as bespokeService, K as bookAppointment, M as cancelAppointment, P as cancelOrder, Q as checkAvailability, T as checkInWishlist, V as clearCart, W as clearGuestCart, X as clearTokens, Y as configService, Z as consultationService, _ as createCmsEntry, $ as createConsultation, a0 as createDedicatedAccount, a1 as createOrder, a2 as deleteCmsEntry, a3 as findOrder, a4 as findOrderByToken, a5 as getAppointment, a6 as getAppointments, a7 as getAuthUser, a8 as getAvailableSlots, a9 as getBusinessConfig, aa as getCart, ab as getCmsEntry, ac as getConsultation, ad as getConsultations, ae as getDeliverables, af as getFeaturedProducts, ag as getGuestCart, ah as getGuestCartCount, ai as getGuestCartProductType, aj as getGuestCartSubtotal, ak as getLatestProducts, al as getLowStockProducts, am as getMe, an as getNewProducts, ao as getOnSaleProducts, ap as getOrders, aq as getPopularProducts, ar as getRecommendedProducts, as as getSellerShippingAddress, at as getShippingRates, au as getStoredTokens, av as getStorefrontCollectionBySlug, aw as getStorefrontCollections, ax as getStorefrontProductBySlug, ay as getStorefrontProducts, az as getSupportedCurrencies, aA as getSupportedLanguages, aB as getTransactionStatus, aC as getWishlist, aD as googleTranslate, aE as initiatePayment, aF as listCmsEntries, aG as loginCustomer, aH as logisticsService, aI as logout, aJ as mapAuthUserToCustomer, aK as mergeGuestCart, aL as mergeGuestCartIfPresent, aM as notificationsService, aN as paymentService, aO as refreshToken, aP as registerCustomer, aQ as rejectQuote, aR as removeFromCart, aS as removeFromGuestCart, aT as removeFromWishlist, aU as removeProductFromWishlist, aV as requestQuote, aW as requestRevision, aX as sendContactConfirmation, aY as sendContactEmail, aZ as sendMessage, a_ as serviceBookingService, a$ as silentRefresh, b0 as storeTokens, b1 as trackOrder, b2 as updateCartItem, b3 as updateCmsEntry, b4 as updateGuestCartItemQuantity, b5 as updateProfile, b6 as validateShippingAddress, b7 as verifySocialToken, b8 as verifyTransaction } from './index-DeHCf3zI.js';
5
5
  export { A as AppContextValue, a as AppState, C as Country, L as LangCode, S as State, T as Theme } from './index-C1chUA3P.js';
6
6
 
7
7
  /**
@@ -16,6 +16,10 @@ declare const STORAGE_KEYS: {
16
16
  readonly ORDERS_LINKED: "kasuvia_orders_linked";
17
17
  readonly STOREFRONT_STATE: "storefront_state_v3";
18
18
  };
19
+ declare const PAYMENT_URLS: {
20
+ readonly MONNIFY: "https://sdk.monnify.com/plugin/monnify.js";
21
+ readonly FLUTTERWAVE: "https://checkout.flutterwave.com/v3.js";
22
+ };
19
23
 
20
24
  /**
21
25
  * Bespoke slot booking types for customer-facing storefront
@@ -234,4 +238,4 @@ declare function validateRequired(value: string, fieldName: string): string | nu
234
238
  declare function validateConfirmPassword(password: string, confirmPassword: string): string | null;
235
239
  declare function validateMessage(message: string): string | null;
236
240
 
237
- export { type BespokeCapacityConfig, type BespokeSlotBooking, CheckoutCustomer, CustomerUser, DeliveryAddress, InvalidBaseURLError, type MediaAsset, type MediaAssetUpdatePayload, type MediaUploadParams, Order, STORAGE_KEYS, ShippingLocation, type SlotBookingStatus, type StorageStats, buildDeliveryAddress, buildFullName, enrichCompletedOrder, getCacheTier, getCheckoutCustomerName, getCustomerDisplayName, getErrorMessage, getStorefrontUrl, localStore, logger, sanitizeBaseUrl, sessionStore, setEnvironmentMode, setLoggerEnvironmentMode, splitFullName, validateConfirmPassword, validateEmail, validateMessage, validateName, validatePassword, validateRequired };
241
+ export { type BespokeCapacityConfig, type BespokeSlotBooking, CheckoutCustomer, CustomerUser, DeliveryAddress, InvalidBaseURLError, type MediaAsset, type MediaAssetUpdatePayload, type MediaUploadParams, Order, PAYMENT_URLS, STORAGE_KEYS, ShippingLocation, type SlotBookingStatus, type StorageStats, buildDeliveryAddress, buildFullName, enrichCompletedOrder, getCacheTier, getCheckoutCustomerName, getCustomerDisplayName, getErrorMessage, getStorefrontUrl, localStore, logger, sanitizeBaseUrl, sessionStore, setEnvironmentMode, setLoggerEnvironmentMode, splitFullName, validateConfirmPassword, validateEmail, validateMessage, validateName, validatePassword, validateRequired };
package/dist/index.js CHANGED
@@ -21,6 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
23
  InvalidBaseURLError: () => InvalidBaseURLError,
24
+ PAYMENT_URLS: () => PAYMENT_URLS,
24
25
  STORAGE_KEYS: () => STORAGE_KEYS,
25
26
  ServiceLocationTypeEnum: () => ServiceLocationTypeEnum,
26
27
  ServiceRecurringIntervalEnum: () => ServiceRecurringIntervalEnum,
@@ -148,6 +149,10 @@ var STORAGE_KEYS = {
148
149
  ORDERS_LINKED: "kasuvia_orders_linked",
149
150
  STOREFRONT_STATE: "storefront_state_v3"
150
151
  };
152
+ var PAYMENT_URLS = {
153
+ MONNIFY: "https://sdk.monnify.com/plugin/monnify.js",
154
+ FLUTTERWAVE: "https://checkout.flutterwave.com/v3.js"
155
+ };
151
156
 
152
157
  // src/types/store/index.ts
153
158
  var ServiceTypeEnum = /* @__PURE__ */ ((ServiceTypeEnum2) => {
@@ -2668,6 +2673,7 @@ function validateMessage(message) {
2668
2673
  // Annotate the CommonJS export names for ESM import in node:
2669
2674
  0 && (module.exports = {
2670
2675
  InvalidBaseURLError,
2676
+ PAYMENT_URLS,
2671
2677
  STORAGE_KEYS,
2672
2678
  ServiceLocationTypeEnum,
2673
2679
  ServiceRecurringIntervalEnum,