@kasuvia/sdk 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -0
- package/dist/index.mjs.map +1 -1
- package/dist/services/index.js.map +1 -1
- package/dist/services/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/constants.ts +5 -0
- package/src/index.ts +1 -1
- package/src/services/auth.service.ts +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -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
|
@@ -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,
|