@mivis/petmart-api 1.2.89 → 1.2.91

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 +24 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mivis/petmart-api",
3
- "version": "1.2.89",
3
+ "version": "1.2.91",
4
4
  "main": "index.js",
5
5
  "types": "type.d.ts",
6
6
  "license": "ISC",
package/type.d.ts CHANGED
@@ -840,7 +840,7 @@ declare namespace Components {
840
840
  }
841
841
 
842
842
  export interface ICancelOrderRequest {
843
- order_id: string;
843
+ orderId: string;
844
844
  reason_of_cancel: EReasonOfCancel;
845
845
  }
846
846
 
@@ -1095,7 +1095,7 @@ declare namespace Components {
1095
1095
  admin_id?: string;
1096
1096
  order_id: string;
1097
1097
  comment?: string;
1098
- commission: number;
1098
+ commission?: number;
1099
1099
  delivery_sum?: number;
1100
1100
  seller_id: string;
1101
1101
  createdAt: Date;
@@ -1107,5 +1107,27 @@ declare namespace Components {
1107
1107
  sum: number;
1108
1108
  comment?: string;
1109
1109
  }
1110
+
1111
+ export interface IAdminGetTransactionsRequest extends FilterBaseQuery {
1112
+ type?: ESellerTransactionsType;
1113
+ sum?: 'asc' | 'desc';
1114
+ from?: string;
1115
+ to?: string;
1116
+ seller_id?: string;
1117
+ }
1118
+
1119
+ export interface IAdminOrdersQueryResponse {
1120
+ transactions: ISellerTransactions[];
1121
+ count: number;
1122
+ }
1123
+
1124
+ export interface IAdminTopSalesQueryRequest extends FilterBaseQuery {
1125
+ seller_id: string;
1126
+ }
1127
+
1128
+ export interface IAdminTopSalesResponse {
1129
+ products: IProduct[];
1130
+ count: number;
1131
+ }
1110
1132
  }
1111
1133
  }