@hectare/platform.clients.trading 1.1.265 → 1.1.267

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,11 +1,11 @@
1
1
  export type { AcceptBid } from './models/AcceptBid.js';
2
2
  export type { AskAnExpertBuyerRallyReportSchema } from './models/AskAnExpertBuyerRallyReportSchema.js';
3
3
  export type { AskAnExpertDraftContractSchema } from './models/AskAnExpertDraftContractSchema.js';
4
- export type { BidContract } from './models/BidContract.js';
5
4
  export type { BidDetail } from './models/BidDetail.js';
6
5
  export type { CloseListingReasonSchema } from './models/CloseListingReasonSchema.js';
7
6
  export type { CommodityPrices } from './models/CommodityPrices.js';
8
7
  export type { CompleteMarketingPlanSchema } from './models/CompleteMarketingPlanSchema.js';
8
+ export type { ContractAddContract } from './models/ContractAddContract.js';
9
9
  export type { ContractDetail } from './models/ContractDetail.js';
10
10
  export type { CreateBid } from './models/CreateBid.js';
11
11
  export type { CreateBidOfferSchema } from './models/CreateBidOfferSchema.js';
@@ -122,7 +122,7 @@ export type BidDetail = {
122
122
  };
123
123
  contract?: {
124
124
  id: string | null;
125
- files: Array<{
125
+ files?: Array<{
126
126
  name?: string;
127
127
  id: string;
128
128
  url?: string | null;
@@ -492,7 +492,7 @@ export type BidDetail = {
492
492
  };
493
493
  contract?: {
494
494
  id: string | null;
495
- files: Array<{
495
+ files?: Array<{
496
496
  name?: string;
497
497
  id: string;
498
498
  url?: string | null;
@@ -1,4 +1,4 @@
1
- export type BidContract = {
1
+ export type ContractAddContract = {
2
2
  reference?: string | null;
3
3
  files: Array<{
4
4
  name?: string;
@@ -14,6 +14,7 @@ export type ContractDetail = {
14
14
  weight?: number;
15
15
  };
16
16
  priceType: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
17
+ compositionType: 'individual' | 'multiple' | 'other';
17
18
  totalPrice: {
18
19
  amount: number | null;
19
20
  currency: string;
@@ -111,55 +112,6 @@ export type ContractDetail = {
111
112
  createdAtUTC?: string | null;
112
113
  } | null>;
113
114
  };
114
- inventory?: {
115
- type: 'crop' | 'produce';
116
- harvestYear: string;
117
- commodity: {
118
- commodity: {
119
- id: number;
120
- name: string;
121
- };
122
- type: {
123
- id: number;
124
- name: string;
125
- };
126
- grade: {
127
- id: number;
128
- name: string;
129
- };
130
- varieties: Array<string>;
131
- attributes: Array<{
132
- id: number;
133
- name: string;
134
- }>;
135
- tags?: Array<number>;
136
- weight: {
137
- name: string;
138
- conversion: number;
139
- weight?: number;
140
- };
141
- };
142
- measures: Array<{
143
- specification: {
144
- id: number;
145
- name: string;
146
- unit: string;
147
- };
148
- min: number | null;
149
- max: number | null;
150
- }> | null;
151
- hasSampled: boolean;
152
- customMeasures?: boolean | null;
153
- files: Array<{
154
- name?: string;
155
- id: string;
156
- url?: string | null;
157
- userId?: string | null;
158
- userName?: string | null;
159
- organisationId?: string | null;
160
- createdAtUTC?: string | null;
161
- } | null>;
162
- };
163
115
  buyer: {
164
116
  organisationId: string;
165
117
  businessId: string;
@@ -304,7 +256,7 @@ export type ContractDetail = {
304
256
  };
305
257
  contract?: {
306
258
  id: string | null;
307
- files: Array<{
259
+ files?: Array<{
308
260
  name?: string;
309
261
  id: string;
310
262
  url?: string | null;
@@ -674,7 +626,7 @@ export type ContractDetail = {
674
626
  };
675
627
  contract?: {
676
628
  id: string | null;
677
- files: Array<{
629
+ files?: Array<{
678
630
  name?: string;
679
631
  id: string;
680
632
  url?: string | null;
@@ -48,13 +48,4 @@ export type CreateBid = {
48
48
  sellerNotes?: string | null;
49
49
  };
50
50
  reference?: string | null;
51
- files?: Array<{
52
- name?: string;
53
- id: string;
54
- url?: string | null;
55
- userId?: string | null;
56
- userName?: string | null;
57
- organisationId?: string | null;
58
- createdAtUTC?: string | null;
59
- } | null>;
60
51
  };
@@ -4,6 +4,7 @@ export type CreateContractSchema = {
4
4
  details: {
5
5
  reference: string | null;
6
6
  contractType?: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
7
+ compositionType?: 'individual' | 'multiple' | 'other';
7
8
  paymentDays?: number;
8
9
  haulageType?: 'ex-farm' | 'delivered' | null;
9
10
  contractDateUTC?: string | null;
@@ -347,7 +347,7 @@ export type ListingDetail = {
347
347
  };
348
348
  contract?: {
349
349
  id: string | null;
350
- files: Array<{
350
+ files?: Array<{
351
351
  name?: string;
352
352
  id: string;
353
353
  url?: string | null;
@@ -3,6 +3,7 @@ export type PatchContractSchema = {
3
3
  details?: {
4
4
  reference?: string | null;
5
5
  contractType?: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
6
+ compositionType?: 'individual' | 'multiple' | 'other';
6
7
  paymentDays?: number;
7
8
  haulageType?: 'ex-farm' | 'delivered' | null;
8
9
  contractDateUTC?: string | null;
@@ -123,7 +123,7 @@ export type SearchResultsBidSchema = {
123
123
  };
124
124
  contract?: {
125
125
  id: string | null;
126
- files: Array<{
126
+ files?: Array<{
127
127
  name?: string;
128
128
  id: string;
129
129
  url?: string | null;
@@ -493,7 +493,7 @@ export type SearchResultsBidSchema = {
493
493
  };
494
494
  contract?: {
495
495
  id: string | null;
496
- files: Array<{
496
+ files?: Array<{
497
497
  name?: string;
498
498
  id: string;
499
499
  url?: string | null;
@@ -15,6 +15,7 @@ export type SearchResultsContractSchema = {
15
15
  weight?: number;
16
16
  };
17
17
  priceType: 'base' | 'fixed' | 'premium-only' | 'unpriced' | 'premium' | 'base-plus-oil-bonus';
18
+ compositionType: 'individual' | 'multiple' | 'other';
18
19
  totalPrice: {
19
20
  amount: number | null;
20
21
  currency: string;
@@ -112,55 +113,6 @@ export type SearchResultsContractSchema = {
112
113
  createdAtUTC?: string | null;
113
114
  } | null>;
114
115
  };
115
- inventory?: {
116
- type: 'crop' | 'produce';
117
- harvestYear: string;
118
- commodity: {
119
- commodity: {
120
- id: number;
121
- name: string;
122
- };
123
- type: {
124
- id: number;
125
- name: string;
126
- };
127
- grade: {
128
- id: number;
129
- name: string;
130
- };
131
- varieties: Array<string>;
132
- attributes: Array<{
133
- id: number;
134
- name: string;
135
- }>;
136
- tags?: Array<number>;
137
- weight: {
138
- name: string;
139
- conversion: number;
140
- weight?: number;
141
- };
142
- };
143
- measures: Array<{
144
- specification: {
145
- id: number;
146
- name: string;
147
- unit: string;
148
- };
149
- min: number | null;
150
- max: number | null;
151
- }> | null;
152
- hasSampled: boolean;
153
- customMeasures?: boolean | null;
154
- files: Array<{
155
- name?: string;
156
- id: string;
157
- url?: string | null;
158
- userId?: string | null;
159
- userName?: string | null;
160
- organisationId?: string | null;
161
- createdAtUTC?: string | null;
162
- } | null>;
163
- };
164
116
  buyer: {
165
117
  organisationId: string;
166
118
  businessId: string;
@@ -305,7 +257,7 @@ export type SearchResultsContractSchema = {
305
257
  };
306
258
  contract?: {
307
259
  id: string | null;
308
- files: Array<{
260
+ files?: Array<{
309
261
  name?: string;
310
262
  id: string;
311
263
  url?: string | null;
@@ -675,7 +627,7 @@ export type SearchResultsContractSchema = {
675
627
  };
676
628
  contract?: {
677
629
  id: string | null;
678
- files: Array<{
630
+ files?: Array<{
679
631
  name?: string;
680
632
  id: string;
681
633
  url?: string | null;
@@ -348,7 +348,7 @@ export type SearchResultsListingSchema = {
348
348
  };
349
349
  contract?: {
350
350
  id: string | null;
351
- files: Array<{
351
+ files?: Array<{
352
352
  name?: string;
353
353
  id: string;
354
354
  url?: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hectare/platform.clients.trading",
3
- "version": "1.1.265",
3
+ "version": "1.1.267",
4
4
  "main": "index.js",
5
5
  "exported": true,
6
6
  "types": "index.d.ts",