@hectare/platform.clients.trading 1.1.1
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 +59 -0
- package/index.js +1 -0
- package/models/AcceptBid.d.ts +5 -0
- package/models/AcceptBid.js +1 -0
- package/models/AdvancePayContractSchema.d.ts +133 -0
- package/models/AdvancePayContractSchema.js +1 -0
- package/models/AdvancePayOfferSchema.d.ts +62 -0
- package/models/AdvancePayOfferSchema.js +1 -0
- package/models/AdvancePayUploadCollectionReceiptSchema.d.ts +12 -0
- package/models/AdvancePayUploadCollectionReceiptSchema.js +1 -0
- package/models/Availability.d.ts +17 -0
- package/models/Availability.js +1 -0
- package/models/BidAlerts.d.ts +10 -0
- package/models/BidAlerts.js +1 -0
- package/models/BidContract.d.ts +12 -0
- package/models/BidContract.js +1 -0
- package/models/BidDetail.d.ts +371 -0
- package/models/BidDetail.js +1 -0
- package/models/BuyerDashboard.d.ts +6 -0
- package/models/BuyerDashboard.js +1 -0
- package/models/CommodityPrices.d.ts +24 -0
- package/models/CommodityPrices.js +1 -0
- package/models/CommodityTradedInfo.d.ts +24 -0
- package/models/CommodityTradedInfo.js +1 -0
- package/models/ContractDeliverySchema.d.ts +87 -0
- package/models/ContractDeliverySchema.js +1 -0
- package/models/ContractDeliverySettlementDeductionSchema.d.ts +8 -0
- package/models/ContractDeliverySettlementDeductionSchema.js +1 -0
- package/models/ContractDeliverySettlementSchema.d.ts +48 -0
- package/models/ContractDeliverySettlementSchema.js +1 -0
- package/models/ContractDetail.d.ts +387 -0
- package/models/ContractDetail.js +1 -0
- package/models/ContractMovementPeriodSchema.d.ts +113 -0
- package/models/ContractMovementPeriodSchema.js +1 -0
- package/models/ContractRollOverSchema.d.ts +13 -0
- package/models/ContractRollOverSchema.js +1 -0
- package/models/ContractsAvailability.d.ts +112 -0
- package/models/ContractsAvailability.js +1 -0
- package/models/ContractsTraded.d.ts +76 -0
- package/models/ContractsTraded.js +1 -0
- package/models/ContractsTradedByMonth.d.ts +20 -0
- package/models/ContractsTradedByMonth.js +1 -0
- package/models/ContractsTradedPeriod.d.ts +18 -0
- package/models/ContractsTradedPeriod.js +1 -0
- package/models/CreateBid.d.ts +36 -0
- package/models/CreateBid.js +1 -0
- package/models/CreateContractDeliverySchema.d.ts +10 -0
- package/models/CreateContractDeliverySchema.js +1 -0
- package/models/CreateContractRequest.d.ts +59 -0
- package/models/CreateContractRequest.js +1 -0
- package/models/CreateListing.d.ts +68 -0
- package/models/CreateListing.js +1 -0
- package/models/CreateMarketUpdateRequest.d.ts +21 -0
- package/models/CreateMarketUpdateRequest.js +1 -0
- package/models/CreateOrUpdateTargetPriceSchema.d.ts +12 -0
- package/models/CreateOrUpdateTargetPriceSchema.js +1 -0
- package/models/CreateOrUpdateTargetPricesSchema.d.ts +12 -0
- package/models/CreateOrUpdateTargetPricesSchema.js +1 -0
- package/models/CreateTradeRequest.d.ts +31 -0
- package/models/CreateTradeRequest.js +1 -0
- package/models/ExFarmPriceCommodity.d.ts +7 -0
- package/models/ExFarmPriceCommodity.js +1 -0
- package/models/ExFarmPricesRegionSchema.d.ts +13 -0
- package/models/ExFarmPricesRegionSchema.js +1 -0
- package/models/ExFarmPricesSchema.d.ts +45 -0
- package/models/ExFarmPricesSchema.js +1 -0
- package/models/ExpiredBidOffer.d.ts +4 -0
- package/models/ExpiredBidOffer.js +1 -0
- package/models/FeedItem.d.ts +8 -0
- package/models/FeedItem.js +1 -0
- package/models/FinMidWebhook.d.ts +10 -0
- package/models/FinMidWebhook.js +1 -0
- package/models/FinMidWebhookEvent.d.ts +6 -0
- package/models/FinMidWebhookEvent.js +1 -0
- package/models/InsightPrices.d.ts +17 -0
- package/models/InsightPrices.js +1 -0
- package/models/InsightsLivestockTaxonomySchema.d.ts +18 -0
- package/models/InsightsLivestockTaxonomySchema.js +1 -0
- package/models/LinkContractSchema.d.ts +7 -0
- package/models/LinkContractSchema.js +1 -0
- package/models/ListingBidInfoBid.d.ts +13 -0
- package/models/ListingBidInfoBid.js +1 -0
- package/models/ListingDetail.d.ts +571 -0
- package/models/ListingDetail.js +1 -0
- package/models/ListingNextAutoCloseDateSchema.d.ts +3 -0
- package/models/ListingNextAutoCloseDateSchema.js +1 -0
- package/models/ListingSummary.d.ts +158 -0
- package/models/ListingSummary.js +1 -0
- package/models/MarketBuyers.d.ts +10 -0
- package/models/MarketBuyers.js +1 -0
- package/models/MarketUpdateDetail.d.ts +15 -0
- package/models/MarketUpdateDetail.js +1 -0
- package/models/NewsFeed.d.ts +8 -0
- package/models/NewsFeed.js +1 -0
- package/models/PatchBid.d.ts +26 -0
- package/models/PatchBid.js +1 -0
- package/models/PatchBidOption.d.ts +12 -0
- package/models/PatchBidOption.js +1 -0
- package/models/PatchContractDeliverySchema.d.ts +42 -0
- package/models/PatchContractDeliverySchema.js +1 -0
- package/models/PatchContractPricingSchema.d.ts +13 -0
- package/models/PatchContractPricingSchema.js +1 -0
- package/models/PatchContractRequest.d.ts +47 -0
- package/models/PatchContractRequest.js +1 -0
- package/models/PatchMarketUpdateRequest.d.ts +14 -0
- package/models/PatchMarketUpdateRequest.js +1 -0
- package/models/PublishExFarmPricingSchema.d.ts +16 -0
- package/models/PublishExFarmPricingSchema.js +1 -0
- package/models/PutContractFile.d.ts +9 -0
- package/models/PutContractFile.js +1 -0
- package/models/TargetPriceDetailSchema.d.ts +12 -0
- package/models/TargetPriceDetailSchema.js +1 -0
- package/models/Templates.d.ts +9 -0
- package/models/Templates.js +1 -0
- package/models/TradeRequestDetail.d.ts +64 -0
- package/models/TradeRequestDetail.js +1 -0
- package/models/TradingConfig.d.ts +21 -0
- package/models/TradingConfig.js +1 -0
- package/models/UnlinkContractSchema.d.ts +4 -0
- package/models/UnlinkContractSchema.js +1 -0
- package/package.json +13 -0
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
export type ContractDetail = {
|
|
2
|
+
id: string;
|
|
3
|
+
sellerOrganisationId?: string;
|
|
4
|
+
createdById: string;
|
|
5
|
+
createdByName: string;
|
|
6
|
+
createdAtISO: string;
|
|
7
|
+
status: 'pending' | 'in-progress' | 'complete' | 'awaiting-payment' | 'cancelled';
|
|
8
|
+
businessUnits: Array<{
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
type: string;
|
|
12
|
+
} | null>;
|
|
13
|
+
details: {
|
|
14
|
+
bidId: string;
|
|
15
|
+
userId: string;
|
|
16
|
+
listingId: string | null;
|
|
17
|
+
reference: string;
|
|
18
|
+
totalWeight?: {
|
|
19
|
+
name: string;
|
|
20
|
+
conversion: number;
|
|
21
|
+
weight?: number;
|
|
22
|
+
};
|
|
23
|
+
priceType: 'base' | 'fixed' | 'unpriced' | 'premium';
|
|
24
|
+
totalPrice: {
|
|
25
|
+
amount: number;
|
|
26
|
+
currency: string;
|
|
27
|
+
} | null;
|
|
28
|
+
paymentDays: number;
|
|
29
|
+
haulageType: 'ex-farm' | 'delivered';
|
|
30
|
+
contractDateUTC: string;
|
|
31
|
+
contractDateISO: string;
|
|
32
|
+
movementMonth?: {
|
|
33
|
+
month: number;
|
|
34
|
+
year: number;
|
|
35
|
+
};
|
|
36
|
+
movementPeriod: {
|
|
37
|
+
startDateUTC: string;
|
|
38
|
+
endDateUTC: string;
|
|
39
|
+
type: 'date' | 'month';
|
|
40
|
+
};
|
|
41
|
+
movementPeriods?: Array<{
|
|
42
|
+
id: number;
|
|
43
|
+
startDateUTC: string;
|
|
44
|
+
endDateUTC: string;
|
|
45
|
+
type: 'date' | 'month';
|
|
46
|
+
totalWeight: {
|
|
47
|
+
name: string;
|
|
48
|
+
conversion: number;
|
|
49
|
+
weight?: number;
|
|
50
|
+
};
|
|
51
|
+
pricePerUnit: {
|
|
52
|
+
amount: number;
|
|
53
|
+
currency: string;
|
|
54
|
+
} | null;
|
|
55
|
+
premiumPrice: {
|
|
56
|
+
amount: number;
|
|
57
|
+
currency: string;
|
|
58
|
+
} | null;
|
|
59
|
+
premiumPriceMax: {
|
|
60
|
+
amount: number;
|
|
61
|
+
currency: string;
|
|
62
|
+
} | null;
|
|
63
|
+
paymentExpectedUTC: string | null;
|
|
64
|
+
pickUpByUTC: string | null;
|
|
65
|
+
notes: string | null;
|
|
66
|
+
deliveries: Array<{
|
|
67
|
+
id: number;
|
|
68
|
+
movementPeriodId: number;
|
|
69
|
+
recordId?: string | null;
|
|
70
|
+
movementId?: number | null;
|
|
71
|
+
reference: string | null;
|
|
72
|
+
status?: 'undelivered' | 'delivered' | 'cancelled';
|
|
73
|
+
moveAtUTC: string;
|
|
74
|
+
weightPlanned: number;
|
|
75
|
+
weightActual: number | null;
|
|
76
|
+
vehicleRegistration: string | null;
|
|
77
|
+
samples?: Array<{
|
|
78
|
+
fields?: Array<{
|
|
79
|
+
name: string;
|
|
80
|
+
value: string;
|
|
81
|
+
metric: string;
|
|
82
|
+
}>;
|
|
83
|
+
file?: {
|
|
84
|
+
name?: string;
|
|
85
|
+
id: string;
|
|
86
|
+
url?: string | null;
|
|
87
|
+
userId?: string | null;
|
|
88
|
+
userName?: string | null;
|
|
89
|
+
organisationId?: string | null;
|
|
90
|
+
createdAtUTC?: string | null;
|
|
91
|
+
} | null;
|
|
92
|
+
files?: Array<{
|
|
93
|
+
name?: string;
|
|
94
|
+
id: string;
|
|
95
|
+
url?: string | null;
|
|
96
|
+
userId?: string | null;
|
|
97
|
+
userName?: string | null;
|
|
98
|
+
organisationId?: string | null;
|
|
99
|
+
createdAtUTC?: string | null;
|
|
100
|
+
} | null> | null;
|
|
101
|
+
commodityGradeId?: number;
|
|
102
|
+
id?: number;
|
|
103
|
+
}> | null;
|
|
104
|
+
settlement?: {
|
|
105
|
+
reference: string | null;
|
|
106
|
+
status: 'unpaid' | 'paid';
|
|
107
|
+
paymentReceivedDateUTC: string | null;
|
|
108
|
+
invoiceDateUTC: string;
|
|
109
|
+
invoiceDueDateUTC: string;
|
|
110
|
+
pricePerUnit: {
|
|
111
|
+
amount: number;
|
|
112
|
+
currency: string;
|
|
113
|
+
};
|
|
114
|
+
priceVAT: {
|
|
115
|
+
amount: number;
|
|
116
|
+
currency: string;
|
|
117
|
+
};
|
|
118
|
+
priceGross: {
|
|
119
|
+
amount: number;
|
|
120
|
+
currency: string;
|
|
121
|
+
};
|
|
122
|
+
priceNet: {
|
|
123
|
+
amount: number;
|
|
124
|
+
currency: string;
|
|
125
|
+
};
|
|
126
|
+
deductions?: Array<{
|
|
127
|
+
reasonId: number;
|
|
128
|
+
description: string;
|
|
129
|
+
amount: {
|
|
130
|
+
amount: number;
|
|
131
|
+
currency: string;
|
|
132
|
+
};
|
|
133
|
+
}>;
|
|
134
|
+
bonuses?: Array<{
|
|
135
|
+
reasonId: number;
|
|
136
|
+
description: string;
|
|
137
|
+
amount: {
|
|
138
|
+
amount: number;
|
|
139
|
+
currency: string;
|
|
140
|
+
};
|
|
141
|
+
}>;
|
|
142
|
+
files: Array<{
|
|
143
|
+
name?: string;
|
|
144
|
+
id: string;
|
|
145
|
+
url?: string | null;
|
|
146
|
+
userId?: string | null;
|
|
147
|
+
userName?: string | null;
|
|
148
|
+
organisationId?: string | null;
|
|
149
|
+
createdAtUTC?: string | null;
|
|
150
|
+
} | null>;
|
|
151
|
+
} | null;
|
|
152
|
+
}>;
|
|
153
|
+
}>;
|
|
154
|
+
files: Array<{
|
|
155
|
+
name?: string;
|
|
156
|
+
id: string;
|
|
157
|
+
url?: string | null;
|
|
158
|
+
userId?: string | null;
|
|
159
|
+
userName?: string | null;
|
|
160
|
+
organisationId?: string | null;
|
|
161
|
+
createdAtUTC?: string | null;
|
|
162
|
+
} | null>;
|
|
163
|
+
terms: string | null;
|
|
164
|
+
premiumContractId: string | null;
|
|
165
|
+
premiumWeight?: number | null;
|
|
166
|
+
linkedCount?: number | null;
|
|
167
|
+
};
|
|
168
|
+
inventory: {
|
|
169
|
+
type: 'crop' | 'produce';
|
|
170
|
+
harvestYear: string;
|
|
171
|
+
commodity: {
|
|
172
|
+
commodity: {
|
|
173
|
+
id: number;
|
|
174
|
+
name: string;
|
|
175
|
+
};
|
|
176
|
+
type: {
|
|
177
|
+
id: number;
|
|
178
|
+
name: string;
|
|
179
|
+
};
|
|
180
|
+
grade: {
|
|
181
|
+
id: number;
|
|
182
|
+
name: string;
|
|
183
|
+
};
|
|
184
|
+
variety: string;
|
|
185
|
+
tags: Array<number>;
|
|
186
|
+
weight: {
|
|
187
|
+
name: string;
|
|
188
|
+
conversion: number;
|
|
189
|
+
weight?: number;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
measures: Array<{
|
|
193
|
+
specification: {
|
|
194
|
+
id: number;
|
|
195
|
+
name: string;
|
|
196
|
+
unit: string;
|
|
197
|
+
};
|
|
198
|
+
min: number | null;
|
|
199
|
+
max: number | null;
|
|
200
|
+
}>;
|
|
201
|
+
};
|
|
202
|
+
buyer: {
|
|
203
|
+
id?: string;
|
|
204
|
+
createdAtUTC?: string;
|
|
205
|
+
name?: string;
|
|
206
|
+
location?: {
|
|
207
|
+
what3words: string | null;
|
|
208
|
+
address: {
|
|
209
|
+
name?: string | null;
|
|
210
|
+
line1: string;
|
|
211
|
+
line2?: string | null;
|
|
212
|
+
line3?: string | null;
|
|
213
|
+
city?: string | null;
|
|
214
|
+
region?: string | null;
|
|
215
|
+
regionISO?: string | null;
|
|
216
|
+
postcode: string;
|
|
217
|
+
countryName?: string | null;
|
|
218
|
+
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
219
|
+
};
|
|
220
|
+
coordinates: {
|
|
221
|
+
lat: number;
|
|
222
|
+
lon: number;
|
|
223
|
+
};
|
|
224
|
+
} | null;
|
|
225
|
+
countryISO?: 'GB' | 'US' | 'ZA' | 'FR';
|
|
226
|
+
status?: 'active' | 'pending' | 'deleted';
|
|
227
|
+
companyId?: string;
|
|
228
|
+
companyHoldingNumber?: string;
|
|
229
|
+
bio?: string;
|
|
230
|
+
logo?: {
|
|
231
|
+
name?: string;
|
|
232
|
+
id: string;
|
|
233
|
+
url?: string | null;
|
|
234
|
+
userId?: string | null;
|
|
235
|
+
userName?: string | null;
|
|
236
|
+
organisationId?: string | null;
|
|
237
|
+
createdAtUTC?: string | null;
|
|
238
|
+
} | null;
|
|
239
|
+
ownerContact?: {
|
|
240
|
+
id?: string;
|
|
241
|
+
email?: string;
|
|
242
|
+
familyName?: string;
|
|
243
|
+
givenName?: string;
|
|
244
|
+
authPlatformId?: string;
|
|
245
|
+
organisationId?: string;
|
|
246
|
+
countryISO?: 'GB' | 'US' | 'ZA' | 'FR';
|
|
247
|
+
phone?: {
|
|
248
|
+
callingCode: string;
|
|
249
|
+
number: string;
|
|
250
|
+
};
|
|
251
|
+
pushToken?: string;
|
|
252
|
+
};
|
|
253
|
+
billing?: {
|
|
254
|
+
amount: number;
|
|
255
|
+
currency: string;
|
|
256
|
+
period: 'month' | 'quarter' | 'year';
|
|
257
|
+
} | null;
|
|
258
|
+
settlementContacts?: Array<{
|
|
259
|
+
name: string;
|
|
260
|
+
email: string;
|
|
261
|
+
}>;
|
|
262
|
+
modules?: Array<{
|
|
263
|
+
id: string;
|
|
264
|
+
name?: string | null;
|
|
265
|
+
price: {
|
|
266
|
+
amount: number;
|
|
267
|
+
currency: string;
|
|
268
|
+
} | null;
|
|
269
|
+
}>;
|
|
270
|
+
vetted?: boolean;
|
|
271
|
+
isMerchant?: boolean;
|
|
272
|
+
sqc?: {
|
|
273
|
+
number: string;
|
|
274
|
+
isAssured: boolean;
|
|
275
|
+
} | null;
|
|
276
|
+
assuranceScheme?: 'RT' | 'SQC';
|
|
277
|
+
advancePay?: {
|
|
278
|
+
accountName: string;
|
|
279
|
+
sortCode: string;
|
|
280
|
+
accountNumber: string;
|
|
281
|
+
enabled: boolean;
|
|
282
|
+
eligible: boolean;
|
|
283
|
+
} | null;
|
|
284
|
+
};
|
|
285
|
+
deliveries?: Array<{
|
|
286
|
+
id: number;
|
|
287
|
+
movementPeriodId: number;
|
|
288
|
+
recordId?: string | null;
|
|
289
|
+
movementId?: number | null;
|
|
290
|
+
reference: string | null;
|
|
291
|
+
status?: 'undelivered' | 'delivered' | 'cancelled';
|
|
292
|
+
moveAtUTC: string;
|
|
293
|
+
weightPlanned: number;
|
|
294
|
+
weightActual: number | null;
|
|
295
|
+
vehicleRegistration: string | null;
|
|
296
|
+
samples?: Array<{
|
|
297
|
+
fields?: Array<{
|
|
298
|
+
name: string;
|
|
299
|
+
value: string;
|
|
300
|
+
metric: string;
|
|
301
|
+
}>;
|
|
302
|
+
file?: {
|
|
303
|
+
name?: string;
|
|
304
|
+
id: string;
|
|
305
|
+
url?: string | null;
|
|
306
|
+
userId?: string | null;
|
|
307
|
+
userName?: string | null;
|
|
308
|
+
organisationId?: string | null;
|
|
309
|
+
createdAtUTC?: string | null;
|
|
310
|
+
} | null;
|
|
311
|
+
files?: Array<{
|
|
312
|
+
name?: string;
|
|
313
|
+
id: string;
|
|
314
|
+
url?: string | null;
|
|
315
|
+
userId?: string | null;
|
|
316
|
+
userName?: string | null;
|
|
317
|
+
organisationId?: string | null;
|
|
318
|
+
createdAtUTC?: string | null;
|
|
319
|
+
} | null> | null;
|
|
320
|
+
commodityGradeId?: number;
|
|
321
|
+
id?: number;
|
|
322
|
+
}> | null;
|
|
323
|
+
settlement?: {
|
|
324
|
+
reference: string | null;
|
|
325
|
+
status: 'unpaid' | 'paid';
|
|
326
|
+
paymentReceivedDateUTC: string | null;
|
|
327
|
+
invoiceDateUTC: string;
|
|
328
|
+
invoiceDueDateUTC: string;
|
|
329
|
+
pricePerUnit: {
|
|
330
|
+
amount: number;
|
|
331
|
+
currency: string;
|
|
332
|
+
};
|
|
333
|
+
priceVAT: {
|
|
334
|
+
amount: number;
|
|
335
|
+
currency: string;
|
|
336
|
+
};
|
|
337
|
+
priceGross: {
|
|
338
|
+
amount: number;
|
|
339
|
+
currency: string;
|
|
340
|
+
};
|
|
341
|
+
priceNet: {
|
|
342
|
+
amount: number;
|
|
343
|
+
currency: string;
|
|
344
|
+
};
|
|
345
|
+
deductions?: Array<{
|
|
346
|
+
reasonId: number;
|
|
347
|
+
description: string;
|
|
348
|
+
amount: {
|
|
349
|
+
amount: number;
|
|
350
|
+
currency: string;
|
|
351
|
+
};
|
|
352
|
+
}>;
|
|
353
|
+
bonuses?: Array<{
|
|
354
|
+
reasonId: number;
|
|
355
|
+
description: string;
|
|
356
|
+
amount: {
|
|
357
|
+
amount: number;
|
|
358
|
+
currency: string;
|
|
359
|
+
};
|
|
360
|
+
}>;
|
|
361
|
+
files: Array<{
|
|
362
|
+
name?: string;
|
|
363
|
+
id: string;
|
|
364
|
+
url?: string | null;
|
|
365
|
+
userId?: string | null;
|
|
366
|
+
userName?: string | null;
|
|
367
|
+
organisationId?: string | null;
|
|
368
|
+
createdAtUTC?: string | null;
|
|
369
|
+
} | null>;
|
|
370
|
+
} | null;
|
|
371
|
+
}> | null;
|
|
372
|
+
allRecorded: boolean;
|
|
373
|
+
sellerNotes?: string;
|
|
374
|
+
buyerNotes?: string;
|
|
375
|
+
regionISO: string;
|
|
376
|
+
businessId: string | null;
|
|
377
|
+
amendments?: Array<{
|
|
378
|
+
fields?: Record<string, {
|
|
379
|
+
original?: string;
|
|
380
|
+
updated?: string;
|
|
381
|
+
unit?: string | null;
|
|
382
|
+
}>;
|
|
383
|
+
createdAtUTC?: string;
|
|
384
|
+
createdBy?: string;
|
|
385
|
+
userName?: string;
|
|
386
|
+
}>;
|
|
387
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
export type ContractMovementPeriodSchema = {
|
|
2
|
+
id: number;
|
|
3
|
+
startDateUTC: string;
|
|
4
|
+
endDateUTC: string;
|
|
5
|
+
type: 'date' | 'month';
|
|
6
|
+
totalWeight: {
|
|
7
|
+
name: string;
|
|
8
|
+
conversion: number;
|
|
9
|
+
weight?: number;
|
|
10
|
+
};
|
|
11
|
+
pricePerUnit: {
|
|
12
|
+
amount: number;
|
|
13
|
+
currency: string;
|
|
14
|
+
} | null;
|
|
15
|
+
premiumPrice: {
|
|
16
|
+
amount: number;
|
|
17
|
+
currency: string;
|
|
18
|
+
} | null;
|
|
19
|
+
premiumPriceMax: {
|
|
20
|
+
amount: number;
|
|
21
|
+
currency: string;
|
|
22
|
+
} | null;
|
|
23
|
+
paymentExpectedUTC: string | null;
|
|
24
|
+
pickUpByUTC: string | null;
|
|
25
|
+
notes: string | null;
|
|
26
|
+
deliveries: Array<{
|
|
27
|
+
id: number;
|
|
28
|
+
movementPeriodId: number;
|
|
29
|
+
recordId?: string | null;
|
|
30
|
+
movementId?: number | null;
|
|
31
|
+
reference: string | null;
|
|
32
|
+
status?: 'undelivered' | 'delivered' | 'cancelled';
|
|
33
|
+
moveAtUTC: string;
|
|
34
|
+
weightPlanned: number;
|
|
35
|
+
weightActual: number | null;
|
|
36
|
+
vehicleRegistration: string | null;
|
|
37
|
+
samples?: Array<{
|
|
38
|
+
fields?: Array<{
|
|
39
|
+
name: string;
|
|
40
|
+
value: string;
|
|
41
|
+
metric: string;
|
|
42
|
+
}>;
|
|
43
|
+
file?: {
|
|
44
|
+
name?: string;
|
|
45
|
+
id: string;
|
|
46
|
+
url?: string | null;
|
|
47
|
+
userId?: string | null;
|
|
48
|
+
userName?: string | null;
|
|
49
|
+
organisationId?: string | null;
|
|
50
|
+
createdAtUTC?: string | null;
|
|
51
|
+
} | null;
|
|
52
|
+
files?: Array<{
|
|
53
|
+
name?: string;
|
|
54
|
+
id: string;
|
|
55
|
+
url?: string | null;
|
|
56
|
+
userId?: string | null;
|
|
57
|
+
userName?: string | null;
|
|
58
|
+
organisationId?: string | null;
|
|
59
|
+
createdAtUTC?: string | null;
|
|
60
|
+
} | null> | null;
|
|
61
|
+
commodityGradeId?: number;
|
|
62
|
+
id?: number;
|
|
63
|
+
}> | null;
|
|
64
|
+
settlement?: {
|
|
65
|
+
reference: string | null;
|
|
66
|
+
status: 'unpaid' | 'paid';
|
|
67
|
+
paymentReceivedDateUTC: string | null;
|
|
68
|
+
invoiceDateUTC: string;
|
|
69
|
+
invoiceDueDateUTC: string;
|
|
70
|
+
pricePerUnit: {
|
|
71
|
+
amount: number;
|
|
72
|
+
currency: string;
|
|
73
|
+
};
|
|
74
|
+
priceVAT: {
|
|
75
|
+
amount: number;
|
|
76
|
+
currency: string;
|
|
77
|
+
};
|
|
78
|
+
priceGross: {
|
|
79
|
+
amount: number;
|
|
80
|
+
currency: string;
|
|
81
|
+
};
|
|
82
|
+
priceNet: {
|
|
83
|
+
amount: number;
|
|
84
|
+
currency: string;
|
|
85
|
+
};
|
|
86
|
+
deductions?: Array<{
|
|
87
|
+
reasonId: number;
|
|
88
|
+
description: string;
|
|
89
|
+
amount: {
|
|
90
|
+
amount: number;
|
|
91
|
+
currency: string;
|
|
92
|
+
};
|
|
93
|
+
}>;
|
|
94
|
+
bonuses?: Array<{
|
|
95
|
+
reasonId: number;
|
|
96
|
+
description: string;
|
|
97
|
+
amount: {
|
|
98
|
+
amount: number;
|
|
99
|
+
currency: string;
|
|
100
|
+
};
|
|
101
|
+
}>;
|
|
102
|
+
files: Array<{
|
|
103
|
+
name?: string;
|
|
104
|
+
id: string;
|
|
105
|
+
url?: string | null;
|
|
106
|
+
userId?: string | null;
|
|
107
|
+
userName?: string | null;
|
|
108
|
+
organisationId?: string | null;
|
|
109
|
+
createdAtUTC?: string | null;
|
|
110
|
+
} | null>;
|
|
111
|
+
} | null;
|
|
112
|
+
}>;
|
|
113
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type ContractRollOverSchema = {
|
|
2
|
+
startDateUTC: string;
|
|
3
|
+
endDateUTC: string;
|
|
4
|
+
type: 'date' | 'month';
|
|
5
|
+
totalWeight: number;
|
|
6
|
+
pricePerUnit: {
|
|
7
|
+
amount: number;
|
|
8
|
+
currency: string;
|
|
9
|
+
} | null;
|
|
10
|
+
paymentExpectedUTC: string | null;
|
|
11
|
+
pickUpByUTC: string | null;
|
|
12
|
+
notes: string | null;
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
export type ContractsAvailability = {
|
|
2
|
+
weight?: {
|
|
3
|
+
name: string;
|
|
4
|
+
conversion: number;
|
|
5
|
+
weight?: number;
|
|
6
|
+
};
|
|
7
|
+
pricesLastUpdatedUTC?: string | null;
|
|
8
|
+
commodities?: Array<{
|
|
9
|
+
commodity?: {
|
|
10
|
+
id?: string | null;
|
|
11
|
+
name?: string;
|
|
12
|
+
type?: string;
|
|
13
|
+
pricedWeight?: number;
|
|
14
|
+
unpricedWeight?: number;
|
|
15
|
+
availableWeight?: number;
|
|
16
|
+
totalWeight?: number;
|
|
17
|
+
soldWeight?: number;
|
|
18
|
+
soldPercent?: number;
|
|
19
|
+
priceDelta?: number | null;
|
|
20
|
+
targetPrice?: number | null;
|
|
21
|
+
currentPrice?: number | null;
|
|
22
|
+
averagePrice?: number | null;
|
|
23
|
+
area?: string | null;
|
|
24
|
+
region?: string | null;
|
|
25
|
+
};
|
|
26
|
+
types?: Array<{
|
|
27
|
+
id?: string | null;
|
|
28
|
+
name?: string;
|
|
29
|
+
type?: string;
|
|
30
|
+
pricedWeight?: number;
|
|
31
|
+
unpricedWeight?: number;
|
|
32
|
+
availableWeight?: number;
|
|
33
|
+
totalWeight?: number;
|
|
34
|
+
soldWeight?: number;
|
|
35
|
+
soldPercent?: number;
|
|
36
|
+
priceDelta?: number | null;
|
|
37
|
+
targetPrice?: number | null;
|
|
38
|
+
currentPrice?: number | null;
|
|
39
|
+
averagePrice?: number | null;
|
|
40
|
+
area?: string | null;
|
|
41
|
+
region?: string | null;
|
|
42
|
+
grades?: Array<{
|
|
43
|
+
id?: string | null;
|
|
44
|
+
name?: string;
|
|
45
|
+
type?: string;
|
|
46
|
+
pricedWeight?: number;
|
|
47
|
+
unpricedWeight?: number;
|
|
48
|
+
availableWeight?: number;
|
|
49
|
+
totalWeight?: number;
|
|
50
|
+
soldWeight?: number;
|
|
51
|
+
soldPercent?: number;
|
|
52
|
+
priceDelta?: number | null;
|
|
53
|
+
targetPrice?: number | null;
|
|
54
|
+
currentPrice?: number | null;
|
|
55
|
+
averagePrice?: number | null;
|
|
56
|
+
area?: string | null;
|
|
57
|
+
region?: string | null;
|
|
58
|
+
}>;
|
|
59
|
+
}>;
|
|
60
|
+
}>;
|
|
61
|
+
areas?: Array<{
|
|
62
|
+
id?: string | null;
|
|
63
|
+
name?: string;
|
|
64
|
+
type?: string;
|
|
65
|
+
pricedWeight?: number;
|
|
66
|
+
unpricedWeight?: number;
|
|
67
|
+
availableWeight?: number;
|
|
68
|
+
totalWeight?: number;
|
|
69
|
+
soldWeight?: number;
|
|
70
|
+
soldPercent?: number;
|
|
71
|
+
priceDelta?: number | null;
|
|
72
|
+
targetPrice?: number | null;
|
|
73
|
+
currentPrice?: number | null;
|
|
74
|
+
averagePrice?: number | null;
|
|
75
|
+
area?: string | null;
|
|
76
|
+
region?: string | null;
|
|
77
|
+
}>;
|
|
78
|
+
businesses?: Array<{
|
|
79
|
+
id?: string | null;
|
|
80
|
+
name?: string;
|
|
81
|
+
type?: string;
|
|
82
|
+
pricedWeight?: number;
|
|
83
|
+
unpricedWeight?: number;
|
|
84
|
+
availableWeight?: number;
|
|
85
|
+
totalWeight?: number;
|
|
86
|
+
soldWeight?: number;
|
|
87
|
+
soldPercent?: number;
|
|
88
|
+
priceDelta?: number | null;
|
|
89
|
+
targetPrice?: number | null;
|
|
90
|
+
currentPrice?: number | null;
|
|
91
|
+
averagePrice?: number | null;
|
|
92
|
+
area?: string | null;
|
|
93
|
+
region?: string | null;
|
|
94
|
+
}>;
|
|
95
|
+
regions?: Array<{
|
|
96
|
+
id?: string | null;
|
|
97
|
+
name?: string;
|
|
98
|
+
type?: string;
|
|
99
|
+
pricedWeight?: number;
|
|
100
|
+
unpricedWeight?: number;
|
|
101
|
+
availableWeight?: number;
|
|
102
|
+
totalWeight?: number;
|
|
103
|
+
soldWeight?: number;
|
|
104
|
+
soldPercent?: number;
|
|
105
|
+
priceDelta?: number | null;
|
|
106
|
+
targetPrice?: number | null;
|
|
107
|
+
currentPrice?: number | null;
|
|
108
|
+
averagePrice?: number | null;
|
|
109
|
+
area?: string | null;
|
|
110
|
+
region?: string | null;
|
|
111
|
+
}>;
|
|
112
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|