@empathyco/x-adapter-platform 1.9.2 → 1.11.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/models/index.js +1 -0
- package/dist/cjs/schemas/models/index.js.map +1 -1
- package/dist/esm/schemas/models/index.js +1 -0
- package/dist/esm/schemas/models/index.js.map +1 -1
- package/dist/types/schemas/models/index.d.ts +1 -0
- package/package.json +7 -6
- package/report/x-adapter-platform.api.json +50 -0
- package/report/x-adapter-platform.api.md +6 -0
- package/skills/x-adapter-platform/SKILL.md +34 -0
|
@@ -14,5 +14,6 @@ tslib_1.__exportStar(require("./related-prompt.schema"), exports);
|
|
|
14
14
|
tslib_1.__exportStar(require("./related-tag.schema"), exports);
|
|
15
15
|
tslib_1.__exportStar(require("./result.schema"), exports);
|
|
16
16
|
tslib_1.__exportStar(require("./semantic-query.schema"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./stats.schema"), exports);
|
|
17
18
|
tslib_1.__exportStar(require("./suggestion.schema"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schemas/models/index.ts"],"names":[],"mappings":";;;AAAA,+CAAoB;AACpB,0DAA+B;AAC/B,iEAAsC;AACtC,yDAA8B;AAC9B,oDAAyB;AACzB,8DAAmC;AACnC,mEAAwC;AACxC,4DAAiC;AACjC,+DAAoC;AACpC,kEAAuC;AACvC,+DAAoC;AACpC,0DAA+B;AAC/B,kEAAuC;AACvC,8DAAmC","sourcesContent":["export * from './ai'\nexport * from './banner.schema'\nexport * from './browse-result.schema'\nexport * from './facet.schema'\nexport * from './filters'\nexport * from './next-query.schema'\nexport * from './partial-results.schema'\nexport * from './promoted.schema'\nexport * from './redirection.schema'\nexport * from './related-prompt.schema'\nexport * from './related-tag.schema'\nexport * from './result.schema'\nexport * from './semantic-query.schema'\nexport * from './suggestion.schema'\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schemas/models/index.ts"],"names":[],"mappings":";;;AAAA,+CAAoB;AACpB,0DAA+B;AAC/B,iEAAsC;AACtC,yDAA8B;AAC9B,oDAAyB;AACzB,8DAAmC;AACnC,mEAAwC;AACxC,4DAAiC;AACjC,+DAAoC;AACpC,kEAAuC;AACvC,+DAAoC;AACpC,0DAA+B;AAC/B,kEAAuC;AACvC,yDAA8B;AAC9B,8DAAmC","sourcesContent":["export * from './ai'\nexport * from './banner.schema'\nexport * from './browse-result.schema'\nexport * from './facet.schema'\nexport * from './filters'\nexport * from './next-query.schema'\nexport * from './partial-results.schema'\nexport * from './promoted.schema'\nexport * from './redirection.schema'\nexport * from './related-prompt.schema'\nexport * from './related-tag.schema'\nexport * from './result.schema'\nexport * from './semantic-query.schema'\nexport * from './stats.schema'\nexport * from './suggestion.schema'\n"]}
|
|
@@ -11,5 +11,6 @@ export * from './related-prompt.schema';
|
|
|
11
11
|
export * from './related-tag.schema';
|
|
12
12
|
export * from './result.schema';
|
|
13
13
|
export * from './semantic-query.schema';
|
|
14
|
+
export * from './stats.schema';
|
|
14
15
|
export * from './suggestion.schema';
|
|
15
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schemas/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAA;AACpB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,qBAAqB,CAAA;AACnC,cAAc,0BAA0B,CAAA;AACxC,cAAc,mBAAmB,CAAA;AACjC,cAAc,sBAAsB,CAAA;AACpC,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,yBAAyB,CAAA;AACvC,cAAc,qBAAqB,CAAA","sourcesContent":["export * from './ai'\nexport * from './banner.schema'\nexport * from './browse-result.schema'\nexport * from './facet.schema'\nexport * from './filters'\nexport * from './next-query.schema'\nexport * from './partial-results.schema'\nexport * from './promoted.schema'\nexport * from './redirection.schema'\nexport * from './related-prompt.schema'\nexport * from './related-tag.schema'\nexport * from './result.schema'\nexport * from './semantic-query.schema'\nexport * from './suggestion.schema'\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schemas/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAA;AACpB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,qBAAqB,CAAA;AACnC,cAAc,0BAA0B,CAAA;AACxC,cAAc,mBAAmB,CAAA;AACjC,cAAc,sBAAsB,CAAA;AACpC,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,yBAAyB,CAAA;AACvC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,qBAAqB,CAAA","sourcesContent":["export * from './ai'\nexport * from './banner.schema'\nexport * from './browse-result.schema'\nexport * from './facet.schema'\nexport * from './filters'\nexport * from './next-query.schema'\nexport * from './partial-results.schema'\nexport * from './promoted.schema'\nexport * from './redirection.schema'\nexport * from './related-prompt.schema'\nexport * from './related-tag.schema'\nexport * from './result.schema'\nexport * from './semantic-query.schema'\nexport * from './stats.schema'\nexport * from './suggestion.schema'\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empathyco/x-adapter-platform",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.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": "47e48a7d4dcedec643904bc33c1e996c6bb2baa1"
|
|
66
67
|
}
|
|
@@ -9145,6 +9145,56 @@
|
|
|
9145
9145
|
"endIndex": 8
|
|
9146
9146
|
}
|
|
9147
9147
|
},
|
|
9148
|
+
{
|
|
9149
|
+
"kind": "Variable",
|
|
9150
|
+
"canonicalReference": "@empathyco/x-adapter-platform!statsSchema:var",
|
|
9151
|
+
"docComment": "/**\n * Default implementation for the Stats schema.\n *\n * @public\n */\n",
|
|
9152
|
+
"excerptTokens": [
|
|
9153
|
+
{
|
|
9154
|
+
"kind": "Content",
|
|
9155
|
+
"text": "statsSchema: "
|
|
9156
|
+
},
|
|
9157
|
+
{
|
|
9158
|
+
"kind": "Content",
|
|
9159
|
+
"text": "import(\"@empathyco/x-adapter\")."
|
|
9160
|
+
},
|
|
9161
|
+
{
|
|
9162
|
+
"kind": "Reference",
|
|
9163
|
+
"text": "MutableSchema",
|
|
9164
|
+
"canonicalReference": "@empathyco/x-adapter!MutableSchema:type"
|
|
9165
|
+
},
|
|
9166
|
+
{
|
|
9167
|
+
"kind": "Content",
|
|
9168
|
+
"text": "<"
|
|
9169
|
+
},
|
|
9170
|
+
{
|
|
9171
|
+
"kind": "Reference",
|
|
9172
|
+
"text": "PlatformStats",
|
|
9173
|
+
"canonicalReference": "@empathyco/x-adapter-platform!~PlatformStats:interface"
|
|
9174
|
+
},
|
|
9175
|
+
{
|
|
9176
|
+
"kind": "Content",
|
|
9177
|
+
"text": ", "
|
|
9178
|
+
},
|
|
9179
|
+
{
|
|
9180
|
+
"kind": "Reference",
|
|
9181
|
+
"text": "Stats",
|
|
9182
|
+
"canonicalReference": "@empathyco/x-adapter-platform!Stats:interface"
|
|
9183
|
+
},
|
|
9184
|
+
{
|
|
9185
|
+
"kind": "Content",
|
|
9186
|
+
"text": ">"
|
|
9187
|
+
}
|
|
9188
|
+
],
|
|
9189
|
+
"fileUrlPath": "dist/types/schemas/models/stats.schema.d.ts",
|
|
9190
|
+
"isReadonly": true,
|
|
9191
|
+
"releaseTag": "Public",
|
|
9192
|
+
"name": "statsSchema",
|
|
9193
|
+
"variableTypeTokenRange": {
|
|
9194
|
+
"startIndex": 1,
|
|
9195
|
+
"endIndex": 8
|
|
9196
|
+
}
|
|
9197
|
+
},
|
|
9148
9198
|
{
|
|
9149
9199
|
"kind": "Variable",
|
|
9150
9200
|
"canonicalReference": "@empathyco/x-adapter-platform!suggestionSchema:var",
|
|
@@ -856,6 +856,12 @@ export const semanticQuerySchema: MutableSchema<PlatformSemanticQuery, SemanticQ
|
|
|
856
856
|
// @public
|
|
857
857
|
export const simpleFilterSchema: MutableSchema<PlatformFilter, SimpleFilter>;
|
|
858
858
|
|
|
859
|
+
// Warning: (ae-forgotten-export) The symbol "PlatformStats" needs to be exported by the entry point index.d.ts
|
|
860
|
+
// Warning: (ae-forgotten-export) The symbol "Stats" needs to be exported by the entry point index.d.ts
|
|
861
|
+
//
|
|
862
|
+
// @public
|
|
863
|
+
export const statsSchema: MutableSchema<PlatformStats, Stats>;
|
|
864
|
+
|
|
859
865
|
// Warning: (ae-forgotten-export) The symbol "Suggestion" needs to be exported by the entry point index.d.ts
|
|
860
866
|
//
|
|
861
867
|
// @public
|
|
@@ -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
|
+
```
|