@mivis/petmart-api 1.2.23 → 1.2.25

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 +21 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.23",
3
+ "version": "1.2.25",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
package/type.d.ts CHANGED
@@ -268,14 +268,13 @@ declare namespace Components {
268
268
  | EProductStatus.DRAFT
269
269
  | EProductStatus.PUBLISHED
270
270
  | EProductStatus.REJECTED;
271
- seller_id: string;
272
271
  category_id: string;
273
272
  subCategory_id: string;
274
273
  vendor_code: string;
275
274
  price: number;
276
275
  tax: number;
277
276
  dimension: IDimension;
278
- photo?: File | File[];
277
+ photo: File[];
279
278
  desc: string;
280
279
  characteristic: ICharacteristic[];
281
280
  }
@@ -312,6 +311,26 @@ declare namespace Components {
312
311
  updatedAt: Date;
313
312
  }
314
313
 
314
+ export interface ICategoryQueryRequest {
315
+ name?: string;
316
+ parsed: string;
317
+ }
318
+
319
+ export interface IParsedCategory {
320
+ value: string;
321
+ title: string;
322
+ type: string;
323
+ children: IParsedSubCategory[];
324
+ }
325
+
326
+ export interface IParsedSubCategory {
327
+ value: string;
328
+ title: string;
329
+ type: string;
330
+ }
331
+
332
+ export type ICategoryQueryResponse = ICategory[] | IParsedCategory[];
333
+
315
334
  export interface ICreateCategory {
316
335
  name: string;
317
336
  photo?: File;