@hectare/platform.clients.trading 1.1.163 → 1.1.165

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.
@@ -15,6 +15,35 @@ export type BidDetail = {
15
15
  businessUnitId?: string;
16
16
  businessUnitName?: string;
17
17
  businessCollectionAddressId?: number | null;
18
+ businessCollectionAddress?: {
19
+ id: number | null;
20
+ reference: string | null;
21
+ location: {
22
+ what3words: string | null;
23
+ address: {
24
+ name?: string | null;
25
+ line1: string;
26
+ line2?: string | null;
27
+ line3?: string | null;
28
+ city?: string | null;
29
+ region?: string | null;
30
+ regionISO?: string | null;
31
+ postcode: string;
32
+ countryName?: string | null;
33
+ countryISO: 'GB' | 'US' | 'ZA' | 'FR';
34
+ };
35
+ coordinates: {
36
+ lat: number;
37
+ lon: number;
38
+ } | null;
39
+ } | null;
40
+ givenName: string | null;
41
+ familyName: string | null;
42
+ phone: {
43
+ callingCode: string;
44
+ number: string;
45
+ };
46
+ } | null;
18
47
  id?: string;
19
48
  name: string;
20
49
  email: string;
@@ -2,7 +2,7 @@ export type CreateBid = {
2
2
  listingId: string;
3
3
  expiresAtUTC?: string;
4
4
  options: Array<{
5
- movementPeriod: {
5
+ movementPeriod?: {
6
6
  startDateUTC: string;
7
7
  endDateUTC: string;
8
8
  type: 'date' | 'month';
@@ -14,7 +14,7 @@ export type CreateTradeRequest = {
14
14
  type?: 'crop' | 'produce';
15
15
  farmAssured?: boolean;
16
16
  sellerNotes?: string | null;
17
- movementPeriod: {
17
+ movementPeriod?: {
18
18
  startDateUTC: string;
19
19
  endDateUTC: string;
20
20
  type: 'date' | 'month';
@@ -12,6 +12,35 @@ export type ListingDetail = {
12
12
  businessUnitId?: string;
13
13
  businessUnitName?: string;
14
14
  businessCollectionAddressId?: number | null;
15
+ businessCollectionAddress?: {
16
+ id: number | null;
17
+ reference: string | null;
18
+ location: {
19
+ what3words: string | null;
20
+ address: {
21
+ name?: string | null;
22
+ line1: string;
23
+ line2?: string | null;
24
+ line3?: string | null;
25
+ city?: string | null;
26
+ region?: string | null;
27
+ regionISO?: string | null;
28
+ postcode: string;
29
+ countryName?: string | null;
30
+ countryISO: 'GB' | 'US' | 'ZA' | 'FR';
31
+ };
32
+ coordinates: {
33
+ lat: number;
34
+ lon: number;
35
+ } | null;
36
+ } | null;
37
+ givenName: string | null;
38
+ familyName: string | null;
39
+ phone: {
40
+ callingCode: string;
41
+ number: string;
42
+ };
43
+ } | null;
15
44
  id?: string;
16
45
  name: string;
17
46
  email: string;
@@ -276,6 +305,35 @@ export type ListingDetail = {
276
305
  businessUnitId?: string;
277
306
  businessUnitName?: string;
278
307
  businessCollectionAddressId?: number | null;
308
+ businessCollectionAddress?: {
309
+ id: number | null;
310
+ reference: string | null;
311
+ location: {
312
+ what3words: string | null;
313
+ address: {
314
+ name?: string | null;
315
+ line1: string;
316
+ line2?: string | null;
317
+ line3?: string | null;
318
+ city?: string | null;
319
+ region?: string | null;
320
+ regionISO?: string | null;
321
+ postcode: string;
322
+ countryName?: string | null;
323
+ countryISO: 'GB' | 'US' | 'ZA' | 'FR';
324
+ };
325
+ coordinates: {
326
+ lat: number;
327
+ lon: number;
328
+ } | null;
329
+ } | null;
330
+ givenName: string | null;
331
+ familyName: string | null;
332
+ phone: {
333
+ callingCode: string;
334
+ number: string;
335
+ };
336
+ } | null;
279
337
  id?: string;
280
338
  name: string;
281
339
  email: string;
@@ -12,6 +12,35 @@ export type ListingSummary = {
12
12
  businessUnitId?: string;
13
13
  businessUnitName?: string;
14
14
  businessCollectionAddressId?: number | null;
15
+ businessCollectionAddress?: {
16
+ id: number | null;
17
+ reference: string | null;
18
+ location: {
19
+ what3words: string | null;
20
+ address: {
21
+ name?: string | null;
22
+ line1: string;
23
+ line2?: string | null;
24
+ line3?: string | null;
25
+ city?: string | null;
26
+ region?: string | null;
27
+ regionISO?: string | null;
28
+ postcode: string;
29
+ countryName?: string | null;
30
+ countryISO: 'GB' | 'US' | 'ZA' | 'FR';
31
+ };
32
+ coordinates: {
33
+ lat: number;
34
+ lon: number;
35
+ } | null;
36
+ } | null;
37
+ givenName: string | null;
38
+ familyName: string | null;
39
+ phone: {
40
+ callingCode: string;
41
+ number: string;
42
+ };
43
+ } | null;
15
44
  id?: string;
16
45
  name: string;
17
46
  email: string;
@@ -2,7 +2,7 @@ export type PatchBid = {
2
2
  expiresAtUTC?: string;
3
3
  options: Array<{
4
4
  id: number | null;
5
- movementPeriod: {
5
+ movementPeriod?: {
6
6
  startDateUTC: string;
7
7
  endDateUTC: string;
8
8
  type: 'date' | 'month';
@@ -1,6 +1,6 @@
1
1
  export type PatchBidOption = {
2
2
  id: number | null;
3
- movementPeriod: {
3
+ movementPeriod?: {
4
4
  startDateUTC: string;
5
5
  endDateUTC: string;
6
6
  type: 'date' | 'month';
@@ -16,6 +16,35 @@ export type SearchResultsBidSchema = {
16
16
  businessUnitId?: string;
17
17
  businessUnitName?: string;
18
18
  businessCollectionAddressId?: number | null;
19
+ businessCollectionAddress?: {
20
+ id: number | null;
21
+ reference: string | null;
22
+ location: {
23
+ what3words: string | null;
24
+ address: {
25
+ name?: string | null;
26
+ line1: string;
27
+ line2?: string | null;
28
+ line3?: string | null;
29
+ city?: string | null;
30
+ region?: string | null;
31
+ regionISO?: string | null;
32
+ postcode: string;
33
+ countryName?: string | null;
34
+ countryISO: 'GB' | 'US' | 'ZA' | 'FR';
35
+ };
36
+ coordinates: {
37
+ lat: number;
38
+ lon: number;
39
+ } | null;
40
+ } | null;
41
+ givenName: string | null;
42
+ familyName: string | null;
43
+ phone: {
44
+ callingCode: string;
45
+ number: string;
46
+ };
47
+ } | null;
19
48
  id?: string;
20
49
  name: string;
21
50
  email: string;
@@ -13,6 +13,35 @@ export type SearchResultsListingSchema = {
13
13
  businessUnitId?: string;
14
14
  businessUnitName?: string;
15
15
  businessCollectionAddressId?: number | null;
16
+ businessCollectionAddress?: {
17
+ id: number | null;
18
+ reference: string | null;
19
+ location: {
20
+ what3words: string | null;
21
+ address: {
22
+ name?: string | null;
23
+ line1: string;
24
+ line2?: string | null;
25
+ line3?: string | null;
26
+ city?: string | null;
27
+ region?: string | null;
28
+ regionISO?: string | null;
29
+ postcode: string;
30
+ countryName?: string | null;
31
+ countryISO: 'GB' | 'US' | 'ZA' | 'FR';
32
+ };
33
+ coordinates: {
34
+ lat: number;
35
+ lon: number;
36
+ } | null;
37
+ } | null;
38
+ givenName: string | null;
39
+ familyName: string | null;
40
+ phone: {
41
+ callingCode: string;
42
+ number: string;
43
+ };
44
+ } | null;
16
45
  id?: string;
17
46
  name: string;
18
47
  email: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hectare/platform.clients.trading",
3
- "version": "1.1.163",
3
+ "version": "1.1.165",
4
4
  "main": "index.js",
5
5
  "exported": true,
6
6
  "types": "index.d.ts",