@mivis/petmart-api 1.2.86 → 1.2.88
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 +12 -9
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -253,7 +253,7 @@ declare namespace Components {
|
|
|
253
253
|
characteristic: ICharacteristic[];
|
|
254
254
|
purchases_count: number;
|
|
255
255
|
viewed?: number;
|
|
256
|
-
|
|
256
|
+
number: number;
|
|
257
257
|
createdAt: Date;
|
|
258
258
|
updatedAt: Date;
|
|
259
259
|
}
|
|
@@ -318,7 +318,7 @@ declare namespace Components {
|
|
|
318
318
|
characteristic: ICharacteristic[];
|
|
319
319
|
purchases_count: number;
|
|
320
320
|
viewed?: number;
|
|
321
|
-
|
|
321
|
+
number: number;
|
|
322
322
|
createdAt: Date;
|
|
323
323
|
updatedAt: Date;
|
|
324
324
|
}
|
|
@@ -653,9 +653,11 @@ declare namespace Components {
|
|
|
653
653
|
item_id: string;
|
|
654
654
|
}
|
|
655
655
|
|
|
656
|
-
export interface
|
|
657
|
-
|
|
658
|
-
|
|
656
|
+
export interface IAdminAddOrderItemRequest {
|
|
657
|
+
product_number: number;
|
|
658
|
+
count: number;
|
|
659
|
+
current_items: IPopulatedOrderItem[];
|
|
660
|
+
delivery_sum?: number;
|
|
659
661
|
}
|
|
660
662
|
|
|
661
663
|
export interface IAdminOrdersQueryRequest extends FilterBaseQuery {
|
|
@@ -789,8 +791,8 @@ declare namespace Components {
|
|
|
789
791
|
_id: string;
|
|
790
792
|
product_id: string;
|
|
791
793
|
count: number;
|
|
792
|
-
price: number;
|
|
793
|
-
dimension: IDimension;
|
|
794
|
+
price: number; // Сумма за одну единицу товара * количество товаров
|
|
795
|
+
dimension: IDimension; // Габариты за единицу товара
|
|
794
796
|
items_status: EOrderItemsStatus;
|
|
795
797
|
}
|
|
796
798
|
|
|
@@ -832,7 +834,7 @@ declare namespace Components {
|
|
|
832
834
|
export enum EReasonOfCancel {
|
|
833
835
|
CHANGED_DELIVERY_DATE = 'Перенесли срок доставки',
|
|
834
836
|
INCORRECT_CREATED_ORDER = 'Хочу изменить заказ и оформить заново',
|
|
835
|
-
FOUND_CHEAPER = '
|
|
837
|
+
FOUND_CHEAPER = 'Нашел дешевле',
|
|
836
838
|
WRONG_ADDRESS = 'Указал неверный адрес',
|
|
837
839
|
OTHER = 'Другое',
|
|
838
840
|
}
|
|
@@ -931,7 +933,8 @@ declare namespace Components {
|
|
|
931
933
|
export interface IOrder {
|
|
932
934
|
_id: string;
|
|
933
935
|
sum: number;
|
|
934
|
-
|
|
936
|
+
full_sum: number; // Сумма с учетом доставки и коммиссии сервиса
|
|
937
|
+
weight: number; // Общий вес в граммах
|
|
935
938
|
user_id?: string;
|
|
936
939
|
items: IOrderItem[];
|
|
937
940
|
seller_id?: string;
|