@hectare/platform.clients.trading 1.1.180 → 1.1.182

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
@@ -26,6 +26,7 @@ export type { CreateMarketUpdateRequest } from './models/CreateMarketUpdateReque
26
26
  export type { CreateOrUpdateTargetPriceSchema } from './models/CreateOrUpdateTargetPriceSchema.js';
27
27
  export type { CreateOrUpdateTargetPricesSchema } from './models/CreateOrUpdateTargetPricesSchema.js';
28
28
  export type { CreateTradeRequest } from './models/CreateTradeRequest.js';
29
+ export type { CreateWantedAd } from './models/CreateWantedAd.js';
29
30
  export type { ExFarmPriceCommodity } from './models/ExFarmPriceCommodity.js';
30
31
  export type { ExFarmPricesRegionSchema } from './models/ExFarmPricesRegionSchema.js';
31
32
  export type { ExFarmPricesSchema } from './models/ExFarmPricesSchema.js';
@@ -75,3 +76,5 @@ export type { TradeRequestDetail } from './models/TradeRequestDetail.js';
75
76
  export type { TradeRequestSearchResultsSchema } from './models/TradeRequestSearchResultsSchema.js';
76
77
  export type { TradingConfig } from './models/TradingConfig.js';
77
78
  export type { UnlinkContractSchema } from './models/UnlinkContractSchema.js';
79
+ export type { WantedAdDetailSchema } from './models/WantedAdDetailSchema.js';
80
+ export type { WantedAdSearchResultsSchema } from './models/WantedAdSearchResultsSchema.js';
@@ -43,6 +43,7 @@ export type BidDetail = {
43
43
  callingCode: string;
44
44
  number: string;
45
45
  };
46
+ type: 'collection' | 'business' | 'delivery' | 'business-collection';
46
47
  } | null;
47
48
  id?: string;
48
49
  name: string;
@@ -70,6 +70,7 @@ export type CreateListing = {
70
70
  };
71
71
  tags?: Array<string> | null;
72
72
  tradeRequestId?: string;
73
+ wantedAdId?: string;
73
74
  relistedFromListingId?: string;
74
75
  feedback?: {
75
76
  sellerTargetPrice: {
@@ -0,0 +1,29 @@
1
+ export type CreateWantedAd = {
2
+ commodity: {
3
+ id: number;
4
+ grades: Array<number>;
5
+ };
6
+ region: string;
7
+ harvestYear: string;
8
+ farmAssured: boolean;
9
+ sellerNotes?: string | null;
10
+ movement: {
11
+ months: Array<string>;
12
+ asAvailable: boolean | null;
13
+ };
14
+ haulageTerms: {
15
+ haulageType: 'ex-farm' | 'delivered' | null;
16
+ deliveryPostcode?: string | null;
17
+ };
18
+ weight: {
19
+ min: number | null;
20
+ max: number | null;
21
+ };
22
+ price?: {
23
+ min: number | null;
24
+ max: number | null;
25
+ currency?: string | null;
26
+ } | null;
27
+ expiresAtUTC: string;
28
+ tags?: Array<string> | null;
29
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -40,6 +40,7 @@ export type ListingDetail = {
40
40
  callingCode: string;
41
41
  number: string;
42
42
  };
43
+ type: 'collection' | 'business' | 'delivery' | 'business-collection';
43
44
  } | null;
44
45
  id?: string;
45
46
  name: string;
@@ -335,6 +336,7 @@ export type ListingDetail = {
335
336
  callingCode: string;
336
337
  number: string;
337
338
  };
339
+ type: 'collection' | 'business' | 'delivery' | 'business-collection';
338
340
  } | null;
339
341
  id?: string;
340
342
  name: string;
@@ -40,6 +40,7 @@ export type ListingSummary = {
40
40
  callingCode: string;
41
41
  number: string;
42
42
  };
43
+ type: 'collection' | 'business' | 'delivery' | 'business-collection';
43
44
  } | null;
44
45
  id?: string;
45
46
  name: string;
@@ -44,6 +44,7 @@ export type SearchResultsBidSchema = {
44
44
  callingCode: string;
45
45
  number: string;
46
46
  };
47
+ type: 'collection' | 'business' | 'delivery' | 'business-collection';
47
48
  } | null;
48
49
  id?: string;
49
50
  name: string;
@@ -41,6 +41,7 @@ export type SearchResultsListingSchema = {
41
41
  callingCode: string;
42
42
  number: string;
43
43
  };
44
+ type: 'collection' | 'business' | 'delivery' | 'business-collection';
44
45
  } | null;
45
46
  id?: string;
46
47
  name: string;
@@ -0,0 +1,57 @@
1
+ export type WantedAdDetailSchema = {
2
+ id: string;
3
+ status: 'active' | 'closed';
4
+ commodity: {
5
+ commodity: {
6
+ id: number;
7
+ name: string;
8
+ };
9
+ grades: Array<{
10
+ id: number;
11
+ name: string;
12
+ }> | null;
13
+ canonicalGrades?: Array<string> | null;
14
+ weight: {
15
+ name: string;
16
+ conversion: number;
17
+ weight?: number;
18
+ };
19
+ };
20
+ harvestYear: string;
21
+ farmAssured?: boolean;
22
+ sellerNotes?: string | null;
23
+ region?: string;
24
+ regionISOs: Array<string>;
25
+ listingsReceived?: number;
26
+ movement: {
27
+ months: Array<string>;
28
+ asAvailable: boolean | null;
29
+ };
30
+ haulageTerms: {
31
+ haulageType?: 'ex-farm' | 'delivered' | null;
32
+ deliveryPostcode?: string | null;
33
+ };
34
+ weight: {
35
+ min: number | null;
36
+ max: number | null;
37
+ };
38
+ price: {
39
+ min: number | null;
40
+ max: number | null;
41
+ currency?: string | null;
42
+ };
43
+ buyer: {
44
+ authPlatformId?: string;
45
+ emailAddress?: string;
46
+ fullName?: string;
47
+ mobileNumber?: {
48
+ callingCode: string;
49
+ number: string;
50
+ };
51
+ organisationId?: string | null;
52
+ organisationName?: string | null;
53
+ userId: string;
54
+ };
55
+ createdAtUTC: string;
56
+ expiresAtUTC: string;
57
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,106 @@
1
+ export type WantedAdSearchResultsSchema = {
2
+ docs: Array<{
3
+ id: string;
4
+ status: 'active' | 'closed';
5
+ commodity: {
6
+ commodity: {
7
+ id: number;
8
+ name: string;
9
+ };
10
+ grades: Array<{
11
+ id: number;
12
+ name: string;
13
+ }> | null;
14
+ canonicalGrades?: Array<string> | null;
15
+ weight: {
16
+ name: string;
17
+ conversion: number;
18
+ weight?: number;
19
+ };
20
+ };
21
+ harvestYear: string;
22
+ farmAssured?: boolean;
23
+ sellerNotes?: string | null;
24
+ region?: string;
25
+ regionISOs: Array<string>;
26
+ listingsReceived?: number;
27
+ movement: {
28
+ months: Array<string>;
29
+ asAvailable: boolean | null;
30
+ };
31
+ haulageTerms: {
32
+ haulageType?: 'ex-farm' | 'delivered' | null;
33
+ deliveryPostcode?: string | null;
34
+ };
35
+ weight: {
36
+ min: number | null;
37
+ max: number | null;
38
+ };
39
+ price: {
40
+ min: number | null;
41
+ max: number | null;
42
+ currency?: string | null;
43
+ };
44
+ buyer: {
45
+ authPlatformId?: string;
46
+ emailAddress?: string;
47
+ fullName?: string;
48
+ mobileNumber?: {
49
+ callingCode: string;
50
+ number: string;
51
+ };
52
+ organisationId?: string | null;
53
+ organisationName?: string | null;
54
+ userId: string;
55
+ };
56
+ createdAtUTC: string;
57
+ expiresAtUTC: string;
58
+ }>;
59
+ custom?: any;
60
+ totalDocs: number;
61
+ limit: number;
62
+ offset: number;
63
+ clearUrl: string;
64
+ activeFilters: Array<{
65
+ name: string;
66
+ displayName: string;
67
+ clearUrl: string;
68
+ terms: Array<{
69
+ name: string;
70
+ clearUrl: string;
71
+ }>;
72
+ }>;
73
+ facets: Array<{
74
+ displayName: string;
75
+ clearUrl: string;
76
+ disabled: boolean;
77
+ name: string;
78
+ selected: boolean;
79
+ active: boolean;
80
+ terms: Array<{
81
+ name: string;
82
+ url: string;
83
+ hits: number;
84
+ selected: boolean;
85
+ id: string;
86
+ state: 'checked disabled' | 'checked' | 'disabled' | '';
87
+ aggregations?: Record<string, {
88
+ sum?: number;
89
+ min?: number;
90
+ max?: number;
91
+ average?: number;
92
+ }>;
93
+ }>;
94
+ }>;
95
+ aggregations?: Array<{
96
+ name?: string;
97
+ sum?: number;
98
+ min?: number;
99
+ max?: number;
100
+ average?: number;
101
+ count?: number;
102
+ range?: string;
103
+ hits?: number;
104
+ unit?: string;
105
+ }>;
106
+ };
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hectare/platform.clients.trading",
3
- "version": "1.1.180",
3
+ "version": "1.1.182",
4
4
  "main": "index.js",
5
5
  "exported": true,
6
6
  "types": "index.d.ts",