@agg-build/sdk 2.2.1 → 2.3.0
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/index.d.mts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3336,6 +3336,13 @@ interface SearchParams {
|
|
|
3336
3336
|
q: string;
|
|
3337
3337
|
type: SearchType;
|
|
3338
3338
|
categoryIds?: string[];
|
|
3339
|
+
/**
|
|
3340
|
+
* Filter results by status (e.g. `["open"]` for tradeable-only). Without
|
|
3341
|
+
* it the server returns all statuses; recurring series ("BTC Up or Down -
|
|
3342
|
+
* 5 Min") can then fill a page with resolved history, which a UI that
|
|
3343
|
+
* hides non-open rows renders as an empty result.
|
|
3344
|
+
*/
|
|
3345
|
+
status?: MarketStatus[];
|
|
3339
3346
|
limit?: number;
|
|
3340
3347
|
cursor?: string;
|
|
3341
3348
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -3336,6 +3336,13 @@ interface SearchParams {
|
|
|
3336
3336
|
q: string;
|
|
3337
3337
|
type: SearchType;
|
|
3338
3338
|
categoryIds?: string[];
|
|
3339
|
+
/**
|
|
3340
|
+
* Filter results by status (e.g. `["open"]` for tradeable-only). Without
|
|
3341
|
+
* it the server returns all statuses; recurring series ("BTC Up or Down -
|
|
3342
|
+
* 5 Min") can then fill a page with resolved history, which a UI that
|
|
3343
|
+
* hides non-open rows renders as an empty result.
|
|
3344
|
+
*/
|
|
3345
|
+
status?: MarketStatus[];
|
|
3339
3346
|
limit?: number;
|
|
3340
3347
|
cursor?: string;
|
|
3341
3348
|
/**
|
package/dist/index.js
CHANGED
|
@@ -2725,6 +2725,7 @@ Issued At: ${issuedAt}`;
|
|
|
2725
2725
|
type: params.type
|
|
2726
2726
|
};
|
|
2727
2727
|
if (params.categoryIds && params.categoryIds.length > 0) query.categoryIds = params.categoryIds;
|
|
2728
|
+
if (params.status && params.status.length > 0) query.status = params.status;
|
|
2728
2729
|
if (params.limit != null) query.limit = String(params.limit);
|
|
2729
2730
|
if (params.cursor) query.cursor = params.cursor;
|
|
2730
2731
|
if (params.deep) query.deepSearch = "true";
|
package/dist/index.mjs
CHANGED
|
@@ -2612,6 +2612,7 @@ Issued At: ${issuedAt}`;
|
|
|
2612
2612
|
type: params.type
|
|
2613
2613
|
};
|
|
2614
2614
|
if (params.categoryIds && params.categoryIds.length > 0) query.categoryIds = params.categoryIds;
|
|
2615
|
+
if (params.status && params.status.length > 0) query.status = params.status;
|
|
2615
2616
|
if (params.limit != null) query.limit = String(params.limit);
|
|
2616
2617
|
if (params.cursor) query.cursor = params.cursor;
|
|
2617
2618
|
if (params.deep) query.deepSearch = "true";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agg-build/sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "Vanilla TypeScript client for the AGG prediction market aggregator (auth, markets, orderbooks, charts, trading, managed execution, WebSockets). Works in browsers, Node.js, and React Native.",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "MIT",
|