@mivis/petmart-api 1.2.109 → 1.2.111
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 +8 -7
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -417,14 +417,15 @@ declare namespace Components {
|
|
|
417
417
|
|
|
418
418
|
export type ICategoryQueryResponse = ICategory[] | IParsedCategory[];
|
|
419
419
|
|
|
420
|
-
export interface
|
|
420
|
+
export interface ICreateCategoryRequest {
|
|
421
421
|
name: string;
|
|
422
|
-
photo
|
|
423
|
-
subCategory?: string;
|
|
422
|
+
photo: File;
|
|
424
423
|
}
|
|
425
424
|
|
|
426
|
-
export interface
|
|
425
|
+
export interface IUpdateCategoryRequest
|
|
426
|
+
extends Partial<ICreateCategoryRequest> {
|
|
427
427
|
id: string;
|
|
428
|
+
toDeletePhoto?: string;
|
|
428
429
|
}
|
|
429
430
|
|
|
430
431
|
export interface ISubCategory {
|
|
@@ -445,15 +446,15 @@ declare namespace Components {
|
|
|
445
446
|
productsCount: number;
|
|
446
447
|
}
|
|
447
448
|
|
|
448
|
-
export interface
|
|
449
|
+
export interface ICreateSubCategoryRequest {
|
|
449
450
|
name: string;
|
|
450
451
|
category_id: string;
|
|
451
452
|
}
|
|
452
453
|
|
|
453
|
-
export interface
|
|
454
|
+
export interface IUpdateSubCategoryRequest {
|
|
454
455
|
id: string;
|
|
455
456
|
name: string;
|
|
456
|
-
|
|
457
|
+
category_id: string;
|
|
457
458
|
}
|
|
458
459
|
|
|
459
460
|
export enum ESubCategoryStatus {
|