@stacksjs/search-engine 0.66.0 → 0.68.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/types.d.ts CHANGED
@@ -1,91 +1,37 @@
1
- import type { Hits, SearchResponse } from "meilisearch";
2
- export interface SearchEngineStore {
3
- /**
4
- * The search engine index.
5
- */
6
- index: string;
7
- /**
8
- * The search engine host.
9
- * @default 'http://127.0.0.1:7700'
10
- */
11
- source?: string;
12
- /**
13
- * The search engine password/API key.
14
- */
15
- password?: string;
16
- /**
17
- * The search query.
18
- * @default 20
19
- * @type {string}
20
- * @default: ''
21
- */
22
- query?: string;
23
- /**
24
- * The number of results to return.
25
- * @default 20
26
- * @type {number}
27
- */
28
- perPage?: number;
29
- /**
30
- * The current page number
31
- * @default 1
32
- * @type {number}
33
- */
34
- currentPage?: number;
35
- /**
36
- * The results object returned from the search engine.
37
- */
38
- results?: SearchResponse<Record<string, any>>;
39
- /**
40
- * The hits object returned from the search engine.
41
- */
42
- hits?: Hits<Record<string, any>>;
43
- /**
44
- * The search Filter Name
45
- */
46
- filterName?: string;
47
- /**
48
- * The search filters
49
- */
50
- filters?: object;
51
- /**
52
- * The next page value
53
- */
54
- goToNextPage?: number;
55
- /**
56
- * Set to go to a specific page
57
- */
58
- goToPage?: number;
59
- /**
60
- * Set to go to the previous page
61
- */
62
- goToPrevPage?: number;
63
- /**
64
- * The last page number value
65
- */
66
- lastPageNumber?: number;
67
- /**
68
- * The searched term to use for the search
69
- */
70
- search?: string;
71
- /**
72
- * The search params filters to use for the search
73
- */
74
- searchFilters?: object;
75
- /**
76
- * The search params to use for the search
77
- */
78
- searchParams?: object;
79
- /**
80
- * Total hits value to use for the search
81
- */
82
- setTotalHits?: number;
83
- /**
84
- * The sort value to use for the search
85
- */
86
- sort?: string;
87
- /**
88
- * The sorts value to use for the search
89
- */
90
- sorts?: object;
91
- }
1
+ import type { Hits, SearchResponse } from 'meilisearch';
2
+
3
+ export declare interface SearchEngineStore {
4
+ index: string
5
+ source?: string
6
+ password?: string
7
+ query?: string
8
+ perPage?: number
9
+ currentPage?: number
10
+ results?: SearchResponse<Record<string, any>>
11
+ hits?: Hits<Record<string, any>>
12
+
13
+ filterName?: string
14
+
15
+ filters?: object
16
+
17
+ goToNextPage?: number
18
+
19
+ goToPage?: number
20
+
21
+ goToPrevPage?: number
22
+
23
+ lastPageNumber?: number
24
+
25
+ search?: string
26
+
27
+ searchFilters?: object
28
+
29
+ searchParams?: object
30
+
31
+ setTotalHits?: number
32
+
33
+ sort?: string
34
+
35
+ sorts?: object
36
+
37
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/search-engine",
3
3
  "type": "module",
4
- "version": "0.66.0",
4
+ "version": "0.68.0",
5
5
  "description": "The Stacks search engine integrations.",
6
6
  "author": "Chris Breuer",
7
7
  "contributors": ["Chris Breuer <chris@stacksjs.org>"],
@@ -31,17 +31,15 @@
31
31
  ],
32
32
  "exports": {
33
33
  ".": {
34
- "bun": "./src/index.ts",
35
34
  "import": "./dist/index.js"
36
35
  },
37
36
  "./*": {
38
- "bun": "./src/*",
39
37
  "import": "./dist/*"
40
38
  }
41
39
  },
42
40
  "module": "dist/index.js",
43
41
  "types": "dist/index.d.ts",
44
- "files": ["README.md", "dist", "src"],
42
+ "files": ["README.md", "dist"],
45
43
  "scripts": {
46
44
  "build": "bun build.ts",
47
45
  "typecheck": "bun tsc --noEmit",
@@ -52,7 +50,7 @@
52
50
  "meilisearch": "^0.44.1"
53
51
  },
54
52
  "devDependencies": {
55
- "@stacksjs/config": "0.65.1",
56
- "@stacksjs/development": "0.65.1"
53
+ "@stacksjs/config": "0.67.0",
54
+ "@stacksjs/development": "0.67.0"
57
55
  }
58
56
  }
@@ -1 +0,0 @@
1
- export * as meilisearch from "./meilisearch";
File without changes
File without changes