pmxtjs 2.15.0 → 2.16.1

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.
@@ -21,6 +21,12 @@ export interface EventFetchParams {
21
21
  * @memberof EventFetchParams
22
22
  */
23
23
  query?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof EventFetchParams
28
+ */
29
+ sort?: EventFetchParamsSortEnum;
24
30
  /**
25
31
  *
26
32
  * @type {number}
@@ -58,6 +64,15 @@ export interface EventFetchParams {
58
64
  */
59
65
  slug?: string;
60
66
  }
67
+ /**
68
+ * @export
69
+ */
70
+ export declare const EventFetchParamsSortEnum: {
71
+ readonly Volume: "volume";
72
+ readonly Liquidity: "liquidity";
73
+ readonly Newest: "newest";
74
+ };
75
+ export type EventFetchParamsSortEnum = typeof EventFetchParamsSortEnum[keyof typeof EventFetchParamsSortEnum];
61
76
  /**
62
77
  * @export
63
78
  */
@@ -11,6 +11,14 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ /**
15
+ * @export
16
+ */
17
+ export const EventFetchParamsSortEnum = {
18
+ Volume: 'volume',
19
+ Liquidity: 'liquidity',
20
+ Newest: 'newest'
21
+ };
14
22
  /**
15
23
  * @export
16
24
  */
@@ -42,6 +50,7 @@ export function EventFetchParamsFromJSONTyped(json, ignoreDiscriminator) {
42
50
  }
43
51
  return {
44
52
  'query': json['query'] == null ? undefined : json['query'],
53
+ 'sort': json['sort'] == null ? undefined : json['sort'],
45
54
  'limit': json['limit'] == null ? undefined : json['limit'],
46
55
  'offset': json['offset'] == null ? undefined : json['offset'],
47
56
  'status': json['status'] == null ? undefined : json['status'],
@@ -59,6 +68,7 @@ export function EventFetchParamsToJSONTyped(value, ignoreDiscriminator = false)
59
68
  }
60
69
  return {
61
70
  'query': value['query'],
71
+ 'sort': value['sort'],
62
72
  'limit': value['limit'],
63
73
  'offset': value['offset'],
64
74
  'status': value['status'],
@@ -40,6 +40,12 @@ export interface UnifiedMarket {
40
40
  * @memberof UnifiedMarket
41
41
  */
42
42
  outcomes?: Array<MarketOutcome>;
43
+ /**
44
+ * Link to parent event
45
+ * @type {string}
46
+ * @memberof UnifiedMarket
47
+ */
48
+ eventId?: string;
43
49
  /**
44
50
  *
45
51
  * @type {Date}
@@ -30,6 +30,7 @@ export function UnifiedMarketFromJSONTyped(json, ignoreDiscriminator) {
30
30
  'title': json['title'] == null ? undefined : json['title'],
31
31
  'description': json['description'] == null ? undefined : json['description'],
32
32
  'outcomes': json['outcomes'] == null ? undefined : (json['outcomes'].map(MarketOutcomeFromJSON)),
33
+ 'eventId': json['eventId'] == null ? undefined : json['eventId'],
33
34
  'resolutionDate': json['resolutionDate'] == null ? undefined : (new Date(json['resolutionDate'])),
34
35
  'volume24h': json['volume24h'] == null ? undefined : json['volume24h'],
35
36
  'volume': json['volume'] == null ? undefined : json['volume'],
@@ -57,6 +58,7 @@ export function UnifiedMarketToJSONTyped(value, ignoreDiscriminator = false) {
57
58
  'title': value['title'],
58
59
  'description': value['description'],
59
60
  'outcomes': value['outcomes'] == null ? undefined : (value['outcomes'].map(MarketOutcomeToJSON)),
61
+ 'eventId': value['eventId'],
60
62
  'resolutionDate': value['resolutionDate'] == null ? value['resolutionDate'] : value['resolutionDate'].toISOString(),
61
63
  'volume24h': value['volume24h'],
62
64
  'volume': value['volume'],
@@ -21,6 +21,12 @@ export interface EventFetchParams {
21
21
  * @memberof EventFetchParams
22
22
  */
23
23
  query?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof EventFetchParams
28
+ */
29
+ sort?: EventFetchParamsSortEnum;
24
30
  /**
25
31
  *
26
32
  * @type {number}
@@ -58,6 +64,15 @@ export interface EventFetchParams {
58
64
  */
59
65
  slug?: string;
60
66
  }
67
+ /**
68
+ * @export
69
+ */
70
+ export declare const EventFetchParamsSortEnum: {
71
+ readonly Volume: "volume";
72
+ readonly Liquidity: "liquidity";
73
+ readonly Newest: "newest";
74
+ };
75
+ export type EventFetchParamsSortEnum = typeof EventFetchParamsSortEnum[keyof typeof EventFetchParamsSortEnum];
61
76
  /**
62
77
  * @export
63
78
  */
@@ -13,12 +13,20 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.EventFetchParamsSearchInEnum = exports.EventFetchParamsStatusEnum = void 0;
16
+ exports.EventFetchParamsSearchInEnum = exports.EventFetchParamsStatusEnum = exports.EventFetchParamsSortEnum = void 0;
17
17
  exports.instanceOfEventFetchParams = instanceOfEventFetchParams;
18
18
  exports.EventFetchParamsFromJSON = EventFetchParamsFromJSON;
19
19
  exports.EventFetchParamsFromJSONTyped = EventFetchParamsFromJSONTyped;
20
20
  exports.EventFetchParamsToJSON = EventFetchParamsToJSON;
21
21
  exports.EventFetchParamsToJSONTyped = EventFetchParamsToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.EventFetchParamsSortEnum = {
26
+ Volume: 'volume',
27
+ Liquidity: 'liquidity',
28
+ Newest: 'newest'
29
+ };
22
30
  /**
23
31
  * @export
24
32
  */
@@ -50,6 +58,7 @@ function EventFetchParamsFromJSONTyped(json, ignoreDiscriminator) {
50
58
  }
51
59
  return {
52
60
  'query': json['query'] == null ? undefined : json['query'],
61
+ 'sort': json['sort'] == null ? undefined : json['sort'],
53
62
  'limit': json['limit'] == null ? undefined : json['limit'],
54
63
  'offset': json['offset'] == null ? undefined : json['offset'],
55
64
  'status': json['status'] == null ? undefined : json['status'],
@@ -67,6 +76,7 @@ function EventFetchParamsToJSONTyped(value, ignoreDiscriminator = false) {
67
76
  }
68
77
  return {
69
78
  'query': value['query'],
79
+ 'sort': value['sort'],
70
80
  'limit': value['limit'],
71
81
  'offset': value['offset'],
72
82
  'status': value['status'],
@@ -40,6 +40,12 @@ export interface UnifiedMarket {
40
40
  * @memberof UnifiedMarket
41
41
  */
42
42
  outcomes?: Array<MarketOutcome>;
43
+ /**
44
+ * Link to parent event
45
+ * @type {string}
46
+ * @memberof UnifiedMarket
47
+ */
48
+ eventId?: string;
43
49
  /**
44
50
  *
45
51
  * @type {Date}
@@ -37,6 +37,7 @@ function UnifiedMarketFromJSONTyped(json, ignoreDiscriminator) {
37
37
  'title': json['title'] == null ? undefined : json['title'],
38
38
  'description': json['description'] == null ? undefined : json['description'],
39
39
  'outcomes': json['outcomes'] == null ? undefined : (json['outcomes'].map(MarketOutcome_1.MarketOutcomeFromJSON)),
40
+ 'eventId': json['eventId'] == null ? undefined : json['eventId'],
40
41
  'resolutionDate': json['resolutionDate'] == null ? undefined : (new Date(json['resolutionDate'])),
41
42
  'volume24h': json['volume24h'] == null ? undefined : json['volume24h'],
42
43
  'volume': json['volume'] == null ? undefined : json['volume'],
@@ -64,6 +65,7 @@ function UnifiedMarketToJSONTyped(value, ignoreDiscriminator = false) {
64
65
  'title': value['title'],
65
66
  'description': value['description'],
66
67
  'outcomes': value['outcomes'] == null ? undefined : (value['outcomes'].map(MarketOutcome_1.MarketOutcomeToJSON)),
68
+ 'eventId': value['eventId'],
67
69
  'resolutionDate': value['resolutionDate'] == null ? value['resolutionDate'] : value['resolutionDate'].toISOString(),
68
70
  'volume24h': value['volume24h'],
69
71
  'volume': value['volume'],
@@ -7,6 +7,7 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `query` | string
10
+ `sort` | string
10
11
  `limit` | number
11
12
  `offset` | number
12
13
  `status` | string
@@ -22,6 +23,7 @@ import type { EventFetchParams } from 'pmxtjs'
22
23
  // TODO: Update the object below with actual values
23
24
  const example = {
24
25
  "query": null,
26
+ "sort": null,
25
27
  "limit": null,
26
28
  "offset": null,
27
29
  "status": null,
@@ -10,6 +10,7 @@ Name | Type
10
10
  `title` | string
11
11
  `description` | string
12
12
  `outcomes` | [Array&lt;MarketOutcome&gt;](MarketOutcome.md)
13
+ `eventId` | string
13
14
  `resolutionDate` | Date
14
15
  `volume24h` | number
15
16
  `volume` | number
@@ -35,6 +36,7 @@ const example = {
35
36
  "title": null,
36
37
  "description": null,
37
38
  "outcomes": null,
39
+ "eventId": null,
38
40
  "resolutionDate": null,
39
41
  "volume24h": null,
40
42
  "volume": null,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmxtjs",
3
- "version": "2.15.0",
3
+ "version": "2.16.1",
4
4
  "description": "OpenAPI client for pmxtjs",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -25,6 +25,12 @@ export interface EventFetchParams {
25
25
  * @memberof EventFetchParams
26
26
  */
27
27
  query?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof EventFetchParams
32
+ */
33
+ sort?: EventFetchParamsSortEnum;
28
34
  /**
29
35
  *
30
36
  * @type {number}
@@ -64,6 +70,16 @@ export interface EventFetchParams {
64
70
  }
65
71
 
66
72
 
73
+ /**
74
+ * @export
75
+ */
76
+ export const EventFetchParamsSortEnum = {
77
+ Volume: 'volume',
78
+ Liquidity: 'liquidity',
79
+ Newest: 'newest'
80
+ } as const;
81
+ export type EventFetchParamsSortEnum = typeof EventFetchParamsSortEnum[keyof typeof EventFetchParamsSortEnum];
82
+
67
83
  /**
68
84
  * @export
69
85
  */
@@ -103,6 +119,7 @@ export function EventFetchParamsFromJSONTyped(json: any, ignoreDiscriminator: bo
103
119
  return {
104
120
 
105
121
  'query': json['query'] == null ? undefined : json['query'],
122
+ 'sort': json['sort'] == null ? undefined : json['sort'],
106
123
  'limit': json['limit'] == null ? undefined : json['limit'],
107
124
  'offset': json['offset'] == null ? undefined : json['offset'],
108
125
  'status': json['status'] == null ? undefined : json['status'],
@@ -124,6 +141,7 @@ export function EventFetchParamsToJSONTyped(value?: EventFetchParams | null, ign
124
141
  return {
125
142
 
126
143
  'query': value['query'],
144
+ 'sort': value['sort'],
127
145
  'limit': value['limit'],
128
146
  'offset': value['offset'],
129
147
  'status': value['status'],
@@ -51,6 +51,12 @@ export interface UnifiedMarket {
51
51
  * @memberof UnifiedMarket
52
52
  */
53
53
  outcomes?: Array<MarketOutcome>;
54
+ /**
55
+ * Link to parent event
56
+ * @type {string}
57
+ * @memberof UnifiedMarket
58
+ */
59
+ eventId?: string;
54
60
  /**
55
61
  *
56
62
  * @type {Date}
@@ -152,6 +158,7 @@ export function UnifiedMarketFromJSONTyped(json: any, ignoreDiscriminator: boole
152
158
  'title': json['title'] == null ? undefined : json['title'],
153
159
  'description': json['description'] == null ? undefined : json['description'],
154
160
  'outcomes': json['outcomes'] == null ? undefined : ((json['outcomes'] as Array<any>).map(MarketOutcomeFromJSON)),
161
+ 'eventId': json['eventId'] == null ? undefined : json['eventId'],
155
162
  'resolutionDate': json['resolutionDate'] == null ? undefined : (new Date(json['resolutionDate'])),
156
163
  'volume24h': json['volume24h'] == null ? undefined : json['volume24h'],
157
164
  'volume': json['volume'] == null ? undefined : json['volume'],
@@ -183,6 +190,7 @@ export function UnifiedMarketToJSONTyped(value?: UnifiedMarket | null, ignoreDis
183
190
  'title': value['title'],
184
191
  'description': value['description'],
185
192
  'outcomes': value['outcomes'] == null ? undefined : ((value['outcomes'] as Array<any>).map(MarketOutcomeToJSON)),
193
+ 'eventId': value['eventId'],
186
194
  'resolutionDate': value['resolutionDate'] == null ? value['resolutionDate'] : value['resolutionDate'].toISOString(),
187
195
  'volume24h': value['volume24h'],
188
196
  'volume': value['volume'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmxtjs",
3
- "version": "2.15.0",
3
+ "version": "2.16.1",
4
4
  "description": "Unified prediction market data API - The ccxt for prediction markets",
5
5
  "author": "PMXT Contributors",
6
6
  "repository": {
@@ -43,7 +43,7 @@
43
43
  "unified"
44
44
  ],
45
45
  "dependencies": {
46
- "pmxt-core": "2.15.0"
46
+ "pmxt-core": "2.16.1"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/jest": "^30.0.0",