@betterstore/sdk 0.3.106 → 0.5.2

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,4 @@
1
- import * as axios from 'axios';
1
+ import axios from 'axios';
2
2
 
3
3
  declare const createApiClient: (apiKey: string, proxy?: string) => axios.AxiosInstance;
4
4
 
@@ -33,7 +33,7 @@ interface LineItemCreate extends Omit<LineItem, "productData" | "product" | "met
33
33
  }[];
34
34
  productId: string;
35
35
  product?: ProductWithoutVariants;
36
- metadata?: RecursiveRecord;
36
+ metadata?: Record<string, any>;
37
37
  }
38
38
  type Currency = string;
39
39
  interface CheckoutCreateParams {
@@ -89,9 +89,6 @@ interface CheckoutSession {
89
89
  shipmentData: ShipmentData | null;
90
90
  status: "IN_PROGRESS" | "PAYMENT_PENDING" | "ABANDONED" | "CANCELED" | "FAILED";
91
91
  }
92
- type RecursiveRecord = {
93
- [key: string]: any;
94
- };
95
92
 
96
93
  type SortOrder = "asc" | "desc";
97
94
  type GetListParams<A, B> = {
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as axios from 'axios';
1
+ import axios from 'axios';
2
2
 
3
3
  declare const createApiClient: (apiKey: string, proxy?: string) => axios.AxiosInstance;
4
4
 
@@ -33,7 +33,7 @@ interface LineItemCreate extends Omit<LineItem, "productData" | "product" | "met
33
33
  }[];
34
34
  productId: string;
35
35
  product?: ProductWithoutVariants;
36
- metadata?: RecursiveRecord;
36
+ metadata?: Record<string, any>;
37
37
  }
38
38
  type Currency = string;
39
39
  interface CheckoutCreateParams {
@@ -89,9 +89,6 @@ interface CheckoutSession {
89
89
  shipmentData: ShipmentData | null;
90
90
  status: "IN_PROGRESS" | "PAYMENT_PENDING" | "ABANDONED" | "CANCELED" | "FAILED";
91
91
  }
92
- type RecursiveRecord = {
93
- [key: string]: any;
94
- };
95
92
 
96
93
  type SortOrder = "asc" | "desc";
97
94
  type GetListParams<A, B> = {