@hectare/platform.clients.trading 1.1.129 → 1.1.131

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.
@@ -3,7 +3,9 @@ export type CreateInventorySchema = {
3
3
  organisationName?: string;
4
4
  businessUnitId: string | null;
5
5
  businessUnitName: string;
6
- weight: number;
6
+ harvestWeight?: number | null;
7
+ preHarvestWeight?: number | null;
8
+ offPlatformWeight?: number | null;
7
9
  crop: {
8
10
  type: 'crop' | 'produce';
9
11
  harvestYear: string;
@@ -58,7 +58,17 @@ export type InventoryDetailSchema = {
58
58
  } | null>;
59
59
  };
60
60
  summary: {
61
- weight?: {
61
+ harvestWeight?: {
62
+ name: string;
63
+ conversion: number;
64
+ weight?: number;
65
+ } | null;
66
+ preHarvestWeight?: {
67
+ name: string;
68
+ conversion: number;
69
+ weight?: number;
70
+ } | null;
71
+ offPlatformWeight?: {
62
72
  name: string;
63
73
  conversion: number;
64
74
  weight?: number;
@@ -59,7 +59,17 @@ export type InventorySearchResultsSchema = {
59
59
  } | null>;
60
60
  };
61
61
  summary: {
62
- weight?: {
62
+ harvestWeight?: {
63
+ name: string;
64
+ conversion: number;
65
+ weight?: number;
66
+ } | null;
67
+ preHarvestWeight?: {
68
+ name: string;
69
+ conversion: number;
70
+ weight?: number;
71
+ } | null;
72
+ offPlatformWeight?: {
63
73
  name: string;
64
74
  conversion: number;
65
75
  weight?: number;
@@ -68,7 +68,7 @@ export type MarketingPlanDetailSchema = {
68
68
  amount: number;
69
69
  currency: string;
70
70
  } | null;
71
- movement?: {
71
+ movement: {
72
72
  months: Array<string>;
73
73
  asAvailable: boolean;
74
74
  };
@@ -139,10 +139,9 @@ export type MarketingPlanDetailSchema = {
139
139
  conversion: number;
140
140
  weight?: number;
141
141
  };
142
- movementPeriod?: {
143
- startDateUTC: string;
144
- endDateUTC: string;
145
- type: 'date' | 'month';
142
+ movement?: {
143
+ months: Array<string>;
144
+ asAvailable: boolean;
146
145
  };
147
146
  skipped?: boolean;
148
147
  }>;
@@ -69,7 +69,7 @@ export type MarketingPlanSearchResultsSchema = {
69
69
  amount: number;
70
70
  currency: string;
71
71
  } | null;
72
- movement?: {
72
+ movement: {
73
73
  months: Array<string>;
74
74
  asAvailable: boolean;
75
75
  };
@@ -140,10 +140,9 @@ export type MarketingPlanSearchResultsSchema = {
140
140
  conversion: number;
141
141
  weight?: number;
142
142
  };
143
- movementPeriod?: {
144
- startDateUTC: string;
145
- endDateUTC: string;
146
- type: 'date' | 'month';
143
+ movement?: {
144
+ months: Array<string>;
145
+ asAvailable: boolean;
147
146
  };
148
147
  skipped?: boolean;
149
148
  }>;
@@ -68,7 +68,7 @@ export type MarketingPlanSummarySchema = {
68
68
  amount: number;
69
69
  currency: string;
70
70
  } | null;
71
- movement?: {
71
+ movement: {
72
72
  months: Array<string>;
73
73
  asAvailable: boolean;
74
74
  };
@@ -139,10 +139,9 @@ export type MarketingPlanSummarySchema = {
139
139
  conversion: number;
140
140
  weight?: number;
141
141
  };
142
- movementPeriod?: {
143
- startDateUTC: string;
144
- endDateUTC: string;
145
- type: 'date' | 'month';
142
+ movement?: {
143
+ months: Array<string>;
144
+ asAvailable: boolean;
146
145
  };
147
146
  skipped?: boolean;
148
147
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hectare/platform.clients.trading",
3
- "version": "1.1.129",
3
+ "version": "1.1.131",
4
4
  "main": "index.js",
5
5
  "exported": true,
6
6
  "types": "index.d.ts",