@hectare/platform.clients.trading 1.1.94 → 1.1.96
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 +4 -0
- package/models/CreateBid.d.ts +1 -1
- package/models/CreateMarketingPlanSchema.d.ts +61 -0
- package/models/CreateMarketingPlanSchema.js +1 -0
- package/models/MarketingPlanDetailSchema.d.ts +3 -0
- package/models/MarketingPlanDetailSchema.js +1 -0
- package/models/MarketingPlanSummarySchema.d.ts +103 -0
- package/models/MarketingPlanSummarySchema.js +1 -0
- package/models/PatchMarketingPlanSchema.d.ts +1 -0
- package/models/PatchMarketingPlanSchema.js +1 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export type { CreateBid } from './models/CreateBid.js';
|
|
|
24
24
|
export type { CreateContractDeliverySchema } from './models/CreateContractDeliverySchema.js';
|
|
25
25
|
export type { CreateContractRequest } from './models/CreateContractRequest.js';
|
|
26
26
|
export type { CreateListing } from './models/CreateListing.js';
|
|
27
|
+
export type { CreateMarketingPlanSchema } from './models/CreateMarketingPlanSchema.js';
|
|
27
28
|
export type { CreateMarketUpdateRequest } from './models/CreateMarketUpdateRequest.js';
|
|
28
29
|
export type { CreateOrUpdateTargetPriceSchema } from './models/CreateOrUpdateTargetPriceSchema.js';
|
|
29
30
|
export type { CreateOrUpdateTargetPricesSchema } from './models/CreateOrUpdateTargetPricesSchema.js';
|
|
@@ -47,6 +48,8 @@ export type { ListingBidInfoBid } from './models/ListingBidInfoBid.js';
|
|
|
47
48
|
export type { ListingDetail } from './models/ListingDetail.js';
|
|
48
49
|
export type { ListingNextAutoCloseDateSchema } from './models/ListingNextAutoCloseDateSchema.js';
|
|
49
50
|
export type { ListingSummary } from './models/ListingSummary.js';
|
|
51
|
+
export type { MarketingPlanDetailSchema } from './models/MarketingPlanDetailSchema.js';
|
|
52
|
+
export type { MarketingPlanSummarySchema } from './models/MarketingPlanSummarySchema.js';
|
|
50
53
|
export type { MarketUpdateDetail } from './models/MarketUpdateDetail.js';
|
|
51
54
|
export type { NewsFeed } from './models/NewsFeed.js';
|
|
52
55
|
export type { PatchBid } from './models/PatchBid.js';
|
|
@@ -57,6 +60,7 @@ export type { PatchContractRequest } from './models/PatchContractRequest.js';
|
|
|
57
60
|
export type { PatchListingAdjustTradeSchema } from './models/PatchListingAdjustTradeSchema.js';
|
|
58
61
|
export type { PatchListingSchema } from './models/PatchListingSchema.js';
|
|
59
62
|
export type { PatchListingSubstatusSchema } from './models/PatchListingSubstatusSchema.js';
|
|
63
|
+
export type { PatchMarketingPlanSchema } from './models/PatchMarketingPlanSchema.js';
|
|
60
64
|
export type { PatchMarketUpdateRequest } from './models/PatchMarketUpdateRequest.js';
|
|
61
65
|
export type { PriceScoreSchema } from './models/PriceScoreSchema.js';
|
|
62
66
|
export type { PublishExFarmPricingSchema } from './models/PublishExFarmPricingSchema.js';
|
package/models/CreateBid.d.ts
CHANGED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export type CreateMarketingPlanSchema = {
|
|
2
|
+
businessUnitId: string | null;
|
|
3
|
+
inventory: {
|
|
4
|
+
type: 'crop' | 'produce';
|
|
5
|
+
harvestYear: string;
|
|
6
|
+
commodity: {
|
|
7
|
+
id: number;
|
|
8
|
+
type: number;
|
|
9
|
+
grade: number | null;
|
|
10
|
+
variety?: string | null;
|
|
11
|
+
varieties?: Array<string> | null;
|
|
12
|
+
tags?: Array<number> | null;
|
|
13
|
+
};
|
|
14
|
+
weight: number;
|
|
15
|
+
measures: Array<{
|
|
16
|
+
specificationId: number;
|
|
17
|
+
min: number | null;
|
|
18
|
+
max: number | null;
|
|
19
|
+
}> | null;
|
|
20
|
+
hasSampled: boolean;
|
|
21
|
+
};
|
|
22
|
+
details: {
|
|
23
|
+
files: Array<{
|
|
24
|
+
name?: string;
|
|
25
|
+
id: string;
|
|
26
|
+
url?: string | null;
|
|
27
|
+
userId?: string | null;
|
|
28
|
+
userName?: string | null;
|
|
29
|
+
organisationId?: string | null;
|
|
30
|
+
createdAtUTC?: string | null;
|
|
31
|
+
} | null>;
|
|
32
|
+
isBasePremOnly: boolean;
|
|
33
|
+
targetPrice: {
|
|
34
|
+
amount: number;
|
|
35
|
+
currency: string;
|
|
36
|
+
} | null;
|
|
37
|
+
movementPeriod: {
|
|
38
|
+
startDateUTC: string;
|
|
39
|
+
endDateUTC: string;
|
|
40
|
+
type: 'date' | 'month';
|
|
41
|
+
excludedDatesUTC?: Array<string> | null;
|
|
42
|
+
asAvailable?: boolean | null;
|
|
43
|
+
};
|
|
44
|
+
haulageType: 'ex-farm' | 'delivered' | null;
|
|
45
|
+
buyerNotes: string | null;
|
|
46
|
+
};
|
|
47
|
+
strategy: {
|
|
48
|
+
type: 'steady';
|
|
49
|
+
frequency: {
|
|
50
|
+
type: 'interval' | 'listing-count';
|
|
51
|
+
interval: 'weekly' | 'fortnightly' | 'monthly' | null;
|
|
52
|
+
listingCount: number | null;
|
|
53
|
+
};
|
|
54
|
+
priceOfferReview: {
|
|
55
|
+
type: 'first' | 'last' | 'every';
|
|
56
|
+
dayOfWeek: number;
|
|
57
|
+
hourOfDay: number;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
tags: Array<string> | null;
|
|
61
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
export type MarketingPlanSummarySchema = {
|
|
2
|
+
id: string;
|
|
3
|
+
businessUnitId?: string;
|
|
4
|
+
status?: 'active' | 'inactive';
|
|
5
|
+
inventory?: {
|
|
6
|
+
type: 'crop' | 'produce';
|
|
7
|
+
harvestYear: string;
|
|
8
|
+
commodity: {
|
|
9
|
+
commodity: {
|
|
10
|
+
id: number;
|
|
11
|
+
name: string;
|
|
12
|
+
};
|
|
13
|
+
type: {
|
|
14
|
+
id: number;
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
grade: {
|
|
18
|
+
id: number;
|
|
19
|
+
name: string;
|
|
20
|
+
};
|
|
21
|
+
variety?: string;
|
|
22
|
+
varieties: Array<string>;
|
|
23
|
+
tags: Array<number>;
|
|
24
|
+
weight: {
|
|
25
|
+
name: string;
|
|
26
|
+
conversion: number;
|
|
27
|
+
weight?: number;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
weight: {
|
|
31
|
+
name: string;
|
|
32
|
+
conversion: number;
|
|
33
|
+
weight?: number;
|
|
34
|
+
};
|
|
35
|
+
measures: Array<{
|
|
36
|
+
specification: {
|
|
37
|
+
id: number;
|
|
38
|
+
name: string;
|
|
39
|
+
unit: string;
|
|
40
|
+
};
|
|
41
|
+
min: number | null;
|
|
42
|
+
max: number | null;
|
|
43
|
+
}> | null;
|
|
44
|
+
hasSampled: boolean;
|
|
45
|
+
customMeasures?: boolean | null;
|
|
46
|
+
};
|
|
47
|
+
details?: {
|
|
48
|
+
files: Array<{
|
|
49
|
+
name?: string;
|
|
50
|
+
id: string;
|
|
51
|
+
url?: string | null;
|
|
52
|
+
userId?: string | null;
|
|
53
|
+
userName?: string | null;
|
|
54
|
+
organisationId?: string | null;
|
|
55
|
+
createdAtUTC?: string | null;
|
|
56
|
+
} | null>;
|
|
57
|
+
isBasePremOnly: boolean;
|
|
58
|
+
targetPrice: {
|
|
59
|
+
amount: number;
|
|
60
|
+
currency: string;
|
|
61
|
+
} | null;
|
|
62
|
+
movementPeriod: {
|
|
63
|
+
startDateUTC: string;
|
|
64
|
+
endDateUTC: string;
|
|
65
|
+
type: 'date' | 'month';
|
|
66
|
+
excludedDatesUTC?: Array<string> | null;
|
|
67
|
+
asAvailable?: boolean | null;
|
|
68
|
+
};
|
|
69
|
+
haulageType: 'ex-farm' | 'delivered' | null;
|
|
70
|
+
buyerNotes: string | null;
|
|
71
|
+
};
|
|
72
|
+
strategy?: {
|
|
73
|
+
type: 'steady';
|
|
74
|
+
frequency: {
|
|
75
|
+
type: 'interval' | 'listing-count';
|
|
76
|
+
interval: 'weekly' | 'fortnightly' | 'monthly' | null;
|
|
77
|
+
listingCount: number | null;
|
|
78
|
+
};
|
|
79
|
+
priceOfferReview: {
|
|
80
|
+
type: 'first' | 'last' | 'every';
|
|
81
|
+
dayOfWeek: number;
|
|
82
|
+
hourOfDay: number;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
summary?: {
|
|
86
|
+
totalListingCount: number;
|
|
87
|
+
soldWeight: {
|
|
88
|
+
name: string;
|
|
89
|
+
conversion: number;
|
|
90
|
+
weight?: number;
|
|
91
|
+
};
|
|
92
|
+
unsoldWeight: {
|
|
93
|
+
name: string;
|
|
94
|
+
conversion: number;
|
|
95
|
+
weight?: number;
|
|
96
|
+
};
|
|
97
|
+
averageSoldPrice: {
|
|
98
|
+
amount: number;
|
|
99
|
+
currency: string;
|
|
100
|
+
} | null;
|
|
101
|
+
};
|
|
102
|
+
tags?: Array<string>;
|
|
103
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type PatchMarketingPlanSchema = {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|