@betterstore/sdk 0.6.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/dist/index.d.mts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { OTPSignupParams, OTPSignupResponse, OTPLoginParams, OTPLoginResponse, OTPVerifyParams, OTPVerifyResponse, CustomerSession, CheckoutCreateParams, CheckoutSession, CheckoutUpdateParams, GetShippingRatesResponse, CustomerCreateParams, CustomerResponse, CustomerUpdateParams, AutosuggestAddressResult, LookupAddressResult, ListCollectionsParams, ListCollectionsResponse, RetrieveCollectionParams, RetrieveCollectionResponse, CustomerSubscriptionUpdateParams, CustomerSubscription, ListDiscountsParams, ListDiscountsResponse, RetrieveDiscountParams, RetrieveDiscountResponse, ListProductsParams, ListProductsResponse, RetrieveProductParams, RetrieveProductResponse } from '@betterstore/bridge';
2
+ export { Address, AutosuggestAddressResult, CheckoutCreateParams, CheckoutSession, CheckoutUpdateParams, CustomShippingVendorRate, CustomerCreateParams, CustomerResponse, CustomerSession, CustomerSubscription, CustomerSubscriptionUpdateParams, CustomerUpdateParams, GetShippingRatesResponse, ListCollectionsParams, ListCollectionsResponse, ListDiscountsParams, ListDiscountsResponse, ListProductsParams, ListProductsResponse, LookupAddressResult, OTPLoginParams, OTPLoginResponse, OTPSignupParams, OTPSignupResponse, OTPVerifyParams, OTPVerifyResponse, ProductVariant, RetrieveCollectionParams, RetrieveCollectionResponse, RetrieveDiscountParams, RetrieveDiscountResponse, RetrieveProductParams, RetrieveProductResponse, formatCurrency, formatPrice } from '@betterstore/bridge';
2
3
  import axios from 'axios';
3
4
 
4
5
  declare const createApiClient: (apiKey: string, proxy?: string) => axios.AxiosInstance;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { OTPSignupParams, OTPSignupResponse, OTPLoginParams, OTPLoginResponse, OTPVerifyParams, OTPVerifyResponse, CustomerSession, CheckoutCreateParams, CheckoutSession, CheckoutUpdateParams, GetShippingRatesResponse, CustomerCreateParams, CustomerResponse, CustomerUpdateParams, AutosuggestAddressResult, LookupAddressResult, ListCollectionsParams, ListCollectionsResponse, RetrieveCollectionParams, RetrieveCollectionResponse, CustomerSubscriptionUpdateParams, CustomerSubscription, ListDiscountsParams, ListDiscountsResponse, RetrieveDiscountParams, RetrieveDiscountResponse, ListProductsParams, ListProductsResponse, RetrieveProductParams, RetrieveProductResponse } from '@betterstore/bridge';
2
+ export { Address, AutosuggestAddressResult, CheckoutCreateParams, CheckoutSession, CheckoutUpdateParams, CustomShippingVendorRate, CustomerCreateParams, CustomerResponse, CustomerSession, CustomerSubscription, CustomerSubscriptionUpdateParams, CustomerUpdateParams, GetShippingRatesResponse, ListCollectionsParams, ListCollectionsResponse, ListDiscountsParams, ListDiscountsResponse, ListProductsParams, ListProductsResponse, LookupAddressResult, OTPLoginParams, OTPLoginResponse, OTPSignupParams, OTPSignupResponse, OTPVerifyParams, OTPVerifyResponse, ProductVariant, RetrieveCollectionParams, RetrieveCollectionResponse, RetrieveDiscountParams, RetrieveDiscountResponse, RetrieveProductParams, RetrieveProductResponse, formatCurrency, formatPrice } from '@betterstore/bridge';
2
3
  import axios from 'axios';
3
4
 
4
5
  declare const createApiClient: (apiKey: string, proxy?: string) => axios.AxiosInstance;
package/dist/index.js CHANGED
@@ -31,7 +31,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
31
31
  var index_exports = {};
32
32
  __export(index_exports, {
33
33
  createStoreClient: () => createStoreClient,
34
- default: () => createBetterStore
34
+ default: () => createBetterStore,
35
+ formatCurrency: () => import_bridge.formatCurrency,
36
+ formatPrice: () => import_bridge.formatPrice
35
37
  });
36
38
  module.exports = __toCommonJS(index_exports);
37
39
 
@@ -584,6 +586,9 @@ var Products = class {
584
586
  };
585
587
  var products_default = Products;
586
588
 
589
+ // src/types.ts
590
+ var import_bridge = require("@betterstore/bridge");
591
+
587
592
  // src/index.ts
588
593
  function createBetterStore(config) {
589
594
  if (!config.apiKey) {
@@ -603,5 +608,7 @@ function createStoreClient(config) {
603
608
  }
604
609
  // Annotate the CommonJS export names for ESM import in node:
605
610
  0 && (module.exports = {
606
- createStoreClient
611
+ createStoreClient,
612
+ formatCurrency,
613
+ formatPrice
607
614
  });
package/dist/index.mjs CHANGED
@@ -547,6 +547,9 @@ var Products = class {
547
547
  };
548
548
  var products_default = Products;
549
549
 
550
+ // src/types.ts
551
+ import { formatCurrency, formatPrice } from "@betterstore/bridge";
552
+
550
553
  // src/index.ts
551
554
  function createBetterStore(config) {
552
555
  if (!config.apiKey) {
@@ -566,5 +569,7 @@ function createStoreClient(config) {
566
569
  }
567
570
  export {
568
571
  createStoreClient,
569
- createBetterStore as default
572
+ createBetterStore as default,
573
+ formatCurrency,
574
+ formatPrice
570
575
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/sdk",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",