pmxtjs 2.17.3 → 2.17.6
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/dist/esm/pmxt/client.js +1 -4
- package/dist/esm/pmxt/models.d.ts +2 -2
- package/dist/pmxt/client.js +1 -4
- package/dist/pmxt/models.d.ts +2 -2
- package/generated/package.json +1 -1
- package/package.json +2 -2
- package/pmxt/client.ts +1 -5
- package/pmxt/models.ts +2 -2
package/dist/esm/pmxt/client.js
CHANGED
|
@@ -39,6 +39,7 @@ function convertMarket(raw) {
|
|
|
39
39
|
image: raw.image,
|
|
40
40
|
category: raw.category,
|
|
41
41
|
tags: raw.tags,
|
|
42
|
+
eventId: raw.eventId,
|
|
42
43
|
yes: convertOutcome(raw.yes),
|
|
43
44
|
no: convertOutcome(raw.no),
|
|
44
45
|
up: convertOutcome(raw.up),
|
|
@@ -140,10 +141,6 @@ function convertEvent(raw) {
|
|
|
140
141
|
category: raw.category,
|
|
141
142
|
tags: raw.tags,
|
|
142
143
|
};
|
|
143
|
-
// Add bi-directional navigation
|
|
144
|
-
for (const market of markets) {
|
|
145
|
-
market.event = event;
|
|
146
|
-
}
|
|
147
144
|
return event;
|
|
148
145
|
}
|
|
149
146
|
/**
|
|
@@ -54,8 +54,8 @@ export interface UnifiedMarket {
|
|
|
54
54
|
category?: string;
|
|
55
55
|
/** Market tags */
|
|
56
56
|
tags?: string[];
|
|
57
|
-
/**
|
|
58
|
-
|
|
57
|
+
/** ID of the parent event this market belongs to */
|
|
58
|
+
eventId?: string;
|
|
59
59
|
/** Convenience access to the Yes outcome for binary markets. */
|
|
60
60
|
yes?: MarketOutcome;
|
|
61
61
|
/** Convenience access to the No outcome for binary markets. */
|
package/dist/pmxt/client.js
CHANGED
|
@@ -42,6 +42,7 @@ function convertMarket(raw) {
|
|
|
42
42
|
image: raw.image,
|
|
43
43
|
category: raw.category,
|
|
44
44
|
tags: raw.tags,
|
|
45
|
+
eventId: raw.eventId,
|
|
45
46
|
yes: convertOutcome(raw.yes),
|
|
46
47
|
no: convertOutcome(raw.no),
|
|
47
48
|
up: convertOutcome(raw.up),
|
|
@@ -143,10 +144,6 @@ function convertEvent(raw) {
|
|
|
143
144
|
category: raw.category,
|
|
144
145
|
tags: raw.tags,
|
|
145
146
|
};
|
|
146
|
-
// Add bi-directional navigation
|
|
147
|
-
for (const market of markets) {
|
|
148
|
-
market.event = event;
|
|
149
|
-
}
|
|
150
147
|
return event;
|
|
151
148
|
}
|
|
152
149
|
/**
|
package/dist/pmxt/models.d.ts
CHANGED
|
@@ -54,8 +54,8 @@ export interface UnifiedMarket {
|
|
|
54
54
|
category?: string;
|
|
55
55
|
/** Market tags */
|
|
56
56
|
tags?: string[];
|
|
57
|
-
/**
|
|
58
|
-
|
|
57
|
+
/** ID of the parent event this market belongs to */
|
|
58
|
+
eventId?: string;
|
|
59
59
|
/** Convenience access to the Yes outcome for binary markets. */
|
|
60
60
|
yes?: MarketOutcome;
|
|
61
61
|
/** Convenience access to the No outcome for binary markets. */
|
package/generated/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmxtjs",
|
|
3
|
-
"version": "2.17.
|
|
3
|
+
"version": "2.17.6",
|
|
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.17.
|
|
46
|
+
"pmxt-core": "2.17.6"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/jest": "^30.0.0",
|
package/pmxt/client.ts
CHANGED
|
@@ -72,6 +72,7 @@ function convertMarket(raw: any): UnifiedMarket {
|
|
|
72
72
|
image: raw.image,
|
|
73
73
|
category: raw.category,
|
|
74
74
|
tags: raw.tags,
|
|
75
|
+
eventId: raw.eventId,
|
|
75
76
|
yes: convertOutcome(raw.yes),
|
|
76
77
|
no: convertOutcome(raw.no),
|
|
77
78
|
up: convertOutcome(raw.up),
|
|
@@ -186,11 +187,6 @@ function convertEvent(raw: any): UnifiedEvent {
|
|
|
186
187
|
tags: raw.tags,
|
|
187
188
|
};
|
|
188
189
|
|
|
189
|
-
// Add bi-directional navigation
|
|
190
|
-
for (const market of markets) {
|
|
191
|
-
market.event = event;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
190
|
return event;
|
|
195
191
|
}
|
|
196
192
|
|
package/pmxt/models.ts
CHANGED
|
@@ -74,8 +74,8 @@ export interface UnifiedMarket {
|
|
|
74
74
|
/** Market tags */
|
|
75
75
|
tags?: string[];
|
|
76
76
|
|
|
77
|
-
/**
|
|
78
|
-
|
|
77
|
+
/** ID of the parent event this market belongs to */
|
|
78
|
+
eventId?: string;
|
|
79
79
|
|
|
80
80
|
/** Convenience access to the Yes outcome for binary markets. */
|
|
81
81
|
yes?: MarketOutcome;
|