@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 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';
@@ -1,7 +1,131 @@
1
1
  export type BidDetail = {
2
2
  id: string;
3
3
  listingId: string;
4
- listing?: {
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
- business: {
263
- id: string | null;
264
- name: string | null;
265
- vetted: boolean;
266
- organisationId: string;
267
- organisationName: string;
268
- createdAtUTC: string;
269
- logo: string | null;
270
- location?: {
271
- what3words: string | null;
272
- address: {
273
- name?: string | null;
274
- line1: string;
275
- line2?: string | null;
276
- line3?: string | null;
277
- city?: string | null;
278
- region?: string | null;
279
- regionISO?: string | null;
280
- postcode: string;
281
- countryName?: string | null;
282
- countryISO: 'GB' | 'US' | 'ZA' | 'FR';
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
- coordinates: {
285
- lat: number;
286
- lon: number;
287
- } | null;
288
- } | null;
289
- bio?: string | null;
290
- companyNumber?: string | null;
291
- vatNumber?: string | null;
292
- };
293
- userId: string;
294
- organisationId?: string;
295
- createdAtUTC: string;
296
- status: 'active' | 'accepted' | 'withdrawn' | 'expired' | 'expiredOffered' | 'expiredOfferDeclined' | 'closed';
297
- expiresAtUTC: string;
298
- options: Array<{
299
- id: number;
300
- status: 'active' | 'accepted' | 'inactive';
301
- movement: {
302
- months: Array<string>;
303
- asAvailable: boolean | null;
304
- };
305
- pricePerUnit?: {
306
- amount: number;
307
- currency: string;
308
- } | null;
309
- pricing: {
310
- exFarm: {
311
- amount: number;
312
- currency: string;
313
- } | null;
314
- delivered: {
315
- amount: number;
316
- currency: string;
317
- } | null;
318
- min: {
319
- amount: number;
320
- currency: string;
321
- } | null;
322
- max: {
323
- amount: number;
324
- currency: string;
325
- } | null;
326
- fixedPremium: {
327
- amount: number;
328
- currency: string;
329
- } | null;
330
- };
331
- expiredOffer: {
332
- name: string;
333
- conversion: number;
334
- weight?: number;
335
- } | null;
336
- expiredOfferExpireAtUTC: string | null;
337
- acceptedAtUTC: string | null;
338
- soldWeight: number | null;
339
- haulageType: 'ex-farm' | 'delivered' | null;
340
- buyerNotes: string | null;
341
- }>;
342
- terms: {
343
- weight: {
344
- min: {
345
- name: string;
346
- conversion: number;
347
- weight?: number;
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
- max: {
350
- name: string;
351
- conversion: number;
352
- weight?: number;
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
- paymentDays: number;
356
- paymentDayType?: 'fixed' | 'dayOfMonth' | null;
357
- paymentType: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
358
- haulageType?: 'ex-farm' | 'delivered' | null;
359
- cropHome?: string | null;
360
- sellerNotes: string | null;
361
- deliveryPostcode: string | null;
362
- };
363
- contract?: {
364
- id: string | null;
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
  };