@mivis/petmart-api 1.2.109 → 1.2.110

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 +7 -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.110",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
package/type.d.ts CHANGED
@@ -417,13 +417,13 @@ 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
428
  }
429
429
 
@@ -445,15 +445,15 @@ declare namespace Components {
445
445
  productsCount: number;
446
446
  }
447
447
 
448
- export interface ICreateSubCategory {
448
+ export interface ICreateSubCategoryRequest {
449
449
  name: string;
450
450
  category_id: string;
451
451
  }
452
452
 
453
- export interface IUpdateSubCategory {
453
+ export interface IUpdateSubCategoryRequest {
454
454
  id: string;
455
455
  name: string;
456
- status: ESubCategoryStatus;
456
+ category_id: string;
457
457
  }
458
458
 
459
459
  export enum ESubCategoryStatus {