@findlane/server 0.21.0 → 0.22.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.cts CHANGED
@@ -745,6 +745,15 @@ export type ServerEvent = {
745
745
  | {
746
746
  type: "cancel";
747
747
  orderID: string;
748
+ }
749
+ /** A rule's banner was clicked: its rule, as search responses give it with the banner, the search's
750
+ * query, and its place. */
751
+ | {
752
+ type: "bannerClick";
753
+ rule: string;
754
+ query?: string;
755
+ position?: number;
756
+ timestamp?: number;
748
757
  };
749
758
  /** A past order for importOrders; `timestamp` is when it was placed (ms, a Date, or an ISO string). */
750
759
  export type Order = {
package/dist/index.d.ts CHANGED
@@ -745,6 +745,15 @@ export type ServerEvent = {
745
745
  | {
746
746
  type: "cancel";
747
747
  orderID: string;
748
+ }
749
+ /** A rule's banner was clicked: its rule, as search responses give it with the banner, the search's
750
+ * query, and its place. */
751
+ | {
752
+ type: "bannerClick";
753
+ rule: string;
754
+ query?: string;
755
+ position?: number;
756
+ timestamp?: number;
748
757
  };
749
758
  /** A past order for importOrders; `timestamp` is when it was placed (ms, a Date, or an ISO string). */
750
759
  export type Order = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@findlane/server",
3
- "version": "0.21.0",
3
+ "version": "0.22.0",
4
4
  "description": "Findlane server SDK: upload catalogs, manage index settings, and search with a secret workspace API key.",
5
5
  "keywords": ["findlane", "search", "full-text search", "typo tolerance", "ecommerce search", "search api", "sdk"],
6
6
  "license": "MIT",