@hectare/platform.clients.trading 1.1.198 → 1.1.200

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.
@@ -6,6 +6,10 @@ export type CreateInventorySchema = {
6
6
  harvestWeight?: number | null;
7
7
  committedWeight?: number | null;
8
8
  offPlatformWeight?: number | null;
9
+ targetPrice?: {
10
+ amount: number;
11
+ currency: string;
12
+ } | null;
9
13
  crop: {
10
14
  type: 'crop' | 'produce';
11
15
  harvestYear: string;
@@ -2,7 +2,7 @@ export type CreateMarketingPlanSchema = {
2
2
  inventoryId: string | null;
3
3
  details: {
4
4
  contractType: 'base' | 'fixed' | 'unpriced' | 'premium';
5
- targetPrice: {
5
+ targetPrice?: {
6
6
  amount: number;
7
7
  currency: string;
8
8
  } | null;
@@ -24,6 +24,11 @@ export type CreateMarketingPlanSchema = {
24
24
  weightPerListingMin: number;
25
25
  weightPerListingMax: number;
26
26
  canListLowerWeight: boolean;
27
+ targetPrice?: {
28
+ amount: number;
29
+ currency: string;
30
+ } | null;
31
+ targetPriceAutoOpen?: boolean;
27
32
  }>;
28
33
  priceOfferReview: {
29
34
  type: 'first' | 'second' | 'third' | 'fourth' | 'last' | 'every' | 'every-other';
@@ -99,6 +99,10 @@ export type InventoryDetailSchema = {
99
99
  };
100
100
  listingCount: number;
101
101
  tradedCount: number;
102
+ targetPrice: {
103
+ amount: number;
104
+ currency: string;
105
+ } | null;
102
106
  };
103
107
  tags: Array<string>;
104
108
  linkedPlans: Array<{
@@ -100,6 +100,10 @@ export type InventorySearchResultsSchema = {
100
100
  };
101
101
  listingCount: number;
102
102
  tradedCount: number;
103
+ targetPrice: {
104
+ amount: number;
105
+ currency: string;
106
+ } | null;
103
107
  };
104
108
  tags: Array<string>;
105
109
  linkedPlans: Array<{
@@ -64,7 +64,7 @@ export type MarketingPlanDetailSchema = {
64
64
  };
65
65
  details: {
66
66
  contractType: 'base' | 'fixed' | 'unpriced' | 'premium';
67
- targetPrice: {
67
+ targetPrice?: {
68
68
  amount: number;
69
69
  currency: string;
70
70
  } | null;
@@ -103,6 +103,11 @@ export type MarketingPlanDetailSchema = {
103
103
  weight?: number;
104
104
  };
105
105
  canListLowerWeight: boolean;
106
+ targetPrice: {
107
+ amount: number;
108
+ currency: string;
109
+ } | null;
110
+ targetPriceAutoOpen: boolean;
106
111
  }>;
107
112
  priceOfferReview: {
108
113
  type: 'first' | 'second' | 'third' | 'fourth' | 'last' | 'every' | 'every-other';
@@ -136,6 +141,7 @@ export type MarketingPlanDetailSchema = {
136
141
  amount: number;
137
142
  currency: string;
138
143
  } | null;
144
+ targetPriceAutoOpen?: boolean;
139
145
  reviewDateUTC?: string;
140
146
  listingId?: string;
141
147
  weight?: {
@@ -65,7 +65,7 @@ export type MarketingPlanSearchResultsSchema = {
65
65
  };
66
66
  details: {
67
67
  contractType: 'base' | 'fixed' | 'unpriced' | 'premium';
68
- targetPrice: {
68
+ targetPrice?: {
69
69
  amount: number;
70
70
  currency: string;
71
71
  } | null;
@@ -104,6 +104,11 @@ export type MarketingPlanSearchResultsSchema = {
104
104
  weight?: number;
105
105
  };
106
106
  canListLowerWeight: boolean;
107
+ targetPrice: {
108
+ amount: number;
109
+ currency: string;
110
+ } | null;
111
+ targetPriceAutoOpen: boolean;
107
112
  }>;
108
113
  priceOfferReview: {
109
114
  type: 'first' | 'second' | 'third' | 'fourth' | 'last' | 'every' | 'every-other';
@@ -137,6 +142,7 @@ export type MarketingPlanSearchResultsSchema = {
137
142
  amount: number;
138
143
  currency: string;
139
144
  } | null;
145
+ targetPriceAutoOpen?: boolean;
140
146
  reviewDateUTC?: string;
141
147
  listingId?: string;
142
148
  weight?: {
@@ -64,7 +64,7 @@ export type MarketingPlanSummarySchema = {
64
64
  };
65
65
  details: {
66
66
  contractType: 'base' | 'fixed' | 'unpriced' | 'premium';
67
- targetPrice: {
67
+ targetPrice?: {
68
68
  amount: number;
69
69
  currency: string;
70
70
  } | null;
@@ -103,6 +103,11 @@ export type MarketingPlanSummarySchema = {
103
103
  weight?: number;
104
104
  };
105
105
  canListLowerWeight: boolean;
106
+ targetPrice: {
107
+ amount: number;
108
+ currency: string;
109
+ } | null;
110
+ targetPriceAutoOpen: boolean;
106
111
  }>;
107
112
  priceOfferReview: {
108
113
  type: 'first' | 'second' | 'third' | 'fourth' | 'last' | 'every' | 'every-other';
@@ -136,6 +141,7 @@ export type MarketingPlanSummarySchema = {
136
141
  amount: number;
137
142
  currency: string;
138
143
  } | null;
144
+ targetPriceAutoOpen?: boolean;
139
145
  reviewDateUTC?: string;
140
146
  listingId?: string;
141
147
  weight?: {
@@ -10,6 +10,7 @@ export type PatchMarketingPlanScheduleSchema = {
10
10
  amount: number;
11
11
  currency: string;
12
12
  } | null;
13
+ targetPriceAutoOpen?: boolean;
13
14
  movement: {
14
15
  months: Array<string>;
15
16
  asAvailable: boolean | null;
@@ -2,7 +2,7 @@ export type PatchMarketingPlanSchema = {
2
2
  inventoryId: string | null;
3
3
  details: {
4
4
  contractType: 'base' | 'fixed' | 'unpriced' | 'premium';
5
- targetPrice: {
5
+ targetPrice?: {
6
6
  amount: number;
7
7
  currency: string;
8
8
  } | null;
@@ -24,6 +24,11 @@ export type PatchMarketingPlanSchema = {
24
24
  weightPerListingMin: number;
25
25
  weightPerListingMax: number;
26
26
  canListLowerWeight: boolean;
27
+ targetPrice?: {
28
+ amount: number;
29
+ currency: string;
30
+ } | null;
31
+ targetPriceAutoOpen?: boolean;
27
32
  }>;
28
33
  priceOfferReview: {
29
34
  type: 'first' | 'second' | 'third' | 'fourth' | 'last' | 'every' | 'every-other';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hectare/platform.clients.trading",
3
- "version": "1.1.198",
3
+ "version": "1.1.200",
4
4
  "main": "index.js",
5
5
  "exported": true,
6
6
  "types": "index.d.ts",