@hectare/platform.clients.trading 1.1.235 → 1.1.237
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 +0 -6
- package/models/BidDetail.d.ts +4 -27
- package/models/ContractDetail.d.ts +4 -27
- package/models/CreateListing.d.ts +0 -1
- package/models/ListingDetail.d.ts +8 -54
- package/models/ListingSummary.d.ts +4 -27
- package/models/SearchResultsBidSchema.d.ts +4 -27
- package/models/SearchResultsListingSchema.d.ts +4 -27
- package/package.json +1 -1
- package/models/CreateMarketUpdateRequest.d.ts +0 -21
- package/models/CreateMarketUpdateRequest.js +0 -1
- package/models/CreateTradeRequest.d.ts +0 -47
- package/models/CreateTradeRequest.js +0 -1
- package/models/MarketUpdateDetail.d.ts +0 -15
- package/models/MarketUpdateDetail.js +0 -1
- package/models/PatchMarketUpdateRequest.d.ts +0 -14
- package/models/PatchMarketUpdateRequest.js +0 -1
- package/models/TradeRequestDetail.d.ts +0 -84
- package/models/TradeRequestDetail.js +0 -1
- package/models/TradeRequestSearchResultsSchema.d.ts +0 -135
- package/models/TradeRequestSearchResultsSchema.js +0 -1
package/index.d.ts
CHANGED
|
@@ -15,10 +15,8 @@ export type { CreateBidOfferSchema } from './models/CreateBidOfferSchema.js';
|
|
|
15
15
|
export type { CreateInventorySchema } from './models/CreateInventorySchema.js';
|
|
16
16
|
export type { CreateListing } from './models/CreateListing.js';
|
|
17
17
|
export type { CreateMarketingPlanSchema } from './models/CreateMarketingPlanSchema.js';
|
|
18
|
-
export type { CreateMarketUpdateRequest } from './models/CreateMarketUpdateRequest.js';
|
|
19
18
|
export type { CreateOrUpdateTargetPriceSchema } from './models/CreateOrUpdateTargetPriceSchema.js';
|
|
20
19
|
export type { CreateOrUpdateTargetPricesSchema } from './models/CreateOrUpdateTargetPricesSchema.js';
|
|
21
|
-
export type { CreateTradeRequest } from './models/CreateTradeRequest.js';
|
|
22
20
|
export type { CreateWantedAd } from './models/CreateWantedAd.js';
|
|
23
21
|
export type { DeleteMarketingPlanSchema } from './models/DeleteMarketingPlanSchema.js';
|
|
24
22
|
export type { ExFarmPriceCommodity } from './models/ExFarmPriceCommodity.js';
|
|
@@ -48,7 +46,6 @@ export type { MarketingPlanCheckSchema } from './models/MarketingPlanCheckSchema
|
|
|
48
46
|
export type { MarketingPlanDetailSchema } from './models/MarketingPlanDetailSchema.js';
|
|
49
47
|
export type { MarketingPlanSearchResultsSchema } from './models/MarketingPlanSearchResultsSchema.js';
|
|
50
48
|
export type { MarketingPlanSummarySchema } from './models/MarketingPlanSummarySchema.js';
|
|
51
|
-
export type { MarketUpdateDetail } from './models/MarketUpdateDetail.js';
|
|
52
49
|
export type { NewsFeed } from './models/NewsFeed.js';
|
|
53
50
|
export type { PatchBid } from './models/PatchBid.js';
|
|
54
51
|
export type { PatchBidOfferSchema } from './models/PatchBidOfferSchema.js';
|
|
@@ -59,7 +56,6 @@ export type { PatchListingSubstatusSchema } from './models/PatchListingSubstatus
|
|
|
59
56
|
export type { PatchMarketingPlanEmailDistributionListSchema } from './models/PatchMarketingPlanEmailDistributionListSchema.js';
|
|
60
57
|
export type { PatchMarketingPlanScheduleSchema } from './models/PatchMarketingPlanScheduleSchema.js';
|
|
61
58
|
export type { PatchMarketingPlanSchema } from './models/PatchMarketingPlanSchema.js';
|
|
62
|
-
export type { PatchMarketUpdateRequest } from './models/PatchMarketUpdateRequest.js';
|
|
63
59
|
export type { PatchWantedAdSchema } from './models/PatchWantedAdSchema.js';
|
|
64
60
|
export type { PriceScoreSchema } from './models/PriceScoreSchema.js';
|
|
65
61
|
export type { PublishExFarmPricingSchema } from './models/PublishExFarmPricingSchema.js';
|
|
@@ -69,8 +65,6 @@ export type { SearchResultsBidSchema } from './models/SearchResultsBidSchema.js'
|
|
|
69
65
|
export type { SearchResultsListingSchema } from './models/SearchResultsListingSchema.js';
|
|
70
66
|
export type { TargetPriceDetailSchema } from './models/TargetPriceDetailSchema.js';
|
|
71
67
|
export type { Templates } from './models/Templates.js';
|
|
72
|
-
export type { TradeRequestDetail } from './models/TradeRequestDetail.js';
|
|
73
|
-
export type { TradeRequestSearchResultsSchema } from './models/TradeRequestSearchResultsSchema.js';
|
|
74
68
|
export type { TradingConfig } from './models/TradingConfig.js';
|
|
75
69
|
export type { WantedAdDetailSchema } from './models/WantedAdDetailSchema.js';
|
|
76
70
|
export type { WantedAdSearchResultsSchema } from './models/WantedAdSearchResultsSchema.js';
|
package/models/BidDetail.d.ts
CHANGED
|
@@ -11,9 +11,9 @@ export type BidDetail = {
|
|
|
11
11
|
tradingStatus: 'with-buyers' | 'scheduled' | 'review' | 'request-trade' | 'expired' | 'no-offers' | 'ended';
|
|
12
12
|
business: {
|
|
13
13
|
organisationId: string;
|
|
14
|
-
organisationCreatedAtUTC
|
|
14
|
+
organisationCreatedAtUTC: string;
|
|
15
15
|
organisationName: string;
|
|
16
|
-
organisationLogo
|
|
16
|
+
organisationLogo: string;
|
|
17
17
|
organisationVetted: boolean;
|
|
18
18
|
businessUnitId: string;
|
|
19
19
|
businessUnitName: string;
|
|
@@ -47,12 +47,13 @@ export type BidDetail = {
|
|
|
47
47
|
callingCode: string;
|
|
48
48
|
number: string;
|
|
49
49
|
};
|
|
50
|
-
type: 'collection' | 'business' | 'delivery'
|
|
50
|
+
type: 'collection' | 'business' | 'delivery';
|
|
51
51
|
} | null;
|
|
52
52
|
id: string;
|
|
53
53
|
userId: string;
|
|
54
54
|
name: string;
|
|
55
55
|
email: string;
|
|
56
|
+
ukRegion: string;
|
|
56
57
|
phone: {
|
|
57
58
|
callingCode: string;
|
|
58
59
|
number: string;
|
|
@@ -83,28 +84,6 @@ export type BidDetail = {
|
|
|
83
84
|
name?: string | null;
|
|
84
85
|
location?: string | null;
|
|
85
86
|
} | null;
|
|
86
|
-
holdingNumber?: string;
|
|
87
|
-
collectionLocation?: {
|
|
88
|
-
what3words: string | null;
|
|
89
|
-
address: {
|
|
90
|
-
name?: string | null;
|
|
91
|
-
line1: string;
|
|
92
|
-
line2?: string | null;
|
|
93
|
-
line3?: string | null;
|
|
94
|
-
city?: string | null;
|
|
95
|
-
region?: string | null;
|
|
96
|
-
regionISO?: string | null;
|
|
97
|
-
postcode: string;
|
|
98
|
-
countryName?: string | null;
|
|
99
|
-
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
100
|
-
};
|
|
101
|
-
coordinates: {
|
|
102
|
-
lat: number;
|
|
103
|
-
lon: number;
|
|
104
|
-
} | null;
|
|
105
|
-
} | null;
|
|
106
|
-
assuranceScheme?: 'RT' | 'SQC';
|
|
107
|
-
assuranceId?: string;
|
|
108
87
|
};
|
|
109
88
|
details: {
|
|
110
89
|
startDateUTC: string;
|
|
@@ -251,8 +230,6 @@ export type BidDetail = {
|
|
|
251
230
|
updatedAtUTC: string;
|
|
252
231
|
}>;
|
|
253
232
|
};
|
|
254
|
-
tradeRequestId: string | null;
|
|
255
|
-
tradeRequestUserId: string | null;
|
|
256
233
|
wantedAdId: string | null;
|
|
257
234
|
wantedAdUserId: string | null;
|
|
258
235
|
relistedFromListingId?: string;
|
|
@@ -110,9 +110,9 @@ export type ContractDetail = {
|
|
|
110
110
|
tradingStatus: 'with-buyers' | 'scheduled' | 'review' | 'request-trade' | 'expired' | 'no-offers' | 'ended';
|
|
111
111
|
business: {
|
|
112
112
|
organisationId: string;
|
|
113
|
-
organisationCreatedAtUTC
|
|
113
|
+
organisationCreatedAtUTC: string;
|
|
114
114
|
organisationName: string;
|
|
115
|
-
organisationLogo
|
|
115
|
+
organisationLogo: string;
|
|
116
116
|
organisationVetted: boolean;
|
|
117
117
|
businessUnitId: string;
|
|
118
118
|
businessUnitName: string;
|
|
@@ -146,12 +146,13 @@ export type ContractDetail = {
|
|
|
146
146
|
callingCode: string;
|
|
147
147
|
number: string;
|
|
148
148
|
};
|
|
149
|
-
type: 'collection' | 'business' | 'delivery'
|
|
149
|
+
type: 'collection' | 'business' | 'delivery';
|
|
150
150
|
} | null;
|
|
151
151
|
id: string;
|
|
152
152
|
userId: string;
|
|
153
153
|
name: string;
|
|
154
154
|
email: string;
|
|
155
|
+
ukRegion: string;
|
|
155
156
|
phone: {
|
|
156
157
|
callingCode: string;
|
|
157
158
|
number: string;
|
|
@@ -182,28 +183,6 @@ export type ContractDetail = {
|
|
|
182
183
|
name?: string | null;
|
|
183
184
|
location?: string | null;
|
|
184
185
|
} | null;
|
|
185
|
-
holdingNumber?: string;
|
|
186
|
-
collectionLocation?: {
|
|
187
|
-
what3words: string | null;
|
|
188
|
-
address: {
|
|
189
|
-
name?: string | null;
|
|
190
|
-
line1: string;
|
|
191
|
-
line2?: string | null;
|
|
192
|
-
line3?: string | null;
|
|
193
|
-
city?: string | null;
|
|
194
|
-
region?: string | null;
|
|
195
|
-
regionISO?: string | null;
|
|
196
|
-
postcode: string;
|
|
197
|
-
countryName?: string | null;
|
|
198
|
-
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
199
|
-
};
|
|
200
|
-
coordinates: {
|
|
201
|
-
lat: number;
|
|
202
|
-
lon: number;
|
|
203
|
-
} | null;
|
|
204
|
-
} | null;
|
|
205
|
-
assuranceScheme?: 'RT' | 'SQC';
|
|
206
|
-
assuranceId?: string;
|
|
207
186
|
};
|
|
208
187
|
details: {
|
|
209
188
|
startDateUTC: string;
|
|
@@ -350,8 +329,6 @@ export type ContractDetail = {
|
|
|
350
329
|
updatedAtUTC: string;
|
|
351
330
|
}>;
|
|
352
331
|
};
|
|
353
|
-
tradeRequestId: string | null;
|
|
354
|
-
tradeRequestUserId: string | null;
|
|
355
332
|
wantedAdId: string | null;
|
|
356
333
|
wantedAdUserId: string | null;
|
|
357
334
|
relistedFromListingId?: string;
|
|
@@ -8,9 +8,9 @@ export type ListingDetail = {
|
|
|
8
8
|
tradingStatus?: 'with-buyers' | 'scheduled' | 'review' | 'request-trade' | 'expired' | 'no-offers' | 'ended';
|
|
9
9
|
business: {
|
|
10
10
|
organisationId: string;
|
|
11
|
-
organisationCreatedAtUTC
|
|
11
|
+
organisationCreatedAtUTC: string;
|
|
12
12
|
organisationName: string;
|
|
13
|
-
organisationLogo
|
|
13
|
+
organisationLogo: string;
|
|
14
14
|
organisationVetted: boolean;
|
|
15
15
|
businessUnitId: string;
|
|
16
16
|
businessUnitName: string;
|
|
@@ -44,12 +44,13 @@ export type ListingDetail = {
|
|
|
44
44
|
callingCode: string;
|
|
45
45
|
number: string;
|
|
46
46
|
};
|
|
47
|
-
type: 'collection' | 'business' | 'delivery'
|
|
47
|
+
type: 'collection' | 'business' | 'delivery';
|
|
48
48
|
} | null;
|
|
49
49
|
id: string;
|
|
50
50
|
userId: string;
|
|
51
51
|
name: string;
|
|
52
52
|
email: string;
|
|
53
|
+
ukRegion: string;
|
|
53
54
|
phone: {
|
|
54
55
|
callingCode: string;
|
|
55
56
|
number: string;
|
|
@@ -80,28 +81,6 @@ export type ListingDetail = {
|
|
|
80
81
|
name?: string | null;
|
|
81
82
|
location?: string | null;
|
|
82
83
|
} | null;
|
|
83
|
-
holdingNumber?: string;
|
|
84
|
-
collectionLocation?: {
|
|
85
|
-
what3words: string | null;
|
|
86
|
-
address: {
|
|
87
|
-
name?: string | null;
|
|
88
|
-
line1: string;
|
|
89
|
-
line2?: string | null;
|
|
90
|
-
line3?: string | null;
|
|
91
|
-
city?: string | null;
|
|
92
|
-
region?: string | null;
|
|
93
|
-
regionISO?: string | null;
|
|
94
|
-
postcode: string;
|
|
95
|
-
countryName?: string | null;
|
|
96
|
-
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
97
|
-
};
|
|
98
|
-
coordinates: {
|
|
99
|
-
lat: number;
|
|
100
|
-
lon: number;
|
|
101
|
-
} | null;
|
|
102
|
-
} | null;
|
|
103
|
-
assuranceScheme?: 'RT' | 'SQC';
|
|
104
|
-
assuranceId?: string;
|
|
105
84
|
};
|
|
106
85
|
details: {
|
|
107
86
|
startDateUTC: string;
|
|
@@ -248,8 +227,6 @@ export type ListingDetail = {
|
|
|
248
227
|
updatedAtUTC: string;
|
|
249
228
|
}>;
|
|
250
229
|
};
|
|
251
|
-
tradeRequestId: string | null;
|
|
252
|
-
tradeRequestUserId: string | null;
|
|
253
230
|
wantedAdId: string | null;
|
|
254
231
|
wantedAdUserId: string | null;
|
|
255
232
|
relistedFromListingId?: string;
|
|
@@ -313,9 +290,9 @@ export type ListingDetail = {
|
|
|
313
290
|
tradingStatus: 'with-buyers' | 'scheduled' | 'review' | 'request-trade' | 'expired' | 'no-offers' | 'ended';
|
|
314
291
|
business: {
|
|
315
292
|
organisationId: string;
|
|
316
|
-
organisationCreatedAtUTC
|
|
293
|
+
organisationCreatedAtUTC: string;
|
|
317
294
|
organisationName: string;
|
|
318
|
-
organisationLogo
|
|
295
|
+
organisationLogo: string;
|
|
319
296
|
organisationVetted: boolean;
|
|
320
297
|
businessUnitId: string;
|
|
321
298
|
businessUnitName: string;
|
|
@@ -349,12 +326,13 @@ export type ListingDetail = {
|
|
|
349
326
|
callingCode: string;
|
|
350
327
|
number: string;
|
|
351
328
|
};
|
|
352
|
-
type: 'collection' | 'business' | 'delivery'
|
|
329
|
+
type: 'collection' | 'business' | 'delivery';
|
|
353
330
|
} | null;
|
|
354
331
|
id: string;
|
|
355
332
|
userId: string;
|
|
356
333
|
name: string;
|
|
357
334
|
email: string;
|
|
335
|
+
ukRegion: string;
|
|
358
336
|
phone: {
|
|
359
337
|
callingCode: string;
|
|
360
338
|
number: string;
|
|
@@ -385,28 +363,6 @@ export type ListingDetail = {
|
|
|
385
363
|
name?: string | null;
|
|
386
364
|
location?: string | null;
|
|
387
365
|
} | null;
|
|
388
|
-
holdingNumber?: string;
|
|
389
|
-
collectionLocation?: {
|
|
390
|
-
what3words: string | null;
|
|
391
|
-
address: {
|
|
392
|
-
name?: string | null;
|
|
393
|
-
line1: string;
|
|
394
|
-
line2?: string | null;
|
|
395
|
-
line3?: string | null;
|
|
396
|
-
city?: string | null;
|
|
397
|
-
region?: string | null;
|
|
398
|
-
regionISO?: string | null;
|
|
399
|
-
postcode: string;
|
|
400
|
-
countryName?: string | null;
|
|
401
|
-
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
402
|
-
};
|
|
403
|
-
coordinates: {
|
|
404
|
-
lat: number;
|
|
405
|
-
lon: number;
|
|
406
|
-
} | null;
|
|
407
|
-
} | null;
|
|
408
|
-
assuranceScheme?: 'RT' | 'SQC';
|
|
409
|
-
assuranceId?: string;
|
|
410
366
|
};
|
|
411
367
|
details: {
|
|
412
368
|
startDateUTC: string;
|
|
@@ -553,8 +509,6 @@ export type ListingDetail = {
|
|
|
553
509
|
updatedAtUTC: string;
|
|
554
510
|
}>;
|
|
555
511
|
};
|
|
556
|
-
tradeRequestId: string | null;
|
|
557
|
-
tradeRequestUserId: string | null;
|
|
558
512
|
wantedAdId: string | null;
|
|
559
513
|
wantedAdUserId: string | null;
|
|
560
514
|
relistedFromListingId?: string;
|
|
@@ -8,9 +8,9 @@ export type ListingSummary = {
|
|
|
8
8
|
tradingStatus: 'with-buyers' | 'scheduled' | 'review' | 'request-trade' | 'expired' | 'no-offers' | 'ended';
|
|
9
9
|
business: {
|
|
10
10
|
organisationId: string;
|
|
11
|
-
organisationCreatedAtUTC
|
|
11
|
+
organisationCreatedAtUTC: string;
|
|
12
12
|
organisationName: string;
|
|
13
|
-
organisationLogo
|
|
13
|
+
organisationLogo: string;
|
|
14
14
|
organisationVetted: boolean;
|
|
15
15
|
businessUnitId: string;
|
|
16
16
|
businessUnitName: string;
|
|
@@ -44,12 +44,13 @@ export type ListingSummary = {
|
|
|
44
44
|
callingCode: string;
|
|
45
45
|
number: string;
|
|
46
46
|
};
|
|
47
|
-
type: 'collection' | 'business' | 'delivery'
|
|
47
|
+
type: 'collection' | 'business' | 'delivery';
|
|
48
48
|
} | null;
|
|
49
49
|
id: string;
|
|
50
50
|
userId: string;
|
|
51
51
|
name: string;
|
|
52
52
|
email: string;
|
|
53
|
+
ukRegion: string;
|
|
53
54
|
phone: {
|
|
54
55
|
callingCode: string;
|
|
55
56
|
number: string;
|
|
@@ -80,28 +81,6 @@ export type ListingSummary = {
|
|
|
80
81
|
name?: string | null;
|
|
81
82
|
location?: string | null;
|
|
82
83
|
} | null;
|
|
83
|
-
holdingNumber?: string;
|
|
84
|
-
collectionLocation?: {
|
|
85
|
-
what3words: string | null;
|
|
86
|
-
address: {
|
|
87
|
-
name?: string | null;
|
|
88
|
-
line1: string;
|
|
89
|
-
line2?: string | null;
|
|
90
|
-
line3?: string | null;
|
|
91
|
-
city?: string | null;
|
|
92
|
-
region?: string | null;
|
|
93
|
-
regionISO?: string | null;
|
|
94
|
-
postcode: string;
|
|
95
|
-
countryName?: string | null;
|
|
96
|
-
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
97
|
-
};
|
|
98
|
-
coordinates: {
|
|
99
|
-
lat: number;
|
|
100
|
-
lon: number;
|
|
101
|
-
} | null;
|
|
102
|
-
} | null;
|
|
103
|
-
assuranceScheme?: 'RT' | 'SQC';
|
|
104
|
-
assuranceId?: string;
|
|
105
84
|
};
|
|
106
85
|
details: {
|
|
107
86
|
startDateUTC: string;
|
|
@@ -248,8 +227,6 @@ export type ListingSummary = {
|
|
|
248
227
|
updatedAtUTC: string;
|
|
249
228
|
}>;
|
|
250
229
|
};
|
|
251
|
-
tradeRequestId: string | null;
|
|
252
|
-
tradeRequestUserId: string | null;
|
|
253
230
|
wantedAdId: string | null;
|
|
254
231
|
wantedAdUserId: string | null;
|
|
255
232
|
relistedFromListingId?: string;
|
|
@@ -12,9 +12,9 @@ export type SearchResultsBidSchema = {
|
|
|
12
12
|
tradingStatus: 'with-buyers' | 'scheduled' | 'review' | 'request-trade' | 'expired' | 'no-offers' | 'ended';
|
|
13
13
|
business: {
|
|
14
14
|
organisationId: string;
|
|
15
|
-
organisationCreatedAtUTC
|
|
15
|
+
organisationCreatedAtUTC: string;
|
|
16
16
|
organisationName: string;
|
|
17
|
-
organisationLogo
|
|
17
|
+
organisationLogo: string;
|
|
18
18
|
organisationVetted: boolean;
|
|
19
19
|
businessUnitId: string;
|
|
20
20
|
businessUnitName: string;
|
|
@@ -48,12 +48,13 @@ export type SearchResultsBidSchema = {
|
|
|
48
48
|
callingCode: string;
|
|
49
49
|
number: string;
|
|
50
50
|
};
|
|
51
|
-
type: 'collection' | 'business' | 'delivery'
|
|
51
|
+
type: 'collection' | 'business' | 'delivery';
|
|
52
52
|
} | null;
|
|
53
53
|
id: string;
|
|
54
54
|
userId: string;
|
|
55
55
|
name: string;
|
|
56
56
|
email: string;
|
|
57
|
+
ukRegion: string;
|
|
57
58
|
phone: {
|
|
58
59
|
callingCode: string;
|
|
59
60
|
number: string;
|
|
@@ -84,28 +85,6 @@ export type SearchResultsBidSchema = {
|
|
|
84
85
|
name?: string | null;
|
|
85
86
|
location?: string | null;
|
|
86
87
|
} | null;
|
|
87
|
-
holdingNumber?: string;
|
|
88
|
-
collectionLocation?: {
|
|
89
|
-
what3words: string | null;
|
|
90
|
-
address: {
|
|
91
|
-
name?: string | null;
|
|
92
|
-
line1: string;
|
|
93
|
-
line2?: string | null;
|
|
94
|
-
line3?: string | null;
|
|
95
|
-
city?: string | null;
|
|
96
|
-
region?: string | null;
|
|
97
|
-
regionISO?: string | null;
|
|
98
|
-
postcode: string;
|
|
99
|
-
countryName?: string | null;
|
|
100
|
-
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
101
|
-
};
|
|
102
|
-
coordinates: {
|
|
103
|
-
lat: number;
|
|
104
|
-
lon: number;
|
|
105
|
-
} | null;
|
|
106
|
-
} | null;
|
|
107
|
-
assuranceScheme?: 'RT' | 'SQC';
|
|
108
|
-
assuranceId?: string;
|
|
109
88
|
};
|
|
110
89
|
details: {
|
|
111
90
|
startDateUTC: string;
|
|
@@ -252,8 +231,6 @@ export type SearchResultsBidSchema = {
|
|
|
252
231
|
updatedAtUTC: string;
|
|
253
232
|
}>;
|
|
254
233
|
};
|
|
255
|
-
tradeRequestId: string | null;
|
|
256
|
-
tradeRequestUserId: string | null;
|
|
257
234
|
wantedAdId: string | null;
|
|
258
235
|
wantedAdUserId: string | null;
|
|
259
236
|
relistedFromListingId?: string;
|
|
@@ -9,9 +9,9 @@ export type SearchResultsListingSchema = {
|
|
|
9
9
|
tradingStatus: 'with-buyers' | 'scheduled' | 'review' | 'request-trade' | 'expired' | 'no-offers' | 'ended';
|
|
10
10
|
business: {
|
|
11
11
|
organisationId: string;
|
|
12
|
-
organisationCreatedAtUTC
|
|
12
|
+
organisationCreatedAtUTC: string;
|
|
13
13
|
organisationName: string;
|
|
14
|
-
organisationLogo
|
|
14
|
+
organisationLogo: string;
|
|
15
15
|
organisationVetted: boolean;
|
|
16
16
|
businessUnitId: string;
|
|
17
17
|
businessUnitName: string;
|
|
@@ -45,12 +45,13 @@ export type SearchResultsListingSchema = {
|
|
|
45
45
|
callingCode: string;
|
|
46
46
|
number: string;
|
|
47
47
|
};
|
|
48
|
-
type: 'collection' | 'business' | 'delivery'
|
|
48
|
+
type: 'collection' | 'business' | 'delivery';
|
|
49
49
|
} | null;
|
|
50
50
|
id: string;
|
|
51
51
|
userId: string;
|
|
52
52
|
name: string;
|
|
53
53
|
email: string;
|
|
54
|
+
ukRegion: string;
|
|
54
55
|
phone: {
|
|
55
56
|
callingCode: string;
|
|
56
57
|
number: string;
|
|
@@ -81,28 +82,6 @@ export type SearchResultsListingSchema = {
|
|
|
81
82
|
name?: string | null;
|
|
82
83
|
location?: string | null;
|
|
83
84
|
} | null;
|
|
84
|
-
holdingNumber?: string;
|
|
85
|
-
collectionLocation?: {
|
|
86
|
-
what3words: string | null;
|
|
87
|
-
address: {
|
|
88
|
-
name?: string | null;
|
|
89
|
-
line1: string;
|
|
90
|
-
line2?: string | null;
|
|
91
|
-
line3?: string | null;
|
|
92
|
-
city?: string | null;
|
|
93
|
-
region?: string | null;
|
|
94
|
-
regionISO?: string | null;
|
|
95
|
-
postcode: string;
|
|
96
|
-
countryName?: string | null;
|
|
97
|
-
countryISO: 'GB' | 'US' | 'ZA' | 'FR';
|
|
98
|
-
};
|
|
99
|
-
coordinates: {
|
|
100
|
-
lat: number;
|
|
101
|
-
lon: number;
|
|
102
|
-
} | null;
|
|
103
|
-
} | null;
|
|
104
|
-
assuranceScheme?: 'RT' | 'SQC';
|
|
105
|
-
assuranceId?: string;
|
|
106
85
|
};
|
|
107
86
|
details: {
|
|
108
87
|
startDateUTC: string;
|
|
@@ -249,8 +228,6 @@ export type SearchResultsListingSchema = {
|
|
|
249
228
|
updatedAtUTC: string;
|
|
250
229
|
}>;
|
|
251
230
|
};
|
|
252
|
-
tradeRequestId: string | null;
|
|
253
|
-
tradeRequestUserId: string | null;
|
|
254
231
|
wantedAdId: string | null;
|
|
255
232
|
wantedAdUserId: string | null;
|
|
256
233
|
relistedFromListingId?: string;
|
package/package.json
CHANGED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export type CreateMarketUpdateRequest = {
|
|
2
|
-
title: string | null;
|
|
3
|
-
content: string;
|
|
4
|
-
audience: {
|
|
5
|
-
userType: 'buyer' | 'seller' | 'all';
|
|
6
|
-
commodities: Array<number>;
|
|
7
|
-
regionISOs: Array<string>;
|
|
8
|
-
} | null;
|
|
9
|
-
notification: boolean;
|
|
10
|
-
visibleInProduct: boolean;
|
|
11
|
-
visibleUntil: string;
|
|
12
|
-
utmCampaignId?: string;
|
|
13
|
-
url: string | null;
|
|
14
|
-
template: {
|
|
15
|
-
id: string;
|
|
16
|
-
variables: Array<{
|
|
17
|
-
name: string;
|
|
18
|
-
value: string;
|
|
19
|
-
}>;
|
|
20
|
-
} | null;
|
|
21
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
export type CreateTradeRequest = {
|
|
2
|
-
businessUnitId?: string | null;
|
|
3
|
-
requestType?: 'everyone' | 'farms' | 'merchants';
|
|
4
|
-
commodity: {
|
|
5
|
-
id: number;
|
|
6
|
-
type: number;
|
|
7
|
-
grade: number | null;
|
|
8
|
-
variety?: string | null;
|
|
9
|
-
varieties?: Array<string> | null;
|
|
10
|
-
tags?: Array<number> | null;
|
|
11
|
-
};
|
|
12
|
-
regionISOs?: Array<string>;
|
|
13
|
-
harvestYear: string;
|
|
14
|
-
type?: 'crop' | 'produce';
|
|
15
|
-
farmAssured?: boolean;
|
|
16
|
-
sellerNotes?: string | null;
|
|
17
|
-
movementPeriod?: {
|
|
18
|
-
startDateUTC: string;
|
|
19
|
-
endDateUTC: string;
|
|
20
|
-
type: 'date' | 'month';
|
|
21
|
-
excludedDatesUTC?: Array<string> | null;
|
|
22
|
-
};
|
|
23
|
-
movement?: {
|
|
24
|
-
months: Array<string>;
|
|
25
|
-
asAvailable: boolean | null;
|
|
26
|
-
};
|
|
27
|
-
haulageTerms: {
|
|
28
|
-
haulageType: 'ex-farm' | 'delivered' | null;
|
|
29
|
-
deliveryPostcode?: string | null;
|
|
30
|
-
};
|
|
31
|
-
weight: number;
|
|
32
|
-
guidePrice?: {
|
|
33
|
-
amount: number;
|
|
34
|
-
currency: string;
|
|
35
|
-
} | null;
|
|
36
|
-
guidePriceMin?: {
|
|
37
|
-
amount: number;
|
|
38
|
-
currency: string;
|
|
39
|
-
} | null;
|
|
40
|
-
guidePriceMax?: {
|
|
41
|
-
amount: number;
|
|
42
|
-
currency: string;
|
|
43
|
-
} | null;
|
|
44
|
-
isAnonymous?: boolean;
|
|
45
|
-
expiresAtUTC?: string | null;
|
|
46
|
-
tags?: Array<string> | null;
|
|
47
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type MarketUpdateDetail = {
|
|
2
|
-
id: string;
|
|
3
|
-
title: string;
|
|
4
|
-
content: string;
|
|
5
|
-
visibleUntil: string;
|
|
6
|
-
publishedAt: string;
|
|
7
|
-
visibleInProduct: boolean;
|
|
8
|
-
notification: boolean;
|
|
9
|
-
url: string;
|
|
10
|
-
utmCampaignId?: string | null;
|
|
11
|
-
audienceUserType: string | null;
|
|
12
|
-
audienceCommodityIds: Array<number> | null;
|
|
13
|
-
audienceRegionISOs: Array<string> | null;
|
|
14
|
-
templateId: string;
|
|
15
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export type PatchMarketUpdateRequest = {
|
|
2
|
-
title?: string;
|
|
3
|
-
content?: string;
|
|
4
|
-
audience?: {
|
|
5
|
-
userType?: 'buyer' | 'seller' | 'all';
|
|
6
|
-
commodities?: Array<number> | null;
|
|
7
|
-
regionISOs?: Array<string> | null;
|
|
8
|
-
} | null;
|
|
9
|
-
notification?: boolean;
|
|
10
|
-
visibleUntil?: string;
|
|
11
|
-
url?: string;
|
|
12
|
-
visibleInProduct?: boolean;
|
|
13
|
-
utmCampaignId?: string;
|
|
14
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
export type TradeRequestDetail = {
|
|
2
|
-
id: string;
|
|
3
|
-
status: 'active' | 'closed';
|
|
4
|
-
commodityName?: string;
|
|
5
|
-
commodity: {
|
|
6
|
-
commodity: {
|
|
7
|
-
id: number;
|
|
8
|
-
name: string;
|
|
9
|
-
};
|
|
10
|
-
type: {
|
|
11
|
-
id: number;
|
|
12
|
-
name: string;
|
|
13
|
-
};
|
|
14
|
-
grade: {
|
|
15
|
-
id: number;
|
|
16
|
-
name: string;
|
|
17
|
-
};
|
|
18
|
-
variety?: string;
|
|
19
|
-
varieties: Array<string>;
|
|
20
|
-
attributes: Array<{
|
|
21
|
-
id: number;
|
|
22
|
-
name: string;
|
|
23
|
-
}>;
|
|
24
|
-
tags?: Array<number>;
|
|
25
|
-
weight: {
|
|
26
|
-
name: string;
|
|
27
|
-
conversion: number;
|
|
28
|
-
weight?: number;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
harvestYear: string;
|
|
32
|
-
type: 'crop' | 'produce';
|
|
33
|
-
farmAssured?: boolean;
|
|
34
|
-
sellerNotes?: string | null;
|
|
35
|
-
regionISOs?: Array<string>;
|
|
36
|
-
regions?: Array<string>;
|
|
37
|
-
listingsReceived?: number;
|
|
38
|
-
movementPeriod: {
|
|
39
|
-
startDateUTC: string;
|
|
40
|
-
endDateUTC: string;
|
|
41
|
-
type: 'date' | 'month';
|
|
42
|
-
};
|
|
43
|
-
movement: {
|
|
44
|
-
months: Array<string>;
|
|
45
|
-
asAvailable: boolean | null;
|
|
46
|
-
};
|
|
47
|
-
haulageTerms: {
|
|
48
|
-
haulageType?: 'ex-farm' | 'delivered' | null;
|
|
49
|
-
deliveryPostcode?: string | null;
|
|
50
|
-
};
|
|
51
|
-
weight: {
|
|
52
|
-
name: string;
|
|
53
|
-
conversion: number;
|
|
54
|
-
weight?: number;
|
|
55
|
-
};
|
|
56
|
-
buyer: {
|
|
57
|
-
authPlatformId?: string;
|
|
58
|
-
emailAddress?: string;
|
|
59
|
-
fullName?: string;
|
|
60
|
-
mobileNumber?: {
|
|
61
|
-
callingCode: string;
|
|
62
|
-
number: string;
|
|
63
|
-
};
|
|
64
|
-
organisationId?: string | null;
|
|
65
|
-
organisationName?: string | null;
|
|
66
|
-
userId: string;
|
|
67
|
-
} | null;
|
|
68
|
-
createdAtUTC: string;
|
|
69
|
-
expiresAtUTC: string;
|
|
70
|
-
requestType?: 'everyone' | 'farms' | 'merchants';
|
|
71
|
-
guidePrice: {
|
|
72
|
-
amount: number;
|
|
73
|
-
currency: string;
|
|
74
|
-
} | null;
|
|
75
|
-
guidePriceMin: {
|
|
76
|
-
amount: number;
|
|
77
|
-
currency: string;
|
|
78
|
-
} | null;
|
|
79
|
-
guidePriceMax: {
|
|
80
|
-
amount: number;
|
|
81
|
-
currency: string;
|
|
82
|
-
} | null;
|
|
83
|
-
isAnonymous?: boolean;
|
|
84
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
export type TradeRequestSearchResultsSchema = {
|
|
2
|
-
docs: Array<{
|
|
3
|
-
id: string;
|
|
4
|
-
status: 'active' | 'closed';
|
|
5
|
-
commodityName?: string;
|
|
6
|
-
commodity: {
|
|
7
|
-
commodity: {
|
|
8
|
-
id: number;
|
|
9
|
-
name: string;
|
|
10
|
-
};
|
|
11
|
-
type: {
|
|
12
|
-
id: number;
|
|
13
|
-
name: string;
|
|
14
|
-
};
|
|
15
|
-
grade: {
|
|
16
|
-
id: number;
|
|
17
|
-
name: string;
|
|
18
|
-
};
|
|
19
|
-
variety?: string;
|
|
20
|
-
varieties: Array<string>;
|
|
21
|
-
attributes: Array<{
|
|
22
|
-
id: number;
|
|
23
|
-
name: string;
|
|
24
|
-
}>;
|
|
25
|
-
tags?: Array<number>;
|
|
26
|
-
weight: {
|
|
27
|
-
name: string;
|
|
28
|
-
conversion: number;
|
|
29
|
-
weight?: number;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
harvestYear: string;
|
|
33
|
-
type: 'crop' | 'produce';
|
|
34
|
-
farmAssured?: boolean;
|
|
35
|
-
sellerNotes?: string | null;
|
|
36
|
-
regionISOs?: Array<string>;
|
|
37
|
-
regions?: Array<string>;
|
|
38
|
-
listingsReceived?: number;
|
|
39
|
-
movementPeriod: {
|
|
40
|
-
startDateUTC: string;
|
|
41
|
-
endDateUTC: string;
|
|
42
|
-
type: 'date' | 'month';
|
|
43
|
-
};
|
|
44
|
-
movement: {
|
|
45
|
-
months: Array<string>;
|
|
46
|
-
asAvailable: boolean | null;
|
|
47
|
-
};
|
|
48
|
-
haulageTerms: {
|
|
49
|
-
haulageType?: 'ex-farm' | 'delivered' | null;
|
|
50
|
-
deliveryPostcode?: string | null;
|
|
51
|
-
};
|
|
52
|
-
weight: {
|
|
53
|
-
name: string;
|
|
54
|
-
conversion: number;
|
|
55
|
-
weight?: number;
|
|
56
|
-
};
|
|
57
|
-
buyer: {
|
|
58
|
-
authPlatformId?: string;
|
|
59
|
-
emailAddress?: string;
|
|
60
|
-
fullName?: string;
|
|
61
|
-
mobileNumber?: {
|
|
62
|
-
callingCode: string;
|
|
63
|
-
number: string;
|
|
64
|
-
};
|
|
65
|
-
organisationId?: string | null;
|
|
66
|
-
organisationName?: string | null;
|
|
67
|
-
userId: string;
|
|
68
|
-
} | null;
|
|
69
|
-
createdAtUTC: string;
|
|
70
|
-
expiresAtUTC: string;
|
|
71
|
-
requestType?: 'everyone' | 'farms' | 'merchants';
|
|
72
|
-
guidePrice: {
|
|
73
|
-
amount: number;
|
|
74
|
-
currency: string;
|
|
75
|
-
} | null;
|
|
76
|
-
guidePriceMin: {
|
|
77
|
-
amount: number;
|
|
78
|
-
currency: string;
|
|
79
|
-
} | null;
|
|
80
|
-
guidePriceMax: {
|
|
81
|
-
amount: number;
|
|
82
|
-
currency: string;
|
|
83
|
-
} | null;
|
|
84
|
-
isAnonymous?: boolean;
|
|
85
|
-
}>;
|
|
86
|
-
custom?: any;
|
|
87
|
-
totalDocs: number;
|
|
88
|
-
limit: number;
|
|
89
|
-
offset: number;
|
|
90
|
-
clearUrl: string;
|
|
91
|
-
activeFilters: Array<{
|
|
92
|
-
name: string;
|
|
93
|
-
displayName: string;
|
|
94
|
-
clearUrl: string;
|
|
95
|
-
terms: Array<{
|
|
96
|
-
name: string;
|
|
97
|
-
id: string;
|
|
98
|
-
hits: string;
|
|
99
|
-
clearUrl: string;
|
|
100
|
-
}>;
|
|
101
|
-
}>;
|
|
102
|
-
facets: Array<{
|
|
103
|
-
displayName: string;
|
|
104
|
-
clearUrl: string;
|
|
105
|
-
disabled: boolean;
|
|
106
|
-
name: string;
|
|
107
|
-
selected: boolean;
|
|
108
|
-
active: boolean;
|
|
109
|
-
terms: Array<{
|
|
110
|
-
name: string;
|
|
111
|
-
url: string;
|
|
112
|
-
hits: number;
|
|
113
|
-
selected: boolean;
|
|
114
|
-
id: string;
|
|
115
|
-
state: 'checked disabled' | 'checked' | 'disabled' | '';
|
|
116
|
-
aggregations?: Record<string, {
|
|
117
|
-
sum?: number;
|
|
118
|
-
min?: number;
|
|
119
|
-
max?: number;
|
|
120
|
-
average?: number;
|
|
121
|
-
}>;
|
|
122
|
-
}>;
|
|
123
|
-
}>;
|
|
124
|
-
aggregations?: Array<{
|
|
125
|
-
name?: string;
|
|
126
|
-
sum?: number;
|
|
127
|
-
min?: number;
|
|
128
|
-
max?: number;
|
|
129
|
-
average?: number;
|
|
130
|
-
count?: number;
|
|
131
|
-
range?: string;
|
|
132
|
-
hits?: number;
|
|
133
|
-
unit?: string;
|
|
134
|
-
}>;
|
|
135
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|