@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/type.d.ts +8 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.109",
3
+ "version": "1.2.111",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
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 ICreateCategory {
420
+ export interface ICreateCategoryRequest {
421
421
  name: string;
422
- photo?: File;
423
- subCategory?: string;
422
+ photo: File;
424
423
  }
425
424
 
426
- export interface IUpdateCategory extends ICreateCategory {
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 ICreateSubCategory {
449
+ export interface ICreateSubCategoryRequest {
449
450
  name: string;
450
451
  category_id: string;
451
452
  }
452
453
 
453
- export interface IUpdateSubCategory {
454
+ export interface IUpdateSubCategoryRequest {
454
455
  id: string;
455
456
  name: string;
456
- status: ESubCategoryStatus;
457
+ category_id: string;
457
458
  }
458
459
 
459
460
  export enum ESubCategoryStatus {