@hectare/platform.clients.trading 1.1.277 → 1.1.278

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.
@@ -249,22 +249,19 @@ export type ContractDetail = {
249
249
  saleType: 'on-platform' | 'off-platform';
250
250
  movements: Array<{
251
251
  id: number;
252
+ ref: string | null;
253
+ invoiceRef: string | null;
254
+ month: string;
255
+ value: {
256
+ amount: number | null;
257
+ currency: string;
258
+ } | null;
252
259
  weight: number;
253
260
  weightNet: number | null;
254
- status: 'pending' | 'complete' | 'cancelled';
255
- paymentDueUTC: string | null;
261
+ status: 'pending' | 'in-progress' | 'complete' | 'cancelled';
256
262
  deliveredOnUTC: string | null;
257
263
  paymentReceivedUTC: string | null;
258
- }>;
259
- payments: Array<{
260
- id: number;
261
- amount: {
262
- amount: number;
263
- currency: string;
264
- };
265
- paymentDueDate: string | null;
266
- movementIds: Array<number>;
267
- status: 'pending' | 'paid' | 'cancelled';
264
+ paymentDueUTC: string;
268
265
  }>;
269
266
  bid?: {
270
267
  id: string;
@@ -1,9 +1,16 @@
1
1
  export type ContractMovementDetail = {
2
2
  id: number;
3
+ ref: string | null;
4
+ invoiceRef: string | null;
5
+ month: string;
6
+ value: {
7
+ amount: number | null;
8
+ currency: string;
9
+ } | null;
3
10
  weight: number;
4
11
  weightNet: number | null;
5
- status: 'pending' | 'complete' | 'cancelled';
6
- paymentDueUTC: string | null;
12
+ status: 'pending' | 'in-progress' | 'complete' | 'cancelled';
7
13
  deliveredOnUTC: string | null;
8
14
  paymentReceivedUTC: string | null;
15
+ paymentDueUTC: string;
9
16
  };
@@ -1,6 +1,8 @@
1
1
  export type PatchContractMovementSchema = {
2
- status?: 'pending' | 'complete' | 'cancelled';
3
- weight?: number;
4
- isMoved?: boolean;
5
- isPaid?: boolean;
2
+ ref?: string | null;
3
+ invoiceRef?: string | null;
4
+ weightNet?: number | null;
5
+ deliveredOnUTC?: string | null;
6
+ paymentDueUTC?: string | null;
7
+ paymentReceivedUTC?: string;
6
8
  };
@@ -250,22 +250,19 @@ export type SearchResultsContractSchema = {
250
250
  saleType: 'on-platform' | 'off-platform';
251
251
  movements: Array<{
252
252
  id: number;
253
+ ref: string | null;
254
+ invoiceRef: string | null;
255
+ month: string;
256
+ value: {
257
+ amount: number | null;
258
+ currency: string;
259
+ } | null;
253
260
  weight: number;
254
261
  weightNet: number | null;
255
- status: 'pending' | 'complete' | 'cancelled';
256
- paymentDueUTC: string | null;
262
+ status: 'pending' | 'in-progress' | 'complete' | 'cancelled';
257
263
  deliveredOnUTC: string | null;
258
264
  paymentReceivedUTC: string | null;
259
- }>;
260
- payments: Array<{
261
- id: number;
262
- amount: {
263
- amount: number;
264
- currency: string;
265
- };
266
- paymentDueDate: string | null;
267
- movementIds: Array<number>;
268
- status: 'pending' | 'paid' | 'cancelled';
265
+ paymentDueUTC: string;
269
266
  }>;
270
267
  bid?: {
271
268
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hectare/platform.clients.trading",
3
- "version": "1.1.277",
3
+ "version": "1.1.278",
4
4
  "main": "index.js",
5
5
  "exported": true,
6
6
  "types": "index.d.ts",