@mivis/petmart-api 1.2.138 → 1.2.140

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 +12 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.138",
3
+ "version": "1.2.140",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
package/type.d.ts CHANGED
@@ -177,7 +177,7 @@ declare namespace Components {
177
177
  _id: string;
178
178
  address: string;
179
179
  floor: number;
180
- intercom: number;
180
+ intercom?: number;
181
181
  entrance: number;
182
182
  index?: number;
183
183
  flat: number;
@@ -477,6 +477,14 @@ declare namespace Components {
477
477
  legal_address: string;
478
478
  }
479
479
 
480
+ export type ILegalBankingDetails = Omit<
481
+ IBankingDetails,
482
+ 'KPP' | 'legal_address'
483
+ >;
484
+ export type IPhysicalBankingDetails = Partial<
485
+ Omit<IBankingDetails, 'legal_address'>
486
+ > & { INN: string };
487
+
480
488
  export interface IShopDetails {
481
489
  shop_name: string;
482
490
  logo: string;
@@ -611,7 +619,7 @@ declare namespace Components {
611
619
 
612
620
  export interface IAdminCreateSellerRequest {
613
621
  seller_info: ICreateSellerInfo;
614
- banking_details: IBankingDetails;
622
+ banking_details: ILegalBankingDetails;
615
623
  shop_details: ICreateShopDetails;
616
624
  logo: File | File[];
617
625
  banner: File | File[];
@@ -1338,7 +1346,8 @@ declare namespace Components {
1338
1346
  }
1339
1347
 
1340
1348
  export interface IAdminCreatePhysicalSellerRequest
1341
- extends IAdminCreateSellerRequest {
1349
+ extends Omit<IAdminCreateSellerRequest, 'banking_details'> {
1350
+ banking_details: IPhysicalBankingDetails;
1342
1351
  passport_details: string;
1343
1352
  passport_photo: File | File[];
1344
1353
  card_number?: string;