@mivis/petmart-api 1.2.318 → 1.2.320
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/package.json +1 -1
- package/type.d.ts +14 -0
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -478,6 +478,15 @@ declare namespace Components {
|
|
|
478
478
|
generatedImage?: string;
|
|
479
479
|
}
|
|
480
480
|
|
|
481
|
+
/**
|
|
482
|
+
* Тело запроса PATCH `/api/admin/products/:id/quick-update` — точечное изменение цены и остатка без multipart.
|
|
483
|
+
* Идентификатор товара передаётся в path (`:id`), не в теле.
|
|
484
|
+
*/
|
|
485
|
+
export interface IQuickUpdateProductRequest {
|
|
486
|
+
price?: number;
|
|
487
|
+
in_stock?: number;
|
|
488
|
+
}
|
|
489
|
+
|
|
481
490
|
export interface ICreateCart {
|
|
482
491
|
product_id: string;
|
|
483
492
|
count: number;
|
|
@@ -575,6 +584,11 @@ declare namespace Components {
|
|
|
575
584
|
|
|
576
585
|
export interface IGetCategoryQuery extends FilterBaseQuery {
|
|
577
586
|
parsed?: string;
|
|
587
|
+
onlyNonEmpty?: string;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
export interface IGetSubCategoryQuery {
|
|
591
|
+
onlyNonEmpty?: string;
|
|
578
592
|
}
|
|
579
593
|
|
|
580
594
|
export interface IParsedCategory {
|