@empathyco/x-adapter-platform 1.9.0 → 1.9.2
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.
|
@@ -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":";;;AAQA,oDAA0D;AAC1D,2CAAgD;AAEhD;;;;GAIG;AACU,QAAA,WAAW,GAAG,IAAA,+BAAmB,EAG5C;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} 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 | NumberRangeFacet | SimpleFacet | EditableNumberRangeFacet | BooleanFacet\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"]}
|
|
@@ -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":"AAQA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAEhD;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,mBAAmB,CAG5C;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} 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 | NumberRangeFacet | SimpleFacet | EditableNumberRangeFacet | BooleanFacet\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"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { EditableNumberRangeFacet, HierarchicalFacet, NumberRangeFacet, SimpleFacet } from '@empathyco/x-types';
|
|
1
|
+
import type { BooleanFacet, EditableNumberRangeFacet, HierarchicalFacet, NumberRangeFacet, SimpleFacet } 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>;
|
|
8
|
+
export declare const facetSchema: import("@empathyco/x-adapter").MutableSchema<PlatformFacet, HierarchicalFacet | NumberRangeFacet | SimpleFacet | EditableNumberRangeFacet | BooleanFacet>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empathyco/x-adapter-platform",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.2",
|
|
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",
|
|
@@ -47,20 +47,20 @@
|
|
|
47
47
|
"prepublishOnly": "pnpm run build"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@empathyco/x-adapter": "8.1.
|
|
51
|
-
"@empathyco/x-types": "10.8.
|
|
52
|
-
"@empathyco/x-utils": "1.0.
|
|
50
|
+
"@empathyco/x-adapter": "8.1.9",
|
|
51
|
+
"@empathyco/x-types": "10.8.1",
|
|
52
|
+
"@empathyco/x-utils": "1.0.10"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@microsoft/api-documenter": "7.30.7",
|
|
56
56
|
"@microsoft/api-extractor": "7.58.9",
|
|
57
57
|
"@vitest/coverage-v8": "4.1.9",
|
|
58
|
-
"jsdom": "
|
|
58
|
+
"jsdom": "30.0.1",
|
|
59
59
|
"typescript": "5.9.3",
|
|
60
60
|
"vitest": "4.1.9"
|
|
61
61
|
},
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"access": "public"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "a7de5a0e295f6df7ea1b85a762142bcdb8e84225"
|
|
66
66
|
}
|
|
@@ -1429,6 +1429,15 @@
|
|
|
1429
1429
|
"text": "EditableNumberRangeFacet",
|
|
1430
1430
|
"canonicalReference": "@empathyco/x-adapter-platform!EditableNumberRangeFacet:interface"
|
|
1431
1431
|
},
|
|
1432
|
+
{
|
|
1433
|
+
"kind": "Content",
|
|
1434
|
+
"text": " | "
|
|
1435
|
+
},
|
|
1436
|
+
{
|
|
1437
|
+
"kind": "Reference",
|
|
1438
|
+
"text": "BooleanFacet",
|
|
1439
|
+
"canonicalReference": "@empathyco/x-adapter-platform!BooleanFacet:interface"
|
|
1440
|
+
},
|
|
1432
1441
|
{
|
|
1433
1442
|
"kind": "Content",
|
|
1434
1443
|
"text": ">"
|
|
@@ -1440,7 +1449,7 @@
|
|
|
1440
1449
|
"name": "facetSchema",
|
|
1441
1450
|
"variableTypeTokenRange": {
|
|
1442
1451
|
"startIndex": 1,
|
|
1443
|
-
"endIndex":
|
|
1452
|
+
"endIndex": 16
|
|
1444
1453
|
}
|
|
1445
1454
|
},
|
|
1446
1455
|
{
|
|
@@ -135,9 +135,10 @@ export interface FacetConfig {
|
|
|
135
135
|
// Warning: (ae-forgotten-export) The symbol "NumberRangeFacet" needs to be exported by the entry point index.d.ts
|
|
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
|
+
// Warning: (ae-forgotten-export) The symbol "BooleanFacet" needs to be exported by the entry point index.d.ts
|
|
138
139
|
//
|
|
139
140
|
// @public
|
|
140
|
-
export const facetSchema: MutableSchema<PlatformFacet, HierarchicalFacet | NumberRangeFacet | SimpleFacet | EditableNumberRangeFacet>;
|
|
141
|
+
export const facetSchema: MutableSchema<PlatformFacet, HierarchicalFacet | NumberRangeFacet | SimpleFacet | EditableNumberRangeFacet | BooleanFacet>;
|
|
141
142
|
|
|
142
143
|
// Warning: (ae-forgotten-export) The symbol "FacetsRequest" needs to be exported by the entry point index.d.ts
|
|
143
144
|
// Warning: (ae-forgotten-export) The symbol "FacetsResponse" needs to be exported by the entry point index.d.ts
|