@mivis/petmart-api 1.2.47 → 1.2.49
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.
- package/package.json +1 -1
- package/type.d.ts +27 -11
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -444,6 +444,12 @@ declare namespace Components {
|
|
|
444
444
|
status: ESellerStatus;
|
|
445
445
|
}
|
|
446
446
|
|
|
447
|
+
export interface IBalanceInfo {
|
|
448
|
+
balance: number;
|
|
449
|
+
total_turnover: number;
|
|
450
|
+
withdrawn: number;
|
|
451
|
+
}
|
|
452
|
+
|
|
447
453
|
export interface ISeller {
|
|
448
454
|
_id: string;
|
|
449
455
|
user_id: {
|
|
@@ -455,7 +461,7 @@ declare namespace Components {
|
|
|
455
461
|
banking_details: IBankingDetails;
|
|
456
462
|
shop_details: IShopDetails;
|
|
457
463
|
delivery_ways: IDeliveryWays;
|
|
458
|
-
|
|
464
|
+
balance_info: IBalanceInfo;
|
|
459
465
|
commission: number;
|
|
460
466
|
is_activated: boolean;
|
|
461
467
|
createdAt: Date;
|
|
@@ -560,7 +566,7 @@ declare namespace Components {
|
|
|
560
566
|
product_id: string;
|
|
561
567
|
count: number;
|
|
562
568
|
price: number;
|
|
563
|
-
|
|
569
|
+
dimension: IDimension;
|
|
564
570
|
}
|
|
565
571
|
|
|
566
572
|
export interface ICreateOrder {
|
|
@@ -583,6 +589,7 @@ declare namespace Components {
|
|
|
583
589
|
export interface IOrder {
|
|
584
590
|
sum: number;
|
|
585
591
|
weight: number;
|
|
592
|
+
user_id: string;
|
|
586
593
|
items: IOrderItem[];
|
|
587
594
|
seller_id: string;
|
|
588
595
|
receive_method: ERecieveMethod;
|
|
@@ -593,6 +600,8 @@ declare namespace Components {
|
|
|
593
600
|
preparation_date?: Date;
|
|
594
601
|
note?: string;
|
|
595
602
|
number?: number;
|
|
603
|
+
createdAt: Date;
|
|
604
|
+
updatedAt: Date;
|
|
596
605
|
}
|
|
597
606
|
|
|
598
607
|
export interface IMultiOrder {
|
|
@@ -600,6 +609,15 @@ declare namespace Components {
|
|
|
600
609
|
sum: number;
|
|
601
610
|
orders: string[];
|
|
602
611
|
number?: number;
|
|
612
|
+
status: EMultiOrderStatus;
|
|
613
|
+
createdAt: Date;
|
|
614
|
+
updatedAt: Date;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
export enum EMultiOrderStatus {
|
|
618
|
+
CANCELED = 'CANCELED',
|
|
619
|
+
PAID = 'PAID',
|
|
620
|
+
PENDING = 'PENDING',
|
|
603
621
|
}
|
|
604
622
|
|
|
605
623
|
export enum EComplaintsReason {
|
|
@@ -625,13 +643,6 @@ declare namespace Components {
|
|
|
625
643
|
reason: EComplaintsReason;
|
|
626
644
|
}
|
|
627
645
|
|
|
628
|
-
export interface IMultiOrder {
|
|
629
|
-
_id: string;
|
|
630
|
-
user_id: string;
|
|
631
|
-
sum: number;
|
|
632
|
-
order_number: number;
|
|
633
|
-
}
|
|
634
|
-
|
|
635
646
|
export interface IReview {
|
|
636
647
|
_id: string;
|
|
637
648
|
user_id: string;
|
|
@@ -691,9 +702,14 @@ declare namespace Components {
|
|
|
691
702
|
_id: string;
|
|
692
703
|
type: ESellerTransactionsType;
|
|
693
704
|
sum: number;
|
|
694
|
-
admin_id
|
|
695
|
-
|
|
705
|
+
admin_id?: string;
|
|
706
|
+
order_id: string;
|
|
696
707
|
comment?: string;
|
|
708
|
+
commission: number;
|
|
709
|
+
delivery_sum?: number;
|
|
710
|
+
seller_id: string;
|
|
711
|
+
createdAt: Date;
|
|
712
|
+
updatedAt: Date;
|
|
697
713
|
}
|
|
698
714
|
|
|
699
715
|
export interface ICreateSellerTransactions {
|