@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/helpers.d.ts +4 -5
- package/dist/index.d.ts +7 -12
- package/dist/index.js +30 -33
- package/dist/types.d.ts +37 -91
- package/package.json +4 -6
- package/dist/drivers/index.d.ts +0 -1
- package/dist/drivers/meilisearch.d.ts +0 -0
- package/dist/drivers/opensearch.d.ts +0 -0
- package/dist/index.js.map +0 -36
- package/src/drivers/index.ts +0 -1
- package/src/drivers/meilisearch.ts +0 -124
- package/src/drivers/opensearch.ts +0 -59
- package/src/helpers.ts +0 -27
- package/src/index.ts +0 -69
- package/src/types.ts +0 -115
package/dist/types.d.ts
CHANGED
|
@@ -1,91 +1,37 @@
|
|
|
1
|
-
import type { Hits, SearchResponse } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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.
|
|
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"
|
|
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.
|
|
56
|
-
"@stacksjs/development": "0.
|
|
53
|
+
"@stacksjs/config": "0.67.0",
|
|
54
|
+
"@stacksjs/development": "0.67.0"
|
|
57
55
|
}
|
|
58
56
|
}
|
package/dist/drivers/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as meilisearch from "./meilisearch";
|
|
File without changes
|
|
File without changes
|