@djust-b2b/djust-front-sdk 2.15.0 → 2.15.2

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.
@@ -9,10 +9,12 @@ export type CustomFieldValueDto = {
9
9
  export interface CustomFieldValueTeaserObject {
10
10
  customField: CustomFieldTeaserSearch;
11
11
  value: CustomFieldValueObject;
12
+ type?: string;
12
13
  }
13
14
  export interface CustomFieldValueObject {
14
15
  customField: CustomFieldSearch;
15
16
  value: string;
17
+ type?: string;
16
18
  }
17
19
  export interface CustomFieldTeaserSearch {
18
20
  externalId: string;
@@ -1,4 +1,4 @@
1
- import { CustomFieldValueDto } from "./custom-field";
1
+ import { CustomFieldValueDto, CustomFieldSearch } from "./custom-field";
2
2
  import { ProductVariantResponse } from "./product";
3
3
  import { SupplierResponse } from "./supplier";
4
4
  import { PriceDto } from "./price";
@@ -56,26 +56,43 @@ export interface ProductPrice {
56
56
  itemPriceTTC: number;
57
57
  unitPriceTTC: number;
58
58
  }
59
+ export interface OfferInventoryCustomFieldTeaser {
60
+ id: string;
61
+ externalId: string;
62
+ name: {
63
+ [key: string]: string;
64
+ };
65
+ type: string;
66
+ }
67
+ export interface OfferInventoryCustomFieldValueDetail {
68
+ customField: CustomFieldSearch;
69
+ value: number | boolean | string | null;
70
+ type: string;
71
+ }
72
+ export interface OfferInventoryCustomFieldValueItem {
73
+ customField: OfferInventoryCustomFieldTeaser;
74
+ value: OfferInventoryCustomFieldValueDetail;
75
+ }
59
76
  export interface OfferInventory {
60
77
  id: string;
61
78
  quantityPerItem: number;
62
79
  stock: number;
63
- brand: string;
80
+ brand: string | null;
64
81
  externalSource: string;
65
82
  status: string;
66
83
  currency: string;
67
84
  packingType: string;
68
85
  productUnit: string;
69
86
  variant: ProductVariantResponse;
70
- maxOrderQuantity: number;
87
+ maxOrderQuantity: number | null;
71
88
  minOrderQuantity: number;
72
- minStockAlert: number;
73
- minShippingPrice: number;
74
- minShippingPriceAdditional: number;
75
- minShippingType: string;
76
- minShippingZone: string;
77
- leadTimeToShip: number;
78
- customFieldValues: CustomFieldValueDto[];
89
+ minStockAlert: number | null;
90
+ minShippingPrice: number | null;
91
+ minShippingPriceAdditional: number | null;
92
+ minShippingType: string | null;
93
+ minShippingZone: string | null;
94
+ leadTimeToShip: number | null;
95
+ customFieldValues: OfferInventoryCustomFieldValueItem[];
79
96
  }
80
97
  export interface OfferResponse {
81
98
  estimatedDeliveryDates: DeliveryDates[];
@@ -125,24 +142,9 @@ export interface DeliveryTime {
125
142
  earliestDeliveryDate: string;
126
143
  latestDeliveryDate: string;
127
144
  }
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
145
  export interface ProductVariantOfferResponse {
144
146
  estimatedDeliveryDates: DeliveryDates[];
145
- offerInventory: ProductVariantOfferInventory;
147
+ offerInventory: OfferInventory;
146
148
  offerPrices: OfferPriceResponse[];
147
149
  supplier: SupplierResponse;
148
150
  }
@@ -35,7 +35,7 @@ export interface MasterQuoteDetail {
35
35
  export interface SupplierQuoteDto {
36
36
  billingAddress: AddressDto;
37
37
  createdAt: string;
38
- customFieldValue: CustomFieldValueObject[];
38
+ customFieldValues: CustomFieldValueObject[];
39
39
  customerName: string;
40
40
  customerThread: ThreadMessage[];
41
41
  customerUserId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djust-b2b/djust-front-sdk",
3
- "version": "2.15.0",
3
+ "version": "2.15.2",
4
4
  "description": "DJUST Front SDK is a versatile JavaScript Software Development Kit (SDK)",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",