@trustrails/sdk 0.3.0 → 0.3.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,3 +1,7 @@
1
+ /**
2
+ * Product availability status
3
+ */
4
+ type Availability = "in_stock" | "low_stock" | "out_of_stock";
1
5
  /**
2
6
  * Product information returned by TrustRails API
3
7
  */
@@ -7,7 +11,7 @@ interface Product {
7
11
  brand?: string;
8
12
  price: number;
9
13
  currency: string;
10
- availability: "in_stock" | "low_stock" | "out_of_stock";
14
+ availability: Availability;
11
15
  stock: number;
12
16
  delivery_time: string;
13
17
  image_url?: string;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,7 @@
1
+ /**
2
+ * Product availability status
3
+ */
4
+ type Availability = "in_stock" | "low_stock" | "out_of_stock";
1
5
  /**
2
6
  * Product information returned by TrustRails API
3
7
  */
@@ -7,7 +11,7 @@ interface Product {
7
11
  brand?: string;
8
12
  price: number;
9
13
  currency: string;
10
- availability: "in_stock" | "low_stock" | "out_of_stock";
14
+ availability: Availability;
11
15
  stock: number;
12
16
  delivery_time: string;
13
17
  image_url?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustrails/sdk",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Official TypeScript SDK for TrustRails API",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",