@spotsdev/sdk 1.5.2 → 1.6.0
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.cjs.map +1 -1
- package/dist/index.d.cts +8 -17
- package/dist/index.d.ts +8 -17
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/api/mutations/products.ts +11 -20
package/dist/index.d.cts
CHANGED
|
@@ -1480,32 +1480,23 @@ interface CreateProductRequest {
|
|
|
1480
1480
|
type: ProductType;
|
|
1481
1481
|
price: number;
|
|
1482
1482
|
currency?: string;
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
validFrom?: string;
|
|
1486
|
-
validUntil?: string;
|
|
1487
|
-
deliveryRadiusKm?: number;
|
|
1488
|
-
prepTimeMinutes?: number;
|
|
1489
|
-
maxCapacity?: number;
|
|
1483
|
+
stock?: number;
|
|
1484
|
+
validityDays?: number;
|
|
1490
1485
|
eventDate?: string;
|
|
1491
1486
|
imageUrl?: string;
|
|
1492
|
-
|
|
1487
|
+
isActive?: boolean;
|
|
1493
1488
|
}
|
|
1494
1489
|
interface UpdateProductRequest {
|
|
1495
1490
|
name?: string;
|
|
1491
|
+
slug?: string;
|
|
1496
1492
|
description?: string;
|
|
1497
1493
|
price?: number;
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
validFrom?: string;
|
|
1502
|
-
validUntil?: string;
|
|
1503
|
-
deliveryRadiusKm?: number;
|
|
1504
|
-
prepTimeMinutes?: number;
|
|
1505
|
-
maxCapacity?: number;
|
|
1494
|
+
type?: ProductType;
|
|
1495
|
+
stock?: number;
|
|
1496
|
+
validityDays?: number;
|
|
1506
1497
|
eventDate?: string;
|
|
1507
1498
|
imageUrl?: string;
|
|
1508
|
-
|
|
1499
|
+
isActive?: boolean;
|
|
1509
1500
|
}
|
|
1510
1501
|
/**
|
|
1511
1502
|
* Create a new product
|
package/dist/index.d.ts
CHANGED
|
@@ -1480,32 +1480,23 @@ interface CreateProductRequest {
|
|
|
1480
1480
|
type: ProductType;
|
|
1481
1481
|
price: number;
|
|
1482
1482
|
currency?: string;
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
validFrom?: string;
|
|
1486
|
-
validUntil?: string;
|
|
1487
|
-
deliveryRadiusKm?: number;
|
|
1488
|
-
prepTimeMinutes?: number;
|
|
1489
|
-
maxCapacity?: number;
|
|
1483
|
+
stock?: number;
|
|
1484
|
+
validityDays?: number;
|
|
1490
1485
|
eventDate?: string;
|
|
1491
1486
|
imageUrl?: string;
|
|
1492
|
-
|
|
1487
|
+
isActive?: boolean;
|
|
1493
1488
|
}
|
|
1494
1489
|
interface UpdateProductRequest {
|
|
1495
1490
|
name?: string;
|
|
1491
|
+
slug?: string;
|
|
1496
1492
|
description?: string;
|
|
1497
1493
|
price?: number;
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
validFrom?: string;
|
|
1502
|
-
validUntil?: string;
|
|
1503
|
-
deliveryRadiusKm?: number;
|
|
1504
|
-
prepTimeMinutes?: number;
|
|
1505
|
-
maxCapacity?: number;
|
|
1494
|
+
type?: ProductType;
|
|
1495
|
+
stock?: number;
|
|
1496
|
+
validityDays?: number;
|
|
1506
1497
|
eventDate?: string;
|
|
1507
1498
|
imageUrl?: string;
|
|
1508
|
-
|
|
1499
|
+
isActive?: boolean;
|
|
1509
1500
|
}
|
|
1510
1501
|
/**
|
|
1511
1502
|
* Create a new product
|