@mivis/petmart-api 1.2.108 → 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 +11 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.108",
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
@@ -215,11 +215,8 @@ declare namespace Components {
215
215
  }
216
216
 
217
217
  export enum EUnit {
218
- T = 'TON',
219
218
  KG = 'KG',
220
219
  GR = 'GR',
221
- L = 'LITER',
222
- ML = 'MILLILITER',
223
220
  }
224
221
 
225
222
  export interface IDimension {
@@ -420,13 +417,13 @@ declare namespace Components {
420
417
 
421
418
  export type ICategoryQueryResponse = ICategory[] | IParsedCategory[];
422
419
 
423
- export interface ICreateCategory {
420
+ export interface ICreateCategoryRequest {
424
421
  name: string;
425
- photo?: File;
426
- subCategory?: string;
422
+ photo: File;
427
423
  }
428
424
 
429
- export interface IUpdateCategory extends ICreateCategory {
425
+ export interface IUpdateCategoryRequest
426
+ extends Partial<ICreateCategoryRequest> {
430
427
  id: string;
431
428
  }
432
429
 
@@ -448,15 +445,15 @@ declare namespace Components {
448
445
  productsCount: number;
449
446
  }
450
447
 
451
- export interface ICreateSubCategory {
448
+ export interface ICreateSubCategoryRequest {
452
449
  name: string;
453
450
  category_id: string;
454
451
  }
455
452
 
456
- export interface IUpdateSubCategory {
453
+ export interface IUpdateSubCategoryRequest {
457
454
  id: string;
458
455
  name: string;
459
- status: ESubCategoryStatus;
456
+ category_id: string;
460
457
  }
461
458
 
462
459
  export enum ESubCategoryStatus {
@@ -1169,5 +1166,9 @@ declare namespace Components {
1169
1166
  type: ESellerTransactionsType;
1170
1167
  sum: number;
1171
1168
  }
1169
+
1170
+ export interface IAdminAddCustomRefundTransactionRequest {
1171
+ custom_sum: number;
1172
+ }
1172
1173
  }
1173
1174
  }