@hectare/platform.clients.trading 1.1.246 → 1.1.247

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.
@@ -110,7 +110,7 @@ export type BidDetail = {
110
110
  amount: number;
111
111
  currency: string;
112
112
  } | null;
113
- contractType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
113
+ contractType: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
114
114
  haulageType: 'ex-farm' | 'delivered' | 'both' | null;
115
115
  haulageTypeTASCC?: boolean | null;
116
116
  };
@@ -210,6 +210,28 @@ export type BidDetail = {
210
210
  pricePerUnit?: {
211
211
  amount: number;
212
212
  currency: string;
213
+ } | null;
214
+ pricing?: {
215
+ exFarm: {
216
+ amount: number;
217
+ currency: string;
218
+ } | null;
219
+ delivered: {
220
+ amount: number;
221
+ currency: string;
222
+ } | null;
223
+ min: {
224
+ amount: number;
225
+ currency: string;
226
+ } | null;
227
+ max: {
228
+ amount: number;
229
+ currency: string;
230
+ } | null;
231
+ fixedPremium: {
232
+ amount: number;
233
+ currency: string;
234
+ } | null;
213
235
  };
214
236
  }>;
215
237
  createdAtUTC: string;
@@ -280,9 +302,31 @@ export type BidDetail = {
280
302
  months: Array<string>;
281
303
  asAvailable: boolean | null;
282
304
  };
283
- pricePerUnit: {
305
+ pricePerUnit?: {
284
306
  amount: number;
285
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;
286
330
  };
287
331
  expiredOffer: {
288
332
  name: string;
@@ -292,7 +336,7 @@ export type BidDetail = {
292
336
  expiredOfferExpireAtUTC: string | null;
293
337
  acceptedAtUTC: string | null;
294
338
  soldWeight: number | null;
295
- haulageType: 'ex-farm' | 'delivered';
339
+ haulageType: 'ex-farm' | 'delivered' | null;
296
340
  buyerNotes: string | null;
297
341
  }>;
298
342
  terms: {
@@ -310,8 +354,8 @@ export type BidDetail = {
310
354
  };
311
355
  paymentDays: number;
312
356
  paymentDayType?: 'fixed' | 'dayOfMonth' | null;
313
- paymentType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
314
- haulageType?: 'ex-farm' | 'delivered';
357
+ paymentType: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
358
+ haulageType?: 'ex-farm' | 'delivered' | null;
315
359
  cropHome?: string | null;
316
360
  sellerNotes: string | null;
317
361
  deliveryPostcode: string | null;
@@ -13,15 +13,37 @@ export type ContractDetail = {
13
13
  conversion: number;
14
14
  weight?: number;
15
15
  };
16
- priceType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
16
+ priceType: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
17
17
  totalPrice: {
18
18
  amount: number;
19
19
  currency: string;
20
20
  } | null;
21
- pricePerUnit: {
21
+ pricePerUnit?: {
22
22
  amount: number;
23
23
  currency: string;
24
24
  } | null;
25
+ pricing: {
26
+ exFarm: {
27
+ amount: number;
28
+ currency: string;
29
+ } | null;
30
+ delivered: {
31
+ amount: number;
32
+ currency: string;
33
+ } | null;
34
+ min: {
35
+ amount: number;
36
+ currency: string;
37
+ } | null;
38
+ max: {
39
+ amount: number;
40
+ currency: string;
41
+ } | null;
42
+ fixedPremium: {
43
+ amount: number;
44
+ currency: string;
45
+ } | null;
46
+ };
25
47
  paymentDays: number;
26
48
  haulageType: 'ex-farm' | 'delivered' | 'both' | null;
27
49
  contractDateUTC: string;
@@ -270,7 +292,7 @@ export type ContractDetail = {
270
292
  amount: number;
271
293
  currency: string;
272
294
  } | null;
273
- contractType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
295
+ contractType: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
274
296
  haulageType: 'ex-farm' | 'delivered' | 'both' | null;
275
297
  haulageTypeTASCC?: boolean | null;
276
298
  };
@@ -370,6 +392,28 @@ export type ContractDetail = {
370
392
  pricePerUnit?: {
371
393
  amount: number;
372
394
  currency: string;
395
+ } | null;
396
+ pricing?: {
397
+ exFarm: {
398
+ amount: number;
399
+ currency: string;
400
+ } | null;
401
+ delivered: {
402
+ amount: number;
403
+ currency: string;
404
+ } | null;
405
+ min: {
406
+ amount: number;
407
+ currency: string;
408
+ } | null;
409
+ max: {
410
+ amount: number;
411
+ currency: string;
412
+ } | null;
413
+ fixedPremium: {
414
+ amount: number;
415
+ currency: string;
416
+ } | null;
373
417
  };
374
418
  }>;
375
419
  createdAtUTC: string;
@@ -440,9 +484,31 @@ export type ContractDetail = {
440
484
  months: Array<string>;
441
485
  asAvailable: boolean | null;
442
486
  };
443
- pricePerUnit: {
487
+ pricePerUnit?: {
444
488
  amount: number;
445
489
  currency: string;
490
+ } | null;
491
+ pricing: {
492
+ exFarm: {
493
+ amount: number;
494
+ currency: string;
495
+ } | null;
496
+ delivered: {
497
+ amount: number;
498
+ currency: string;
499
+ } | null;
500
+ min: {
501
+ amount: number;
502
+ currency: string;
503
+ } | null;
504
+ max: {
505
+ amount: number;
506
+ currency: string;
507
+ } | null;
508
+ fixedPremium: {
509
+ amount: number;
510
+ currency: string;
511
+ } | null;
446
512
  };
447
513
  expiredOffer: {
448
514
  name: string;
@@ -452,7 +518,7 @@ export type ContractDetail = {
452
518
  expiredOfferExpireAtUTC: string | null;
453
519
  acceptedAtUTC: string | null;
454
520
  soldWeight: number | null;
455
- haulageType: 'ex-farm' | 'delivered';
521
+ haulageType: 'ex-farm' | 'delivered' | null;
456
522
  buyerNotes: string | null;
457
523
  }>;
458
524
  terms: {
@@ -470,8 +536,8 @@ export type ContractDetail = {
470
536
  };
471
537
  paymentDays: number;
472
538
  paymentDayType?: 'fixed' | 'dayOfMonth' | null;
473
- paymentType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
474
- haulageType?: 'ex-farm' | 'delivered';
539
+ paymentType: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
540
+ haulageType?: 'ex-farm' | 'delivered' | null;
475
541
  cropHome?: string | null;
476
542
  sellerNotes: string | null;
477
543
  deliveryPostcode: string | null;
@@ -2,15 +2,37 @@ export type CreateBid = {
2
2
  listingId: string;
3
3
  businessId: string;
4
4
  offers: Array<{
5
- price: {
5
+ price?: {
6
6
  amount: number;
7
7
  currency: string;
8
+ } | null;
9
+ pricing?: {
10
+ exFarm: {
11
+ amount: number;
12
+ currency: string;
13
+ } | null;
14
+ delivered: {
15
+ amount: number;
16
+ currency: string;
17
+ } | null;
18
+ min: {
19
+ amount: number;
20
+ currency: string;
21
+ } | null;
22
+ max: {
23
+ amount: number;
24
+ currency: string;
25
+ } | null;
26
+ fixedPremium: {
27
+ amount: number;
28
+ currency: string;
29
+ } | null;
8
30
  };
9
31
  movement: {
10
32
  month: string;
11
33
  asAvailable: boolean | null;
12
34
  };
13
- haulageType: 'ex-farm' | 'delivered';
35
+ haulageType: 'ex-farm' | 'delivered' | null;
14
36
  }>;
15
37
  terms: {
16
38
  weight: {
@@ -19,7 +41,7 @@ export type CreateBid = {
19
41
  };
20
42
  paymentDays: number;
21
43
  paymentDayType?: 'fixed' | 'dayOfMonth' | null;
22
- paymentType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
44
+ paymentType: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
23
45
  deliveryPostcode?: string | null;
24
46
  cropHome?: string | null;
25
47
  sellerNotes?: string | null;
@@ -1,11 +1,33 @@
1
1
  export type CreateBidOfferSchema = {
2
- price: {
2
+ price?: {
3
3
  amount: number;
4
4
  currency: string;
5
+ } | null;
6
+ pricing?: {
7
+ exFarm: {
8
+ amount: number;
9
+ currency: string;
10
+ } | null;
11
+ delivered: {
12
+ amount: number;
13
+ currency: string;
14
+ } | null;
15
+ min: {
16
+ amount: number;
17
+ currency: string;
18
+ } | null;
19
+ max: {
20
+ amount: number;
21
+ currency: string;
22
+ } | null;
23
+ fixedPremium: {
24
+ amount: number;
25
+ currency: string;
26
+ } | null;
5
27
  };
6
28
  movement: {
7
29
  month: string;
8
30
  asAvailable: boolean | null;
9
31
  };
10
- haulageType: 'ex-farm' | 'delivered';
32
+ haulageType: 'ex-farm' | 'delivered' | null;
11
33
  };
@@ -3,9 +3,9 @@ export type CreateContractSchema = {
3
3
  sellerBusinessId: string;
4
4
  details: {
5
5
  reference: string | null;
6
- contractType?: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
6
+ contractType?: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
7
7
  paymentDays?: number;
8
- haulageType?: 'ex-farm' | 'delivered';
8
+ haulageType?: 'ex-farm' | 'delivered' | null;
9
9
  contractDateUTC: string;
10
10
  movement?: {
11
11
  months: Array<string>;
@@ -21,9 +21,31 @@ export type CreateContractSchema = {
21
21
  createdAtUTC?: string | null;
22
22
  } | null>;
23
23
  terms?: string | null;
24
- pricePerUnit: {
24
+ pricePerUnit?: {
25
25
  amount: number;
26
26
  currency: string;
27
+ } | null;
28
+ pricing?: {
29
+ exFarm: {
30
+ amount: number;
31
+ currency: string;
32
+ } | null;
33
+ delivered: {
34
+ amount: number;
35
+ currency: string;
36
+ } | null;
37
+ min: {
38
+ amount: number;
39
+ currency: string;
40
+ } | null;
41
+ max: {
42
+ amount: number;
43
+ currency: string;
44
+ } | null;
45
+ fixedPremium: {
46
+ amount: number;
47
+ currency: string;
48
+ } | null;
27
49
  };
28
50
  soldWeight: number;
29
51
  };
@@ -17,7 +17,7 @@ export type CreateListing = {
17
17
  months: Array<string>;
18
18
  asAvailable: boolean | null;
19
19
  };
20
- contractType?: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
20
+ contractType?: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
21
21
  startDateUTC?: string | null;
22
22
  haulageType?: 'ex-farm' | 'delivered' | 'both' | null;
23
23
  haulageTypeTASCC?: boolean | null;
@@ -4,7 +4,7 @@ export type CreateMarketingPlanSchema = {
4
4
  inventoryId: string | null;
5
5
  businessCollectionAddressId?: number | null;
6
6
  details: {
7
- contractType?: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
7
+ contractType?: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
8
8
  targetPrice?: {
9
9
  amount: number;
10
10
  currency: string;
@@ -15,7 +15,7 @@ export type CreateWantedAd = {
15
15
  haulageType: 'ex-farm' | 'delivered' | 'both' | null;
16
16
  deliveryPostcode?: string | null;
17
17
  };
18
- contractType?: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
18
+ contractType?: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus' | null;
19
19
  weight: {
20
20
  min: number | null;
21
21
  max: number | null;
@@ -14,6 +14,28 @@ export type ListingBidInfoBid = {
14
14
  pricePerUnit?: {
15
15
  amount: number;
16
16
  currency: string;
17
+ } | null;
18
+ pricing?: {
19
+ exFarm: {
20
+ amount: number;
21
+ currency: string;
22
+ } | null;
23
+ delivered: {
24
+ amount: number;
25
+ currency: string;
26
+ } | null;
27
+ min: {
28
+ amount: number;
29
+ currency: string;
30
+ } | null;
31
+ max: {
32
+ amount: number;
33
+ currency: string;
34
+ } | null;
35
+ fixedPremium: {
36
+ amount: number;
37
+ currency: string;
38
+ } | null;
17
39
  };
18
40
  }>;
19
41
  createdAtUTC: string;
@@ -107,7 +107,7 @@ export type ListingDetail = {
107
107
  amount: number;
108
108
  currency: string;
109
109
  } | null;
110
- contractType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
110
+ contractType: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
111
111
  haulageType: 'ex-farm' | 'delivered' | 'both' | null;
112
112
  haulageTypeTASCC?: boolean | null;
113
113
  };
@@ -207,6 +207,28 @@ export type ListingDetail = {
207
207
  pricePerUnit?: {
208
208
  amount: number;
209
209
  currency: string;
210
+ } | null;
211
+ pricing?: {
212
+ exFarm: {
213
+ amount: number;
214
+ currency: string;
215
+ } | null;
216
+ delivered: {
217
+ amount: number;
218
+ currency: string;
219
+ } | null;
220
+ min: {
221
+ amount: number;
222
+ currency: string;
223
+ } | null;
224
+ max: {
225
+ amount: number;
226
+ currency: string;
227
+ } | null;
228
+ fixedPremium: {
229
+ amount: number;
230
+ currency: string;
231
+ } | null;
210
232
  };
211
233
  }>;
212
234
  createdAtUTC: string;
@@ -359,7 +381,7 @@ export type ListingDetail = {
359
381
  amount: number;
360
382
  currency: string;
361
383
  } | null;
362
- contractType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
384
+ contractType: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
363
385
  haulageType: 'ex-farm' | 'delivered' | 'both' | null;
364
386
  haulageTypeTASCC?: boolean | null;
365
387
  };
@@ -459,6 +481,28 @@ export type ListingDetail = {
459
481
  pricePerUnit?: {
460
482
  amount: number;
461
483
  currency: string;
484
+ } | null;
485
+ pricing?: {
486
+ exFarm: {
487
+ amount: number;
488
+ currency: string;
489
+ } | null;
490
+ delivered: {
491
+ amount: number;
492
+ currency: string;
493
+ } | null;
494
+ min: {
495
+ amount: number;
496
+ currency: string;
497
+ } | null;
498
+ max: {
499
+ amount: number;
500
+ currency: string;
501
+ } | null;
502
+ fixedPremium: {
503
+ amount: number;
504
+ currency: string;
505
+ } | null;
462
506
  };
463
507
  }>;
464
508
  createdAtUTC: string;
@@ -529,9 +573,31 @@ export type ListingDetail = {
529
573
  months: Array<string>;
530
574
  asAvailable: boolean | null;
531
575
  };
532
- pricePerUnit: {
576
+ pricePerUnit?: {
533
577
  amount: number;
534
578
  currency: string;
579
+ } | null;
580
+ pricing: {
581
+ exFarm: {
582
+ amount: number;
583
+ currency: string;
584
+ } | null;
585
+ delivered: {
586
+ amount: number;
587
+ currency: string;
588
+ } | null;
589
+ min: {
590
+ amount: number;
591
+ currency: string;
592
+ } | null;
593
+ max: {
594
+ amount: number;
595
+ currency: string;
596
+ } | null;
597
+ fixedPremium: {
598
+ amount: number;
599
+ currency: string;
600
+ } | null;
535
601
  };
536
602
  expiredOffer: {
537
603
  name: string;
@@ -541,7 +607,7 @@ export type ListingDetail = {
541
607
  expiredOfferExpireAtUTC: string | null;
542
608
  acceptedAtUTC: string | null;
543
609
  soldWeight: number | null;
544
- haulageType: 'ex-farm' | 'delivered';
610
+ haulageType: 'ex-farm' | 'delivered' | null;
545
611
  buyerNotes: string | null;
546
612
  }>;
547
613
  terms: {
@@ -559,8 +625,8 @@ export type ListingDetail = {
559
625
  };
560
626
  paymentDays: number;
561
627
  paymentDayType?: 'fixed' | 'dayOfMonth' | null;
562
- paymentType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
563
- haulageType?: 'ex-farm' | 'delivered';
628
+ paymentType: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
629
+ haulageType?: 'ex-farm' | 'delivered' | null;
564
630
  cropHome?: string | null;
565
631
  sellerNotes: string | null;
566
632
  deliveryPostcode: string | null;
@@ -107,7 +107,7 @@ export type ListingSummary = {
107
107
  amount: number;
108
108
  currency: string;
109
109
  } | null;
110
- contractType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
110
+ contractType: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
111
111
  haulageType: 'ex-farm' | 'delivered' | 'both' | null;
112
112
  haulageTypeTASCC?: boolean | null;
113
113
  };
@@ -207,6 +207,28 @@ export type ListingSummary = {
207
207
  pricePerUnit?: {
208
208
  amount: number;
209
209
  currency: string;
210
+ } | null;
211
+ pricing?: {
212
+ exFarm: {
213
+ amount: number;
214
+ currency: string;
215
+ } | null;
216
+ delivered: {
217
+ amount: number;
218
+ currency: string;
219
+ } | null;
220
+ min: {
221
+ amount: number;
222
+ currency: string;
223
+ } | null;
224
+ max: {
225
+ amount: number;
226
+ currency: string;
227
+ } | null;
228
+ fixedPremium: {
229
+ amount: number;
230
+ currency: string;
231
+ } | null;
210
232
  };
211
233
  }>;
212
234
  createdAtUTC: string;
@@ -65,7 +65,7 @@ export type MarketingPlanDetailSchema = {
65
65
  weight?: number;
66
66
  };
67
67
  details: {
68
- contractType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
68
+ contractType: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
69
69
  targetPrice?: {
70
70
  amount: number;
71
71
  currency: string;
@@ -74,7 +74,7 @@ export type MarketingPlanDetailSchema = {
74
74
  months: Array<string>;
75
75
  asAvailable: boolean | null;
76
76
  };
77
- haulageType: 'ex-farm' | 'delivered' | null;
77
+ haulageType: 'ex-farm' | 'delivered' | 'both' | null;
78
78
  buyerNotes: string | null;
79
79
  };
80
80
  strategy: {
@@ -66,7 +66,7 @@ export type MarketingPlanSearchResultsSchema = {
66
66
  weight?: number;
67
67
  };
68
68
  details: {
69
- contractType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
69
+ contractType: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
70
70
  targetPrice?: {
71
71
  amount: number;
72
72
  currency: string;
@@ -75,7 +75,7 @@ export type MarketingPlanSearchResultsSchema = {
75
75
  months: Array<string>;
76
76
  asAvailable: boolean | null;
77
77
  };
78
- haulageType: 'ex-farm' | 'delivered' | null;
78
+ haulageType: 'ex-farm' | 'delivered' | 'both' | null;
79
79
  buyerNotes: string | null;
80
80
  };
81
81
  strategy: {
@@ -65,7 +65,7 @@ export type MarketingPlanSummarySchema = {
65
65
  weight?: number;
66
66
  };
67
67
  details: {
68
- contractType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
68
+ contractType: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
69
69
  targetPrice?: {
70
70
  amount: number;
71
71
  currency: string;
@@ -74,7 +74,7 @@ export type MarketingPlanSummarySchema = {
74
74
  months: Array<string>;
75
75
  asAvailable: boolean | null;
76
76
  };
77
- haulageType: 'ex-farm' | 'delivered' | null;
77
+ haulageType: 'ex-farm' | 'delivered' | 'both' | null;
78
78
  buyerNotes: string | null;
79
79
  };
80
80
  strategy: {
@@ -2,15 +2,37 @@ export type PatchBid = {
2
2
  businessId?: string;
3
3
  expiresAtUTC?: string;
4
4
  offers?: Array<{
5
- price: {
5
+ price?: {
6
6
  amount: number;
7
7
  currency: string;
8
+ } | null;
9
+ pricing?: {
10
+ exFarm: {
11
+ amount: number;
12
+ currency: string;
13
+ } | null;
14
+ delivered: {
15
+ amount: number;
16
+ currency: string;
17
+ } | null;
18
+ min: {
19
+ amount: number;
20
+ currency: string;
21
+ } | null;
22
+ max: {
23
+ amount: number;
24
+ currency: string;
25
+ } | null;
26
+ fixedPremium: {
27
+ amount: number;
28
+ currency: string;
29
+ } | null;
8
30
  };
9
31
  movement: {
10
32
  month: string;
11
33
  asAvailable: boolean | null;
12
34
  };
13
- haulageType: 'ex-farm' | 'delivered';
35
+ haulageType: 'ex-farm' | 'delivered' | null;
14
36
  }>;
15
37
  terms: {
16
38
  weight: {
@@ -19,7 +41,7 @@ export type PatchBid = {
19
41
  };
20
42
  paymentDays: number;
21
43
  paymentDayType?: 'fixed' | 'dayOfMonth' | null;
22
- paymentType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
44
+ paymentType: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
23
45
  deliveryPostcode?: string | null;
24
46
  cropHome?: string | null;
25
47
  sellerNotes?: string | null;
@@ -1,11 +1,33 @@
1
1
  export type PatchBidOfferSchema = {
2
- price: {
2
+ price?: {
3
3
  amount: number;
4
4
  currency: string;
5
+ } | null;
6
+ pricing?: {
7
+ exFarm: {
8
+ amount: number;
9
+ currency: string;
10
+ } | null;
11
+ delivered: {
12
+ amount: number;
13
+ currency: string;
14
+ } | null;
15
+ min: {
16
+ amount: number;
17
+ currency: string;
18
+ } | null;
19
+ max: {
20
+ amount: number;
21
+ currency: string;
22
+ } | null;
23
+ fixedPremium: {
24
+ amount: number;
25
+ currency: string;
26
+ } | null;
5
27
  };
6
28
  movement: {
7
29
  month: string;
8
30
  asAvailable: boolean | null;
9
31
  };
10
- haulageType: 'ex-farm' | 'delivered';
32
+ haulageType: 'ex-farm' | 'delivered' | null;
11
33
  };
@@ -4,8 +4,30 @@ export type PatchBidOption = {
4
4
  months: Array<string>;
5
5
  asAvailable: boolean | null;
6
6
  };
7
- pricePerUnit: {
7
+ pricePerUnit?: {
8
8
  amount: number;
9
9
  currency: string;
10
+ } | null;
11
+ pricing?: {
12
+ exFarm: {
13
+ amount: number;
14
+ currency: string;
15
+ } | null;
16
+ delivered: {
17
+ amount: number;
18
+ currency: string;
19
+ } | null;
20
+ min: {
21
+ amount: number;
22
+ currency: string;
23
+ } | null;
24
+ max: {
25
+ amount: number;
26
+ currency: string;
27
+ } | null;
28
+ fixedPremium: {
29
+ amount: number;
30
+ currency: string;
31
+ } | null;
10
32
  };
11
33
  };
@@ -17,7 +17,7 @@ export type PatchListingSchema = {
17
17
  months: Array<string>;
18
18
  asAvailable: boolean | null;
19
19
  };
20
- contractType?: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
20
+ contractType?: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
21
21
  startDateUTC?: string | null;
22
22
  haulageType?: 'ex-farm' | 'delivered' | 'both' | null;
23
23
  haulageTypeTASCC?: boolean | null;
@@ -4,7 +4,7 @@ export type PatchMarketingPlanSchema = {
4
4
  inventoryId: string | null;
5
5
  businessCollectionAddressId?: number | null;
6
6
  details: {
7
- contractType?: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
7
+ contractType?: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
8
8
  targetPrice?: {
9
9
  amount: number;
10
10
  currency: string;
@@ -15,7 +15,7 @@ export type PatchWantedAdSchema = {
15
15
  haulageType: 'ex-farm' | 'delivered' | 'both' | null;
16
16
  deliveryPostcode?: string | null;
17
17
  };
18
- contractType?: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
18
+ contractType?: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus' | null;
19
19
  weight?: {
20
20
  min: number | null;
21
21
  max: number | null;
@@ -111,7 +111,7 @@ export type SearchResultsBidSchema = {
111
111
  amount: number;
112
112
  currency: string;
113
113
  } | null;
114
- contractType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
114
+ contractType: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
115
115
  haulageType: 'ex-farm' | 'delivered' | 'both' | null;
116
116
  haulageTypeTASCC?: boolean | null;
117
117
  };
@@ -211,6 +211,28 @@ export type SearchResultsBidSchema = {
211
211
  pricePerUnit?: {
212
212
  amount: number;
213
213
  currency: string;
214
+ } | null;
215
+ pricing?: {
216
+ exFarm: {
217
+ amount: number;
218
+ currency: string;
219
+ } | null;
220
+ delivered: {
221
+ amount: number;
222
+ currency: string;
223
+ } | null;
224
+ min: {
225
+ amount: number;
226
+ currency: string;
227
+ } | null;
228
+ max: {
229
+ amount: number;
230
+ currency: string;
231
+ } | null;
232
+ fixedPremium: {
233
+ amount: number;
234
+ currency: string;
235
+ } | null;
214
236
  };
215
237
  }>;
216
238
  createdAtUTC: string;
@@ -281,9 +303,31 @@ export type SearchResultsBidSchema = {
281
303
  months: Array<string>;
282
304
  asAvailable: boolean | null;
283
305
  };
284
- pricePerUnit: {
306
+ pricePerUnit?: {
285
307
  amount: number;
286
308
  currency: string;
309
+ } | null;
310
+ pricing: {
311
+ exFarm: {
312
+ amount: number;
313
+ currency: string;
314
+ } | null;
315
+ delivered: {
316
+ amount: number;
317
+ currency: string;
318
+ } | null;
319
+ min: {
320
+ amount: number;
321
+ currency: string;
322
+ } | null;
323
+ max: {
324
+ amount: number;
325
+ currency: string;
326
+ } | null;
327
+ fixedPremium: {
328
+ amount: number;
329
+ currency: string;
330
+ } | null;
287
331
  };
288
332
  expiredOffer: {
289
333
  name: string;
@@ -293,7 +337,7 @@ export type SearchResultsBidSchema = {
293
337
  expiredOfferExpireAtUTC: string | null;
294
338
  acceptedAtUTC: string | null;
295
339
  soldWeight: number | null;
296
- haulageType: 'ex-farm' | 'delivered';
340
+ haulageType: 'ex-farm' | 'delivered' | null;
297
341
  buyerNotes: string | null;
298
342
  }>;
299
343
  terms: {
@@ -311,8 +355,8 @@ export type SearchResultsBidSchema = {
311
355
  };
312
356
  paymentDays: number;
313
357
  paymentDayType?: 'fixed' | 'dayOfMonth' | null;
314
- paymentType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
315
- haulageType?: 'ex-farm' | 'delivered';
358
+ paymentType: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
359
+ haulageType?: 'ex-farm' | 'delivered' | null;
316
360
  cropHome?: string | null;
317
361
  sellerNotes: string | null;
318
362
  deliveryPostcode: string | null;
@@ -108,7 +108,7 @@ export type SearchResultsListingSchema = {
108
108
  amount: number;
109
109
  currency: string;
110
110
  } | null;
111
- contractType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
111
+ contractType: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
112
112
  haulageType: 'ex-farm' | 'delivered' | 'both' | null;
113
113
  haulageTypeTASCC?: boolean | null;
114
114
  };
@@ -208,6 +208,28 @@ export type SearchResultsListingSchema = {
208
208
  pricePerUnit?: {
209
209
  amount: number;
210
210
  currency: string;
211
+ } | null;
212
+ pricing?: {
213
+ exFarm: {
214
+ amount: number;
215
+ currency: string;
216
+ } | null;
217
+ delivered: {
218
+ amount: number;
219
+ currency: string;
220
+ } | null;
221
+ min: {
222
+ amount: number;
223
+ currency: string;
224
+ } | null;
225
+ max: {
226
+ amount: number;
227
+ currency: string;
228
+ } | null;
229
+ fixedPremium: {
230
+ amount: number;
231
+ currency: string;
232
+ } | null;
211
233
  };
212
234
  }>;
213
235
  createdAtUTC: string;
@@ -31,7 +31,7 @@ export type WantedAdDetailSchema = {
31
31
  haulageType?: 'ex-farm' | 'delivered' | 'both' | null;
32
32
  deliveryPostcode?: string | null;
33
33
  };
34
- contractType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus' | null;
34
+ contractType: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus' | null;
35
35
  weight: {
36
36
  min: number | null;
37
37
  max: number | null;
@@ -32,7 +32,7 @@ export type WantedAdSearchResultsSchema = {
32
32
  haulageType?: 'ex-farm' | 'delivered' | 'both' | null;
33
33
  deliveryPostcode?: string | null;
34
34
  };
35
- contractType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus' | null;
35
+ contractType: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus' | null;
36
36
  weight: {
37
37
  min: number | null;
38
38
  max: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hectare/platform.clients.trading",
3
- "version": "1.1.246",
3
+ "version": "1.1.247",
4
4
  "main": "index.js",
5
5
  "exported": true,
6
6
  "types": "index.d.ts",