@stacksjs/search-engine 0.67.0 → 0.68.1
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 +22 -22
- package/dist/types.d.ts +37 -91
- package/package.json +1 -1
- 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/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
package/dist/drivers/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as meilisearch from "./meilisearch";
|
|
File without changes
|
|
File without changes
|