@hectare/platform.clients.trading 1.1.212 → 1.1.214
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.
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
export type CreateInventorySchema = {
|
|
2
2
|
organisationId?: string | null;
|
|
3
3
|
organisationName?: string;
|
|
4
|
-
businessId
|
|
5
|
-
businessName
|
|
6
|
-
businessUnitId
|
|
7
|
-
businessUnitName
|
|
4
|
+
businessId: string;
|
|
5
|
+
businessName: string;
|
|
6
|
+
businessUnitId?: string | null;
|
|
7
|
+
businessUnitName?: string;
|
|
8
8
|
harvestWeight?: number | null;
|
|
9
|
-
committedWeight?: number | null;
|
|
10
|
-
offPlatformWeight?: number | null;
|
|
11
9
|
targetPrice?: {
|
|
12
10
|
amount: number;
|
|
13
11
|
currency: string;
|
|
@@ -39,14 +37,10 @@ export type CreateInventorySchema = {
|
|
|
39
37
|
createdAtUTC?: string | null;
|
|
40
38
|
} | null>;
|
|
41
39
|
};
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
months: Array<string>;
|
|
48
|
-
asAvailable: boolean | null;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
40
|
+
offPlatformSales?: Array<{
|
|
41
|
+
tonnage: number;
|
|
42
|
+
saleValue?: number;
|
|
43
|
+
reference?: string | null;
|
|
44
|
+
}> | null;
|
|
51
45
|
tags?: Array<string> | null;
|
|
52
46
|
};
|
|
@@ -2,6 +2,8 @@ export type InventoryDetailSchema = {
|
|
|
2
2
|
id: string;
|
|
3
3
|
createdAtUTC: string;
|
|
4
4
|
updatedAtUTC: string;
|
|
5
|
+
businessId: string;
|
|
6
|
+
businessName: string;
|
|
5
7
|
businessUnitId: string;
|
|
6
8
|
businessUnitName: string;
|
|
7
9
|
organisationId: string;
|
|
@@ -57,27 +59,20 @@ export type InventoryDetailSchema = {
|
|
|
57
59
|
createdAtUTC?: string | null;
|
|
58
60
|
} | null>;
|
|
59
61
|
};
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
haulageType: 'ex-farm' | 'delivered' | null;
|
|
63
|
-
buyerNotes: string | null;
|
|
64
|
-
movement: {
|
|
65
|
-
months: Array<string>;
|
|
66
|
-
asAvailable: boolean | null;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
summary: {
|
|
70
|
-
harvestWeight: {
|
|
71
|
-
name: string;
|
|
72
|
-
conversion: number;
|
|
73
|
-
weight?: number;
|
|
74
|
-
} | null;
|
|
75
|
-
committedWeight: {
|
|
62
|
+
offPlatformSales: Array<{
|
|
63
|
+
tonnage: {
|
|
76
64
|
name: string;
|
|
77
65
|
conversion: number;
|
|
78
66
|
weight?: number;
|
|
79
67
|
};
|
|
80
|
-
|
|
68
|
+
saleValue?: {
|
|
69
|
+
amount: number;
|
|
70
|
+
currency: string;
|
|
71
|
+
} | null;
|
|
72
|
+
reference?: string | null;
|
|
73
|
+
}>;
|
|
74
|
+
summary: {
|
|
75
|
+
harvestWeight: {
|
|
81
76
|
name: string;
|
|
82
77
|
conversion: number;
|
|
83
78
|
weight?: number;
|
|
@@ -103,6 +98,14 @@ export type InventoryDetailSchema = {
|
|
|
103
98
|
amount: number;
|
|
104
99
|
currency: string;
|
|
105
100
|
} | null;
|
|
101
|
+
averagePrice: {
|
|
102
|
+
amount: number;
|
|
103
|
+
currency: string;
|
|
104
|
+
} | null;
|
|
105
|
+
revenue: {
|
|
106
|
+
amount: number;
|
|
107
|
+
currency: string;
|
|
108
|
+
} | null;
|
|
106
109
|
};
|
|
107
110
|
tags: Array<string>;
|
|
108
111
|
linkedPlans: Array<{
|
|
@@ -3,6 +3,8 @@ export type InventorySearchResultsSchema = {
|
|
|
3
3
|
id: string;
|
|
4
4
|
createdAtUTC: string;
|
|
5
5
|
updatedAtUTC: string;
|
|
6
|
+
businessId: string;
|
|
7
|
+
businessName: string;
|
|
6
8
|
businessUnitId: string;
|
|
7
9
|
businessUnitName: string;
|
|
8
10
|
organisationId: string;
|
|
@@ -58,27 +60,20 @@ export type InventorySearchResultsSchema = {
|
|
|
58
60
|
createdAtUTC?: string | null;
|
|
59
61
|
} | null>;
|
|
60
62
|
};
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
haulageType: 'ex-farm' | 'delivered' | null;
|
|
64
|
-
buyerNotes: string | null;
|
|
65
|
-
movement: {
|
|
66
|
-
months: Array<string>;
|
|
67
|
-
asAvailable: boolean | null;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
summary: {
|
|
71
|
-
harvestWeight: {
|
|
72
|
-
name: string;
|
|
73
|
-
conversion: number;
|
|
74
|
-
weight?: number;
|
|
75
|
-
} | null;
|
|
76
|
-
committedWeight: {
|
|
63
|
+
offPlatformSales: Array<{
|
|
64
|
+
tonnage: {
|
|
77
65
|
name: string;
|
|
78
66
|
conversion: number;
|
|
79
67
|
weight?: number;
|
|
80
68
|
};
|
|
81
|
-
|
|
69
|
+
saleValue?: {
|
|
70
|
+
amount: number;
|
|
71
|
+
currency: string;
|
|
72
|
+
} | null;
|
|
73
|
+
reference?: string | null;
|
|
74
|
+
}>;
|
|
75
|
+
summary: {
|
|
76
|
+
harvestWeight: {
|
|
82
77
|
name: string;
|
|
83
78
|
conversion: number;
|
|
84
79
|
weight?: number;
|
|
@@ -104,6 +99,14 @@ export type InventorySearchResultsSchema = {
|
|
|
104
99
|
amount: number;
|
|
105
100
|
currency: string;
|
|
106
101
|
} | null;
|
|
102
|
+
averagePrice: {
|
|
103
|
+
amount: number;
|
|
104
|
+
currency: string;
|
|
105
|
+
} | null;
|
|
106
|
+
revenue: {
|
|
107
|
+
amount: number;
|
|
108
|
+
currency: string;
|
|
109
|
+
} | null;
|
|
107
110
|
};
|
|
108
111
|
tags: Array<string>;
|
|
109
112
|
linkedPlans: Array<{
|
|
@@ -1,30 +1,33 @@
|
|
|
1
1
|
export type InventorySummarySchema = {
|
|
2
2
|
id: string;
|
|
3
|
+
organisationId: string;
|
|
4
|
+
organisationName: string;
|
|
5
|
+
businessId: string;
|
|
6
|
+
businessName: string;
|
|
3
7
|
businessUnitId: string;
|
|
8
|
+
businessUnitName: string;
|
|
4
9
|
commodityId: number;
|
|
5
10
|
commodityTypeId: number;
|
|
6
11
|
commodityGradeId: number;
|
|
7
12
|
tagsIds: Array<number>;
|
|
8
|
-
businessUnitName: string;
|
|
9
13
|
harvestYear: string;
|
|
10
14
|
commodity: string;
|
|
11
15
|
type: string;
|
|
12
16
|
grade: string;
|
|
13
17
|
tags: string;
|
|
14
18
|
varieties: string;
|
|
15
|
-
contract: {
|
|
16
|
-
contractType: 'base' | 'fixed' | 'unpriced' | 'premium' | null;
|
|
17
|
-
haulageType: 'ex-farm' | 'delivered' | null;
|
|
18
|
-
buyerNotes: string | null;
|
|
19
|
-
movement: {
|
|
20
|
-
months: Array<string>;
|
|
21
|
-
asAvailable: boolean | null;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
19
|
targetPrice: {
|
|
25
20
|
amount: number;
|
|
26
21
|
currency: string;
|
|
27
22
|
} | null;
|
|
23
|
+
averagePrice: {
|
|
24
|
+
amount: number;
|
|
25
|
+
currency: string;
|
|
26
|
+
} | null;
|
|
27
|
+
revenue: {
|
|
28
|
+
amount: number;
|
|
29
|
+
currency: string;
|
|
30
|
+
} | null;
|
|
28
31
|
harvestWeight: {
|
|
29
32
|
name: string;
|
|
30
33
|
conversion: number;
|