@empathyco/x-adapter-platform 1.4.3 → 1.5.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/facet.schema.js +1 -1
- package/dist/cjs/schemas/models/facet.schema.js.map +1 -1
- package/dist/cjs/types/models/facet.model.js.map +1 -1
- package/dist/esm/schemas/models/facet.schema.js +1 -1
- package/dist/esm/schemas/models/facet.schema.js.map +1 -1
- package/dist/esm/types/models/facet.model.js.map +1 -1
- package/dist/types/types/models/facet.model.d.ts +1 -0
- package/package.json +2 -2
- package/report/x-adapter-platform.api.json +27 -0
- package/report/x-adapter-platform.api.md +2 -0
|
@@ -10,7 +10,7 @@ const utils_1 = require("../facets/utils");
|
|
|
10
10
|
*/
|
|
11
11
|
exports.facetSchema = (0, x_adapter_1.createMutableSchema)({
|
|
12
12
|
id: 'facet',
|
|
13
|
-
label: '
|
|
13
|
+
label: 'label',
|
|
14
14
|
// eslint-disable-next-line ts/no-unsafe-return
|
|
15
15
|
modelName: ({ type }) => (0, utils_1.getFacetConfig)(type).modelName,
|
|
16
16
|
filters: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"facet.schema.js","sourceRoot":"","sources":["../../../../src/schemas/models/facet.schema.ts"],"names":[],"mappings":";;;AAOA,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 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\n>({\n id: 'facet',\n label: '
|
|
1
|
+
{"version":3,"file":"facet.schema.js","sourceRoot":"","sources":["../../../../src/schemas/models/facet.schema.ts"],"names":[],"mappings":";;;AAOA,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 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\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.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 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 = 'value' | 'hierarchical' | 'range' | 'editable-range'\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 * 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
|
+
{"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 = 'value' | 'hierarchical' | 'range' | 'editable-range'\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 * 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"]}
|
|
@@ -7,7 +7,7 @@ import { getFacetConfig } from '../facets/utils';
|
|
|
7
7
|
*/
|
|
8
8
|
export const facetSchema = createMutableSchema({
|
|
9
9
|
id: 'facet',
|
|
10
|
-
label: '
|
|
10
|
+
label: 'label',
|
|
11
11
|
// eslint-disable-next-line ts/no-unsafe-return
|
|
12
12
|
modelName: ({ type }) => getFacetConfig(type).modelName,
|
|
13
13
|
filters: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"facet.schema.js","sourceRoot":"","sources":["../../../../src/schemas/models/facet.schema.ts"],"names":[],"mappings":"AAOA,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 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\n>({\n id: 'facet',\n label: '
|
|
1
|
+
{"version":3,"file":"facet.schema.js","sourceRoot":"","sources":["../../../../src/schemas/models/facet.schema.ts"],"names":[],"mappings":"AAOA,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 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\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.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 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 = 'value' | 'hierarchical' | 'range' | 'editable-range'\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 * 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
|
+
{"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 = 'value' | 'hierarchical' | 'range' | 'editable-range'\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 * 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"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empathyco/x-adapter-platform",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.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",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"access": "public"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "20dde8a5b68ef6e7855e96181ccf99b52922a619"
|
|
66
66
|
}
|
|
@@ -3569,6 +3569,33 @@
|
|
|
3569
3569
|
"endIndex": 2
|
|
3570
3570
|
}
|
|
3571
3571
|
},
|
|
3572
|
+
{
|
|
3573
|
+
"kind": "PropertySignature",
|
|
3574
|
+
"canonicalReference": "@empathyco/x-adapter-platform!PlatformFacet#label:member",
|
|
3575
|
+
"docComment": "",
|
|
3576
|
+
"excerptTokens": [
|
|
3577
|
+
{
|
|
3578
|
+
"kind": "Content",
|
|
3579
|
+
"text": "label: "
|
|
3580
|
+
},
|
|
3581
|
+
{
|
|
3582
|
+
"kind": "Content",
|
|
3583
|
+
"text": "string"
|
|
3584
|
+
},
|
|
3585
|
+
{
|
|
3586
|
+
"kind": "Content",
|
|
3587
|
+
"text": ";"
|
|
3588
|
+
}
|
|
3589
|
+
],
|
|
3590
|
+
"isReadonly": false,
|
|
3591
|
+
"isOptional": false,
|
|
3592
|
+
"releaseTag": "Public",
|
|
3593
|
+
"name": "label",
|
|
3594
|
+
"propertyTypeTokenRange": {
|
|
3595
|
+
"startIndex": 1,
|
|
3596
|
+
"endIndex": 2
|
|
3597
|
+
}
|
|
3598
|
+
},
|
|
3572
3599
|
{
|
|
3573
3600
|
"kind": "PropertySignature",
|
|
3574
3601
|
"canonicalReference": "@empathyco/x-adapter-platform!PlatformFacet#type:member",
|