@hectare/platform.clients.trading 1.1.232 → 1.1.233
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/models/ContractDetail.d.ts +388 -0
- package/package.json +1 -1
|
@@ -97,4 +97,392 @@ export type ContractDetail = {
|
|
|
97
97
|
sellerNotes: string;
|
|
98
98
|
buyerNotes: string;
|
|
99
99
|
regionISO: string;
|
|
100
|
+
bid?: {
|
|
101
|
+
id: string;
|
|
102
|
+
listingId: string;
|
|
103
|
+
listing?: {
|
|
104
|
+
id: string;
|
|
105
|
+
isMyListing: boolean;
|
|
106
|
+
isMyOrganisationsListing: boolean;
|
|
107
|
+
createdAtUTC: string;
|
|
108
|
+
status: 'active' | 'closed' | 'traded';
|
|
109
|
+
substatus: 'unsold' | 'archived' | 'scheduled' | 'open' | 'in-review' | 'post-review' | null;
|
|
110
|
+
tradingStatus: 'with-buyers' | 'scheduled' | 'review' | 'request-trade' | 'expired' | 'no-offers' | 'ended';
|
|
111
|
+
business: {
|
|
112
|
+
organisationId: string;
|
|
113
|
+
organisationCreatedAtUTC?: string;
|
|
114
|
+
organisationName: string;
|
|
115
|
+
organisationLogo?: string;
|
|
116
|
+
organisationVetted: boolean;
|
|
117
|
+
businessUnitId: string;
|
|
118
|
+
businessUnitName: string;
|
|
119
|
+
businessCollectionAddressId: number | null;
|
|
120
|
+
businessCollectionAddress: {
|
|
121
|
+
id: number | null;
|
|
122
|
+
reference: string | null;
|
|
123
|
+
location: {
|
|
124
|
+
what3words: string | null;
|
|
125
|
+
address: {
|
|
126
|
+
name?: string | null;
|
|
127
|
+
line1: string;
|
|
128
|
+
line2?: string | null;
|
|
129
|
+
line3?: string | null;
|
|
130
|
+
city?: string | null;
|
|
131
|
+
region?: string | null;
|
|
132
|
+
regionISO?: string | null;
|
|
133
|
+
postcode: string;
|
|
134
|
+
countryName?: string | null;
|
|
135
|
+
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
136
|
+
};
|
|
137
|
+
coordinates: {
|
|
138
|
+
lat: number;
|
|
139
|
+
lon: number;
|
|
140
|
+
} | null;
|
|
141
|
+
} | null;
|
|
142
|
+
email?: string | null;
|
|
143
|
+
givenName: string | null;
|
|
144
|
+
familyName: string | null;
|
|
145
|
+
phone: {
|
|
146
|
+
callingCode: string;
|
|
147
|
+
number: string;
|
|
148
|
+
};
|
|
149
|
+
type: 'collection' | 'business' | 'delivery' | 'business-collection';
|
|
150
|
+
} | null;
|
|
151
|
+
id: string;
|
|
152
|
+
userId: string;
|
|
153
|
+
name: string;
|
|
154
|
+
email: string;
|
|
155
|
+
phone: {
|
|
156
|
+
callingCode: string;
|
|
157
|
+
number: string;
|
|
158
|
+
};
|
|
159
|
+
location: {
|
|
160
|
+
what3words: string | null;
|
|
161
|
+
address: {
|
|
162
|
+
name?: string | null;
|
|
163
|
+
line1: string;
|
|
164
|
+
line2?: string | null;
|
|
165
|
+
line3?: string | null;
|
|
166
|
+
city?: string | null;
|
|
167
|
+
region?: string | null;
|
|
168
|
+
regionISO?: string | null;
|
|
169
|
+
postcode: string;
|
|
170
|
+
countryName?: string | null;
|
|
171
|
+
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
172
|
+
};
|
|
173
|
+
coordinates: {
|
|
174
|
+
lat: number;
|
|
175
|
+
lon: number;
|
|
176
|
+
} | null;
|
|
177
|
+
} | null;
|
|
178
|
+
assurance: {
|
|
179
|
+
id: string | null;
|
|
180
|
+
key?: string | null;
|
|
181
|
+
body: 'RT' | 'SQC';
|
|
182
|
+
name?: string | null;
|
|
183
|
+
location?: string | null;
|
|
184
|
+
} | null;
|
|
185
|
+
holdingNumber?: string;
|
|
186
|
+
collectionLocation?: {
|
|
187
|
+
what3words: string | null;
|
|
188
|
+
address: {
|
|
189
|
+
name?: string | null;
|
|
190
|
+
line1: string;
|
|
191
|
+
line2?: string | null;
|
|
192
|
+
line3?: string | null;
|
|
193
|
+
city?: string | null;
|
|
194
|
+
region?: string | null;
|
|
195
|
+
regionISO?: string | null;
|
|
196
|
+
postcode: string;
|
|
197
|
+
countryName?: string | null;
|
|
198
|
+
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
199
|
+
};
|
|
200
|
+
coordinates: {
|
|
201
|
+
lat: number;
|
|
202
|
+
lon: number;
|
|
203
|
+
} | null;
|
|
204
|
+
} | null;
|
|
205
|
+
assuranceScheme?: 'RT' | 'SQC';
|
|
206
|
+
assuranceId?: string;
|
|
207
|
+
};
|
|
208
|
+
details: {
|
|
209
|
+
startDateUTC: string;
|
|
210
|
+
endDateUTC: string | null;
|
|
211
|
+
reviewEndDateUTC: string | null;
|
|
212
|
+
postReviewEndDateUTC: string | null;
|
|
213
|
+
price: {
|
|
214
|
+
amount: number;
|
|
215
|
+
currency: string;
|
|
216
|
+
} | null;
|
|
217
|
+
movementPeriod: {
|
|
218
|
+
startDateUTC: string;
|
|
219
|
+
endDateUTC: string;
|
|
220
|
+
type: 'date' | 'month';
|
|
221
|
+
excludedDatesUTC?: Array<string> | null;
|
|
222
|
+
asAvailable?: boolean | null;
|
|
223
|
+
};
|
|
224
|
+
movement: {
|
|
225
|
+
months: Array<string>;
|
|
226
|
+
asAvailable: boolean | null;
|
|
227
|
+
};
|
|
228
|
+
buyerNotes: string | null;
|
|
229
|
+
files?: Array<{
|
|
230
|
+
name?: string;
|
|
231
|
+
id: string;
|
|
232
|
+
url?: string | null;
|
|
233
|
+
userId?: string | null;
|
|
234
|
+
userName?: string | null;
|
|
235
|
+
organisationId?: string | null;
|
|
236
|
+
createdAtUTC?: string | null;
|
|
237
|
+
} | null>;
|
|
238
|
+
targetPrice: {
|
|
239
|
+
amount: number;
|
|
240
|
+
currency: string;
|
|
241
|
+
} | null;
|
|
242
|
+
guidePrice: {
|
|
243
|
+
amount: number;
|
|
244
|
+
currency: string;
|
|
245
|
+
} | null;
|
|
246
|
+
guidePriceMin: {
|
|
247
|
+
amount: number;
|
|
248
|
+
currency: string;
|
|
249
|
+
} | null;
|
|
250
|
+
guidePriceMax: {
|
|
251
|
+
amount: number;
|
|
252
|
+
currency: string;
|
|
253
|
+
} | null;
|
|
254
|
+
isBasePremOnly?: boolean;
|
|
255
|
+
contractType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
|
|
256
|
+
haulageType: 'ex-farm' | 'delivered' | 'both' | null;
|
|
257
|
+
haulageTypeTASCC?: boolean | null;
|
|
258
|
+
};
|
|
259
|
+
inventory: {
|
|
260
|
+
id?: string;
|
|
261
|
+
type: 'crop' | 'produce';
|
|
262
|
+
harvestYear: string;
|
|
263
|
+
commodity: {
|
|
264
|
+
commodity: {
|
|
265
|
+
id: number;
|
|
266
|
+
name: string;
|
|
267
|
+
};
|
|
268
|
+
type: {
|
|
269
|
+
id: number;
|
|
270
|
+
name: string;
|
|
271
|
+
};
|
|
272
|
+
grade: {
|
|
273
|
+
id: number;
|
|
274
|
+
name: string;
|
|
275
|
+
};
|
|
276
|
+
variety?: string;
|
|
277
|
+
varieties: Array<string>;
|
|
278
|
+
attributes: Array<{
|
|
279
|
+
id: number;
|
|
280
|
+
name: string;
|
|
281
|
+
}>;
|
|
282
|
+
tags?: Array<number>;
|
|
283
|
+
weight: {
|
|
284
|
+
name: string;
|
|
285
|
+
conversion: number;
|
|
286
|
+
weight?: number;
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
weight: {
|
|
290
|
+
min: {
|
|
291
|
+
name: string;
|
|
292
|
+
conversion: number;
|
|
293
|
+
weight?: number;
|
|
294
|
+
};
|
|
295
|
+
max: {
|
|
296
|
+
name: string;
|
|
297
|
+
conversion: number;
|
|
298
|
+
weight?: number;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
measures: Array<{
|
|
302
|
+
specification: {
|
|
303
|
+
id: number;
|
|
304
|
+
name: string;
|
|
305
|
+
unit: string;
|
|
306
|
+
};
|
|
307
|
+
min: number | null;
|
|
308
|
+
max: number | null;
|
|
309
|
+
}> | null;
|
|
310
|
+
hasSampled: boolean | null;
|
|
311
|
+
customMeasures: boolean | null;
|
|
312
|
+
};
|
|
313
|
+
activeBids: number;
|
|
314
|
+
bidInfo: {
|
|
315
|
+
count: number;
|
|
316
|
+
acceptedCount: number;
|
|
317
|
+
activeCount: number;
|
|
318
|
+
expiredCount: number;
|
|
319
|
+
withdrawnCount?: number;
|
|
320
|
+
nextExpiryUTC: string | null;
|
|
321
|
+
prevExpiryUTC: string | null;
|
|
322
|
+
minPrice: {
|
|
323
|
+
amount: number;
|
|
324
|
+
currency: string;
|
|
325
|
+
} | null;
|
|
326
|
+
maxPrice: {
|
|
327
|
+
amount: number;
|
|
328
|
+
currency: string;
|
|
329
|
+
} | null;
|
|
330
|
+
soldWeight: number | null;
|
|
331
|
+
bids: Record<string, {
|
|
332
|
+
userId: string;
|
|
333
|
+
userFullName: string;
|
|
334
|
+
status: 'active' | 'accepted' | 'withdrawn' | 'expired' | 'expiredOffered' | 'expiredOfferDeclined' | 'closed';
|
|
335
|
+
weight: {
|
|
336
|
+
min: number;
|
|
337
|
+
max: number;
|
|
338
|
+
};
|
|
339
|
+
options: Array<{
|
|
340
|
+
id: number;
|
|
341
|
+
soldWeightKG?: number | null;
|
|
342
|
+
soldWeight: number | null;
|
|
343
|
+
pricePerUnit?: {
|
|
344
|
+
amount: number;
|
|
345
|
+
currency: string;
|
|
346
|
+
};
|
|
347
|
+
}>;
|
|
348
|
+
createdAtUTC: string;
|
|
349
|
+
updatedAtUTC: string;
|
|
350
|
+
}>;
|
|
351
|
+
};
|
|
352
|
+
tradeRequestId: string | null;
|
|
353
|
+
tradeRequestUserId: string | null;
|
|
354
|
+
wantedAdId: string | null;
|
|
355
|
+
wantedAdUserId: string | null;
|
|
356
|
+
relistedFromListingId?: string;
|
|
357
|
+
preferences: Array<string>;
|
|
358
|
+
pending?: boolean;
|
|
359
|
+
feedback?: {
|
|
360
|
+
user: string;
|
|
361
|
+
note: string | null;
|
|
362
|
+
createdAtUTC: string | null;
|
|
363
|
+
noBidReason: string | null;
|
|
364
|
+
noConversionReason: string;
|
|
365
|
+
sellerTargetPrice: {
|
|
366
|
+
amount: number;
|
|
367
|
+
currency: string;
|
|
368
|
+
} | null;
|
|
369
|
+
sellerTargetPriceAutoOpen: boolean | null;
|
|
370
|
+
sellerListingReasonIds: Array<number> | null;
|
|
371
|
+
sellerListingReasonDetail: string | null;
|
|
372
|
+
} | null;
|
|
373
|
+
marketingPlanId?: string;
|
|
374
|
+
};
|
|
375
|
+
business: {
|
|
376
|
+
id: string | null;
|
|
377
|
+
name: string | null;
|
|
378
|
+
vetted: boolean;
|
|
379
|
+
organisationId: string;
|
|
380
|
+
organisationName: string;
|
|
381
|
+
createdAtUTC: string;
|
|
382
|
+
logo: string | null;
|
|
383
|
+
location?: {
|
|
384
|
+
what3words: string | null;
|
|
385
|
+
address: {
|
|
386
|
+
name?: string | null;
|
|
387
|
+
line1: string;
|
|
388
|
+
line2?: string | null;
|
|
389
|
+
line3?: string | null;
|
|
390
|
+
city?: string | null;
|
|
391
|
+
region?: string | null;
|
|
392
|
+
regionISO?: string | null;
|
|
393
|
+
postcode: string;
|
|
394
|
+
countryName?: string | null;
|
|
395
|
+
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
396
|
+
};
|
|
397
|
+
coordinates: {
|
|
398
|
+
lat: number;
|
|
399
|
+
lon: number;
|
|
400
|
+
} | null;
|
|
401
|
+
} | null;
|
|
402
|
+
bio?: string | null;
|
|
403
|
+
companyNumber?: string | null;
|
|
404
|
+
vatNumber?: string | null;
|
|
405
|
+
};
|
|
406
|
+
userId: string;
|
|
407
|
+
userFullName?: string;
|
|
408
|
+
organisationId?: string;
|
|
409
|
+
organisationCreatedAtUTC?: string;
|
|
410
|
+
organisationName?: string;
|
|
411
|
+
organisationLogo?: string;
|
|
412
|
+
organisationVetted?: boolean;
|
|
413
|
+
createdAtUTC: string;
|
|
414
|
+
status: 'active' | 'accepted' | 'withdrawn' | 'expired' | 'expiredOffered' | 'expiredOfferDeclined' | 'closed';
|
|
415
|
+
expiresAtUTC: string;
|
|
416
|
+
options: Array<{
|
|
417
|
+
id: number;
|
|
418
|
+
status: 'active' | 'accepted' | 'inactive';
|
|
419
|
+
movementPeriod: {
|
|
420
|
+
startDateUTC: string;
|
|
421
|
+
endDateUTC: string;
|
|
422
|
+
type: 'date' | 'month';
|
|
423
|
+
};
|
|
424
|
+
movement: {
|
|
425
|
+
months: Array<string>;
|
|
426
|
+
asAvailable: boolean | null;
|
|
427
|
+
};
|
|
428
|
+
pricePerUnit: {
|
|
429
|
+
amount: number;
|
|
430
|
+
currency: string;
|
|
431
|
+
};
|
|
432
|
+
expiredOffer: {
|
|
433
|
+
name: string;
|
|
434
|
+
conversion: number;
|
|
435
|
+
weight?: number;
|
|
436
|
+
} | null;
|
|
437
|
+
expiredOfferExpireAtUTC: string | null;
|
|
438
|
+
acceptedAtUTC: string | null;
|
|
439
|
+
soldWeight: number | null;
|
|
440
|
+
haulageType: 'ex-farm' | 'delivered';
|
|
441
|
+
buyerNotes: string | null;
|
|
442
|
+
}>;
|
|
443
|
+
terms: {
|
|
444
|
+
weight: {
|
|
445
|
+
min: {
|
|
446
|
+
name: string;
|
|
447
|
+
conversion: number;
|
|
448
|
+
weight?: number;
|
|
449
|
+
};
|
|
450
|
+
max: {
|
|
451
|
+
name: string;
|
|
452
|
+
conversion: number;
|
|
453
|
+
weight?: number;
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
paymentDays: number;
|
|
457
|
+
paymentDayType?: 'fixed' | 'dayOfMonth' | null;
|
|
458
|
+
paymentType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
|
|
459
|
+
haulageType?: 'ex-farm' | 'delivered';
|
|
460
|
+
cropHome?: string | null;
|
|
461
|
+
sellerNotes: string | null;
|
|
462
|
+
deliveryPostcode: string | null;
|
|
463
|
+
};
|
|
464
|
+
contract?: {
|
|
465
|
+
id: string | null;
|
|
466
|
+
files: Array<{
|
|
467
|
+
name?: string;
|
|
468
|
+
id: string;
|
|
469
|
+
url?: string | null;
|
|
470
|
+
userId?: string | null;
|
|
471
|
+
userName?: string | null;
|
|
472
|
+
organisationId?: string | null;
|
|
473
|
+
createdAtUTC?: string | null;
|
|
474
|
+
} | null> | null;
|
|
475
|
+
reference: string | null;
|
|
476
|
+
};
|
|
477
|
+
buyerContact: {
|
|
478
|
+
email: string;
|
|
479
|
+
phone: {
|
|
480
|
+
callingCode: string;
|
|
481
|
+
number: string;
|
|
482
|
+
};
|
|
483
|
+
familyName: string;
|
|
484
|
+
givenName: string;
|
|
485
|
+
};
|
|
486
|
+
requiresContract: boolean;
|
|
487
|
+
};
|
|
100
488
|
};
|