@totalis/hip4-client 0.88.1 → 0.89.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/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
3
3
  `@totalis/hip4-client` follows [semantic versioning](https://semver.org).
4
4
  The contract version the generated types come from is `sdkVersion` in `./version`.
5
5
 
6
+ ## 0.89.0
7
+
8
+ ### Added
9
+
10
+ - `GET /v1/discovery` takes `combo=true`: only cards with a market whose
11
+ `combo.state` was `OPEN` at publication, with facets counted over those
12
+ cards, so a Combo picker can draw its list and its category and league
13
+ navigation from one read. It combines with `category`, `subcategory`,
14
+ `sort`, `limit`, `cursor` and `date_filter=all`; anything else, `live`
15
+ included, is 400 `INVALID_QUERY`. The response echoes `filters.combo: true`
16
+ only on such a page. Additive.
17
+
6
18
  ## 0.88.1
7
19
 
8
20
  ### Changed
@@ -64,6 +64,11 @@ export type components = {
64
64
  * @constant
65
65
  */
66
66
  readonly live?: true;
67
+ /**
68
+ * @description Only cards with at least one market whose combo.state was OPEN at publication, in the default or closing_soon order, with facets counted over the same cards. Send it only as true, beside at most category, subcategory, sort, limit and cursor (date_filter only as all); any other combination, live included, returns 400 INVALID_QUERY.
69
+ * @constant
70
+ */
71
+ readonly combo?: true;
67
72
  } & ({
68
73
  readonly category: components["schemas"]["CategorySlug"];
69
74
  } | {
@@ -75,6 +80,13 @@ export type components = {
75
80
  readonly frequency?: never;
76
81
  /** @constant */
77
82
  readonly date_filter?: "all";
83
+ }) & ({
84
+ readonly combo?: never;
85
+ } | {
86
+ readonly live?: never;
87
+ readonly frequency?: never;
88
+ /** @constant */
89
+ readonly date_filter?: "all";
78
90
  });
79
91
  readonly SearchQuery: {
80
92
  readonly category?: components["schemas"]["CategorySlug"];
@@ -215,6 +227,7 @@ export type components = {
215
227
  readonly q?: components["schemas"]["NormalizedSearchText"];
216
228
  /** @constant */
217
229
  readonly live?: false;
230
+ readonly combo?: never;
218
231
  };
219
232
  readonly publication?: {
220
233
  readonly search_index_version?: components["schemas"]["PositiveInt64String"];
@@ -575,6 +588,11 @@ export type components = {
575
588
  readonly q: components["schemas"]["NormalizedSearchText"] | null;
576
589
  /** @description Only cards in play at publication: published_at inside [date_at, estimated_live_until). */
577
590
  readonly live: boolean;
591
+ /**
592
+ * @description Present, as true, only on a combo=true page: only cards with a market Combos were open to at publication.
593
+ * @constant
594
+ */
595
+ readonly combo?: true;
578
596
  } & ({
579
597
  readonly category: components["schemas"]["CategorySlug"];
580
598
  } | {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@totalis/hip4-client",
3
- "version": "0.88.1",
3
+ "version": "0.89.0",
4
4
  "description": "Totalis HIP-4 SDK: typed HTTP clients, signer-agnostic typed data, a retrying request layer, pagination, a realtime stream and taker/maker flows",
5
5
  "type": "module",
6
6
  "files": [