@gethydra/sdk 0.1.15 → 0.1.16
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.ts +21 -0
- package/dist/index.js +3 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -12105,6 +12105,24 @@ interface operations {
|
|
|
12105
12105
|
};
|
|
12106
12106
|
};
|
|
12107
12107
|
};
|
|
12108
|
+
bootstrapSearchIndex: {
|
|
12109
|
+
parameters: {
|
|
12110
|
+
query?: never;
|
|
12111
|
+
header?: never;
|
|
12112
|
+
path?: never;
|
|
12113
|
+
cookie?: never;
|
|
12114
|
+
};
|
|
12115
|
+
requestBody?: never;
|
|
12116
|
+
responses: {
|
|
12117
|
+
/** @description Bootstrap complete */
|
|
12118
|
+
200: {
|
|
12119
|
+
headers: {
|
|
12120
|
+
[name: string]: unknown;
|
|
12121
|
+
};
|
|
12122
|
+
content?: never;
|
|
12123
|
+
};
|
|
12124
|
+
};
|
|
12125
|
+
};
|
|
12108
12126
|
listInventory: {
|
|
12109
12127
|
parameters: {
|
|
12110
12128
|
query?: {
|
|
@@ -18766,6 +18784,9 @@ declare class SearchResource {
|
|
|
18766
18784
|
constructor(client: Hydra);
|
|
18767
18785
|
search(params: SearchParams): Promise<SearchResult>;
|
|
18768
18786
|
suggest(params: SuggestParams): Promise<SearchSuggestions>;
|
|
18787
|
+
bootstrap(): Promise<{
|
|
18788
|
+
indexed: number;
|
|
18789
|
+
}>;
|
|
18769
18790
|
}
|
|
18770
18791
|
|
|
18771
18792
|
type Channel = components['schemas']['Channel'];
|
package/dist/index.js
CHANGED
|
@@ -1415,6 +1415,9 @@ var SearchResource = class {
|
|
|
1415
1415
|
async suggest(params) {
|
|
1416
1416
|
return this.client.request("GET", "/v1/search/suggest", { params });
|
|
1417
1417
|
}
|
|
1418
|
+
async bootstrap() {
|
|
1419
|
+
return this.client.request("POST", "/v1/search/bootstrap");
|
|
1420
|
+
}
|
|
1418
1421
|
};
|
|
1419
1422
|
|
|
1420
1423
|
// src/resources/channels.ts
|