@merkaly/api 0.14.0 → 0.15.0
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/dist/integration/supplier/product.d.ts +3 -1
- package/dist/integration/supplier/request.validator.d.ts +3 -0
- package/dist/integration/supplier/request.validator.js +10 -0
- package/dist/inventory/catalog/product/product.entity.d.ts +1 -0
- package/dist/order/sale/checkout.d.ts +7 -4
- package/package.json +1 -1
|
@@ -27,7 +27,8 @@ export interface SupplierProduct {
|
|
|
27
27
|
description: string;
|
|
28
28
|
assets: SupplierProductAsset[];
|
|
29
29
|
currency: string;
|
|
30
|
-
|
|
30
|
+
handlingDays?: number | null;
|
|
31
|
+
deliveryDays?: number | null;
|
|
31
32
|
store?: {
|
|
32
33
|
externalId: string;
|
|
33
34
|
name: string;
|
|
@@ -35,4 +36,5 @@ export interface SupplierProduct {
|
|
|
35
36
|
};
|
|
36
37
|
variants: SupplierProductVariant[];
|
|
37
38
|
importedProduct?: string;
|
|
39
|
+
defaultMarkup?: number;
|
|
38
40
|
}
|
|
@@ -2,3 +2,6 @@ import { AbstractRequestValidator } from '../../abstract.validator.js';
|
|
|
2
2
|
export declare class PreviewSupplierProductRequestValidator extends AbstractRequestValidator {
|
|
3
3
|
url: string;
|
|
4
4
|
}
|
|
5
|
+
export declare class ImportSupplierProductRequestValidator extends PreviewSupplierProductRequestValidator {
|
|
6
|
+
markup?: number;
|
|
7
|
+
}
|
|
@@ -18,3 +18,13 @@ __decorate([
|
|
|
18
18
|
(0, class_validator_1.Length)(0, 2048),
|
|
19
19
|
__metadata("design:type", String)
|
|
20
20
|
], PreviewSupplierProductRequestValidator.prototype, "url", void 0);
|
|
21
|
+
export class ImportSupplierProductRequestValidator extends PreviewSupplierProductRequestValidator {
|
|
22
|
+
markup;
|
|
23
|
+
}
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
(0, class_validator_1.IsNumber)({ allowNaN: false, allowInfinity: false, maxDecimalPlaces: 2 }),
|
|
27
|
+
(0, class_validator_1.Min)(0),
|
|
28
|
+
(0, class_validator_1.Max)(1000),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], ImportSupplierProductRequestValidator.prototype, "markup", void 0);
|
|
@@ -13,6 +13,7 @@ export declare class CatalogProductEntity extends AbstractEntity {
|
|
|
13
13
|
supplier?: IntegrationSupplierEntity;
|
|
14
14
|
vendor?: ContactVendorEntity;
|
|
15
15
|
externalProductId?: string;
|
|
16
|
+
handlingDays?: number | null;
|
|
16
17
|
variant: CatalogVariantEntity;
|
|
17
18
|
readonly supplierPrice: number;
|
|
18
19
|
readonly retailPrice: number;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
export interface CheckoutQuoteDays {
|
|
2
|
+
max?: number;
|
|
3
|
+
min?: number;
|
|
4
|
+
}
|
|
1
5
|
export interface CheckoutQuoteShipping {
|
|
2
6
|
available: boolean;
|
|
3
7
|
amount: number;
|
|
4
8
|
method?: string;
|
|
5
|
-
deliveryDays?:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
+
deliveryDays?: CheckoutQuoteDays;
|
|
10
|
+
handlingDays?: number;
|
|
11
|
+
transitDays?: CheckoutQuoteDays;
|
|
9
12
|
issue?: string;
|
|
10
13
|
}
|
|
11
14
|
export interface CheckoutQuoteItem {
|