fast-simon-sdk 1.2.83 → 1.2.85

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.
@@ -0,0 +1,36 @@
1
+ export interface GraphQLResponse {
2
+ data: {
3
+ nodes: ProductNode[];
4
+ };
5
+ }
6
+ export interface ProductNode {
7
+ id: string;
8
+ variants: {
9
+ edges: VariantEdge[];
10
+ };
11
+ }
12
+ export interface VariantEdge {
13
+ node: VariantNode;
14
+ }
15
+ export interface VariantNode {
16
+ id: string;
17
+ price: {
18
+ amount: string;
19
+ currencyCode: string;
20
+ };
21
+ compareAtPrice: {
22
+ amount: string;
23
+ currencyCode: string;
24
+ };
25
+ }
26
+ interface Product {
27
+ id: string;
28
+ p_spl_id?: string;
29
+ [key: string]: any;
30
+ }
31
+ export default function getPricesByMarket(products: Product[], access_token: string): Promise<Record<string, {
32
+ price: string;
33
+ currency: string;
34
+ comparePrice?: string | undefined;
35
+ }>>;
36
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fast-simon-sdk",
3
- "version": "1.2.83",
3
+ "version": "1.2.85",
4
4
  "author": {
5
5
  "name": "Fast Simon inc",
6
6
  "url": "",
@@ -35,6 +35,6 @@
35
35
  "dependencies": {
36
36
  "@fast-simon/utilities": "^1.0.11",
37
37
  "axios": "^0.21.1",
38
- "@fast-simon/bigcommerce_customer": "^1.0.41"
38
+ "@fast-simon/bigcommerce_customer": "1.0.44"
39
39
  }
40
40
  }