@hectare/platform.clients.trading 1.1.282 → 1.1.301
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/ContractDetail.d.ts +9 -0
- package/models/ContractFulfilmentCalendarSchema.d.ts +24 -3
- package/models/ContractMovementDetail.d.ts +9 -0
- package/models/CreateContractSchema.d.ts +1 -0
- package/models/CreateManualListingTrade.d.ts +110 -0
- package/models/CreateManualListingTrade.js +1 -0
- package/models/CropContractSearchSchema.d.ts +24 -0
- package/models/HarvestSummarySchema.d.ts +17 -0
- package/models/InventoryDetailSchema.d.ts +17 -0
- package/models/InventorySummarySchema.d.ts +17 -0
- package/models/PatchContractMovementSchema.d.ts +12 -0
- package/models/PatchContractSchema.d.ts +1 -0
- package/models/PatchInventorySchema.d.ts +4 -4
- package/models/SearchResultsContractSchema.d.ts +9 -0
- package/models/SearchResultsInventorySchema.d.ts +17 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export type { CreateBidOfferSchema } from './models/CreateBidOfferSchema.js';
|
|
|
15
15
|
export type { CreateContractSchema } from './models/CreateContractSchema.js';
|
|
16
16
|
export type { CreateInventorySchema } from './models/CreateInventorySchema.js';
|
|
17
17
|
export type { CreateListing } from './models/CreateListing.js';
|
|
18
|
+
export type { CreateManualListingTrade } from './models/CreateManualListingTrade.js';
|
|
18
19
|
export type { CreateMarketingPlanSchema } from './models/CreateMarketingPlanSchema.js';
|
|
19
20
|
export type { CreateWantedAd } from './models/CreateWantedAd.js';
|
|
20
21
|
export type { CropContractSearchSchema } from './models/CropContractSearchSchema.js';
|
|
@@ -263,6 +263,15 @@ export type ContractDetail = {
|
|
|
263
263
|
deliveredOnUTC: string | null;
|
|
264
264
|
paymentReceivedUTC: string | null;
|
|
265
265
|
paymentDueUTC: string;
|
|
266
|
+
selfbillFile: {
|
|
267
|
+
name?: string;
|
|
268
|
+
id: string;
|
|
269
|
+
url?: string | null;
|
|
270
|
+
userId?: string | null;
|
|
271
|
+
userName?: string | null;
|
|
272
|
+
organisationId?: string | null;
|
|
273
|
+
createdAtUTC?: string | null;
|
|
274
|
+
} | null;
|
|
266
275
|
}>;
|
|
267
276
|
bid?: {
|
|
268
277
|
id: string;
|
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
export type ContractFulfilmentCalendarSchema = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
contracts: Array<{
|
|
3
|
+
id: string;
|
|
4
|
+
reference: string | null;
|
|
5
|
+
saleType: 'on-platform' | 'off-platform';
|
|
6
|
+
contractType: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus' | null;
|
|
7
|
+
pricePerUnit: {
|
|
8
|
+
amount: number | null;
|
|
9
|
+
currency: string;
|
|
10
|
+
} | null;
|
|
11
|
+
fixedPremium: {
|
|
12
|
+
amount: number | null;
|
|
13
|
+
currency: string;
|
|
14
|
+
} | null;
|
|
15
|
+
paymentDays: number | null;
|
|
16
|
+
months: Array<{
|
|
17
|
+
month: string;
|
|
18
|
+
weight: number;
|
|
19
|
+
weightMoved: number;
|
|
20
|
+
movementValue: number;
|
|
21
|
+
paymentWeight: number;
|
|
22
|
+
value: number;
|
|
23
|
+
valuePaid: number;
|
|
24
|
+
}>;
|
|
25
|
+
}>;
|
|
5
26
|
};
|
|
@@ -13,4 +13,13 @@ export type ContractMovementDetail = {
|
|
|
13
13
|
deliveredOnUTC: string | null;
|
|
14
14
|
paymentReceivedUTC: string | null;
|
|
15
15
|
paymentDueUTC: string;
|
|
16
|
+
selfbillFile: {
|
|
17
|
+
name?: string;
|
|
18
|
+
id: string;
|
|
19
|
+
url?: string | null;
|
|
20
|
+
userId?: string | null;
|
|
21
|
+
userName?: string | null;
|
|
22
|
+
organisationId?: string | null;
|
|
23
|
+
createdAtUTC?: string | null;
|
|
24
|
+
} | null;
|
|
16
25
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type CreateContractSchema = {
|
|
2
2
|
buyerBusinessId?: string;
|
|
3
3
|
sellerBusinessId: string;
|
|
4
|
+
collectionAddressId?: number | null;
|
|
4
5
|
details: {
|
|
5
6
|
reference: string | null;
|
|
6
7
|
contractType?: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus' | null;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
export type CreateManualListingTrade = {
|
|
2
|
+
listing: {
|
|
3
|
+
businessId?: string;
|
|
4
|
+
collectionAddressId?: number | null;
|
|
5
|
+
details: {
|
|
6
|
+
buyerNotes?: string | null;
|
|
7
|
+
files?: Array<{
|
|
8
|
+
name?: string;
|
|
9
|
+
id: string;
|
|
10
|
+
url?: string | null;
|
|
11
|
+
userId?: string | null;
|
|
12
|
+
userName?: string | null;
|
|
13
|
+
organisationId?: string | null;
|
|
14
|
+
createdAtUTC?: string | null;
|
|
15
|
+
} | null>;
|
|
16
|
+
movement?: {
|
|
17
|
+
months: Array<string>;
|
|
18
|
+
asAvailable: boolean | null;
|
|
19
|
+
};
|
|
20
|
+
contractType?: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
|
|
21
|
+
startDateUTC?: string | null;
|
|
22
|
+
haulageType?: 'ex-farm' | 'delivered' | 'both' | null;
|
|
23
|
+
haulageTypeTASCC?: boolean | null;
|
|
24
|
+
};
|
|
25
|
+
inventory: {
|
|
26
|
+
type?: 'crop' | 'produce';
|
|
27
|
+
harvestYear: string;
|
|
28
|
+
commodity: {
|
|
29
|
+
id: number;
|
|
30
|
+
type: number;
|
|
31
|
+
grade: number | null;
|
|
32
|
+
varieties?: Array<string> | null;
|
|
33
|
+
tags?: Array<number> | null;
|
|
34
|
+
};
|
|
35
|
+
measures: Array<{
|
|
36
|
+
specificationId: number;
|
|
37
|
+
min: number | null;
|
|
38
|
+
max: number | null;
|
|
39
|
+
}> | null;
|
|
40
|
+
hasSampled?: boolean;
|
|
41
|
+
weight: {
|
|
42
|
+
min: number;
|
|
43
|
+
max: number;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
tags?: Array<string> | null;
|
|
47
|
+
wantedAdId?: string;
|
|
48
|
+
relistedFromListingId?: string;
|
|
49
|
+
feedback?: {
|
|
50
|
+
sellerTargetPrice: {
|
|
51
|
+
amount: number | null;
|
|
52
|
+
currency: string;
|
|
53
|
+
} | null;
|
|
54
|
+
sellerTargetPriceAutoOpen?: boolean | null;
|
|
55
|
+
sellerListingReasonIds: Array<number> | null;
|
|
56
|
+
sellerListingReasonDetail: string | null;
|
|
57
|
+
} | null;
|
|
58
|
+
};
|
|
59
|
+
buyerBusinessId: string;
|
|
60
|
+
trade: {
|
|
61
|
+
offers: Array<{
|
|
62
|
+
price?: {
|
|
63
|
+
amount: number | null;
|
|
64
|
+
currency: string;
|
|
65
|
+
} | null;
|
|
66
|
+
pricing?: {
|
|
67
|
+
exFarm: {
|
|
68
|
+
amount: number | null;
|
|
69
|
+
currency: string;
|
|
70
|
+
} | null;
|
|
71
|
+
delivered: {
|
|
72
|
+
amount: number | null;
|
|
73
|
+
currency: string;
|
|
74
|
+
} | null;
|
|
75
|
+
min: {
|
|
76
|
+
amount: number | null;
|
|
77
|
+
currency: string;
|
|
78
|
+
} | null;
|
|
79
|
+
max: {
|
|
80
|
+
amount: number | null;
|
|
81
|
+
currency: string;
|
|
82
|
+
} | null;
|
|
83
|
+
fixedPremium: {
|
|
84
|
+
amount: number | null;
|
|
85
|
+
currency: string;
|
|
86
|
+
} | null;
|
|
87
|
+
};
|
|
88
|
+
movement: {
|
|
89
|
+
months: Array<string>;
|
|
90
|
+
asAvailable: boolean | null;
|
|
91
|
+
};
|
|
92
|
+
haulageType: 'ex-farm' | 'delivered' | null;
|
|
93
|
+
}>;
|
|
94
|
+
terms: {
|
|
95
|
+
weight: {
|
|
96
|
+
min: number;
|
|
97
|
+
max: number;
|
|
98
|
+
};
|
|
99
|
+
paymentDays: number;
|
|
100
|
+
paymentDayType?: 'fixed' | 'dayOfMonth' | null;
|
|
101
|
+
paymentTrigger?: 'fullContractFulfilment' | 'perLoadMovement' | 'perMovementMonth' | 'notSpecified' | null;
|
|
102
|
+
paymentType: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
|
|
103
|
+
deliveryPostcode?: string | null;
|
|
104
|
+
cropHome?: string | null;
|
|
105
|
+
sellerNotes?: string | null;
|
|
106
|
+
};
|
|
107
|
+
soldWeight?: number | null;
|
|
108
|
+
reference?: string | null;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,20 +1,28 @@
|
|
|
1
1
|
export type CropContractSearchSchema = {
|
|
2
2
|
docs?: Array<{
|
|
3
3
|
id: string;
|
|
4
|
+
listingId?: string | null;
|
|
4
5
|
reference?: string | null;
|
|
5
6
|
contractDateUTC: string;
|
|
6
7
|
saleType: 'on-platform' | 'off-platform';
|
|
7
8
|
buyer: {
|
|
8
9
|
organisationName: string;
|
|
10
|
+
contactKnown: boolean;
|
|
9
11
|
};
|
|
10
12
|
variety?: string | null;
|
|
11
13
|
haulageType?: 'ex-farm' | 'delivered' | 'both' | null;
|
|
14
|
+
contractType?: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus' | null;
|
|
15
|
+
commodityId?: number | null;
|
|
12
16
|
movement?: string | null;
|
|
17
|
+
paymentMonth?: string | null;
|
|
13
18
|
collection?: string | null;
|
|
14
19
|
movements: {
|
|
15
20
|
paid: number;
|
|
16
21
|
pending: number;
|
|
17
22
|
moved: number;
|
|
23
|
+
overdue: number;
|
|
24
|
+
movementOverdue: number;
|
|
25
|
+
paymentOverdue: number;
|
|
18
26
|
};
|
|
19
27
|
totalPrice?: {
|
|
20
28
|
amount: number | null;
|
|
@@ -24,7 +32,23 @@ export type CropContractSearchSchema = {
|
|
|
24
32
|
amount: number | null;
|
|
25
33
|
currency: string;
|
|
26
34
|
} | null;
|
|
35
|
+
pricing?: {
|
|
36
|
+
min?: {
|
|
37
|
+
amount: number | null;
|
|
38
|
+
currency: string;
|
|
39
|
+
} | null;
|
|
40
|
+
max?: {
|
|
41
|
+
amount: number | null;
|
|
42
|
+
currency: string;
|
|
43
|
+
} | null;
|
|
44
|
+
fixedPremium?: {
|
|
45
|
+
amount: number | null;
|
|
46
|
+
currency: string;
|
|
47
|
+
} | null;
|
|
48
|
+
} | null;
|
|
27
49
|
soldWeight?: number;
|
|
50
|
+
movedWeight?: number | null;
|
|
51
|
+
paidAmount?: number | null;
|
|
28
52
|
paymentDays?: number | null;
|
|
29
53
|
}>;
|
|
30
54
|
totalDocs?: number;
|
|
@@ -150,6 +150,23 @@ export type HarvestSummarySchema = {
|
|
|
150
150
|
amount: number | null;
|
|
151
151
|
currency: string;
|
|
152
152
|
} | null;
|
|
153
|
+
outstandingWeight: {
|
|
154
|
+
name: string;
|
|
155
|
+
conversion: number;
|
|
156
|
+
weight?: number;
|
|
157
|
+
};
|
|
158
|
+
outstandingValue: {
|
|
159
|
+
amount: number | null;
|
|
160
|
+
currency: string;
|
|
161
|
+
} | null;
|
|
162
|
+
incompleteContractCount: number;
|
|
163
|
+
totalReceived: {
|
|
164
|
+
amount: number | null;
|
|
165
|
+
currency: string;
|
|
166
|
+
} | null;
|
|
167
|
+
overdueContractCount: number;
|
|
168
|
+
fulfilledMovementsPct: number;
|
|
169
|
+
fulfilledPaymentsPct: number;
|
|
153
170
|
};
|
|
154
171
|
tags: Array<string>;
|
|
155
172
|
linkedPlans: Array<{
|
|
@@ -122,6 +122,23 @@ export type InventoryDetailSchema = {
|
|
|
122
122
|
amount: number | null;
|
|
123
123
|
currency: string;
|
|
124
124
|
} | null;
|
|
125
|
+
outstandingWeight: {
|
|
126
|
+
name: string;
|
|
127
|
+
conversion: number;
|
|
128
|
+
weight?: number;
|
|
129
|
+
};
|
|
130
|
+
outstandingValue: {
|
|
131
|
+
amount: number | null;
|
|
132
|
+
currency: string;
|
|
133
|
+
} | null;
|
|
134
|
+
incompleteContractCount: number;
|
|
135
|
+
totalReceived: {
|
|
136
|
+
amount: number | null;
|
|
137
|
+
currency: string;
|
|
138
|
+
} | null;
|
|
139
|
+
overdueContractCount: number;
|
|
140
|
+
fulfilledMovementsPct: number;
|
|
141
|
+
fulfilledPaymentsPct: number;
|
|
125
142
|
};
|
|
126
143
|
tags: Array<string>;
|
|
127
144
|
linkedPlans: Array<{
|
|
@@ -59,4 +59,21 @@ export type InventorySummarySchema = {
|
|
|
59
59
|
amount: number | null;
|
|
60
60
|
currency: string;
|
|
61
61
|
} | null;
|
|
62
|
+
outstandingWeight: {
|
|
63
|
+
name: string;
|
|
64
|
+
conversion: number;
|
|
65
|
+
weight?: number;
|
|
66
|
+
};
|
|
67
|
+
outstandingValue: {
|
|
68
|
+
amount: number | null;
|
|
69
|
+
currency: string;
|
|
70
|
+
} | null;
|
|
71
|
+
incompleteContractCount: number;
|
|
72
|
+
totalReceived: {
|
|
73
|
+
amount: number | null;
|
|
74
|
+
currency: string;
|
|
75
|
+
} | null;
|
|
76
|
+
overdueContractCount: number;
|
|
77
|
+
fulfilledMovementsPct: number;
|
|
78
|
+
fulfilledPaymentsPct: number;
|
|
62
79
|
};
|
|
@@ -6,4 +6,16 @@ export type PatchContractMovementSchema = {
|
|
|
6
6
|
paymentDueUTC?: string | null;
|
|
7
7
|
paymentReceivedUTC?: string | null;
|
|
8
8
|
totalMovementValue?: number | null;
|
|
9
|
+
agreedFeedBase?: number | null;
|
|
10
|
+
agreedPremium?: number | null;
|
|
11
|
+
clearAgreedPricing?: boolean | null;
|
|
12
|
+
selfbillFile?: {
|
|
13
|
+
name?: string;
|
|
14
|
+
id: string;
|
|
15
|
+
url?: string | null;
|
|
16
|
+
userId?: string | null;
|
|
17
|
+
userName?: string | null;
|
|
18
|
+
organisationId?: string | null;
|
|
19
|
+
createdAtUTC?: string | null;
|
|
20
|
+
} | null;
|
|
9
21
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export type PatchInventorySchema = {
|
|
2
2
|
harvestWeight?: number;
|
|
3
3
|
targetPrice?: {
|
|
4
|
-
amount: number;
|
|
4
|
+
amount: number | null;
|
|
5
5
|
currency: string;
|
|
6
|
-
};
|
|
6
|
+
} | null;
|
|
7
7
|
breakevenPrice?: {
|
|
8
|
-
amount: number;
|
|
8
|
+
amount: number | null;
|
|
9
9
|
currency: string;
|
|
10
|
-
};
|
|
10
|
+
} | null;
|
|
11
11
|
measures?: Array<{
|
|
12
12
|
specificationId: number;
|
|
13
13
|
min: number | null;
|
|
@@ -264,6 +264,15 @@ export type SearchResultsContractSchema = {
|
|
|
264
264
|
deliveredOnUTC: string | null;
|
|
265
265
|
paymentReceivedUTC: string | null;
|
|
266
266
|
paymentDueUTC: string;
|
|
267
|
+
selfbillFile: {
|
|
268
|
+
name?: string;
|
|
269
|
+
id: string;
|
|
270
|
+
url?: string | null;
|
|
271
|
+
userId?: string | null;
|
|
272
|
+
userName?: string | null;
|
|
273
|
+
organisationId?: string | null;
|
|
274
|
+
createdAtUTC?: string | null;
|
|
275
|
+
} | null;
|
|
267
276
|
}>;
|
|
268
277
|
bid?: {
|
|
269
278
|
id: string;
|
|
@@ -123,6 +123,23 @@ export type SearchResultsInventorySchema = {
|
|
|
123
123
|
amount: number | null;
|
|
124
124
|
currency: string;
|
|
125
125
|
} | null;
|
|
126
|
+
outstandingWeight: {
|
|
127
|
+
name: string;
|
|
128
|
+
conversion: number;
|
|
129
|
+
weight?: number;
|
|
130
|
+
};
|
|
131
|
+
outstandingValue: {
|
|
132
|
+
amount: number | null;
|
|
133
|
+
currency: string;
|
|
134
|
+
} | null;
|
|
135
|
+
incompleteContractCount: number;
|
|
136
|
+
totalReceived: {
|
|
137
|
+
amount: number | null;
|
|
138
|
+
currency: string;
|
|
139
|
+
} | null;
|
|
140
|
+
overdueContractCount: number;
|
|
141
|
+
fulfilledMovementsPct: number;
|
|
142
|
+
fulfilledPaymentsPct: number;
|
|
126
143
|
};
|
|
127
144
|
tags: Array<string>;
|
|
128
145
|
linkedPlans: Array<{
|