@depict-ai/ui 0.0.64 → 0.0.65
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 +7 -7
- package/dist/main.js +229 -460
- package/dist/module.js +231 -462
- package/dist/typescript_schema/BaseSearchRequest.d.ts +197 -0
- package/dist/typescript_schema/ProductListingQueriesRequest.d.ts +14 -0
- package/dist/typescript_schema/ProductListingQueriesResponse.d.ts +10 -0
- package/dist/typescript_schema/ProductListingRequest.d.ts +221 -0
- package/dist/typescript_schema/ProductListingResponse.d.ts +232 -0
- package/dist/typescript_schema/RecommendResponse.d.ts +15 -0
- package/dist/typescript_schema/SearchRequest.d.ts +213 -0
- package/dist/typescript_schema/SearchResponse.d.ts +192 -0
- package/dist/typescript_schema/SearchSuggestionsRequest.d.ts +18 -0
- package/dist/typescript_schema/SearchSuggestionsResponse.d.ts +182 -0
- package/dist/typescript_schema/TrackV2Request.d.ts +115 -0
- package/package.json +4 -5
- package/dist/moduule.js +0 -7872
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestions
|
|
|
9
9
|
import { ProductListingRequest } from "@depict-ai/types/api/ProductListingRequest";
|
|
10
10
|
import { ProductListingResponse, BaseCategoryDisplay } from "@depict-ai/types/api/ProductListingResponse";
|
|
11
11
|
import { JSX as _JSX1 } from "solid-js/types/jsx";
|
|
12
|
-
export const version = "0.0.
|
|
12
|
+
export const version = "0.0.65";
|
|
13
13
|
type ExclusiveId = {
|
|
14
14
|
categoryId: string;
|
|
15
15
|
productId?: undefined;
|
|
@@ -156,14 +156,11 @@ export type InstantCard<T extends Display> = (display: T, context: {
|
|
|
156
156
|
merchant: string;
|
|
157
157
|
market: string;
|
|
158
158
|
}) => JSX.Element;
|
|
159
|
-
export type WithRequired<T, K extends keyof T> = T & {
|
|
160
|
-
[P in K]-?: T[P];
|
|
161
|
-
};
|
|
162
159
|
export class DepictAPI {
|
|
163
160
|
#private;
|
|
164
161
|
constructor(get_metadata?: () => Promise<{
|
|
165
162
|
[k: string]: string;
|
|
166
|
-
}>);
|
|
163
|
+
} | undefined>);
|
|
167
164
|
suggest(input_req: SearchSuggestionsRequest): Promise<SearchSuggestionsResponse & {
|
|
168
165
|
failed?: true;
|
|
169
166
|
}>;
|
|
@@ -181,6 +178,9 @@ export class DepictAPI {
|
|
|
181
178
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
182
179
|
*/
|
|
183
180
|
export function media_query_to_accessor(media_query: string): import("solid-js").Accessor<boolean>;
|
|
181
|
+
export type WithRequired<T, K extends keyof T> = T & {
|
|
182
|
+
[P in K]-?: T[P];
|
|
183
|
+
};
|
|
184
184
|
type SDKGridSpacing = string | {
|
|
185
185
|
horizontal: string;
|
|
186
186
|
vertical: string;
|
|
@@ -375,8 +375,8 @@ export type BaseSearchProviderConfig = {
|
|
|
375
375
|
searchPagePath: string;
|
|
376
376
|
/**
|
|
377
377
|
* The name of the url parameter that will be used for the search query.
|
|
378
|
-
* @example "q", "search_query"
|
|
379
|
-
* @default "
|
|
378
|
+
* @example "q", "search_query"
|
|
379
|
+
* @default "search_query"
|
|
380
380
|
*/
|
|
381
381
|
urlParamName?: string;
|
|
382
382
|
/**
|