@hectare/platform.clients.trading 1.1.181 → 1.1.183
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 +3 -0
- package/models/CreateListing.d.ts +1 -0
- package/models/CreateWantedAd.d.ts +29 -0
- package/models/CreateWantedAd.js +1 -0
- package/models/WantedAdDetailSchema.d.ts +57 -0
- package/models/WantedAdDetailSchema.js +1 -0
- package/models/WantedAdSearchResultsSchema.d.ts +106 -0
- package/models/WantedAdSearchResultsSchema.js +1 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export type { CreateMarketUpdateRequest } from './models/CreateMarketUpdateReque
|
|
|
26
26
|
export type { CreateOrUpdateTargetPriceSchema } from './models/CreateOrUpdateTargetPriceSchema.js';
|
|
27
27
|
export type { CreateOrUpdateTargetPricesSchema } from './models/CreateOrUpdateTargetPricesSchema.js';
|
|
28
28
|
export type { CreateTradeRequest } from './models/CreateTradeRequest.js';
|
|
29
|
+
export type { CreateWantedAd } from './models/CreateWantedAd.js';
|
|
29
30
|
export type { ExFarmPriceCommodity } from './models/ExFarmPriceCommodity.js';
|
|
30
31
|
export type { ExFarmPricesRegionSchema } from './models/ExFarmPricesRegionSchema.js';
|
|
31
32
|
export type { ExFarmPricesSchema } from './models/ExFarmPricesSchema.js';
|
|
@@ -75,3 +76,5 @@ export type { TradeRequestDetail } from './models/TradeRequestDetail.js';
|
|
|
75
76
|
export type { TradeRequestSearchResultsSchema } from './models/TradeRequestSearchResultsSchema.js';
|
|
76
77
|
export type { TradingConfig } from './models/TradingConfig.js';
|
|
77
78
|
export type { UnlinkContractSchema } from './models/UnlinkContractSchema.js';
|
|
79
|
+
export type { WantedAdDetailSchema } from './models/WantedAdDetailSchema.js';
|
|
80
|
+
export type { WantedAdSearchResultsSchema } from './models/WantedAdSearchResultsSchema.js';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export type CreateWantedAd = {
|
|
2
|
+
commodity: {
|
|
3
|
+
id: number;
|
|
4
|
+
grades: Array<number>;
|
|
5
|
+
};
|
|
6
|
+
region: string;
|
|
7
|
+
harvestYear: string;
|
|
8
|
+
farmAssured: boolean;
|
|
9
|
+
sellerNotes?: string | null;
|
|
10
|
+
movement: {
|
|
11
|
+
months: Array<string>;
|
|
12
|
+
asAvailable: boolean | null;
|
|
13
|
+
};
|
|
14
|
+
haulageTerms: {
|
|
15
|
+
haulageType: 'ex-farm' | 'delivered' | null;
|
|
16
|
+
deliveryPostcode?: string | null;
|
|
17
|
+
};
|
|
18
|
+
weight: {
|
|
19
|
+
min: number | null;
|
|
20
|
+
max: number | null;
|
|
21
|
+
};
|
|
22
|
+
price?: {
|
|
23
|
+
min: number | null;
|
|
24
|
+
max: number | null;
|
|
25
|
+
currency?: string | null;
|
|
26
|
+
} | null;
|
|
27
|
+
expiresAtUTC: string;
|
|
28
|
+
tags?: Array<string> | null;
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export type WantedAdDetailSchema = {
|
|
2
|
+
id: string;
|
|
3
|
+
status: 'active' | 'closed';
|
|
4
|
+
commodity: {
|
|
5
|
+
commodity: {
|
|
6
|
+
id: number;
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
9
|
+
grades: Array<{
|
|
10
|
+
id: number;
|
|
11
|
+
name: string;
|
|
12
|
+
}> | null;
|
|
13
|
+
canonicalGrades?: Array<string> | null;
|
|
14
|
+
weight: {
|
|
15
|
+
name: string;
|
|
16
|
+
conversion: number;
|
|
17
|
+
weight?: number;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
harvestYear: string;
|
|
21
|
+
farmAssured?: boolean;
|
|
22
|
+
sellerNotes?: string | null;
|
|
23
|
+
region: string;
|
|
24
|
+
regionISOs: Array<string>;
|
|
25
|
+
listingsReceived?: number;
|
|
26
|
+
movement: {
|
|
27
|
+
months: Array<string>;
|
|
28
|
+
asAvailable: boolean | null;
|
|
29
|
+
};
|
|
30
|
+
haulageTerms: {
|
|
31
|
+
haulageType?: 'ex-farm' | 'delivered' | null;
|
|
32
|
+
deliveryPostcode?: string | null;
|
|
33
|
+
};
|
|
34
|
+
weight: {
|
|
35
|
+
min: number | null;
|
|
36
|
+
max: number | null;
|
|
37
|
+
};
|
|
38
|
+
price: {
|
|
39
|
+
min: number | null;
|
|
40
|
+
max: number | null;
|
|
41
|
+
currency?: string | null;
|
|
42
|
+
};
|
|
43
|
+
buyer: {
|
|
44
|
+
authPlatformId?: string;
|
|
45
|
+
emailAddress?: string;
|
|
46
|
+
fullName?: string;
|
|
47
|
+
mobileNumber?: {
|
|
48
|
+
callingCode: string;
|
|
49
|
+
number: string;
|
|
50
|
+
};
|
|
51
|
+
organisationId?: string | null;
|
|
52
|
+
organisationName?: string | null;
|
|
53
|
+
userId: string;
|
|
54
|
+
};
|
|
55
|
+
createdAtUTC: string;
|
|
56
|
+
expiresAtUTC: string;
|
|
57
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
export type WantedAdSearchResultsSchema = {
|
|
2
|
+
docs: Array<{
|
|
3
|
+
id: string;
|
|
4
|
+
status: 'active' | 'closed';
|
|
5
|
+
commodity: {
|
|
6
|
+
commodity: {
|
|
7
|
+
id: number;
|
|
8
|
+
name: string;
|
|
9
|
+
};
|
|
10
|
+
grades: Array<{
|
|
11
|
+
id: number;
|
|
12
|
+
name: string;
|
|
13
|
+
}> | null;
|
|
14
|
+
canonicalGrades?: Array<string> | null;
|
|
15
|
+
weight: {
|
|
16
|
+
name: string;
|
|
17
|
+
conversion: number;
|
|
18
|
+
weight?: number;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
harvestYear: string;
|
|
22
|
+
farmAssured?: boolean;
|
|
23
|
+
sellerNotes?: string | null;
|
|
24
|
+
region: string;
|
|
25
|
+
regionISOs: Array<string>;
|
|
26
|
+
listingsReceived?: number;
|
|
27
|
+
movement: {
|
|
28
|
+
months: Array<string>;
|
|
29
|
+
asAvailable: boolean | null;
|
|
30
|
+
};
|
|
31
|
+
haulageTerms: {
|
|
32
|
+
haulageType?: 'ex-farm' | 'delivered' | null;
|
|
33
|
+
deliveryPostcode?: string | null;
|
|
34
|
+
};
|
|
35
|
+
weight: {
|
|
36
|
+
min: number | null;
|
|
37
|
+
max: number | null;
|
|
38
|
+
};
|
|
39
|
+
price: {
|
|
40
|
+
min: number | null;
|
|
41
|
+
max: number | null;
|
|
42
|
+
currency?: string | null;
|
|
43
|
+
};
|
|
44
|
+
buyer: {
|
|
45
|
+
authPlatformId?: string;
|
|
46
|
+
emailAddress?: string;
|
|
47
|
+
fullName?: string;
|
|
48
|
+
mobileNumber?: {
|
|
49
|
+
callingCode: string;
|
|
50
|
+
number: string;
|
|
51
|
+
};
|
|
52
|
+
organisationId?: string | null;
|
|
53
|
+
organisationName?: string | null;
|
|
54
|
+
userId: string;
|
|
55
|
+
};
|
|
56
|
+
createdAtUTC: string;
|
|
57
|
+
expiresAtUTC: string;
|
|
58
|
+
}>;
|
|
59
|
+
custom?: any;
|
|
60
|
+
totalDocs: number;
|
|
61
|
+
limit: number;
|
|
62
|
+
offset: number;
|
|
63
|
+
clearUrl: string;
|
|
64
|
+
activeFilters: Array<{
|
|
65
|
+
name: string;
|
|
66
|
+
displayName: string;
|
|
67
|
+
clearUrl: string;
|
|
68
|
+
terms: Array<{
|
|
69
|
+
name: string;
|
|
70
|
+
clearUrl: string;
|
|
71
|
+
}>;
|
|
72
|
+
}>;
|
|
73
|
+
facets: Array<{
|
|
74
|
+
displayName: string;
|
|
75
|
+
clearUrl: string;
|
|
76
|
+
disabled: boolean;
|
|
77
|
+
name: string;
|
|
78
|
+
selected: boolean;
|
|
79
|
+
active: boolean;
|
|
80
|
+
terms: Array<{
|
|
81
|
+
name: string;
|
|
82
|
+
url: string;
|
|
83
|
+
hits: number;
|
|
84
|
+
selected: boolean;
|
|
85
|
+
id: string;
|
|
86
|
+
state: 'checked disabled' | 'checked' | 'disabled' | '';
|
|
87
|
+
aggregations?: Record<string, {
|
|
88
|
+
sum?: number;
|
|
89
|
+
min?: number;
|
|
90
|
+
max?: number;
|
|
91
|
+
average?: number;
|
|
92
|
+
}>;
|
|
93
|
+
}>;
|
|
94
|
+
}>;
|
|
95
|
+
aggregations?: Array<{
|
|
96
|
+
name?: string;
|
|
97
|
+
sum?: number;
|
|
98
|
+
min?: number;
|
|
99
|
+
max?: number;
|
|
100
|
+
average?: number;
|
|
101
|
+
count?: number;
|
|
102
|
+
range?: string;
|
|
103
|
+
hits?: number;
|
|
104
|
+
unit?: string;
|
|
105
|
+
}>;
|
|
106
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|