@djust-b2b/djust-front-sdk 2.14.0 → 2.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.
|
@@ -72,7 +72,7 @@ export interface OfferInventory {
|
|
|
72
72
|
minStockAlert: number;
|
|
73
73
|
minShippingPrice: number;
|
|
74
74
|
minShippingPriceAdditional: number;
|
|
75
|
-
minShippingType:
|
|
75
|
+
minShippingType: string;
|
|
76
76
|
minShippingZone: string;
|
|
77
77
|
leadTimeToShip: number;
|
|
78
78
|
customFieldValues: CustomFieldValueDto[];
|
|
@@ -125,3 +125,24 @@ export interface DeliveryTime {
|
|
|
125
125
|
earliestDeliveryDate: string;
|
|
126
126
|
latestDeliveryDate: string;
|
|
127
127
|
}
|
|
128
|
+
export interface ProductVariantOfferCustomField {
|
|
129
|
+
externalId: string;
|
|
130
|
+
id: string;
|
|
131
|
+
name: {
|
|
132
|
+
[key: string]: string;
|
|
133
|
+
};
|
|
134
|
+
type: string;
|
|
135
|
+
}
|
|
136
|
+
export interface ProductVariantOfferCustomFieldValue {
|
|
137
|
+
customField: ProductVariantOfferCustomField;
|
|
138
|
+
value: unknown;
|
|
139
|
+
}
|
|
140
|
+
export interface ProductVariantOfferInventory extends Omit<OfferInventory, "customFieldValues"> {
|
|
141
|
+
customFieldValues: ProductVariantOfferCustomFieldValue[];
|
|
142
|
+
}
|
|
143
|
+
export interface ProductVariantOfferResponse {
|
|
144
|
+
estimatedDeliveryDates: DeliveryDates[];
|
|
145
|
+
offerInventory: ProductVariantOfferInventory;
|
|
146
|
+
offerPrices: OfferPriceResponse[];
|
|
147
|
+
supplier: SupplierResponse;
|
|
148
|
+
}
|
|
@@ -69,14 +69,19 @@ interface OrderPriceDto {
|
|
|
69
69
|
export interface OrderLogisticLineDto {
|
|
70
70
|
confirmedQuantity: number;
|
|
71
71
|
customFieldValues: CustomFieldValueObject[];
|
|
72
|
+
externalId: string;
|
|
73
|
+
externalSource: ExternalSource;
|
|
72
74
|
id: string;
|
|
73
75
|
incidentDeclared: boolean;
|
|
74
76
|
offerCustomFieldSnapshotDtos: OfferCustomFieldValueSnapshot[];
|
|
77
|
+
offerInventorySnapshotDto: OrderLogisticLineOfferInventoryDto;
|
|
78
|
+
offerPriceSnapshotDto: OrderCommercialLineOfferPriceDto;
|
|
75
79
|
orderLogisticLinePriceDto: OrderLogisticLinePriceDto;
|
|
76
80
|
orderLogisticLineProductDto: OrderLogisticLineProductDto;
|
|
77
81
|
orderLogisticLineProductVariantDto: OrderLogisticLineProductVariantDto;
|
|
78
82
|
paymentStatus: OrderLogisticLinePaymentStatus;
|
|
79
83
|
quantity: number;
|
|
84
|
+
quoteLineExternalId: string;
|
|
80
85
|
status: OrderLineStatus;
|
|
81
86
|
}
|
|
82
87
|
export interface OrderLogisticLineUpdate {
|
|
@@ -96,7 +101,7 @@ export interface updateCommercialOrderLinesRequest {
|
|
|
96
101
|
updateOrderLineIdType?: IdType;
|
|
97
102
|
updateOrderLineType?: string;
|
|
98
103
|
}
|
|
99
|
-
interface OfferCustomFieldSnapshot {
|
|
104
|
+
export interface OfferCustomFieldSnapshot {
|
|
100
105
|
externalId: string;
|
|
101
106
|
externalSource: string;
|
|
102
107
|
mandatory: boolean;
|
|
@@ -108,10 +113,40 @@ interface OfferCustomFieldSnapshot {
|
|
|
108
113
|
status: string;
|
|
109
114
|
type: string;
|
|
110
115
|
}
|
|
111
|
-
interface OfferCustomFieldValueSnapshot {
|
|
116
|
+
export interface OfferCustomFieldValueSnapshot {
|
|
112
117
|
offerCustomFieldSnapshotDto: OfferCustomFieldSnapshot;
|
|
113
118
|
value: string;
|
|
114
119
|
}
|
|
120
|
+
interface OrderLogisticLineOfferInventoryCustomFieldSnapshot {
|
|
121
|
+
externalId: string;
|
|
122
|
+
externalSource: string;
|
|
123
|
+
mandatory: boolean;
|
|
124
|
+
names: {
|
|
125
|
+
[key: string]: string;
|
|
126
|
+
};
|
|
127
|
+
role: string;
|
|
128
|
+
sealedTarget: string;
|
|
129
|
+
status: string;
|
|
130
|
+
type: string;
|
|
131
|
+
}
|
|
132
|
+
interface OrderLogisticLineOfferInventoryCustomFieldValueSnapshot {
|
|
133
|
+
customFieldSnapshotDto: OrderLogisticLineOfferInventoryCustomFieldSnapshot;
|
|
134
|
+
typedValue: unknown;
|
|
135
|
+
}
|
|
136
|
+
interface OrderLogisticLineOfferInventoryDto {
|
|
137
|
+
currency: Currency;
|
|
138
|
+
customFieldValueSnapshots: OrderLogisticLineOfferInventoryCustomFieldValueSnapshot[];
|
|
139
|
+
externalSource: ExternalSource;
|
|
140
|
+
maxOrderQuantity: number;
|
|
141
|
+
minOrderQuantity: number;
|
|
142
|
+
offerInventoryExternalId: string;
|
|
143
|
+
packingType: PackingType;
|
|
144
|
+
productTaxCode: string;
|
|
145
|
+
productTaxRate: number;
|
|
146
|
+
quantityPerItem: number;
|
|
147
|
+
shippingTaxCode: string;
|
|
148
|
+
shippingTaxRate: number;
|
|
149
|
+
}
|
|
115
150
|
type OrderLogisticLineProductDto = {
|
|
116
151
|
brand: string;
|
|
117
152
|
classificationCategory: string;
|
|
@@ -140,7 +175,7 @@ type OrderLogisticLineProductDto = {
|
|
|
140
175
|
* @deprecated
|
|
141
176
|
*/
|
|
142
177
|
navigationCategories: string[];
|
|
143
|
-
productAttributeValues: OrderLogisticLineAttributeValue;
|
|
178
|
+
productAttributeValues: OrderLogisticLineAttributeValue[];
|
|
144
179
|
productUnit: string;
|
|
145
180
|
sku: string;
|
|
146
181
|
/**
|
|
@@ -186,7 +221,7 @@ interface TaxInformation {
|
|
|
186
221
|
shippingTaxCode: string;
|
|
187
222
|
shippingTaxRate: number;
|
|
188
223
|
}
|
|
189
|
-
interface OrderLogisticLineAttributeValue {
|
|
224
|
+
export interface OrderLogisticLineAttributeValue {
|
|
190
225
|
/**
|
|
191
226
|
* @deprecated
|
|
192
227
|
*/
|
|
@@ -414,6 +449,8 @@ export interface OrderCommercialLineOfferInventoryDto extends ThreadCustomFiedVa
|
|
|
414
449
|
currency: string;
|
|
415
450
|
customFieldValueSnapshots: OrderCommercialLineCustomFieldValuesDto[];
|
|
416
451
|
externalSource: string;
|
|
452
|
+
maxOrderQuantity: number | null;
|
|
453
|
+
minOrderQuantity: number;
|
|
417
454
|
offerInventoryExternalId: string;
|
|
418
455
|
packingType: string;
|
|
419
456
|
productTaxCode: string;
|
|
@@ -50,7 +50,7 @@ export interface SupplierQuoteDto {
|
|
|
50
50
|
updatedAt: string;
|
|
51
51
|
validityDate: string;
|
|
52
52
|
}
|
|
53
|
-
interface QuoteLine {
|
|
53
|
+
export interface QuoteLine {
|
|
54
54
|
customFieldValues: CustomFieldValueObject[];
|
|
55
55
|
externalId: string;
|
|
56
56
|
id: string;
|
|
@@ -69,9 +69,8 @@ interface QuoteLine {
|
|
|
69
69
|
shippingTaxAmount: number;
|
|
70
70
|
shippingTaxRate: number;
|
|
71
71
|
}
|
|
72
|
-
interface ThreadMessage {
|
|
72
|
+
export interface ThreadMessage {
|
|
73
73
|
message: string;
|
|
74
74
|
messageDate: string;
|
|
75
75
|
name: string;
|
|
76
76
|
}
|
|
77
|
-
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AttributeObject } from "../../interfaces/models/attribute";
|
|
2
|
-
import { OfferResponse } from "../../interfaces/models/offer";
|
|
2
|
+
import { OfferResponse, ProductVariantOfferResponse } from "../../interfaces/models/offer";
|
|
3
3
|
import { PageProductVariantResponse, Product, ProductAutocomplete, ProductReviewDto, ProductReviewRatings, ProductReviewsSummary, SearchThumbnailsAndAggregation } from "../../interfaces/models/product";
|
|
4
4
|
import { SearchProduct } from "../../interfaces/models/searchProduct";
|
|
5
5
|
import { SupplierSimpleView } from "../../interfaces/models/supplier";
|
|
@@ -121,7 +121,7 @@ export interface SearchProductsResponse extends Array<ProductAutocomplete> {
|
|
|
121
121
|
}
|
|
122
122
|
export interface GetProductVariantSuppliersResponse extends Array<SupplierSimpleView> {
|
|
123
123
|
}
|
|
124
|
-
export interface GetProductVariantOffersResponse extends Array<
|
|
124
|
+
export interface GetProductVariantOffersResponse extends Array<ProductVariantOfferResponse> {
|
|
125
125
|
}
|
|
126
126
|
export interface GetRelatedProductsResponse extends SearchThumbnailsAndAggregation {
|
|
127
127
|
}
|