@hectare/platform.clients.trading 1.1.107 → 1.1.109
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 +1 -0
- package/models/CreateMarketingPlanSchema.d.ts +1 -1
- package/models/MarketingPlanDetailSchema.d.ts +3 -2
- package/models/MarketingPlanSearchResultsSchema.d.ts +3 -2
- package/models/MarketingPlanSummarySchema.d.ts +3 -2
- package/models/PatchMarketingPlanScheduleSchema.d.ts +13 -0
- package/models/PatchMarketingPlanScheduleSchema.js +1 -0
- package/models/PatchMarketingPlanSchema.d.ts +69 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ export type { PatchContractRequest } from './models/PatchContractRequest.js';
|
|
|
61
61
|
export type { PatchListingAdjustTradeSchema } from './models/PatchListingAdjustTradeSchema.js';
|
|
62
62
|
export type { PatchListingSchema } from './models/PatchListingSchema.js';
|
|
63
63
|
export type { PatchListingSubstatusSchema } from './models/PatchListingSubstatusSchema.js';
|
|
64
|
+
export type { PatchMarketingPlanScheduleSchema } from './models/PatchMarketingPlanScheduleSchema.js';
|
|
64
65
|
export type { PatchMarketingPlanSchema } from './models/PatchMarketingPlanSchema.js';
|
|
65
66
|
export type { PatchMarketUpdateRequest } from './models/PatchMarketUpdateRequest.js';
|
|
66
67
|
export type { PriceScoreSchema } from './models/PriceScoreSchema.js';
|
|
@@ -60,7 +60,7 @@ export type CreateMarketingPlanSchema = {
|
|
|
60
60
|
canListLowerWeight: boolean;
|
|
61
61
|
}>;
|
|
62
62
|
priceOfferReview: {
|
|
63
|
-
type: 'first' | 'last' | 'every';
|
|
63
|
+
type: 'first' | 'second' | 'third' | 'forth' | 'last' | 'every';
|
|
64
64
|
dayOfWeek: 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
65
65
|
hourOfDay: number;
|
|
66
66
|
};
|
|
@@ -5,7 +5,7 @@ export type MarketingPlanDetailSchema = {
|
|
|
5
5
|
businessUnitName: string;
|
|
6
6
|
organisationId: string;
|
|
7
7
|
organisationName: string;
|
|
8
|
-
status: 'active' | '
|
|
8
|
+
status: 'pending' | 'active' | 'completed';
|
|
9
9
|
inventory: {
|
|
10
10
|
type: 'crop' | 'produce';
|
|
11
11
|
harvestYear: string;
|
|
@@ -102,7 +102,7 @@ export type MarketingPlanDetailSchema = {
|
|
|
102
102
|
canListLowerWeight: boolean;
|
|
103
103
|
}>;
|
|
104
104
|
priceOfferReview: {
|
|
105
|
-
type: 'first' | 'last' | 'every';
|
|
105
|
+
type: 'first' | 'second' | 'third' | 'forth' | 'last' | 'every';
|
|
106
106
|
dayOfWeek: 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
107
107
|
hourOfDay: number;
|
|
108
108
|
};
|
|
@@ -137,6 +137,7 @@ export type MarketingPlanDetailSchema = {
|
|
|
137
137
|
endDateUTC: string;
|
|
138
138
|
type: 'date' | 'month';
|
|
139
139
|
};
|
|
140
|
+
skipped?: boolean;
|
|
140
141
|
}>;
|
|
141
142
|
tags?: Array<string>;
|
|
142
143
|
};
|
|
@@ -6,7 +6,7 @@ export type MarketingPlanSearchResultsSchema = {
|
|
|
6
6
|
businessUnitName: string;
|
|
7
7
|
organisationId: string;
|
|
8
8
|
organisationName: string;
|
|
9
|
-
status: 'active' | '
|
|
9
|
+
status: 'pending' | 'active' | 'completed';
|
|
10
10
|
inventory: {
|
|
11
11
|
type: 'crop' | 'produce';
|
|
12
12
|
harvestYear: string;
|
|
@@ -103,7 +103,7 @@ export type MarketingPlanSearchResultsSchema = {
|
|
|
103
103
|
canListLowerWeight: boolean;
|
|
104
104
|
}>;
|
|
105
105
|
priceOfferReview: {
|
|
106
|
-
type: 'first' | 'last' | 'every';
|
|
106
|
+
type: 'first' | 'second' | 'third' | 'forth' | 'last' | 'every';
|
|
107
107
|
dayOfWeek: 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
108
108
|
hourOfDay: number;
|
|
109
109
|
};
|
|
@@ -138,6 +138,7 @@ export type MarketingPlanSearchResultsSchema = {
|
|
|
138
138
|
endDateUTC: string;
|
|
139
139
|
type: 'date' | 'month';
|
|
140
140
|
};
|
|
141
|
+
skipped?: boolean;
|
|
141
142
|
}>;
|
|
142
143
|
tags?: Array<string>;
|
|
143
144
|
}>;
|
|
@@ -5,7 +5,7 @@ export type MarketingPlanSummarySchema = {
|
|
|
5
5
|
businessUnitName: string;
|
|
6
6
|
organisationId: string;
|
|
7
7
|
organisationName: string;
|
|
8
|
-
status: 'active' | '
|
|
8
|
+
status: 'pending' | 'active' | 'completed';
|
|
9
9
|
inventory: {
|
|
10
10
|
type: 'crop' | 'produce';
|
|
11
11
|
harvestYear: string;
|
|
@@ -102,7 +102,7 @@ export type MarketingPlanSummarySchema = {
|
|
|
102
102
|
canListLowerWeight: boolean;
|
|
103
103
|
}>;
|
|
104
104
|
priceOfferReview: {
|
|
105
|
-
type: 'first' | 'last' | 'every';
|
|
105
|
+
type: 'first' | 'second' | 'third' | 'forth' | 'last' | 'every';
|
|
106
106
|
dayOfWeek: 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
107
107
|
hourOfDay: number;
|
|
108
108
|
};
|
|
@@ -137,6 +137,7 @@ export type MarketingPlanSummarySchema = {
|
|
|
137
137
|
endDateUTC: string;
|
|
138
138
|
type: 'date' | 'month';
|
|
139
139
|
};
|
|
140
|
+
skipped?: boolean;
|
|
140
141
|
}>;
|
|
141
142
|
tags?: Array<string>;
|
|
142
143
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type PatchMarketingPlanScheduleSchema = {
|
|
2
|
+
schedule: Array<{
|
|
3
|
+
id: number;
|
|
4
|
+
reviewDateUTC: string;
|
|
5
|
+
weight: number;
|
|
6
|
+
movementPeriod: {
|
|
7
|
+
startDateUTC: string;
|
|
8
|
+
endDateUTC: string;
|
|
9
|
+
type: 'date' | 'month';
|
|
10
|
+
};
|
|
11
|
+
skipped: boolean | null;
|
|
12
|
+
}>;
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1,69 @@
|
|
|
1
|
-
export type PatchMarketingPlanSchema = {
|
|
1
|
+
export type PatchMarketingPlanSchema = {
|
|
2
|
+
organisationId?: string | null;
|
|
3
|
+
organisationName?: string;
|
|
4
|
+
businessUnitId: string | null;
|
|
5
|
+
businessUnitName: string;
|
|
6
|
+
inventory: {
|
|
7
|
+
type: 'crop' | 'produce';
|
|
8
|
+
harvestYear: string;
|
|
9
|
+
commodity: {
|
|
10
|
+
id: number;
|
|
11
|
+
type: number;
|
|
12
|
+
grade: number | null;
|
|
13
|
+
variety?: string | null;
|
|
14
|
+
varieties?: Array<string> | null;
|
|
15
|
+
tags?: Array<number> | null;
|
|
16
|
+
};
|
|
17
|
+
weight: number;
|
|
18
|
+
measures: Array<{
|
|
19
|
+
specificationId: number;
|
|
20
|
+
min: number | null;
|
|
21
|
+
max: number | null;
|
|
22
|
+
}> | null;
|
|
23
|
+
hasSampled: boolean;
|
|
24
|
+
};
|
|
25
|
+
details: {
|
|
26
|
+
files: Array<{
|
|
27
|
+
name?: string;
|
|
28
|
+
id: string;
|
|
29
|
+
url?: string | null;
|
|
30
|
+
userId?: string | null;
|
|
31
|
+
userName?: string | null;
|
|
32
|
+
organisationId?: string | null;
|
|
33
|
+
createdAtUTC?: string | null;
|
|
34
|
+
} | null>;
|
|
35
|
+
isBasePremOnly: boolean;
|
|
36
|
+
targetPrice: {
|
|
37
|
+
amount: number;
|
|
38
|
+
currency: string;
|
|
39
|
+
} | null;
|
|
40
|
+
movementPeriod: {
|
|
41
|
+
startDateUTC: string;
|
|
42
|
+
endDateUTC: string;
|
|
43
|
+
type: 'date' | 'month';
|
|
44
|
+
excludedDatesUTC?: Array<string> | null;
|
|
45
|
+
asAvailable?: boolean | null;
|
|
46
|
+
};
|
|
47
|
+
haulageType: 'ex-farm' | 'delivered' | null;
|
|
48
|
+
buyerNotes: string | null;
|
|
49
|
+
};
|
|
50
|
+
strategy: {
|
|
51
|
+
type: 'steady';
|
|
52
|
+
startDateUTC: string;
|
|
53
|
+
endDateUTC: string;
|
|
54
|
+
deadlines: Array<{
|
|
55
|
+
endDateUTC: string;
|
|
56
|
+
weight: number;
|
|
57
|
+
weightPerListingAvg: number;
|
|
58
|
+
weightPerListingMin: number;
|
|
59
|
+
weightPerListingMax: number;
|
|
60
|
+
canListLowerWeight: boolean;
|
|
61
|
+
}>;
|
|
62
|
+
priceOfferReview: {
|
|
63
|
+
type: 'first' | 'second' | 'third' | 'forth' | 'last' | 'every';
|
|
64
|
+
dayOfWeek: 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
65
|
+
hourOfDay: number;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
tags: Array<string> | null;
|
|
69
|
+
};
|