@empathyco/x-adapter-platform 1.9.2 → 1.10.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empathyco/x-adapter-platform",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.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",
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
"types": "dist/types/index.d.ts",
|
|
22
22
|
"files": [
|
|
23
23
|
"dist",
|
|
24
|
-
"report"
|
|
24
|
+
"report",
|
|
25
|
+
"skills"
|
|
25
26
|
],
|
|
26
27
|
"engines": {
|
|
27
28
|
"node": ">=22"
|
|
@@ -47,9 +48,9 @@
|
|
|
47
48
|
"prepublishOnly": "pnpm run build"
|
|
48
49
|
},
|
|
49
50
|
"dependencies": {
|
|
50
|
-
"@empathyco/x-adapter": "8.
|
|
51
|
-
"@empathyco/x-types": "10.
|
|
52
|
-
"@empathyco/x-utils": "1.0
|
|
51
|
+
"@empathyco/x-adapter": "8.2.0",
|
|
52
|
+
"@empathyco/x-types": "10.9.0",
|
|
53
|
+
"@empathyco/x-utils": "1.1.0"
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
55
56
|
"@microsoft/api-documenter": "7.30.7",
|
|
@@ -62,5 +63,5 @@
|
|
|
62
63
|
"publishConfig": {
|
|
63
64
|
"access": "public"
|
|
64
65
|
},
|
|
65
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "8c0652d19cb33994ce6221c0cd1f36a9e1acdec6"
|
|
66
67
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: x-adapter-platform
|
|
3
|
+
description: 'Use when importing, using, or debugging components from x-adapter-platform.'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# x-adapter-platform
|
|
7
|
+
|
|
8
|
+
Adapter para la Empathy Platform API construido sobre `x-adapter`: contiene la configuración, mappers y schemas de los endpoints de la plataforma. Es el adapter por defecto usado en `x-archetype`.
|
|
9
|
+
|
|
10
|
+
## Componentes disponibles
|
|
11
|
+
|
|
12
|
+
- `platformAdapter` — objeto con todos los `EndpointAdapter` de la plataforma:
|
|
13
|
+
- `search` — búsqueda de resultados.
|
|
14
|
+
- `browse` — browsing sin query.
|
|
15
|
+
- `facets` — facets disponibles para la query.
|
|
16
|
+
- `popularSearches` — búsquedas populares.
|
|
17
|
+
- `recommendations` — productos más clicados.
|
|
18
|
+
- `nextQueries` — queries que suelen hacerse a continuación.
|
|
19
|
+
- `querySuggestions` — sugerencias de query.
|
|
20
|
+
- `relatedTags` — tags para refinar la query.
|
|
21
|
+
- `relatedPrompts` — prompts relacionados.
|
|
22
|
+
- `semanticQueries` — queries semánticas.
|
|
23
|
+
- `identifierResults` — búsqueda por identificador (SKU).
|
|
24
|
+
- `experienceControls` — experience controls del snippet.
|
|
25
|
+
- `aiSuggestions` / `aiSuggestionsSearch` — sugerencias AI.
|
|
26
|
+
- `tagging` — envío de eventos de métricas.
|
|
27
|
+
- `resultSchema`, `facetsSchema`, etc. — `MutableSchemas` de request/response que se pueden modificar con `$extends`, `$override` y `$replace`.
|
|
28
|
+
- `mapFilters`, `getFacetConfig`, `extractUrlParameters`, `getTaggingInfoFromUrl` — helpers de mapeo y utilidades.
|
|
29
|
+
|
|
30
|
+
## Instalación
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
npm install @empathyco/x-adapter-platform
|
|
34
|
+
```
|