@wix/search 1.0.40 → 1.0.41
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/search",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.41",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"fqdn": ""
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
|
-
"falconPackageHash": "
|
|
47
|
+
"falconPackageHash": "b498e91bce583d0721228cf057213cccf54c898da4c3b53a53028527"
|
|
48
48
|
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
2
|
-
interface HttpClient {
|
|
3
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
1
|
+
type RESTFunctionDescriptor$1<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$1) => T;
|
|
2
|
+
interface HttpClient$1 {
|
|
3
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
4
4
|
fetchWithAuth: typeof fetch;
|
|
5
5
|
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
6
6
|
}
|
|
7
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
8
|
-
type HttpResponse<T = any> = {
|
|
7
|
+
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
8
|
+
type HttpResponse$1<T = any> = {
|
|
9
9
|
data: T;
|
|
10
10
|
status: number;
|
|
11
11
|
statusText: string;
|
|
12
12
|
headers: any;
|
|
13
13
|
request?: any;
|
|
14
14
|
};
|
|
15
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
15
|
+
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
16
16
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
17
17
|
url: string;
|
|
18
18
|
data?: Data;
|
|
19
19
|
params?: URLSearchParams;
|
|
20
|
-
} & APIMetadata;
|
|
21
|
-
type APIMetadata = {
|
|
20
|
+
} & APIMetadata$1;
|
|
21
|
+
type APIMetadata$1 = {
|
|
22
22
|
methodFqn?: string;
|
|
23
23
|
entityFqdn?: string;
|
|
24
24
|
packageName?: string;
|
|
25
25
|
};
|
|
26
|
-
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
26
|
+
type BuildRESTFunction$1<T extends RESTFunctionDescriptor$1> = T extends RESTFunctionDescriptor$1<infer U> ? U : never;
|
|
27
27
|
|
|
28
28
|
declare global {
|
|
29
29
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -332,7 +332,7 @@ interface SearchOptions$1 {
|
|
|
332
332
|
language?: string | null;
|
|
333
333
|
}
|
|
334
334
|
|
|
335
|
-
declare function search$3(httpClient: HttpClient): SearchSignature$1;
|
|
335
|
+
declare function search$3(httpClient: HttpClient$1): SearchSignature$1;
|
|
336
336
|
interface SearchSignature$1 {
|
|
337
337
|
/**
|
|
338
338
|
* Retrieves a list of site documents that match the provided search query and optionally performs aggregations on the data queried.
|
|
@@ -346,7 +346,7 @@ interface SearchSignature$1 {
|
|
|
346
346
|
(search: Search, documentType: DocumentType, options?: SearchOptions$1 | undefined): Promise<SearchResponse$1 & SearchResponseNonNullableFields$1>;
|
|
347
347
|
}
|
|
348
348
|
|
|
349
|
-
declare const search$2: BuildRESTFunction<typeof search$3> & typeof search$3;
|
|
349
|
+
declare const search$2: BuildRESTFunction$1<typeof search$3> & typeof search$3;
|
|
350
350
|
|
|
351
351
|
type context$1_AggregationData = AggregationData;
|
|
352
352
|
type context$1_AggregationKindOneOf = AggregationKindOneOf;
|
|
@@ -387,6 +387,40 @@ declare namespace context$1 {
|
|
|
387
387
|
export { type Aggregation$1 as Aggregation, type context$1_AggregationData as AggregationData, type context$1_AggregationKindOneOf as AggregationKindOneOf, type context$1_AggregationResults as AggregationResults, type context$1_AggregationResultsResultOneOf as AggregationResultsResultOneOf, type context$1_AggregationResultsScalarResult as AggregationResultsScalarResult, context$1_AggregationType as AggregationType, context$1_DocumentType as DocumentType, type context$1_NestedAggregation as NestedAggregation, type context$1_NestedAggregationItem as NestedAggregationItem, type context$1_NestedAggregationItemKindOneOf as NestedAggregationItemKindOneOf, context$1_NestedAggregationType as NestedAggregationType, type context$1_NestedResultValue as NestedResultValue, type context$1_NestedResultValueResultOneOf as NestedResultValueResultOneOf, type context$1_NestedResults as NestedResults, type context$1_Paging as Paging, type context$1_PagingMetadata as PagingMetadata, type context$1_Results as Results, type context$1_ScalarAggregation as ScalarAggregation, type context$1_ScalarResult as ScalarResult, context$1_ScalarType as ScalarType, type context$1_Search as Search, type context$1_SearchDetails as SearchDetails, type SearchOptions$1 as SearchOptions, type context$1_SearchPagingMethodOneOf as SearchPagingMethodOneOf, type SearchRequest$1 as SearchRequest, type SearchResponse$1 as SearchResponse, type SearchResponseNonNullableFields$1 as SearchResponseNonNullableFields, type context$1_SearchResponsePagingOneOf as SearchResponsePagingOneOf, type SiteDocument$1 as SiteDocument, context$1_SortOrder as SortOrder, type context$1_Sorting as Sorting, type context$1_ValueAggregation as ValueAggregation, type context$1_ValueAggregationResult as ValueAggregationResult, type context$1_ValueResult as ValueResult, type context$1_ValueResults as ValueResults, search$2 as search };
|
|
388
388
|
}
|
|
389
389
|
|
|
390
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
391
|
+
interface HttpClient {
|
|
392
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
393
|
+
fetchWithAuth: typeof fetch;
|
|
394
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
395
|
+
}
|
|
396
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
397
|
+
type HttpResponse<T = any> = {
|
|
398
|
+
data: T;
|
|
399
|
+
status: number;
|
|
400
|
+
statusText: string;
|
|
401
|
+
headers: any;
|
|
402
|
+
request?: any;
|
|
403
|
+
};
|
|
404
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
405
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
406
|
+
url: string;
|
|
407
|
+
data?: Data;
|
|
408
|
+
params?: URLSearchParams;
|
|
409
|
+
} & APIMetadata;
|
|
410
|
+
type APIMetadata = {
|
|
411
|
+
methodFqn?: string;
|
|
412
|
+
entityFqdn?: string;
|
|
413
|
+
packageName?: string;
|
|
414
|
+
};
|
|
415
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
416
|
+
|
|
417
|
+
declare global {
|
|
418
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
419
|
+
interface SymbolConstructor {
|
|
420
|
+
readonly observable: symbol;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
|
|
390
424
|
/** API is not yet fully migrated to FQDN entity */
|
|
391
425
|
interface SiteDocument {
|
|
392
426
|
/** the document payload */
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
2
|
-
interface HttpClient {
|
|
3
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
1
|
+
type RESTFunctionDescriptor$1<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$1) => T;
|
|
2
|
+
interface HttpClient$1 {
|
|
3
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
4
4
|
fetchWithAuth: typeof fetch;
|
|
5
5
|
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
6
6
|
}
|
|
7
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
8
|
-
type HttpResponse<T = any> = {
|
|
7
|
+
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
8
|
+
type HttpResponse$1<T = any> = {
|
|
9
9
|
data: T;
|
|
10
10
|
status: number;
|
|
11
11
|
statusText: string;
|
|
12
12
|
headers: any;
|
|
13
13
|
request?: any;
|
|
14
14
|
};
|
|
15
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
15
|
+
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
16
16
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
17
17
|
url: string;
|
|
18
18
|
data?: Data;
|
|
19
19
|
params?: URLSearchParams;
|
|
20
|
-
} & APIMetadata;
|
|
21
|
-
type APIMetadata = {
|
|
20
|
+
} & APIMetadata$1;
|
|
21
|
+
type APIMetadata$1 = {
|
|
22
22
|
methodFqn?: string;
|
|
23
23
|
entityFqdn?: string;
|
|
24
24
|
packageName?: string;
|
|
25
25
|
};
|
|
26
|
-
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
26
|
+
type BuildRESTFunction$1<T extends RESTFunctionDescriptor$1> = T extends RESTFunctionDescriptor$1<infer U> ? U : never;
|
|
27
27
|
|
|
28
28
|
declare global {
|
|
29
29
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -332,7 +332,7 @@ interface SearchOptions$1 {
|
|
|
332
332
|
language?: string | null;
|
|
333
333
|
}
|
|
334
334
|
|
|
335
|
-
declare function search$3(httpClient: HttpClient): SearchSignature$1;
|
|
335
|
+
declare function search$3(httpClient: HttpClient$1): SearchSignature$1;
|
|
336
336
|
interface SearchSignature$1 {
|
|
337
337
|
/**
|
|
338
338
|
* Retrieves a list of site documents that match the provided search query and optionally performs aggregations on the data queried.
|
|
@@ -346,7 +346,7 @@ interface SearchSignature$1 {
|
|
|
346
346
|
(search: Search, documentType: DocumentType, options?: SearchOptions$1 | undefined): Promise<SearchResponse$1 & SearchResponseNonNullableFields$1>;
|
|
347
347
|
}
|
|
348
348
|
|
|
349
|
-
declare const search$2: BuildRESTFunction<typeof search$3> & typeof search$3;
|
|
349
|
+
declare const search$2: BuildRESTFunction$1<typeof search$3> & typeof search$3;
|
|
350
350
|
|
|
351
351
|
type index_d$1_AggregationData = AggregationData;
|
|
352
352
|
type index_d$1_AggregationKindOneOf = AggregationKindOneOf;
|
|
@@ -387,6 +387,40 @@ declare namespace index_d$1 {
|
|
|
387
387
|
export { type Aggregation$1 as Aggregation, type index_d$1_AggregationData as AggregationData, type index_d$1_AggregationKindOneOf as AggregationKindOneOf, type index_d$1_AggregationResults as AggregationResults, type index_d$1_AggregationResultsResultOneOf as AggregationResultsResultOneOf, type index_d$1_AggregationResultsScalarResult as AggregationResultsScalarResult, index_d$1_AggregationType as AggregationType, index_d$1_DocumentType as DocumentType, type index_d$1_NestedAggregation as NestedAggregation, type index_d$1_NestedAggregationItem as NestedAggregationItem, type index_d$1_NestedAggregationItemKindOneOf as NestedAggregationItemKindOneOf, index_d$1_NestedAggregationType as NestedAggregationType, type index_d$1_NestedResultValue as NestedResultValue, type index_d$1_NestedResultValueResultOneOf as NestedResultValueResultOneOf, type index_d$1_NestedResults as NestedResults, type index_d$1_Paging as Paging, type index_d$1_PagingMetadata as PagingMetadata, type index_d$1_Results as Results, type index_d$1_ScalarAggregation as ScalarAggregation, type index_d$1_ScalarResult as ScalarResult, index_d$1_ScalarType as ScalarType, type index_d$1_Search as Search, type index_d$1_SearchDetails as SearchDetails, type SearchOptions$1 as SearchOptions, type index_d$1_SearchPagingMethodOneOf as SearchPagingMethodOneOf, type SearchRequest$1 as SearchRequest, type SearchResponse$1 as SearchResponse, type SearchResponseNonNullableFields$1 as SearchResponseNonNullableFields, type index_d$1_SearchResponsePagingOneOf as SearchResponsePagingOneOf, type SiteDocument$1 as SiteDocument, index_d$1_SortOrder as SortOrder, type index_d$1_Sorting as Sorting, type index_d$1_ValueAggregation as ValueAggregation, type index_d$1_ValueAggregationResult as ValueAggregationResult, type index_d$1_ValueResult as ValueResult, type index_d$1_ValueResults as ValueResults, search$2 as search };
|
|
388
388
|
}
|
|
389
389
|
|
|
390
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
391
|
+
interface HttpClient {
|
|
392
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
393
|
+
fetchWithAuth: typeof fetch;
|
|
394
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
395
|
+
}
|
|
396
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
397
|
+
type HttpResponse<T = any> = {
|
|
398
|
+
data: T;
|
|
399
|
+
status: number;
|
|
400
|
+
statusText: string;
|
|
401
|
+
headers: any;
|
|
402
|
+
request?: any;
|
|
403
|
+
};
|
|
404
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
405
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
406
|
+
url: string;
|
|
407
|
+
data?: Data;
|
|
408
|
+
params?: URLSearchParams;
|
|
409
|
+
} & APIMetadata;
|
|
410
|
+
type APIMetadata = {
|
|
411
|
+
methodFqn?: string;
|
|
412
|
+
entityFqdn?: string;
|
|
413
|
+
packageName?: string;
|
|
414
|
+
};
|
|
415
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
416
|
+
|
|
417
|
+
declare global {
|
|
418
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
419
|
+
interface SymbolConstructor {
|
|
420
|
+
readonly observable: symbol;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
|
|
390
424
|
/** API is not yet fully migrated to FQDN entity */
|
|
391
425
|
interface SiteDocument {
|
|
392
426
|
/** the document payload */
|