@hectare/platform.clients.trading 1.1.169 → 1.1.171
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
|
@@ -72,5 +72,6 @@ export type { SearchResultsListingSchema } from './models/SearchResultsListingSc
|
|
|
72
72
|
export type { TargetPriceDetailSchema } from './models/TargetPriceDetailSchema.js';
|
|
73
73
|
export type { Templates } from './models/Templates.js';
|
|
74
74
|
export type { TradeRequestDetail } from './models/TradeRequestDetail.js';
|
|
75
|
+
export type { TradeRequestSearchResultsSchema } from './models/TradeRequestSearchResultsSchema.js';
|
|
75
76
|
export type { TradingConfig } from './models/TradingConfig.js';
|
|
76
77
|
export type { UnlinkContractSchema } from './models/UnlinkContractSchema.js';
|
|
@@ -0,0 +1,132 @@
|
|
|
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
|
+
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
|
+
}>;
|
|
85
|
+
custom?: any;
|
|
86
|
+
totalDocs: number;
|
|
87
|
+
limit: number;
|
|
88
|
+
offset: number;
|
|
89
|
+
clearUrl: string;
|
|
90
|
+
activeFilters: Array<{
|
|
91
|
+
name: string;
|
|
92
|
+
displayName: string;
|
|
93
|
+
clearUrl: string;
|
|
94
|
+
terms: Array<{
|
|
95
|
+
name: string;
|
|
96
|
+
clearUrl: string;
|
|
97
|
+
}>;
|
|
98
|
+
}>;
|
|
99
|
+
facets: Array<{
|
|
100
|
+
displayName: string;
|
|
101
|
+
clearUrl: string;
|
|
102
|
+
disabled: boolean;
|
|
103
|
+
name: string;
|
|
104
|
+
selected: boolean;
|
|
105
|
+
active: boolean;
|
|
106
|
+
terms: Array<{
|
|
107
|
+
name: string;
|
|
108
|
+
url: string;
|
|
109
|
+
hits: number;
|
|
110
|
+
selected: boolean;
|
|
111
|
+
id: string;
|
|
112
|
+
state: 'checked disabled' | 'checked' | 'disabled' | '';
|
|
113
|
+
aggregations?: Record<string, {
|
|
114
|
+
sum?: number;
|
|
115
|
+
min?: number;
|
|
116
|
+
max?: number;
|
|
117
|
+
average?: number;
|
|
118
|
+
}>;
|
|
119
|
+
}>;
|
|
120
|
+
}>;
|
|
121
|
+
aggregations?: Array<{
|
|
122
|
+
name?: string;
|
|
123
|
+
sum?: number;
|
|
124
|
+
min?: number;
|
|
125
|
+
max?: number;
|
|
126
|
+
average?: number;
|
|
127
|
+
count?: number;
|
|
128
|
+
range?: string;
|
|
129
|
+
hits?: number;
|
|
130
|
+
unit?: string;
|
|
131
|
+
}>;
|
|
132
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|