@hectare/platform.clients.trading 1.1.226 → 1.1.228

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.
@@ -3,10 +3,12 @@ export type BidDetail = {
3
3
  listingId: string;
4
4
  listing?: {
5
5
  id: string;
6
+ isMyListing: boolean;
7
+ isMyOrganisationsListing: boolean;
6
8
  createdAtUTC: string;
7
9
  status: 'active' | 'closed' | 'traded';
8
10
  substatus: 'unsold' | 'archived' | 'scheduled' | 'open' | 'in-review' | 'post-review' | null;
9
- tradingStatus?: 'with-buyers' | 'scheduled' | 'review' | 'request-trade' | 'expired' | 'no-offers' | 'traded' | 'not-traded';
11
+ tradingStatus: 'with-buyers' | 'scheduled' | 'review' | 'request-trade' | 'expired' | 'no-offers' | 'ended';
10
12
  business: {
11
13
  organisationId: string;
12
14
  organisationCreatedAtUTC?: string;
@@ -1,9 +1,11 @@
1
1
  export type ListingDetail = {
2
2
  id: string;
3
+ isMyListing?: boolean;
4
+ isMyOrganisationsListing?: boolean;
3
5
  createdAtUTC: string;
4
6
  status: 'active' | 'closed' | 'traded';
5
7
  substatus: 'unsold' | 'archived' | 'scheduled' | 'open' | 'in-review' | 'post-review' | null;
6
- tradingStatus?: 'with-buyers' | 'scheduled' | 'review' | 'request-trade' | 'expired' | 'no-offers' | 'traded' | 'not-traded';
8
+ tradingStatus?: 'with-buyers' | 'scheduled' | 'review' | 'request-trade' | 'expired' | 'no-offers' | 'ended';
7
9
  business: {
8
10
  organisationId: string;
9
11
  organisationCreatedAtUTC?: string;
@@ -302,10 +304,12 @@ export type ListingDetail = {
302
304
  listingId: string;
303
305
  listing?: {
304
306
  id: string;
307
+ isMyListing: boolean;
308
+ isMyOrganisationsListing: boolean;
305
309
  createdAtUTC: string;
306
310
  status: 'active' | 'closed' | 'traded';
307
311
  substatus: 'unsold' | 'archived' | 'scheduled' | 'open' | 'in-review' | 'post-review' | null;
308
- tradingStatus?: 'with-buyers' | 'scheduled' | 'review' | 'request-trade' | 'expired' | 'no-offers' | 'traded' | 'not-traded';
312
+ tradingStatus: 'with-buyers' | 'scheduled' | 'review' | 'request-trade' | 'expired' | 'no-offers' | 'ended';
309
313
  business: {
310
314
  organisationId: string;
311
315
  organisationCreatedAtUTC?: string;
@@ -1,9 +1,11 @@
1
1
  export type ListingSummary = {
2
2
  id: string;
3
+ isMyListing: boolean;
4
+ isMyOrganisationsListing: boolean;
3
5
  createdAtUTC: string;
4
6
  status: 'active' | 'closed' | 'traded';
5
7
  substatus: 'unsold' | 'archived' | 'scheduled' | 'open' | 'in-review' | 'post-review' | null;
6
- tradingStatus?: 'with-buyers' | 'scheduled' | 'review' | 'request-trade' | 'expired' | 'no-offers' | 'traded' | 'not-traded';
8
+ tradingStatus: 'with-buyers' | 'scheduled' | 'review' | 'request-trade' | 'expired' | 'no-offers' | 'ended';
7
9
  business: {
8
10
  organisationId: string;
9
11
  organisationCreatedAtUTC?: string;
@@ -4,10 +4,12 @@ export type SearchResultsBidSchema = {
4
4
  listingId: string;
5
5
  listing?: {
6
6
  id: string;
7
+ isMyListing: boolean;
8
+ isMyOrganisationsListing: boolean;
7
9
  createdAtUTC: string;
8
10
  status: 'active' | 'closed' | 'traded';
9
11
  substatus: 'unsold' | 'archived' | 'scheduled' | 'open' | 'in-review' | 'post-review' | null;
10
- tradingStatus?: 'with-buyers' | 'scheduled' | 'review' | 'request-trade' | 'expired' | 'no-offers' | 'traded' | 'not-traded';
12
+ tradingStatus: 'with-buyers' | 'scheduled' | 'review' | 'request-trade' | 'expired' | 'no-offers' | 'ended';
11
13
  business: {
12
14
  organisationId: string;
13
15
  organisationCreatedAtUTC?: string;
@@ -1,10 +1,12 @@
1
1
  export type SearchResultsListingSchema = {
2
2
  docs: Array<{
3
3
  id: string;
4
+ isMyListing: boolean;
5
+ isMyOrganisationsListing: boolean;
4
6
  createdAtUTC: string;
5
7
  status: 'active' | 'closed' | 'traded';
6
8
  substatus: 'unsold' | 'archived' | 'scheduled' | 'open' | 'in-review' | 'post-review' | null;
7
- tradingStatus?: 'with-buyers' | 'scheduled' | 'review' | 'request-trade' | 'expired' | 'no-offers' | 'traded' | 'not-traded';
9
+ tradingStatus: 'with-buyers' | 'scheduled' | 'review' | 'request-trade' | 'expired' | 'no-offers' | 'ended';
8
10
  business: {
9
11
  organisationId: string;
10
12
  organisationCreatedAtUTC?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hectare/platform.clients.trading",
3
- "version": "1.1.226",
3
+ "version": "1.1.228",
4
4
  "main": "index.js",
5
5
  "exported": true,
6
6
  "types": "index.d.ts",