@mivis/petmart-api 1.2.167 → 1.2.169

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 +18 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.167",
3
+ "version": "1.2.169",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
package/type.d.ts CHANGED
@@ -340,6 +340,15 @@ declare namespace Components {
340
340
  updatedAt: Date;
341
341
  }
342
342
 
343
+ type OptionalDimension = {
344
+ width?: number;
345
+ height?: number;
346
+ length?: number;
347
+ weight?: number;
348
+ in_stock: number;
349
+ unit?: EUnit;
350
+ };
351
+
343
352
  type TOptionalProperties = Pick<
344
353
  IProductResponse,
345
354
  | 'category_id'
@@ -347,11 +356,12 @@ declare namespace Components {
347
356
  | 'vendor_code'
348
357
  | 'desc'
349
358
  | 'characteristic'
350
- | 'dimension'
351
359
  | 'tax'
352
360
  | 'photo'
353
361
  | 'price'
354
- >;
362
+ > & {
363
+ dimension?: OptionalDimension;
364
+ };
355
365
 
356
366
  type TRemainingProductResponseProperties = Omit<
357
367
  IProductResponse,
@@ -590,6 +600,11 @@ declare namespace Components {
590
600
  };
591
601
  }
592
602
 
603
+ export interface IMoySklad {
604
+ account_id: string | null;
605
+ api_token: string | null;
606
+ }
607
+
593
608
  export interface ISeller {
594
609
  _id: string;
595
610
  type: ESellerTypes;
@@ -611,6 +626,7 @@ declare namespace Components {
611
626
  shop_details: IShopDetails;
612
627
  delivery_ways: IDeliveryWays;
613
628
  balance_info: IBalanceInfo;
629
+ moy_sklad?: IMoySklad;
614
630
  commission: number;
615
631
  status: ESellerStatus;
616
632
  telegram_message_id: number | null;