@empathyco/x-adapter-platform 1.0.0-alpha.21 → 1.0.0-alpha.24

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.
Files changed (218) hide show
  1. package/dist/cjs/endpoint-adapters/tagging.endpoint-adapter.js +1 -1
  2. package/dist/cjs/endpoint-adapters/tagging.endpoint-adapter.js.map +1 -1
  3. package/dist/cjs/mappers/index.js +1 -0
  4. package/dist/cjs/mappers/index.js.map +1 -1
  5. package/dist/cjs/mappers/requests/next-queries-request.mapper.js +1 -1
  6. package/dist/cjs/mappers/requests/next-queries-request.mapper.js.map +1 -1
  7. package/dist/cjs/mappers/requests/popular-searches-request.mapper.js +1 -1
  8. package/dist/cjs/mappers/requests/popular-searches-request.mapper.js.map +1 -1
  9. package/dist/cjs/mappers/requests/query-suggestions-request.mapper.js +1 -1
  10. package/dist/cjs/mappers/requests/query-suggestions-request.mapper.js.map +1 -1
  11. package/dist/cjs/mappers/requests/recommendations-request.mapper.js +1 -1
  12. package/dist/cjs/mappers/requests/recommendations-request.mapper.js.map +1 -1
  13. package/dist/cjs/mappers/requests/related-tags-request.mapper.js +1 -1
  14. package/dist/cjs/mappers/requests/related-tags-request.mapper.js.map +1 -1
  15. package/dist/cjs/mappers/requests/search-request.mapper.js +1 -1
  16. package/dist/cjs/mappers/requests/search-request.mapper.js.map +1 -1
  17. package/dist/cjs/mappers/requests/tagging-request.mapper.js +2 -3
  18. package/dist/cjs/mappers/requests/tagging-request.mapper.js.map +1 -1
  19. package/dist/cjs/mappers/responses/next-queries-response.mapper.js +1 -1
  20. package/dist/cjs/mappers/responses/next-queries-response.mapper.js.map +1 -1
  21. package/dist/cjs/mappers/responses/popular-searches-response.mapper.js +1 -1
  22. package/dist/cjs/mappers/responses/popular-searches-response.mapper.js.map +1 -1
  23. package/dist/cjs/mappers/responses/query-suggestions-response.mapper.js +1 -1
  24. package/dist/cjs/mappers/responses/query-suggestions-response.mapper.js.map +1 -1
  25. package/dist/cjs/mappers/responses/recommendations-response.mapper.js +1 -1
  26. package/dist/cjs/mappers/responses/recommendations-response.mapper.js.map +1 -1
  27. package/dist/cjs/mappers/responses/related-tags-response.mapper.js +1 -1
  28. package/dist/cjs/mappers/responses/related-tags-response.mapper.js.map +1 -1
  29. package/dist/cjs/mappers/responses/search-response.mapper.js +1 -1
  30. package/dist/cjs/mappers/responses/search-response.mapper.js.map +1 -1
  31. package/dist/cjs/mappers/url.utils.js +59 -0
  32. package/dist/cjs/mappers/url.utils.js.map +1 -0
  33. package/dist/cjs/schemas/index.js +0 -1
  34. package/dist/cjs/schemas/index.js.map +1 -1
  35. package/dist/cjs/schemas/models/banner.schema.js +4 -4
  36. package/dist/cjs/schemas/models/banner.schema.js.map +1 -1
  37. package/dist/cjs/schemas/models/facet.schema.js +8 -23
  38. package/dist/cjs/schemas/models/facet.schema.js.map +1 -1
  39. package/dist/cjs/schemas/models/filters/hierarchical-filter.schema.js +21 -0
  40. package/dist/cjs/schemas/models/filters/hierarchical-filter.schema.js.map +1 -0
  41. package/dist/cjs/schemas/{filters → models/filters}/index.js +1 -0
  42. package/dist/cjs/schemas/models/filters/index.js.map +1 -0
  43. package/dist/cjs/schemas/{filters → models/filters}/number-filter.schema.js +2 -2
  44. package/dist/cjs/schemas/models/filters/number-filter.schema.js.map +1 -0
  45. package/dist/cjs/schemas/{filters → models/filters}/simple-filter.schema.js +2 -2
  46. package/dist/cjs/schemas/models/filters/simple-filter.schema.js.map +1 -0
  47. package/dist/cjs/schemas/models/index.js +1 -0
  48. package/dist/cjs/schemas/models/index.js.map +1 -1
  49. package/dist/cjs/schemas/models/next-query.schema.js +2 -2
  50. package/dist/cjs/schemas/models/next-query.schema.js.map +1 -1
  51. package/dist/cjs/schemas/models/promoted.schema.js +4 -4
  52. package/dist/cjs/schemas/models/promoted.schema.js.map +1 -1
  53. package/dist/cjs/schemas/models/redirection.schema.js +4 -4
  54. package/dist/cjs/schemas/models/redirection.schema.js.map +1 -1
  55. package/dist/cjs/schemas/models/related-tag.schema.js +2 -2
  56. package/dist/cjs/schemas/models/related-tag.schema.js.map +1 -1
  57. package/dist/cjs/schemas/models/result.schema.js +4 -4
  58. package/dist/cjs/schemas/models/result.schema.js.map +1 -1
  59. package/dist/cjs/schemas/models/suggestion.schema.js +2 -2
  60. package/dist/cjs/schemas/models/suggestion.schema.js.map +1 -1
  61. package/dist/cjs/schemas/requests/index.js +0 -1
  62. package/dist/cjs/schemas/requests/index.js.map +1 -1
  63. package/dist/cjs/schemas/requests/next-queries-request.schema.js +2 -2
  64. package/dist/cjs/schemas/requests/next-queries-request.schema.js.map +1 -1
  65. package/dist/cjs/schemas/requests/popular-searches-request.schema.js +2 -2
  66. package/dist/cjs/schemas/requests/popular-searches-request.schema.js.map +1 -1
  67. package/dist/cjs/schemas/requests/query-suggestions-request.schema.js +2 -2
  68. package/dist/cjs/schemas/requests/query-suggestions-request.schema.js.map +1 -1
  69. package/dist/cjs/schemas/requests/recommendations-request.schema.js +2 -2
  70. package/dist/cjs/schemas/requests/recommendations-request.schema.js.map +1 -1
  71. package/dist/cjs/schemas/requests/related-tags-request.schema.js +2 -2
  72. package/dist/cjs/schemas/requests/related-tags-request.schema.js.map +1 -1
  73. package/dist/cjs/schemas/requests/search-request.schema.js +2 -2
  74. package/dist/cjs/schemas/requests/search-request.schema.js.map +1 -1
  75. package/dist/cjs/schemas/responses/next-queries-response.schema.js +3 -3
  76. package/dist/cjs/schemas/responses/next-queries-response.schema.js.map +1 -1
  77. package/dist/cjs/schemas/responses/popular-searches-response.schema.js +3 -3
  78. package/dist/cjs/schemas/responses/popular-searches-response.schema.js.map +1 -1
  79. package/dist/cjs/schemas/responses/query-suggestions-response.schema.js +3 -3
  80. package/dist/cjs/schemas/responses/query-suggestions-response.schema.js.map +1 -1
  81. package/dist/cjs/schemas/responses/recommendations-response.schema.js +2 -2
  82. package/dist/cjs/schemas/responses/recommendations-response.schema.js.map +1 -1
  83. package/dist/cjs/schemas/responses/related-tags-response.schema.js +3 -3
  84. package/dist/cjs/schemas/responses/related-tags-response.schema.js.map +1 -1
  85. package/dist/cjs/schemas/responses/search-response.schema.js +8 -8
  86. package/dist/cjs/schemas/responses/search-response.schema.js.map +1 -1
  87. package/dist/cjs/types/platform-adapter.types.js.map +1 -1
  88. package/dist/esm/endpoint-adapters/tagging.endpoint-adapter.js +2 -2
  89. package/dist/esm/endpoint-adapters/tagging.endpoint-adapter.js.map +1 -1
  90. package/dist/esm/mappers/index.js +1 -0
  91. package/dist/esm/mappers/index.js.map +1 -1
  92. package/dist/esm/mappers/requests/next-queries-request.mapper.js +2 -2
  93. package/dist/esm/mappers/requests/next-queries-request.mapper.js.map +1 -1
  94. package/dist/esm/mappers/requests/popular-searches-request.mapper.js +2 -2
  95. package/dist/esm/mappers/requests/popular-searches-request.mapper.js.map +1 -1
  96. package/dist/esm/mappers/requests/query-suggestions-request.mapper.js +2 -2
  97. package/dist/esm/mappers/requests/query-suggestions-request.mapper.js.map +1 -1
  98. package/dist/esm/mappers/requests/recommendations-request.mapper.js +2 -2
  99. package/dist/esm/mappers/requests/recommendations-request.mapper.js.map +1 -1
  100. package/dist/esm/mappers/requests/related-tags-request.mapper.js +2 -2
  101. package/dist/esm/mappers/requests/related-tags-request.mapper.js.map +1 -1
  102. package/dist/esm/mappers/requests/search-request.mapper.js +2 -2
  103. package/dist/esm/mappers/requests/search-request.mapper.js.map +1 -1
  104. package/dist/esm/mappers/requests/tagging-request.mapper.js +1 -3
  105. package/dist/esm/mappers/requests/tagging-request.mapper.js.map +1 -1
  106. package/dist/esm/mappers/responses/next-queries-response.mapper.js +2 -2
  107. package/dist/esm/mappers/responses/next-queries-response.mapper.js.map +1 -1
  108. package/dist/esm/mappers/responses/popular-searches-response.mapper.js +2 -2
  109. package/dist/esm/mappers/responses/popular-searches-response.mapper.js.map +1 -1
  110. package/dist/esm/mappers/responses/query-suggestions-response.mapper.js +2 -2
  111. package/dist/esm/mappers/responses/query-suggestions-response.mapper.js.map +1 -1
  112. package/dist/esm/mappers/responses/recommendations-response.mapper.js +2 -2
  113. package/dist/esm/mappers/responses/recommendations-response.mapper.js.map +1 -1
  114. package/dist/esm/mappers/responses/related-tags-response.mapper.js +2 -2
  115. package/dist/esm/mappers/responses/related-tags-response.mapper.js.map +1 -1
  116. package/dist/esm/mappers/responses/search-response.mapper.js +2 -2
  117. package/dist/esm/mappers/responses/search-response.mapper.js.map +1 -1
  118. package/dist/esm/mappers/url.utils.js +54 -0
  119. package/dist/esm/mappers/url.utils.js.map +1 -0
  120. package/dist/esm/schemas/index.js +0 -1
  121. package/dist/esm/schemas/index.js.map +1 -1
  122. package/dist/esm/schemas/models/banner.schema.js +2 -2
  123. package/dist/esm/schemas/models/banner.schema.js.map +1 -1
  124. package/dist/esm/schemas/models/facet.schema.js +7 -22
  125. package/dist/esm/schemas/models/facet.schema.js.map +1 -1
  126. package/dist/esm/schemas/models/filters/hierarchical-filter.schema.js +18 -0
  127. package/dist/esm/schemas/models/filters/hierarchical-filter.schema.js.map +1 -0
  128. package/dist/esm/schemas/{filters → models/filters}/index.js +1 -0
  129. package/dist/esm/schemas/models/filters/index.js.map +1 -0
  130. package/dist/esm/schemas/{filters → models/filters}/number-filter.schema.js +1 -1
  131. package/dist/esm/schemas/models/filters/number-filter.schema.js.map +1 -0
  132. package/dist/esm/schemas/{filters → models/filters}/simple-filter.schema.js +1 -1
  133. package/dist/esm/schemas/models/filters/simple-filter.schema.js.map +1 -0
  134. package/dist/esm/schemas/models/index.js +1 -0
  135. package/dist/esm/schemas/models/index.js.map +1 -1
  136. package/dist/esm/schemas/models/next-query.schema.js +1 -1
  137. package/dist/esm/schemas/models/next-query.schema.js.map +1 -1
  138. package/dist/esm/schemas/models/promoted.schema.js +2 -2
  139. package/dist/esm/schemas/models/promoted.schema.js.map +1 -1
  140. package/dist/esm/schemas/models/redirection.schema.js +2 -2
  141. package/dist/esm/schemas/models/redirection.schema.js.map +1 -1
  142. package/dist/esm/schemas/models/related-tag.schema.js +1 -1
  143. package/dist/esm/schemas/models/related-tag.schema.js.map +1 -1
  144. package/dist/esm/schemas/models/result.schema.js +1 -1
  145. package/dist/esm/schemas/models/result.schema.js.map +1 -1
  146. package/dist/esm/schemas/models/suggestion.schema.js +1 -1
  147. package/dist/esm/schemas/models/suggestion.schema.js.map +1 -1
  148. package/dist/esm/schemas/requests/index.js +0 -1
  149. package/dist/esm/schemas/requests/index.js.map +1 -1
  150. package/dist/esm/schemas/requests/next-queries-request.schema.js +1 -1
  151. package/dist/esm/schemas/requests/next-queries-request.schema.js.map +1 -1
  152. package/dist/esm/schemas/requests/popular-searches-request.schema.js +1 -1
  153. package/dist/esm/schemas/requests/popular-searches-request.schema.js.map +1 -1
  154. package/dist/esm/schemas/requests/query-suggestions-request.schema.js +1 -1
  155. package/dist/esm/schemas/requests/query-suggestions-request.schema.js.map +1 -1
  156. package/dist/esm/schemas/requests/recommendations-request.schema.js +1 -1
  157. package/dist/esm/schemas/requests/recommendations-request.schema.js.map +1 -1
  158. package/dist/esm/schemas/requests/related-tags-request.schema.js +1 -1
  159. package/dist/esm/schemas/requests/related-tags-request.schema.js.map +1 -1
  160. package/dist/esm/schemas/requests/search-request.schema.js +1 -1
  161. package/dist/esm/schemas/requests/search-request.schema.js.map +1 -1
  162. package/dist/esm/schemas/responses/next-queries-response.schema.js +3 -3
  163. package/dist/esm/schemas/responses/next-queries-response.schema.js.map +1 -1
  164. package/dist/esm/schemas/responses/popular-searches-response.schema.js +3 -3
  165. package/dist/esm/schemas/responses/popular-searches-response.schema.js.map +1 -1
  166. package/dist/esm/schemas/responses/query-suggestions-response.schema.js +3 -3
  167. package/dist/esm/schemas/responses/query-suggestions-response.schema.js.map +1 -1
  168. package/dist/esm/schemas/responses/recommendations-response.schema.js +1 -1
  169. package/dist/esm/schemas/responses/recommendations-response.schema.js.map +1 -1
  170. package/dist/esm/schemas/responses/related-tags-response.schema.js +3 -3
  171. package/dist/esm/schemas/responses/related-tags-response.schema.js.map +1 -1
  172. package/dist/esm/schemas/responses/search-response.schema.js +10 -10
  173. package/dist/esm/schemas/responses/search-response.schema.js.map +1 -1
  174. package/dist/esm/types/platform-adapter.types.js.map +1 -1
  175. package/dist/types/mappers/index.d.ts +1 -0
  176. package/dist/types/mappers/requests/tagging-request.mapper.d.ts +2 -1
  177. package/dist/types/mappers/url.utils.d.ts +20 -0
  178. package/dist/types/schemas/index.d.ts +0 -1
  179. package/dist/types/schemas/models/banner.schema.d.ts +1 -1
  180. package/dist/types/schemas/models/facet.schema.d.ts +3 -4
  181. package/dist/types/schemas/models/filters/hierarchical-filter.schema.d.ts +4 -0
  182. package/dist/types/schemas/{filters → models/filters}/index.d.ts +1 -0
  183. package/dist/types/schemas/models/filters/number-filter.schema.d.ts +4 -0
  184. package/dist/types/schemas/models/filters/simple-filter.schema.d.ts +4 -0
  185. package/dist/types/schemas/models/index.d.ts +1 -0
  186. package/dist/types/schemas/models/next-query.schema.d.ts +1 -1
  187. package/dist/types/schemas/models/promoted.schema.d.ts +1 -1
  188. package/dist/types/schemas/models/redirection.schema.d.ts +1 -1
  189. package/dist/types/schemas/models/related-tag.schema.d.ts +1 -1
  190. package/dist/types/schemas/models/suggestion.schema.d.ts +1 -1
  191. package/dist/types/schemas/requests/index.d.ts +0 -1
  192. package/dist/types/schemas/requests/next-queries-request.schema.d.ts +1 -1
  193. package/dist/types/schemas/requests/popular-searches-request.schema.d.ts +1 -1
  194. package/dist/types/schemas/requests/query-suggestions-request.schema.d.ts +1 -1
  195. package/dist/types/schemas/requests/recommendations-request.schema.d.ts +1 -1
  196. package/dist/types/schemas/requests/related-tags-request.schema.d.ts +1 -1
  197. package/dist/types/schemas/requests/search-request.schema.d.ts +1 -1
  198. package/dist/types/schemas/responses/next-queries-response.schema.d.ts +1 -1
  199. package/dist/types/schemas/responses/popular-searches-response.schema.d.ts +1 -1
  200. package/dist/types/schemas/responses/query-suggestions-response.schema.d.ts +1 -1
  201. package/dist/types/schemas/responses/recommendations-response.schema.d.ts +1 -1
  202. package/dist/types/schemas/responses/related-tags-response.schema.d.ts +1 -1
  203. package/dist/types/schemas/responses/search-response.schema.d.ts +1 -1
  204. package/dist/types/types/platform-adapter.types.d.ts +11 -11
  205. package/package.json +5 -5
  206. package/dist/cjs/schemas/filters/index.js.map +0 -1
  207. package/dist/cjs/schemas/filters/number-filter.schema.js.map +0 -1
  208. package/dist/cjs/schemas/filters/simple-filter.schema.js.map +0 -1
  209. package/dist/cjs/schemas/requests/tagging-request.schema.js +0 -6
  210. package/dist/cjs/schemas/requests/tagging-request.schema.js.map +0 -1
  211. package/dist/esm/schemas/filters/index.js.map +0 -1
  212. package/dist/esm/schemas/filters/number-filter.schema.js.map +0 -1
  213. package/dist/esm/schemas/filters/simple-filter.schema.js.map +0 -1
  214. package/dist/esm/schemas/requests/tagging-request.schema.js +0 -3
  215. package/dist/esm/schemas/requests/tagging-request.schema.js.map +0 -1
  216. package/dist/types/schemas/filters/number-filter.schema.d.ts +0 -4
  217. package/dist/types/schemas/filters/simple-filter.schema.d.ts +0 -4
  218. package/dist/types/schemas/requests/tagging-request.schema.d.ts +0 -3
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.promotedMutableSchema = void 0;
3
+ exports.promotedSchema = void 0;
4
4
  const x_adapter_1 = require("@empathyco/x-adapter");
5
- const x_utils_1 = require("@empathyco/x-utils");
6
- exports.promotedMutableSchema = (0, x_adapter_1.createMutableSchema)({
5
+ const url_utils_1 = require("../../mappers/url.utils");
6
+ exports.promotedSchema = (0, x_adapter_1.createMutableSchema)({
7
7
  id: 'id',
8
8
  url: 'url',
9
9
  title: 'title',
10
10
  image: 'image_url',
11
11
  modelName: () => 'Promoted',
12
12
  tagging: {
13
- query: ({ tagging }) => { var _a; return (0, x_utils_1.getTaggingInfoFromUrl)((_a = tagging === null || tagging === void 0 ? void 0 : tagging.query) !== null && _a !== void 0 ? _a : ''); }
13
+ query: ({ tagging }) => { var _a; return (0, url_utils_1.getTaggingInfoFromUrl)((_a = tagging === null || tagging === void 0 ? void 0 : tagging.query) !== null && _a !== void 0 ? _a : ''); }
14
14
  }
15
15
  });
16
16
  //# sourceMappingURL=promoted.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"promoted.schema.js","sourceRoot":"","sources":["../../../../src/schemas/models/promoted.schema.ts"],"names":[],"mappings":";;;AACA,oDAAmE;AACnE,gDAA2D;AAG9C,QAAA,qBAAqB,GAAG,IAAA,+BAAmB,EAAqC;IAC3F,EAAE,EAAE,IAAI;IACR,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,WAAW;IAClB,SAAS,EAAE,GAAG,EAAE,CAAC,UAAU;IAC3B,OAAO,EAAE;QACP,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,WAAC,OAAA,IAAA,+BAAqB,EAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,mCAAI,EAAE,CAAC,CAAA,EAAA;KACpE;CACF,CAAC,CAAC","sourcesContent":["import { Promoted } from '@empathyco/x-types';\nimport { createMutableSchema, Schema } from '@empathyco/x-adapter';\nimport { getTaggingInfoFromUrl } from '@empathyco/x-utils';\nimport { PlatformPromoted } from '../../types/models/promoted.model';\n\nexport const promotedMutableSchema = createMutableSchema<Schema<PlatformPromoted, Promoted>>({\n id: 'id',\n url: 'url',\n title: 'title',\n image: 'image_url',\n modelName: () => 'Promoted',\n tagging: {\n query: ({ tagging }) => getTaggingInfoFromUrl(tagging?.query ?? '')\n }\n});\n"]}
1
+ {"version":3,"file":"promoted.schema.js","sourceRoot":"","sources":["../../../../src/schemas/models/promoted.schema.ts"],"names":[],"mappings":";;;AACA,oDAAmE;AAEnE,uDAAgE;AAEnD,QAAA,cAAc,GAAG,IAAA,+BAAmB,EAAqC;IACpF,EAAE,EAAE,IAAI;IACR,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,WAAW;IAClB,SAAS,EAAE,GAAG,EAAE,CAAC,UAAU;IAC3B,OAAO,EAAE;QACP,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,WAAC,OAAA,IAAA,iCAAqB,EAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,mCAAI,EAAE,CAAC,CAAA,EAAA;KACpE;CACF,CAAC,CAAC","sourcesContent":["import { Promoted } from '@empathyco/x-types';\nimport { createMutableSchema, Schema } from '@empathyco/x-adapter';\nimport { PlatformPromoted } from '../../types/models/promoted.model';\nimport { getTaggingInfoFromUrl } from '../../mappers/url.utils';\n\nexport const promotedSchema = createMutableSchema<Schema<PlatformPromoted, Promoted>>({\n id: 'id',\n url: 'url',\n title: 'title',\n image: 'image_url',\n modelName: () => 'Promoted',\n tagging: {\n query: ({ tagging }) => getTaggingInfoFromUrl(tagging?.query ?? '')\n }\n});\n"]}
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.redirectionMutableSchema = void 0;
3
+ exports.redirectionSchema = void 0;
4
4
  const x_adapter_1 = require("@empathyco/x-adapter");
5
- const x_utils_1 = require("@empathyco/x-utils");
6
- exports.redirectionMutableSchema = (0, x_adapter_1.createMutableSchema)({
5
+ const url_utils_1 = require("../../mappers/url.utils");
6
+ exports.redirectionSchema = (0, x_adapter_1.createMutableSchema)({
7
7
  id: 'id',
8
8
  url: 'url',
9
9
  modelName: () => 'Redirection',
10
10
  tagging: {
11
- click: ({ tagging }) => { var _a; return (0, x_utils_1.getTaggingInfoFromUrl)((_a = tagging === null || tagging === void 0 ? void 0 : tagging.click) !== null && _a !== void 0 ? _a : ''); }
11
+ click: ({ tagging }) => { var _a; return (0, url_utils_1.getTaggingInfoFromUrl)((_a = tagging === null || tagging === void 0 ? void 0 : tagging.click) !== null && _a !== void 0 ? _a : ''); }
12
12
  }
13
13
  });
14
14
  //# sourceMappingURL=redirection.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"redirection.schema.js","sourceRoot":"","sources":["../../../../src/schemas/models/redirection.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AAEnE,gDAA2D;AAG9C,QAAA,wBAAwB,GAAG,IAAA,+BAAmB,EAEzD;IACA,EAAE,EAAE,IAAI;IACR,GAAG,EAAE,KAAK;IACV,SAAS,EAAE,GAAG,EAAE,CAAC,aAAa;IAC9B,OAAO,EAAE;QACP,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,WAAC,OAAA,IAAA,+BAAqB,EAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,mCAAI,EAAE,CAAC,CAAA,EAAA;KACpE;CACF,CAAC,CAAC","sourcesContent":["import { createMutableSchema, Schema } from '@empathyco/x-adapter';\nimport { Redirection } from '@empathyco/x-types';\nimport { getTaggingInfoFromUrl } from '@empathyco/x-utils';\nimport { PlatformRedirection } from '../../types/models/redirection.model';\n\nexport const redirectionMutableSchema = createMutableSchema<\n Schema<PlatformRedirection, Redirection>\n>({\n id: 'id',\n url: 'url',\n modelName: () => 'Redirection',\n tagging: {\n click: ({ tagging }) => getTaggingInfoFromUrl(tagging?.click ?? '')\n }\n});\n"]}
1
+ {"version":3,"file":"redirection.schema.js","sourceRoot":"","sources":["../../../../src/schemas/models/redirection.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AAGnE,uDAAgE;AAEnD,QAAA,iBAAiB,GAAG,IAAA,+BAAmB,EAA2C;IAC7F,EAAE,EAAE,IAAI;IACR,GAAG,EAAE,KAAK;IACV,SAAS,EAAE,GAAG,EAAE,CAAC,aAAa;IAC9B,OAAO,EAAE;QACP,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,WAAC,OAAA,IAAA,iCAAqB,EAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,mCAAI,EAAE,CAAC,CAAA,EAAA;KACpE;CACF,CAAC,CAAC","sourcesContent":["import { createMutableSchema, Schema } from '@empathyco/x-adapter';\nimport { Redirection } from '@empathyco/x-types';\nimport { PlatformRedirection } from '../../types/models/redirection.model';\nimport { getTaggingInfoFromUrl } from '../../mappers/url.utils';\n\nexport const redirectionSchema = createMutableSchema<Schema<PlatformRedirection, Redirection>>({\n id: 'id',\n url: 'url',\n modelName: () => 'Redirection',\n tagging: {\n click: ({ tagging }) => getTaggingInfoFromUrl(tagging?.click ?? '')\n }\n});\n"]}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.relatedTagMutableSchema = void 0;
3
+ exports.relatedTagSchema = void 0;
4
4
  const x_adapter_1 = require("@empathyco/x-adapter");
5
- exports.relatedTagMutableSchema = (0, x_adapter_1.createMutableSchema)({
5
+ exports.relatedTagSchema = (0, x_adapter_1.createMutableSchema)({
6
6
  query: 'query',
7
7
  tag: 'tag',
8
8
  modelName: () => 'RelatedTag',
@@ -1 +1 @@
1
- {"version":3,"file":"related-tag.schema.js","sourceRoot":"","sources":["../../../../src/schemas/models/related-tag.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AAItD,QAAA,uBAAuB,GAAG,IAAA,+BAAmB,EAAyC;IACjG,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;IACV,SAAS,EAAE,GAAG,EAAE,CAAC,YAAY;IAC7B,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM,KAAK,SAAS;CAChD,CAAC,CAAC","sourcesContent":["import { createMutableSchema, Schema } from '@empathyco/x-adapter';\nimport { RelatedTag } from '@empathyco/x-types';\nimport { PlatformRelatedTag } from '../../types/models/related-tag.model';\n\nexport const relatedTagMutableSchema = createMutableSchema<Schema<PlatformRelatedTag, RelatedTag>>({\n query: 'query',\n tag: 'tag',\n modelName: () => 'RelatedTag',\n isCurated: ({ source }) => source === 'CURATED'\n});\n"]}
1
+ {"version":3,"file":"related-tag.schema.js","sourceRoot":"","sources":["../../../../src/schemas/models/related-tag.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AAItD,QAAA,gBAAgB,GAAG,IAAA,+BAAmB,EAAyC;IAC1F,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;IACV,SAAS,EAAE,GAAG,EAAE,CAAC,YAAY;IAC7B,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM,KAAK,SAAS;CAChD,CAAC,CAAC","sourcesContent":["import { createMutableSchema, Schema } from '@empathyco/x-adapter';\nimport { RelatedTag } from '@empathyco/x-types';\nimport { PlatformRelatedTag } from '../../types/models/related-tag.model';\n\nexport const relatedTagSchema = createMutableSchema<Schema<PlatformRelatedTag, RelatedTag>>({\n query: 'query',\n tag: 'tag',\n modelName: () => 'RelatedTag',\n isCurated: ({ source }) => source === 'CURATED'\n});\n"]}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resultSchema = void 0;
4
4
  const x_adapter_1 = require("@empathyco/x-adapter");
5
- const x_utils_1 = require("@empathyco/x-utils");
5
+ const url_utils_1 = require("../../mappers/url.utils");
6
6
  exports.resultSchema = (0, x_adapter_1.createMutableSchema)({
7
7
  id: 'id',
8
8
  images: ({ image }) => {
@@ -27,9 +27,9 @@ exports.resultSchema = (0, x_adapter_1.createMutableSchema)({
27
27
  tagging: {
28
28
  $path: 'tagging',
29
29
  $subSchema: {
30
- add2cart: ({ add2cart }) => (0, x_utils_1.getTaggingInfoFromUrl)(add2cart),
31
- checkout: ({ checkout }) => (0, x_utils_1.getTaggingInfoFromUrl)(checkout),
32
- click: ({ click }) => (0, x_utils_1.getTaggingInfoFromUrl)(click)
30
+ add2cart: ({ add2cart }) => (0, url_utils_1.getTaggingInfoFromUrl)(add2cart),
31
+ checkout: ({ checkout }) => (0, url_utils_1.getTaggingInfoFromUrl)(checkout),
32
+ click: ({ click }) => (0, url_utils_1.getTaggingInfoFromUrl)(click)
33
33
  }
34
34
  }
35
35
  });
@@ -1 +1 @@
1
- {"version":3,"file":"result.schema.js","sourceRoot":"","sources":["../../../../src/schemas/models/result.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AAEnE,gDAA2D;AAG9C,QAAA,YAAY,GAAG,IAAA,+BAAmB,EAAiC;IAC9E,EAAE,EAAE,IAAI;IACR,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;QACpB,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9B,CAAC;IACD,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,UAAU,EAAE;QACV,KAAK,EAAE,IAAI;KACZ;IACD,MAAM,EAAE;QACN,KAAK,EAAE,GAAG,EAAE,CAAC,IAAI;KAClB;IACD,KAAK,EAAE;QACL,KAAK,EAAE,OAAO;QACd,aAAa,EAAE,OAAO;QACtB,WAAW,EAAE,GAAG,EAAE,CAAC,KAAK;KACzB;IACD,IAAI,EAAE,GAAG,EAAE,CAAC,SAAS;IACrB,SAAS,EAAE,GAAG,EAAE,CAAC,QAAQ;IACzB,YAAY,EAAE,GAAG,EAAE,CAAC,KAAK;IACzB,OAAO,EAAE;QACP,KAAK,EAAE,SAAS;QAChB,UAAU,EAAE;YACV,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,IAAA,+BAAqB,EAAC,QAAQ,CAAC;YAC3D,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,IAAA,+BAAqB,EAAC,QAAQ,CAAC;YAC3D,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,IAAA,+BAAqB,EAAC,KAAK,CAAC;SACnD;KACF;CACF,CAAC,CAAC","sourcesContent":["import { createMutableSchema, Schema } from '@empathyco/x-adapter';\nimport { Result } from '@empathyco/x-types';\nimport { getTaggingInfoFromUrl } from '@empathyco/x-utils';\nimport { PlatformResult } from '../../types/models/result.model';\n\nexport const resultSchema = createMutableSchema<Schema<PlatformResult, Result>>({\n id: 'id',\n images: ({ image }) => {\n return image ? [image] : [];\n },\n name: 'name',\n url: 'url',\n identifier: {\n value: 'id'\n },\n rating: {\n value: () => null\n },\n price: {\n value: 'price',\n originalValue: 'price',\n hasDiscount: () => false\n },\n type: () => 'Default',\n modelName: () => 'Result',\n isWishlisted: () => false,\n tagging: {\n $path: 'tagging',\n $subSchema: {\n add2cart: ({ add2cart }) => getTaggingInfoFromUrl(add2cart),\n checkout: ({ checkout }) => getTaggingInfoFromUrl(checkout),\n click: ({ click }) => getTaggingInfoFromUrl(click)\n }\n }\n});\n"]}
1
+ {"version":3,"file":"result.schema.js","sourceRoot":"","sources":["../../../../src/schemas/models/result.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AAEnE,uDAAgE;AAGnD,QAAA,YAAY,GAAG,IAAA,+BAAmB,EAAiC;IAC9E,EAAE,EAAE,IAAI;IACR,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;QACpB,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9B,CAAC;IACD,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,UAAU,EAAE;QACV,KAAK,EAAE,IAAI;KACZ;IACD,MAAM,EAAE;QACN,KAAK,EAAE,GAAG,EAAE,CAAC,IAAI;KAClB;IACD,KAAK,EAAE;QACL,KAAK,EAAE,OAAO;QACd,aAAa,EAAE,OAAO;QACtB,WAAW,EAAE,GAAG,EAAE,CAAC,KAAK;KACzB;IACD,IAAI,EAAE,GAAG,EAAE,CAAC,SAAS;IACrB,SAAS,EAAE,GAAG,EAAE,CAAC,QAAQ;IACzB,YAAY,EAAE,GAAG,EAAE,CAAC,KAAK;IACzB,OAAO,EAAE;QACP,KAAK,EAAE,SAAS;QAChB,UAAU,EAAE;YACV,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,IAAA,iCAAqB,EAAC,QAAQ,CAAC;YAC3D,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,IAAA,iCAAqB,EAAC,QAAQ,CAAC;YAC3D,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,IAAA,iCAAqB,EAAC,KAAK,CAAC;SACnD;KACF;CACF,CAAC,CAAC","sourcesContent":["import { createMutableSchema, Schema } from '@empathyco/x-adapter';\nimport { Result } from '@empathyco/x-types';\nimport { getTaggingInfoFromUrl } from '../../mappers/url.utils';\nimport { PlatformResult } from '../../types/models/result.model';\n\nexport const resultSchema = createMutableSchema<Schema<PlatformResult, Result>>({\n id: 'id',\n images: ({ image }) => {\n return image ? [image] : [];\n },\n name: 'name',\n url: 'url',\n identifier: {\n value: 'id'\n },\n rating: {\n value: () => null\n },\n price: {\n value: 'price',\n originalValue: 'price',\n hasDiscount: () => false\n },\n type: () => 'Default',\n modelName: () => 'Result',\n isWishlisted: () => false,\n tagging: {\n $path: 'tagging',\n $subSchema: {\n add2cart: ({ add2cart }) => getTaggingInfoFromUrl(add2cart),\n checkout: ({ checkout }) => getTaggingInfoFromUrl(checkout),\n click: ({ click }) => getTaggingInfoFromUrl(click)\n }\n }\n});\n"]}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.suggestionMutableSchema = void 0;
3
+ exports.suggestionSchema = void 0;
4
4
  const x_adapter_1 = require("@empathyco/x-adapter");
5
- exports.suggestionMutableSchema = (0, x_adapter_1.createMutableSchema)({
5
+ exports.suggestionSchema = (0, x_adapter_1.createMutableSchema)({
6
6
  query: 'title_raw',
7
7
  key: 'title_raw',
8
8
  modelName: (_, $context) => { var _a; return ((_a = $context === null || $context === void 0 ? void 0 : $context.requestParameters) === null || _a === void 0 ? void 0 : _a.query) ? 'QuerySuggestion' : 'PopularSearch'; },
@@ -1 +1 @@
1
- {"version":3,"file":"suggestion.schema.js","sourceRoot":"","sources":["../../../../src/schemas/models/suggestion.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AAItD,QAAA,uBAAuB,GAAG,IAAA,+BAAmB,EAAyC;IACjG,KAAK,EAAE,WAAW;IAClB,GAAG,EAAE,WAAW;IAChB,SAAS,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,WACzB,OAAA,CAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,iBAAiB,0CAAE,KAAK,EAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,eAAe,CAAA,EAAA;IAC1E,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE;IAChB,SAAS,EAAE,GAAG,EAAE,CAAC,KAAK;CACvB,CAAC,CAAC","sourcesContent":["import { createMutableSchema, Schema } from '@empathyco/x-adapter';\nimport { Suggestion } from '@empathyco/x-types';\nimport { PlatformSuggestion } from '../../types/models/suggestion.model';\n\nexport const suggestionMutableSchema = createMutableSchema<Schema<PlatformSuggestion, Suggestion>>({\n query: 'title_raw',\n key: 'title_raw',\n modelName: (_, $context) =>\n $context?.requestParameters?.query ? 'QuerySuggestion' : 'PopularSearch',\n facets: () => [],\n isCurated: () => false\n});\n"]}
1
+ {"version":3,"file":"suggestion.schema.js","sourceRoot":"","sources":["../../../../src/schemas/models/suggestion.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AAItD,QAAA,gBAAgB,GAAG,IAAA,+BAAmB,EAAyC;IAC1F,KAAK,EAAE,WAAW;IAClB,GAAG,EAAE,WAAW;IAChB,SAAS,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,WACzB,OAAA,CAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,iBAAiB,0CAAE,KAAK,EAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,eAAe,CAAA,EAAA;IAC1E,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE;IAChB,SAAS,EAAE,GAAG,EAAE,CAAC,KAAK;CACvB,CAAC,CAAC","sourcesContent":["import { createMutableSchema, Schema } from '@empathyco/x-adapter';\nimport { Suggestion } from '@empathyco/x-types';\nimport { PlatformSuggestion } from '../../types/models/suggestion.model';\n\nexport const suggestionSchema = createMutableSchema<Schema<PlatformSuggestion, Suggestion>>({\n query: 'title_raw',\n key: 'title_raw',\n modelName: (_, $context) =>\n $context?.requestParameters?.query ? 'QuerySuggestion' : 'PopularSearch',\n facets: () => [],\n isCurated: () => false\n});\n"]}
@@ -8,5 +8,4 @@ tslib_1.__exportStar(require("./query-suggestions-request.schema"), exports);
8
8
  tslib_1.__exportStar(require("./related-tags-request.schema"), exports);
9
9
  tslib_1.__exportStar(require("./recommendations-request.schema"), exports);
10
10
  tslib_1.__exportStar(require("./search-request.schema"), exports);
11
- tslib_1.__exportStar(require("./tagging-request.schema"), exports);
12
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schemas/requests/index.ts"],"names":[],"mappings":";;;AAAA,8EAAoD;AACpD,wEAA8C;AAC9C,4EAAkD;AAClD,6EAAmD;AACnD,wEAA8C;AAC9C,2EAAiD;AACjD,kEAAwC;AACxC,mEAAyC","sourcesContent":["export * from './identifier-results-request.schema';\nexport * from './next-queries-request.schema';\nexport * from './popular-searches-request.schema';\nexport * from './query-suggestions-request.schema';\nexport * from './related-tags-request.schema';\nexport * from './recommendations-request.schema';\nexport * from './search-request.schema';\nexport * from './tagging-request.schema';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schemas/requests/index.ts"],"names":[],"mappings":";;;AAAA,8EAAoD;AACpD,wEAA8C;AAC9C,4EAAkD;AAClD,6EAAmD;AACnD,wEAA8C;AAC9C,2EAAiD;AACjD,kEAAwC","sourcesContent":["export * from './identifier-results-request.schema';\nexport * from './next-queries-request.schema';\nexport * from './popular-searches-request.schema';\nexport * from './query-suggestions-request.schema';\nexport * from './related-tags-request.schema';\nexport * from './recommendations-request.schema';\nexport * from './search-request.schema';\n"]}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.nextQueriesRequestMutableSchema = void 0;
3
+ exports.nextQueriesRequestSchema = void 0;
4
4
  const x_adapter_1 = require("@empathyco/x-adapter");
5
- exports.nextQueriesRequestMutableSchema = (0, x_adapter_1.createMutableSchema)({
5
+ exports.nextQueriesRequestSchema = (0, x_adapter_1.createMutableSchema)({
6
6
  query: 'query',
7
7
  extraParams: 'extraParams'
8
8
  });
@@ -1 +1 @@
1
- {"version":3,"file":"next-queries-request.schema.js","sourceRoot":"","sources":["../../../../src/schemas/requests/next-queries-request.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AAItD,QAAA,+BAA+B,GAAG,IAAA,+BAAmB,EAEhE;IACA,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;CAC3B,CAAC,CAAC","sourcesContent":["import { createMutableSchema, Schema } from '@empathyco/x-adapter';\nimport { NextQueriesRequest } from '@empathyco/x-types';\nimport { PlatformNextQueriesRequest } from '../../types/requests/next-queries-request.model';\n\nexport const nextQueriesRequestMutableSchema = createMutableSchema<\n Schema<NextQueriesRequest, PlatformNextQueriesRequest>\n>({\n query: 'query',\n extraParams: 'extraParams'\n});\n"]}
1
+ {"version":3,"file":"next-queries-request.schema.js","sourceRoot":"","sources":["../../../../src/schemas/requests/next-queries-request.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AAItD,QAAA,wBAAwB,GAAG,IAAA,+BAAmB,EAEzD;IACA,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;CAC3B,CAAC,CAAC","sourcesContent":["import { createMutableSchema, Schema } from '@empathyco/x-adapter';\nimport { NextQueriesRequest } from '@empathyco/x-types';\nimport { PlatformNextQueriesRequest } from '../../types/requests/next-queries-request.model';\n\nexport const nextQueriesRequestSchema = createMutableSchema<\n Schema<NextQueriesRequest, PlatformNextQueriesRequest>\n>({\n query: 'query',\n extraParams: 'extraParams'\n});\n"]}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.popularSearchesRequestMutableSchema = void 0;
3
+ exports.popularSearchesRequestSchema = void 0;
4
4
  const x_adapter_1 = require("@empathyco/x-adapter");
5
- exports.popularSearchesRequestMutableSchema = (0, x_adapter_1.createMutableSchema)({
5
+ exports.popularSearchesRequestSchema = (0, x_adapter_1.createMutableSchema)({
6
6
  start: 'start',
7
7
  rows: 'rows',
8
8
  extraParams: 'extraParams'
@@ -1 +1 @@
1
- {"version":3,"file":"popular-searches-request.schema.js","sourceRoot":"","sources":["../../../../src/schemas/requests/popular-searches-request.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AAKtD,QAAA,mCAAmC,GAAG,IAAA,+BAAmB,EAEpE;IACA,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,aAAa;CAC3B,CAAC,CAAC","sourcesContent":["import { createMutableSchema, Schema } from '@empathyco/x-adapter';\nimport { PopularSearchesRequest } from '@empathyco/x-types';\n// eslint-disable-next-line max-len\nimport { PlatformPopularSearchesRequest } from '../../types/requests/popular-searches-request.model';\n\nexport const popularSearchesRequestMutableSchema = createMutableSchema<\n Schema<PopularSearchesRequest, PlatformPopularSearchesRequest>\n>({\n start: 'start',\n rows: 'rows',\n extraParams: 'extraParams'\n});\n"]}
1
+ {"version":3,"file":"popular-searches-request.schema.js","sourceRoot":"","sources":["../../../../src/schemas/requests/popular-searches-request.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AAKtD,QAAA,4BAA4B,GAAG,IAAA,+BAAmB,EAE7D;IACA,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,aAAa;CAC3B,CAAC,CAAC","sourcesContent":["import { createMutableSchema, Schema } from '@empathyco/x-adapter';\nimport { PopularSearchesRequest } from '@empathyco/x-types';\n// eslint-disable-next-line max-len\nimport { PlatformPopularSearchesRequest } from '../../types/requests/popular-searches-request.model';\n\nexport const popularSearchesRequestSchema = createMutableSchema<\n Schema<PopularSearchesRequest, PlatformPopularSearchesRequest>\n>({\n start: 'start',\n rows: 'rows',\n extraParams: 'extraParams'\n});\n"]}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.querySuggestionsRequestMutableSchema = void 0;
3
+ exports.querySuggestionsRequestSchema = void 0;
4
4
  const x_adapter_1 = require("@empathyco/x-adapter");
5
- exports.querySuggestionsRequestMutableSchema = (0, x_adapter_1.createMutableSchema)({
5
+ exports.querySuggestionsRequestSchema = (0, x_adapter_1.createMutableSchema)({
6
6
  query: 'query',
7
7
  start: 'start',
8
8
  rows: 'rows',
@@ -1 +1 @@
1
- {"version":3,"file":"query-suggestions-request.schema.js","sourceRoot":"","sources":["../../../../src/schemas/requests/query-suggestions-request.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AAKtD,QAAA,oCAAoC,GAAG,IAAA,+BAAmB,EAErE;IACA,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,aAAa;CAC3B,CAAC,CAAC","sourcesContent":["import { createMutableSchema, Schema } from '@empathyco/x-adapter';\nimport { QuerySuggestionsRequest } from '@empathyco/x-types';\n// eslint-disable-next-line max-len\nimport { PlatformQuerySuggestionsRequest } from '../../types/requests/query-suggestions-request.model';\n\nexport const querySuggestionsRequestMutableSchema = createMutableSchema<\n Schema<QuerySuggestionsRequest, PlatformQuerySuggestionsRequest>\n>({\n query: 'query',\n start: 'start',\n rows: 'rows',\n extraParams: 'extraParams'\n});\n"]}
1
+ {"version":3,"file":"query-suggestions-request.schema.js","sourceRoot":"","sources":["../../../../src/schemas/requests/query-suggestions-request.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AAKtD,QAAA,6BAA6B,GAAG,IAAA,+BAAmB,EAE9D;IACA,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,aAAa;CAC3B,CAAC,CAAC","sourcesContent":["import { createMutableSchema, Schema } from '@empathyco/x-adapter';\nimport { QuerySuggestionsRequest } from '@empathyco/x-types';\n// eslint-disable-next-line max-len\nimport { PlatformQuerySuggestionsRequest } from '../../types/requests/query-suggestions-request.model';\n\nexport const querySuggestionsRequestSchema = createMutableSchema<\n Schema<QuerySuggestionsRequest, PlatformQuerySuggestionsRequest>\n>({\n query: 'query',\n start: 'start',\n rows: 'rows',\n extraParams: 'extraParams'\n});\n"]}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.recommendationsRequestMutableSchema = void 0;
3
+ exports.recommendationsRequestSchema = void 0;
4
4
  const x_adapter_1 = require("@empathyco/x-adapter");
5
- exports.recommendationsRequestMutableSchema = (0, x_adapter_1.createMutableSchema)({
5
+ exports.recommendationsRequestSchema = (0, x_adapter_1.createMutableSchema)({
6
6
  start: 'start',
7
7
  rows: 'rows',
8
8
  origin: 'origin',
@@ -1 +1 @@
1
- {"version":3,"file":"recommendations-request.schema.js","sourceRoot":"","sources":["../../../../src/schemas/requests/recommendations-request.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AAKtD,QAAA,mCAAmC,GAAG,IAAA,+BAAmB,EAEpE;IACA,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,aAAa;CAC3B,CAAC,CAAC","sourcesContent":["import { createMutableSchema, Schema } from '@empathyco/x-adapter';\nimport { RecommendationsRequest } from '@empathyco/x-types';\n// eslint-disable-next-line max-len\nimport { PlatformRecommendationsRequest } from '../../types/requests/recommendations-request.model';\n\nexport const recommendationsRequestMutableSchema = createMutableSchema<\n Schema<RecommendationsRequest, PlatformRecommendationsRequest>\n>({\n start: 'start',\n rows: 'rows',\n origin: 'origin',\n extraParams: 'extraParams'\n});\n"]}
1
+ {"version":3,"file":"recommendations-request.schema.js","sourceRoot":"","sources":["../../../../src/schemas/requests/recommendations-request.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AAKtD,QAAA,4BAA4B,GAAG,IAAA,+BAAmB,EAE7D;IACA,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,aAAa;CAC3B,CAAC,CAAC","sourcesContent":["import { createMutableSchema, Schema } from '@empathyco/x-adapter';\nimport { RecommendationsRequest } from '@empathyco/x-types';\n// eslint-disable-next-line max-len\nimport { PlatformRecommendationsRequest } from '../../types/requests/recommendations-request.model';\n\nexport const recommendationsRequestSchema = createMutableSchema<\n Schema<RecommendationsRequest, PlatformRecommendationsRequest>\n>({\n start: 'start',\n rows: 'rows',\n origin: 'origin',\n extraParams: 'extraParams'\n});\n"]}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.relatedTagsRequestMutableSchema = void 0;
3
+ exports.relatedTagsRequestSchema = void 0;
4
4
  const x_adapter_1 = require("@empathyco/x-adapter");
5
- exports.relatedTagsRequestMutableSchema = (0, x_adapter_1.createMutableSchema)({
5
+ exports.relatedTagsRequestSchema = (0, x_adapter_1.createMutableSchema)({
6
6
  query: 'query',
7
7
  extraParams: 'extraParams'
8
8
  });
@@ -1 +1 @@
1
- {"version":3,"file":"related-tags-request.schema.js","sourceRoot":"","sources":["../../../../src/schemas/requests/related-tags-request.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AAItD,QAAA,+BAA+B,GAAG,IAAA,+BAAmB,EAEhE;IACA,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;CAC3B,CAAC,CAAC","sourcesContent":["import { createMutableSchema, Schema } from '@empathyco/x-adapter';\nimport { RelatedTagsRequest } from '@empathyco/x-types';\nimport { PlatformRelatedTagsRequest } from '../../types/requests/related-tags-request.model';\n\nexport const relatedTagsRequestMutableSchema = createMutableSchema<\n Schema<RelatedTagsRequest, PlatformRelatedTagsRequest>\n>({\n query: 'query',\n extraParams: 'extraParams'\n});\n"]}
1
+ {"version":3,"file":"related-tags-request.schema.js","sourceRoot":"","sources":["../../../../src/schemas/requests/related-tags-request.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AAItD,QAAA,wBAAwB,GAAG,IAAA,+BAAmB,EAEzD;IACA,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;CAC3B,CAAC,CAAC","sourcesContent":["import { createMutableSchema, Schema } from '@empathyco/x-adapter';\nimport { RelatedTagsRequest } from '@empathyco/x-types';\nimport { PlatformRelatedTagsRequest } from '../../types/requests/related-tags-request.model';\n\nexport const relatedTagsRequestSchema = createMutableSchema<\n Schema<RelatedTagsRequest, PlatformRelatedTagsRequest>\n>({\n query: 'query',\n extraParams: 'extraParams'\n});\n"]}
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.searchRequestMutableSchema = void 0;
3
+ exports.searchRequestSchema = void 0;
4
4
  const x_adapter_1 = require("@empathyco/x-adapter");
5
5
  const x_utils_1 = require("@empathyco/x-utils");
6
6
  const x_types_1 = require("@empathyco/x-types");
7
- exports.searchRequestMutableSchema = (0, x_adapter_1.createMutableSchema)({
7
+ exports.searchRequestSchema = (0, x_adapter_1.createMutableSchema)({
8
8
  query: 'query',
9
9
  origin: 'origin',
10
10
  start: 'start',
@@ -1 +1 @@
1
- {"version":3,"file":"search-request.schema.js","sourceRoot":"","sources":["../../../../src/schemas/requests/search-request.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AACnE,gDAA4C;AAC5C,gDAAyE;AAG5D,QAAA,0BAA0B,GAAG,IAAA,+BAAmB,EAE3D;IACA,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,UAAU;IAClB,WAAW,EAAE,aAAa;CAC3B,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,SAAS,UAAU,CAAC,EAAE,OAAO,EAAiB;IAC5C,OAAO,IAAA,gBAAM,EACX,OAAO,EACP,CAAC,WAAW,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC;QAC3B,GAAG,WAAW;QACd,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,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC;KACvC,EACD,EAAc,CACf,CAAC;AACJ,CAAC","sourcesContent":["import { createMutableSchema, Schema } from '@empathyco/x-adapter';\nimport { reduce } from '@empathyco/x-utils';\nimport { isHierarchicalFilter, SearchRequest } from '@empathyco/x-types';\nimport { PlatformSearchRequest } from '../../types/requests/search-request.model';\n\nexport const searchRequestMutableSchema = createMutableSchema<\n Schema<SearchRequest, PlatformSearchRequest>\n>({\n query: 'query',\n origin: 'origin',\n start: 'start',\n rows: 'rows',\n sort: 'sort',\n filter: mapFilters,\n extraParams: 'extraParams'\n});\n\n/**\n * Converts the filters to the shape the Platform's API is expecting.\n *\n * @param filters.filters\n * @param filters - The filters from our internal request.\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 * const mappedFilters = mapFilters({ filters });\n * // mappedFilters is [\n * // 'price:[0 TO 10]',\n * // 'categoryIds:ffc61e1e9__be257cb26',\n * // 'categoryIds:ffc61e1e9__fa5ef54f2'\n * // ];\n *\n * ```\n * @returns The filters ready for the API.\n */\nfunction mapFilters({ filters }: SearchRequest): string[] {\n return reduce(\n filters,\n (accumulator, _, filters) => [\n ...accumulator,\n ...filters\n .filter(\n filter =>\n !isHierarchicalFilter(filter) ||\n !filters.some(child => isHierarchicalFilter(child) && child.parentId === filter.id)\n )\n .map(filter => filter.id.toString())\n ],\n [] as string[]\n );\n}\n"]}
1
+ {"version":3,"file":"search-request.schema.js","sourceRoot":"","sources":["../../../../src/schemas/requests/search-request.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AACnE,gDAA4C;AAC5C,gDAAyE;AAG5D,QAAA,mBAAmB,GAAG,IAAA,+BAAmB,EAEpD;IACA,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,UAAU;IAClB,WAAW,EAAE,aAAa;CAC3B,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,SAAS,UAAU,CAAC,EAAE,OAAO,EAAiB;IAC5C,OAAO,IAAA,gBAAM,EACX,OAAO,EACP,CAAC,WAAW,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC;QAC3B,GAAG,WAAW;QACd,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,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC;KACvC,EACD,EAAc,CACf,CAAC;AACJ,CAAC","sourcesContent":["import { createMutableSchema, Schema } from '@empathyco/x-adapter';\nimport { reduce } from '@empathyco/x-utils';\nimport { isHierarchicalFilter, SearchRequest } from '@empathyco/x-types';\nimport { PlatformSearchRequest } from '../../types/requests/search-request.model';\n\nexport const searchRequestSchema = createMutableSchema<\n Schema<SearchRequest, PlatformSearchRequest>\n>({\n query: 'query',\n origin: 'origin',\n start: 'start',\n rows: 'rows',\n sort: 'sort',\n filter: mapFilters,\n extraParams: 'extraParams'\n});\n\n/**\n * Converts the filters to the shape the Platform's API is expecting.\n *\n * @param filters.filters\n * @param filters - The filters from our internal request.\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 * const mappedFilters = mapFilters({ filters });\n * // mappedFilters is [\n * // 'price:[0 TO 10]',\n * // 'categoryIds:ffc61e1e9__be257cb26',\n * // 'categoryIds:ffc61e1e9__fa5ef54f2'\n * // ];\n *\n * ```\n * @returns The filters ready for the API.\n */\nfunction mapFilters({ filters }: SearchRequest): string[] {\n return reduce(\n filters,\n (accumulator, _, filters) => [\n ...accumulator,\n ...filters\n .filter(\n filter =>\n !isHierarchicalFilter(filter) ||\n !filters.some(child => isHierarchicalFilter(child) && child.parentId === filter.id)\n )\n .map(filter => filter.id.toString())\n ],\n [] as string[]\n );\n}\n"]}
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.nextQueriesResponseMutableSchema = void 0;
3
+ exports.nextQueriesResponseSchema = void 0;
4
4
  const x_adapter_1 = require("@empathyco/x-adapter");
5
5
  const next_query_schema_1 = require("../models/next-query.schema");
6
- exports.nextQueriesResponseMutableSchema = (0, x_adapter_1.createMutableSchema)({
6
+ exports.nextQueriesResponseSchema = (0, x_adapter_1.createMutableSchema)({
7
7
  nextQueries: {
8
8
  $path: 'data.nextqueries',
9
- $subSchema: next_query_schema_1.nextQueryMutableSchema
9
+ $subSchema: next_query_schema_1.nextQuerySchema
10
10
  }
11
11
  });
12
12
  //# sourceMappingURL=next-queries-response.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"next-queries-response.schema.js","sourceRoot":"","sources":["../../../../src/schemas/responses/next-queries-response.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AAGnE,mEAAqE;AAExD,QAAA,gCAAgC,GAAG,IAAA,+BAAmB,EAEjE;IACA,WAAW,EAAE;QACX,KAAK,EAAE,kBAAkB;QACzB,UAAU,EAAE,0CAAsB;KACnC;CACF,CAAC,CAAC","sourcesContent":["import { Schema, createMutableSchema } from '@empathyco/x-adapter';\nimport { NextQueriesResponse } from '@empathyco/x-types';\nimport { PlatformNextQueriesResponse } from '../../types/responses/next-queries-response.model';\nimport { nextQueryMutableSchema } from '../models/next-query.schema';\n\nexport const nextQueriesResponseMutableSchema = createMutableSchema<\n Schema<PlatformNextQueriesResponse, NextQueriesResponse>\n>({\n nextQueries: {\n $path: 'data.nextqueries',\n $subSchema: nextQueryMutableSchema\n }\n});\n"]}
1
+ {"version":3,"file":"next-queries-response.schema.js","sourceRoot":"","sources":["../../../../src/schemas/responses/next-queries-response.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AAGnE,mEAA8D;AAEjD,QAAA,yBAAyB,GAAG,IAAA,+BAAmB,EAE1D;IACA,WAAW,EAAE;QACX,KAAK,EAAE,kBAAkB;QACzB,UAAU,EAAE,mCAAe;KAC5B;CACF,CAAC,CAAC","sourcesContent":["import { Schema, createMutableSchema } from '@empathyco/x-adapter';\nimport { NextQueriesResponse } from '@empathyco/x-types';\nimport { PlatformNextQueriesResponse } from '../../types/responses/next-queries-response.model';\nimport { nextQuerySchema } from '../models/next-query.schema';\n\nexport const nextQueriesResponseSchema = createMutableSchema<\n Schema<PlatformNextQueriesResponse, NextQueriesResponse>\n>({\n nextQueries: {\n $path: 'data.nextqueries',\n $subSchema: nextQuerySchema\n }\n});\n"]}
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.popularSearchesResponseMutableSchema = void 0;
3
+ exports.popularSearchesResponseSchema = void 0;
4
4
  const x_adapter_1 = require("@empathyco/x-adapter");
5
5
  const suggestion_schema_1 = require("../models/suggestion.schema");
6
- exports.popularSearchesResponseMutableSchema = (0, x_adapter_1.createMutableSchema)({
6
+ exports.popularSearchesResponseSchema = (0, x_adapter_1.createMutableSchema)({
7
7
  suggestions: {
8
8
  $path: 'topTrends.content',
9
- $subSchema: suggestion_schema_1.suggestionMutableSchema
9
+ $subSchema: suggestion_schema_1.suggestionSchema
10
10
  }
11
11
  });
12
12
  //# sourceMappingURL=popular-searches-response.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"popular-searches-response.schema.js","sourceRoot":"","sources":["../../../../src/schemas/responses/popular-searches-response.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AAInE,mEAAsE;AAEzD,QAAA,oCAAoC,GAAG,IAAA,+BAAmB,EAErE;IACA,WAAW,EAAE;QACX,KAAK,EAAE,mBAAmB;QAC1B,UAAU,EAAE,2CAAuB;KACpC;CACF,CAAC,CAAC","sourcesContent":["import { createMutableSchema, Schema } from '@empathyco/x-adapter';\nimport { PopularSearchesResponse } from '@empathyco/x-types';\n// eslint-disable-next-line max-len\nimport { PlatformPopularSearchesResponse } from '../../types/responses/popular-searches-response.model';\nimport { suggestionMutableSchema } from '../models/suggestion.schema';\n\nexport const popularSearchesResponseMutableSchema = createMutableSchema<\n Schema<PlatformPopularSearchesResponse, PopularSearchesResponse>\n>({\n suggestions: {\n $path: 'topTrends.content',\n $subSchema: suggestionMutableSchema\n }\n});\n"]}
1
+ {"version":3,"file":"popular-searches-response.schema.js","sourceRoot":"","sources":["../../../../src/schemas/responses/popular-searches-response.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AAInE,mEAA+D;AAElD,QAAA,6BAA6B,GAAG,IAAA,+BAAmB,EAE9D;IACA,WAAW,EAAE;QACX,KAAK,EAAE,mBAAmB;QAC1B,UAAU,EAAE,oCAAgB;KAC7B;CACF,CAAC,CAAC","sourcesContent":["import { createMutableSchema, Schema } from '@empathyco/x-adapter';\nimport { PopularSearchesResponse } from '@empathyco/x-types';\n// eslint-disable-next-line max-len\nimport { PlatformPopularSearchesResponse } from '../../types/responses/popular-searches-response.model';\nimport { suggestionSchema } from '../models/suggestion.schema';\n\nexport const popularSearchesResponseSchema = createMutableSchema<\n Schema<PlatformPopularSearchesResponse, PopularSearchesResponse>\n>({\n suggestions: {\n $path: 'topTrends.content',\n $subSchema: suggestionSchema\n }\n});\n"]}
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.querySuggestionsResponseMutableSchema = void 0;
3
+ exports.querySuggestionsResponseSchema = void 0;
4
4
  const x_adapter_1 = require("@empathyco/x-adapter");
5
5
  const suggestion_schema_1 = require("../models/suggestion.schema");
6
- exports.querySuggestionsResponseMutableSchema = (0, x_adapter_1.createMutableSchema)({
6
+ exports.querySuggestionsResponseSchema = (0, x_adapter_1.createMutableSchema)({
7
7
  suggestions: {
8
8
  $path: 'topTrends.content',
9
- $subSchema: suggestion_schema_1.suggestionMutableSchema
9
+ $subSchema: suggestion_schema_1.suggestionSchema
10
10
  }
11
11
  });
12
12
  //# sourceMappingURL=query-suggestions-response.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"query-suggestions-response.schema.js","sourceRoot":"","sources":["../../../../src/schemas/responses/query-suggestions-response.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AAInE,mEAAsE;AAEzD,QAAA,qCAAqC,GAAG,IAAA,+BAAmB,EAEtE;IACA,WAAW,EAAE;QACX,KAAK,EAAE,mBAAmB;QAC1B,UAAU,EAAE,2CAAuB;KACpC;CACF,CAAC,CAAC","sourcesContent":["import { createMutableSchema, Schema } from '@empathyco/x-adapter';\nimport { QuerySuggestionsResponse } from '@empathyco/x-types';\n// eslint-disable-next-line max-len\nimport { PlatformQuerySuggestionsResponse } from '../../types/responses/query-suggestions-response.model';\nimport { suggestionMutableSchema } from '../models/suggestion.schema';\n\nexport const querySuggestionsResponseMutableSchema = createMutableSchema<\n Schema<PlatformQuerySuggestionsResponse, QuerySuggestionsResponse>\n>({\n suggestions: {\n $path: 'topTrends.content',\n $subSchema: suggestionMutableSchema\n }\n});\n"]}
1
+ {"version":3,"file":"query-suggestions-response.schema.js","sourceRoot":"","sources":["../../../../src/schemas/responses/query-suggestions-response.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AAInE,mEAA+D;AAElD,QAAA,8BAA8B,GAAG,IAAA,+BAAmB,EAE/D;IACA,WAAW,EAAE;QACX,KAAK,EAAE,mBAAmB;QAC1B,UAAU,EAAE,oCAAgB;KAC7B;CACF,CAAC,CAAC","sourcesContent":["import { createMutableSchema, Schema } from '@empathyco/x-adapter';\nimport { QuerySuggestionsResponse } from '@empathyco/x-types';\n// eslint-disable-next-line max-len\nimport { PlatformQuerySuggestionsResponse } from '../../types/responses/query-suggestions-response.model';\nimport { suggestionSchema } from '../models/suggestion.schema';\n\nexport const querySuggestionsResponseSchema = createMutableSchema<\n Schema<PlatformQuerySuggestionsResponse, QuerySuggestionsResponse>\n>({\n suggestions: {\n $path: 'topTrends.content',\n $subSchema: suggestionSchema\n }\n});\n"]}
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.recommendationsResponseMutableSchema = void 0;
3
+ exports.recommendationsResponseSchema = void 0;
4
4
  const x_adapter_1 = require("@empathyco/x-adapter");
5
5
  const result_schema_1 = require("../models/result.schema");
6
- exports.recommendationsResponseMutableSchema = (0, x_adapter_1.createMutableSchema)({
6
+ exports.recommendationsResponseSchema = (0, x_adapter_1.createMutableSchema)({
7
7
  results: {
8
8
  $path: 'topclicked.content',
9
9
  $subSchema: result_schema_1.resultSchema
@@ -1 +1 @@
1
- {"version":3,"file":"recommendations-response.schema.js","sourceRoot":"","sources":["../../../../src/schemas/responses/recommendations-response.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AAInE,2DAAuD;AAE1C,QAAA,oCAAoC,GAAG,IAAA,+BAAmB,EAErE;IACA,OAAO,EAAE;QACP,KAAK,EAAE,oBAAoB;QAC3B,UAAU,EAAE,4BAAY;KACzB;CACF,CAAC,CAAC","sourcesContent":["import { createMutableSchema, Schema } from '@empathyco/x-adapter';\nimport { RecommendationsResponse } from '@empathyco/x-types';\n// eslint-disable-next-line max-len\nimport { PlatformRecommendationsResponse } from '../../types/responses/recommendations-response.model';\nimport { resultSchema } from '../models/result.schema';\n\nexport const recommendationsResponseMutableSchema = createMutableSchema<\n Schema<PlatformRecommendationsResponse, RecommendationsResponse>\n>({\n results: {\n $path: 'topclicked.content',\n $subSchema: resultSchema\n }\n});\n"]}
1
+ {"version":3,"file":"recommendations-response.schema.js","sourceRoot":"","sources":["../../../../src/schemas/responses/recommendations-response.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AAInE,2DAAuD;AAE1C,QAAA,6BAA6B,GAAG,IAAA,+BAAmB,EAE9D;IACA,OAAO,EAAE;QACP,KAAK,EAAE,oBAAoB;QAC3B,UAAU,EAAE,4BAAY;KACzB;CACF,CAAC,CAAC","sourcesContent":["import { createMutableSchema, Schema } from '@empathyco/x-adapter';\nimport { RecommendationsResponse } from '@empathyco/x-types';\n// eslint-disable-next-line max-len\nimport { PlatformRecommendationsResponse } from '../../types/responses/recommendations-response.model';\nimport { resultSchema } from '../models/result.schema';\n\nexport const recommendationsResponseSchema = createMutableSchema<\n Schema<PlatformRecommendationsResponse, RecommendationsResponse>\n>({\n results: {\n $path: 'topclicked.content',\n $subSchema: resultSchema\n }\n});\n"]}
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.relatedTagsResponseMutableSchema = void 0;
3
+ exports.relatedTagsResponseSchema = void 0;
4
4
  const x_adapter_1 = require("@empathyco/x-adapter");
5
5
  const related_tag_schema_1 = require("../models/related-tag.schema");
6
- exports.relatedTagsResponseMutableSchema = (0, x_adapter_1.createMutableSchema)({
6
+ exports.relatedTagsResponseSchema = (0, x_adapter_1.createMutableSchema)({
7
7
  relatedTags: {
8
8
  $path: 'data.relatedtags',
9
- $subSchema: related_tag_schema_1.relatedTagMutableSchema
9
+ $subSchema: related_tag_schema_1.relatedTagSchema
10
10
  }
11
11
  });
12
12
  //# sourceMappingURL=related-tags-response.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"related-tags-response.schema.js","sourceRoot":"","sources":["../../../../src/schemas/responses/related-tags-response.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AAGnE,qEAAuE;AAE1D,QAAA,gCAAgC,GAAG,IAAA,+BAAmB,EAElE;IACC,WAAW,EAAE;QACX,KAAK,EAAE,kBAAkB;QACzB,UAAU,EAAE,4CAAuB;KACpC;CACF,CAAC,CAAC","sourcesContent":["import { createMutableSchema, Schema } from '@empathyco/x-adapter';\nimport { RelatedTagsResponse } from '@empathyco/x-types';\nimport { PlatformRelatedTagsResponse } from '../../types/responses/related-tags-response.model';\nimport { relatedTagMutableSchema } from '../models/related-tag.schema';\n\nexport const relatedTagsResponseMutableSchema = createMutableSchema(<\n Schema<PlatformRelatedTagsResponse, RelatedTagsResponse>\n>{\n relatedTags: {\n $path: 'data.relatedtags',\n $subSchema: relatedTagMutableSchema\n }\n});\n"]}
1
+ {"version":3,"file":"related-tags-response.schema.js","sourceRoot":"","sources":["../../../../src/schemas/responses/related-tags-response.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AAGnE,qEAAgE;AAEnD,QAAA,yBAAyB,GAAG,IAAA,+BAAmB,EAE3D;IACC,WAAW,EAAE;QACX,KAAK,EAAE,kBAAkB;QACzB,UAAU,EAAE,qCAAgB;KAC7B;CACF,CAAC,CAAC","sourcesContent":["import { createMutableSchema, Schema } from '@empathyco/x-adapter';\nimport { RelatedTagsResponse } from '@empathyco/x-types';\nimport { PlatformRelatedTagsResponse } from '../../types/responses/related-tags-response.model';\nimport { relatedTagSchema } from '../models/related-tag.schema';\n\nexport const relatedTagsResponseSchema = createMutableSchema(<\n Schema<PlatformRelatedTagsResponse, RelatedTagsResponse>\n>{\n relatedTags: {\n $path: 'data.relatedtags',\n $subSchema: relatedTagSchema\n }\n});\n"]}
@@ -1,36 +1,36 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.searchResponseMutableSchema = void 0;
3
+ exports.searchResponseSchema = void 0;
4
4
  const x_adapter_1 = require("@empathyco/x-adapter");
5
- const x_utils_1 = require("@empathyco/x-utils");
5
+ const url_utils_1 = require("../../mappers/url.utils");
6
6
  const banner_schema_1 = require("../models/banner.schema");
7
7
  const facet_schema_1 = require("../models/facet.schema");
8
8
  const promoted_schema_1 = require("../models/promoted.schema");
9
9
  const redirection_schema_1 = require("../models/redirection.schema");
10
10
  const result_schema_1 = require("../models/result.schema");
11
- exports.searchResponseMutableSchema = (0, x_adapter_1.createMutableSchema)({
11
+ exports.searchResponseSchema = (0, x_adapter_1.createMutableSchema)({
12
12
  results: {
13
13
  $path: 'catalog.content',
14
14
  $subSchema: result_schema_1.resultSchema
15
15
  },
16
16
  facets: {
17
17
  $path: 'catalog.facets',
18
- $subSchema: facet_schema_1.facetMutableSchema
18
+ $subSchema: facet_schema_1.facetSchema
19
19
  },
20
20
  totalResults: 'catalog.numFound',
21
21
  spellcheck: 'catalog.spellchecked',
22
22
  banners: {
23
23
  $path: 'banner.content',
24
- $subSchema: banner_schema_1.bannerMutableSchema
24
+ $subSchema: banner_schema_1.bannerSchema
25
25
  },
26
26
  promoteds: {
27
27
  $path: 'promoted.content',
28
- $subSchema: promoted_schema_1.promotedMutableSchema
28
+ $subSchema: promoted_schema_1.promotedSchema
29
29
  },
30
30
  redirections: {
31
31
  $path: 'direct.content',
32
- $subSchema: redirection_schema_1.redirectionMutableSchema
32
+ $subSchema: redirection_schema_1.redirectionSchema
33
33
  },
34
- queryTagging: ({ catalog }) => { var _a; return (0, x_utils_1.getTaggingInfoFromUrl)((_a = catalog === null || catalog === void 0 ? void 0 : catalog.tagging) === null || _a === void 0 ? void 0 : _a.query); }
34
+ queryTagging: ({ catalog }) => { var _a; return (0, url_utils_1.getTaggingInfoFromUrl)((_a = catalog === null || catalog === void 0 ? void 0 : catalog.tagging) === null || _a === void 0 ? void 0 : _a.query); }
35
35
  });
36
36
  //# sourceMappingURL=search-response.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"search-response.schema.js","sourceRoot":"","sources":["../../../../src/schemas/responses/search-response.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AACnE,gDAA2D;AAG3D,2DAA8D;AAC9D,yDAA4D;AAC5D,+DAAkE;AAClE,qEAAwE;AACxE,2DAAuD;AAE1C,QAAA,2BAA2B,GAAG,IAAA,+BAAmB,EAE5D;IACA,OAAO,EAAE;QACP,KAAK,EAAE,iBAAiB;QACxB,UAAU,EAAE,4BAAY;KACzB;IACD,MAAM,EAAE;QACN,KAAK,EAAE,gBAAgB;QACvB,UAAU,EAAE,iCAAkB;KAC/B;IACD,YAAY,EAAE,kBAAkB;IAChC,UAAU,EAAE,sBAAsB;IAClC,OAAO,EAAE;QACP,KAAK,EAAE,gBAAgB;QACvB,UAAU,EAAE,mCAAmB;KAChC;IACD,SAAS,EAAE;QACT,KAAK,EAAE,kBAAkB;QACzB,UAAU,EAAE,uCAAqB;KAClC;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,gBAAgB;QACvB,UAAU,EAAE,6CAAwB;KACrC;IACD,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,WAAC,OAAA,IAAA,+BAAqB,EAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,0CAAE,KAAK,CAAC,CAAA,EAAA;CAC9E,CAAC,CAAC","sourcesContent":["import { Schema, createMutableSchema } from '@empathyco/x-adapter';\nimport { getTaggingInfoFromUrl } from '@empathyco/x-utils';\nimport { SearchResponse } from '@empathyco/x-types';\nimport { PlatformSearchResponse } from '../../types/responses/search-response.model';\nimport { bannerMutableSchema } from '../models/banner.schema';\nimport { facetMutableSchema } from '../models/facet.schema';\nimport { promotedMutableSchema } from '../models/promoted.schema';\nimport { redirectionMutableSchema } from '../models/redirection.schema';\nimport { resultSchema } from '../models/result.schema';\n\nexport const searchResponseMutableSchema = createMutableSchema<\n Schema<PlatformSearchResponse, SearchResponse>\n>({\n results: {\n $path: 'catalog.content',\n $subSchema: resultSchema\n },\n facets: {\n $path: 'catalog.facets',\n $subSchema: facetMutableSchema\n },\n totalResults: 'catalog.numFound',\n spellcheck: 'catalog.spellchecked',\n banners: {\n $path: 'banner.content',\n $subSchema: bannerMutableSchema\n },\n promoteds: {\n $path: 'promoted.content',\n $subSchema: promotedMutableSchema\n },\n redirections: {\n $path: 'direct.content',\n $subSchema: redirectionMutableSchema\n },\n queryTagging: ({ catalog }) => getTaggingInfoFromUrl(catalog?.tagging?.query)\n});\n"]}
1
+ {"version":3,"file":"search-response.schema.js","sourceRoot":"","sources":["../../../../src/schemas/responses/search-response.schema.ts"],"names":[],"mappings":";;;AAAA,oDAAmE;AAEnE,uDAAgE;AAEhE,2DAAuD;AACvD,yDAAqD;AACrD,+DAA2D;AAC3D,qEAAiE;AACjE,2DAAuD;AAE1C,QAAA,oBAAoB,GAAG,IAAA,+BAAmB,EAErD;IACA,OAAO,EAAE;QACP,KAAK,EAAE,iBAAiB;QACxB,UAAU,EAAE,4BAAY;KACzB;IACD,MAAM,EAAE;QACN,KAAK,EAAE,gBAAgB;QACvB,UAAU,EAAE,0BAAW;KACxB;IACD,YAAY,EAAE,kBAAkB;IAChC,UAAU,EAAE,sBAAsB;IAClC,OAAO,EAAE;QACP,KAAK,EAAE,gBAAgB;QACvB,UAAU,EAAE,4BAAY;KACzB;IACD,SAAS,EAAE;QACT,KAAK,EAAE,kBAAkB;QACzB,UAAU,EAAE,gCAAc;KAC3B;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,gBAAgB;QACvB,UAAU,EAAE,sCAAiB;KAC9B;IACD,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,WAAC,OAAA,IAAA,iCAAqB,EAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,0CAAE,KAAK,CAAC,CAAA,EAAA;CAC9E,CAAC,CAAC","sourcesContent":["import { createMutableSchema, Schema } from '@empathyco/x-adapter';\nimport { SearchResponse } from '@empathyco/x-types';\nimport { getTaggingInfoFromUrl } from '../../mappers/url.utils';\nimport { PlatformSearchResponse } from '../../types/responses/search-response.model';\nimport { bannerSchema } from '../models/banner.schema';\nimport { facetSchema } from '../models/facet.schema';\nimport { promotedSchema } from '../models/promoted.schema';\nimport { redirectionSchema } from '../models/redirection.schema';\nimport { resultSchema } from '../models/result.schema';\n\nexport const searchResponseSchema = createMutableSchema<\n Schema<PlatformSearchResponse, SearchResponse>\n>({\n results: {\n $path: 'catalog.content',\n $subSchema: resultSchema\n },\n facets: {\n $path: 'catalog.facets',\n $subSchema: facetSchema\n },\n totalResults: 'catalog.numFound',\n spellcheck: 'catalog.spellchecked',\n banners: {\n $path: 'banner.content',\n $subSchema: bannerSchema\n },\n promoteds: {\n $path: 'promoted.content',\n $subSchema: promotedSchema\n },\n redirections: {\n $path: 'direct.content',\n $subSchema: redirectionSchema\n },\n queryTagging: ({ catalog }) => getTaggingInfoFromUrl(catalog?.tagging?.query)\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"platform-adapter.types.js","sourceRoot":"","sources":["../../../src/types/platform-adapter.types.ts"],"names":[],"mappings":"","sourcesContent":["import { Adapter, EndpointAdapter } from '@empathyco/x-adapter';\nimport {\n IdentifierResultsRequest,\n IdentifierResultsResponse,\n PopularSearchesRequest,\n PopularSearchesResponse,\n QuerySuggestionsRequest,\n NextQueriesRequest,\n NextQueriesResponse,\n QuerySuggestionsResponse,\n RecommendationsRequest,\n RecommendationsResponse,\n TaggingRequest,\n RelatedTagsResponse,\n RelatedTagsRequest,\n SearchRequest,\n SearchResponse\n} from '@empathyco/x-types';\n\nexport interface PlatformAdapter extends Adapter {\n search: EndpointAdapter<SearchRequest, SearchResponse>;\n popularSearches: EndpointAdapter<PopularSearchesRequest, PopularSearchesResponse>;\n nextQueries: EndpointAdapter<NextQueriesRequest, NextQueriesResponse>;\n recommendations: EndpointAdapter<RecommendationsRequest, RecommendationsResponse>;\n querySuggestions: EndpointAdapter<QuerySuggestionsRequest, QuerySuggestionsResponse>;\n relatedTags: EndpointAdapter<RelatedTagsRequest, RelatedTagsResponse>;\n identifierResults: EndpointAdapter<IdentifierResultsRequest, IdentifierResultsResponse>;\n tagging: EndpointAdapter<TaggingRequest, void>;\n}\n"]}
1
+ {"version":3,"file":"platform-adapter.types.js","sourceRoot":"","sources":["../../../src/types/platform-adapter.types.ts"],"names":[],"mappings":"","sourcesContent":["import {\n IdentifierResultsRequest,\n IdentifierResultsResponse,\n NextQueriesRequest,\n NextQueriesResponse,\n PopularSearchesRequest,\n PopularSearchesResponse,\n QuerySuggestionsRequest,\n QuerySuggestionsResponse,\n RecommendationsRequest,\n RecommendationsResponse,\n RelatedTagsRequest,\n RelatedTagsResponse,\n SearchRequest,\n SearchResponse,\n TaggingRequest,\n XComponentsAdapter\n} from '@empathyco/x-types';\nimport { ExtendableEndpointAdapter } from '@empathyco/x-adapter';\n\nexport interface PlatformAdapter extends XComponentsAdapter {\n search: ExtendableEndpointAdapter<SearchRequest, SearchResponse>;\n popularSearches: ExtendableEndpointAdapter<PopularSearchesRequest, PopularSearchesResponse>;\n nextQueries: ExtendableEndpointAdapter<NextQueriesRequest, NextQueriesResponse>;\n recommendations: ExtendableEndpointAdapter<RecommendationsRequest, RecommendationsResponse>;\n querySuggestions: ExtendableEndpointAdapter<QuerySuggestionsRequest, QuerySuggestionsResponse>;\n relatedTags: ExtendableEndpointAdapter<RelatedTagsRequest, RelatedTagsResponse>;\n identifierResults: ExtendableEndpointAdapter<IdentifierResultsRequest, IdentifierResultsResponse>;\n tagging: ExtendableEndpointAdapter<TaggingRequest, void>;\n}\n"]}
@@ -1,7 +1,7 @@
1
- import { beaconHttpClient, endpointAdapterFactory, buildUrl } from '@empathyco/x-adapter';
1
+ import { beaconHttpClient, endpointAdapterFactory } from '@empathyco/x-adapter';
2
2
  import { taggingRequestMapper } from '../mappers/requests/tagging-request.mapper';
3
3
  export const taggingEndpointAdapter = endpointAdapterFactory({
4
- endpoint: ({ url, params }) => buildUrl(url, params),
4
+ endpoint: ({ url }) => url,
5
5
  httpClient: beaconHttpClient,
6
6
  requestMapper: taggingRequestMapper
7
7
  });
@@ -1 +1 @@
1
- {"version":3,"file":"tagging.endpoint-adapter.js","sourceRoot":"","sources":["../../../src/endpoint-adapters/tagging.endpoint-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAE1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAElF,MAAM,CAAC,MAAM,sBAAsB,GAAG,sBAAsB,CAAuB;IACjF,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACpD,UAAU,EAAE,gBAAgB;IAC5B,aAAa,EAAE,oBAAoB;CACpC,CAAC,CAAC","sourcesContent":["import { beaconHttpClient, endpointAdapterFactory, buildUrl } from '@empathyco/x-adapter';\nimport { TaggingRequest } from '@empathyco/x-types';\nimport { taggingRequestMapper } from '../mappers/requests/tagging-request.mapper';\n\nexport const taggingEndpointAdapter = endpointAdapterFactory<TaggingRequest, void>({\n endpoint: ({ url, params }) => buildUrl(url, params),\n httpClient: beaconHttpClient,\n requestMapper: taggingRequestMapper\n});\n"]}
1
+ {"version":3,"file":"tagging.endpoint-adapter.js","sourceRoot":"","sources":["../../../src/endpoint-adapters/tagging.endpoint-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAEhF,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAElF,MAAM,CAAC,MAAM,sBAAsB,GAAG,sBAAsB,CAAuB;IACjF,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,GAAG;IAC1B,UAAU,EAAE,gBAAgB;IAC5B,aAAa,EAAE,oBAAoB;CACpC,CAAC,CAAC","sourcesContent":["import { beaconHttpClient, endpointAdapterFactory } from '@empathyco/x-adapter';\nimport { TaggingRequest } from '@empathyco/x-types';\nimport { taggingRequestMapper } from '../mappers/requests/tagging-request.mapper';\n\nexport const taggingEndpointAdapter = endpointAdapterFactory<TaggingRequest, void>({\n endpoint: ({ url }) => url,\n httpClient: beaconHttpClient,\n requestMapper: taggingRequestMapper\n});\n"]}
@@ -1,3 +1,4 @@
1
1
  export * from './requests';
2
2
  export * from './responses';
3
+ export * from './url.utils';
3
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/mappers/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC","sourcesContent":["export * from './requests';\nexport * from './responses';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/mappers/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC","sourcesContent":["export * from './requests';\nexport * from './responses';\nexport * from './url.utils';\n"]}
@@ -1,5 +1,5 @@
1
1
  import { schemaMapperFactory } from '@empathyco/x-adapter';
2
2
  // eslint-disable-next-line max-len
3
- import { nextQueriesRequestMutableSchema } from '../../schemas/requests/next-queries-request.schema';
4
- export const nextQueriesRequestMapper = schemaMapperFactory(nextQueriesRequestMutableSchema);
3
+ import { nextQueriesRequestSchema } from '../../schemas/requests/next-queries-request.schema';
4
+ export const nextQueriesRequestMapper = schemaMapperFactory(nextQueriesRequestSchema);
5
5
  //# sourceMappingURL=next-queries-request.mapper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"next-queries-request.mapper.js","sourceRoot":"","sources":["../../../../src/mappers/requests/next-queries-request.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,mCAAmC;AACnC,OAAO,EAAE,+BAA+B,EAAE,MAAM,oDAAoD,CAAC;AAGrG,MAAM,CAAC,MAAM,wBAAwB,GAAG,mBAAmB,CAGzD,+BAA+B,CAAC,CAAC","sourcesContent":["import { schemaMapperFactory } from '@empathyco/x-adapter';\nimport { NextQueriesRequest } from '@empathyco/x-types';\n// eslint-disable-next-line max-len\nimport { nextQueriesRequestMutableSchema } from '../../schemas/requests/next-queries-request.schema';\nimport { PlatformNextQueriesRequest } from '../../types/requests/next-queries-request.model';\n\nexport const nextQueriesRequestMapper = schemaMapperFactory<\n NextQueriesRequest,\n PlatformNextQueriesRequest\n>(nextQueriesRequestMutableSchema);\n"]}
1
+ {"version":3,"file":"next-queries-request.mapper.js","sourceRoot":"","sources":["../../../../src/mappers/requests/next-queries-request.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,mCAAmC;AACnC,OAAO,EAAE,wBAAwB,EAAE,MAAM,oDAAoD,CAAC;AAG9F,MAAM,CAAC,MAAM,wBAAwB,GAAG,mBAAmB,CAGzD,wBAAwB,CAAC,CAAC","sourcesContent":["import { schemaMapperFactory } from '@empathyco/x-adapter';\nimport { NextQueriesRequest } from '@empathyco/x-types';\n// eslint-disable-next-line max-len\nimport { nextQueriesRequestSchema } from '../../schemas/requests/next-queries-request.schema';\nimport { PlatformNextQueriesRequest } from '../../types/requests/next-queries-request.model';\n\nexport const nextQueriesRequestMapper = schemaMapperFactory<\n NextQueriesRequest,\n PlatformNextQueriesRequest\n>(nextQueriesRequestSchema);\n"]}
@@ -1,5 +1,5 @@
1
1
  import { schemaMapperFactory } from '@empathyco/x-adapter';
2
2
  // eslint-disable-next-line max-len
3
- import { popularSearchesRequestMutableSchema } from '../../schemas/requests/popular-searches-request.schema';
4
- export const popularSearchesRequestMapper = schemaMapperFactory(popularSearchesRequestMutableSchema);
3
+ import { popularSearchesRequestSchema } from '../../schemas/requests/popular-searches-request.schema';
4
+ export const popularSearchesRequestMapper = schemaMapperFactory(popularSearchesRequestSchema);
5
5
  //# sourceMappingURL=popular-searches-request.mapper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"popular-searches-request.mapper.js","sourceRoot":"","sources":["../../../../src/mappers/requests/popular-searches-request.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,mCAAmC;AACnC,OAAO,EAAE,mCAAmC,EAAE,MAAM,wDAAwD,CAAC;AAI7G,MAAM,CAAC,MAAM,4BAA4B,GAAG,mBAAmB,CAG7D,mCAAmC,CAAC,CAAC","sourcesContent":["import { schemaMapperFactory } from '@empathyco/x-adapter';\nimport { PopularSearchesRequest } from '@empathyco/x-types';\n// eslint-disable-next-line max-len\nimport { popularSearchesRequestMutableSchema } from '../../schemas/requests/popular-searches-request.schema';\n// eslint-disable-next-line max-len\nimport { PlatformPopularSearchesRequest } from '../../types/requests/popular-searches-request.model';\n\nexport const popularSearchesRequestMapper = schemaMapperFactory<\n PopularSearchesRequest,\n PlatformPopularSearchesRequest\n>(popularSearchesRequestMutableSchema);\n"]}
1
+ {"version":3,"file":"popular-searches-request.mapper.js","sourceRoot":"","sources":["../../../../src/mappers/requests/popular-searches-request.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,mCAAmC;AACnC,OAAO,EAAE,4BAA4B,EAAE,MAAM,wDAAwD,CAAC;AAItG,MAAM,CAAC,MAAM,4BAA4B,GAAG,mBAAmB,CAG7D,4BAA4B,CAAC,CAAC","sourcesContent":["import { schemaMapperFactory } from '@empathyco/x-adapter';\nimport { PopularSearchesRequest } from '@empathyco/x-types';\n// eslint-disable-next-line max-len\nimport { popularSearchesRequestSchema } from '../../schemas/requests/popular-searches-request.schema';\n// eslint-disable-next-line max-len\nimport { PlatformPopularSearchesRequest } from '../../types/requests/popular-searches-request.model';\n\nexport const popularSearchesRequestMapper = schemaMapperFactory<\n PopularSearchesRequest,\n PlatformPopularSearchesRequest\n>(popularSearchesRequestSchema);\n"]}
@@ -1,5 +1,5 @@
1
1
  import { schemaMapperFactory } from '@empathyco/x-adapter';
2
2
  // eslint-disable-next-line max-len
3
- import { querySuggestionsRequestMutableSchema } from '../../schemas/requests/query-suggestions-request.schema';
4
- export const querySuggestionsRequestMapper = schemaMapperFactory(querySuggestionsRequestMutableSchema);
3
+ import { querySuggestionsRequestSchema } from '../../schemas/requests/query-suggestions-request.schema';
4
+ export const querySuggestionsRequestMapper = schemaMapperFactory(querySuggestionsRequestSchema);
5
5
  //# sourceMappingURL=query-suggestions-request.mapper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"query-suggestions-request.mapper.js","sourceRoot":"","sources":["../../../../src/mappers/requests/query-suggestions-request.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,mCAAmC;AACnC,OAAO,EAAE,oCAAoC,EAAE,MAAM,yDAAyD,CAAC;AAI/G,MAAM,CAAC,MAAM,6BAA6B,GAAG,mBAAmB,CAG9D,oCAAoC,CAAC,CAAC","sourcesContent":["import { schemaMapperFactory } from '@empathyco/x-adapter';\nimport { QuerySuggestionsRequest } from '@empathyco/x-types';\n// eslint-disable-next-line max-len\nimport { querySuggestionsRequestMutableSchema } from '../../schemas/requests/query-suggestions-request.schema';\n// eslint-disable-next-line max-len\nimport { PlatformQuerySuggestionsRequest } from '../../types/requests/query-suggestions-request.model';\n\nexport const querySuggestionsRequestMapper = schemaMapperFactory<\n QuerySuggestionsRequest,\n PlatformQuerySuggestionsRequest\n>(querySuggestionsRequestMutableSchema);\n"]}
1
+ {"version":3,"file":"query-suggestions-request.mapper.js","sourceRoot":"","sources":["../../../../src/mappers/requests/query-suggestions-request.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,mCAAmC;AACnC,OAAO,EAAE,6BAA6B,EAAE,MAAM,yDAAyD,CAAC;AAIxG,MAAM,CAAC,MAAM,6BAA6B,GAAG,mBAAmB,CAG9D,6BAA6B,CAAC,CAAC","sourcesContent":["import { schemaMapperFactory } from '@empathyco/x-adapter';\nimport { QuerySuggestionsRequest } from '@empathyco/x-types';\n// eslint-disable-next-line max-len\nimport { querySuggestionsRequestSchema } from '../../schemas/requests/query-suggestions-request.schema';\n// eslint-disable-next-line max-len\nimport { PlatformQuerySuggestionsRequest } from '../../types/requests/query-suggestions-request.model';\n\nexport const querySuggestionsRequestMapper = schemaMapperFactory<\n QuerySuggestionsRequest,\n PlatformQuerySuggestionsRequest\n>(querySuggestionsRequestSchema);\n"]}