@hectare/platform.clients.trading 1.1.251 → 1.1.253
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/index.d.ts +0 -1
- package/models/BidDetail.d.ts +251 -122
- package/models/ContractDetail.d.ts +251 -122
- package/models/CreateBid.d.ts +2 -1
- package/models/CreateBidOfferSchema.d.ts +2 -1
- package/models/HarvestSummarySchema.d.ts +0 -1
- package/models/ListingDetail.d.ts +3 -274
- package/models/PatchBid.d.ts +2 -1
- package/models/PatchBidOfferSchema.d.ts +2 -1
- package/models/SearchResultsBidSchema.d.ts +251 -122
- package/models/SearchResultsContractSchema.d.ts +251 -122
- package/models/SearchResultsListingSchema.d.ts +129 -0
- package/package.json +1 -1
- package/models/ListingSummary.d.ts +0 -258
- package/models/ListingSummary.js +0 -1
package/index.d.ts
CHANGED
|
@@ -36,7 +36,6 @@ export type { ListingBidInfoBid } from './models/ListingBidInfoBid.js';
|
|
|
36
36
|
export type { ListingDetail } from './models/ListingDetail.js';
|
|
37
37
|
export type { ListingDuplicateSchema } from './models/ListingDuplicateSchema.js';
|
|
38
38
|
export type { ListingNextAutoCloseDateSchema } from './models/ListingNextAutoCloseDateSchema.js';
|
|
39
|
-
export type { ListingSummary } from './models/ListingSummary.js';
|
|
40
39
|
export type { MarketingPlanCheckSchema } from './models/MarketingPlanCheckSchema.js';
|
|
41
40
|
export type { MarketingPlanDetailSchema } from './models/MarketingPlanDetailSchema.js';
|
|
42
41
|
export type { MarketingPlanSummarySchema } from './models/MarketingPlanSummarySchema.js';
|
package/models/BidDetail.d.ts
CHANGED
|
@@ -1,7 +1,131 @@
|
|
|
1
1
|
export type BidDetail = {
|
|
2
2
|
id: string;
|
|
3
3
|
listingId: string;
|
|
4
|
-
|
|
4
|
+
business: {
|
|
5
|
+
id: string | null;
|
|
6
|
+
name: string | null;
|
|
7
|
+
vetted: boolean;
|
|
8
|
+
organisationId: string;
|
|
9
|
+
organisationName: string;
|
|
10
|
+
createdAtUTC: string;
|
|
11
|
+
logo: string | null;
|
|
12
|
+
location?: {
|
|
13
|
+
what3words: string | null;
|
|
14
|
+
address: {
|
|
15
|
+
name?: string | null;
|
|
16
|
+
line1: string;
|
|
17
|
+
line2?: string | null;
|
|
18
|
+
line3?: string | null;
|
|
19
|
+
city?: string | null;
|
|
20
|
+
region?: string | null;
|
|
21
|
+
regionISO?: string | null;
|
|
22
|
+
postcode: string;
|
|
23
|
+
countryName?: string | null;
|
|
24
|
+
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
25
|
+
};
|
|
26
|
+
coordinates: {
|
|
27
|
+
lat: number;
|
|
28
|
+
lon: number;
|
|
29
|
+
} | null;
|
|
30
|
+
} | null;
|
|
31
|
+
bio?: string | null;
|
|
32
|
+
companyNumber?: string | null;
|
|
33
|
+
vatNumber?: string | null;
|
|
34
|
+
};
|
|
35
|
+
userId: string;
|
|
36
|
+
organisationId?: string;
|
|
37
|
+
createdAtUTC: string;
|
|
38
|
+
status: 'active' | 'accepted' | 'withdrawn' | 'expired' | 'expiredOffered' | 'expiredOfferDeclined' | 'closed';
|
|
39
|
+
expiresAtUTC: string;
|
|
40
|
+
options: Array<{
|
|
41
|
+
id: number;
|
|
42
|
+
status: 'active' | 'accepted' | 'inactive';
|
|
43
|
+
movement: {
|
|
44
|
+
months: Array<string>;
|
|
45
|
+
asAvailable: boolean | null;
|
|
46
|
+
};
|
|
47
|
+
pricePerUnit?: {
|
|
48
|
+
amount: number;
|
|
49
|
+
currency: string;
|
|
50
|
+
} | null;
|
|
51
|
+
pricing: {
|
|
52
|
+
exFarm: {
|
|
53
|
+
amount: number;
|
|
54
|
+
currency: string;
|
|
55
|
+
} | null;
|
|
56
|
+
delivered: {
|
|
57
|
+
amount: number;
|
|
58
|
+
currency: string;
|
|
59
|
+
} | null;
|
|
60
|
+
min: {
|
|
61
|
+
amount: number;
|
|
62
|
+
currency: string;
|
|
63
|
+
} | null;
|
|
64
|
+
max: {
|
|
65
|
+
amount: number;
|
|
66
|
+
currency: string;
|
|
67
|
+
} | null;
|
|
68
|
+
fixedPremium: {
|
|
69
|
+
amount: number;
|
|
70
|
+
currency: string;
|
|
71
|
+
} | null;
|
|
72
|
+
};
|
|
73
|
+
expiredOffer: {
|
|
74
|
+
name: string;
|
|
75
|
+
conversion: number;
|
|
76
|
+
weight?: number;
|
|
77
|
+
} | null;
|
|
78
|
+
expiredOfferExpireAtUTC: string | null;
|
|
79
|
+
acceptedAtUTC: string | null;
|
|
80
|
+
soldWeight: number | null;
|
|
81
|
+
haulageType: 'ex-farm' | 'delivered' | null;
|
|
82
|
+
buyerNotes: string | null;
|
|
83
|
+
}>;
|
|
84
|
+
terms: {
|
|
85
|
+
weight: {
|
|
86
|
+
min: {
|
|
87
|
+
name: string;
|
|
88
|
+
conversion: number;
|
|
89
|
+
weight?: number;
|
|
90
|
+
};
|
|
91
|
+
max: {
|
|
92
|
+
name: string;
|
|
93
|
+
conversion: number;
|
|
94
|
+
weight?: number;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
paymentDays: number;
|
|
98
|
+
paymentDayType?: 'fixed' | 'dayOfMonth' | null;
|
|
99
|
+
paymentType: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
|
|
100
|
+
haulageType?: 'ex-farm' | 'delivered' | null;
|
|
101
|
+
cropHome?: string | null;
|
|
102
|
+
sellerNotes: string | null;
|
|
103
|
+
deliveryPostcode: string | null;
|
|
104
|
+
};
|
|
105
|
+
contract?: {
|
|
106
|
+
id: string | null;
|
|
107
|
+
files: Array<{
|
|
108
|
+
name?: string;
|
|
109
|
+
id: string;
|
|
110
|
+
url?: string | null;
|
|
111
|
+
userId?: string | null;
|
|
112
|
+
userName?: string | null;
|
|
113
|
+
organisationId?: string | null;
|
|
114
|
+
createdAtUTC?: string | null;
|
|
115
|
+
} | null> | null;
|
|
116
|
+
reference: string | null;
|
|
117
|
+
};
|
|
118
|
+
buyerContact: {
|
|
119
|
+
email: string;
|
|
120
|
+
phone: {
|
|
121
|
+
callingCode: string;
|
|
122
|
+
number: string;
|
|
123
|
+
};
|
|
124
|
+
familyName: string;
|
|
125
|
+
givenName: string;
|
|
126
|
+
};
|
|
127
|
+
requiresContract: boolean;
|
|
128
|
+
listing: {
|
|
5
129
|
id: string;
|
|
6
130
|
isMyListing: boolean;
|
|
7
131
|
isMyOrganisationsListing: boolean;
|
|
@@ -258,129 +382,134 @@ export type BidDetail = {
|
|
|
258
382
|
sellerListingReasonDetail: string | null;
|
|
259
383
|
} | null;
|
|
260
384
|
marketingPlanId?: string;
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
385
|
+
tags: Array<string>;
|
|
386
|
+
bids: Array<{
|
|
387
|
+
id: string;
|
|
388
|
+
listingId: string;
|
|
389
|
+
business: {
|
|
390
|
+
id: string | null;
|
|
391
|
+
name: string | null;
|
|
392
|
+
vetted: boolean;
|
|
393
|
+
organisationId: string;
|
|
394
|
+
organisationName: string;
|
|
395
|
+
createdAtUTC: string;
|
|
396
|
+
logo: string | null;
|
|
397
|
+
location?: {
|
|
398
|
+
what3words: string | null;
|
|
399
|
+
address: {
|
|
400
|
+
name?: string | null;
|
|
401
|
+
line1: string;
|
|
402
|
+
line2?: string | null;
|
|
403
|
+
line3?: string | null;
|
|
404
|
+
city?: string | null;
|
|
405
|
+
region?: string | null;
|
|
406
|
+
regionISO?: string | null;
|
|
407
|
+
postcode: string;
|
|
408
|
+
countryName?: string | null;
|
|
409
|
+
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
410
|
+
};
|
|
411
|
+
coordinates: {
|
|
412
|
+
lat: number;
|
|
413
|
+
lon: number;
|
|
414
|
+
} | null;
|
|
415
|
+
} | null;
|
|
416
|
+
bio?: string | null;
|
|
417
|
+
companyNumber?: string | null;
|
|
418
|
+
vatNumber?: string | null;
|
|
283
419
|
};
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
420
|
+
userId: string;
|
|
421
|
+
organisationId?: string;
|
|
422
|
+
createdAtUTC: string;
|
|
423
|
+
status: 'active' | 'accepted' | 'withdrawn' | 'expired' | 'expiredOffered' | 'expiredOfferDeclined' | 'closed';
|
|
424
|
+
expiresAtUTC: string;
|
|
425
|
+
options: Array<{
|
|
426
|
+
id: number;
|
|
427
|
+
status: 'active' | 'accepted' | 'inactive';
|
|
428
|
+
movement: {
|
|
429
|
+
months: Array<string>;
|
|
430
|
+
asAvailable: boolean | null;
|
|
431
|
+
};
|
|
432
|
+
pricePerUnit?: {
|
|
433
|
+
amount: number;
|
|
434
|
+
currency: string;
|
|
435
|
+
} | null;
|
|
436
|
+
pricing: {
|
|
437
|
+
exFarm: {
|
|
438
|
+
amount: number;
|
|
439
|
+
currency: string;
|
|
440
|
+
} | null;
|
|
441
|
+
delivered: {
|
|
442
|
+
amount: number;
|
|
443
|
+
currency: string;
|
|
444
|
+
} | null;
|
|
445
|
+
min: {
|
|
446
|
+
amount: number;
|
|
447
|
+
currency: string;
|
|
448
|
+
} | null;
|
|
449
|
+
max: {
|
|
450
|
+
amount: number;
|
|
451
|
+
currency: string;
|
|
452
|
+
} | null;
|
|
453
|
+
fixedPremium: {
|
|
454
|
+
amount: number;
|
|
455
|
+
currency: string;
|
|
456
|
+
} | null;
|
|
457
|
+
};
|
|
458
|
+
expiredOffer: {
|
|
459
|
+
name: string;
|
|
460
|
+
conversion: number;
|
|
461
|
+
weight?: number;
|
|
462
|
+
} | null;
|
|
463
|
+
expiredOfferExpireAtUTC: string | null;
|
|
464
|
+
acceptedAtUTC: string | null;
|
|
465
|
+
soldWeight: number | null;
|
|
466
|
+
haulageType: 'ex-farm' | 'delivered' | null;
|
|
467
|
+
buyerNotes: string | null;
|
|
468
|
+
}>;
|
|
469
|
+
terms: {
|
|
470
|
+
weight: {
|
|
471
|
+
min: {
|
|
472
|
+
name: string;
|
|
473
|
+
conversion: number;
|
|
474
|
+
weight?: number;
|
|
475
|
+
};
|
|
476
|
+
max: {
|
|
477
|
+
name: string;
|
|
478
|
+
conversion: number;
|
|
479
|
+
weight?: number;
|
|
480
|
+
};
|
|
481
|
+
};
|
|
482
|
+
paymentDays: number;
|
|
483
|
+
paymentDayType?: 'fixed' | 'dayOfMonth' | null;
|
|
484
|
+
paymentType: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
|
|
485
|
+
haulageType?: 'ex-farm' | 'delivered' | null;
|
|
486
|
+
cropHome?: string | null;
|
|
487
|
+
sellerNotes: string | null;
|
|
488
|
+
deliveryPostcode: string | null;
|
|
348
489
|
};
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
490
|
+
contract?: {
|
|
491
|
+
id: string | null;
|
|
492
|
+
files: Array<{
|
|
493
|
+
name?: string;
|
|
494
|
+
id: string;
|
|
495
|
+
url?: string | null;
|
|
496
|
+
userId?: string | null;
|
|
497
|
+
userName?: string | null;
|
|
498
|
+
organisationId?: string | null;
|
|
499
|
+
createdAtUTC?: string | null;
|
|
500
|
+
} | null> | null;
|
|
501
|
+
reference: string | null;
|
|
353
502
|
};
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
files: Array<{
|
|
366
|
-
name?: string;
|
|
367
|
-
id: string;
|
|
368
|
-
url?: string | null;
|
|
369
|
-
userId?: string | null;
|
|
370
|
-
userName?: string | null;
|
|
371
|
-
organisationId?: string | null;
|
|
372
|
-
createdAtUTC?: string | null;
|
|
373
|
-
} | null> | null;
|
|
374
|
-
reference: string | null;
|
|
375
|
-
};
|
|
376
|
-
buyerContact: {
|
|
377
|
-
email: string;
|
|
378
|
-
phone: {
|
|
379
|
-
callingCode: string;
|
|
380
|
-
number: string;
|
|
381
|
-
};
|
|
382
|
-
familyName: string;
|
|
383
|
-
givenName: string;
|
|
503
|
+
buyerContact: {
|
|
504
|
+
email: string;
|
|
505
|
+
phone: {
|
|
506
|
+
callingCode: string;
|
|
507
|
+
number: string;
|
|
508
|
+
};
|
|
509
|
+
familyName: string;
|
|
510
|
+
givenName: string;
|
|
511
|
+
};
|
|
512
|
+
requiresContract: boolean;
|
|
513
|
+
}>;
|
|
384
514
|
};
|
|
385
|
-
requiresContract: boolean;
|
|
386
515
|
};
|