@hectare/platform.clients.trading 1.1.96 → 1.1.98
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
|
@@ -49,6 +49,7 @@ export type { ListingDetail } from './models/ListingDetail.js';
|
|
|
49
49
|
export type { ListingNextAutoCloseDateSchema } from './models/ListingNextAutoCloseDateSchema.js';
|
|
50
50
|
export type { ListingSummary } from './models/ListingSummary.js';
|
|
51
51
|
export type { MarketingPlanDetailSchema } from './models/MarketingPlanDetailSchema.js';
|
|
52
|
+
export type { MarketingPlanSearchResultsSchema } from './models/MarketingPlanSearchResultsSchema.js';
|
|
52
53
|
export type { MarketingPlanSummarySchema } from './models/MarketingPlanSummarySchema.js';
|
|
53
54
|
export type { MarketUpdateDetail } from './models/MarketUpdateDetail.js';
|
|
54
55
|
export type { NewsFeed } from './models/NewsFeed.js';
|
|
@@ -1,3 +1,104 @@
|
|
|
1
1
|
export type MarketingPlanDetailSchema = {
|
|
2
2
|
id: string;
|
|
3
|
+
createdAtUTC?: string;
|
|
4
|
+
businessUnitId?: string;
|
|
5
|
+
status: 'active' | 'inactive';
|
|
6
|
+
inventory: {
|
|
7
|
+
type: 'crop' | 'produce';
|
|
8
|
+
harvestYear: string;
|
|
9
|
+
commodity: {
|
|
10
|
+
commodity: {
|
|
11
|
+
id: number;
|
|
12
|
+
name: string;
|
|
13
|
+
};
|
|
14
|
+
type: {
|
|
15
|
+
id: number;
|
|
16
|
+
name: string;
|
|
17
|
+
};
|
|
18
|
+
grade: {
|
|
19
|
+
id: number;
|
|
20
|
+
name: string;
|
|
21
|
+
};
|
|
22
|
+
variety?: string;
|
|
23
|
+
varieties: Array<string>;
|
|
24
|
+
tags: Array<number>;
|
|
25
|
+
weight: {
|
|
26
|
+
name: string;
|
|
27
|
+
conversion: number;
|
|
28
|
+
weight?: number;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
weight: {
|
|
32
|
+
name: string;
|
|
33
|
+
conversion: number;
|
|
34
|
+
weight?: number;
|
|
35
|
+
};
|
|
36
|
+
measures: Array<{
|
|
37
|
+
specification: {
|
|
38
|
+
id: number;
|
|
39
|
+
name: string;
|
|
40
|
+
unit: string;
|
|
41
|
+
};
|
|
42
|
+
min: number | null;
|
|
43
|
+
max: number | null;
|
|
44
|
+
}> | null;
|
|
45
|
+
hasSampled: boolean;
|
|
46
|
+
customMeasures?: boolean | null;
|
|
47
|
+
};
|
|
48
|
+
details: {
|
|
49
|
+
files: Array<{
|
|
50
|
+
name?: string;
|
|
51
|
+
id: string;
|
|
52
|
+
url?: string | null;
|
|
53
|
+
userId?: string | null;
|
|
54
|
+
userName?: string | null;
|
|
55
|
+
organisationId?: string | null;
|
|
56
|
+
createdAtUTC?: string | null;
|
|
57
|
+
} | null>;
|
|
58
|
+
isBasePremOnly: boolean;
|
|
59
|
+
targetPrice: {
|
|
60
|
+
amount: number;
|
|
61
|
+
currency: string;
|
|
62
|
+
} | null;
|
|
63
|
+
movementPeriod: {
|
|
64
|
+
startDateUTC: string;
|
|
65
|
+
endDateUTC: string;
|
|
66
|
+
type: 'date' | 'month';
|
|
67
|
+
excludedDatesUTC?: Array<string> | null;
|
|
68
|
+
asAvailable?: boolean | null;
|
|
69
|
+
};
|
|
70
|
+
haulageType: 'ex-farm' | 'delivered' | null;
|
|
71
|
+
buyerNotes: string | null;
|
|
72
|
+
};
|
|
73
|
+
strategy: {
|
|
74
|
+
type: 'steady';
|
|
75
|
+
frequency: {
|
|
76
|
+
type: 'interval' | 'listing-count';
|
|
77
|
+
interval: 'weekly' | 'fortnightly' | 'monthly' | null;
|
|
78
|
+
listingCount: number | null;
|
|
79
|
+
};
|
|
80
|
+
priceOfferReview: {
|
|
81
|
+
type: 'first' | 'last' | 'every';
|
|
82
|
+
dayOfWeek: number;
|
|
83
|
+
hourOfDay: number;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
summary: {
|
|
87
|
+
totalListingCount: number;
|
|
88
|
+
soldWeight: {
|
|
89
|
+
name: string;
|
|
90
|
+
conversion: number;
|
|
91
|
+
weight?: number;
|
|
92
|
+
};
|
|
93
|
+
unsoldWeight: {
|
|
94
|
+
name: string;
|
|
95
|
+
conversion: number;
|
|
96
|
+
weight?: number;
|
|
97
|
+
};
|
|
98
|
+
averageSoldPrice: {
|
|
99
|
+
amount: number;
|
|
100
|
+
currency: string;
|
|
101
|
+
} | null;
|
|
102
|
+
};
|
|
103
|
+
tags?: Array<string>;
|
|
3
104
|
};
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
export type MarketingPlanSearchResultsSchema = {
|
|
2
|
+
docs?: Array<{
|
|
3
|
+
id: string;
|
|
4
|
+
createdAtUTC?: string;
|
|
5
|
+
businessUnitId?: string;
|
|
6
|
+
status: 'active' | 'inactive';
|
|
7
|
+
inventory: {
|
|
8
|
+
type: 'crop' | 'produce';
|
|
9
|
+
harvestYear: string;
|
|
10
|
+
commodity: {
|
|
11
|
+
commodity: {
|
|
12
|
+
id: number;
|
|
13
|
+
name: string;
|
|
14
|
+
};
|
|
15
|
+
type: {
|
|
16
|
+
id: number;
|
|
17
|
+
name: string;
|
|
18
|
+
};
|
|
19
|
+
grade: {
|
|
20
|
+
id: number;
|
|
21
|
+
name: string;
|
|
22
|
+
};
|
|
23
|
+
variety?: string;
|
|
24
|
+
varieties: Array<string>;
|
|
25
|
+
tags: Array<number>;
|
|
26
|
+
weight: {
|
|
27
|
+
name: string;
|
|
28
|
+
conversion: number;
|
|
29
|
+
weight?: number;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
weight: {
|
|
33
|
+
name: string;
|
|
34
|
+
conversion: number;
|
|
35
|
+
weight?: number;
|
|
36
|
+
};
|
|
37
|
+
measures: Array<{
|
|
38
|
+
specification: {
|
|
39
|
+
id: number;
|
|
40
|
+
name: string;
|
|
41
|
+
unit: string;
|
|
42
|
+
};
|
|
43
|
+
min: number | null;
|
|
44
|
+
max: number | null;
|
|
45
|
+
}> | null;
|
|
46
|
+
hasSampled: boolean;
|
|
47
|
+
customMeasures?: boolean | null;
|
|
48
|
+
};
|
|
49
|
+
details: {
|
|
50
|
+
files: Array<{
|
|
51
|
+
name?: string;
|
|
52
|
+
id: string;
|
|
53
|
+
url?: string | null;
|
|
54
|
+
userId?: string | null;
|
|
55
|
+
userName?: string | null;
|
|
56
|
+
organisationId?: string | null;
|
|
57
|
+
createdAtUTC?: string | null;
|
|
58
|
+
} | null>;
|
|
59
|
+
isBasePremOnly: boolean;
|
|
60
|
+
targetPrice: {
|
|
61
|
+
amount: number;
|
|
62
|
+
currency: string;
|
|
63
|
+
} | null;
|
|
64
|
+
movementPeriod: {
|
|
65
|
+
startDateUTC: string;
|
|
66
|
+
endDateUTC: string;
|
|
67
|
+
type: 'date' | 'month';
|
|
68
|
+
excludedDatesUTC?: Array<string> | null;
|
|
69
|
+
asAvailable?: boolean | null;
|
|
70
|
+
};
|
|
71
|
+
haulageType: 'ex-farm' | 'delivered' | null;
|
|
72
|
+
buyerNotes: string | null;
|
|
73
|
+
};
|
|
74
|
+
strategy: {
|
|
75
|
+
type: 'steady';
|
|
76
|
+
frequency: {
|
|
77
|
+
type: 'interval' | 'listing-count';
|
|
78
|
+
interval: 'weekly' | 'fortnightly' | 'monthly' | null;
|
|
79
|
+
listingCount: number | null;
|
|
80
|
+
};
|
|
81
|
+
priceOfferReview: {
|
|
82
|
+
type: 'first' | 'last' | 'every';
|
|
83
|
+
dayOfWeek: number;
|
|
84
|
+
hourOfDay: number;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
summary: {
|
|
88
|
+
totalListingCount: number;
|
|
89
|
+
soldWeight: {
|
|
90
|
+
name: string;
|
|
91
|
+
conversion: number;
|
|
92
|
+
weight?: number;
|
|
93
|
+
};
|
|
94
|
+
unsoldWeight: {
|
|
95
|
+
name: string;
|
|
96
|
+
conversion: number;
|
|
97
|
+
weight?: number;
|
|
98
|
+
};
|
|
99
|
+
averageSoldPrice: {
|
|
100
|
+
amount: number;
|
|
101
|
+
currency: string;
|
|
102
|
+
} | null;
|
|
103
|
+
};
|
|
104
|
+
tags?: Array<string>;
|
|
105
|
+
}>;
|
|
106
|
+
custom?: any;
|
|
107
|
+
totalDocs?: number;
|
|
108
|
+
limit?: number;
|
|
109
|
+
offset?: number;
|
|
110
|
+
clearUrl?: string;
|
|
111
|
+
activeFilters?: Array<{
|
|
112
|
+
name?: string;
|
|
113
|
+
clearUrl?: string;
|
|
114
|
+
terms?: Array<{
|
|
115
|
+
name?: string;
|
|
116
|
+
clearUrl?: string;
|
|
117
|
+
}>;
|
|
118
|
+
}>;
|
|
119
|
+
facets?: Array<{
|
|
120
|
+
displayName?: string;
|
|
121
|
+
clearUrl?: string;
|
|
122
|
+
disabled?: boolean;
|
|
123
|
+
name?: string;
|
|
124
|
+
selected?: boolean;
|
|
125
|
+
active?: boolean;
|
|
126
|
+
terms?: Array<{
|
|
127
|
+
name?: string;
|
|
128
|
+
url?: string;
|
|
129
|
+
hits?: string;
|
|
130
|
+
selected?: string;
|
|
131
|
+
id?: string;
|
|
132
|
+
state?: 'checked disabled' | 'checked' | 'disabled' | '';
|
|
133
|
+
aggregations?: Record<string, {
|
|
134
|
+
sum?: number;
|
|
135
|
+
min?: number;
|
|
136
|
+
max?: number;
|
|
137
|
+
average?: number;
|
|
138
|
+
}>;
|
|
139
|
+
}>;
|
|
140
|
+
}>;
|
|
141
|
+
aggregations?: Array<{
|
|
142
|
+
name?: string;
|
|
143
|
+
sum?: number;
|
|
144
|
+
min?: number;
|
|
145
|
+
max?: number;
|
|
146
|
+
average?: number;
|
|
147
|
+
count?: number;
|
|
148
|
+
range?: string;
|
|
149
|
+
hits?: number;
|
|
150
|
+
unit?: string;
|
|
151
|
+
}>;
|
|
152
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export type MarketingPlanSummarySchema = {
|
|
2
2
|
id: string;
|
|
3
|
+
createdAtUTC?: string;
|
|
3
4
|
businessUnitId?: string;
|
|
4
|
-
status
|
|
5
|
-
inventory
|
|
5
|
+
status: 'active' | 'inactive';
|
|
6
|
+
inventory: {
|
|
6
7
|
type: 'crop' | 'produce';
|
|
7
8
|
harvestYear: string;
|
|
8
9
|
commodity: {
|
|
@@ -44,7 +45,7 @@ export type MarketingPlanSummarySchema = {
|
|
|
44
45
|
hasSampled: boolean;
|
|
45
46
|
customMeasures?: boolean | null;
|
|
46
47
|
};
|
|
47
|
-
details
|
|
48
|
+
details: {
|
|
48
49
|
files: Array<{
|
|
49
50
|
name?: string;
|
|
50
51
|
id: string;
|
|
@@ -69,7 +70,7 @@ export type MarketingPlanSummarySchema = {
|
|
|
69
70
|
haulageType: 'ex-farm' | 'delivered' | null;
|
|
70
71
|
buyerNotes: string | null;
|
|
71
72
|
};
|
|
72
|
-
strategy
|
|
73
|
+
strategy: {
|
|
73
74
|
type: 'steady';
|
|
74
75
|
frequency: {
|
|
75
76
|
type: 'interval' | 'listing-count';
|
|
@@ -82,7 +83,7 @@ export type MarketingPlanSummarySchema = {
|
|
|
82
83
|
hourOfDay: number;
|
|
83
84
|
};
|
|
84
85
|
};
|
|
85
|
-
summary
|
|
86
|
+
summary: {
|
|
86
87
|
totalListingCount: number;
|
|
87
88
|
soldWeight: {
|
|
88
89
|
name: string;
|