@hectare/platform.clients.trading 1.1.236 → 1.1.237

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
@@ -15,10 +15,8 @@ export type { CreateBidOfferSchema } from './models/CreateBidOfferSchema.js';
15
15
  export type { CreateInventorySchema } from './models/CreateInventorySchema.js';
16
16
  export type { CreateListing } from './models/CreateListing.js';
17
17
  export type { CreateMarketingPlanSchema } from './models/CreateMarketingPlanSchema.js';
18
- export type { CreateMarketUpdateRequest } from './models/CreateMarketUpdateRequest.js';
19
18
  export type { CreateOrUpdateTargetPriceSchema } from './models/CreateOrUpdateTargetPriceSchema.js';
20
19
  export type { CreateOrUpdateTargetPricesSchema } from './models/CreateOrUpdateTargetPricesSchema.js';
21
- export type { CreateTradeRequest } from './models/CreateTradeRequest.js';
22
20
  export type { CreateWantedAd } from './models/CreateWantedAd.js';
23
21
  export type { DeleteMarketingPlanSchema } from './models/DeleteMarketingPlanSchema.js';
24
22
  export type { ExFarmPriceCommodity } from './models/ExFarmPriceCommodity.js';
@@ -48,7 +46,6 @@ export type { MarketingPlanCheckSchema } from './models/MarketingPlanCheckSchema
48
46
  export type { MarketingPlanDetailSchema } from './models/MarketingPlanDetailSchema.js';
49
47
  export type { MarketingPlanSearchResultsSchema } from './models/MarketingPlanSearchResultsSchema.js';
50
48
  export type { MarketingPlanSummarySchema } from './models/MarketingPlanSummarySchema.js';
51
- export type { MarketUpdateDetail } from './models/MarketUpdateDetail.js';
52
49
  export type { NewsFeed } from './models/NewsFeed.js';
53
50
  export type { PatchBid } from './models/PatchBid.js';
54
51
  export type { PatchBidOfferSchema } from './models/PatchBidOfferSchema.js';
@@ -59,7 +56,6 @@ export type { PatchListingSubstatusSchema } from './models/PatchListingSubstatus
59
56
  export type { PatchMarketingPlanEmailDistributionListSchema } from './models/PatchMarketingPlanEmailDistributionListSchema.js';
60
57
  export type { PatchMarketingPlanScheduleSchema } from './models/PatchMarketingPlanScheduleSchema.js';
61
58
  export type { PatchMarketingPlanSchema } from './models/PatchMarketingPlanSchema.js';
62
- export type { PatchMarketUpdateRequest } from './models/PatchMarketUpdateRequest.js';
63
59
  export type { PatchWantedAdSchema } from './models/PatchWantedAdSchema.js';
64
60
  export type { PriceScoreSchema } from './models/PriceScoreSchema.js';
65
61
  export type { PublishExFarmPricingSchema } from './models/PublishExFarmPricingSchema.js';
@@ -69,8 +65,6 @@ export type { SearchResultsBidSchema } from './models/SearchResultsBidSchema.js'
69
65
  export type { SearchResultsListingSchema } from './models/SearchResultsListingSchema.js';
70
66
  export type { TargetPriceDetailSchema } from './models/TargetPriceDetailSchema.js';
71
67
  export type { Templates } from './models/Templates.js';
72
- export type { TradeRequestDetail } from './models/TradeRequestDetail.js';
73
- export type { TradeRequestSearchResultsSchema } from './models/TradeRequestSearchResultsSchema.js';
74
68
  export type { TradingConfig } from './models/TradingConfig.js';
75
69
  export type { WantedAdDetailSchema } from './models/WantedAdDetailSchema.js';
76
70
  export type { WantedAdSearchResultsSchema } from './models/WantedAdSearchResultsSchema.js';
@@ -47,12 +47,13 @@ export type BidDetail = {
47
47
  callingCode: string;
48
48
  number: string;
49
49
  };
50
- type: 'collection' | 'business' | 'delivery' | 'business-collection';
50
+ type: 'collection' | 'business' | 'delivery';
51
51
  } | null;
52
52
  id: string;
53
53
  userId: string;
54
54
  name: string;
55
55
  email: string;
56
+ ukRegion: string;
56
57
  phone: {
57
58
  callingCode: string;
58
59
  number: string;
@@ -229,8 +230,6 @@ export type BidDetail = {
229
230
  updatedAtUTC: string;
230
231
  }>;
231
232
  };
232
- tradeRequestId: string | null;
233
- tradeRequestUserId: string | null;
234
233
  wantedAdId: string | null;
235
234
  wantedAdUserId: string | null;
236
235
  relistedFromListingId?: string;
@@ -146,12 +146,13 @@ export type ContractDetail = {
146
146
  callingCode: string;
147
147
  number: string;
148
148
  };
149
- type: 'collection' | 'business' | 'delivery' | 'business-collection';
149
+ type: 'collection' | 'business' | 'delivery';
150
150
  } | null;
151
151
  id: string;
152
152
  userId: string;
153
153
  name: string;
154
154
  email: string;
155
+ ukRegion: string;
155
156
  phone: {
156
157
  callingCode: string;
157
158
  number: string;
@@ -328,8 +329,6 @@ export type ContractDetail = {
328
329
  updatedAtUTC: string;
329
330
  }>;
330
331
  };
331
- tradeRequestId: string | null;
332
- tradeRequestUserId: string | null;
333
332
  wantedAdId: string | null;
334
333
  wantedAdUserId: string | null;
335
334
  relistedFromListingId?: string;
@@ -70,7 +70,6 @@ export type CreateListing = {
70
70
  };
71
71
  };
72
72
  tags?: Array<string> | null;
73
- tradeRequestId?: string;
74
73
  wantedAdId?: string;
75
74
  relistedFromListingId?: string;
76
75
  feedback?: {
@@ -44,12 +44,13 @@ export type ListingDetail = {
44
44
  callingCode: string;
45
45
  number: string;
46
46
  };
47
- type: 'collection' | 'business' | 'delivery' | 'business-collection';
47
+ type: 'collection' | 'business' | 'delivery';
48
48
  } | null;
49
49
  id: string;
50
50
  userId: string;
51
51
  name: string;
52
52
  email: string;
53
+ ukRegion: string;
53
54
  phone: {
54
55
  callingCode: string;
55
56
  number: string;
@@ -226,8 +227,6 @@ export type ListingDetail = {
226
227
  updatedAtUTC: string;
227
228
  }>;
228
229
  };
229
- tradeRequestId: string | null;
230
- tradeRequestUserId: string | null;
231
230
  wantedAdId: string | null;
232
231
  wantedAdUserId: string | null;
233
232
  relistedFromListingId?: string;
@@ -327,12 +326,13 @@ export type ListingDetail = {
327
326
  callingCode: string;
328
327
  number: string;
329
328
  };
330
- type: 'collection' | 'business' | 'delivery' | 'business-collection';
329
+ type: 'collection' | 'business' | 'delivery';
331
330
  } | null;
332
331
  id: string;
333
332
  userId: string;
334
333
  name: string;
335
334
  email: string;
335
+ ukRegion: string;
336
336
  phone: {
337
337
  callingCode: string;
338
338
  number: string;
@@ -509,8 +509,6 @@ export type ListingDetail = {
509
509
  updatedAtUTC: string;
510
510
  }>;
511
511
  };
512
- tradeRequestId: string | null;
513
- tradeRequestUserId: string | null;
514
512
  wantedAdId: string | null;
515
513
  wantedAdUserId: string | null;
516
514
  relistedFromListingId?: string;
@@ -44,12 +44,13 @@ export type ListingSummary = {
44
44
  callingCode: string;
45
45
  number: string;
46
46
  };
47
- type: 'collection' | 'business' | 'delivery' | 'business-collection';
47
+ type: 'collection' | 'business' | 'delivery';
48
48
  } | null;
49
49
  id: string;
50
50
  userId: string;
51
51
  name: string;
52
52
  email: string;
53
+ ukRegion: string;
53
54
  phone: {
54
55
  callingCode: string;
55
56
  number: string;
@@ -226,8 +227,6 @@ export type ListingSummary = {
226
227
  updatedAtUTC: string;
227
228
  }>;
228
229
  };
229
- tradeRequestId: string | null;
230
- tradeRequestUserId: string | null;
231
230
  wantedAdId: string | null;
232
231
  wantedAdUserId: string | null;
233
232
  relistedFromListingId?: string;
@@ -48,12 +48,13 @@ export type SearchResultsBidSchema = {
48
48
  callingCode: string;
49
49
  number: string;
50
50
  };
51
- type: 'collection' | 'business' | 'delivery' | 'business-collection';
51
+ type: 'collection' | 'business' | 'delivery';
52
52
  } | null;
53
53
  id: string;
54
54
  userId: string;
55
55
  name: string;
56
56
  email: string;
57
+ ukRegion: string;
57
58
  phone: {
58
59
  callingCode: string;
59
60
  number: string;
@@ -230,8 +231,6 @@ export type SearchResultsBidSchema = {
230
231
  updatedAtUTC: string;
231
232
  }>;
232
233
  };
233
- tradeRequestId: string | null;
234
- tradeRequestUserId: string | null;
235
234
  wantedAdId: string | null;
236
235
  wantedAdUserId: string | null;
237
236
  relistedFromListingId?: string;
@@ -45,12 +45,13 @@ export type SearchResultsListingSchema = {
45
45
  callingCode: string;
46
46
  number: string;
47
47
  };
48
- type: 'collection' | 'business' | 'delivery' | 'business-collection';
48
+ type: 'collection' | 'business' | 'delivery';
49
49
  } | null;
50
50
  id: string;
51
51
  userId: string;
52
52
  name: string;
53
53
  email: string;
54
+ ukRegion: string;
54
55
  phone: {
55
56
  callingCode: string;
56
57
  number: string;
@@ -227,8 +228,6 @@ export type SearchResultsListingSchema = {
227
228
  updatedAtUTC: string;
228
229
  }>;
229
230
  };
230
- tradeRequestId: string | null;
231
- tradeRequestUserId: string | null;
232
231
  wantedAdId: string | null;
233
232
  wantedAdUserId: string | null;
234
233
  relistedFromListingId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hectare/platform.clients.trading",
3
- "version": "1.1.236",
3
+ "version": "1.1.237",
4
4
  "main": "index.js",
5
5
  "exported": true,
6
6
  "types": "index.d.ts",
@@ -1,21 +0,0 @@
1
- export type CreateMarketUpdateRequest = {
2
- title: string | null;
3
- content: string;
4
- audience: {
5
- userType: 'buyer' | 'seller' | 'all';
6
- commodities: Array<number>;
7
- regionISOs: Array<string>;
8
- } | null;
9
- notification: boolean;
10
- visibleInProduct: boolean;
11
- visibleUntil: string;
12
- utmCampaignId?: string;
13
- url: string | null;
14
- template: {
15
- id: string;
16
- variables: Array<{
17
- name: string;
18
- value: string;
19
- }>;
20
- } | null;
21
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,47 +0,0 @@
1
- export type CreateTradeRequest = {
2
- businessUnitId?: string | null;
3
- requestType?: 'everyone' | 'farms' | 'merchants';
4
- commodity: {
5
- id: number;
6
- type: number;
7
- grade: number | null;
8
- variety?: string | null;
9
- varieties?: Array<string> | null;
10
- tags?: Array<number> | null;
11
- };
12
- regionISOs?: Array<string>;
13
- harvestYear: string;
14
- type?: 'crop' | 'produce';
15
- farmAssured?: boolean;
16
- sellerNotes?: string | null;
17
- movementPeriod?: {
18
- startDateUTC: string;
19
- endDateUTC: string;
20
- type: 'date' | 'month';
21
- excludedDatesUTC?: Array<string> | null;
22
- };
23
- movement?: {
24
- months: Array<string>;
25
- asAvailable: boolean | null;
26
- };
27
- haulageTerms: {
28
- haulageType: 'ex-farm' | 'delivered' | null;
29
- deliveryPostcode?: string | null;
30
- };
31
- weight: number;
32
- guidePrice?: {
33
- amount: number;
34
- currency: string;
35
- } | null;
36
- guidePriceMin?: {
37
- amount: number;
38
- currency: string;
39
- } | null;
40
- guidePriceMax?: {
41
- amount: number;
42
- currency: string;
43
- } | null;
44
- isAnonymous?: boolean;
45
- expiresAtUTC?: string | null;
46
- tags?: Array<string> | null;
47
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,15 +0,0 @@
1
- export type MarketUpdateDetail = {
2
- id: string;
3
- title: string;
4
- content: string;
5
- visibleUntil: string;
6
- publishedAt: string;
7
- visibleInProduct: boolean;
8
- notification: boolean;
9
- url: string;
10
- utmCampaignId?: string | null;
11
- audienceUserType: string | null;
12
- audienceCommodityIds: Array<number> | null;
13
- audienceRegionISOs: Array<string> | null;
14
- templateId: string;
15
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,14 +0,0 @@
1
- export type PatchMarketUpdateRequest = {
2
- title?: string;
3
- content?: string;
4
- audience?: {
5
- userType?: 'buyer' | 'seller' | 'all';
6
- commodities?: Array<number> | null;
7
- regionISOs?: Array<string> | null;
8
- } | null;
9
- notification?: boolean;
10
- visibleUntil?: string;
11
- url?: string;
12
- visibleInProduct?: boolean;
13
- utmCampaignId?: string;
14
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,84 +0,0 @@
1
- export type TradeRequestDetail = {
2
- id: string;
3
- status: 'active' | 'closed';
4
- commodityName?: string;
5
- commodity: {
6
- commodity: {
7
- id: number;
8
- name: string;
9
- };
10
- type: {
11
- id: number;
12
- name: string;
13
- };
14
- grade: {
15
- id: number;
16
- name: string;
17
- };
18
- variety?: string;
19
- varieties: Array<string>;
20
- attributes: Array<{
21
- id: number;
22
- name: string;
23
- }>;
24
- tags?: Array<number>;
25
- weight: {
26
- name: string;
27
- conversion: number;
28
- weight?: number;
29
- };
30
- };
31
- harvestYear: string;
32
- type: 'crop' | 'produce';
33
- farmAssured?: boolean;
34
- sellerNotes?: string | null;
35
- regionISOs?: Array<string>;
36
- regions?: Array<string>;
37
- listingsReceived?: number;
38
- movementPeriod: {
39
- startDateUTC: string;
40
- endDateUTC: string;
41
- type: 'date' | 'month';
42
- };
43
- movement: {
44
- months: Array<string>;
45
- asAvailable: boolean | null;
46
- };
47
- haulageTerms: {
48
- haulageType?: 'ex-farm' | 'delivered' | null;
49
- deliveryPostcode?: string | null;
50
- };
51
- weight: {
52
- name: string;
53
- conversion: number;
54
- weight?: number;
55
- };
56
- buyer: {
57
- authPlatformId?: string;
58
- emailAddress?: string;
59
- fullName?: string;
60
- mobileNumber?: {
61
- callingCode: string;
62
- number: string;
63
- };
64
- organisationId?: string | null;
65
- organisationName?: string | null;
66
- userId: string;
67
- } | null;
68
- createdAtUTC: string;
69
- expiresAtUTC: string;
70
- requestType?: 'everyone' | 'farms' | 'merchants';
71
- guidePrice: {
72
- amount: number;
73
- currency: string;
74
- } | null;
75
- guidePriceMin: {
76
- amount: number;
77
- currency: string;
78
- } | null;
79
- guidePriceMax: {
80
- amount: number;
81
- currency: string;
82
- } | null;
83
- isAnonymous?: boolean;
84
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,135 +0,0 @@
1
- export type TradeRequestSearchResultsSchema = {
2
- docs: Array<{
3
- id: string;
4
- status: 'active' | 'closed';
5
- commodityName?: string;
6
- commodity: {
7
- commodity: {
8
- id: number;
9
- name: string;
10
- };
11
- type: {
12
- id: number;
13
- name: string;
14
- };
15
- grade: {
16
- id: number;
17
- name: string;
18
- };
19
- variety?: string;
20
- varieties: Array<string>;
21
- attributes: Array<{
22
- id: number;
23
- name: string;
24
- }>;
25
- tags?: Array<number>;
26
- weight: {
27
- name: string;
28
- conversion: number;
29
- weight?: number;
30
- };
31
- };
32
- harvestYear: string;
33
- type: 'crop' | 'produce';
34
- farmAssured?: boolean;
35
- sellerNotes?: string | null;
36
- regionISOs?: Array<string>;
37
- regions?: Array<string>;
38
- listingsReceived?: number;
39
- movementPeriod: {
40
- startDateUTC: string;
41
- endDateUTC: string;
42
- type: 'date' | 'month';
43
- };
44
- movement: {
45
- months: Array<string>;
46
- asAvailable: boolean | null;
47
- };
48
- haulageTerms: {
49
- haulageType?: 'ex-farm' | 'delivered' | null;
50
- deliveryPostcode?: string | null;
51
- };
52
- weight: {
53
- name: string;
54
- conversion: number;
55
- weight?: number;
56
- };
57
- buyer: {
58
- authPlatformId?: string;
59
- emailAddress?: string;
60
- fullName?: string;
61
- mobileNumber?: {
62
- callingCode: string;
63
- number: string;
64
- };
65
- organisationId?: string | null;
66
- organisationName?: string | null;
67
- userId: string;
68
- } | null;
69
- createdAtUTC: string;
70
- expiresAtUTC: string;
71
- requestType?: 'everyone' | 'farms' | 'merchants';
72
- guidePrice: {
73
- amount: number;
74
- currency: string;
75
- } | null;
76
- guidePriceMin: {
77
- amount: number;
78
- currency: string;
79
- } | null;
80
- guidePriceMax: {
81
- amount: number;
82
- currency: string;
83
- } | null;
84
- isAnonymous?: boolean;
85
- }>;
86
- custom?: any;
87
- totalDocs: number;
88
- limit: number;
89
- offset: number;
90
- clearUrl: string;
91
- activeFilters: Array<{
92
- name: string;
93
- displayName: string;
94
- clearUrl: string;
95
- terms: Array<{
96
- name: string;
97
- id: string;
98
- hits: string;
99
- clearUrl: string;
100
- }>;
101
- }>;
102
- facets: Array<{
103
- displayName: string;
104
- clearUrl: string;
105
- disabled: boolean;
106
- name: string;
107
- selected: boolean;
108
- active: boolean;
109
- terms: Array<{
110
- name: string;
111
- url: string;
112
- hits: number;
113
- selected: boolean;
114
- id: string;
115
- state: 'checked disabled' | 'checked' | 'disabled' | '';
116
- aggregations?: Record<string, {
117
- sum?: number;
118
- min?: number;
119
- max?: number;
120
- average?: number;
121
- }>;
122
- }>;
123
- }>;
124
- aggregations?: Array<{
125
- name?: string;
126
- sum?: number;
127
- min?: number;
128
- max?: number;
129
- average?: number;
130
- count?: number;
131
- range?: string;
132
- hits?: number;
133
- unit?: string;
134
- }>;
135
- };
@@ -1 +0,0 @@
1
- export {};