@empathyco/x-adapter-platform 1.1.0-alpha.54 → 1.1.0-alpha.56

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.
@@ -60,6 +60,7 @@ const x_utils_1 = require("@empathyco/x-utils");
60
60
  * 'categoryIds:ffc61e1e9__fa5ef54f2'
61
61
  * ];
62
62
  * ```
63
+ * @public
63
64
  */
64
65
  function mapFilters(filters) {
65
66
  return (0, x_utils_1.reduce)(filters, (acc, _, filters) => [
@@ -1 +1 @@
1
- {"version":3,"file":"filter.utils.js","sourceRoot":"","sources":["../../../src/mappers/filter.utils.ts"],"names":[],"mappings":";;AA8DA,gCAeC;AA5ED,gDAAyD;AACzD,gDAA2C;AAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,SAAgB,UAAU,CAAC,OAAkC;IAC3D,OAAO,IAAA,gBAAM,EACX,OAAO,EACP,CAAC,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC;QACnB,GAAG,GAAG;QACN,GAAG,OAAO;aACP,MAAM,CACL,MAAM,CAAC,EAAE,CACP,CAAC,IAAA,8BAAoB,EAAC,MAAM,CAAC;YAC7B,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,IAAA,8BAAoB,EAAC,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,KAAK,MAAM,CAAC,EAAE,CAAC,CACtF;aACA,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC;KAClC,EACD,EAAc,CACf,CAAA;AACH,CAAC","sourcesContent":["import type { Filter } from '@empathyco/x-types'\nimport { isHierarchicalFilter } from '@empathyco/x-types'\nimport { reduce } from '@empathyco/x-utils'\n\n/**\n * Converts the filters to the shape the Platform's API is expecting.\n *\n * @param filters - The filters from our internal request.\n * @returns The filters ready to be consumed for the API.\n *\n * @example\n * ```ts\n * const filters = {\n * offer: [\n * {\n * facetId: 'offer',\n * modelName: 'SimpleFilter',\n * id: 'price:[0 TO 10]',\n * selected: true,\n * label: 'In Offer'\n * } as SimpleFilter\n * ],\n * categoryPaths: [\n * {\n * facetId: 'categoryPaths',\n * id: 'categoryIds:ffc61e1e9__be257cb26',\n * label: 'Fragrance',\n * modelName: 'HierarchicalFilter',\n * parentId: 'categoryIds:ffc61e1e9',\n * selected: true,\n * totalResults: 1\n * },\n * {\n * facetId: 'categoryPaths',\n * id: 'categoryIds:ffc61e1e9__fa5ef54f2',\n * label: 'Fragrance',\n * modelName: 'HierarchicalFilter',\n * parentId: 'categoryIds:ffc61e1e9',\n * selected: true,\n * totalResults: 1\n * },\n * {\n * children: ['categoryIds:ffc61e1e9__be257cb26', 'categoryIds:ffc61e1e9__fa5ef54f2'],\n * facetId: 'categoryPaths',\n * id: 'categoryIds:ffc61e1e9',\n * label: 'Personal Care',\n * modelName: 'HierarchicalFilter',\n * parentId: null,\n * selected: true,\n * totalResults: 1\n * }\n * ]\n * };\n *\n * const mappedFilters = mapFilters({ filters });\n * mappedFilters is [\n * 'price:[0 TO 10]',\n * 'categoryIds:ffc61e1e9__be257cb26',\n * 'categoryIds:ffc61e1e9__fa5ef54f2'\n * ];\n * ```\n */\nexport function mapFilters(filters?: Record<string, Filter[]>) {\n return reduce(\n filters,\n (acc, _, filters) => [\n ...acc,\n ...filters\n .filter(\n filter =>\n !isHierarchicalFilter(filter) ||\n !filters.some(child => isHierarchicalFilter(child) && child.parentId === filter.id),\n )\n .map(({ id }) => id.toString()),\n ],\n [] as string[],\n )\n}\n"]}
1
+ {"version":3,"file":"filter.utils.js","sourceRoot":"","sources":["../../../src/mappers/filter.utils.ts"],"names":[],"mappings":";;AA+DA,gCAeC;AA7ED,gDAAyD;AACzD,gDAA2C;AAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,SAAgB,UAAU,CAAC,OAAkC;IAC3D,OAAO,IAAA,gBAAM,EACX,OAAO,EACP,CAAC,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC;QACnB,GAAG,GAAG;QACN,GAAG,OAAO;aACP,MAAM,CACL,MAAM,CAAC,EAAE,CACP,CAAC,IAAA,8BAAoB,EAAC,MAAM,CAAC;YAC7B,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,IAAA,8BAAoB,EAAC,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,KAAK,MAAM,CAAC,EAAE,CAAC,CACtF;aACA,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC;KAClC,EACD,EAAc,CACf,CAAA;AACH,CAAC","sourcesContent":["import type { Filter } from '@empathyco/x-types'\nimport { isHierarchicalFilter } from '@empathyco/x-types'\nimport { reduce } from '@empathyco/x-utils'\n\n/**\n * Converts the filters to the shape the Platform's API is expecting.\n *\n * @param filters - The filters from our internal request.\n * @returns The filters ready to be consumed for the API.\n *\n * @example\n * ```ts\n * const filters = {\n * offer: [\n * {\n * facetId: 'offer',\n * modelName: 'SimpleFilter',\n * id: 'price:[0 TO 10]',\n * selected: true,\n * label: 'In Offer'\n * } as SimpleFilter\n * ],\n * categoryPaths: [\n * {\n * facetId: 'categoryPaths',\n * id: 'categoryIds:ffc61e1e9__be257cb26',\n * label: 'Fragrance',\n * modelName: 'HierarchicalFilter',\n * parentId: 'categoryIds:ffc61e1e9',\n * selected: true,\n * totalResults: 1\n * },\n * {\n * facetId: 'categoryPaths',\n * id: 'categoryIds:ffc61e1e9__fa5ef54f2',\n * label: 'Fragrance',\n * modelName: 'HierarchicalFilter',\n * parentId: 'categoryIds:ffc61e1e9',\n * selected: true,\n * totalResults: 1\n * },\n * {\n * children: ['categoryIds:ffc61e1e9__be257cb26', 'categoryIds:ffc61e1e9__fa5ef54f2'],\n * facetId: 'categoryPaths',\n * id: 'categoryIds:ffc61e1e9',\n * label: 'Personal Care',\n * modelName: 'HierarchicalFilter',\n * parentId: null,\n * selected: true,\n * totalResults: 1\n * }\n * ]\n * };\n *\n * const mappedFilters = mapFilters({ filters });\n * mappedFilters is [\n * 'price:[0 TO 10]',\n * 'categoryIds:ffc61e1e9__be257cb26',\n * 'categoryIds:ffc61e1e9__fa5ef54f2'\n * ];\n * ```\n * @public\n */\nexport function mapFilters(filters?: Record<string, Filter[]>) {\n return reduce(\n filters,\n (acc, _, filters) => [\n ...acc,\n ...filters\n .filter(\n filter =>\n !isHierarchicalFilter(filter) ||\n !filters.some(child => isHierarchicalFilter(child) && child.parentId === filter.id),\n )\n .map(({ id }) => id.toString()),\n ],\n [] as string[],\n )\n}\n"]}
@@ -4,12 +4,11 @@ exports.taggingRequestMapper = void 0;
4
4
  /**
5
5
  * Default implementation for the TaggingRequestMapper.
6
6
  *
7
- * @param params - The tagging request params.
8
- * @param params.params - The tagging request params.
7
+ * @param request - The tagging request.
9
8
  * @returns The tagging request params.
10
9
  *
11
10
  * @public
12
11
  */
13
- const taggingRequestMapper = ({ params }) => params;
12
+ const taggingRequestMapper = (request) => request.params;
14
13
  exports.taggingRequestMapper = taggingRequestMapper;
15
14
  //# sourceMappingURL=tagging-request.mapper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tagging-request.mapper.js","sourceRoot":"","sources":["../../../../src/mappers/requests/tagging-request.mapper.ts"],"names":[],"mappings":";;;AAGA;;;;;;;;GAQG;AACI,MAAM,oBAAoB,GAAgC,CAAC,EAAE,MAAM,EAAkB,EAAE,EAAE,CAC9F,MAAM,CAAA;AADK,QAAA,oBAAoB,wBACzB","sourcesContent":["import type { Mapper } from '@empathyco/x-adapter'\nimport type { TaggingRequest } from '@empathyco/x-types'\n\n/**\n * Default implementation for the TaggingRequestMapper.\n *\n * @param params - The tagging request params.\n * @param params.params - The tagging request params.\n * @returns The tagging request params.\n *\n * @public\n */\nexport const taggingRequestMapper: Mapper<TaggingRequest, any> = ({ params }: TaggingRequest) =>\n params\n"]}
1
+ {"version":3,"file":"tagging-request.mapper.js","sourceRoot":"","sources":["../../../../src/mappers/requests/tagging-request.mapper.ts"],"names":[],"mappings":";;;AAGA;;;;;;;GAOG;AACI,MAAM,oBAAoB,GAAgC,CAAC,OAAuB,EAAE,EAAE,CAC3F,OAAO,CAAC,MAAM,CAAA;AADH,QAAA,oBAAoB,wBACjB","sourcesContent":["import type { Mapper } from '@empathyco/x-adapter'\nimport type { TaggingRequest } from '@empathyco/x-types'\n\n/**\n * Default implementation for the TaggingRequestMapper.\n *\n * @param request - The tagging request.\n * @returns The tagging request params.\n *\n * @public\n */\nexport const taggingRequestMapper: Mapper<TaggingRequest, any> = (request: TaggingRequest) =>\n request.params\n"]}
@@ -57,6 +57,7 @@ import { reduce } from '@empathyco/x-utils';
57
57
  * 'categoryIds:ffc61e1e9__fa5ef54f2'
58
58
  * ];
59
59
  * ```
60
+ * @public
60
61
  */
61
62
  export function mapFilters(filters) {
62
63
  return reduce(filters, (acc, _, filters) => [
@@ -1 +1 @@
1
- {"version":3,"file":"filter.utils.js","sourceRoot":"","sources":["../../../src/mappers/filter.utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,MAAM,UAAU,UAAU,CAAC,OAAkC;IAC3D,OAAO,MAAM,CACX,OAAO,EACP,CAAC,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC;QACnB,GAAG,GAAG;QACN,GAAG,OAAO;aACP,MAAM,CACL,MAAM,CAAC,EAAE,CACP,CAAC,oBAAoB,CAAC,MAAM,CAAC;YAC7B,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,KAAK,MAAM,CAAC,EAAE,CAAC,CACtF;aACA,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC;KAClC,EACD,EAAc,CACf,CAAA;AACH,CAAC","sourcesContent":["import type { Filter } from '@empathyco/x-types'\nimport { isHierarchicalFilter } from '@empathyco/x-types'\nimport { reduce } from '@empathyco/x-utils'\n\n/**\n * Converts the filters to the shape the Platform's API is expecting.\n *\n * @param filters - The filters from our internal request.\n * @returns The filters ready to be consumed for the API.\n *\n * @example\n * ```ts\n * const filters = {\n * offer: [\n * {\n * facetId: 'offer',\n * modelName: 'SimpleFilter',\n * id: 'price:[0 TO 10]',\n * selected: true,\n * label: 'In Offer'\n * } as SimpleFilter\n * ],\n * categoryPaths: [\n * {\n * facetId: 'categoryPaths',\n * id: 'categoryIds:ffc61e1e9__be257cb26',\n * label: 'Fragrance',\n * modelName: 'HierarchicalFilter',\n * parentId: 'categoryIds:ffc61e1e9',\n * selected: true,\n * totalResults: 1\n * },\n * {\n * facetId: 'categoryPaths',\n * id: 'categoryIds:ffc61e1e9__fa5ef54f2',\n * label: 'Fragrance',\n * modelName: 'HierarchicalFilter',\n * parentId: 'categoryIds:ffc61e1e9',\n * selected: true,\n * totalResults: 1\n * },\n * {\n * children: ['categoryIds:ffc61e1e9__be257cb26', 'categoryIds:ffc61e1e9__fa5ef54f2'],\n * facetId: 'categoryPaths',\n * id: 'categoryIds:ffc61e1e9',\n * label: 'Personal Care',\n * modelName: 'HierarchicalFilter',\n * parentId: null,\n * selected: true,\n * totalResults: 1\n * }\n * ]\n * };\n *\n * const mappedFilters = mapFilters({ filters });\n * mappedFilters is [\n * 'price:[0 TO 10]',\n * 'categoryIds:ffc61e1e9__be257cb26',\n * 'categoryIds:ffc61e1e9__fa5ef54f2'\n * ];\n * ```\n */\nexport function mapFilters(filters?: Record<string, Filter[]>) {\n return reduce(\n filters,\n (acc, _, filters) => [\n ...acc,\n ...filters\n .filter(\n filter =>\n !isHierarchicalFilter(filter) ||\n !filters.some(child => isHierarchicalFilter(child) && child.parentId === filter.id),\n )\n .map(({ id }) => id.toString()),\n ],\n [] as string[],\n )\n}\n"]}
1
+ {"version":3,"file":"filter.utils.js","sourceRoot":"","sources":["../../../src/mappers/filter.utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,MAAM,UAAU,UAAU,CAAC,OAAkC;IAC3D,OAAO,MAAM,CACX,OAAO,EACP,CAAC,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC;QACnB,GAAG,GAAG;QACN,GAAG,OAAO;aACP,MAAM,CACL,MAAM,CAAC,EAAE,CACP,CAAC,oBAAoB,CAAC,MAAM,CAAC;YAC7B,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,KAAK,MAAM,CAAC,EAAE,CAAC,CACtF;aACA,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC;KAClC,EACD,EAAc,CACf,CAAA;AACH,CAAC","sourcesContent":["import type { Filter } from '@empathyco/x-types'\nimport { isHierarchicalFilter } from '@empathyco/x-types'\nimport { reduce } from '@empathyco/x-utils'\n\n/**\n * Converts the filters to the shape the Platform's API is expecting.\n *\n * @param filters - The filters from our internal request.\n * @returns The filters ready to be consumed for the API.\n *\n * @example\n * ```ts\n * const filters = {\n * offer: [\n * {\n * facetId: 'offer',\n * modelName: 'SimpleFilter',\n * id: 'price:[0 TO 10]',\n * selected: true,\n * label: 'In Offer'\n * } as SimpleFilter\n * ],\n * categoryPaths: [\n * {\n * facetId: 'categoryPaths',\n * id: 'categoryIds:ffc61e1e9__be257cb26',\n * label: 'Fragrance',\n * modelName: 'HierarchicalFilter',\n * parentId: 'categoryIds:ffc61e1e9',\n * selected: true,\n * totalResults: 1\n * },\n * {\n * facetId: 'categoryPaths',\n * id: 'categoryIds:ffc61e1e9__fa5ef54f2',\n * label: 'Fragrance',\n * modelName: 'HierarchicalFilter',\n * parentId: 'categoryIds:ffc61e1e9',\n * selected: true,\n * totalResults: 1\n * },\n * {\n * children: ['categoryIds:ffc61e1e9__be257cb26', 'categoryIds:ffc61e1e9__fa5ef54f2'],\n * facetId: 'categoryPaths',\n * id: 'categoryIds:ffc61e1e9',\n * label: 'Personal Care',\n * modelName: 'HierarchicalFilter',\n * parentId: null,\n * selected: true,\n * totalResults: 1\n * }\n * ]\n * };\n *\n * const mappedFilters = mapFilters({ filters });\n * mappedFilters is [\n * 'price:[0 TO 10]',\n * 'categoryIds:ffc61e1e9__be257cb26',\n * 'categoryIds:ffc61e1e9__fa5ef54f2'\n * ];\n * ```\n * @public\n */\nexport function mapFilters(filters?: Record<string, Filter[]>) {\n return reduce(\n filters,\n (acc, _, filters) => [\n ...acc,\n ...filters\n .filter(\n filter =>\n !isHierarchicalFilter(filter) ||\n !filters.some(child => isHierarchicalFilter(child) && child.parentId === filter.id),\n )\n .map(({ id }) => id.toString()),\n ],\n [] as string[],\n )\n}\n"]}
@@ -1,11 +1,10 @@
1
1
  /**
2
2
  * Default implementation for the TaggingRequestMapper.
3
3
  *
4
- * @param params - The tagging request params.
5
- * @param params.params - The tagging request params.
4
+ * @param request - The tagging request.
6
5
  * @returns The tagging request params.
7
6
  *
8
7
  * @public
9
8
  */
10
- export const taggingRequestMapper = ({ params }) => params;
9
+ export const taggingRequestMapper = (request) => request.params;
11
10
  //# sourceMappingURL=tagging-request.mapper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tagging-request.mapper.js","sourceRoot":"","sources":["../../../../src/mappers/requests/tagging-request.mapper.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAgC,CAAC,EAAE,MAAM,EAAkB,EAAE,EAAE,CAC9F,MAAM,CAAA","sourcesContent":["import type { Mapper } from '@empathyco/x-adapter'\nimport type { TaggingRequest } from '@empathyco/x-types'\n\n/**\n * Default implementation for the TaggingRequestMapper.\n *\n * @param params - The tagging request params.\n * @param params.params - The tagging request params.\n * @returns The tagging request params.\n *\n * @public\n */\nexport const taggingRequestMapper: Mapper<TaggingRequest, any> = ({ params }: TaggingRequest) =>\n params\n"]}
1
+ {"version":3,"file":"tagging-request.mapper.js","sourceRoot":"","sources":["../../../../src/mappers/requests/tagging-request.mapper.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAgC,CAAC,OAAuB,EAAE,EAAE,CAC3F,OAAO,CAAC,MAAM,CAAA","sourcesContent":["import type { Mapper } from '@empathyco/x-adapter'\nimport type { TaggingRequest } from '@empathyco/x-types'\n\n/**\n * Default implementation for the TaggingRequestMapper.\n *\n * @param request - The tagging request.\n * @returns The tagging request params.\n *\n * @public\n */\nexport const taggingRequestMapper: Mapper<TaggingRequest, any> = (request: TaggingRequest) =>\n request.params\n"]}
@@ -56,5 +56,6 @@ import type { Filter } from '@empathyco/x-types';
56
56
  * 'categoryIds:ffc61e1e9__fa5ef54f2'
57
57
  * ];
58
58
  * ```
59
+ * @public
59
60
  */
60
61
  export declare function mapFilters(filters?: Record<string, Filter[]>): string[];
@@ -3,8 +3,7 @@ import type { TaggingRequest } from '@empathyco/x-types';
3
3
  /**
4
4
  * Default implementation for the TaggingRequestMapper.
5
5
  *
6
- * @param params - The tagging request params.
7
- * @param params.params - The tagging request params.
6
+ * @param request - The tagging request.
8
7
  * @returns The tagging request params.
9
8
  *
10
9
  * @public
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empathyco/x-adapter-platform",
3
- "version": "1.1.0-alpha.54",
3
+ "version": "1.1.0-alpha.56",
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",
@@ -27,8 +27,8 @@
27
27
  "node": ">=22"
28
28
  },
29
29
  "scripts": {
30
- "prebuild": "rimraf ./dist ./*.tgz",
31
- "build": "concurrently \"pnpm run build:*\" && pnpm run gen:docs",
30
+ "prebuild": "rm -rf dist docs report *.tgz",
31
+ "build": "pnpm run /^build:/ && pnpm run gen:docs",
32
32
  "build:cjs": "tsc --project tsconfig.cjs.json",
33
33
  "build:esm": "tsc --project tsconfig.esm.json",
34
34
  "pack": "pnpm pack",
@@ -47,22 +47,20 @@
47
47
  "prepublishOnly": "pnpm run build"
48
48
  },
49
49
  "dependencies": {
50
- "@empathyco/x-adapter": "8.1.0-alpha.17",
51
- "@empathyco/x-types": "10.1.0-alpha.46",
52
- "@empathyco/x-utils": "1.0.3-alpha.14"
50
+ "@empathyco/x-adapter": "8.1.0-alpha.19",
51
+ "@empathyco/x-types": "10.1.0-alpha.48",
52
+ "@empathyco/x-utils": "1.0.3-alpha.15"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@microsoft/api-documenter": "7.29.2",
56
56
  "@microsoft/api-extractor": "7.57.2",
57
57
  "@vitest/coverage-v8": "4.0.18",
58
- "concurrently": "8.2.2",
59
58
  "jsdom": "28.1.0",
60
- "rimraf": "3.0.2",
61
59
  "typescript": "5.9.3",
62
60
  "vitest": "4.0.18"
63
61
  },
64
62
  "publishConfig": {
65
63
  "access": "public"
66
64
  },
67
- "gitHead": "7c8878c0c55e9d53199ce7067129bed56431e558"
65
+ "gitHead": "ee522d31a91be6935bab312a7d90bcb65cd89f32"
68
66
  }
@@ -2385,7 +2385,7 @@
2385
2385
  {
2386
2386
  "kind": "Function",
2387
2387
  "canonicalReference": "@empathyco/x-adapter-platform!mapFilters:function(1)",
2388
- "docComment": "/**\n * Converts the filters to the shape the Platform's API is expecting.\n *\n * @param filters - The filters from our internal request.\n *\n * @returns The filters ready to be consumed for the API.\n *\n * @example\n * ```ts\n * const filters = {\n * offer: [\n * {\n * facetId: 'offer',\n * modelName: 'SimpleFilter',\n * id: 'price:[0 TO 10]',\n * selected: true,\n * label: 'In Offer'\n * } as SimpleFilter\n * ],\n * categoryPaths: [\n * {\n * facetId: 'categoryPaths',\n * id: 'categoryIds:ffc61e1e9__be257cb26',\n * label: 'Fragrance',\n * modelName: 'HierarchicalFilter',\n * parentId: 'categoryIds:ffc61e1e9',\n * selected: true,\n * totalResults: 1\n * },\n * {\n * facetId: 'categoryPaths',\n * id: 'categoryIds:ffc61e1e9__fa5ef54f2',\n * label: 'Fragrance',\n * modelName: 'HierarchicalFilter',\n * parentId: 'categoryIds:ffc61e1e9',\n * selected: true,\n * totalResults: 1\n * },\n * {\n * children: ['categoryIds:ffc61e1e9__be257cb26', 'categoryIds:ffc61e1e9__fa5ef54f2'],\n * facetId: 'categoryPaths',\n * id: 'categoryIds:ffc61e1e9',\n * label: 'Personal Care',\n * modelName: 'HierarchicalFilter',\n * parentId: null,\n * selected: true,\n * totalResults: 1\n * }\n * ]\n * };\n *\n * const mappedFilters = mapFilters({ filters });\n * mappedFilters is [\n * 'price:[0 TO 10]',\n * 'categoryIds:ffc61e1e9__be257cb26',\n * 'categoryIds:ffc61e1e9__fa5ef54f2'\n * ];\n * ```\n *\n */\n",
2388
+ "docComment": "/**\n * Converts the filters to the shape the Platform's API is expecting.\n *\n * @param filters - The filters from our internal request.\n *\n * @returns The filters ready to be consumed for the API.\n *\n * @example\n * ```ts\n * const filters = {\n * offer: [\n * {\n * facetId: 'offer',\n * modelName: 'SimpleFilter',\n * id: 'price:[0 TO 10]',\n * selected: true,\n * label: 'In Offer'\n * } as SimpleFilter\n * ],\n * categoryPaths: [\n * {\n * facetId: 'categoryPaths',\n * id: 'categoryIds:ffc61e1e9__be257cb26',\n * label: 'Fragrance',\n * modelName: 'HierarchicalFilter',\n * parentId: 'categoryIds:ffc61e1e9',\n * selected: true,\n * totalResults: 1\n * },\n * {\n * facetId: 'categoryPaths',\n * id: 'categoryIds:ffc61e1e9__fa5ef54f2',\n * label: 'Fragrance',\n * modelName: 'HierarchicalFilter',\n * parentId: 'categoryIds:ffc61e1e9',\n * selected: true,\n * totalResults: 1\n * },\n * {\n * children: ['categoryIds:ffc61e1e9__be257cb26', 'categoryIds:ffc61e1e9__fa5ef54f2'],\n * facetId: 'categoryPaths',\n * id: 'categoryIds:ffc61e1e9',\n * label: 'Personal Care',\n * modelName: 'HierarchicalFilter',\n * parentId: null,\n * selected: true,\n * totalResults: 1\n * }\n * ]\n * };\n *\n * const mappedFilters = mapFilters({ filters });\n * mappedFilters is [\n * 'price:[0 TO 10]',\n * 'categoryIds:ffc61e1e9__be257cb26',\n * 'categoryIds:ffc61e1e9__fa5ef54f2'\n * ];\n * ```\n *\n * @public\n */\n",
2389
2389
  "excerptTokens": [
2390
2390
  {
2391
2391
  "kind": "Content",
@@ -9720,7 +9720,7 @@
9720
9720
  {
9721
9721
  "kind": "Variable",
9722
9722
  "canonicalReference": "@empathyco/x-adapter-platform!taggingRequestMapper:var",
9723
- "docComment": "/**\n * Default implementation for the TaggingRequestMapper.\n *\n * @param params - The tagging request params.\n *\n * @param - params.params - The tagging request params.\n *\n * @returns The tagging request params.\n *\n * @public\n */\n",
9723
+ "docComment": "/**\n * Default implementation for the TaggingRequestMapper.\n *\n * @param request - The tagging request.\n *\n * @returns The tagging request params.\n *\n * @public\n */\n",
9724
9724
  "excerptTokens": [
9725
9725
  {
9726
9726
  "kind": "Content",