@hectare/platform.clients.trading 1.1.240 → 1.1.242
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 +2 -4
- package/models/BidDetail.d.ts +25 -49
- package/models/ContractDetail.d.ts +100 -64
- package/models/CreateBid.d.ts +2 -22
- package/models/CreateContractSchema.d.ts +32 -0
- package/models/CreateInventorySchema.d.ts +9 -7
- package/models/CreateListing.d.ts +2 -28
- package/models/CreateMarketingPlanSchema.d.ts +0 -1
- package/models/HarvestSummarySchema.d.ts +50 -18
- package/models/InventoryDetailSchema.d.ts +39 -25
- package/models/InventorySchema.d.ts +0 -1
- package/models/InventorySearchResultsSchema.d.ts +39 -25
- package/models/InventorySummarySchema.d.ts +41 -19
- package/models/ListingDetail.d.ts +50 -88
- package/models/ListingSummary.d.ts +25 -39
- package/models/MarketingPlanDetailSchema.d.ts +4 -4
- package/models/MarketingPlanSearchResultsSchema.d.ts +4 -4
- package/models/MarketingPlanSummarySchema.d.ts +4 -4
- package/models/PatchBid.d.ts +0 -20
- package/models/PatchBidOption.d.ts +0 -8
- package/models/PatchInventorySchema.d.ts +11 -0
- package/models/PatchListingSchema.d.ts +1 -18
- package/models/PatchMarketingPlanSchema.d.ts +0 -1
- package/models/SearchResultsBidSchema.d.ts +25 -49
- package/models/SearchResultsListingSchema.d.ts +25 -39
- package/package.json +1 -1
- package/models/BidAlerts.d.ts +0 -10
- package/models/ContractDeliverySchema.d.ts +0 -87
- package/models/ContractDeliverySettlementDeductionSchema.d.ts +0 -8
- package/models/ContractDeliverySettlementDeductionSchema.js +0 -1
- package/models/ContractDeliverySettlementSchema.d.ts +0 -48
- package/models/ContractDeliverySettlementSchema.js +0 -1
- /package/models/{BidAlerts.js → CreateContractSchema.js} +0 -0
- /package/models/{ContractDeliverySchema.js → PatchInventorySchema.js} +0 -0
|
@@ -12,8 +12,10 @@ export type ListingSummary = {
|
|
|
12
12
|
organisationName: string;
|
|
13
13
|
organisationLogo: string;
|
|
14
14
|
organisationVetted: boolean;
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
businessId: string;
|
|
16
|
+
businessName: string;
|
|
17
|
+
businessUnitId?: string;
|
|
18
|
+
businessUnitName?: string;
|
|
17
19
|
businessCollectionAddressId: number | null;
|
|
18
20
|
businessCollectionAddress: {
|
|
19
21
|
id: number | null;
|
|
@@ -87,17 +89,6 @@ export type ListingSummary = {
|
|
|
87
89
|
endDateUTC: string | null;
|
|
88
90
|
reviewEndDateUTC: string | null;
|
|
89
91
|
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
92
|
movement: {
|
|
102
93
|
months: Array<string>;
|
|
103
94
|
asAvailable: boolean | null;
|
|
@@ -116,25 +107,11 @@ export type ListingSummary = {
|
|
|
116
107
|
amount: number;
|
|
117
108
|
currency: string;
|
|
118
109
|
} | 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
110
|
contractType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
|
|
133
111
|
haulageType: 'ex-farm' | 'delivered' | 'both' | null;
|
|
134
112
|
haulageTypeTASCC?: boolean | null;
|
|
135
113
|
};
|
|
136
114
|
inventory: {
|
|
137
|
-
id?: string;
|
|
138
115
|
type: 'crop' | 'produce';
|
|
139
116
|
harvestYear: string;
|
|
140
117
|
commodity: {
|
|
@@ -150,7 +127,6 @@ export type ListingSummary = {
|
|
|
150
127
|
id: number;
|
|
151
128
|
name: string;
|
|
152
129
|
};
|
|
153
|
-
variety?: string;
|
|
154
130
|
varieties: Array<string>;
|
|
155
131
|
attributes: Array<{
|
|
156
132
|
id: number;
|
|
@@ -163,6 +139,27 @@ export type ListingSummary = {
|
|
|
163
139
|
weight?: number;
|
|
164
140
|
};
|
|
165
141
|
};
|
|
142
|
+
measures: Array<{
|
|
143
|
+
specification: {
|
|
144
|
+
id: number;
|
|
145
|
+
name: string;
|
|
146
|
+
unit: string;
|
|
147
|
+
};
|
|
148
|
+
min: number | null;
|
|
149
|
+
max: number | null;
|
|
150
|
+
}> | null;
|
|
151
|
+
hasSampled: boolean;
|
|
152
|
+
customMeasures: boolean | null;
|
|
153
|
+
files?: Array<{
|
|
154
|
+
name?: string;
|
|
155
|
+
id: string;
|
|
156
|
+
url?: string | null;
|
|
157
|
+
userId?: string | null;
|
|
158
|
+
userName?: string | null;
|
|
159
|
+
organisationId?: string | null;
|
|
160
|
+
createdAtUTC?: string | null;
|
|
161
|
+
} | null>;
|
|
162
|
+
id?: string;
|
|
166
163
|
weight: {
|
|
167
164
|
min: {
|
|
168
165
|
name: string;
|
|
@@ -175,17 +172,6 @@ export type ListingSummary = {
|
|
|
175
172
|
weight?: number;
|
|
176
173
|
};
|
|
177
174
|
};
|
|
178
|
-
measures: Array<{
|
|
179
|
-
specification: {
|
|
180
|
-
id: number;
|
|
181
|
-
name: string;
|
|
182
|
-
unit: string;
|
|
183
|
-
};
|
|
184
|
-
min: number | null;
|
|
185
|
-
max: number | null;
|
|
186
|
-
}> | null;
|
|
187
|
-
hasSampled: boolean | null;
|
|
188
|
-
customMeasures: boolean | null;
|
|
189
175
|
};
|
|
190
176
|
activeBids: number;
|
|
191
177
|
bidInfo: {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export type MarketingPlanDetailSchema = {
|
|
2
2
|
id: string;
|
|
3
3
|
createdAtUTC?: string;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
businessId: string;
|
|
5
|
+
businessName: string;
|
|
6
|
+
businessUnitId?: string;
|
|
7
|
+
businessUnitName?: string;
|
|
6
8
|
organisationId: string;
|
|
7
9
|
organisationName: string;
|
|
8
10
|
inventoryId: string;
|
|
@@ -23,7 +25,6 @@ export type MarketingPlanDetailSchema = {
|
|
|
23
25
|
id: number;
|
|
24
26
|
name: string;
|
|
25
27
|
};
|
|
26
|
-
variety?: string;
|
|
27
28
|
varieties: Array<string>;
|
|
28
29
|
attributes: Array<{
|
|
29
30
|
id: number;
|
|
@@ -63,7 +64,6 @@ export type MarketingPlanDetailSchema = {
|
|
|
63
64
|
weight?: number;
|
|
64
65
|
};
|
|
65
66
|
details: {
|
|
66
|
-
isBasePremOnly?: boolean;
|
|
67
67
|
contractType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
|
|
68
68
|
targetPrice?: {
|
|
69
69
|
amount: number;
|
|
@@ -2,8 +2,10 @@ export type MarketingPlanSearchResultsSchema = {
|
|
|
2
2
|
docs: Array<{
|
|
3
3
|
id: string;
|
|
4
4
|
createdAtUTC?: string;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
businessId: string;
|
|
6
|
+
businessName: string;
|
|
7
|
+
businessUnitId?: string;
|
|
8
|
+
businessUnitName?: string;
|
|
7
9
|
organisationId: string;
|
|
8
10
|
organisationName: string;
|
|
9
11
|
inventoryId: string;
|
|
@@ -24,7 +26,6 @@ export type MarketingPlanSearchResultsSchema = {
|
|
|
24
26
|
id: number;
|
|
25
27
|
name: string;
|
|
26
28
|
};
|
|
27
|
-
variety?: string;
|
|
28
29
|
varieties: Array<string>;
|
|
29
30
|
attributes: Array<{
|
|
30
31
|
id: number;
|
|
@@ -64,7 +65,6 @@ export type MarketingPlanSearchResultsSchema = {
|
|
|
64
65
|
weight?: number;
|
|
65
66
|
};
|
|
66
67
|
details: {
|
|
67
|
-
isBasePremOnly?: boolean;
|
|
68
68
|
contractType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
|
|
69
69
|
targetPrice?: {
|
|
70
70
|
amount: number;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export type MarketingPlanSummarySchema = {
|
|
2
2
|
id: string;
|
|
3
3
|
createdAtUTC?: string;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
businessId: string;
|
|
5
|
+
businessName: string;
|
|
6
|
+
businessUnitId?: string;
|
|
7
|
+
businessUnitName?: string;
|
|
6
8
|
organisationId: string;
|
|
7
9
|
organisationName: string;
|
|
8
10
|
inventoryId: string;
|
|
@@ -23,7 +25,6 @@ export type MarketingPlanSummarySchema = {
|
|
|
23
25
|
id: number;
|
|
24
26
|
name: string;
|
|
25
27
|
};
|
|
26
|
-
variety?: string;
|
|
27
28
|
varieties: Array<string>;
|
|
28
29
|
attributes: Array<{
|
|
29
30
|
id: number;
|
|
@@ -63,7 +64,6 @@ export type MarketingPlanSummarySchema = {
|
|
|
63
64
|
weight?: number;
|
|
64
65
|
};
|
|
65
66
|
details: {
|
|
66
|
-
isBasePremOnly?: boolean;
|
|
67
67
|
contractType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
|
|
68
68
|
targetPrice?: {
|
|
69
69
|
amount: number;
|
package/models/PatchBid.d.ts
CHANGED
|
@@ -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
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type PatchListingSchema = {
|
|
2
2
|
businessUnitId?: string | null;
|
|
3
|
+
businessId?: string | null;
|
|
3
4
|
collectionAddressId?: number | null;
|
|
4
5
|
details?: {
|
|
5
6
|
buyerNotes?: string | null;
|
|
@@ -12,29 +13,12 @@ export type PatchListingSchema = {
|
|
|
12
13
|
organisationId?: string | null;
|
|
13
14
|
createdAtUTC?: string | null;
|
|
14
15
|
} | null>;
|
|
15
|
-
movementPeriod?: {
|
|
16
|
-
startDateUTC: string;
|
|
17
|
-
endDateUTC: string;
|
|
18
|
-
type: 'date' | 'month';
|
|
19
|
-
excludedDatesUTC?: Array<string> | null;
|
|
20
|
-
asAvailable?: boolean | null;
|
|
21
|
-
};
|
|
22
16
|
movement?: {
|
|
23
17
|
months: Array<string>;
|
|
24
18
|
asAvailable: boolean | null;
|
|
25
19
|
};
|
|
26
|
-
price?: {
|
|
27
|
-
amount: number;
|
|
28
|
-
currency: string;
|
|
29
|
-
} | null;
|
|
30
|
-
targetPrice?: {
|
|
31
|
-
amount: number;
|
|
32
|
-
currency: string;
|
|
33
|
-
} | null;
|
|
34
|
-
isBasePremOnly?: boolean;
|
|
35
20
|
contractType?: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
|
|
36
21
|
startDateUTC?: string | null;
|
|
37
|
-
endDateUTC?: string | null;
|
|
38
22
|
haulageType?: 'ex-farm' | 'delivered' | 'both' | null;
|
|
39
23
|
haulageTypeTASCC?: boolean | null;
|
|
40
24
|
};
|
|
@@ -45,7 +29,6 @@ export type PatchListingSchema = {
|
|
|
45
29
|
id: number;
|
|
46
30
|
type: number;
|
|
47
31
|
grade: number | null;
|
|
48
|
-
variety?: string | null;
|
|
49
32
|
varieties?: Array<string> | null;
|
|
50
33
|
tags?: Array<number> | null;
|
|
51
34
|
};
|
|
@@ -16,8 +16,10 @@ export type SearchResultsBidSchema = {
|
|
|
16
16
|
organisationName: string;
|
|
17
17
|
organisationLogo: string;
|
|
18
18
|
organisationVetted: boolean;
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
businessId: string;
|
|
20
|
+
businessName: string;
|
|
21
|
+
businessUnitId?: string;
|
|
22
|
+
businessUnitName?: string;
|
|
21
23
|
businessCollectionAddressId: number | null;
|
|
22
24
|
businessCollectionAddress: {
|
|
23
25
|
id: number | null;
|
|
@@ -91,17 +93,6 @@ export type SearchResultsBidSchema = {
|
|
|
91
93
|
endDateUTC: string | null;
|
|
92
94
|
reviewEndDateUTC: string | null;
|
|
93
95
|
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
96
|
movement: {
|
|
106
97
|
months: Array<string>;
|
|
107
98
|
asAvailable: boolean | null;
|
|
@@ -120,25 +111,11 @@ export type SearchResultsBidSchema = {
|
|
|
120
111
|
amount: number;
|
|
121
112
|
currency: string;
|
|
122
113
|
} | 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
114
|
contractType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
|
|
137
115
|
haulageType: 'ex-farm' | 'delivered' | 'both' | null;
|
|
138
116
|
haulageTypeTASCC?: boolean | null;
|
|
139
117
|
};
|
|
140
118
|
inventory: {
|
|
141
|
-
id?: string;
|
|
142
119
|
type: 'crop' | 'produce';
|
|
143
120
|
harvestYear: string;
|
|
144
121
|
commodity: {
|
|
@@ -154,7 +131,6 @@ export type SearchResultsBidSchema = {
|
|
|
154
131
|
id: number;
|
|
155
132
|
name: string;
|
|
156
133
|
};
|
|
157
|
-
variety?: string;
|
|
158
134
|
varieties: Array<string>;
|
|
159
135
|
attributes: Array<{
|
|
160
136
|
id: number;
|
|
@@ -167,6 +143,27 @@ export type SearchResultsBidSchema = {
|
|
|
167
143
|
weight?: number;
|
|
168
144
|
};
|
|
169
145
|
};
|
|
146
|
+
measures: Array<{
|
|
147
|
+
specification: {
|
|
148
|
+
id: number;
|
|
149
|
+
name: string;
|
|
150
|
+
unit: string;
|
|
151
|
+
};
|
|
152
|
+
min: number | null;
|
|
153
|
+
max: number | null;
|
|
154
|
+
}> | null;
|
|
155
|
+
hasSampled: boolean;
|
|
156
|
+
customMeasures: boolean | null;
|
|
157
|
+
files?: Array<{
|
|
158
|
+
name?: string;
|
|
159
|
+
id: string;
|
|
160
|
+
url?: string | null;
|
|
161
|
+
userId?: string | null;
|
|
162
|
+
userName?: string | null;
|
|
163
|
+
organisationId?: string | null;
|
|
164
|
+
createdAtUTC?: string | null;
|
|
165
|
+
} | null>;
|
|
166
|
+
id?: string;
|
|
170
167
|
weight: {
|
|
171
168
|
min: {
|
|
172
169
|
name: string;
|
|
@@ -179,17 +176,6 @@ export type SearchResultsBidSchema = {
|
|
|
179
176
|
weight?: number;
|
|
180
177
|
};
|
|
181
178
|
};
|
|
182
|
-
measures: Array<{
|
|
183
|
-
specification: {
|
|
184
|
-
id: number;
|
|
185
|
-
name: string;
|
|
186
|
-
unit: string;
|
|
187
|
-
};
|
|
188
|
-
min: number | null;
|
|
189
|
-
max: number | null;
|
|
190
|
-
}> | null;
|
|
191
|
-
hasSampled: boolean | null;
|
|
192
|
-
customMeasures: boolean | null;
|
|
193
179
|
};
|
|
194
180
|
activeBids: number;
|
|
195
181
|
bidInfo: {
|
|
@@ -284,23 +270,13 @@ export type SearchResultsBidSchema = {
|
|
|
284
270
|
vatNumber?: string | null;
|
|
285
271
|
};
|
|
286
272
|
userId: string;
|
|
287
|
-
userFullName?: string;
|
|
288
273
|
organisationId?: string;
|
|
289
|
-
organisationCreatedAtUTC?: string;
|
|
290
|
-
organisationName?: string;
|
|
291
|
-
organisationLogo?: string;
|
|
292
|
-
organisationVetted?: boolean;
|
|
293
274
|
createdAtUTC: string;
|
|
294
275
|
status: 'active' | 'accepted' | 'withdrawn' | 'expired' | 'expiredOffered' | 'expiredOfferDeclined' | 'closed';
|
|
295
276
|
expiresAtUTC: string;
|
|
296
277
|
options: Array<{
|
|
297
278
|
id: number;
|
|
298
279
|
status: 'active' | 'accepted' | 'inactive';
|
|
299
|
-
movementPeriod: {
|
|
300
|
-
startDateUTC: string;
|
|
301
|
-
endDateUTC: string;
|
|
302
|
-
type: 'date' | 'month';
|
|
303
|
-
};
|
|
304
280
|
movement: {
|
|
305
281
|
months: Array<string>;
|
|
306
282
|
asAvailable: boolean | null;
|
|
@@ -13,8 +13,10 @@ export type SearchResultsListingSchema = {
|
|
|
13
13
|
organisationName: string;
|
|
14
14
|
organisationLogo: string;
|
|
15
15
|
organisationVetted: boolean;
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
businessId: string;
|
|
17
|
+
businessName: string;
|
|
18
|
+
businessUnitId?: string;
|
|
19
|
+
businessUnitName?: string;
|
|
18
20
|
businessCollectionAddressId: number | null;
|
|
19
21
|
businessCollectionAddress: {
|
|
20
22
|
id: number | null;
|
|
@@ -88,17 +90,6 @@ export type SearchResultsListingSchema = {
|
|
|
88
90
|
endDateUTC: string | null;
|
|
89
91
|
reviewEndDateUTC: string | null;
|
|
90
92
|
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
93
|
movement: {
|
|
103
94
|
months: Array<string>;
|
|
104
95
|
asAvailable: boolean | null;
|
|
@@ -117,25 +108,11 @@ export type SearchResultsListingSchema = {
|
|
|
117
108
|
amount: number;
|
|
118
109
|
currency: string;
|
|
119
110
|
} | 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
111
|
contractType: 'base' | 'fixed' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
|
|
134
112
|
haulageType: 'ex-farm' | 'delivered' | 'both' | null;
|
|
135
113
|
haulageTypeTASCC?: boolean | null;
|
|
136
114
|
};
|
|
137
115
|
inventory: {
|
|
138
|
-
id?: string;
|
|
139
116
|
type: 'crop' | 'produce';
|
|
140
117
|
harvestYear: string;
|
|
141
118
|
commodity: {
|
|
@@ -151,7 +128,6 @@ export type SearchResultsListingSchema = {
|
|
|
151
128
|
id: number;
|
|
152
129
|
name: string;
|
|
153
130
|
};
|
|
154
|
-
variety?: string;
|
|
155
131
|
varieties: Array<string>;
|
|
156
132
|
attributes: Array<{
|
|
157
133
|
id: number;
|
|
@@ -164,6 +140,27 @@ export type SearchResultsListingSchema = {
|
|
|
164
140
|
weight?: number;
|
|
165
141
|
};
|
|
166
142
|
};
|
|
143
|
+
measures: Array<{
|
|
144
|
+
specification: {
|
|
145
|
+
id: number;
|
|
146
|
+
name: string;
|
|
147
|
+
unit: string;
|
|
148
|
+
};
|
|
149
|
+
min: number | null;
|
|
150
|
+
max: number | null;
|
|
151
|
+
}> | null;
|
|
152
|
+
hasSampled: boolean;
|
|
153
|
+
customMeasures: boolean | null;
|
|
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
|
+
id?: string;
|
|
167
164
|
weight: {
|
|
168
165
|
min: {
|
|
169
166
|
name: string;
|
|
@@ -176,17 +173,6 @@ export type SearchResultsListingSchema = {
|
|
|
176
173
|
weight?: number;
|
|
177
174
|
};
|
|
178
175
|
};
|
|
179
|
-
measures: Array<{
|
|
180
|
-
specification: {
|
|
181
|
-
id: number;
|
|
182
|
-
name: string;
|
|
183
|
-
unit: string;
|
|
184
|
-
};
|
|
185
|
-
min: number | null;
|
|
186
|
-
max: number | null;
|
|
187
|
-
}> | null;
|
|
188
|
-
hasSampled: boolean | null;
|
|
189
|
-
customMeasures: boolean | null;
|
|
190
176
|
};
|
|
191
177
|
activeBids: number;
|
|
192
178
|
bidInfo: {
|
package/package.json
CHANGED
package/models/BidAlerts.d.ts
DELETED
|
@@ -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 {};
|