@empathyco/x-adapter-platform 1.11.1 → 2.0.0
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/cjs/schemas/facets/utils.js +5 -0
- package/dist/cjs/schemas/facets/utils.js.map +1 -1
- package/dist/cjs/schemas/models/ai/suggestion-search.schema.js +0 -7
- package/dist/cjs/schemas/models/ai/suggestion-search.schema.js.map +1 -1
- package/dist/cjs/schemas/models/ai/suggestions-search.schema.js +9 -0
- package/dist/cjs/schemas/models/ai/suggestions-search.schema.js.map +1 -1
- package/dist/cjs/schemas/models/facet.schema.js.map +1 -1
- package/dist/cjs/schemas/models/filters/slider-filter.schema.js +48 -0
- package/dist/cjs/schemas/models/filters/slider-filter.schema.js.map +1 -0
- package/dist/cjs/types/models/ai/suggestion-search.model.js.map +1 -1
- package/dist/cjs/types/models/facet.model.js.map +1 -1
- package/dist/cjs/types/responses/ai/suggestions-search-response.model.js.map +1 -1
- package/dist/esm/schemas/facets/utils.js +5 -0
- package/dist/esm/schemas/facets/utils.js.map +1 -1
- package/dist/esm/schemas/models/ai/suggestion-search.schema.js +0 -7
- package/dist/esm/schemas/models/ai/suggestion-search.schema.js.map +1 -1
- package/dist/esm/schemas/models/ai/suggestions-search.schema.js +9 -0
- package/dist/esm/schemas/models/ai/suggestions-search.schema.js.map +1 -1
- package/dist/esm/schemas/models/facet.schema.js.map +1 -1
- package/dist/esm/schemas/models/filters/slider-filter.schema.js +45 -0
- package/dist/esm/schemas/models/filters/slider-filter.schema.js.map +1 -0
- package/dist/esm/types/models/ai/suggestion-search.model.js.map +1 -1
- package/dist/esm/types/models/facet.model.js.map +1 -1
- package/dist/esm/types/responses/ai/suggestions-search-response.model.js.map +1 -1
- package/dist/types/schemas/models/facet.schema.d.ts +2 -2
- package/dist/types/schemas/models/filters/slider-filter.schema.d.ts +8 -0
- package/dist/types/types/models/ai/suggestion-search.model.d.ts +8 -3
- package/dist/types/types/models/facet.model.d.ts +12 -2
- package/dist/types/types/responses/ai/suggestions-search-response.model.d.ts +2 -1
- package/package.json +3 -3
- package/report/x-adapter-platform.api.json +316 -9
- package/report/x-adapter-platform.api.md +31 -6
|
@@ -6,6 +6,7 @@ const editable_number_filter_schema_1 = require("../models/filters/editable-numb
|
|
|
6
6
|
const hierarchical_filter_schema_1 = require("../models/filters/hierarchical-filter.schema");
|
|
7
7
|
const number_filter_schema_1 = require("../models/filters/number-filter.schema");
|
|
8
8
|
const simple_filter_schema_1 = require("../models/filters/simple-filter.schema");
|
|
9
|
+
const slider_filter_schema_1 = require("../models/filters/slider-filter.schema");
|
|
9
10
|
/**
|
|
10
11
|
* Returns the facet's config.
|
|
11
12
|
*
|
|
@@ -37,6 +38,10 @@ function getFacetConfig(type) {
|
|
|
37
38
|
modelName: 'EditableNumberRangeFacet',
|
|
38
39
|
schema: editable_number_filter_schema_1.editableNumberFilterSchema,
|
|
39
40
|
},
|
|
41
|
+
slider: {
|
|
42
|
+
modelName: 'SliderFacet',
|
|
43
|
+
schema: slider_filter_schema_1.sliderFilterSchema,
|
|
44
|
+
},
|
|
40
45
|
};
|
|
41
46
|
return (_a = typeConfigs[type]) !== null && _a !== void 0 ? _a : typeConfigs.value;
|
|
42
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/schemas/facets/utils.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/schemas/facets/utils.ts"],"names":[],"mappings":";;AAiBA,wCA4BC;AA3CD,mFAA6E;AAC7E,mGAA4F;AAC5F,6FAAuF;AACvF,iFAA2E;AAC3E,iFAA2E;AAC3E,iFAA2E;AAE3E;;;;;;;GAOG;AACH,SAAgB,cAAc,CAAC,IAAuB;;IACpD,MAAM,WAAW,GAA2C;QAC1D,KAAK,EAAE;YACL,SAAS,EAAE,aAAa;YACxB,MAAM,EAAE,yCAAkB;SAC3B;QACD,YAAY,EAAE;YACZ,SAAS,EAAE,mBAAmB;YAC9B,MAAM,EAAE,qDAAwB;SACjC;QACD,KAAK,EAAE;YACL,SAAS,EAAE,kBAAkB;YAC7B,MAAM,EAAE,yCAAkB;SAC3B;QACD,OAAO,EAAE;YACP,SAAS,EAAE,cAAc;YACzB,MAAM,EAAE,2CAAmB;SAC5B;QACD,gBAAgB,EAAE;YAChB,SAAS,EAAE,0BAA0B;YACrC,MAAM,EAAE,0DAA0B;SACnC;QACD,MAAM,EAAE;YACN,SAAS,EAAE,aAAa;YACxB,MAAM,EAAE,yCAAkB;SAC3B;KACF,CAAA;IACD,OAAO,MAAA,WAAW,CAAC,IAAI,CAAC,mCAAI,WAAW,CAAC,KAAK,CAAA;AAC/C,CAAC","sourcesContent":["import type { PlatformFacetType } from '../../types/models/facet.model'\nimport type { FacetConfig } from './types'\nimport { booleanFilterSchema } from '../models/filters/boolean-filter.schema'\nimport { editableNumberFilterSchema } from '../models/filters/editable-number-filter.schema'\nimport { hierarchicalFilterSchema } from '../models/filters/hierarchical-filter.schema'\nimport { numberFilterSchema } from '../models/filters/number-filter.schema'\nimport { simpleFilterSchema } from '../models/filters/simple-filter.schema'\nimport { sliderFilterSchema } from '../models/filters/slider-filter.schema'\n\n/**\n * Returns the facet's config.\n *\n * @param type - The facet type to resolve the configuration.\n * @returns The facet's config.\n *\n * @public\n */\nexport function getFacetConfig(type: PlatformFacetType): FacetConfig {\n const typeConfigs: Record<PlatformFacetType, FacetConfig> = {\n value: {\n modelName: 'SimpleFacet',\n schema: simpleFilterSchema,\n },\n hierarchical: {\n modelName: 'HierarchicalFacet',\n schema: hierarchicalFilterSchema,\n },\n range: {\n modelName: 'NumberRangeFacet',\n schema: numberFilterSchema,\n },\n boolean: {\n modelName: 'BooleanFacet',\n schema: booleanFilterSchema,\n },\n 'editable-range': {\n modelName: 'EditableNumberRangeFacet',\n schema: editableNumberFilterSchema,\n },\n slider: {\n modelName: 'SliderFacet',\n schema: sliderFilterSchema,\n },\n }\n return typeConfigs[type] ?? typeConfigs.value\n}\n"]}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.aiSuggestionSearchSchema = void 0;
|
|
4
4
|
const x_adapter_1 = require("@empathyco/x-adapter");
|
|
5
|
-
const url_utils_1 = require("../../../mappers/url.utils");
|
|
6
5
|
const result_schema_1 = require("../result.schema");
|
|
7
6
|
/**
|
|
8
7
|
* Default implementation for the AiSuggestionSearchSchema.
|
|
@@ -15,11 +14,5 @@ exports.aiSuggestionSearchSchema = (0, x_adapter_1.createMutableSchema)({
|
|
|
15
14
|
$subSchema: result_schema_1.resultSchema,
|
|
16
15
|
},
|
|
17
16
|
numFound: 'numFound',
|
|
18
|
-
tagging: ({ tagging }) => {
|
|
19
|
-
var _a;
|
|
20
|
-
return ({
|
|
21
|
-
query: (0, url_utils_1.getTaggingInfoFromUrl)((_a = tagging === null || tagging === void 0 ? void 0 : tagging.query) !== null && _a !== void 0 ? _a : ''),
|
|
22
|
-
});
|
|
23
|
-
},
|
|
24
17
|
});
|
|
25
18
|
//# sourceMappingURL=suggestion-search.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suggestion-search.schema.js","sourceRoot":"","sources":["../../../../../src/schemas/models/ai/suggestion-search.schema.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAC1D,
|
|
1
|
+
{"version":3,"file":"suggestion-search.schema.js","sourceRoot":"","sources":["../../../../../src/schemas/models/ai/suggestion-search.schema.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAC1D,oDAA+C;AAE/C;;;GAGG;AACU,QAAA,wBAAwB,GAAG,IAAA,+BAAmB,EAGzD;IACA,KAAK,EAAE,OAAO;IACd,OAAO,EAAE;QACP,KAAK,EAAE,SAAS;QAChB,UAAU,EAAE,4BAAY;KACzB;IACD,QAAQ,EAAE,UAAU;CACrB,CAAC,CAAA","sourcesContent":["import type { AiSuggestionSearch } from '@empathyco/x-types'\nimport type { PlatformAiSuggestionSearch } from '../../../types/models/ai/suggestion-search.model'\nimport { createMutableSchema } from '@empathyco/x-adapter'\nimport { resultSchema } from '../result.schema'\n\n/**\n * Default implementation for the AiSuggestionSearchSchema.\n * @public\n */\nexport const aiSuggestionSearchSchema = createMutableSchema<\n PlatformAiSuggestionSearch,\n AiSuggestionSearch\n>({\n query: 'query',\n results: {\n $path: 'results',\n $subSchema: resultSchema,\n },\n numFound: 'numFound',\n})\n"]}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.aiSuggestionsSearchSchema = void 0;
|
|
4
4
|
const x_adapter_1 = require("@empathyco/x-adapter");
|
|
5
|
+
const url_utils_1 = require("../../../mappers/url.utils");
|
|
5
6
|
const suggestion_search_schema_1 = require("./suggestion-search.schema");
|
|
6
7
|
/**
|
|
7
8
|
* Default implementation for the AIOverviewSuggestionsSearchSchema.
|
|
@@ -12,5 +13,13 @@ exports.aiSuggestionsSearchSchema = (0, x_adapter_1.createMutableSchema)({
|
|
|
12
13
|
$path: 'items',
|
|
13
14
|
$subSchema: suggestion_search_schema_1.aiSuggestionSearchSchema,
|
|
14
15
|
},
|
|
16
|
+
suggestionsTagging: {
|
|
17
|
+
query: ({ tagging }) => { var _a; return (0, url_utils_1.getTaggingInfoFromUrl)((_a = tagging === null || tagging === void 0 ? void 0 : tagging.query) !== null && _a !== void 0 ? _a : ''); },
|
|
18
|
+
add2cart: ({ tagging }) => { var _a; return (0, url_utils_1.getTaggingInfoFromUrl)((_a = tagging === null || tagging === void 0 ? void 0 : tagging.add2cart) !== null && _a !== void 0 ? _a : ''); },
|
|
19
|
+
click: ({ tagging }) => { var _a; return (0, url_utils_1.getTaggingInfoFromUrl)((_a = tagging === null || tagging === void 0 ? void 0 : tagging.click) !== null && _a !== void 0 ? _a : ''); },
|
|
20
|
+
display: ({ tagging }) => { var _a; return (0, url_utils_1.getTaggingInfoFromUrl)((_a = tagging === null || tagging === void 0 ? void 0 : tagging.display) !== null && _a !== void 0 ? _a : ''); },
|
|
21
|
+
displayClick: ({ tagging }) => { var _a; return (0, url_utils_1.getTaggingInfoFromUrl)((_a = tagging === null || tagging === void 0 ? void 0 : tagging.displayClick) !== null && _a !== void 0 ? _a : ''); },
|
|
22
|
+
checkout: ({ tagging }) => { var _a; return (0, url_utils_1.getTaggingInfoFromUrl)((_a = tagging === null || tagging === void 0 ? void 0 : tagging.checkout) !== null && _a !== void 0 ? _a : ''); },
|
|
23
|
+
},
|
|
15
24
|
});
|
|
16
25
|
//# sourceMappingURL=suggestions-search.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suggestions-search.schema.js","sourceRoot":"","sources":["../../../../../src/schemas/models/ai/suggestions-search.schema.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAC1D,yEAAqE;AAErE;;;GAGG;AACU,QAAA,yBAAyB,GAAG,IAAA,+BAAmB,EAG1D;IACA,WAAW,EAAE;QACX,KAAK,EAAE,OAAO;QACd,UAAU,EAAE,mDAAwB;KACrC;CACF,CAAC,CAAA","sourcesContent":["import type { AiSuggestionsSearchResponse } from '@empathyco/x-types'\nimport type { PlatformAiSuggestionsSearchResponse } from '../../../types'\nimport { createMutableSchema } from '@empathyco/x-adapter'\nimport { aiSuggestionSearchSchema } from './suggestion-search.schema'\n\n/**\n * Default implementation for the AIOverviewSuggestionsSearchSchema.\n * @public\n */\nexport const aiSuggestionsSearchSchema = createMutableSchema<\n PlatformAiSuggestionsSearchResponse,\n AiSuggestionsSearchResponse\n>({\n suggestions: {\n $path: 'items',\n $subSchema: aiSuggestionSearchSchema,\n },\n})\n"]}
|
|
1
|
+
{"version":3,"file":"suggestions-search.schema.js","sourceRoot":"","sources":["../../../../../src/schemas/models/ai/suggestions-search.schema.ts"],"names":[],"mappings":";;;AAEA,oDAA0D;AAC1D,0DAAkE;AAClE,yEAAqE;AAErE;;;GAGG;AACU,QAAA,yBAAyB,GAAG,IAAA,+BAAmB,EAG1D;IACA,WAAW,EAAE;QACX,KAAK,EAAE,OAAO;QACd,UAAU,EAAE,mDAAwB;KACrC;IACD,kBAAkB,EAAE;QAClB,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,WAAC,OAAA,IAAA,iCAAqB,EAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,mCAAI,EAAE,CAAC,CAAA,EAAA;QACnE,QAAQ,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,WAAC,OAAA,IAAA,iCAAqB,EAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,EAAE,CAAC,CAAA,EAAA;QACzE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,WAAC,OAAA,IAAA,iCAAqB,EAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,mCAAI,EAAE,CAAC,CAAA,EAAA;QACnE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,WAAC,OAAA,IAAA,iCAAqB,EAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,mCAAI,EAAE,CAAC,CAAA,EAAA;QACvE,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,WAAC,OAAA,IAAA,iCAAqB,EAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY,mCAAI,EAAE,CAAC,CAAA,EAAA;QACjF,QAAQ,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,WAAC,OAAA,IAAA,iCAAqB,EAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,EAAE,CAAC,CAAA,EAAA;KAC1E;CACF,CAAC,CAAA","sourcesContent":["import type { AiSuggestionsSearchResponse } from '@empathyco/x-types'\nimport type { PlatformAiSuggestionsSearchResponse } from '../../../types'\nimport { createMutableSchema } from '@empathyco/x-adapter'\nimport { getTaggingInfoFromUrl } from '../../../mappers/url.utils'\nimport { aiSuggestionSearchSchema } from './suggestion-search.schema'\n\n/**\n * Default implementation for the AIOverviewSuggestionsSearchSchema.\n * @public\n */\nexport const aiSuggestionsSearchSchema = createMutableSchema<\n PlatformAiSuggestionsSearchResponse,\n AiSuggestionsSearchResponse\n>({\n suggestions: {\n $path: 'items',\n $subSchema: aiSuggestionSearchSchema,\n },\n suggestionsTagging: {\n query: ({ tagging }) => getTaggingInfoFromUrl(tagging?.query ?? ''),\n add2cart: ({ tagging }) => getTaggingInfoFromUrl(tagging?.add2cart ?? ''),\n click: ({ tagging }) => getTaggingInfoFromUrl(tagging?.click ?? ''),\n display: ({ tagging }) => getTaggingInfoFromUrl(tagging?.display ?? ''),\n displayClick: ({ tagging }) => getTaggingInfoFromUrl(tagging?.displayClick ?? ''),\n checkout: ({ tagging }) => getTaggingInfoFromUrl(tagging?.checkout ?? ''),\n },\n})\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"facet.schema.js","sourceRoot":"","sources":["../../../../src/schemas/models/facet.schema.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"facet.schema.js","sourceRoot":"","sources":["../../../../src/schemas/models/facet.schema.ts"],"names":[],"mappings":";;;AASA,oDAA0D;AAC1D,2CAAgD;AAEhD;;;;GAIG;AACU,QAAA,WAAW,GAAG,IAAA,+BAAmB,EAQ5C;IACA,EAAE,EAAE,OAAO;IACX,KAAK,EAAE,OAAO;IACd,+CAA+C;IAC/C,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAA,sBAAc,EAAC,IAAI,CAAC,CAAC,SAAgB;IAC9D,OAAO,EAAE;QACP,KAAK,EAAE,QAAQ;QACf,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAA,sBAAc,EAAC,IAAI,CAAC,CAAC,MAAM;QACrD,QAAQ,EAAE;YACR,OAAO,EAAE,OAAO;SACjB;KACF;CACF,CAAC,CAAA","sourcesContent":["import type {\n BooleanFacet,\n EditableNumberRangeFacet,\n HierarchicalFacet,\n NumberRangeFacet,\n SimpleFacet,\n SliderFacet,\n} from '@empathyco/x-types'\nimport type { PlatformFacet } from '../../types/models/facet.model'\nimport { createMutableSchema } from '@empathyco/x-adapter'\nimport { getFacetConfig } from '../facets/utils'\n\n/**\n * Default implementation for the FacetSchema.\n *\n * @public\n */\nexport const facetSchema = createMutableSchema<\n PlatformFacet,\n | HierarchicalFacet\n | NumberRangeFacet\n | SimpleFacet\n | EditableNumberRangeFacet\n | BooleanFacet\n | SliderFacet\n>({\n id: 'facet',\n label: 'label',\n // eslint-disable-next-line ts/no-unsafe-return\n modelName: ({ type }) => getFacetConfig(type).modelName as any,\n filters: {\n $path: 'values',\n $subSchema: ({ type }) => getFacetConfig(type).schema,\n $context: {\n facetId: 'facet',\n },\n },\n})\n"]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sliderFilterSchema = void 0;
|
|
4
|
+
const x_adapter_1 = require("@empathyco/x-adapter");
|
|
5
|
+
const getFilter = (context) => {
|
|
6
|
+
var _a, _b;
|
|
7
|
+
if (!context) {
|
|
8
|
+
return undefined;
|
|
9
|
+
}
|
|
10
|
+
const facetId = context.facetId;
|
|
11
|
+
return (_b = (_a = context.requestParameters) === null || _a === void 0 ? void 0 : _a.filter) === null || _b === void 0 ? void 0 : _b.find(filter => filter.startsWith(`${facetId}:`));
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Default implementation for the sliderFilterSchema.
|
|
15
|
+
*
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
exports.sliderFilterSchema = (0, x_adapter_1.createMutableSchema)({
|
|
19
|
+
id: ({ min, max }, context) => {
|
|
20
|
+
const facetId = context === null || context === void 0 ? void 0 : context.facetId;
|
|
21
|
+
const filter = getFilter(context);
|
|
22
|
+
return filter !== null && filter !== void 0 ? filter : `${facetId}:${min}-${max}`;
|
|
23
|
+
},
|
|
24
|
+
facetId: (_, context) => context === null || context === void 0 ? void 0 : context.facetId,
|
|
25
|
+
selected: () => false,
|
|
26
|
+
modelName: () => 'SliderFilter',
|
|
27
|
+
range: ({ min, max }) => ({
|
|
28
|
+
min: Number(min),
|
|
29
|
+
max: Number(max),
|
|
30
|
+
}),
|
|
31
|
+
selectedRange: (_, context) => {
|
|
32
|
+
const filter = getFilter(context);
|
|
33
|
+
if (!filter) {
|
|
34
|
+
return { min: null, max: null };
|
|
35
|
+
}
|
|
36
|
+
const [, range] = filter.split(':');
|
|
37
|
+
const match = range.match(/^(-?\d+(?:\.\d+)?)-(-?\d+(?:\.\d+)?)$/);
|
|
38
|
+
if (!match) {
|
|
39
|
+
return { min: null, max: null };
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
min: Number(match[1]),
|
|
43
|
+
max: Number(match[2]),
|
|
44
|
+
};
|
|
45
|
+
},
|
|
46
|
+
unit: 'unit',
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=slider-filter.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slider-filter.schema.js","sourceRoot":"","sources":["../../../../../src/schemas/models/filters/slider-filter.schema.ts"],"names":[],"mappings":";;;AAGA,oDAA0D;AAE1D,MAAM,SAAS,GAAG,CAAC,OAAkC,EAAE,EAAE;;IACvD,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,SAAS,CAAA;IAClB,CAAC;IAED,MAAM,OAAO,GAAG,OAAO,CAAC,OAAiB,CAAA;IACzC,OAAO,MAAC,MAAA,OAAO,CAAC,iBAAiB,0CAAE,MAA+B,0CAAE,IAAI,CAAC,MAAM,CAAC,EAAE,CAChF,MAAM,CAAC,UAAU,CAAC,GAAG,OAAO,GAAG,CAAC,CACjC,CAAA;AACH,CAAC,CAAA;AAED;;;;GAIG;AACU,QAAA,kBAAkB,GAAG,IAAA,+BAAmB,EAAqC;IACxF,EAAE,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE;QAC5B,MAAM,OAAO,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAiB,CAAA;QAC1C,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC,CAAA;QAEjC,OAAO,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,GAAG,OAAO,IAAI,GAAG,IAAI,GAAG,EAAE,CAAA;IAC7C,CAAC;IACD,OAAO,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAiB;IACnD,QAAQ,EAAE,GAAG,EAAE,CAAC,KAAK;IACrB,SAAS,EAAE,GAAG,EAAE,CAAC,cAAc;IAC/B,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;QACxB,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC;QAChB,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC;KACjB,CAAC;IACF,aAAa,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE;QAC5B,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC,CAAA;QAEjC,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,CAAA;QACjC,CAAC;QAED,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;QACnC,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,uCAAuC,CAAC,CAAA;QAElE,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,CAAA;QACjC,CAAC;QAED,OAAO;YACL,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACrB,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;SACtB,CAAA;IACH,CAAC;IAED,IAAI,EAAE,MAAM;CACb,CAAC,CAAA","sourcesContent":["import type { MapperContext } from '@empathyco/x-adapter'\nimport type { SliderFilter } from '@empathyco/x-types'\nimport type { PlatformSliderFilter } from '../../../types/models/facet.model'\nimport { createMutableSchema } from '@empathyco/x-adapter'\n\nconst getFilter = (context: MapperContext | undefined) => {\n if (!context) {\n return undefined\n }\n\n const facetId = context.facetId as string\n return (context.requestParameters?.filter as string[] | undefined)?.find(filter =>\n filter.startsWith(`${facetId}:`),\n )\n}\n\n/**\n * Default implementation for the sliderFilterSchema.\n *\n * @public\n */\nexport const sliderFilterSchema = createMutableSchema<PlatformSliderFilter, SliderFilter>({\n id: ({ min, max }, context) => {\n const facetId = context?.facetId as string\n const filter = getFilter(context)\n\n return filter ?? `${facetId}:${min}-${max}`\n },\n facetId: (_, context) => context?.facetId as string,\n selected: () => false,\n modelName: () => 'SliderFilter',\n range: ({ min, max }) => ({\n min: Number(min),\n max: Number(max),\n }),\n selectedRange: (_, context) => {\n const filter = getFilter(context)\n\n if (!filter) {\n return { min: null, max: null }\n }\n\n const [, range] = filter.split(':')\n const match = range.match(/^(-?\\d+(?:\\.\\d+)?)-(-?\\d+(?:\\.\\d+)?)$/)\n\n if (!match) {\n return { min: null, max: null }\n }\n\n return {\n min: Number(match[1]),\n max: Number(match[2]),\n }\n },\n\n unit: 'unit',\n})\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suggestion-search.model.js","sourceRoot":"","sources":["../../../../../src/types/models/ai/suggestion-search.model.ts"],"names":[],"mappings":"","sourcesContent":["import type { PlatformResult } from '../result.model'\n\n/**\n * Each platform suggestion search is a query and the platform results of that query.\n * @public\n */\nexport interface PlatformAiSuggestionSearch {\n query: string\n results: PlatformResult[]\n numFound: number\n
|
|
1
|
+
{"version":3,"file":"suggestion-search.model.js","sourceRoot":"","sources":["../../../../../src/types/models/ai/suggestion-search.model.ts"],"names":[],"mappings":"","sourcesContent":["import type { PlatformResult } from '../result.model'\n\n/**\n * Each platform suggestion search is a query and the platform results of that query.\n * @public\n */\nexport interface PlatformAiSuggestionSearch {\n query: string\n results: PlatformResult[]\n numFound: number\n}\n\nexport interface PlatformAiSuggestionSearchTagging {\n query: string\n add2cart: string\n click: string\n display: string\n displayClick: string\n checkout: string\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"facet.model.js","sourceRoot":"","sources":["../../../../src/types/models/facet.model.ts"],"names":[],"mappings":"","sourcesContent":["import type { BooleanFilter, Facet, Filter } from '@empathyco/x-types'\n\n/**\n * Facet model for the `platform` API.\n *\n * @public\n */\nexport interface PlatformFacet {\n label: string\n facet: string\n type: PlatformFacetType\n values: PlatformFilter[]\n}\n\n/**\n * Facet type for the `platform` API. It can be: value, hierarchical or range.\n *\n * @public\n */\nexport type PlatformFacetType
|
|
1
|
+
{"version":3,"file":"facet.model.js","sourceRoot":"","sources":["../../../../src/types/models/facet.model.ts"],"names":[],"mappings":"","sourcesContent":["import type { BooleanFilter, Facet, Filter } from '@empathyco/x-types'\n\n/**\n * Facet model for the `platform` API.\n *\n * @public\n */\nexport interface PlatformFacet {\n label: string\n facet: string\n type: PlatformFacetType\n values: (PlatformFilter | PlatformSliderFilter)[]\n}\n\n/**\n * Facet type for the `platform` API. It can be: value, hierarchical or range.\n *\n * @public\n */\nexport type PlatformFacetType =\n | 'value'\n | 'hierarchical'\n | 'range'\n | 'editable-range'\n | 'boolean'\n | 'slider'\n\n/**\n * Filter model for the `platform` API.\n *\n * @public\n */\nexport interface PlatformFilter {\n count: number\n filter: string\n id: string\n value: string\n}\n\n/**\n * Slider filter model for the `platform` API, used when {@link PlatformFacetType} is `slider`.\n *\n * @public\n */\nexport interface PlatformSliderFilter {\n min: string\n max: string\n unit: Intl.NumberFormatOptions['style']\n}\n\n/**\n * HierarchicalFilter model for the `platform` API.\n *\n * @public\n */\nexport interface PlatformHierarchicalFilter extends PlatformFilter {\n children: PlatformFacet\n}\n\n/**\n * Hierarchical Facet model used when combining search response mappers.\n *\n * @internal\n */\nexport interface AdapterHierarchicalFacet extends Facet {\n /** Model name to indicate the facet type. */\n modelName: 'HierarchicalFacet'\n /** Filters available for the facet. */\n filters: AdapterHierarchicalFilter[]\n}\n\n/**\n * Hierarchical Filter model used when combining search response mappers.\n *\n * @internal\n */\nexport interface AdapterHierarchicalFilter extends BooleanFilter {\n /** Model name to indicate the filter type. */\n modelName: 'HierarchicalFilter'\n /** A unique id used to reference the parent filter or null if it hasn't. */\n parentId: Filter['id'] | null\n /** Descendants filters. */\n children?: AdapterHierarchicalFilter[]\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suggestions-search-response.model.js","sourceRoot":"","sources":["../../../../../src/types/responses/ai/suggestions-search-response.model.ts"],"names":[],"mappings":"","sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"suggestions-search-response.model.js","sourceRoot":"","sources":["../../../../../src/types/responses/ai/suggestions-search-response.model.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n PlatformAiSuggestionSearch,\n PlatformAiSuggestionSearchTagging,\n} from '../../models/ai/suggestion-search.model'\n\n/**\n * Response for the `AI suggestions search` endpoint.\n *\n * @public\n */\nexport interface PlatformAiSuggestionsSearchResponse {\n items: PlatformAiSuggestionSearch[]\n tagging: PlatformAiSuggestionSearchTagging\n}\n"]}
|
|
@@ -3,6 +3,7 @@ import { editableNumberFilterSchema } from '../models/filters/editable-number-fi
|
|
|
3
3
|
import { hierarchicalFilterSchema } from '../models/filters/hierarchical-filter.schema';
|
|
4
4
|
import { numberFilterSchema } from '../models/filters/number-filter.schema';
|
|
5
5
|
import { simpleFilterSchema } from '../models/filters/simple-filter.schema';
|
|
6
|
+
import { sliderFilterSchema } from '../models/filters/slider-filter.schema';
|
|
6
7
|
/**
|
|
7
8
|
* Returns the facet's config.
|
|
8
9
|
*
|
|
@@ -34,6 +35,10 @@ export function getFacetConfig(type) {
|
|
|
34
35
|
modelName: 'EditableNumberRangeFacet',
|
|
35
36
|
schema: editableNumberFilterSchema,
|
|
36
37
|
},
|
|
38
|
+
slider: {
|
|
39
|
+
modelName: 'SliderFacet',
|
|
40
|
+
schema: sliderFilterSchema,
|
|
41
|
+
},
|
|
37
42
|
};
|
|
38
43
|
return (_a = typeConfigs[type]) !== null && _a !== void 0 ? _a : typeConfigs.value;
|
|
39
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/schemas/facets/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAA;AAC5F,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAA;AACvF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAA;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAA;AAE3E;;;;;;;GAOG;AACH,MAAM,UAAU,cAAc,CAAC,IAAuB;;IACpD,MAAM,WAAW,GAA2C;QAC1D,KAAK,EAAE;YACL,SAAS,EAAE,aAAa;YACxB,MAAM,EAAE,kBAAkB;SAC3B;QACD,YAAY,EAAE;YACZ,SAAS,EAAE,mBAAmB;YAC9B,MAAM,EAAE,wBAAwB;SACjC;QACD,KAAK,EAAE;YACL,SAAS,EAAE,kBAAkB;YAC7B,MAAM,EAAE,kBAAkB;SAC3B;QACD,OAAO,EAAE;YACP,SAAS,EAAE,cAAc;YACzB,MAAM,EAAE,mBAAmB;SAC5B;QACD,gBAAgB,EAAE;YAChB,SAAS,EAAE,0BAA0B;YACrC,MAAM,EAAE,0BAA0B;SACnC;KACF,CAAA;IACD,OAAO,MAAA,WAAW,CAAC,IAAI,CAAC,mCAAI,WAAW,CAAC,KAAK,CAAA;AAC/C,CAAC","sourcesContent":["import type { PlatformFacetType } from '../../types/models/facet.model'\nimport type { FacetConfig } from './types'\nimport { booleanFilterSchema } from '../models/filters/boolean-filter.schema'\nimport { editableNumberFilterSchema } from '../models/filters/editable-number-filter.schema'\nimport { hierarchicalFilterSchema } from '../models/filters/hierarchical-filter.schema'\nimport { numberFilterSchema } from '../models/filters/number-filter.schema'\nimport { simpleFilterSchema } from '../models/filters/simple-filter.schema'\n\n/**\n * Returns the facet's config.\n *\n * @param type - The facet type to resolve the configuration.\n * @returns The facet's config.\n *\n * @public\n */\nexport function getFacetConfig(type: PlatformFacetType): FacetConfig {\n const typeConfigs: Record<PlatformFacetType, FacetConfig> = {\n value: {\n modelName: 'SimpleFacet',\n schema: simpleFilterSchema,\n },\n hierarchical: {\n modelName: 'HierarchicalFacet',\n schema: hierarchicalFilterSchema,\n },\n range: {\n modelName: 'NumberRangeFacet',\n schema: numberFilterSchema,\n },\n boolean: {\n modelName: 'BooleanFacet',\n schema: booleanFilterSchema,\n },\n 'editable-range': {\n modelName: 'EditableNumberRangeFacet',\n schema: editableNumberFilterSchema,\n },\n }\n return typeConfigs[type] ?? typeConfigs.value\n}\n"]}
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/schemas/facets/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAA;AAC5F,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAA;AACvF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAA;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAA;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAA;AAE3E;;;;;;;GAOG;AACH,MAAM,UAAU,cAAc,CAAC,IAAuB;;IACpD,MAAM,WAAW,GAA2C;QAC1D,KAAK,EAAE;YACL,SAAS,EAAE,aAAa;YACxB,MAAM,EAAE,kBAAkB;SAC3B;QACD,YAAY,EAAE;YACZ,SAAS,EAAE,mBAAmB;YAC9B,MAAM,EAAE,wBAAwB;SACjC;QACD,KAAK,EAAE;YACL,SAAS,EAAE,kBAAkB;YAC7B,MAAM,EAAE,kBAAkB;SAC3B;QACD,OAAO,EAAE;YACP,SAAS,EAAE,cAAc;YACzB,MAAM,EAAE,mBAAmB;SAC5B;QACD,gBAAgB,EAAE;YAChB,SAAS,EAAE,0BAA0B;YACrC,MAAM,EAAE,0BAA0B;SACnC;QACD,MAAM,EAAE;YACN,SAAS,EAAE,aAAa;YACxB,MAAM,EAAE,kBAAkB;SAC3B;KACF,CAAA;IACD,OAAO,MAAA,WAAW,CAAC,IAAI,CAAC,mCAAI,WAAW,CAAC,KAAK,CAAA;AAC/C,CAAC","sourcesContent":["import type { PlatformFacetType } from '../../types/models/facet.model'\nimport type { FacetConfig } from './types'\nimport { booleanFilterSchema } from '../models/filters/boolean-filter.schema'\nimport { editableNumberFilterSchema } from '../models/filters/editable-number-filter.schema'\nimport { hierarchicalFilterSchema } from '../models/filters/hierarchical-filter.schema'\nimport { numberFilterSchema } from '../models/filters/number-filter.schema'\nimport { simpleFilterSchema } from '../models/filters/simple-filter.schema'\nimport { sliderFilterSchema } from '../models/filters/slider-filter.schema'\n\n/**\n * Returns the facet's config.\n *\n * @param type - The facet type to resolve the configuration.\n * @returns The facet's config.\n *\n * @public\n */\nexport function getFacetConfig(type: PlatformFacetType): FacetConfig {\n const typeConfigs: Record<PlatformFacetType, FacetConfig> = {\n value: {\n modelName: 'SimpleFacet',\n schema: simpleFilterSchema,\n },\n hierarchical: {\n modelName: 'HierarchicalFacet',\n schema: hierarchicalFilterSchema,\n },\n range: {\n modelName: 'NumberRangeFacet',\n schema: numberFilterSchema,\n },\n boolean: {\n modelName: 'BooleanFacet',\n schema: booleanFilterSchema,\n },\n 'editable-range': {\n modelName: 'EditableNumberRangeFacet',\n schema: editableNumberFilterSchema,\n },\n slider: {\n modelName: 'SliderFacet',\n schema: sliderFilterSchema,\n },\n }\n return typeConfigs[type] ?? typeConfigs.value\n}\n"]}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createMutableSchema } from '@empathyco/x-adapter';
|
|
2
|
-
import { getTaggingInfoFromUrl } from '../../../mappers/url.utils';
|
|
3
2
|
import { resultSchema } from '../result.schema';
|
|
4
3
|
/**
|
|
5
4
|
* Default implementation for the AiSuggestionSearchSchema.
|
|
@@ -12,11 +11,5 @@ export const aiSuggestionSearchSchema = createMutableSchema({
|
|
|
12
11
|
$subSchema: resultSchema,
|
|
13
12
|
},
|
|
14
13
|
numFound: 'numFound',
|
|
15
|
-
tagging: ({ tagging }) => {
|
|
16
|
-
var _a;
|
|
17
|
-
return ({
|
|
18
|
-
query: getTaggingInfoFromUrl((_a = tagging === null || tagging === void 0 ? void 0 : tagging.query) !== null && _a !== void 0 ? _a : ''),
|
|
19
|
-
});
|
|
20
|
-
},
|
|
21
14
|
});
|
|
22
15
|
//# sourceMappingURL=suggestion-search.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suggestion-search.schema.js","sourceRoot":"","sources":["../../../../../src/schemas/models/ai/suggestion-search.schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"suggestion-search.schema.js","sourceRoot":"","sources":["../../../../../src/schemas/models/ai/suggestion-search.schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE/C;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,mBAAmB,CAGzD;IACA,KAAK,EAAE,OAAO;IACd,OAAO,EAAE;QACP,KAAK,EAAE,SAAS;QAChB,UAAU,EAAE,YAAY;KACzB;IACD,QAAQ,EAAE,UAAU;CACrB,CAAC,CAAA","sourcesContent":["import type { AiSuggestionSearch } from '@empathyco/x-types'\nimport type { PlatformAiSuggestionSearch } from '../../../types/models/ai/suggestion-search.model'\nimport { createMutableSchema } from '@empathyco/x-adapter'\nimport { resultSchema } from '../result.schema'\n\n/**\n * Default implementation for the AiSuggestionSearchSchema.\n * @public\n */\nexport const aiSuggestionSearchSchema = createMutableSchema<\n PlatformAiSuggestionSearch,\n AiSuggestionSearch\n>({\n query: 'query',\n results: {\n $path: 'results',\n $subSchema: resultSchema,\n },\n numFound: 'numFound',\n})\n"]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createMutableSchema } from '@empathyco/x-adapter';
|
|
2
|
+
import { getTaggingInfoFromUrl } from '../../../mappers/url.utils';
|
|
2
3
|
import { aiSuggestionSearchSchema } from './suggestion-search.schema';
|
|
3
4
|
/**
|
|
4
5
|
* Default implementation for the AIOverviewSuggestionsSearchSchema.
|
|
@@ -9,5 +10,13 @@ export const aiSuggestionsSearchSchema = createMutableSchema({
|
|
|
9
10
|
$path: 'items',
|
|
10
11
|
$subSchema: aiSuggestionSearchSchema,
|
|
11
12
|
},
|
|
13
|
+
suggestionsTagging: {
|
|
14
|
+
query: ({ tagging }) => { var _a; return getTaggingInfoFromUrl((_a = tagging === null || tagging === void 0 ? void 0 : tagging.query) !== null && _a !== void 0 ? _a : ''); },
|
|
15
|
+
add2cart: ({ tagging }) => { var _a; return getTaggingInfoFromUrl((_a = tagging === null || tagging === void 0 ? void 0 : tagging.add2cart) !== null && _a !== void 0 ? _a : ''); },
|
|
16
|
+
click: ({ tagging }) => { var _a; return getTaggingInfoFromUrl((_a = tagging === null || tagging === void 0 ? void 0 : tagging.click) !== null && _a !== void 0 ? _a : ''); },
|
|
17
|
+
display: ({ tagging }) => { var _a; return getTaggingInfoFromUrl((_a = tagging === null || tagging === void 0 ? void 0 : tagging.display) !== null && _a !== void 0 ? _a : ''); },
|
|
18
|
+
displayClick: ({ tagging }) => { var _a; return getTaggingInfoFromUrl((_a = tagging === null || tagging === void 0 ? void 0 : tagging.displayClick) !== null && _a !== void 0 ? _a : ''); },
|
|
19
|
+
checkout: ({ tagging }) => { var _a; return getTaggingInfoFromUrl((_a = tagging === null || tagging === void 0 ? void 0 : tagging.checkout) !== null && _a !== void 0 ? _a : ''); },
|
|
20
|
+
},
|
|
12
21
|
});
|
|
13
22
|
//# sourceMappingURL=suggestions-search.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suggestions-search.schema.js","sourceRoot":"","sources":["../../../../../src/schemas/models/ai/suggestions-search.schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAErE;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,mBAAmB,CAG1D;IACA,WAAW,EAAE;QACX,KAAK,EAAE,OAAO;QACd,UAAU,EAAE,wBAAwB;KACrC;CACF,CAAC,CAAA","sourcesContent":["import type { AiSuggestionsSearchResponse } from '@empathyco/x-types'\nimport type { PlatformAiSuggestionsSearchResponse } from '../../../types'\nimport { createMutableSchema } from '@empathyco/x-adapter'\nimport { aiSuggestionSearchSchema } from './suggestion-search.schema'\n\n/**\n * Default implementation for the AIOverviewSuggestionsSearchSchema.\n * @public\n */\nexport const aiSuggestionsSearchSchema = createMutableSchema<\n PlatformAiSuggestionsSearchResponse,\n AiSuggestionsSearchResponse\n>({\n suggestions: {\n $path: 'items',\n $subSchema: aiSuggestionSearchSchema,\n },\n})\n"]}
|
|
1
|
+
{"version":3,"file":"suggestions-search.schema.js","sourceRoot":"","sources":["../../../../../src/schemas/models/ai/suggestions-search.schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAErE;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,mBAAmB,CAG1D;IACA,WAAW,EAAE;QACX,KAAK,EAAE,OAAO;QACd,UAAU,EAAE,wBAAwB;KACrC;IACD,kBAAkB,EAAE;QAClB,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,WAAC,OAAA,qBAAqB,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,mCAAI,EAAE,CAAC,CAAA,EAAA;QACnE,QAAQ,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,WAAC,OAAA,qBAAqB,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,EAAE,CAAC,CAAA,EAAA;QACzE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,WAAC,OAAA,qBAAqB,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,mCAAI,EAAE,CAAC,CAAA,EAAA;QACnE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,WAAC,OAAA,qBAAqB,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,mCAAI,EAAE,CAAC,CAAA,EAAA;QACvE,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,WAAC,OAAA,qBAAqB,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY,mCAAI,EAAE,CAAC,CAAA,EAAA;QACjF,QAAQ,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,WAAC,OAAA,qBAAqB,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,mCAAI,EAAE,CAAC,CAAA,EAAA;KAC1E;CACF,CAAC,CAAA","sourcesContent":["import type { AiSuggestionsSearchResponse } from '@empathyco/x-types'\nimport type { PlatformAiSuggestionsSearchResponse } from '../../../types'\nimport { createMutableSchema } from '@empathyco/x-adapter'\nimport { getTaggingInfoFromUrl } from '../../../mappers/url.utils'\nimport { aiSuggestionSearchSchema } from './suggestion-search.schema'\n\n/**\n * Default implementation for the AIOverviewSuggestionsSearchSchema.\n * @public\n */\nexport const aiSuggestionsSearchSchema = createMutableSchema<\n PlatformAiSuggestionsSearchResponse,\n AiSuggestionsSearchResponse\n>({\n suggestions: {\n $path: 'items',\n $subSchema: aiSuggestionSearchSchema,\n },\n suggestionsTagging: {\n query: ({ tagging }) => getTaggingInfoFromUrl(tagging?.query ?? ''),\n add2cart: ({ tagging }) => getTaggingInfoFromUrl(tagging?.add2cart ?? ''),\n click: ({ tagging }) => getTaggingInfoFromUrl(tagging?.click ?? ''),\n display: ({ tagging }) => getTaggingInfoFromUrl(tagging?.display ?? ''),\n displayClick: ({ tagging }) => getTaggingInfoFromUrl(tagging?.displayClick ?? ''),\n checkout: ({ tagging }) => getTaggingInfoFromUrl(tagging?.checkout ?? ''),\n },\n})\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"facet.schema.js","sourceRoot":"","sources":["../../../../src/schemas/models/facet.schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"facet.schema.js","sourceRoot":"","sources":["../../../../src/schemas/models/facet.schema.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAEhD;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,mBAAmB,CAQ5C;IACA,EAAE,EAAE,OAAO;IACX,KAAK,EAAE,OAAO;IACd,+CAA+C;IAC/C,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,SAAgB;IAC9D,OAAO,EAAE;QACP,KAAK,EAAE,QAAQ;QACf,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,MAAM;QACrD,QAAQ,EAAE;YACR,OAAO,EAAE,OAAO;SACjB;KACF;CACF,CAAC,CAAA","sourcesContent":["import type {\n BooleanFacet,\n EditableNumberRangeFacet,\n HierarchicalFacet,\n NumberRangeFacet,\n SimpleFacet,\n SliderFacet,\n} from '@empathyco/x-types'\nimport type { PlatformFacet } from '../../types/models/facet.model'\nimport { createMutableSchema } from '@empathyco/x-adapter'\nimport { getFacetConfig } from '../facets/utils'\n\n/**\n * Default implementation for the FacetSchema.\n *\n * @public\n */\nexport const facetSchema = createMutableSchema<\n PlatformFacet,\n | HierarchicalFacet\n | NumberRangeFacet\n | SimpleFacet\n | EditableNumberRangeFacet\n | BooleanFacet\n | SliderFacet\n>({\n id: 'facet',\n label: 'label',\n // eslint-disable-next-line ts/no-unsafe-return\n modelName: ({ type }) => getFacetConfig(type).modelName as any,\n filters: {\n $path: 'values',\n $subSchema: ({ type }) => getFacetConfig(type).schema,\n $context: {\n facetId: 'facet',\n },\n },\n})\n"]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { createMutableSchema } from '@empathyco/x-adapter';
|
|
2
|
+
const getFilter = (context) => {
|
|
3
|
+
var _a, _b;
|
|
4
|
+
if (!context) {
|
|
5
|
+
return undefined;
|
|
6
|
+
}
|
|
7
|
+
const facetId = context.facetId;
|
|
8
|
+
return (_b = (_a = context.requestParameters) === null || _a === void 0 ? void 0 : _a.filter) === null || _b === void 0 ? void 0 : _b.find(filter => filter.startsWith(`${facetId}:`));
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Default implementation for the sliderFilterSchema.
|
|
12
|
+
*
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
export const sliderFilterSchema = createMutableSchema({
|
|
16
|
+
id: ({ min, max }, context) => {
|
|
17
|
+
const facetId = context === null || context === void 0 ? void 0 : context.facetId;
|
|
18
|
+
const filter = getFilter(context);
|
|
19
|
+
return filter !== null && filter !== void 0 ? filter : `${facetId}:${min}-${max}`;
|
|
20
|
+
},
|
|
21
|
+
facetId: (_, context) => context === null || context === void 0 ? void 0 : context.facetId,
|
|
22
|
+
selected: () => false,
|
|
23
|
+
modelName: () => 'SliderFilter',
|
|
24
|
+
range: ({ min, max }) => ({
|
|
25
|
+
min: Number(min),
|
|
26
|
+
max: Number(max),
|
|
27
|
+
}),
|
|
28
|
+
selectedRange: (_, context) => {
|
|
29
|
+
const filter = getFilter(context);
|
|
30
|
+
if (!filter) {
|
|
31
|
+
return { min: null, max: null };
|
|
32
|
+
}
|
|
33
|
+
const [, range] = filter.split(':');
|
|
34
|
+
const match = range.match(/^(-?\d+(?:\.\d+)?)-(-?\d+(?:\.\d+)?)$/);
|
|
35
|
+
if (!match) {
|
|
36
|
+
return { min: null, max: null };
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
min: Number(match[1]),
|
|
40
|
+
max: Number(match[2]),
|
|
41
|
+
};
|
|
42
|
+
},
|
|
43
|
+
unit: 'unit',
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=slider-filter.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slider-filter.schema.js","sourceRoot":"","sources":["../../../../../src/schemas/models/filters/slider-filter.schema.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAE1D,MAAM,SAAS,GAAG,CAAC,OAAkC,EAAE,EAAE;;IACvD,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,SAAS,CAAA;IAClB,CAAC;IAED,MAAM,OAAO,GAAG,OAAO,CAAC,OAAiB,CAAA;IACzC,OAAO,MAAC,MAAA,OAAO,CAAC,iBAAiB,0CAAE,MAA+B,0CAAE,IAAI,CAAC,MAAM,CAAC,EAAE,CAChF,MAAM,CAAC,UAAU,CAAC,GAAG,OAAO,GAAG,CAAC,CACjC,CAAA;AACH,CAAC,CAAA;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,mBAAmB,CAAqC;IACxF,EAAE,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE;QAC5B,MAAM,OAAO,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAiB,CAAA;QAC1C,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC,CAAA;QAEjC,OAAO,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,GAAG,OAAO,IAAI,GAAG,IAAI,GAAG,EAAE,CAAA;IAC7C,CAAC;IACD,OAAO,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAiB;IACnD,QAAQ,EAAE,GAAG,EAAE,CAAC,KAAK;IACrB,SAAS,EAAE,GAAG,EAAE,CAAC,cAAc;IAC/B,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;QACxB,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC;QAChB,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC;KACjB,CAAC;IACF,aAAa,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE;QAC5B,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC,CAAA;QAEjC,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,CAAA;QACjC,CAAC;QAED,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;QACnC,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,uCAAuC,CAAC,CAAA;QAElE,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,CAAA;QACjC,CAAC;QAED,OAAO;YACL,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACrB,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;SACtB,CAAA;IACH,CAAC;IAED,IAAI,EAAE,MAAM;CACb,CAAC,CAAA","sourcesContent":["import type { MapperContext } from '@empathyco/x-adapter'\nimport type { SliderFilter } from '@empathyco/x-types'\nimport type { PlatformSliderFilter } from '../../../types/models/facet.model'\nimport { createMutableSchema } from '@empathyco/x-adapter'\n\nconst getFilter = (context: MapperContext | undefined) => {\n if (!context) {\n return undefined\n }\n\n const facetId = context.facetId as string\n return (context.requestParameters?.filter as string[] | undefined)?.find(filter =>\n filter.startsWith(`${facetId}:`),\n )\n}\n\n/**\n * Default implementation for the sliderFilterSchema.\n *\n * @public\n */\nexport const sliderFilterSchema = createMutableSchema<PlatformSliderFilter, SliderFilter>({\n id: ({ min, max }, context) => {\n const facetId = context?.facetId as string\n const filter = getFilter(context)\n\n return filter ?? `${facetId}:${min}-${max}`\n },\n facetId: (_, context) => context?.facetId as string,\n selected: () => false,\n modelName: () => 'SliderFilter',\n range: ({ min, max }) => ({\n min: Number(min),\n max: Number(max),\n }),\n selectedRange: (_, context) => {\n const filter = getFilter(context)\n\n if (!filter) {\n return { min: null, max: null }\n }\n\n const [, range] = filter.split(':')\n const match = range.match(/^(-?\\d+(?:\\.\\d+)?)-(-?\\d+(?:\\.\\d+)?)$/)\n\n if (!match) {\n return { min: null, max: null }\n }\n\n return {\n min: Number(match[1]),\n max: Number(match[2]),\n }\n },\n\n unit: 'unit',\n})\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suggestion-search.model.js","sourceRoot":"","sources":["../../../../../src/types/models/ai/suggestion-search.model.ts"],"names":[],"mappings":"","sourcesContent":["import type { PlatformResult } from '../result.model'\n\n/**\n * Each platform suggestion search is a query and the platform results of that query.\n * @public\n */\nexport interface PlatformAiSuggestionSearch {\n query: string\n results: PlatformResult[]\n numFound: number\n
|
|
1
|
+
{"version":3,"file":"suggestion-search.model.js","sourceRoot":"","sources":["../../../../../src/types/models/ai/suggestion-search.model.ts"],"names":[],"mappings":"","sourcesContent":["import type { PlatformResult } from '../result.model'\n\n/**\n * Each platform suggestion search is a query and the platform results of that query.\n * @public\n */\nexport interface PlatformAiSuggestionSearch {\n query: string\n results: PlatformResult[]\n numFound: number\n}\n\nexport interface PlatformAiSuggestionSearchTagging {\n query: string\n add2cart: string\n click: string\n display: string\n displayClick: string\n checkout: string\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"facet.model.js","sourceRoot":"","sources":["../../../../src/types/models/facet.model.ts"],"names":[],"mappings":"","sourcesContent":["import type { BooleanFilter, Facet, Filter } from '@empathyco/x-types'\n\n/**\n * Facet model for the `platform` API.\n *\n * @public\n */\nexport interface PlatformFacet {\n label: string\n facet: string\n type: PlatformFacetType\n values: PlatformFilter[]\n}\n\n/**\n * Facet type for the `platform` API. It can be: value, hierarchical or range.\n *\n * @public\n */\nexport type PlatformFacetType
|
|
1
|
+
{"version":3,"file":"facet.model.js","sourceRoot":"","sources":["../../../../src/types/models/facet.model.ts"],"names":[],"mappings":"","sourcesContent":["import type { BooleanFilter, Facet, Filter } from '@empathyco/x-types'\n\n/**\n * Facet model for the `platform` API.\n *\n * @public\n */\nexport interface PlatformFacet {\n label: string\n facet: string\n type: PlatformFacetType\n values: (PlatformFilter | PlatformSliderFilter)[]\n}\n\n/**\n * Facet type for the `platform` API. It can be: value, hierarchical or range.\n *\n * @public\n */\nexport type PlatformFacetType =\n | 'value'\n | 'hierarchical'\n | 'range'\n | 'editable-range'\n | 'boolean'\n | 'slider'\n\n/**\n * Filter model for the `platform` API.\n *\n * @public\n */\nexport interface PlatformFilter {\n count: number\n filter: string\n id: string\n value: string\n}\n\n/**\n * Slider filter model for the `platform` API, used when {@link PlatformFacetType} is `slider`.\n *\n * @public\n */\nexport interface PlatformSliderFilter {\n min: string\n max: string\n unit: Intl.NumberFormatOptions['style']\n}\n\n/**\n * HierarchicalFilter model for the `platform` API.\n *\n * @public\n */\nexport interface PlatformHierarchicalFilter extends PlatformFilter {\n children: PlatformFacet\n}\n\n/**\n * Hierarchical Facet model used when combining search response mappers.\n *\n * @internal\n */\nexport interface AdapterHierarchicalFacet extends Facet {\n /** Model name to indicate the facet type. */\n modelName: 'HierarchicalFacet'\n /** Filters available for the facet. */\n filters: AdapterHierarchicalFilter[]\n}\n\n/**\n * Hierarchical Filter model used when combining search response mappers.\n *\n * @internal\n */\nexport interface AdapterHierarchicalFilter extends BooleanFilter {\n /** Model name to indicate the filter type. */\n modelName: 'HierarchicalFilter'\n /** A unique id used to reference the parent filter or null if it hasn't. */\n parentId: Filter['id'] | null\n /** Descendants filters. */\n children?: AdapterHierarchicalFilter[]\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suggestions-search-response.model.js","sourceRoot":"","sources":["../../../../../src/types/responses/ai/suggestions-search-response.model.ts"],"names":[],"mappings":"","sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"suggestions-search-response.model.js","sourceRoot":"","sources":["../../../../../src/types/responses/ai/suggestions-search-response.model.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n PlatformAiSuggestionSearch,\n PlatformAiSuggestionSearchTagging,\n} from '../../models/ai/suggestion-search.model'\n\n/**\n * Response for the `AI suggestions search` endpoint.\n *\n * @public\n */\nexport interface PlatformAiSuggestionsSearchResponse {\n items: PlatformAiSuggestionSearch[]\n tagging: PlatformAiSuggestionSearchTagging\n}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { BooleanFacet, EditableNumberRangeFacet, HierarchicalFacet, NumberRangeFacet, SimpleFacet } from '@empathyco/x-types';
|
|
1
|
+
import type { BooleanFacet, EditableNumberRangeFacet, HierarchicalFacet, NumberRangeFacet, SimpleFacet, SliderFacet } from '@empathyco/x-types';
|
|
2
2
|
import type { PlatformFacet } from '../../types/models/facet.model';
|
|
3
3
|
/**
|
|
4
4
|
* Default implementation for the FacetSchema.
|
|
5
5
|
*
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
8
|
-
export declare const facetSchema: import("@empathyco/x-adapter").MutableSchema<PlatformFacet, HierarchicalFacet | NumberRangeFacet | SimpleFacet | EditableNumberRangeFacet | BooleanFacet>;
|
|
8
|
+
export declare const facetSchema: import("@empathyco/x-adapter").MutableSchema<PlatformFacet, HierarchicalFacet | NumberRangeFacet | SimpleFacet | EditableNumberRangeFacet | BooleanFacet | SliderFacet>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SliderFilter } from '@empathyco/x-types';
|
|
2
|
+
import type { PlatformSliderFilter } from '../../../types/models/facet.model';
|
|
3
|
+
/**
|
|
4
|
+
* Default implementation for the sliderFilterSchema.
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare const sliderFilterSchema: import("@empathyco/x-adapter").MutableSchema<PlatformSliderFilter, SliderFilter>;
|
|
@@ -7,7 +7,12 @@ export interface PlatformAiSuggestionSearch {
|
|
|
7
7
|
query: string;
|
|
8
8
|
results: PlatformResult[];
|
|
9
9
|
numFound: number;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
}
|
|
11
|
+
export interface PlatformAiSuggestionSearchTagging {
|
|
12
|
+
query: string;
|
|
13
|
+
add2cart: string;
|
|
14
|
+
click: string;
|
|
15
|
+
display: string;
|
|
16
|
+
displayClick: string;
|
|
17
|
+
checkout: string;
|
|
13
18
|
}
|
|
@@ -8,14 +8,14 @@ export interface PlatformFacet {
|
|
|
8
8
|
label: string;
|
|
9
9
|
facet: string;
|
|
10
10
|
type: PlatformFacetType;
|
|
11
|
-
values: PlatformFilter[];
|
|
11
|
+
values: (PlatformFilter | PlatformSliderFilter)[];
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* Facet type for the `platform` API. It can be: value, hierarchical or range.
|
|
15
15
|
*
|
|
16
16
|
* @public
|
|
17
17
|
*/
|
|
18
|
-
export type PlatformFacetType = 'value' | 'hierarchical' | 'range' | 'editable-range' | 'boolean';
|
|
18
|
+
export type PlatformFacetType = 'value' | 'hierarchical' | 'range' | 'editable-range' | 'boolean' | 'slider';
|
|
19
19
|
/**
|
|
20
20
|
* Filter model for the `platform` API.
|
|
21
21
|
*
|
|
@@ -27,6 +27,16 @@ export interface PlatformFilter {
|
|
|
27
27
|
id: string;
|
|
28
28
|
value: string;
|
|
29
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* Slider filter model for the `platform` API, used when {@link PlatformFacetType} is `slider`.
|
|
32
|
+
*
|
|
33
|
+
* @public
|
|
34
|
+
*/
|
|
35
|
+
export interface PlatformSliderFilter {
|
|
36
|
+
min: string;
|
|
37
|
+
max: string;
|
|
38
|
+
unit: Intl.NumberFormatOptions['style'];
|
|
39
|
+
}
|
|
30
40
|
/**
|
|
31
41
|
* HierarchicalFilter model for the `platform` API.
|
|
32
42
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PlatformAiSuggestionSearch } from '../../models/ai/suggestion-search.model';
|
|
1
|
+
import type { PlatformAiSuggestionSearch, PlatformAiSuggestionSearchTagging } from '../../models/ai/suggestion-search.model';
|
|
2
2
|
/**
|
|
3
3
|
* Response for the `AI suggestions search` endpoint.
|
|
4
4
|
*
|
|
@@ -6,4 +6,5 @@ import type { PlatformAiSuggestionSearch } from '../../models/ai/suggestion-sear
|
|
|
6
6
|
*/
|
|
7
7
|
export interface PlatformAiSuggestionsSearchResponse {
|
|
8
8
|
items: PlatformAiSuggestionSearch[];
|
|
9
|
+
tagging: PlatformAiSuggestionSearchTagging;
|
|
9
10
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empathyco/x-adapter-platform",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "A search client for the Empathy Platform API",
|
|
5
5
|
"author": "Empathy Systems Corporation S.L.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@empathyco/x-adapter": "8.2.0",
|
|
52
|
-
"@empathyco/x-types": "
|
|
52
|
+
"@empathyco/x-types": "11.0.0",
|
|
53
53
|
"@empathyco/x-utils": "1.1.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"access": "public"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "806036d1d7b7e5dd5fb939259f1cdb5123aa3e7a"
|
|
67
67
|
}
|
|
@@ -1438,6 +1438,15 @@
|
|
|
1438
1438
|
"text": "BooleanFacet",
|
|
1439
1439
|
"canonicalReference": "@empathyco/x-adapter-platform!BooleanFacet:interface"
|
|
1440
1440
|
},
|
|
1441
|
+
{
|
|
1442
|
+
"kind": "Content",
|
|
1443
|
+
"text": " | "
|
|
1444
|
+
},
|
|
1445
|
+
{
|
|
1446
|
+
"kind": "Reference",
|
|
1447
|
+
"text": "SliderFacet",
|
|
1448
|
+
"canonicalReference": "@empathyco/x-adapter-platform!SliderFacet:interface"
|
|
1449
|
+
},
|
|
1441
1450
|
{
|
|
1442
1451
|
"kind": "Content",
|
|
1443
1452
|
"text": ">"
|
|
@@ -1449,7 +1458,7 @@
|
|
|
1449
1458
|
"name": "facetSchema",
|
|
1450
1459
|
"variableTypeTokenRange": {
|
|
1451
1460
|
"startIndex": 1,
|
|
1452
|
-
"endIndex":
|
|
1461
|
+
"endIndex": 18
|
|
1453
1462
|
}
|
|
1454
1463
|
},
|
|
1455
1464
|
{
|
|
@@ -3338,19 +3347,64 @@
|
|
|
3338
3347
|
"startIndex": 1,
|
|
3339
3348
|
"endIndex": 3
|
|
3340
3349
|
}
|
|
3350
|
+
}
|
|
3351
|
+
],
|
|
3352
|
+
"extendsTokenRanges": []
|
|
3353
|
+
},
|
|
3354
|
+
{
|
|
3355
|
+
"kind": "Interface",
|
|
3356
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformAiSuggestionSearchTagging:interface",
|
|
3357
|
+
"docComment": "",
|
|
3358
|
+
"excerptTokens": [
|
|
3359
|
+
{
|
|
3360
|
+
"kind": "Content",
|
|
3361
|
+
"text": "export interface PlatformAiSuggestionSearchTagging "
|
|
3362
|
+
}
|
|
3363
|
+
],
|
|
3364
|
+
"fileUrlPath": "dist/types/types/models/ai/suggestion-search.model.d.ts",
|
|
3365
|
+
"releaseTag": "Public",
|
|
3366
|
+
"name": "PlatformAiSuggestionSearchTagging",
|
|
3367
|
+
"preserveMemberOrder": false,
|
|
3368
|
+
"members": [
|
|
3369
|
+
{
|
|
3370
|
+
"kind": "PropertySignature",
|
|
3371
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformAiSuggestionSearchTagging#add2cart:member",
|
|
3372
|
+
"docComment": "",
|
|
3373
|
+
"excerptTokens": [
|
|
3374
|
+
{
|
|
3375
|
+
"kind": "Content",
|
|
3376
|
+
"text": "add2cart: "
|
|
3377
|
+
},
|
|
3378
|
+
{
|
|
3379
|
+
"kind": "Content",
|
|
3380
|
+
"text": "string"
|
|
3381
|
+
},
|
|
3382
|
+
{
|
|
3383
|
+
"kind": "Content",
|
|
3384
|
+
"text": ";"
|
|
3385
|
+
}
|
|
3386
|
+
],
|
|
3387
|
+
"isReadonly": false,
|
|
3388
|
+
"isOptional": false,
|
|
3389
|
+
"releaseTag": "Public",
|
|
3390
|
+
"name": "add2cart",
|
|
3391
|
+
"propertyTypeTokenRange": {
|
|
3392
|
+
"startIndex": 1,
|
|
3393
|
+
"endIndex": 2
|
|
3394
|
+
}
|
|
3341
3395
|
},
|
|
3342
3396
|
{
|
|
3343
3397
|
"kind": "PropertySignature",
|
|
3344
|
-
"canonicalReference": "@empathyco/x-adapter-platform!
|
|
3398
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformAiSuggestionSearchTagging#checkout:member",
|
|
3345
3399
|
"docComment": "",
|
|
3346
3400
|
"excerptTokens": [
|
|
3347
3401
|
{
|
|
3348
3402
|
"kind": "Content",
|
|
3349
|
-
"text": "
|
|
3403
|
+
"text": "checkout: "
|
|
3350
3404
|
},
|
|
3351
3405
|
{
|
|
3352
3406
|
"kind": "Content",
|
|
3353
|
-
"text": "
|
|
3407
|
+
"text": "string"
|
|
3354
3408
|
},
|
|
3355
3409
|
{
|
|
3356
3410
|
"kind": "Content",
|
|
@@ -3358,9 +3412,117 @@
|
|
|
3358
3412
|
}
|
|
3359
3413
|
],
|
|
3360
3414
|
"isReadonly": false,
|
|
3361
|
-
"isOptional":
|
|
3415
|
+
"isOptional": false,
|
|
3362
3416
|
"releaseTag": "Public",
|
|
3363
|
-
"name": "
|
|
3417
|
+
"name": "checkout",
|
|
3418
|
+
"propertyTypeTokenRange": {
|
|
3419
|
+
"startIndex": 1,
|
|
3420
|
+
"endIndex": 2
|
|
3421
|
+
}
|
|
3422
|
+
},
|
|
3423
|
+
{
|
|
3424
|
+
"kind": "PropertySignature",
|
|
3425
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformAiSuggestionSearchTagging#click:member",
|
|
3426
|
+
"docComment": "",
|
|
3427
|
+
"excerptTokens": [
|
|
3428
|
+
{
|
|
3429
|
+
"kind": "Content",
|
|
3430
|
+
"text": "click: "
|
|
3431
|
+
},
|
|
3432
|
+
{
|
|
3433
|
+
"kind": "Content",
|
|
3434
|
+
"text": "string"
|
|
3435
|
+
},
|
|
3436
|
+
{
|
|
3437
|
+
"kind": "Content",
|
|
3438
|
+
"text": ";"
|
|
3439
|
+
}
|
|
3440
|
+
],
|
|
3441
|
+
"isReadonly": false,
|
|
3442
|
+
"isOptional": false,
|
|
3443
|
+
"releaseTag": "Public",
|
|
3444
|
+
"name": "click",
|
|
3445
|
+
"propertyTypeTokenRange": {
|
|
3446
|
+
"startIndex": 1,
|
|
3447
|
+
"endIndex": 2
|
|
3448
|
+
}
|
|
3449
|
+
},
|
|
3450
|
+
{
|
|
3451
|
+
"kind": "PropertySignature",
|
|
3452
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformAiSuggestionSearchTagging#display:member",
|
|
3453
|
+
"docComment": "",
|
|
3454
|
+
"excerptTokens": [
|
|
3455
|
+
{
|
|
3456
|
+
"kind": "Content",
|
|
3457
|
+
"text": "display: "
|
|
3458
|
+
},
|
|
3459
|
+
{
|
|
3460
|
+
"kind": "Content",
|
|
3461
|
+
"text": "string"
|
|
3462
|
+
},
|
|
3463
|
+
{
|
|
3464
|
+
"kind": "Content",
|
|
3465
|
+
"text": ";"
|
|
3466
|
+
}
|
|
3467
|
+
],
|
|
3468
|
+
"isReadonly": false,
|
|
3469
|
+
"isOptional": false,
|
|
3470
|
+
"releaseTag": "Public",
|
|
3471
|
+
"name": "display",
|
|
3472
|
+
"propertyTypeTokenRange": {
|
|
3473
|
+
"startIndex": 1,
|
|
3474
|
+
"endIndex": 2
|
|
3475
|
+
}
|
|
3476
|
+
},
|
|
3477
|
+
{
|
|
3478
|
+
"kind": "PropertySignature",
|
|
3479
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformAiSuggestionSearchTagging#displayClick:member",
|
|
3480
|
+
"docComment": "",
|
|
3481
|
+
"excerptTokens": [
|
|
3482
|
+
{
|
|
3483
|
+
"kind": "Content",
|
|
3484
|
+
"text": "displayClick: "
|
|
3485
|
+
},
|
|
3486
|
+
{
|
|
3487
|
+
"kind": "Content",
|
|
3488
|
+
"text": "string"
|
|
3489
|
+
},
|
|
3490
|
+
{
|
|
3491
|
+
"kind": "Content",
|
|
3492
|
+
"text": ";"
|
|
3493
|
+
}
|
|
3494
|
+
],
|
|
3495
|
+
"isReadonly": false,
|
|
3496
|
+
"isOptional": false,
|
|
3497
|
+
"releaseTag": "Public",
|
|
3498
|
+
"name": "displayClick",
|
|
3499
|
+
"propertyTypeTokenRange": {
|
|
3500
|
+
"startIndex": 1,
|
|
3501
|
+
"endIndex": 2
|
|
3502
|
+
}
|
|
3503
|
+
},
|
|
3504
|
+
{
|
|
3505
|
+
"kind": "PropertySignature",
|
|
3506
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformAiSuggestionSearchTagging#query:member",
|
|
3507
|
+
"docComment": "",
|
|
3508
|
+
"excerptTokens": [
|
|
3509
|
+
{
|
|
3510
|
+
"kind": "Content",
|
|
3511
|
+
"text": "query: "
|
|
3512
|
+
},
|
|
3513
|
+
{
|
|
3514
|
+
"kind": "Content",
|
|
3515
|
+
"text": "string"
|
|
3516
|
+
},
|
|
3517
|
+
{
|
|
3518
|
+
"kind": "Content",
|
|
3519
|
+
"text": ";"
|
|
3520
|
+
}
|
|
3521
|
+
],
|
|
3522
|
+
"isReadonly": false,
|
|
3523
|
+
"isOptional": false,
|
|
3524
|
+
"releaseTag": "Public",
|
|
3525
|
+
"name": "query",
|
|
3364
3526
|
"propertyTypeTokenRange": {
|
|
3365
3527
|
"startIndex": 1,
|
|
3366
3528
|
"endIndex": 2
|
|
@@ -3586,6 +3748,34 @@
|
|
|
3586
3748
|
"startIndex": 1,
|
|
3587
3749
|
"endIndex": 3
|
|
3588
3750
|
}
|
|
3751
|
+
},
|
|
3752
|
+
{
|
|
3753
|
+
"kind": "PropertySignature",
|
|
3754
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformAiSuggestionsSearchResponse#tagging:member",
|
|
3755
|
+
"docComment": "",
|
|
3756
|
+
"excerptTokens": [
|
|
3757
|
+
{
|
|
3758
|
+
"kind": "Content",
|
|
3759
|
+
"text": "tagging: "
|
|
3760
|
+
},
|
|
3761
|
+
{
|
|
3762
|
+
"kind": "Reference",
|
|
3763
|
+
"text": "PlatformAiSuggestionSearchTagging",
|
|
3764
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformAiSuggestionSearchTagging:interface"
|
|
3765
|
+
},
|
|
3766
|
+
{
|
|
3767
|
+
"kind": "Content",
|
|
3768
|
+
"text": ";"
|
|
3769
|
+
}
|
|
3770
|
+
],
|
|
3771
|
+
"isReadonly": false,
|
|
3772
|
+
"isOptional": false,
|
|
3773
|
+
"releaseTag": "Public",
|
|
3774
|
+
"name": "tagging",
|
|
3775
|
+
"propertyTypeTokenRange": {
|
|
3776
|
+
"startIndex": 1,
|
|
3777
|
+
"endIndex": 2
|
|
3778
|
+
}
|
|
3589
3779
|
}
|
|
3590
3780
|
],
|
|
3591
3781
|
"extendsTokenRanges": []
|
|
@@ -3942,6 +4132,10 @@
|
|
|
3942
4132
|
"kind": "Content",
|
|
3943
4133
|
"text": "values: "
|
|
3944
4134
|
},
|
|
4135
|
+
{
|
|
4136
|
+
"kind": "Content",
|
|
4137
|
+
"text": "("
|
|
4138
|
+
},
|
|
3945
4139
|
{
|
|
3946
4140
|
"kind": "Reference",
|
|
3947
4141
|
"text": "PlatformFilter",
|
|
@@ -3949,7 +4143,16 @@
|
|
|
3949
4143
|
},
|
|
3950
4144
|
{
|
|
3951
4145
|
"kind": "Content",
|
|
3952
|
-
"text": "
|
|
4146
|
+
"text": " | "
|
|
4147
|
+
},
|
|
4148
|
+
{
|
|
4149
|
+
"kind": "Reference",
|
|
4150
|
+
"text": "PlatformSliderFilter",
|
|
4151
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformSliderFilter:interface"
|
|
4152
|
+
},
|
|
4153
|
+
{
|
|
4154
|
+
"kind": "Content",
|
|
4155
|
+
"text": ")[]"
|
|
3953
4156
|
},
|
|
3954
4157
|
{
|
|
3955
4158
|
"kind": "Content",
|
|
@@ -3962,7 +4165,7 @@
|
|
|
3962
4165
|
"name": "values",
|
|
3963
4166
|
"propertyTypeTokenRange": {
|
|
3964
4167
|
"startIndex": 1,
|
|
3965
|
-
"endIndex":
|
|
4168
|
+
"endIndex": 6
|
|
3966
4169
|
}
|
|
3967
4170
|
}
|
|
3968
4171
|
],
|
|
@@ -4103,7 +4306,7 @@
|
|
|
4103
4306
|
},
|
|
4104
4307
|
{
|
|
4105
4308
|
"kind": "Content",
|
|
4106
|
-
"text": "'value' | 'hierarchical' | 'range' | 'editable-range' | 'boolean'"
|
|
4309
|
+
"text": "'value' | 'hierarchical' | 'range' | 'editable-range' | 'boolean' | 'slider'"
|
|
4107
4310
|
},
|
|
4108
4311
|
{
|
|
4109
4312
|
"kind": "Content",
|
|
@@ -6739,6 +6942,110 @@
|
|
|
6739
6942
|
],
|
|
6740
6943
|
"extendsTokenRanges": []
|
|
6741
6944
|
},
|
|
6945
|
+
{
|
|
6946
|
+
"kind": "Interface",
|
|
6947
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformSliderFilter:interface",
|
|
6948
|
+
"docComment": "/**\n * Slider filter model for the `platform` API, used when {@link PlatformFacetType} is `slider`.\n *\n * @public\n */\n",
|
|
6949
|
+
"excerptTokens": [
|
|
6950
|
+
{
|
|
6951
|
+
"kind": "Content",
|
|
6952
|
+
"text": "export interface PlatformSliderFilter "
|
|
6953
|
+
}
|
|
6954
|
+
],
|
|
6955
|
+
"fileUrlPath": "dist/types/types/models/facet.model.d.ts",
|
|
6956
|
+
"releaseTag": "Public",
|
|
6957
|
+
"name": "PlatformSliderFilter",
|
|
6958
|
+
"preserveMemberOrder": false,
|
|
6959
|
+
"members": [
|
|
6960
|
+
{
|
|
6961
|
+
"kind": "PropertySignature",
|
|
6962
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformSliderFilter#max:member",
|
|
6963
|
+
"docComment": "",
|
|
6964
|
+
"excerptTokens": [
|
|
6965
|
+
{
|
|
6966
|
+
"kind": "Content",
|
|
6967
|
+
"text": "max: "
|
|
6968
|
+
},
|
|
6969
|
+
{
|
|
6970
|
+
"kind": "Content",
|
|
6971
|
+
"text": "string"
|
|
6972
|
+
},
|
|
6973
|
+
{
|
|
6974
|
+
"kind": "Content",
|
|
6975
|
+
"text": ";"
|
|
6976
|
+
}
|
|
6977
|
+
],
|
|
6978
|
+
"isReadonly": false,
|
|
6979
|
+
"isOptional": false,
|
|
6980
|
+
"releaseTag": "Public",
|
|
6981
|
+
"name": "max",
|
|
6982
|
+
"propertyTypeTokenRange": {
|
|
6983
|
+
"startIndex": 1,
|
|
6984
|
+
"endIndex": 2
|
|
6985
|
+
}
|
|
6986
|
+
},
|
|
6987
|
+
{
|
|
6988
|
+
"kind": "PropertySignature",
|
|
6989
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformSliderFilter#min:member",
|
|
6990
|
+
"docComment": "",
|
|
6991
|
+
"excerptTokens": [
|
|
6992
|
+
{
|
|
6993
|
+
"kind": "Content",
|
|
6994
|
+
"text": "min: "
|
|
6995
|
+
},
|
|
6996
|
+
{
|
|
6997
|
+
"kind": "Content",
|
|
6998
|
+
"text": "string"
|
|
6999
|
+
},
|
|
7000
|
+
{
|
|
7001
|
+
"kind": "Content",
|
|
7002
|
+
"text": ";"
|
|
7003
|
+
}
|
|
7004
|
+
],
|
|
7005
|
+
"isReadonly": false,
|
|
7006
|
+
"isOptional": false,
|
|
7007
|
+
"releaseTag": "Public",
|
|
7008
|
+
"name": "min",
|
|
7009
|
+
"propertyTypeTokenRange": {
|
|
7010
|
+
"startIndex": 1,
|
|
7011
|
+
"endIndex": 2
|
|
7012
|
+
}
|
|
7013
|
+
},
|
|
7014
|
+
{
|
|
7015
|
+
"kind": "PropertySignature",
|
|
7016
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformSliderFilter#unit:member",
|
|
7017
|
+
"docComment": "",
|
|
7018
|
+
"excerptTokens": [
|
|
7019
|
+
{
|
|
7020
|
+
"kind": "Content",
|
|
7021
|
+
"text": "unit: "
|
|
7022
|
+
},
|
|
7023
|
+
{
|
|
7024
|
+
"kind": "Reference",
|
|
7025
|
+
"text": "Intl.NumberFormatOptions",
|
|
7026
|
+
"canonicalReference": "!Intl.NumberFormatOptions:interface"
|
|
7027
|
+
},
|
|
7028
|
+
{
|
|
7029
|
+
"kind": "Content",
|
|
7030
|
+
"text": "['style']"
|
|
7031
|
+
},
|
|
7032
|
+
{
|
|
7033
|
+
"kind": "Content",
|
|
7034
|
+
"text": ";"
|
|
7035
|
+
}
|
|
7036
|
+
],
|
|
7037
|
+
"isReadonly": false,
|
|
7038
|
+
"isOptional": false,
|
|
7039
|
+
"releaseTag": "Public",
|
|
7040
|
+
"name": "unit",
|
|
7041
|
+
"propertyTypeTokenRange": {
|
|
7042
|
+
"startIndex": 1,
|
|
7043
|
+
"endIndex": 3
|
|
7044
|
+
}
|
|
7045
|
+
}
|
|
7046
|
+
],
|
|
7047
|
+
"extendsTokenRanges": []
|
|
7048
|
+
},
|
|
6742
7049
|
{
|
|
6743
7050
|
"kind": "Interface",
|
|
6744
7051
|
"canonicalReference": "@empathyco/x-adapter-platform!PlatformSuggestion:interface",
|
|
@@ -136,9 +136,10 @@ export interface FacetConfig {
|
|
|
136
136
|
// Warning: (ae-forgotten-export) The symbol "SimpleFacet" needs to be exported by the entry point index.d.ts
|
|
137
137
|
// Warning: (ae-forgotten-export) The symbol "EditableNumberRangeFacet" needs to be exported by the entry point index.d.ts
|
|
138
138
|
// Warning: (ae-forgotten-export) The symbol "BooleanFacet" needs to be exported by the entry point index.d.ts
|
|
139
|
+
// Warning: (ae-forgotten-export) The symbol "SliderFacet" needs to be exported by the entry point index.d.ts
|
|
139
140
|
//
|
|
140
141
|
// @public
|
|
141
|
-
export const facetSchema: MutableSchema<PlatformFacet, HierarchicalFacet | NumberRangeFacet | SimpleFacet | EditableNumberRangeFacet | BooleanFacet>;
|
|
142
|
+
export const facetSchema: MutableSchema<PlatformFacet, HierarchicalFacet | NumberRangeFacet | SimpleFacet | EditableNumberRangeFacet | BooleanFacet | SliderFacet>;
|
|
142
143
|
|
|
143
144
|
// Warning: (ae-forgotten-export) The symbol "FacetsRequest" needs to be exported by the entry point index.d.ts
|
|
144
145
|
// Warning: (ae-forgotten-export) The symbol "FacetsResponse" needs to be exported by the entry point index.d.ts
|
|
@@ -291,10 +292,22 @@ export interface PlatformAiSuggestionSearch {
|
|
|
291
292
|
query: string;
|
|
292
293
|
// (undocumented)
|
|
293
294
|
results: PlatformResult[];
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
// @public (undocumented)
|
|
298
|
+
export interface PlatformAiSuggestionSearchTagging {
|
|
294
299
|
// (undocumented)
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
300
|
+
add2cart: string;
|
|
301
|
+
// (undocumented)
|
|
302
|
+
checkout: string;
|
|
303
|
+
// (undocumented)
|
|
304
|
+
click: string;
|
|
305
|
+
// (undocumented)
|
|
306
|
+
display: string;
|
|
307
|
+
// (undocumented)
|
|
308
|
+
displayClick: string;
|
|
309
|
+
// (undocumented)
|
|
310
|
+
query: string;
|
|
298
311
|
}
|
|
299
312
|
|
|
300
313
|
// @public
|
|
@@ -331,6 +344,8 @@ export interface PlatformAiSuggestionsSearchRequest {
|
|
|
331
344
|
export interface PlatformAiSuggestionsSearchResponse {
|
|
332
345
|
// (undocumented)
|
|
333
346
|
items: PlatformAiSuggestionSearch[];
|
|
347
|
+
// (undocumented)
|
|
348
|
+
tagging: PlatformAiSuggestionSearchTagging;
|
|
334
349
|
}
|
|
335
350
|
|
|
336
351
|
// @public
|
|
@@ -370,7 +385,7 @@ export interface PlatformFacet {
|
|
|
370
385
|
// (undocumented)
|
|
371
386
|
type: PlatformFacetType;
|
|
372
387
|
// (undocumented)
|
|
373
|
-
values: PlatformFilter[];
|
|
388
|
+
values: (PlatformFilter | PlatformSliderFilter)[];
|
|
374
389
|
}
|
|
375
390
|
|
|
376
391
|
// Warning: (ae-forgotten-export) The symbol "PlatformQueryableRequest" needs to be exported by the entry point index.d.ts
|
|
@@ -390,7 +405,7 @@ export interface PlatformFacetsResponse {
|
|
|
390
405
|
}
|
|
391
406
|
|
|
392
407
|
// @public
|
|
393
|
-
export type PlatformFacetType = 'value' | 'hierarchical' | 'range' | 'editable-range' | 'boolean';
|
|
408
|
+
export type PlatformFacetType = 'value' | 'hierarchical' | 'range' | 'editable-range' | 'boolean' | 'slider';
|
|
394
409
|
|
|
395
410
|
// @public
|
|
396
411
|
export interface PlatformFilter {
|
|
@@ -690,6 +705,16 @@ export interface PlatformSemanticQuery {
|
|
|
690
705
|
query: string;
|
|
691
706
|
}
|
|
692
707
|
|
|
708
|
+
// @public
|
|
709
|
+
export interface PlatformSliderFilter {
|
|
710
|
+
// (undocumented)
|
|
711
|
+
max: string;
|
|
712
|
+
// (undocumented)
|
|
713
|
+
min: string;
|
|
714
|
+
// (undocumented)
|
|
715
|
+
unit: Intl.NumberFormatOptions['style'];
|
|
716
|
+
}
|
|
717
|
+
|
|
693
718
|
// @public
|
|
694
719
|
export interface PlatformSuggestion {
|
|
695
720
|
// (undocumented)
|