@hectare/platform.clients.trading 1.1.314 → 1.1.316

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
@@ -1,6 +1,7 @@
1
1
  export type { AcceptBid } from './models/AcceptBid.js';
2
2
  export type { BidDetail } from './models/BidDetail.js';
3
3
  export type { BuyerBenchmarkSchema } from './models/BuyerBenchmarkSchema.js';
4
+ export type { BuyerSettlementSchema } from './models/BuyerSettlementSchema.js';
4
5
  export type { BuyerStatisticsSchema } from './models/BuyerStatisticsSchema.js';
5
6
  export type { CloseListingReasonSchema } from './models/CloseListingReasonSchema.js';
6
7
  export type { CommodityPrices } from './models/CommodityPrices.js';
@@ -48,7 +49,10 @@ export type { MarketingPlanDetailSchema } from './models/MarketingPlanDetailSche
48
49
  export type { MarketingPlanSummarySchema } from './models/MarketingPlanSummarySchema.js';
49
50
  export type { NewsFeed } from './models/NewsFeed.js';
50
51
  export type { PatchBid } from './models/PatchBid.js';
52
+ export type { PatchBidAdminOptionSchema } from './models/PatchBidAdminOptionSchema.js';
53
+ export type { PatchBidAdminSchema } from './models/PatchBidAdminSchema.js';
51
54
  export type { PatchBidOfferSchema } from './models/PatchBidOfferSchema.js';
55
+ export type { PatchContractMovementBuyerSchema } from './models/PatchContractMovementBuyerSchema.js';
52
56
  export type { PatchContractMovementSchema } from './models/PatchContractMovementSchema.js';
53
57
  export type { PatchContractSchema } from './models/PatchContractSchema.js';
54
58
  export type { PatchInventorySchema } from './models/PatchInventorySchema.js';
@@ -61,6 +65,7 @@ export type { PatchMarketingPlanSchema } from './models/PatchMarketingPlanSchema
61
65
  export type { PatchWantedAdSchema } from './models/PatchWantedAdSchema.js';
62
66
  export type { PriceScoreSchema } from './models/PriceScoreSchema.js';
63
67
  export type { PublishExFarmPricingSchema } from './models/PublishExFarmPricingSchema.js';
68
+ export type { RecordContractMovementMovedSchema } from './models/RecordContractMovementMovedSchema.js';
64
69
  export type { SearchResultsBidSchema } from './models/SearchResultsBidSchema.js';
65
70
  export type { SearchResultsContractSchema } from './models/SearchResultsContractSchema.js';
66
71
  export type { SearchResultsInventorySchema } from './models/SearchResultsInventorySchema.js';
@@ -0,0 +1,10 @@
1
+ export type BuyerSettlementSchema = {
2
+ state: 'settled' | 'unsettled';
3
+ contractId?: string | null;
4
+ movementId?: number | null;
5
+ upToMonth?: string | null;
6
+ onUTC?: string | null;
7
+ moved?: boolean | null;
8
+ paid?: boolean | null;
9
+ includeBuyer?: boolean | null;
10
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -277,6 +277,14 @@ export type ContractDetail = {
277
277
  organisationId?: string | null;
278
278
  createdAtUTC?: string | null;
279
279
  } | null;
280
+ receivedOnUTC: string | null;
281
+ paymentSentUTC: string | null;
282
+ moved: {
283
+ onUTC: string;
284
+ recordedUTC: string;
285
+ source: 'parties' | 'staff' | 'integration';
286
+ byUserId: string | null;
287
+ } | null;
280
288
  }>;
281
289
  bid?: {
282
290
  id: string;
@@ -27,4 +27,12 @@ export type ContractMovementDetail = {
27
27
  organisationId?: string | null;
28
28
  createdAtUTC?: string | null;
29
29
  } | null;
30
+ receivedOnUTC: string | null;
31
+ paymentSentUTC: string | null;
32
+ moved: {
33
+ onUTC: string;
34
+ recordedUTC: string;
35
+ source: 'parties' | 'staff' | 'integration';
36
+ byUserId: string | null;
37
+ } | null;
30
38
  };
@@ -0,0 +1,33 @@
1
+ export type PatchBidAdminOptionSchema = {
2
+ id: number;
3
+ pricing?: {
4
+ exFarm: {
5
+ amount: number | null;
6
+ currency: string;
7
+ } | null;
8
+ delivered: {
9
+ amount: number | null;
10
+ currency: string;
11
+ } | null;
12
+ min: {
13
+ amount: number | null;
14
+ currency: string;
15
+ } | null;
16
+ max: {
17
+ amount: number | null;
18
+ currency: string;
19
+ } | null;
20
+ fixedPremium: {
21
+ amount: number | null;
22
+ currency: string;
23
+ } | null;
24
+ };
25
+ movement?: {
26
+ months: Array<string>;
27
+ asAvailable: boolean | null;
28
+ };
29
+ haulageType?: 'ex-farm' | 'delivered' | null;
30
+ status?: 'active' | 'accepted' | 'inactive';
31
+ soldWeight?: number | null;
32
+ buyerNotes?: string | null;
33
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,61 @@
1
+ export type PatchBidAdminSchema = {
2
+ businessId?: string;
3
+ expiresAtUTC?: string | null;
4
+ status?: 'active' | 'accepted' | 'withdrawn' | 'expired' | 'expiredOffered' | 'expiredOfferDeclined' | 'closed';
5
+ terms?: {
6
+ weight?: {
7
+ min: number;
8
+ max: number;
9
+ };
10
+ paymentDays?: number;
11
+ paymentDayType?: 'fixed' | 'dayOfMonth' | null;
12
+ paymentTrigger?: 'fullContractFulfilment' | 'perLoadMovement' | 'perMovementMonth' | 'notSpecified' | null;
13
+ paymentType?: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
14
+ deliveryPostcode?: string | null;
15
+ cropHome?: string | null;
16
+ sellerNotes?: string | null;
17
+ };
18
+ options?: Array<{
19
+ id: number;
20
+ pricing?: {
21
+ exFarm: {
22
+ amount: number | null;
23
+ currency: string;
24
+ } | null;
25
+ delivered: {
26
+ amount: number | null;
27
+ currency: string;
28
+ } | null;
29
+ min: {
30
+ amount: number | null;
31
+ currency: string;
32
+ } | null;
33
+ max: {
34
+ amount: number | null;
35
+ currency: string;
36
+ } | null;
37
+ fixedPremium: {
38
+ amount: number | null;
39
+ currency: string;
40
+ } | null;
41
+ };
42
+ movement?: {
43
+ months: Array<string>;
44
+ asAvailable: boolean | null;
45
+ };
46
+ haulageType?: 'ex-farm' | 'delivered' | null;
47
+ status?: 'active' | 'accepted' | 'inactive';
48
+ soldWeight?: number | null;
49
+ buyerNotes?: string | null;
50
+ }>;
51
+ contractReference?: string | null;
52
+ changeNote: {
53
+ reason: string;
54
+ customerNotifiedVia: Array<string>;
55
+ changes?: Array<{
56
+ label: string;
57
+ from: string;
58
+ to: string;
59
+ }>;
60
+ };
61
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export type PatchContractMovementBuyerSchema = {
2
+ receivedOnUTC?: string | null;
3
+ paymentSentUTC?: string | null;
4
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -5,6 +5,8 @@ export type PatchContractMovementSchema = {
5
5
  deliveredOnUTC?: string | null;
6
6
  paymentDueUTC?: string | null;
7
7
  paymentReceivedUTC?: string | null;
8
+ receivedOnUTC?: string | null;
9
+ paymentSentUTC?: string | null;
8
10
  totalMovementValue?: number | null;
9
11
  bonusPerTonne?: number | null;
10
12
  bonusPercent?: number | null;
@@ -20,4 +22,13 @@ export type PatchContractMovementSchema = {
20
22
  organisationId?: string | null;
21
23
  createdAtUTC?: string | null;
22
24
  } | null;
25
+ changeNote?: {
26
+ reason: string;
27
+ customerNotifiedVia: Array<string>;
28
+ changes?: Array<{
29
+ label: string;
30
+ from: string;
31
+ to: string;
32
+ }>;
33
+ };
23
34
  };
@@ -1,5 +1,6 @@
1
1
  export type PatchContractSchema = {
2
- buyerBusinessId: string;
2
+ buyerBusinessId?: string;
3
+ sellerBusinessId?: string;
3
4
  collectionAddressId?: number | null;
4
5
  details?: {
5
6
  reference?: string | null;
@@ -62,4 +63,13 @@ export type PatchContractSchema = {
62
63
  };
63
64
  sellerNotes?: string;
64
65
  variety?: string | null;
66
+ changeNote?: {
67
+ reason: string;
68
+ customerNotifiedVia: Array<string>;
69
+ changes?: Array<{
70
+ label: string;
71
+ from: string;
72
+ to: string;
73
+ }>;
74
+ };
65
75
  };
@@ -0,0 +1,3 @@
1
+ export type RecordContractMovementMovedSchema = {
2
+ onUTC: string;
3
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -278,6 +278,14 @@ export type SearchResultsContractSchema = {
278
278
  organisationId?: string | null;
279
279
  createdAtUTC?: string | null;
280
280
  } | null;
281
+ receivedOnUTC: string | null;
282
+ paymentSentUTC: string | null;
283
+ moved: {
284
+ onUTC: string;
285
+ recordedUTC: string;
286
+ source: 'parties' | 'staff' | 'integration';
287
+ byUserId: string | null;
288
+ } | null;
281
289
  }>;
282
290
  bid?: {
283
291
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hectare/platform.clients.trading",
3
- "version": "1.1.314",
3
+ "version": "1.1.316",
4
4
  "main": "index.js",
5
5
  "exported": true,
6
6
  "types": "index.d.ts",