@hectare/platform.clients.trading 1.1.239 → 1.1.241

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
@@ -1,17 +1,14 @@
1
1
  export type { AcceptBid } from './models/AcceptBid.js';
2
2
  export type { AskAnExpertBuyerRallyReportSchema } from './models/AskAnExpertBuyerRallyReportSchema.js';
3
- export type { BidAlerts } from './models/BidAlerts.js';
4
3
  export type { BidContract } from './models/BidContract.js';
5
4
  export type { BidDetail } from './models/BidDetail.js';
6
5
  export type { CloseListingReasonSchema } from './models/CloseListingReasonSchema.js';
7
6
  export type { CommodityPrices } from './models/CommodityPrices.js';
8
7
  export type { CompleteMarketingPlanSchema } from './models/CompleteMarketingPlanSchema.js';
9
- export type { ContractDeliverySchema } from './models/ContractDeliverySchema.js';
10
- export type { ContractDeliverySettlementDeductionSchema } from './models/ContractDeliverySettlementDeductionSchema.js';
11
- export type { ContractDeliverySettlementSchema } from './models/ContractDeliverySettlementSchema.js';
12
8
  export type { ContractDetail } from './models/ContractDetail.js';
13
9
  export type { CreateBid } from './models/CreateBid.js';
14
10
  export type { CreateBidOfferSchema } from './models/CreateBidOfferSchema.js';
11
+ export type { CreateContractSchema } from './models/CreateContractSchema.js';
15
12
  export type { CreateInventorySchema } from './models/CreateInventorySchema.js';
16
13
  export type { CreateListing } from './models/CreateListing.js';
17
14
  export type { CreateMarketingPlanSchema } from './models/CreateMarketingPlanSchema.js';
@@ -90,17 +90,6 @@ export type BidDetail = {
90
90
  endDateUTC: string | null;
91
91
  reviewEndDateUTC: string | null;
92
92
  postReviewEndDateUTC: string | null;
93
- price: {
94
- amount: number;
95
- currency: string;
96
- } | null;
97
- movementPeriod: {
98
- startDateUTC: string;
99
- endDateUTC: string;
100
- type: 'date' | 'month';
101
- excludedDatesUTC?: Array<string> | null;
102
- asAvailable?: boolean | null;
103
- };
104
93
  movement: {
105
94
  months: Array<string>;
106
95
  asAvailable: boolean | null;
@@ -119,19 +108,6 @@ export type BidDetail = {
119
108
  amount: number;
120
109
  currency: string;
121
110
  } | null;
122
- guidePrice: {
123
- amount: number;
124
- currency: string;
125
- } | null;
126
- guidePriceMin: {
127
- amount: number;
128
- currency: string;
129
- } | null;
130
- guidePriceMax: {
131
- amount: number;
132
- currency: string;
133
- } | null;
134
- isBasePremOnly?: boolean;
135
111
  contractType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
136
112
  haulageType: 'ex-farm' | 'delivered' | 'both' | null;
137
113
  haulageTypeTASCC?: boolean | null;
@@ -295,11 +271,6 @@ export type BidDetail = {
295
271
  options: Array<{
296
272
  id: number;
297
273
  status: 'active' | 'accepted' | 'inactive';
298
- movementPeriod: {
299
- startDateUTC: string;
300
- endDateUTC: string;
301
- type: 'date' | 'month';
302
- };
303
274
  movement: {
304
275
  months: Array<string>;
305
276
  asAvailable: boolean | null;
@@ -1,7 +1,6 @@
1
1
  export type ContractDetail = {
2
2
  id: string;
3
3
  createdAtUTC: string;
4
- status: 'pending' | 'in-progress' | 'complete' | 'awaiting-payment' | 'cancelled';
5
4
  details: {
6
5
  bidId: string;
7
6
  bidOptionId: number;
@@ -40,7 +39,7 @@ export type ContractDetail = {
40
39
  } | null>;
41
40
  terms: string | null;
42
41
  };
43
- inventory: {
42
+ inventory?: {
44
43
  type: 'crop' | 'produce';
45
44
  harvestYear: string;
46
45
  commodity: {
@@ -82,21 +81,21 @@ export type ContractDetail = {
82
81
  buyer: {
83
82
  organisationId: string;
84
83
  businessId: string;
84
+ userId?: string;
85
85
  organisationName: string;
86
- businessName: string;
87
- userId: string;
88
- userName: string;
86
+ businessName: string | null;
87
+ userName?: string | null;
89
88
  };
90
89
  seller: {
91
90
  organisationId: string;
92
91
  businessId: string;
92
+ userId?: string;
93
93
  organisationName: string;
94
- businessName: string;
95
- userId: string;
96
- userName: string;
94
+ businessName: string | null;
95
+ userName?: string | null;
97
96
  };
98
- sellerNotes: string;
99
- buyerNotes: string;
97
+ buyerNotes?: string;
98
+ sellerNotes?: string;
100
99
  regionISO: string;
101
100
  bid?: {
102
101
  id: string;
@@ -190,17 +189,6 @@ export type ContractDetail = {
190
189
  endDateUTC: string | null;
191
190
  reviewEndDateUTC: string | null;
192
191
  postReviewEndDateUTC: string | null;
193
- price: {
194
- amount: number;
195
- currency: string;
196
- } | null;
197
- movementPeriod: {
198
- startDateUTC: string;
199
- endDateUTC: string;
200
- type: 'date' | 'month';
201
- excludedDatesUTC?: Array<string> | null;
202
- asAvailable?: boolean | null;
203
- };
204
192
  movement: {
205
193
  months: Array<string>;
206
194
  asAvailable: boolean | null;
@@ -219,19 +207,6 @@ export type ContractDetail = {
219
207
  amount: number;
220
208
  currency: string;
221
209
  } | null;
222
- guidePrice: {
223
- amount: number;
224
- currency: string;
225
- } | null;
226
- guidePriceMin: {
227
- amount: number;
228
- currency: string;
229
- } | null;
230
- guidePriceMax: {
231
- amount: number;
232
- currency: string;
233
- } | null;
234
- isBasePremOnly?: boolean;
235
210
  contractType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
236
211
  haulageType: 'ex-farm' | 'delivered' | 'both' | null;
237
212
  haulageTypeTASCC?: boolean | null;
@@ -395,11 +370,6 @@ export type ContractDetail = {
395
370
  options: Array<{
396
371
  id: number;
397
372
  status: 'active' | 'accepted' | 'inactive';
398
- movementPeriod: {
399
- startDateUTC: string;
400
- endDateUTC: string;
401
- type: 'date' | 'month';
402
- };
403
373
  movement: {
404
374
  months: Array<string>;
405
375
  asAvailable: boolean | null;
@@ -1,26 +1,7 @@
1
1
  export type CreateBid = {
2
2
  listingId: string;
3
- businessId?: string | null;
4
- expiresAtUTC?: string;
5
- options?: Array<{
6
- movementPeriod?: {
7
- startDateUTC: string;
8
- endDateUTC: string;
9
- type: 'date' | 'month';
10
- excludedDatesUTC?: Array<string> | null;
11
- asAvailable?: boolean | null;
12
- };
13
- movement?: {
14
- months: Array<string>;
15
- asAvailable: boolean | null;
16
- };
17
- pricePerUnit: {
18
- amount: number;
19
- currency: string;
20
- };
21
- haulageType?: 'ex-farm' | 'delivered';
22
- }>;
23
- offers?: Array<{
3
+ businessId: string;
4
+ offers: Array<{
24
5
  price: {
25
6
  amount: number;
26
7
  currency: string;
@@ -39,7 +20,6 @@ export type CreateBid = {
39
20
  paymentDays: number;
40
21
  paymentDayType?: 'fixed' | 'dayOfMonth' | null;
41
22
  paymentType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
42
- haulageType?: 'ex-farm' | 'delivered';
43
23
  deliveryPostcode?: string | null;
44
24
  cropHome?: string | null;
45
25
  sellerNotes?: string | null;
@@ -0,0 +1,32 @@
1
+ export type CreateContractSchema = {
2
+ buyerBusinessId?: string | null;
3
+ sellerBusinessId: string;
4
+ details: {
5
+ reference: string | null;
6
+ contractType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
7
+ paymentDays?: number;
8
+ haulageType: 'ex-farm' | 'delivered';
9
+ contractDateUTC: string;
10
+ movement: {
11
+ months: Array<string>;
12
+ asAvailable: boolean | null;
13
+ };
14
+ files?: Array<{
15
+ name?: string;
16
+ id: string;
17
+ url?: string | null;
18
+ userId?: string | null;
19
+ userName?: string | null;
20
+ organisationId?: string | null;
21
+ createdAtUTC?: string | null;
22
+ } | null>;
23
+ terms?: string | null;
24
+ pricePerUnit: {
25
+ amount: number;
26
+ currency: string;
27
+ };
28
+ soldWeight: number;
29
+ };
30
+ inventoryId: string;
31
+ sellerNotes?: string;
32
+ };
@@ -1,13 +1,4 @@
1
1
  export type CreateListing = {
2
- public?: boolean | null;
3
- bidAlerts?: Array<{
4
- authPlatformId: string;
5
- emailAddress: string;
6
- fullName: string;
7
- mobileNumber: string | null;
8
- organisationId?: string | null;
9
- userId: string;
10
- }> | null;
11
2
  businessUnitId: string | null;
12
3
  collectionAddressId?: number | null;
13
4
  details: {
@@ -21,29 +12,12 @@ export type CreateListing = {
21
12
  organisationId?: string | null;
22
13
  createdAtUTC?: string | null;
23
14
  } | null>;
24
- movementPeriod?: {
25
- startDateUTC: string;
26
- endDateUTC: string;
27
- type: 'date' | 'month';
28
- excludedDatesUTC?: Array<string> | null;
29
- asAvailable?: boolean | null;
30
- };
31
15
  movement?: {
32
16
  months: Array<string>;
33
17
  asAvailable: boolean | null;
34
18
  };
35
- price?: {
36
- amount: number;
37
- currency: string;
38
- } | null;
39
- targetPrice?: {
40
- amount: number;
41
- currency: string;
42
- } | null;
43
- isBasePremOnly?: boolean;
44
19
  contractType?: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
45
20
  startDateUTC?: string | null;
46
- endDateUTC?: string | null;
47
21
  haulageType?: 'ex-farm' | 'delivered' | 'both' | null;
48
22
  haulageTypeTASCC?: boolean | null;
49
23
  };
@@ -3,7 +3,6 @@ export type CreateMarketingPlanSchema = {
3
3
  userName: string;
4
4
  inventoryId: string | null;
5
5
  details: {
6
- isBasePremOnly?: boolean;
7
6
  contractType?: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
8
7
  targetPrice?: {
9
8
  amount: number;
@@ -87,17 +87,6 @@ export type ListingDetail = {
87
87
  endDateUTC: string | null;
88
88
  reviewEndDateUTC: string | null;
89
89
  postReviewEndDateUTC: string | null;
90
- price: {
91
- amount: number;
92
- currency: string;
93
- } | null;
94
- movementPeriod: {
95
- startDateUTC: string;
96
- endDateUTC: string;
97
- type: 'date' | 'month';
98
- excludedDatesUTC?: Array<string> | null;
99
- asAvailable?: boolean | null;
100
- };
101
90
  movement: {
102
91
  months: Array<string>;
103
92
  asAvailable: boolean | null;
@@ -116,19 +105,6 @@ export type ListingDetail = {
116
105
  amount: number;
117
106
  currency: string;
118
107
  } | null;
119
- guidePrice: {
120
- amount: number;
121
- currency: string;
122
- } | null;
123
- guidePriceMin: {
124
- amount: number;
125
- currency: string;
126
- } | null;
127
- guidePriceMax: {
128
- amount: number;
129
- currency: string;
130
- } | null;
131
- isBasePremOnly?: boolean;
132
108
  contractType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
133
109
  haulageType: 'ex-farm' | 'delivered' | 'both' | null;
134
110
  haulageTypeTASCC?: boolean | null;
@@ -261,22 +237,6 @@ export type ListingDetail = {
261
237
  }> | null;
262
238
  tags: Array<string>;
263
239
  inventoryCount?: number;
264
- acceptedBids: Array<{
265
- bidId: string;
266
- organisationName: string;
267
- weight: number;
268
- price: {
269
- amount: number;
270
- currency: string;
271
- } | null;
272
- contractId: string;
273
- movementPeriod: {
274
- startDateUTC: string;
275
- endDateUTC: string;
276
- type: 'date' | 'month';
277
- };
278
- acceptedAtUTC: string | null;
279
- }>;
280
240
  bids: Array<{
281
241
  id: string;
282
242
  listingId: string;
@@ -369,17 +329,6 @@ export type ListingDetail = {
369
329
  endDateUTC: string | null;
370
330
  reviewEndDateUTC: string | null;
371
331
  postReviewEndDateUTC: string | null;
372
- price: {
373
- amount: number;
374
- currency: string;
375
- } | null;
376
- movementPeriod: {
377
- startDateUTC: string;
378
- endDateUTC: string;
379
- type: 'date' | 'month';
380
- excludedDatesUTC?: Array<string> | null;
381
- asAvailable?: boolean | null;
382
- };
383
332
  movement: {
384
333
  months: Array<string>;
385
334
  asAvailable: boolean | null;
@@ -398,19 +347,6 @@ export type ListingDetail = {
398
347
  amount: number;
399
348
  currency: string;
400
349
  } | null;
401
- guidePrice: {
402
- amount: number;
403
- currency: string;
404
- } | null;
405
- guidePriceMin: {
406
- amount: number;
407
- currency: string;
408
- } | null;
409
- guidePriceMax: {
410
- amount: number;
411
- currency: string;
412
- } | null;
413
- isBasePremOnly?: boolean;
414
350
  contractType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
415
351
  haulageType: 'ex-farm' | 'delivered' | 'both' | null;
416
352
  haulageTypeTASCC?: boolean | null;
@@ -574,11 +510,6 @@ export type ListingDetail = {
574
510
  options: Array<{
575
511
  id: number;
576
512
  status: 'active' | 'accepted' | 'inactive';
577
- movementPeriod: {
578
- startDateUTC: string;
579
- endDateUTC: string;
580
- type: 'date' | 'month';
581
- };
582
513
  movement: {
583
514
  months: Array<string>;
584
515
  asAvailable: boolean | null;
@@ -87,17 +87,6 @@ export type ListingSummary = {
87
87
  endDateUTC: string | null;
88
88
  reviewEndDateUTC: string | null;
89
89
  postReviewEndDateUTC: string | null;
90
- price: {
91
- amount: number;
92
- currency: string;
93
- } | null;
94
- movementPeriod: {
95
- startDateUTC: string;
96
- endDateUTC: string;
97
- type: 'date' | 'month';
98
- excludedDatesUTC?: Array<string> | null;
99
- asAvailable?: boolean | null;
100
- };
101
90
  movement: {
102
91
  months: Array<string>;
103
92
  asAvailable: boolean | null;
@@ -116,19 +105,6 @@ export type ListingSummary = {
116
105
  amount: number;
117
106
  currency: string;
118
107
  } | null;
119
- guidePrice: {
120
- amount: number;
121
- currency: string;
122
- } | null;
123
- guidePriceMin: {
124
- amount: number;
125
- currency: string;
126
- } | null;
127
- guidePriceMax: {
128
- amount: number;
129
- currency: string;
130
- } | null;
131
- isBasePremOnly?: boolean;
132
108
  contractType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
133
109
  haulageType: 'ex-farm' | 'delivered' | 'both' | null;
134
110
  haulageTypeTASCC?: boolean | null;
@@ -63,7 +63,6 @@ export type MarketingPlanDetailSchema = {
63
63
  weight?: number;
64
64
  };
65
65
  details: {
66
- isBasePremOnly?: boolean;
67
66
  contractType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
68
67
  targetPrice?: {
69
68
  amount: number;
@@ -64,7 +64,6 @@ export type MarketingPlanSearchResultsSchema = {
64
64
  weight?: number;
65
65
  };
66
66
  details: {
67
- isBasePremOnly?: boolean;
68
67
  contractType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
69
68
  targetPrice?: {
70
69
  amount: number;
@@ -63,7 +63,6 @@ export type MarketingPlanSummarySchema = {
63
63
  weight?: number;
64
64
  };
65
65
  details: {
66
- isBasePremOnly?: boolean;
67
66
  contractType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
68
67
  targetPrice?: {
69
68
  amount: number;
@@ -1,25 +1,6 @@
1
1
  export type PatchBid = {
2
2
  businessId?: string;
3
3
  expiresAtUTC?: string;
4
- options?: Array<{
5
- id: number | null;
6
- movementPeriod?: {
7
- startDateUTC: string;
8
- endDateUTC: string;
9
- type: 'date' | 'month';
10
- excludedDatesUTC?: Array<string> | null;
11
- asAvailable?: boolean | null;
12
- };
13
- movement?: {
14
- months: Array<string>;
15
- asAvailable: boolean | null;
16
- };
17
- pricePerUnit: {
18
- amount: number;
19
- currency: string;
20
- };
21
- haulageType?: 'ex-farm' | 'delivered';
22
- }>;
23
4
  offers?: Array<{
24
5
  price: {
25
6
  amount: number;
@@ -39,7 +20,6 @@ export type PatchBid = {
39
20
  paymentDays: number;
40
21
  paymentDayType?: 'fixed' | 'dayOfMonth' | null;
41
22
  paymentType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
42
- haulageType?: 'ex-farm' | 'delivered';
43
23
  deliveryPostcode?: string | null;
44
24
  cropHome?: string | null;
45
25
  sellerNotes?: string | null;
@@ -1,12 +1,5 @@
1
1
  export type PatchBidOption = {
2
2
  id: number | null;
3
- movementPeriod?: {
4
- startDateUTC: string;
5
- endDateUTC: string;
6
- type: 'date' | 'month';
7
- excludedDatesUTC?: Array<string> | null;
8
- asAvailable?: boolean | null;
9
- };
10
3
  movement?: {
11
4
  months: Array<string>;
12
5
  asAvailable: boolean | null;
@@ -15,5 +8,4 @@ export type PatchBidOption = {
15
8
  amount: number;
16
9
  currency: string;
17
10
  };
18
- haulageType?: 'ex-farm' | 'delivered';
19
11
  };
@@ -12,29 +12,12 @@ export type PatchListingSchema = {
12
12
  organisationId?: string | null;
13
13
  createdAtUTC?: string | null;
14
14
  } | null>;
15
- movementPeriod?: {
16
- startDateUTC: string;
17
- endDateUTC: string;
18
- type: 'date' | 'month';
19
- excludedDatesUTC?: Array<string> | null;
20
- asAvailable?: boolean | null;
21
- };
22
15
  movement?: {
23
16
  months: Array<string>;
24
17
  asAvailable: boolean | null;
25
18
  };
26
- price?: {
27
- amount: number;
28
- currency: string;
29
- } | null;
30
- targetPrice?: {
31
- amount: number;
32
- currency: string;
33
- } | null;
34
- isBasePremOnly?: boolean;
35
19
  contractType?: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
36
20
  startDateUTC?: string | null;
37
- endDateUTC?: string | null;
38
21
  haulageType?: 'ex-farm' | 'delivered' | 'both' | null;
39
22
  haulageTypeTASCC?: boolean | null;
40
23
  };
@@ -3,7 +3,6 @@ export type PatchMarketingPlanSchema = {
3
3
  userName: string;
4
4
  inventoryId: string | null;
5
5
  details: {
6
- isBasePremOnly?: boolean;
7
6
  contractType?: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
8
7
  targetPrice?: {
9
8
  amount: number;
@@ -91,17 +91,6 @@ export type SearchResultsBidSchema = {
91
91
  endDateUTC: string | null;
92
92
  reviewEndDateUTC: string | null;
93
93
  postReviewEndDateUTC: string | null;
94
- price: {
95
- amount: number;
96
- currency: string;
97
- } | null;
98
- movementPeriod: {
99
- startDateUTC: string;
100
- endDateUTC: string;
101
- type: 'date' | 'month';
102
- excludedDatesUTC?: Array<string> | null;
103
- asAvailable?: boolean | null;
104
- };
105
94
  movement: {
106
95
  months: Array<string>;
107
96
  asAvailable: boolean | null;
@@ -120,19 +109,6 @@ export type SearchResultsBidSchema = {
120
109
  amount: number;
121
110
  currency: string;
122
111
  } | null;
123
- guidePrice: {
124
- amount: number;
125
- currency: string;
126
- } | null;
127
- guidePriceMin: {
128
- amount: number;
129
- currency: string;
130
- } | null;
131
- guidePriceMax: {
132
- amount: number;
133
- currency: string;
134
- } | null;
135
- isBasePremOnly?: boolean;
136
112
  contractType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
137
113
  haulageType: 'ex-farm' | 'delivered' | 'both' | null;
138
114
  haulageTypeTASCC?: boolean | null;
@@ -296,11 +272,6 @@ export type SearchResultsBidSchema = {
296
272
  options: Array<{
297
273
  id: number;
298
274
  status: 'active' | 'accepted' | 'inactive';
299
- movementPeriod: {
300
- startDateUTC: string;
301
- endDateUTC: string;
302
- type: 'date' | 'month';
303
- };
304
275
  movement: {
305
276
  months: Array<string>;
306
277
  asAvailable: boolean | null;
@@ -88,17 +88,6 @@ export type SearchResultsListingSchema = {
88
88
  endDateUTC: string | null;
89
89
  reviewEndDateUTC: string | null;
90
90
  postReviewEndDateUTC: string | null;
91
- price: {
92
- amount: number;
93
- currency: string;
94
- } | null;
95
- movementPeriod: {
96
- startDateUTC: string;
97
- endDateUTC: string;
98
- type: 'date' | 'month';
99
- excludedDatesUTC?: Array<string> | null;
100
- asAvailable?: boolean | null;
101
- };
102
91
  movement: {
103
92
  months: Array<string>;
104
93
  asAvailable: boolean | null;
@@ -117,19 +106,6 @@ export type SearchResultsListingSchema = {
117
106
  amount: number;
118
107
  currency: string;
119
108
  } | null;
120
- guidePrice: {
121
- amount: number;
122
- currency: string;
123
- } | null;
124
- guidePriceMin: {
125
- amount: number;
126
- currency: string;
127
- } | null;
128
- guidePriceMax: {
129
- amount: number;
130
- currency: string;
131
- } | null;
132
- isBasePremOnly?: boolean;
133
109
  contractType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
134
110
  haulageType: 'ex-farm' | 'delivered' | 'both' | null;
135
111
  haulageTypeTASCC?: boolean | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hectare/platform.clients.trading",
3
- "version": "1.1.239",
3
+ "version": "1.1.241",
4
4
  "main": "index.js",
5
5
  "exported": true,
6
6
  "types": "index.d.ts",
@@ -1,10 +0,0 @@
1
- export type BidAlerts = {
2
- bidAlerts: Array<{
3
- authPlatformId: string;
4
- emailAddress: string;
5
- fullName: string;
6
- mobileNumber: string | null;
7
- organisationId?: string | null;
8
- userId: string;
9
- }> | null;
10
- };
@@ -1,87 +0,0 @@
1
- export type ContractDeliverySchema = {
2
- id: number;
3
- movementPeriodId: number;
4
- recordId?: string | null;
5
- movementId?: number | null;
6
- reference: string | null;
7
- status?: 'undelivered' | 'delivered' | 'cancelled';
8
- moveAtUTC: string;
9
- weightPlanned: number;
10
- weightActual: number | null;
11
- vehicleRegistration: string | null;
12
- samples?: Array<{
13
- fields?: Array<{
14
- name: string;
15
- value: string;
16
- metric: string;
17
- }>;
18
- file?: {
19
- name?: string;
20
- id: string;
21
- url?: string | null;
22
- userId?: string | null;
23
- userName?: string | null;
24
- organisationId?: string | null;
25
- createdAtUTC?: string | null;
26
- } | null;
27
- files?: Array<{
28
- name?: string;
29
- id: string;
30
- url?: string | null;
31
- userId?: string | null;
32
- userName?: string | null;
33
- organisationId?: string | null;
34
- createdAtUTC?: string | null;
35
- } | null> | null;
36
- commodityGradeId?: number;
37
- id?: number;
38
- }> | null;
39
- settlement?: {
40
- reference: string | null;
41
- status: 'unpaid' | 'paid';
42
- paymentReceivedDateUTC: string | null;
43
- invoiceDateUTC: string;
44
- invoiceDueDateUTC: string;
45
- pricePerUnit: {
46
- amount: number;
47
- currency: string;
48
- };
49
- priceVAT: {
50
- amount: number;
51
- currency: string;
52
- };
53
- priceGross: {
54
- amount: number;
55
- currency: string;
56
- };
57
- priceNet: {
58
- amount: number;
59
- currency: string;
60
- };
61
- deductions?: Array<{
62
- reasonId: number;
63
- description: string;
64
- amount: {
65
- amount: number;
66
- currency: string;
67
- };
68
- }>;
69
- bonuses?: Array<{
70
- reasonId: number;
71
- description: string;
72
- amount: {
73
- amount: number;
74
- currency: string;
75
- };
76
- }>;
77
- files: Array<{
78
- name?: string;
79
- id: string;
80
- url?: string | null;
81
- userId?: string | null;
82
- userName?: string | null;
83
- organisationId?: string | null;
84
- createdAtUTC?: string | null;
85
- } | null>;
86
- } | null;
87
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- export type ContractDeliverySettlementDeductionSchema = {
2
- reasonId: number;
3
- description: string;
4
- amount: {
5
- amount: number;
6
- currency: string;
7
- };
8
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,48 +0,0 @@
1
- export type ContractDeliverySettlementSchema = {
2
- reference: string | null;
3
- status: 'unpaid' | 'paid';
4
- paymentReceivedDateUTC: string | null;
5
- invoiceDateUTC: string;
6
- invoiceDueDateUTC: string;
7
- pricePerUnit: {
8
- amount: number;
9
- currency: string;
10
- };
11
- priceVAT: {
12
- amount: number;
13
- currency: string;
14
- };
15
- priceGross: {
16
- amount: number;
17
- currency: string;
18
- };
19
- priceNet: {
20
- amount: number;
21
- currency: string;
22
- };
23
- deductions?: Array<{
24
- reasonId: number;
25
- description: string;
26
- amount: {
27
- amount: number;
28
- currency: string;
29
- };
30
- }>;
31
- bonuses?: Array<{
32
- reasonId: number;
33
- description: string;
34
- amount: {
35
- amount: number;
36
- currency: string;
37
- };
38
- }>;
39
- files: Array<{
40
- name?: string;
41
- id: string;
42
- url?: string | null;
43
- userId?: string | null;
44
- userName?: string | null;
45
- organisationId?: string | null;
46
- createdAtUTC?: string | null;
47
- } | null>;
48
- };
@@ -1 +0,0 @@
1
- export {};