@depict-ai/ui 1.0.8 → 1.0.10
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 +46 -26
- package/dist/main.js +102 -15
- package/dist/module.js +102 -18
- package/package.json +48 -10
- package/dist/typescript_schema/BaseSearchRequest.d.ts +0 -197
- package/dist/typescript_schema/ProductListingQueriesRequest.d.ts +0 -14
- package/dist/typescript_schema/ProductListingQueriesResponse.d.ts +0 -10
- package/dist/typescript_schema/ProductListingRequest.d.ts +0 -221
- package/dist/typescript_schema/ProductListingResponse.d.ts +0 -232
- package/dist/typescript_schema/RecommendResponse.d.ts +0 -15
- package/dist/typescript_schema/SearchRequest.d.ts +0 -213
- package/dist/typescript_schema/SearchResponse.d.ts +0 -192
- package/dist/typescript_schema/SearchSuggestionsRequest.d.ts +0 -18
- package/dist/typescript_schema/SearchSuggestionsResponse.d.ts +0 -182
- package/dist/typescript_schema/TrackV2Request.d.ts +0 -115
package/dist/module.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {add_to_version_info as $kyEB6$add_to_version_info, fetch_recs as $kyEB6$fetch_recs, snakeCasifyObject as $kyEB6$snakeCasifyObject, GenericSliderArrowButton as $kyEB6$GenericSliderArrowButton, catchify as $kyEB6$catchify, instant_exec_on_suspect_history_change as $kyEB6$instant_exec_on_suspect_history_change, base_url as $kyEB6$base_url, dlog as $kyEB6$dlog, get_depict_id as $kyEB6$get_depict_id, get_user_id as $kyEB6$get_user_id, get_session_id as $kyEB6$get_session_id, make_url_with_query_params as $kyEB6$make_url_with_query_params, fetch_retry as $kyEB6$fetch_retry, add_version_query_params as $kyEB6$add_version_query_params, sort_obj as $kyEB6$sort_obj,
|
|
2
|
-
import {template as $kyEB6$template, insert as $kyEB6$insert, effect as $kyEB6$effect, setAttribute as $kyEB6$setAttribute, createComponent as $kyEB6$createComponent, use as $kyEB6$use, memo as $kyEB6$memo, addEventListener as $kyEB6$addEventListener, delegateEvents as $kyEB6$delegateEvents, spread as $kyEB6$spread, classList as $kyEB6$classList, style as $kyEB6$style, Dynamic as $kyEB6$Dynamic,
|
|
1
|
+
import {add_to_version_info as $kyEB6$add_to_version_info, fetch_recs as $kyEB6$fetch_recs, snakeCasifyObject as $kyEB6$snakeCasifyObject, GenericSliderArrowButton as $kyEB6$GenericSliderArrowButton, catchify as $kyEB6$catchify, instant_exec_on_suspect_history_change as $kyEB6$instant_exec_on_suspect_history_change, base_url as $kyEB6$base_url, dlog as $kyEB6$dlog, get_depict_id as $kyEB6$get_depict_id, get_user_id as $kyEB6$get_user_id, get_session_id as $kyEB6$get_session_id, make_url_with_query_params as $kyEB6$make_url_with_query_params, fetch_retry as $kyEB6$fetch_retry, add_version_query_params as $kyEB6$add_version_query_params, sort_obj as $kyEB6$sort_obj, report as $kyEB6$report, javascript_media_query as $kyEB6$javascript_media_query, standard_price_format as $kyEB6$standard_price_format, observer as $kyEB6$observer, make_random_classname as $kyEB6$make_random_classname, n_col_styling_with_dist as $kyEB6$n_col_styling_with_dist, CrossIcon as $kyEB6$CrossIcon, useExpandingContainer as $kyEB6$useExpandingContainer, Amazing_Slider as $kyEB6$Amazing_Slider, slider_snap_css as $kyEB6$slider_snap_css, slider_fading_factory as $kyEB6$slider_fading_factory, MinusIcon as $kyEB6$MinusIcon, FilterIcon as $kyEB6$FilterIcon, SortIconAsc as $kyEB6$SortIconAsc, SortIconDesc as $kyEB6$SortIconDesc, PlusIcon as $kyEB6$PlusIcon, hsl_to_rgb as $kyEB6$hsl_to_rgb, relative_luminance_from_rgb as $kyEB6$relative_luminance_from_rgb, TickIcon as $kyEB6$TickIcon, ArrowUp as $kyEB6$ArrowUp, base64_encode_unicode as $kyEB6$base64_encode_unicode, base64_decode_unicode as $kyEB6$base64_decode_unicode, queueMacroTask as $kyEB6$queueMacroTask, is_debug as $kyEB6$is_debug, dwarn as $kyEB6$dwarn, BackIcon as $kyEB6$BackIcon, SearchIcon as $kyEB6$SearchIcon, Layout as $kyEB6$Layout, async_iterable_ipns as $kyEB6$async_iterable_ipns, make_asyncIterable_exiter as $kyEB6$make_asyncIterable_exiter, href_change_ipns as $kyEB6$href_change_ipns, ContainedImage as $kyEB6$ContainedImage, buildThresholdList as $kyEB6$buildThresholdList, deparallelize_no_drop as $kyEB6$deparallelize_no_drop, PreviousSearchIcon as $kyEB6$PreviousSearchIcon, insert_surfaces as $kyEB6$insert_surfaces} from "@depict-ai/utilishared";
|
|
2
|
+
import {template as $kyEB6$template, insert as $kyEB6$insert, effect as $kyEB6$effect, setAttribute as $kyEB6$setAttribute, createComponent as $kyEB6$createComponent, use as $kyEB6$use, memo as $kyEB6$memo, addEventListener as $kyEB6$addEventListener, delegateEvents as $kyEB6$delegateEvents, spread as $kyEB6$spread, classList as $kyEB6$classList, style as $kyEB6$style, Dynamic as $kyEB6$Dynamic, className as $kyEB6$className, mergeProps as $kyEB6$mergeProps} from "solid-js/web";
|
|
3
3
|
import {createSignal as $kyEB6$createSignal, getOwner as $kyEB6$getOwner, createRoot as $kyEB6$createRoot, runWithOwner as $kyEB6$runWithOwner, onCleanup as $kyEB6$onCleanup, createComputed as $kyEB6$createComputed, createRenderEffect as $kyEB6$createRenderEffect, createEffect as $kyEB6$createEffect, untrack as $kyEB6$untrack, batch as $kyEB6$batch, createResource as $kyEB6$createResource, createMemo as $kyEB6$createMemo, Show as $kyEB6$Show, createReaction as $kyEB6$createReaction, Suspense as $kyEB6$Suspense, on as $kyEB6$on, ErrorBoundary as $kyEB6$ErrorBoundary, For as $kyEB6$For, Index as $kyEB6$Index} from "solid-js";
|
|
4
4
|
|
|
5
|
-
/*! Depict.ai search and product listing SDK */ const $ec291e0010116877$export$83d89fbfd8236492 = "1.0.
|
|
5
|
+
/*! Depict.ai search and product listing SDK */ const $ec291e0010116877$export$83d89fbfd8236492 = "1.0.10";
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -3152,6 +3152,52 @@ function $84d6cd10bb7b1589$export$ab34afce88557c0e(props) {
|
|
|
3152
3152
|
|
|
3153
3153
|
|
|
3154
3154
|
|
|
3155
|
+
|
|
3156
|
+
|
|
3157
|
+
|
|
3158
|
+
|
|
3159
|
+
|
|
3160
|
+
const $d20eff0aadc28983$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$kyEB6$template)(`<span></span>`, 2);
|
|
3161
|
+
function $d20eff0aadc28983$export$acb3eaade4b23afd(props) {
|
|
3162
|
+
return (()=>{
|
|
3163
|
+
const _el$ = $d20eff0aadc28983$var$_tmpl$.cloneNode(true);
|
|
3164
|
+
(0, $kyEB6$effect)((_p$)=>{
|
|
3165
|
+
const _v$ = `depict-placeholder ${props.class || ""}`, _v$2 = props.style;
|
|
3166
|
+
_v$ !== _p$._v$ && (0, $kyEB6$className)(_el$, _p$._v$ = _v$);
|
|
3167
|
+
_p$._v$2 = (0, $kyEB6$style)(_el$, _v$2, _p$._v$2);
|
|
3168
|
+
return _p$;
|
|
3169
|
+
}, {
|
|
3170
|
+
_v$: undefined,
|
|
3171
|
+
_v$2: undefined
|
|
3172
|
+
});
|
|
3173
|
+
return _el$;
|
|
3174
|
+
})();
|
|
3175
|
+
}
|
|
3176
|
+
|
|
3177
|
+
|
|
3178
|
+
|
|
3179
|
+
function $d134eae24341b4a1$export$89c6019e4baa40b1(props) {
|
|
3180
|
+
const style = (0, $kyEB6$createMemo)(()=>{
|
|
3181
|
+
const { style: style , height: height , width: width } = props;
|
|
3182
|
+
return {
|
|
3183
|
+
...style || {},
|
|
3184
|
+
height: height ?? "1em",
|
|
3185
|
+
...width && {
|
|
3186
|
+
width: width
|
|
3187
|
+
}
|
|
3188
|
+
};
|
|
3189
|
+
});
|
|
3190
|
+
return (0, $kyEB6$createComponent)((0, $d20eff0aadc28983$export$acb3eaade4b23afd), {
|
|
3191
|
+
get style () {
|
|
3192
|
+
return style();
|
|
3193
|
+
},
|
|
3194
|
+
get ["class"] () {
|
|
3195
|
+
return props.class;
|
|
3196
|
+
}
|
|
3197
|
+
});
|
|
3198
|
+
}
|
|
3199
|
+
|
|
3200
|
+
|
|
3155
3201
|
const $fab07f52c9861732$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$kyEB6$template)(`<div class="filter-collapsible"></div>`, 2), $fab07f52c9861732$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$kyEB6$template)(`<button class="clear-group"><span></span></button>`, 4), $fab07f52c9861732$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$kyEB6$template)(`<div class="view-more-clear"></div>`, 2), $fab07f52c9861732$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$kyEB6$template)(`<div class="filter-collapsible-body"><div class="filter-part"></div></div>`, 4), $fab07f52c9861732$var$_tmpl$5 = /*@__PURE__*/ (0, /*@__PURE__*/$kyEB6$template)(`<details class="filter-collapsible"></details>`, 2), $fab07f52c9861732$var$_tmpl$6 = /*@__PURE__*/ (0, /*@__PURE__*/$kyEB6$template)(`<summary class="filter-group-summary"><div class="summary"><span></span><div class="selected-w-sign"></div></div></summary>`, 8), $fab07f52c9861732$var$_tmpl$7 = /*@__PURE__*/ (0, /*@__PURE__*/$kyEB6$template)(`<div class="ungrouped"></div>`, 2), $fab07f52c9861732$var$_tmpl$8 = /*@__PURE__*/ (0, /*@__PURE__*/$kyEB6$template)(`<button class="clear-all-filters major"></button>`, 2);
|
|
3156
3202
|
function $fab07f52c9861732$export$3f1a388cc0d8fed7(props) {
|
|
3157
3203
|
// Split like this to make placeholder wrapping more visible & this component is exported and used in MobileModal
|
|
@@ -3164,7 +3210,7 @@ function $fab07f52c9861732$export$3f1a388cc0d8fed7(props) {
|
|
|
3164
3210
|
length: 5
|
|
3165
3211
|
}).map(()=>(()=>{
|
|
3166
3212
|
const _el$ = $fab07f52c9861732$var$_tmpl$.cloneNode(true);
|
|
3167
|
-
(0, $kyEB6$insert)(_el$, (0, $kyEB6$createComponent)((0, $
|
|
3213
|
+
(0, $kyEB6$insert)(_el$, (0, $kyEB6$createComponent)((0, $d134eae24341b4a1$export$89c6019e4baa40b1), {
|
|
3168
3214
|
width: "100%",
|
|
3169
3215
|
height: "50px"
|
|
3170
3216
|
}));
|
|
@@ -3394,6 +3440,7 @@ function $fab07f52c9861732$var$ActualFilterBody(props) {
|
|
|
3394
3440
|
|
|
3395
3441
|
|
|
3396
3442
|
|
|
3443
|
+
|
|
3397
3444
|
const $68a258a92b88f02f$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$kyEB6$template)(`<div class="sorting-attributes"></div>`, 2), $68a258a92b88f02f$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$kyEB6$template)(`<div class="sorting-direction"></div>`, 2), $68a258a92b88f02f$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$kyEB6$template)(`<div><div class="input-row"><input type="radio"><span class="custom-indicator"></span></div></div>`, 7), $68a258a92b88f02f$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$kyEB6$template)(`<div><label class="input-row"><input type="radio"><span class="custom-indicator"></span></label></div>`, 7);
|
|
3398
3445
|
function $68a258a92b88f02f$export$1f1775a58da589b5({ available_sortings_: available_sortings_ , current_sorting_: [get_current_sorting, set_current_sorting] , meta_of_currently_selected_sorting_: meta_of_currently_selected_sorting_ }) {
|
|
3399
3446
|
const title_radio_name = (0, $kyEB6$make_random_classname)();
|
|
@@ -3410,7 +3457,7 @@ function $68a258a92b88f02f$export$1f1775a58da589b5({ available_sortings_: availa
|
|
|
3410
3457
|
}).map(()=>(()=>{
|
|
3411
3458
|
const _el$4 = $68a258a92b88f02f$var$_tmpl$3.cloneNode(true), _el$5 = _el$4.firstChild, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling;
|
|
3412
3459
|
_el$6.disabled = true;
|
|
3413
|
-
(0, $kyEB6$insert)(_el$5, (0, $kyEB6$createComponent)((0, $
|
|
3460
|
+
(0, $kyEB6$insert)(_el$5, (0, $kyEB6$createComponent)((0, $d134eae24341b4a1$export$89c6019e4baa40b1), {
|
|
3414
3461
|
height: "1.2em",
|
|
3415
3462
|
width: "100%"
|
|
3416
3463
|
}), null);
|
|
@@ -4491,6 +4538,7 @@ function $4147651646da990a$export$43cd1e747fecd42e(to_url, set_clearing_flag, fr
|
|
|
4491
4538
|
}
|
|
4492
4539
|
|
|
4493
4540
|
|
|
4541
|
+
|
|
4494
4542
|
const $dfa5b6f7c5e421df$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$kyEB6$template)(`<nav class="crumbs"></nav>`, 2), $dfa5b6f7c5e421df$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$kyEB6$template)(`<a class="crumb"></a>`, 2), $dfa5b6f7c5e421df$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$kyEB6$template)(`<span class="separator"></span>`, 2);
|
|
4495
4543
|
function $dfa5b6f7c5e421df$export$5646050d516e06bc({ crumb_data_: get_api_crumb_data , router_: router_ , i18n_: i18n_ }) {
|
|
4496
4544
|
const placeholder_crumb_data = [
|
|
@@ -4516,7 +4564,7 @@ function $dfa5b6f7c5e421df$export$5646050d516e06bc({ crumb_data_: get_api_crumb_
|
|
|
4516
4564
|
return display_accessor();
|
|
4517
4565
|
},
|
|
4518
4566
|
get fallback () {
|
|
4519
|
-
return (0, $kyEB6$createComponent)((0, $
|
|
4567
|
+
return (0, $kyEB6$createComponent)((0, $d134eae24341b4a1$export$89c6019e4baa40b1), {
|
|
4520
4568
|
height: "calc(1em + 1px)",
|
|
4521
4569
|
width: "10ch"
|
|
4522
4570
|
});
|
|
@@ -4569,6 +4617,7 @@ function $dfa5b6f7c5e421df$export$5646050d516e06bc({ crumb_data_: get_api_crumb_
|
|
|
4569
4617
|
|
|
4570
4618
|
|
|
4571
4619
|
|
|
4620
|
+
|
|
4572
4621
|
const $06edf3aec9073663$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$kyEB6$template)(`<nav class="quicklinks"></nav>`, 2), $06edf3aec9073663$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$kyEB6$template)(`<div>QuickLinks failed</div>`, 2), $06edf3aec9073663$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$kyEB6$template)(`<a class="quicklink"></a>`, 2);
|
|
4573
4622
|
function $06edf3aec9073663$export$466cdc317043f6cb({ quicklinks_data_: quicklinks_data_ , router_: router_ , current_query_id_: current_query_id_ , slider_arrow_button_: slider_arrow_button_ , breadcrumb_data_: breadcrumb_data_ , i18n_: i18n_ }) {
|
|
4574
4623
|
let scrolling_logic_ran_for_query_id = false;
|
|
@@ -4721,7 +4770,7 @@ function $06edf3aec9073663$export$466cdc317043f6cb({ quicklinks_data_: quicklink
|
|
|
4721
4770
|
category_query_id_: display_accessor()?.query_id
|
|
4722
4771
|
});
|
|
4723
4772
|
}), true);
|
|
4724
|
-
(0, $kyEB6$insert)(_el$3, ()=>display_accessor()?.title || (0, $kyEB6$createComponent)((0, $
|
|
4773
|
+
(0, $kyEB6$insert)(_el$3, ()=>display_accessor()?.title || (0, $kyEB6$createComponent)((0, $d134eae24341b4a1$export$89c6019e4baa40b1), {
|
|
4725
4774
|
height: "1em",
|
|
4726
4775
|
width: "10ch"
|
|
4727
4776
|
}));
|
|
@@ -4941,14 +4990,14 @@ function $a1c4da51ff91dd01$var$clear_if_opened_new_tab_with_sideways_url_params_
|
|
|
4941
4990
|
|
|
4942
4991
|
|
|
4943
4992
|
|
|
4944
|
-
const $eb9ba2e49ab3dcc2$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$kyEB6$template)(`<div class="statement">No category ID specified, this is probably unintentional. Make sure to
|
|
4993
|
+
const $eb9ba2e49ab3dcc2$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$kyEB6$template)(`<div class="statement">No category ID specified, this is probably unintentional. Make sure to create (and insert) the CategoryPage *after* you have specified a category ID in your Depict Provider.</div>`, 2), $eb9ba2e49ab3dcc2$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$kyEB6$template)(`<div class="buttons"><button class="ok major"></button></div>`, 4);
|
|
4945
4994
|
function $eb9ba2e49ab3dcc2$export$d4fc5c0e68a52116(el, query_id_, i18n_) {
|
|
4946
4995
|
if (!(0, $kyEB6$is_debug)) return; // Just to make sure we don't show this in production
|
|
4947
4996
|
const owner = (0, $kyEB6$getOwner)();
|
|
4948
4997
|
const disconnect = (0, $kyEB6$observer).onexists(el, ({ element: element })=>(0, $kyEB6$runWithOwner)(owner, ()=>(0, $kyEB6$createEffect)(()=>{
|
|
4949
4998
|
if (!document.documentElement.contains(element)) return;
|
|
4950
4999
|
if (!query_id_()) {
|
|
4951
|
-
const warning = "No category ID specified, this is probably unintentional. Make sure to
|
|
5000
|
+
const warning = "No category ID specified, this is probably unintentional. Make sure to create (and insert) the CategoryPage *after* you have specified a category ID in your Depict Provider.";
|
|
4952
5001
|
(0, $kyEB6$dwarn)(warning);
|
|
4953
5002
|
const { close_toast_: close_toast_ } = (0, $bf52d9f9eebd1938$export$5196e4c01fa56fcb)({
|
|
4954
5003
|
class: "warning",
|
|
@@ -4975,6 +5024,7 @@ function $eb9ba2e49ab3dcc2$export$d4fc5c0e68a52116(el, query_id_, i18n_) {
|
|
|
4975
5024
|
]);
|
|
4976
5025
|
|
|
4977
5026
|
|
|
5027
|
+
|
|
4978
5028
|
const $df5d81d0fe61ff21$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$kyEB6$template)(`<div class="product-count"> </div>`, 2), $df5d81d0fe61ff21$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$kyEB6$template)(`<div></div>`, 2), $df5d81d0fe61ff21$var$_tmpl$3 = /*@__PURE__*/ (0, /*@__PURE__*/$kyEB6$template)(`<div class="filter-results-for-one-row"></div>`, 2), $df5d81d0fe61ff21$var$_tmpl$4 = /*@__PURE__*/ (0, /*@__PURE__*/$kyEB6$template)(`<div class="depict plp category"><div class="listing-page"></div></div>`, 4);
|
|
4979
5029
|
function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({ depict_api_: depict_api_ , query_id_: query_id_ , current_sorting_: current_sorting_ , min_products_to_fetch_: min_products_to_fetch_ , category_filters_open_: category_filters_open_ , category_sorting_open_: category_sorting_open_ , expanded_filters_: expanded_filters_ , selected_filters_: selected_filters_ , get_quicklinks_accessor_: get_quicklinks_accessor_ , i18n_: incoming_i18n , get_breadcrumb_accessor_: get_breadcrumb_accessor_ , slider_arrow_button_: slider_arrow_button_ , expanded_hierarchical_filters_: expanded_hierarchical_filters_ , local_filter_cache_: local_filter_cache_ , tenant_: tenant_ , market_: market_ , router_: router_ , show_quicklinks_: show_quicklinks_ , category_title_: category_title_ , show_breadcrumbs_: show_breadcrumbs_ , layout_options_: layout_options_ , scroll_restoration_data_: scroll_restoration_data_ , product_card_template_: product_card_template_ , sideways_filter_clearing_flag_: sideways_filter_clearing_flag_ }) {
|
|
4980
5030
|
let results_for;
|
|
@@ -5051,7 +5101,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({ depict_api_: depict_api_ ,
|
|
|
5051
5101
|
get children () {
|
|
5052
5102
|
return [
|
|
5053
5103
|
" ",
|
|
5054
|
-
(0, $kyEB6$createComponent)((0, $
|
|
5104
|
+
(0, $kyEB6$createComponent)((0, $d134eae24341b4a1$export$89c6019e4baa40b1), {
|
|
5055
5105
|
height: "1em",
|
|
5056
5106
|
width: "3ch"
|
|
5057
5107
|
})
|
|
@@ -5769,7 +5819,7 @@ const $e4615ecd1849548f$export$b91cec6bdc6b32a1 = /*@__PURE__*/ (()=>{
|
|
|
5769
5819
|
const actual_function = ({ category_title_: category_title_ , product_count_: product_count_ })=>{
|
|
5770
5820
|
return (()=>{
|
|
5771
5821
|
const _el$ = $e4615ecd1849548f$var$_tmpl$.cloneNode(true), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild;
|
|
5772
|
-
(0, $kyEB6$insert)(_el$2, ()=>category_title_() || (0, $kyEB6$createComponent)((0, $
|
|
5822
|
+
(0, $kyEB6$insert)(_el$2, ()=>category_title_() || (0, $kyEB6$createComponent)((0, $d134eae24341b4a1$export$89c6019e4baa40b1), {
|
|
5773
5823
|
height: "1em",
|
|
5774
5824
|
width: "10ch"
|
|
5775
5825
|
}));
|
|
@@ -5947,14 +5997,45 @@ async function $5c5f95951393e5d1$var$download_categories(tenant, market) {
|
|
|
5947
5997
|
|
|
5948
5998
|
|
|
5949
5999
|
|
|
6000
|
+
|
|
6001
|
+
|
|
6002
|
+
function $7f60f09116a3fe61$export$3f37af283f8fb843(props) {
|
|
6003
|
+
const style = (0, $kyEB6$createMemo)(()=>{
|
|
6004
|
+
const { style: style , height: height , width: width , aspectRatio: aspectRatio } = props;
|
|
6005
|
+
const is_image = aspectRatio != undefined;
|
|
6006
|
+
const size_data = is_image ? {
|
|
6007
|
+
width: "100%",
|
|
6008
|
+
"padding-bottom": 1 / aspectRatio * 100 + "%"
|
|
6009
|
+
} : {
|
|
6010
|
+
width: width,
|
|
6011
|
+
height: height
|
|
6012
|
+
};
|
|
6013
|
+
return {
|
|
6014
|
+
display: "block",
|
|
6015
|
+
...style || {},
|
|
6016
|
+
...size_data
|
|
6017
|
+
};
|
|
6018
|
+
});
|
|
6019
|
+
return (0, $kyEB6$createComponent)((0, $d20eff0aadc28983$export$acb3eaade4b23afd), {
|
|
6020
|
+
get style () {
|
|
6021
|
+
return style();
|
|
6022
|
+
},
|
|
6023
|
+
get ["class"] () {
|
|
6024
|
+
return props.class;
|
|
6025
|
+
}
|
|
6026
|
+
});
|
|
6027
|
+
}
|
|
6028
|
+
|
|
6029
|
+
|
|
6030
|
+
|
|
5950
6031
|
const $bb15dfb548a7666e$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$kyEB6$template)(`<div class="instant-card"><div class="img-part"></div><div class="right-part"><div class="title-brand-tagline"><span class="title"></span></div></div></div>`, 10);
|
|
5951
6032
|
function $bb15dfb548a7666e$export$ee1733d9a8495996() {
|
|
5952
6033
|
return (()=>{
|
|
5953
6034
|
const _el$ = $bb15dfb548a7666e$var$_tmpl$.cloneNode(true), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild;
|
|
5954
|
-
(0, $kyEB6$insert)(_el$2, (0, $kyEB6$createComponent)((0, $
|
|
5955
|
-
|
|
6035
|
+
(0, $kyEB6$insert)(_el$2, (0, $kyEB6$createComponent)((0, $7f60f09116a3fe61$export$3f37af283f8fb843), {
|
|
6036
|
+
aspectRatio: 1
|
|
5956
6037
|
}));
|
|
5957
|
-
(0, $kyEB6$insert)(_el$5, (0, $kyEB6$createComponent)((0, $
|
|
6038
|
+
(0, $kyEB6$insert)(_el$5, (0, $kyEB6$createComponent)((0, $d134eae24341b4a1$export$89c6019e4baa40b1), {
|
|
5958
6039
|
width: "20ch",
|
|
5959
6040
|
height: "1em"
|
|
5960
6041
|
}));
|
|
@@ -7537,7 +7618,7 @@ function $793905995512612d$export$c05a196222ba1302({ suggestions_: suggestions_
|
|
|
7537
7618
|
get fallback () {
|
|
7538
7619
|
return (()=>{
|
|
7539
7620
|
const _el$2 = $793905995512612d$var$_tmpl$2.cloneNode(true);
|
|
7540
|
-
(0, $kyEB6$insert)(_el$2, (0, $kyEB6$createComponent)((0, $
|
|
7621
|
+
(0, $kyEB6$insert)(_el$2, (0, $kyEB6$createComponent)((0, $d134eae24341b4a1$export$89c6019e4baa40b1), {
|
|
7541
7622
|
height: "19px",
|
|
7542
7623
|
width: "133px"
|
|
7543
7624
|
}));
|
|
@@ -8113,14 +8194,14 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
|
|
|
8113
8194
|
set market(market) {
|
|
8114
8195
|
this.#market_signal[1](market);
|
|
8115
8196
|
}
|
|
8116
|
-
async fetchSearchResults(query, filters,
|
|
8197
|
+
async fetchSearchResults(query, filters, maxResults = 48) {
|
|
8117
8198
|
const { depict_api_: depict_api_ } = $806c97b931758897$var$privately_shared_properties.get(this);
|
|
8118
8199
|
const result = await depict_api_.query({
|
|
8119
8200
|
tenant: this.merchant,
|
|
8120
8201
|
market: this.market,
|
|
8121
8202
|
query: query,
|
|
8122
8203
|
filters: filters,
|
|
8123
|
-
limit:
|
|
8204
|
+
limit: maxResults
|
|
8124
8205
|
});
|
|
8125
8206
|
if (result.failed) throw new Error("Failed to fetch search results");
|
|
8126
8207
|
return result.displays;
|
|
@@ -8390,6 +8471,9 @@ function $6936724b9e0b98d5$export$689e204eadb33baf(pr) {
|
|
|
8390
8471
|
|
|
8391
8472
|
|
|
8392
8473
|
|
|
8474
|
+
|
|
8475
|
+
|
|
8476
|
+
|
|
8393
8477
|
class $753e9b2889a47c89$export$3ccaa27d81dd8556 extends EventTarget {
|
|
8394
8478
|
#stop_listening;
|
|
8395
8479
|
#disconnect_observer;
|
|
@@ -8568,4 +8652,4 @@ const $4690a06c8489dcd0$export$7bf543b9d9be2c22 = (0, $e4615ecd1849548f$export$b
|
|
|
8568
8652
|
(0, $kyEB6$add_to_version_info)("ui", (0, $ec291e0010116877$export$83d89fbfd8236492));
|
|
8569
8653
|
|
|
8570
8654
|
|
|
8571
|
-
export {$c58717f39bf51647$export$58e808b1db15d3bc as fetchDepictRecommendations, $961b5c64bef4662f$export$de035477d6fef996 as QuickLinks, $961b5c64bef4662f$export$5b7c3ce0ebe51f86 as BreadCrumbs, $e4615ecd1849548f$export$b91cec6bdc6b32a1 as CategoryTitle, $a79d86d64fb64e8e$export$824dde41348efed1 as embedded_num_products, $5c5f95951393e5d1$export$643598a327b5833e as get_categories, $961b5c64bef4662f$export$f34314aa9505732e as DepictCategory, $961b5c64bef4662f$export$e2bf8ce7779e827e as CategoryPage, $806c97b931758897$export$ac6237957a15b3f0 as DepictSearch, $806c97b931758897$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $806c97b931758897$export$f2dc7e4e4aa11abb as SearchPage, $806c97b931758897$export$316f6f283ae64765 as SearchField, $4fd48cb976bf1789$export$aa14a9f43128f61f as ProductCardError, $6891c018a834cfdd$export$d86a33413558014e as open_modal_with_alignment, $bb15dfb548a7666e$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $b6d5529b253681aa$export$b3ad617e9036868 as align_field, $b5cccc8ee7d24677$export$6daf8749b65a1b77 as convert_sdk_cols_at_size_to_layout, $926b1b5ba2239356$export$1233ca167bf71f9a as styles_to_valid_css_string, $aea1edf92433e81e$export$fe334901e8bebd57 as disable_scrolling, $6e8944558258054f$export$d0596b5cae35ad4 as open_search_with_shift_slash, $7fa23e2a0079eca4$export$e015ed2f2950f2e3 as DepictAPI, $dc9262ef6f786812$export$d9f36cf74e24d595 as media_query_to_accessor, $6936724b9e0b98d5$export$689e204eadb33baf as setup_fast_leave, $bf52d9f9eebd1938$export$5196e4c01fa56fcb as show_toast, $8c0f86cb3e266eeb$export$a71e92cfbb498adc as SolidFormatPrice, $4ca91518c9a35379$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $753e9b2889a47c89$export$3ccaa27d81dd8556 as PageReplacer, $4690a06c8489dcd0$export$864d304a0bc46829 as defaultGridSpacing, $4690a06c8489dcd0$export$c3834fa86c616831 as defaultColsAtSize, $4690a06c8489dcd0$export$7bf543b9d9be2c22 as defaultCategoryTitlePlugin, $ec291e0010116877$export$83d89fbfd8236492 as version};
|
|
8655
|
+
export {$c58717f39bf51647$export$58e808b1db15d3bc as fetchDepictRecommendations, $961b5c64bef4662f$export$de035477d6fef996 as QuickLinks, $961b5c64bef4662f$export$5b7c3ce0ebe51f86 as BreadCrumbs, $e4615ecd1849548f$export$b91cec6bdc6b32a1 as CategoryTitle, $a79d86d64fb64e8e$export$824dde41348efed1 as embedded_num_products, $5c5f95951393e5d1$export$643598a327b5833e as get_categories, $961b5c64bef4662f$export$f34314aa9505732e as DepictCategory, $961b5c64bef4662f$export$e2bf8ce7779e827e as CategoryPage, $806c97b931758897$export$ac6237957a15b3f0 as DepictSearch, $806c97b931758897$export$bde3eb976dfded9 as get_search_query_updating_blocked_signal, $806c97b931758897$export$f2dc7e4e4aa11abb as SearchPage, $806c97b931758897$export$316f6f283ae64765 as SearchField, $4fd48cb976bf1789$export$aa14a9f43128f61f as ProductCardError, $6891c018a834cfdd$export$d86a33413558014e as open_modal_with_alignment, $bb15dfb548a7666e$export$ee1733d9a8495996 as DefaultInstantCardPlaceholder, $b6d5529b253681aa$export$b3ad617e9036868 as align_field, $b5cccc8ee7d24677$export$6daf8749b65a1b77 as convert_sdk_cols_at_size_to_layout, $926b1b5ba2239356$export$1233ca167bf71f9a as styles_to_valid_css_string, $aea1edf92433e81e$export$fe334901e8bebd57 as disable_scrolling, $6e8944558258054f$export$d0596b5cae35ad4 as open_search_with_shift_slash, $7fa23e2a0079eca4$export$e015ed2f2950f2e3 as DepictAPI, $dc9262ef6f786812$export$d9f36cf74e24d595 as media_query_to_accessor, $6936724b9e0b98d5$export$689e204eadb33baf as setup_fast_leave, $bf52d9f9eebd1938$export$5196e4c01fa56fcb as show_toast, $8c0f86cb3e266eeb$export$a71e92cfbb498adc as SolidFormatPrice, $4ca91518c9a35379$export$828dcdd425fd3231 as connect_search_field_height_to_aligner_height, $d20eff0aadc28983$export$acb3eaade4b23afd as BasePlaceholder, $d134eae24341b4a1$export$89c6019e4baa40b1 as TextPlaceholder, $7f60f09116a3fe61$export$3f37af283f8fb843 as ImagePlaceholder, $753e9b2889a47c89$export$3ccaa27d81dd8556 as PageReplacer, $4690a06c8489dcd0$export$864d304a0bc46829 as defaultGridSpacing, $4690a06c8489dcd0$export$c3834fa86c616831 as defaultColsAtSize, $4690a06c8489dcd0$export$7bf543b9d9be2c22 as defaultCategoryTitlePlugin, $ec291e0010116877$export$83d89fbfd8236492 as version};
|
package/package.json
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"description": "Base package containing the actual UI of Depict UI along with translations, with a not-simplified API. We recommend using @depict-ai/js-ui or @depict-ai/react-ui instead.",
|
|
5
5
|
"packageManager": "yarn@3.2.2",
|
|
6
|
-
"source": [
|
|
7
|
-
"src/index.ts",
|
|
8
|
-
"src/locales/index.ts"
|
|
9
|
-
],
|
|
10
6
|
"main": "dist/main.js",
|
|
11
7
|
"module": "dist/module.js",
|
|
12
8
|
"sass": "styles.scss",
|
|
@@ -61,7 +57,38 @@
|
|
|
61
57
|
"outputFormat": "commonjs",
|
|
62
58
|
"context": "node"
|
|
63
59
|
},
|
|
64
|
-
"
|
|
60
|
+
"ssr_client_esmodule": {
|
|
61
|
+
"isLibrary": true,
|
|
62
|
+
"source": "src/index.ts",
|
|
63
|
+
"optimize": false,
|
|
64
|
+
"outputFormat": "esmodule",
|
|
65
|
+
"context": "node",
|
|
66
|
+
"distDir": "ssr/client/esmodule"
|
|
67
|
+
},
|
|
68
|
+
"ssr_client_commonjs": {
|
|
69
|
+
"isLibrary": true,
|
|
70
|
+
"source": "src/index.ts",
|
|
71
|
+
"optimize": false,
|
|
72
|
+
"context": "node",
|
|
73
|
+
"outputFormat": "commonjs",
|
|
74
|
+
"distDir": "ssr/client/commonjs"
|
|
75
|
+
},
|
|
76
|
+
"ssr_server_esmodule": {
|
|
77
|
+
"isLibrary": true,
|
|
78
|
+
"source": "src/index.ts",
|
|
79
|
+
"optimize": false,
|
|
80
|
+
"outputFormat": "esmodule",
|
|
81
|
+
"context": "node",
|
|
82
|
+
"distDir": "ssr/server/esmodule"
|
|
83
|
+
},
|
|
84
|
+
"ssr_server_commonjs": {
|
|
85
|
+
"isLibrary": true,
|
|
86
|
+
"source": "src/index.ts",
|
|
87
|
+
"optimize": false,
|
|
88
|
+
"context": "node",
|
|
89
|
+
"outputFormat": "commonjs",
|
|
90
|
+
"distDir": "ssr/server/commonjs"
|
|
91
|
+
}
|
|
65
92
|
},
|
|
66
93
|
"files": [
|
|
67
94
|
"/dist",
|
|
@@ -72,9 +99,9 @@
|
|
|
72
99
|
"exports": {
|
|
73
100
|
"./styles.scss": "./styles.scss",
|
|
74
101
|
".": {
|
|
102
|
+
"types": "./dist/index.d.ts",
|
|
75
103
|
"import": "./dist/module.js",
|
|
76
104
|
"require": "./dist/main.js",
|
|
77
|
-
"types": "./dist/index.d.ts",
|
|
78
105
|
"default": "./dist/module.js"
|
|
79
106
|
},
|
|
80
107
|
"./locales": {
|
|
@@ -82,6 +109,17 @@
|
|
|
82
109
|
"import": "./locales/index.js",
|
|
83
110
|
"require": "./locales/require.js",
|
|
84
111
|
"default": "./locales/index.js"
|
|
112
|
+
},
|
|
113
|
+
"./ssr": {
|
|
114
|
+
"types": "./ssr/index.d.ts",
|
|
115
|
+
"browser": {
|
|
116
|
+
"import": "./ssr/client/module.js",
|
|
117
|
+
"require": "./ssr/client/main.js"
|
|
118
|
+
},
|
|
119
|
+
"node": {
|
|
120
|
+
"import": "./ssr/server/module.js",
|
|
121
|
+
"require": "./ssr/server/main.js"
|
|
122
|
+
}
|
|
85
123
|
}
|
|
86
124
|
},
|
|
87
125
|
"devDependencies": {
|
|
@@ -102,9 +140,9 @@
|
|
|
102
140
|
"ts-jest": "^29.0.3"
|
|
103
141
|
},
|
|
104
142
|
"dependencies": {
|
|
105
|
-
"@depict-ai/plp-styling": "^1.0.
|
|
106
|
-
"@depict-ai/types": "^1.0.
|
|
107
|
-
"@depict-ai/utilishared": "^1.0.
|
|
143
|
+
"@depict-ai/plp-styling": "^1.0.10",
|
|
144
|
+
"@depict-ai/types": "^1.0.9",
|
|
145
|
+
"@depict-ai/utilishared": "^1.0.9",
|
|
108
146
|
"solid-js": "^1.7.3"
|
|
109
147
|
},
|
|
110
148
|
"types": "dist/index.d.ts"
|
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/**
|
|
3
|
-
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
-
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
-
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* An enumeration.
|
|
10
|
-
*/
|
|
11
|
-
export type SortingOrder = "asc" | "desc";
|
|
12
|
-
|
|
13
|
-
export interface BaseSearchRequest {
|
|
14
|
-
tenant: string;
|
|
15
|
-
market: string;
|
|
16
|
-
/**
|
|
17
|
-
* List of filters to apply to the results.
|
|
18
|
-
*/
|
|
19
|
-
filters?: SearchFilter[];
|
|
20
|
-
/**
|
|
21
|
-
* Specifies the sorting method. By default, the results are ordered by relevance. To find the possible values for this field, query the endpoint and look at the `sorts` field.
|
|
22
|
-
*/
|
|
23
|
-
sort?: SortModel;
|
|
24
|
-
/**
|
|
25
|
-
* User identifier
|
|
26
|
-
*/
|
|
27
|
-
user_id?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Session identifier
|
|
30
|
-
*/
|
|
31
|
-
session_id?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Populated for integrations performed by Depict.ai only. Depict.ai Session Id
|
|
34
|
-
*/
|
|
35
|
-
dsid?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Metadata that can be used to modify the behaviour of the search.
|
|
38
|
-
*/
|
|
39
|
-
metadata?: {
|
|
40
|
-
[k: string]: string;
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* The search query.
|
|
44
|
-
*/
|
|
45
|
-
query?: string;
|
|
46
|
-
}
|
|
47
|
-
export interface SearchFilter {
|
|
48
|
-
/**
|
|
49
|
-
* The field to filter by.
|
|
50
|
-
*/
|
|
51
|
-
field: string;
|
|
52
|
-
/**
|
|
53
|
-
* The operation used for filtering. The filtering should be read as `field op data`, for example `brand in ["Nike", "Adidas"]`.
|
|
54
|
-
*/
|
|
55
|
-
op: "eq" | "neq" | "in" | "nin" | "leq" | "geq" | "inrange";
|
|
56
|
-
/**
|
|
57
|
-
* Data for the filter.
|
|
58
|
-
*/
|
|
59
|
-
data?:
|
|
60
|
-
| ("true" | "false")
|
|
61
|
-
| number
|
|
62
|
-
| number
|
|
63
|
-
| string
|
|
64
|
-
| [number, number]
|
|
65
|
-
| [number, number]
|
|
66
|
-
| [number, number]
|
|
67
|
-
| [number, number]
|
|
68
|
-
| (
|
|
69
|
-
| ("true" | "false")
|
|
70
|
-
| number
|
|
71
|
-
| number
|
|
72
|
-
| string
|
|
73
|
-
| [number, number]
|
|
74
|
-
| [number, number]
|
|
75
|
-
| [number, number]
|
|
76
|
-
| [number, number]
|
|
77
|
-
)[]
|
|
78
|
-
| (("true" | "false") | number | number | string)[][];
|
|
79
|
-
/**
|
|
80
|
-
* Metadata about the filter that can be used for rendering. For example, this could contain the possible values to filter by and their counts in the results.
|
|
81
|
-
*/
|
|
82
|
-
meta?: RangeFilterMeta | ValuesFilterMeta | HierarchicalValuesFilterMeta;
|
|
83
|
-
/**
|
|
84
|
-
* ID of the filter. If multiple filters share the same ID, they should be grouped together in the UI.
|
|
85
|
-
*/
|
|
86
|
-
id?: string;
|
|
87
|
-
}
|
|
88
|
-
export interface RangeFilterMeta {
|
|
89
|
-
/**
|
|
90
|
-
* Title of the group, where a group consists of all the filters that share an ID.
|
|
91
|
-
*/
|
|
92
|
-
group_title?: string;
|
|
93
|
-
/**
|
|
94
|
-
* Whether the filter group should be expanded by default or not.
|
|
95
|
-
*/
|
|
96
|
-
group_expanded?: boolean;
|
|
97
|
-
type?: "range";
|
|
98
|
-
/**
|
|
99
|
-
* The minimum value that can be selected in the range.
|
|
100
|
-
*/
|
|
101
|
-
min: number;
|
|
102
|
-
/**
|
|
103
|
-
* The maximum value that can be selected in the range.
|
|
104
|
-
*/
|
|
105
|
-
max: number;
|
|
106
|
-
/**
|
|
107
|
-
* The unit of the range values.
|
|
108
|
-
*/
|
|
109
|
-
unit?: string;
|
|
110
|
-
/**
|
|
111
|
-
* The currency of the range values.
|
|
112
|
-
*/
|
|
113
|
-
currency?: string;
|
|
114
|
-
}
|
|
115
|
-
export interface ValuesFilterMeta {
|
|
116
|
-
/**
|
|
117
|
-
* Title of the group, where a group consists of all the filters that share an ID.
|
|
118
|
-
*/
|
|
119
|
-
group_title?: string;
|
|
120
|
-
/**
|
|
121
|
-
* Whether the filter group should be expanded by default or not.
|
|
122
|
-
*/
|
|
123
|
-
group_expanded?: boolean;
|
|
124
|
-
/**
|
|
125
|
-
* Type of filter.
|
|
126
|
-
*/
|
|
127
|
-
type?: "radio" | "checkbox" | "checkbox-grid";
|
|
128
|
-
/**
|
|
129
|
-
* Selectable values
|
|
130
|
-
*/
|
|
131
|
-
values: (
|
|
132
|
-
| ("true" | "false")
|
|
133
|
-
| number
|
|
134
|
-
| number
|
|
135
|
-
| string
|
|
136
|
-
| [number, number]
|
|
137
|
-
| [number, number]
|
|
138
|
-
| [number, number]
|
|
139
|
-
| [number, number]
|
|
140
|
-
)[];
|
|
141
|
-
/**
|
|
142
|
-
* Counts for values
|
|
143
|
-
*/
|
|
144
|
-
counts?: number[];
|
|
145
|
-
/**
|
|
146
|
-
* Names for values
|
|
147
|
-
*/
|
|
148
|
-
names?: string[];
|
|
149
|
-
}
|
|
150
|
-
export interface HierarchicalValuesFilterMeta {
|
|
151
|
-
/**
|
|
152
|
-
* Title of the group, where a group consists of all the filters that share an ID.
|
|
153
|
-
*/
|
|
154
|
-
group_title?: string;
|
|
155
|
-
/**
|
|
156
|
-
* Whether the filter group should be expanded by default or not.
|
|
157
|
-
*/
|
|
158
|
-
group_expanded?: boolean;
|
|
159
|
-
type?: "checkbox-hierarchical";
|
|
160
|
-
/**
|
|
161
|
-
* Selectable hierarchical values
|
|
162
|
-
*/
|
|
163
|
-
values: (("true" | "false") | number | number | string)[][];
|
|
164
|
-
/**
|
|
165
|
-
* Counts for values
|
|
166
|
-
*/
|
|
167
|
-
counts?: number[];
|
|
168
|
-
/**
|
|
169
|
-
* Names for hierarchical values
|
|
170
|
-
*/
|
|
171
|
-
names?: string[];
|
|
172
|
-
}
|
|
173
|
-
export interface SortModel {
|
|
174
|
-
/**
|
|
175
|
-
* The field to sort by.
|
|
176
|
-
*/
|
|
177
|
-
field: string;
|
|
178
|
-
/**
|
|
179
|
-
* The order to sort by.
|
|
180
|
-
*/
|
|
181
|
-
order: SortingOrder;
|
|
182
|
-
/**
|
|
183
|
-
* Metadata about the sort that can be used for rendering.
|
|
184
|
-
*/
|
|
185
|
-
meta?: SortMeta;
|
|
186
|
-
}
|
|
187
|
-
export interface SortMeta {
|
|
188
|
-
title: string;
|
|
189
|
-
/**
|
|
190
|
-
* Selectable values
|
|
191
|
-
*/
|
|
192
|
-
values?: SortingOrder[];
|
|
193
|
-
/**
|
|
194
|
-
* Names for orders
|
|
195
|
-
*/
|
|
196
|
-
names?: string[];
|
|
197
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/**
|
|
3
|
-
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
-
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
-
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
export interface ProductListingQueriesRequest {
|
|
9
|
-
tenant: string;
|
|
10
|
-
market: string;
|
|
11
|
-
metadata?: {
|
|
12
|
-
[k: string]: string;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/**
|
|
3
|
-
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
-
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
-
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
export interface ProductListingQueriesResponse {
|
|
9
|
-
query_ids?: string[];
|
|
10
|
-
}
|