@hectare/platform.clients.trading 1.1.123 → 1.1.125

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
@@ -47,6 +47,7 @@ export type { InsightsHistoricalFuturesPricesSchema } from './models/InsightsHis
47
47
  export type { InventoryDetailSchema } from './models/InventoryDetailSchema.js';
48
48
  export type { InventorySchema } from './models/InventorySchema.js';
49
49
  export type { InventorySearchResultsSchema } from './models/InventorySearchResultsSchema.js';
50
+ export type { InventorySummarySchema } from './models/InventorySummarySchema.js';
50
51
  export type { LinkContractSchema } from './models/LinkContractSchema.js';
51
52
  export type { ListingBidInfoBid } from './models/ListingBidInfoBid.js';
52
53
  export type { ListingDetail } from './models/ListingDetail.js';
@@ -3,7 +3,7 @@ export type CreateInventorySchema = {
3
3
  organisationName?: string;
4
4
  businessUnitId: string | null;
5
5
  businessUnitName: string;
6
- weight?: number;
6
+ weight: number;
7
7
  crop: {
8
8
  type: 'crop' | 'produce';
9
9
  harvestYear: string;
@@ -1,36 +1,5 @@
1
1
  export type CreateMarketingPlanSchema = {
2
- inventoryId?: string | null;
3
- organisationId?: string | null;
4
- organisationName?: string;
5
- businessUnitId: string | null;
6
- businessUnitName: string;
7
- crop: {
8
- type: 'crop' | 'produce';
9
- harvestYear: string;
10
- commodity: {
11
- id: number;
12
- type: number;
13
- grade: number | null;
14
- variety?: string | null;
15
- varieties?: Array<string> | null;
16
- tags?: Array<number> | null;
17
- };
18
- measures: Array<{
19
- specificationId: number;
20
- min: number | null;
21
- max: number | null;
22
- }> | null;
23
- hasSampled: boolean;
24
- files?: Array<{
25
- name?: string;
26
- id: string;
27
- url?: string | null;
28
- userId?: string | null;
29
- userName?: string | null;
30
- organisationId?: string | null;
31
- createdAtUTC?: string | null;
32
- } | null>;
33
- };
2
+ inventoryId: string | null;
34
3
  details: {
35
4
  isBasePremOnly: boolean;
36
5
  targetPrice: {
@@ -0,0 +1,10 @@
1
+ export type InventorySummarySchema = {
2
+ id: string;
3
+ businessUnitName: string;
4
+ harvestYear: string;
5
+ commodity: string;
6
+ type: string;
7
+ grade: string;
8
+ tags: string;
9
+ varieties: string;
10
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,36 +1,5 @@
1
1
  export type PatchMarketingPlanSchema = {
2
- inventoryId?: string | null;
3
- organisationId?: string | null;
4
- organisationName?: string;
5
- businessUnitId: string | null;
6
- businessUnitName: string;
7
- crop: {
8
- type: 'crop' | 'produce';
9
- harvestYear: string;
10
- commodity: {
11
- id: number;
12
- type: number;
13
- grade: number | null;
14
- variety?: string | null;
15
- varieties?: Array<string> | null;
16
- tags?: Array<number> | null;
17
- };
18
- measures: Array<{
19
- specificationId: number;
20
- min: number | null;
21
- max: number | null;
22
- }> | null;
23
- hasSampled: boolean;
24
- files?: Array<{
25
- name?: string;
26
- id: string;
27
- url?: string | null;
28
- userId?: string | null;
29
- userName?: string | null;
30
- organisationId?: string | null;
31
- createdAtUTC?: string | null;
32
- } | null>;
33
- };
2
+ inventoryId: string | null;
34
3
  details: {
35
4
  isBasePremOnly: boolean;
36
5
  targetPrice: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hectare/platform.clients.trading",
3
- "version": "1.1.123",
3
+ "version": "1.1.125",
4
4
  "main": "index.js",
5
5
  "exported": true,
6
6
  "types": "index.d.ts",