@empathyco/x-adapter-platform 1.1.0-alpha.7 → 1.1.0-alpha.9

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 (51) hide show
  1. package/dist/cjs/mappers/requests/related-prompts-request.mapper.js +2 -0
  2. package/dist/cjs/mappers/requests/related-prompts-request.mapper.js.map +1 -1
  3. package/dist/cjs/mappers/responses/related-prompts-response.mapper.js +2 -0
  4. package/dist/cjs/mappers/responses/related-prompts-response.mapper.js.map +1 -1
  5. package/dist/cjs/schemas/models/related-prompt.schema.js +2 -0
  6. package/dist/cjs/schemas/models/related-prompt.schema.js.map +1 -1
  7. package/dist/cjs/schemas/models/stats.schema.js +16 -0
  8. package/dist/cjs/schemas/models/stats.schema.js.map +1 -0
  9. package/dist/cjs/schemas/requests/related-prompts-request.schema.js +2 -0
  10. package/dist/cjs/schemas/requests/related-prompts-request.schema.js.map +1 -1
  11. package/dist/cjs/schemas/responses/related-prompts-response.schema.js +2 -0
  12. package/dist/cjs/schemas/responses/related-prompts-response.schema.js.map +1 -1
  13. package/dist/cjs/schemas/responses/search-response.schema.js +5 -0
  14. package/dist/cjs/schemas/responses/search-response.schema.js.map +1 -1
  15. package/dist/cjs/types/models/related-prompt.model.js.map +1 -1
  16. package/dist/cjs/types/models/stats.model.js +3 -0
  17. package/dist/cjs/types/models/stats.model.js.map +1 -0
  18. package/dist/cjs/types/responses/related-prompts-response.model.js.map +1 -1
  19. package/dist/cjs/types/responses/search-response.model.js.map +1 -1
  20. package/dist/esm/mappers/requests/related-prompts-request.mapper.js +2 -0
  21. package/dist/esm/mappers/requests/related-prompts-request.mapper.js.map +1 -1
  22. package/dist/esm/mappers/responses/related-prompts-response.mapper.js +2 -0
  23. package/dist/esm/mappers/responses/related-prompts-response.mapper.js.map +1 -1
  24. package/dist/esm/schemas/models/related-prompt.schema.js +2 -0
  25. package/dist/esm/schemas/models/related-prompt.schema.js.map +1 -1
  26. package/dist/esm/schemas/models/stats.schema.js +13 -0
  27. package/dist/esm/schemas/models/stats.schema.js.map +1 -0
  28. package/dist/esm/schemas/requests/related-prompts-request.schema.js +2 -0
  29. package/dist/esm/schemas/requests/related-prompts-request.schema.js.map +1 -1
  30. package/dist/esm/schemas/responses/related-prompts-response.schema.js +2 -0
  31. package/dist/esm/schemas/responses/related-prompts-response.schema.js.map +1 -1
  32. package/dist/esm/schemas/responses/search-response.schema.js +5 -0
  33. package/dist/esm/schemas/responses/search-response.schema.js.map +1 -1
  34. package/dist/esm/types/models/related-prompt.model.js.map +1 -1
  35. package/dist/esm/types/models/stats.model.js +2 -0
  36. package/dist/esm/types/models/stats.model.js.map +1 -0
  37. package/dist/esm/types/responses/related-prompts-response.model.js.map +1 -1
  38. package/dist/esm/types/responses/search-response.model.js.map +1 -1
  39. package/dist/types/mappers/requests/related-prompts-request.mapper.d.ts +2 -0
  40. package/dist/types/mappers/responses/related-prompts-response.mapper.d.ts +2 -0
  41. package/dist/types/schemas/models/related-prompt.schema.d.ts +2 -0
  42. package/dist/types/schemas/models/stats.schema.d.ts +8 -0
  43. package/dist/types/schemas/requests/related-prompts-request.schema.d.ts +2 -0
  44. package/dist/types/schemas/responses/related-prompts-response.schema.d.ts +2 -0
  45. package/dist/types/types/models/related-prompt.model.d.ts +2 -0
  46. package/dist/types/types/models/stats.model.d.ts +11 -0
  47. package/dist/types/types/responses/related-prompts-response.model.d.ts +2 -0
  48. package/dist/types/types/responses/search-response.model.d.ts +6 -0
  49. package/package.json +3 -3
  50. package/report/x-adapter-platform.api.json +8 -8
  51. package/report/x-adapter-platform.api.md +6 -0
@@ -5,6 +5,8 @@ const x_adapter_1 = require("@empathyco/x-adapter");
5
5
  const related_prompts_request_schema_1 = require("../../schemas/requests/related-prompts-request.schema");
6
6
  /**
7
7
  * Default implementation for the RelatedPromptsRequestMapper.
8
+ *
9
+ * @public
8
10
  */
9
11
  exports.relatedPromptsRequestMapper = (0, x_adapter_1.schemaMapperFactory)(related_prompts_request_schema_1.relatedPromptsRequestSchema);
10
12
  //# sourceMappingURL=related-prompts-request.mapper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"related-prompts-request.mapper.js","sourceRoot":"","sources":["../../../../src/mappers/requests/related-prompts-request.mapper.ts"],"names":[],"mappings":";;;AAAA,oDAA2D;AAG3D,0GAAoG;AAEpG;;GAEG;AACU,QAAA,2BAA2B,GAAG,IAAA,+BAAmB,EAG5D,4DAA2B,CAAC,CAAC","sourcesContent":["import { schemaMapperFactory } from '@empathyco/x-adapter';\nimport { RelatedPromptsRequest } from '@empathyco/x-types';\nimport { PlatformRelatedPromptsRequest } from '../../types/requests/related-prompts-request.model';\nimport { relatedPromptsRequestSchema } from '../../schemas/requests/related-prompts-request.schema';\n\n/**\n * Default implementation for the RelatedPromptsRequestMapper.\n */\nexport const relatedPromptsRequestMapper = schemaMapperFactory<\n RelatedPromptsRequest,\n PlatformRelatedPromptsRequest\n>(relatedPromptsRequestSchema);\n"]}
1
+ {"version":3,"file":"related-prompts-request.mapper.js","sourceRoot":"","sources":["../../../../src/mappers/requests/related-prompts-request.mapper.ts"],"names":[],"mappings":";;;AAAA,oDAA2D;AAG3D,0GAAoG;AAEpG;;;;GAIG;AACU,QAAA,2BAA2B,GAAG,IAAA,+BAAmB,EAG5D,4DAA2B,CAAC,CAAC","sourcesContent":["import { schemaMapperFactory } from '@empathyco/x-adapter';\nimport { RelatedPromptsRequest } from '@empathyco/x-types';\nimport { PlatformRelatedPromptsRequest } from '../../types/requests/related-prompts-request.model';\nimport { relatedPromptsRequestSchema } from '../../schemas/requests/related-prompts-request.schema';\n\n/**\n * Default implementation for the RelatedPromptsRequestMapper.\n *\n * @public\n */\nexport const relatedPromptsRequestMapper = schemaMapperFactory<\n RelatedPromptsRequest,\n PlatformRelatedPromptsRequest\n>(relatedPromptsRequestSchema);\n"]}
@@ -6,6 +6,8 @@ const x_adapter_1 = require("@empathyco/x-adapter");
6
6
  const related_prompts_response_schema_1 = require("../../schemas/responses/related-prompts-response.schema");
7
7
  /**
8
8
  * Default implementation for the RelatedPromptsResponseMapper.
9
+ *
10
+ * @public
9
11
  */
10
12
  exports.relatedPromptsResponseMapper = (0, x_adapter_1.schemaMapperFactory)(related_prompts_response_schema_1.relatedPromptsResponseSchema);
11
13
  //# sourceMappingURL=related-prompts-response.mapper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"related-prompts-response.mapper.js","sourceRoot":"","sources":["../../../../src/mappers/responses/related-prompts-response.mapper.ts"],"names":[],"mappings":";;;AAAA,oDAA2D;AAI3D,mCAAmC;AACnC,6GAAuG;AAEvG;;GAEG;AACU,QAAA,4BAA4B,GAAG,IAAA,+BAAmB,EAG7D,8DAA4B,CAAC,CAAC","sourcesContent":["import { schemaMapperFactory } from '@empathyco/x-adapter';\nimport { RelatedPromptsResponse } from '@empathyco/x-types';\n// eslint-disable-next-line max-len\nimport { PlatformRelatedPromptsResponse } from '../../types/responses/related-prompts-response.model';\n// eslint-disable-next-line max-len\nimport { relatedPromptsResponseSchema } from '../../schemas/responses/related-prompts-response.schema';\n\n/**\n * Default implementation for the RelatedPromptsResponseMapper.\n */\nexport const relatedPromptsResponseMapper = schemaMapperFactory<\n PlatformRelatedPromptsResponse,\n RelatedPromptsResponse\n>(relatedPromptsResponseSchema);\n"]}
1
+ {"version":3,"file":"related-prompts-response.mapper.js","sourceRoot":"","sources":["../../../../src/mappers/responses/related-prompts-response.mapper.ts"],"names":[],"mappings":";;;AAAA,oDAA2D;AAI3D,mCAAmC;AACnC,6GAAuG;AAEvG;;;;GAIG;AACU,QAAA,4BAA4B,GAAG,IAAA,+BAAmB,EAG7D,8DAA4B,CAAC,CAAC","sourcesContent":["import { schemaMapperFactory } from '@empathyco/x-adapter';\nimport { RelatedPromptsResponse } from '@empathyco/x-types';\n// eslint-disable-next-line max-len\nimport { PlatformRelatedPromptsResponse } from '../../types/responses/related-prompts-response.model';\n// eslint-disable-next-line max-len\nimport { relatedPromptsResponseSchema } from '../../schemas/responses/related-prompts-response.schema';\n\n/**\n * Default implementation for the RelatedPromptsResponseMapper.\n *\n * @public\n */\nexport const relatedPromptsResponseMapper = schemaMapperFactory<\n PlatformRelatedPromptsResponse,\n RelatedPromptsResponse\n>(relatedPromptsResponseSchema);\n"]}
@@ -4,6 +4,8 @@ exports.relatedPromptSchema = void 0;
4
4
  const x_adapter_1 = require("@empathyco/x-adapter");
5
5
  /**
6
6
  * Default implementation for the RelatedPromptSchema.
7
+ *
8
+ * @public
7
9
  */
8
10
  exports.relatedPromptSchema = (0, x_adapter_1.createMutableSchema)({
9
11
  modelName: () => 'RelatedPrompt',
@@ -1 +1 @@
1
- {"version":3,"file":"related-prompt.schema.js","sourceRoot":"","sources":["../../../../src/schemas/models/related-prompt.schema.ts"],"names":[],"mappings":";;;AAAA,oDAA2D;AAI3D;;GAEG;AACU,QAAA,mBAAmB,GAAG,IAAA,+BAAmB,EAAuC;IAC3F,SAAS,EAAE,GAAG,EAAE,CAAC,eAAe;IAChC,WAAW,EAAE,aAAa;IAC1B,cAAc,EAAE,gBAAgB;IAChC,IAAI,EAAE,MAAM;CACb,CAAC,CAAC","sourcesContent":["import { createMutableSchema } from '@empathyco/x-adapter';\nimport { RelatedPrompt } from '@empathyco/x-types';\nimport { PlatformRelatedPrompt } from '../../types/models/related-prompt.model';\n\n/**\n * Default implementation for the RelatedPromptSchema.\n */\nexport const relatedPromptSchema = createMutableSchema<PlatformRelatedPrompt, RelatedPrompt>({\n modelName: () => 'RelatedPrompt',\n nextQueries: 'nextQueries',\n suggestionText: 'suggestionText',\n type: 'type'\n});\n"]}
1
+ {"version":3,"file":"related-prompt.schema.js","sourceRoot":"","sources":["../../../../src/schemas/models/related-prompt.schema.ts"],"names":[],"mappings":";;;AAAA,oDAA2D;AAI3D;;;;GAIG;AACU,QAAA,mBAAmB,GAAG,IAAA,+BAAmB,EAAuC;IAC3F,SAAS,EAAE,GAAG,EAAE,CAAC,eAAe;IAChC,WAAW,EAAE,aAAa;IAC1B,cAAc,EAAE,gBAAgB;IAChC,IAAI,EAAE,MAAM;CACb,CAAC,CAAC","sourcesContent":["import { createMutableSchema } from '@empathyco/x-adapter';\nimport { RelatedPrompt } from '@empathyco/x-types';\nimport { PlatformRelatedPrompt } from '../../types/models/related-prompt.model';\n\n/**\n * Default implementation for the RelatedPromptSchema.\n *\n * @public\n */\nexport const relatedPromptSchema = createMutableSchema<PlatformRelatedPrompt, RelatedPrompt>({\n modelName: () => 'RelatedPrompt',\n nextQueries: 'nextQueries',\n suggestionText: 'suggestionText',\n type: 'type'\n});\n"]}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.statsSchema = void 0;
4
+ const x_adapter_1 = require("@empathyco/x-adapter");
5
+ /**
6
+ * Default implementation for the Stats schema.
7
+ *
8
+ * @public
9
+ */
10
+ exports.statsSchema = (0, x_adapter_1.createMutableSchema)({
11
+ price: {
12
+ min: ({ price }) => ((price === null || price === void 0 ? void 0 : price.min) ? Number(price.min) : undefined),
13
+ max: ({ price }) => ((price === null || price === void 0 ? void 0 : price.max) ? Number(price.max) : undefined)
14
+ }
15
+ });
16
+ //# sourceMappingURL=stats.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stats.schema.js","sourceRoot":"","sources":["../../../../src/schemas/models/stats.schema.ts"],"names":[],"mappings":";;;AAAA,oDAA2D;AAI3D;;;;GAIG;AACU,QAAA,WAAW,GAAG,IAAA,+BAAmB,EAAuB;IACnE,KAAK,EAAE;QACL,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,EAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAChE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,EAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;KACjE;CACF,CAAC,CAAC","sourcesContent":["import { createMutableSchema } from '@empathyco/x-adapter';\nimport { Stats } from '@empathyco/x-types';\nimport { PlatformStats } from '../../types/models/stats.model';\n\n/**\n * Default implementation for the Stats schema.\n *\n * @public\n */\nexport const statsSchema = createMutableSchema<PlatformStats, Stats>({\n price: {\n min: ({ price }) => (price?.min ? Number(price.min) : undefined),\n max: ({ price }) => (price?.max ? Number(price.max) : undefined)\n }\n});\n"]}
@@ -4,6 +4,8 @@ exports.relatedPromptsRequestSchema = void 0;
4
4
  const x_adapter_1 = require("@empathyco/x-adapter");
5
5
  /**
6
6
  * Default implementation for the RelatedPromptsRequestSchema.
7
+ *
8
+ * @public
7
9
  */
8
10
  exports.relatedPromptsRequestSchema = (0, x_adapter_1.createMutableSchema)({
9
11
  query: 'query',
@@ -1 +1 @@
1
- {"version":3,"file":"related-prompts-request.schema.js","sourceRoot":"","sources":["../../../../src/schemas/requests/related-prompts-request.schema.ts"],"names":[],"mappings":";;;AAAA,oDAA2D;AAI3D;;GAEG;AACU,QAAA,2BAA2B,GAAG,IAAA,+BAAmB,EAG5D;IACA,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;CAC3B,CAAC,CAAC","sourcesContent":["import { createMutableSchema } from '@empathyco/x-adapter';\nimport { RelatedPromptsRequest } from '@empathyco/x-types';\nimport { PlatformRelatedPromptsRequest } from '../../types/requests/related-prompts-request.model';\n\n/**\n * Default implementation for the RelatedPromptsRequestSchema.\n */\nexport const relatedPromptsRequestSchema = createMutableSchema<\n RelatedPromptsRequest,\n PlatformRelatedPromptsRequest\n>({\n query: 'query',\n extraParams: 'extraParams'\n});\n"]}
1
+ {"version":3,"file":"related-prompts-request.schema.js","sourceRoot":"","sources":["../../../../src/schemas/requests/related-prompts-request.schema.ts"],"names":[],"mappings":";;;AAAA,oDAA2D;AAI3D;;;;GAIG;AACU,QAAA,2BAA2B,GAAG,IAAA,+BAAmB,EAG5D;IACA,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;CAC3B,CAAC,CAAC","sourcesContent":["import { createMutableSchema } from '@empathyco/x-adapter';\nimport { RelatedPromptsRequest } from '@empathyco/x-types';\nimport { PlatformRelatedPromptsRequest } from '../../types/requests/related-prompts-request.model';\n\n/**\n * Default implementation for the RelatedPromptsRequestSchema.\n *\n * @public\n */\nexport const relatedPromptsRequestSchema = createMutableSchema<\n RelatedPromptsRequest,\n PlatformRelatedPromptsRequest\n>({\n query: 'query',\n extraParams: 'extraParams'\n});\n"]}
@@ -5,6 +5,8 @@ const x_adapter_1 = require("@empathyco/x-adapter");
5
5
  const related_prompt_schema_1 = require("../models/related-prompt.schema");
6
6
  /**
7
7
  * Default implementation for the RelatedPromptsResponseSchema.
8
+ *
9
+ * @public
8
10
  */
9
11
  exports.relatedPromptsResponseSchema = (0, x_adapter_1.createMutableSchema)({
10
12
  relatedPrompts: {
@@ -1 +1 @@
1
- {"version":3,"file":"related-prompts-response.schema.js","sourceRoot":"","sources":["../../../../src/schemas/responses/related-prompts-response.schema.ts"],"names":[],"mappings":";;;AAAA,oDAA2D;AAI3D,2EAAsE;AAEtE;;GAEG;AACU,QAAA,4BAA4B,GAAG,IAAA,+BAAmB,EAG7D;IACA,cAAc,EAAE;QACd,KAAK,EAAE,qBAAqB;QAC5B,UAAU,EAAE,2CAAmB;KAChC;CACF,CAAC,CAAC","sourcesContent":["import { createMutableSchema } from '@empathyco/x-adapter';\nimport { RelatedPromptsResponse } from '@empathyco/x-types';\n// eslint-disable-next-line max-len\nimport { PlatformRelatedPromptsResponse } from '../../types/responses/related-prompts-response.model';\nimport { relatedPromptSchema } from '../models/related-prompt.schema';\n\n/**\n * Default implementation for the RelatedPromptsResponseSchema.\n */\nexport const relatedPromptsResponseSchema = createMutableSchema<\n PlatformRelatedPromptsResponse,\n RelatedPromptsResponse\n>({\n relatedPrompts: {\n $path: 'data.relatedprompts',\n $subSchema: relatedPromptSchema\n }\n});\n"]}
1
+ {"version":3,"file":"related-prompts-response.schema.js","sourceRoot":"","sources":["../../../../src/schemas/responses/related-prompts-response.schema.ts"],"names":[],"mappings":";;;AAAA,oDAA2D;AAI3D,2EAAsE;AAEtE;;;;GAIG;AACU,QAAA,4BAA4B,GAAG,IAAA,+BAAmB,EAG7D;IACA,cAAc,EAAE;QACd,KAAK,EAAE,qBAAqB;QAC5B,UAAU,EAAE,2CAAmB;KAChC;CACF,CAAC,CAAC","sourcesContent":["import { createMutableSchema } from '@empathyco/x-adapter';\nimport { RelatedPromptsResponse } from '@empathyco/x-types';\n// eslint-disable-next-line max-len\nimport { PlatformRelatedPromptsResponse } from '../../types/responses/related-prompts-response.model';\nimport { relatedPromptSchema } from '../models/related-prompt.schema';\n\n/**\n * Default implementation for the RelatedPromptsResponseSchema.\n *\n * @public\n */\nexport const relatedPromptsResponseSchema = createMutableSchema<\n PlatformRelatedPromptsResponse,\n RelatedPromptsResponse\n>({\n relatedPrompts: {\n $path: 'data.relatedprompts',\n $subSchema: relatedPromptSchema\n }\n});\n"]}
@@ -9,6 +9,7 @@ const partial_results_schema_1 = require("../models/partial-results.schema");
9
9
  const promoted_schema_1 = require("../models/promoted.schema");
10
10
  const redirection_schema_1 = require("../models/redirection.schema");
11
11
  const result_schema_1 = require("../models/result.schema");
12
+ const stats_schema_1 = require("../models/stats.schema");
12
13
  /**
13
14
  * Default implementation for the SearchResponseSchema.
14
15
  *
@@ -41,6 +42,10 @@ exports.searchResponseSchema = (0, x_adapter_1.createMutableSchema)({
41
42
  $path: 'catalog.partials',
42
43
  $subSchema: partial_results_schema_1.partialResultsSchema
43
44
  },
45
+ stats: {
46
+ $path: 'catalog.stats',
47
+ $subSchema: stats_schema_1.statsSchema
48
+ },
44
49
  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); },
45
50
  displayTagging: ({ catalog }) => { var _a; return (0, url_utils_1.getDisplayTaggingInfoFromUrl)((_a = catalog === null || catalog === void 0 ? void 0 : catalog.tagging) === null || _a === void 0 ? void 0 : _a.display); }
46
51
  });
@@ -1 +1 @@
1
- {"version":3,"file":"search-response.schema.js","sourceRoot":"","sources":["../../../../src/schemas/responses/search-response.schema.ts"],"names":[],"mappings":";;;AAAA,oDAA2D;AAE3D,uDAA8F;AAE9F,2DAAuD;AACvD,yDAAqD;AACrD,6EAAwE;AACxE,+DAA2D;AAC3D,qEAAiE;AACjE,2DAAuD;AAEvD;;;;GAIG;AACU,QAAA,oBAAoB,GAAG,IAAA,+BAAmB,EAAyC;IAC9F,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,cAAc,EAAE;QACd,KAAK,EAAE,kBAAkB;QACzB,UAAU,EAAE,6CAAoB;KACjC;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;IAC7E,cAAc,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,WAAC,OAAA,IAAA,wCAA4B,EAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,0CAAE,OAAO,CAAC,CAAA,EAAA;CACzF,CAAC,CAAC","sourcesContent":["import { createMutableSchema } from '@empathyco/x-adapter';\nimport { SearchResponse } from '@empathyco/x-types';\nimport { getDisplayTaggingInfoFromUrl, 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 { partialResultsSchema } from '../models/partial-results.schema';\nimport { promotedSchema } from '../models/promoted.schema';\nimport { redirectionSchema } from '../models/redirection.schema';\nimport { resultSchema } from '../models/result.schema';\n\n/**\n * Default implementation for the SearchResponseSchema.\n *\n * @public\n */\nexport const searchResponseSchema = createMutableSchema<PlatformSearchResponse, SearchResponse>({\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 partialResults: {\n $path: 'catalog.partials',\n $subSchema: partialResultsSchema\n },\n queryTagging: ({ catalog }) => getTaggingInfoFromUrl(catalog?.tagging?.query),\n displayTagging: ({ catalog }) => getDisplayTaggingInfoFromUrl(catalog?.tagging?.display)\n});\n"]}
1
+ {"version":3,"file":"search-response.schema.js","sourceRoot":"","sources":["../../../../src/schemas/responses/search-response.schema.ts"],"names":[],"mappings":";;;AAAA,oDAA2D;AAE3D,uDAA8F;AAE9F,2DAAuD;AACvD,yDAAqD;AACrD,6EAAwE;AACxE,+DAA2D;AAC3D,qEAAiE;AACjE,2DAAuD;AACvD,yDAAqD;AAErD;;;;GAIG;AACU,QAAA,oBAAoB,GAAG,IAAA,+BAAmB,EAAyC;IAC9F,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,cAAc,EAAE;QACd,KAAK,EAAE,kBAAkB;QACzB,UAAU,EAAE,6CAAoB;KACjC;IACD,KAAK,EAAE;QACL,KAAK,EAAE,eAAe;QACtB,UAAU,EAAE,0BAAW;KACxB;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;IAC7E,cAAc,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,WAAC,OAAA,IAAA,wCAA4B,EAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,0CAAE,OAAO,CAAC,CAAA,EAAA;CACzF,CAAC,CAAC","sourcesContent":["import { createMutableSchema } from '@empathyco/x-adapter';\nimport { SearchResponse } from '@empathyco/x-types';\nimport { getDisplayTaggingInfoFromUrl, 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 { partialResultsSchema } from '../models/partial-results.schema';\nimport { promotedSchema } from '../models/promoted.schema';\nimport { redirectionSchema } from '../models/redirection.schema';\nimport { resultSchema } from '../models/result.schema';\nimport { statsSchema } from '../models/stats.schema';\n\n/**\n * Default implementation for the SearchResponseSchema.\n *\n * @public\n */\nexport const searchResponseSchema = createMutableSchema<PlatformSearchResponse, SearchResponse>({\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 partialResults: {\n $path: 'catalog.partials',\n $subSchema: partialResultsSchema\n },\n stats: {\n $path: 'catalog.stats',\n $subSchema: statsSchema\n },\n queryTagging: ({ catalog }) => getTaggingInfoFromUrl(catalog?.tagging?.query),\n displayTagging: ({ catalog }) => getDisplayTaggingInfoFromUrl(catalog?.tagging?.display)\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"related-prompt.model.js","sourceRoot":"","sources":["../../../../src/types/models/related-prompt.model.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Related prompt model for the `platform` API.\n */\nexport interface PlatformRelatedPrompt {\n nextQueries: string[];\n suggestionText: string;\n type: 'SYNTHETIC' | 'CURATED';\n}\n"]}
1
+ {"version":3,"file":"related-prompt.model.js","sourceRoot":"","sources":["../../../../src/types/models/related-prompt.model.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Related prompt model for the `platform` API.\n *\n * @public\n */\nexport interface PlatformRelatedPrompt {\n nextQueries: string[];\n suggestionText: string;\n type: 'SYNTHETIC' | 'CURATED';\n}\n"]}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=stats.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stats.model.js","sourceRoot":"","sources":["../../../../src/types/models/stats.model.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Stats model for the `platform` API.\n *\n * @public\n */\nexport interface PlatformStats {\n price: { min: number; max: number };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"related-prompts-response.model.js","sourceRoot":"","sources":["../../../../src/types/responses/related-prompts-response.model.ts"],"names":[],"mappings":"","sourcesContent":["import { PlatformRelatedPrompt } from '../models/related-prompt.model';\n\n/**\n * Response for the `related prompts` endpoint.\n */\nexport interface PlatformRelatedPromptsResponse {\n data: {\n relatedprompts: PlatformRelatedPrompt[];\n };\n status: number;\n}\n"]}
1
+ {"version":3,"file":"related-prompts-response.model.js","sourceRoot":"","sources":["../../../../src/types/responses/related-prompts-response.model.ts"],"names":[],"mappings":"","sourcesContent":["import { PlatformRelatedPrompt } from '../models/related-prompt.model';\n\n/**\n * Response for the `related prompts` endpoint.\n *\n * @public\n */\nexport interface PlatformRelatedPromptsResponse {\n data: {\n relatedprompts: PlatformRelatedPrompt[];\n };\n status: number;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"search-response.model.js","sourceRoot":"","sources":["../../../../src/types/responses/search-response.model.ts"],"names":[],"mappings":"","sourcesContent":["import { PlatformResult } from '../models/result.model';\nimport { PlatformBanner } from '../models/banner.model';\nimport { PlatformFacet } from '../models/facet.model';\nimport { PlatformPromoted } from '../models/promoted.model';\nimport { PlatformRedirection } from '../models/redirection.model';\nimport { PlatformPartialResult } from '../models/partials.model';\n\n/**\n * Response for the `search` endpoint.\n *\n * @public\n */\nexport interface PlatformSearchResponse {\n banner: {\n content: PlatformBanner[];\n };\n catalog: {\n content: PlatformResult[];\n facets: PlatformFacet[];\n numFound: number;\n spellchecked: string;\n partials: PlatformPartialResult[];\n tagging: {\n query: string;\n display: string;\n };\n };\n direct: {\n content: PlatformRedirection[];\n };\n promoted: {\n content: PlatformPromoted[];\n };\n}\n"]}
1
+ {"version":3,"file":"search-response.model.js","sourceRoot":"","sources":["../../../../src/types/responses/search-response.model.ts"],"names":[],"mappings":"","sourcesContent":["import { PlatformResult } from '../models/result.model';\nimport { PlatformBanner } from '../models/banner.model';\nimport { PlatformFacet } from '../models/facet.model';\nimport { PlatformPromoted } from '../models/promoted.model';\nimport { PlatformRedirection } from '../models/redirection.model';\nimport { PlatformPartialResult } from '../models/partials.model';\n\n/**\n * Response for the `search` endpoint.\n *\n * @public\n */\nexport interface PlatformSearchResponse {\n banner: {\n content: PlatformBanner[];\n };\n catalog: {\n content: PlatformResult[];\n facets: PlatformFacet[];\n numFound: number;\n spellchecked: string;\n partials: PlatformPartialResult[];\n tagging: {\n query: string;\n display: string;\n };\n stats: {\n price: {\n min: number;\n max: number;\n };\n };\n };\n direct: {\n content: PlatformRedirection[];\n };\n promoted: {\n content: PlatformPromoted[];\n };\n}\n"]}
@@ -2,6 +2,8 @@ import { schemaMapperFactory } from '@empathyco/x-adapter';
2
2
  import { relatedPromptsRequestSchema } from '../../schemas/requests/related-prompts-request.schema';
3
3
  /**
4
4
  * Default implementation for the RelatedPromptsRequestMapper.
5
+ *
6
+ * @public
5
7
  */
6
8
  export const relatedPromptsRequestMapper = schemaMapperFactory(relatedPromptsRequestSchema);
7
9
  //# sourceMappingURL=related-prompts-request.mapper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"related-prompts-request.mapper.js","sourceRoot":"","sources":["../../../../src/mappers/requests/related-prompts-request.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAG3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,uDAAuD,CAAC;AAEpG;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAG5D,2BAA2B,CAAC,CAAC","sourcesContent":["import { schemaMapperFactory } from '@empathyco/x-adapter';\nimport { RelatedPromptsRequest } from '@empathyco/x-types';\nimport { PlatformRelatedPromptsRequest } from '../../types/requests/related-prompts-request.model';\nimport { relatedPromptsRequestSchema } from '../../schemas/requests/related-prompts-request.schema';\n\n/**\n * Default implementation for the RelatedPromptsRequestMapper.\n */\nexport const relatedPromptsRequestMapper = schemaMapperFactory<\n RelatedPromptsRequest,\n PlatformRelatedPromptsRequest\n>(relatedPromptsRequestSchema);\n"]}
1
+ {"version":3,"file":"related-prompts-request.mapper.js","sourceRoot":"","sources":["../../../../src/mappers/requests/related-prompts-request.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAG3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,uDAAuD,CAAC;AAEpG;;;;GAIG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAG5D,2BAA2B,CAAC,CAAC","sourcesContent":["import { schemaMapperFactory } from '@empathyco/x-adapter';\nimport { RelatedPromptsRequest } from '@empathyco/x-types';\nimport { PlatformRelatedPromptsRequest } from '../../types/requests/related-prompts-request.model';\nimport { relatedPromptsRequestSchema } from '../../schemas/requests/related-prompts-request.schema';\n\n/**\n * Default implementation for the RelatedPromptsRequestMapper.\n *\n * @public\n */\nexport const relatedPromptsRequestMapper = schemaMapperFactory<\n RelatedPromptsRequest,\n PlatformRelatedPromptsRequest\n>(relatedPromptsRequestSchema);\n"]}
@@ -3,6 +3,8 @@ import { schemaMapperFactory } from '@empathyco/x-adapter';
3
3
  import { relatedPromptsResponseSchema } from '../../schemas/responses/related-prompts-response.schema';
4
4
  /**
5
5
  * Default implementation for the RelatedPromptsResponseMapper.
6
+ *
7
+ * @public
6
8
  */
7
9
  export const relatedPromptsResponseMapper = schemaMapperFactory(relatedPromptsResponseSchema);
8
10
  //# sourceMappingURL=related-prompts-response.mapper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"related-prompts-response.mapper.js","sourceRoot":"","sources":["../../../../src/mappers/responses/related-prompts-response.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAI3D,mCAAmC;AACnC,OAAO,EAAE,4BAA4B,EAAE,MAAM,yDAAyD,CAAC;AAEvG;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,mBAAmB,CAG7D,4BAA4B,CAAC,CAAC","sourcesContent":["import { schemaMapperFactory } from '@empathyco/x-adapter';\nimport { RelatedPromptsResponse } from '@empathyco/x-types';\n// eslint-disable-next-line max-len\nimport { PlatformRelatedPromptsResponse } from '../../types/responses/related-prompts-response.model';\n// eslint-disable-next-line max-len\nimport { relatedPromptsResponseSchema } from '../../schemas/responses/related-prompts-response.schema';\n\n/**\n * Default implementation for the RelatedPromptsResponseMapper.\n */\nexport const relatedPromptsResponseMapper = schemaMapperFactory<\n PlatformRelatedPromptsResponse,\n RelatedPromptsResponse\n>(relatedPromptsResponseSchema);\n"]}
1
+ {"version":3,"file":"related-prompts-response.mapper.js","sourceRoot":"","sources":["../../../../src/mappers/responses/related-prompts-response.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAI3D,mCAAmC;AACnC,OAAO,EAAE,4BAA4B,EAAE,MAAM,yDAAyD,CAAC;AAEvG;;;;GAIG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,mBAAmB,CAG7D,4BAA4B,CAAC,CAAC","sourcesContent":["import { schemaMapperFactory } from '@empathyco/x-adapter';\nimport { RelatedPromptsResponse } from '@empathyco/x-types';\n// eslint-disable-next-line max-len\nimport { PlatformRelatedPromptsResponse } from '../../types/responses/related-prompts-response.model';\n// eslint-disable-next-line max-len\nimport { relatedPromptsResponseSchema } from '../../schemas/responses/related-prompts-response.schema';\n\n/**\n * Default implementation for the RelatedPromptsResponseMapper.\n *\n * @public\n */\nexport const relatedPromptsResponseMapper = schemaMapperFactory<\n PlatformRelatedPromptsResponse,\n RelatedPromptsResponse\n>(relatedPromptsResponseSchema);\n"]}
@@ -1,6 +1,8 @@
1
1
  import { createMutableSchema } from '@empathyco/x-adapter';
2
2
  /**
3
3
  * Default implementation for the RelatedPromptSchema.
4
+ *
5
+ * @public
4
6
  */
5
7
  export const relatedPromptSchema = createMutableSchema({
6
8
  modelName: () => 'RelatedPrompt',
@@ -1 +1 @@
1
- {"version":3,"file":"related-prompt.schema.js","sourceRoot":"","sources":["../../../../src/schemas/models/related-prompt.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAI3D;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,mBAAmB,CAAuC;IAC3F,SAAS,EAAE,GAAG,EAAE,CAAC,eAAe;IAChC,WAAW,EAAE,aAAa;IAC1B,cAAc,EAAE,gBAAgB;IAChC,IAAI,EAAE,MAAM;CACb,CAAC,CAAC","sourcesContent":["import { createMutableSchema } from '@empathyco/x-adapter';\nimport { RelatedPrompt } from '@empathyco/x-types';\nimport { PlatformRelatedPrompt } from '../../types/models/related-prompt.model';\n\n/**\n * Default implementation for the RelatedPromptSchema.\n */\nexport const relatedPromptSchema = createMutableSchema<PlatformRelatedPrompt, RelatedPrompt>({\n modelName: () => 'RelatedPrompt',\n nextQueries: 'nextQueries',\n suggestionText: 'suggestionText',\n type: 'type'\n});\n"]}
1
+ {"version":3,"file":"related-prompt.schema.js","sourceRoot":"","sources":["../../../../src/schemas/models/related-prompt.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAI3D;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,mBAAmB,CAAuC;IAC3F,SAAS,EAAE,GAAG,EAAE,CAAC,eAAe;IAChC,WAAW,EAAE,aAAa;IAC1B,cAAc,EAAE,gBAAgB;IAChC,IAAI,EAAE,MAAM;CACb,CAAC,CAAC","sourcesContent":["import { createMutableSchema } from '@empathyco/x-adapter';\nimport { RelatedPrompt } from '@empathyco/x-types';\nimport { PlatformRelatedPrompt } from '../../types/models/related-prompt.model';\n\n/**\n * Default implementation for the RelatedPromptSchema.\n *\n * @public\n */\nexport const relatedPromptSchema = createMutableSchema<PlatformRelatedPrompt, RelatedPrompt>({\n modelName: () => 'RelatedPrompt',\n nextQueries: 'nextQueries',\n suggestionText: 'suggestionText',\n type: 'type'\n});\n"]}
@@ -0,0 +1,13 @@
1
+ import { createMutableSchema } from '@empathyco/x-adapter';
2
+ /**
3
+ * Default implementation for the Stats schema.
4
+ *
5
+ * @public
6
+ */
7
+ export const statsSchema = createMutableSchema({
8
+ price: {
9
+ min: ({ price }) => ((price === null || price === void 0 ? void 0 : price.min) ? Number(price.min) : undefined),
10
+ max: ({ price }) => ((price === null || price === void 0 ? void 0 : price.max) ? Number(price.max) : undefined)
11
+ }
12
+ });
13
+ //# sourceMappingURL=stats.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stats.schema.js","sourceRoot":"","sources":["../../../../src/schemas/models/stats.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAI3D;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,mBAAmB,CAAuB;IACnE,KAAK,EAAE;QACL,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,EAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAChE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,GAAG,EAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;KACjE;CACF,CAAC,CAAC","sourcesContent":["import { createMutableSchema } from '@empathyco/x-adapter';\nimport { Stats } from '@empathyco/x-types';\nimport { PlatformStats } from '../../types/models/stats.model';\n\n/**\n * Default implementation for the Stats schema.\n *\n * @public\n */\nexport const statsSchema = createMutableSchema<PlatformStats, Stats>({\n price: {\n min: ({ price }) => (price?.min ? Number(price.min) : undefined),\n max: ({ price }) => (price?.max ? Number(price.max) : undefined)\n }\n});\n"]}
@@ -1,6 +1,8 @@
1
1
  import { createMutableSchema } from '@empathyco/x-adapter';
2
2
  /**
3
3
  * Default implementation for the RelatedPromptsRequestSchema.
4
+ *
5
+ * @public
4
6
  */
5
7
  export const relatedPromptsRequestSchema = createMutableSchema({
6
8
  query: 'query',
@@ -1 +1 @@
1
- {"version":3,"file":"related-prompts-request.schema.js","sourceRoot":"","sources":["../../../../src/schemas/requests/related-prompts-request.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAI3D;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAG5D;IACA,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;CAC3B,CAAC,CAAC","sourcesContent":["import { createMutableSchema } from '@empathyco/x-adapter';\nimport { RelatedPromptsRequest } from '@empathyco/x-types';\nimport { PlatformRelatedPromptsRequest } from '../../types/requests/related-prompts-request.model';\n\n/**\n * Default implementation for the RelatedPromptsRequestSchema.\n */\nexport const relatedPromptsRequestSchema = createMutableSchema<\n RelatedPromptsRequest,\n PlatformRelatedPromptsRequest\n>({\n query: 'query',\n extraParams: 'extraParams'\n});\n"]}
1
+ {"version":3,"file":"related-prompts-request.schema.js","sourceRoot":"","sources":["../../../../src/schemas/requests/related-prompts-request.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAI3D;;;;GAIG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAG5D;IACA,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;CAC3B,CAAC,CAAC","sourcesContent":["import { createMutableSchema } from '@empathyco/x-adapter';\nimport { RelatedPromptsRequest } from '@empathyco/x-types';\nimport { PlatformRelatedPromptsRequest } from '../../types/requests/related-prompts-request.model';\n\n/**\n * Default implementation for the RelatedPromptsRequestSchema.\n *\n * @public\n */\nexport const relatedPromptsRequestSchema = createMutableSchema<\n RelatedPromptsRequest,\n PlatformRelatedPromptsRequest\n>({\n query: 'query',\n extraParams: 'extraParams'\n});\n"]}
@@ -2,6 +2,8 @@ import { createMutableSchema } from '@empathyco/x-adapter';
2
2
  import { relatedPromptSchema } from '../models/related-prompt.schema';
3
3
  /**
4
4
  * Default implementation for the RelatedPromptsResponseSchema.
5
+ *
6
+ * @public
5
7
  */
6
8
  export const relatedPromptsResponseSchema = createMutableSchema({
7
9
  relatedPrompts: {
@@ -1 +1 @@
1
- {"version":3,"file":"related-prompts-response.schema.js","sourceRoot":"","sources":["../../../../src/schemas/responses/related-prompts-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAI3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAEtE;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,mBAAmB,CAG7D;IACA,cAAc,EAAE;QACd,KAAK,EAAE,qBAAqB;QAC5B,UAAU,EAAE,mBAAmB;KAChC;CACF,CAAC,CAAC","sourcesContent":["import { createMutableSchema } from '@empathyco/x-adapter';\nimport { RelatedPromptsResponse } from '@empathyco/x-types';\n// eslint-disable-next-line max-len\nimport { PlatformRelatedPromptsResponse } from '../../types/responses/related-prompts-response.model';\nimport { relatedPromptSchema } from '../models/related-prompt.schema';\n\n/**\n * Default implementation for the RelatedPromptsResponseSchema.\n */\nexport const relatedPromptsResponseSchema = createMutableSchema<\n PlatformRelatedPromptsResponse,\n RelatedPromptsResponse\n>({\n relatedPrompts: {\n $path: 'data.relatedprompts',\n $subSchema: relatedPromptSchema\n }\n});\n"]}
1
+ {"version":3,"file":"related-prompts-response.schema.js","sourceRoot":"","sources":["../../../../src/schemas/responses/related-prompts-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAI3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAEtE;;;;GAIG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,mBAAmB,CAG7D;IACA,cAAc,EAAE;QACd,KAAK,EAAE,qBAAqB;QAC5B,UAAU,EAAE,mBAAmB;KAChC;CACF,CAAC,CAAC","sourcesContent":["import { createMutableSchema } from '@empathyco/x-adapter';\nimport { RelatedPromptsResponse } from '@empathyco/x-types';\n// eslint-disable-next-line max-len\nimport { PlatformRelatedPromptsResponse } from '../../types/responses/related-prompts-response.model';\nimport { relatedPromptSchema } from '../models/related-prompt.schema';\n\n/**\n * Default implementation for the RelatedPromptsResponseSchema.\n *\n * @public\n */\nexport const relatedPromptsResponseSchema = createMutableSchema<\n PlatformRelatedPromptsResponse,\n RelatedPromptsResponse\n>({\n relatedPrompts: {\n $path: 'data.relatedprompts',\n $subSchema: relatedPromptSchema\n }\n});\n"]}
@@ -6,6 +6,7 @@ import { partialResultsSchema } from '../models/partial-results.schema';
6
6
  import { promotedSchema } from '../models/promoted.schema';
7
7
  import { redirectionSchema } from '../models/redirection.schema';
8
8
  import { resultSchema } from '../models/result.schema';
9
+ import { statsSchema } from '../models/stats.schema';
9
10
  /**
10
11
  * Default implementation for the SearchResponseSchema.
11
12
  *
@@ -38,6 +39,10 @@ export const searchResponseSchema = createMutableSchema({
38
39
  $path: 'catalog.partials',
39
40
  $subSchema: partialResultsSchema
40
41
  },
42
+ stats: {
43
+ $path: 'catalog.stats',
44
+ $subSchema: statsSchema
45
+ },
41
46
  queryTagging: ({ catalog }) => { var _a; return getTaggingInfoFromUrl((_a = catalog === null || catalog === void 0 ? void 0 : catalog.tagging) === null || _a === void 0 ? void 0 : _a.query); },
42
47
  displayTagging: ({ catalog }) => { var _a; return getDisplayTaggingInfoFromUrl((_a = catalog === null || catalog === void 0 ? void 0 : catalog.tagging) === null || _a === void 0 ? void 0 : _a.display); }
43
48
  });
@@ -1 +1 @@
1
- {"version":3,"file":"search-response.schema.js","sourceRoot":"","sources":["../../../../src/schemas/responses/search-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,4BAA4B,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAE9F,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,mBAAmB,CAAyC;IAC9F,OAAO,EAAE;QACP,KAAK,EAAE,iBAAiB;QACxB,UAAU,EAAE,YAAY;KACzB;IACD,MAAM,EAAE;QACN,KAAK,EAAE,gBAAgB;QACvB,UAAU,EAAE,WAAW;KACxB;IACD,YAAY,EAAE,kBAAkB;IAChC,UAAU,EAAE,sBAAsB;IAClC,OAAO,EAAE;QACP,KAAK,EAAE,gBAAgB;QACvB,UAAU,EAAE,YAAY;KACzB;IACD,SAAS,EAAE;QACT,KAAK,EAAE,kBAAkB;QACzB,UAAU,EAAE,cAAc;KAC3B;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,gBAAgB;QACvB,UAAU,EAAE,iBAAiB;KAC9B;IACD,cAAc,EAAE;QACd,KAAK,EAAE,kBAAkB;QACzB,UAAU,EAAE,oBAAoB;KACjC;IACD,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,WAAC,OAAA,qBAAqB,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,0CAAE,KAAK,CAAC,CAAA,EAAA;IAC7E,cAAc,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,WAAC,OAAA,4BAA4B,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,0CAAE,OAAO,CAAC,CAAA,EAAA;CACzF,CAAC,CAAC","sourcesContent":["import { createMutableSchema } from '@empathyco/x-adapter';\nimport { SearchResponse } from '@empathyco/x-types';\nimport { getDisplayTaggingInfoFromUrl, 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 { partialResultsSchema } from '../models/partial-results.schema';\nimport { promotedSchema } from '../models/promoted.schema';\nimport { redirectionSchema } from '../models/redirection.schema';\nimport { resultSchema } from '../models/result.schema';\n\n/**\n * Default implementation for the SearchResponseSchema.\n *\n * @public\n */\nexport const searchResponseSchema = createMutableSchema<PlatformSearchResponse, SearchResponse>({\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 partialResults: {\n $path: 'catalog.partials',\n $subSchema: partialResultsSchema\n },\n queryTagging: ({ catalog }) => getTaggingInfoFromUrl(catalog?.tagging?.query),\n displayTagging: ({ catalog }) => getDisplayTaggingInfoFromUrl(catalog?.tagging?.display)\n});\n"]}
1
+ {"version":3,"file":"search-response.schema.js","sourceRoot":"","sources":["../../../../src/schemas/responses/search-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,4BAA4B,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAE9F,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,mBAAmB,CAAyC;IAC9F,OAAO,EAAE;QACP,KAAK,EAAE,iBAAiB;QACxB,UAAU,EAAE,YAAY;KACzB;IACD,MAAM,EAAE;QACN,KAAK,EAAE,gBAAgB;QACvB,UAAU,EAAE,WAAW;KACxB;IACD,YAAY,EAAE,kBAAkB;IAChC,UAAU,EAAE,sBAAsB;IAClC,OAAO,EAAE;QACP,KAAK,EAAE,gBAAgB;QACvB,UAAU,EAAE,YAAY;KACzB;IACD,SAAS,EAAE;QACT,KAAK,EAAE,kBAAkB;QACzB,UAAU,EAAE,cAAc;KAC3B;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,gBAAgB;QACvB,UAAU,EAAE,iBAAiB;KAC9B;IACD,cAAc,EAAE;QACd,KAAK,EAAE,kBAAkB;QACzB,UAAU,EAAE,oBAAoB;KACjC;IACD,KAAK,EAAE;QACL,KAAK,EAAE,eAAe;QACtB,UAAU,EAAE,WAAW;KACxB;IACD,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,WAAC,OAAA,qBAAqB,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,0CAAE,KAAK,CAAC,CAAA,EAAA;IAC7E,cAAc,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,WAAC,OAAA,4BAA4B,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,0CAAE,OAAO,CAAC,CAAA,EAAA;CACzF,CAAC,CAAC","sourcesContent":["import { createMutableSchema } from '@empathyco/x-adapter';\nimport { SearchResponse } from '@empathyco/x-types';\nimport { getDisplayTaggingInfoFromUrl, 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 { partialResultsSchema } from '../models/partial-results.schema';\nimport { promotedSchema } from '../models/promoted.schema';\nimport { redirectionSchema } from '../models/redirection.schema';\nimport { resultSchema } from '../models/result.schema';\nimport { statsSchema } from '../models/stats.schema';\n\n/**\n * Default implementation for the SearchResponseSchema.\n *\n * @public\n */\nexport const searchResponseSchema = createMutableSchema<PlatformSearchResponse, SearchResponse>({\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 partialResults: {\n $path: 'catalog.partials',\n $subSchema: partialResultsSchema\n },\n stats: {\n $path: 'catalog.stats',\n $subSchema: statsSchema\n },\n queryTagging: ({ catalog }) => getTaggingInfoFromUrl(catalog?.tagging?.query),\n displayTagging: ({ catalog }) => getDisplayTaggingInfoFromUrl(catalog?.tagging?.display)\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"related-prompt.model.js","sourceRoot":"","sources":["../../../../src/types/models/related-prompt.model.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Related prompt model for the `platform` API.\n */\nexport interface PlatformRelatedPrompt {\n nextQueries: string[];\n suggestionText: string;\n type: 'SYNTHETIC' | 'CURATED';\n}\n"]}
1
+ {"version":3,"file":"related-prompt.model.js","sourceRoot":"","sources":["../../../../src/types/models/related-prompt.model.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Related prompt model for the `platform` API.\n *\n * @public\n */\nexport interface PlatformRelatedPrompt {\n nextQueries: string[];\n suggestionText: string;\n type: 'SYNTHETIC' | 'CURATED';\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=stats.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stats.model.js","sourceRoot":"","sources":["../../../../src/types/models/stats.model.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Stats model for the `platform` API.\n *\n * @public\n */\nexport interface PlatformStats {\n price: { min: number; max: number };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"related-prompts-response.model.js","sourceRoot":"","sources":["../../../../src/types/responses/related-prompts-response.model.ts"],"names":[],"mappings":"","sourcesContent":["import { PlatformRelatedPrompt } from '../models/related-prompt.model';\n\n/**\n * Response for the `related prompts` endpoint.\n */\nexport interface PlatformRelatedPromptsResponse {\n data: {\n relatedprompts: PlatformRelatedPrompt[];\n };\n status: number;\n}\n"]}
1
+ {"version":3,"file":"related-prompts-response.model.js","sourceRoot":"","sources":["../../../../src/types/responses/related-prompts-response.model.ts"],"names":[],"mappings":"","sourcesContent":["import { PlatformRelatedPrompt } from '../models/related-prompt.model';\n\n/**\n * Response for the `related prompts` endpoint.\n *\n * @public\n */\nexport interface PlatformRelatedPromptsResponse {\n data: {\n relatedprompts: PlatformRelatedPrompt[];\n };\n status: number;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"search-response.model.js","sourceRoot":"","sources":["../../../../src/types/responses/search-response.model.ts"],"names":[],"mappings":"","sourcesContent":["import { PlatformResult } from '../models/result.model';\nimport { PlatformBanner } from '../models/banner.model';\nimport { PlatformFacet } from '../models/facet.model';\nimport { PlatformPromoted } from '../models/promoted.model';\nimport { PlatformRedirection } from '../models/redirection.model';\nimport { PlatformPartialResult } from '../models/partials.model';\n\n/**\n * Response for the `search` endpoint.\n *\n * @public\n */\nexport interface PlatformSearchResponse {\n banner: {\n content: PlatformBanner[];\n };\n catalog: {\n content: PlatformResult[];\n facets: PlatformFacet[];\n numFound: number;\n spellchecked: string;\n partials: PlatformPartialResult[];\n tagging: {\n query: string;\n display: string;\n };\n };\n direct: {\n content: PlatformRedirection[];\n };\n promoted: {\n content: PlatformPromoted[];\n };\n}\n"]}
1
+ {"version":3,"file":"search-response.model.js","sourceRoot":"","sources":["../../../../src/types/responses/search-response.model.ts"],"names":[],"mappings":"","sourcesContent":["import { PlatformResult } from '../models/result.model';\nimport { PlatformBanner } from '../models/banner.model';\nimport { PlatformFacet } from '../models/facet.model';\nimport { PlatformPromoted } from '../models/promoted.model';\nimport { PlatformRedirection } from '../models/redirection.model';\nimport { PlatformPartialResult } from '../models/partials.model';\n\n/**\n * Response for the `search` endpoint.\n *\n * @public\n */\nexport interface PlatformSearchResponse {\n banner: {\n content: PlatformBanner[];\n };\n catalog: {\n content: PlatformResult[];\n facets: PlatformFacet[];\n numFound: number;\n spellchecked: string;\n partials: PlatformPartialResult[];\n tagging: {\n query: string;\n display: string;\n };\n stats: {\n price: {\n min: number;\n max: number;\n };\n };\n };\n direct: {\n content: PlatformRedirection[];\n };\n promoted: {\n content: PlatformPromoted[];\n };\n}\n"]}
@@ -2,5 +2,7 @@ import { RelatedPromptsRequest } from '@empathyco/x-types';
2
2
  import { PlatformRelatedPromptsRequest } from '../../types/requests/related-prompts-request.model';
3
3
  /**
4
4
  * Default implementation for the RelatedPromptsRequestMapper.
5
+ *
6
+ * @public
5
7
  */
6
8
  export declare const relatedPromptsRequestMapper: import("@empathyco/x-adapter").Mapper<RelatedPromptsRequest, PlatformRelatedPromptsRequest>;
@@ -2,5 +2,7 @@ import { RelatedPromptsResponse } from '@empathyco/x-types';
2
2
  import { PlatformRelatedPromptsResponse } from '../../types/responses/related-prompts-response.model';
3
3
  /**
4
4
  * Default implementation for the RelatedPromptsResponseMapper.
5
+ *
6
+ * @public
5
7
  */
6
8
  export declare const relatedPromptsResponseMapper: import("@empathyco/x-adapter").Mapper<PlatformRelatedPromptsResponse, RelatedPromptsResponse>;
@@ -2,5 +2,7 @@ import { RelatedPrompt } from '@empathyco/x-types';
2
2
  import { PlatformRelatedPrompt } from '../../types/models/related-prompt.model';
3
3
  /**
4
4
  * Default implementation for the RelatedPromptSchema.
5
+ *
6
+ * @public
5
7
  */
6
8
  export declare const relatedPromptSchema: import("@empathyco/x-adapter").MutableSchema<PlatformRelatedPrompt, RelatedPrompt>;
@@ -0,0 +1,8 @@
1
+ import { Stats } from '@empathyco/x-types';
2
+ import { PlatformStats } from '../../types/models/stats.model';
3
+ /**
4
+ * Default implementation for the Stats schema.
5
+ *
6
+ * @public
7
+ */
8
+ export declare const statsSchema: import("@empathyco/x-adapter").MutableSchema<PlatformStats, Stats>;
@@ -2,5 +2,7 @@ import { RelatedPromptsRequest } from '@empathyco/x-types';
2
2
  import { PlatformRelatedPromptsRequest } from '../../types/requests/related-prompts-request.model';
3
3
  /**
4
4
  * Default implementation for the RelatedPromptsRequestSchema.
5
+ *
6
+ * @public
5
7
  */
6
8
  export declare const relatedPromptsRequestSchema: import("@empathyco/x-adapter").MutableSchema<RelatedPromptsRequest, PlatformRelatedPromptsRequest>;
@@ -2,5 +2,7 @@ import { RelatedPromptsResponse } from '@empathyco/x-types';
2
2
  import { PlatformRelatedPromptsResponse } from '../../types/responses/related-prompts-response.model';
3
3
  /**
4
4
  * Default implementation for the RelatedPromptsResponseSchema.
5
+ *
6
+ * @public
5
7
  */
6
8
  export declare const relatedPromptsResponseSchema: import("@empathyco/x-adapter").MutableSchema<PlatformRelatedPromptsResponse, RelatedPromptsResponse>;
@@ -1,5 +1,7 @@
1
1
  /**
2
2
  * Related prompt model for the `platform` API.
3
+ *
4
+ * @public
3
5
  */
4
6
  export interface PlatformRelatedPrompt {
5
7
  nextQueries: string[];
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Stats model for the `platform` API.
3
+ *
4
+ * @public
5
+ */
6
+ export interface PlatformStats {
7
+ price: {
8
+ min: number;
9
+ max: number;
10
+ };
11
+ }
@@ -1,6 +1,8 @@
1
1
  import { PlatformRelatedPrompt } from '../models/related-prompt.model';
2
2
  /**
3
3
  * Response for the `related prompts` endpoint.
4
+ *
5
+ * @public
4
6
  */
5
7
  export interface PlatformRelatedPromptsResponse {
6
8
  data: {
@@ -23,6 +23,12 @@ export interface PlatformSearchResponse {
23
23
  query: string;
24
24
  display: string;
25
25
  };
26
+ stats: {
27
+ price: {
28
+ min: number;
29
+ max: number;
30
+ };
31
+ };
26
32
  };
27
33
  direct: {
28
34
  content: PlatformRedirection[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empathyco/x-adapter-platform",
3
- "version": "1.1.0-alpha.7",
3
+ "version": "1.1.0-alpha.9",
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",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@empathyco/x-adapter": "^8.1.0-alpha.0",
45
- "@empathyco/x-types": "^10.1.0-alpha.5",
45
+ "@empathyco/x-types": "^10.1.0-alpha.6",
46
46
  "@empathyco/x-utils": "^1.0.3-alpha.1",
47
47
  "tslib": "~2.6.0"
48
48
  },
@@ -59,5 +59,5 @@
59
59
  "publishConfig": {
60
60
  "access": "public"
61
61
  },
62
- "gitHead": "c20f050dd0d59725bfed3c3774b9485e20a00b0d"
62
+ "gitHead": "795153eb4d238072a21ac57b668c4cf42d4d60f3"
63
63
  }
@@ -3703,7 +3703,7 @@
3703
3703
  {
3704
3704
  "kind": "Interface",
3705
3705
  "canonicalReference": "@empathyco/x-adapter-platform!PlatformRelatedPrompt:interface",
3706
- "docComment": "/**\n * Related prompt model for the `platform` API.\n */\n",
3706
+ "docComment": "/**\n * Related prompt model for the `platform` API.\n *\n * @public\n */\n",
3707
3707
  "excerptTokens": [
3708
3708
  {
3709
3709
  "kind": "Content",
@@ -3846,7 +3846,7 @@
3846
3846
  {
3847
3847
  "kind": "Interface",
3848
3848
  "canonicalReference": "@empathyco/x-adapter-platform!PlatformRelatedPromptsResponse:interface",
3849
- "docComment": "/**\n * Response for the `related prompts` endpoint.\n */\n",
3849
+ "docComment": "/**\n * Response for the `related prompts` endpoint.\n *\n * @public\n */\n",
3850
3850
  "excerptTokens": [
3851
3851
  {
3852
3852
  "kind": "Content",
@@ -4568,7 +4568,7 @@
4568
4568
  },
4569
4569
  {
4570
4570
  "kind": "Content",
4571
- "text": "[];\n tagging: {\n query: string;\n display: string;\n };\n }"
4571
+ "text": "[];\n tagging: {\n query: string;\n display: string;\n };\n stats: {\n price: {\n min: number;\n max: number;\n };\n };\n }"
4572
4572
  },
4573
4573
  {
4574
4574
  "kind": "Content",
@@ -5895,7 +5895,7 @@
5895
5895
  {
5896
5896
  "kind": "Variable",
5897
5897
  "canonicalReference": "@empathyco/x-adapter-platform!relatedPromptSchema:var",
5898
- "docComment": "/**\n * Default implementation for the RelatedPromptSchema.\n */\n",
5898
+ "docComment": "/**\n * Default implementation for the RelatedPromptSchema.\n *\n * @public\n */\n",
5899
5899
  "excerptTokens": [
5900
5900
  {
5901
5901
  "kind": "Content",
@@ -5995,7 +5995,7 @@
5995
5995
  {
5996
5996
  "kind": "Variable",
5997
5997
  "canonicalReference": "@empathyco/x-adapter-platform!relatedPromptsRequestMapper:var",
5998
- "docComment": "/**\n * Default implementation for the RelatedPromptsRequestMapper.\n */\n",
5998
+ "docComment": "/**\n * Default implementation for the RelatedPromptsRequestMapper.\n *\n * @public\n */\n",
5999
5999
  "excerptTokens": [
6000
6000
  {
6001
6001
  "kind": "Content",
@@ -6045,7 +6045,7 @@
6045
6045
  {
6046
6046
  "kind": "Variable",
6047
6047
  "canonicalReference": "@empathyco/x-adapter-platform!relatedPromptsRequestSchema:var",
6048
- "docComment": "/**\n * Default implementation for the RelatedPromptsRequestSchema.\n */\n",
6048
+ "docComment": "/**\n * Default implementation for the RelatedPromptsRequestSchema.\n *\n * @public\n */\n",
6049
6049
  "excerptTokens": [
6050
6050
  {
6051
6051
  "kind": "Content",
@@ -6095,7 +6095,7 @@
6095
6095
  {
6096
6096
  "kind": "Variable",
6097
6097
  "canonicalReference": "@empathyco/x-adapter-platform!relatedPromptsResponseMapper:var",
6098
- "docComment": "/**\n * Default implementation for the RelatedPromptsResponseMapper.\n */\n",
6098
+ "docComment": "/**\n * Default implementation for the RelatedPromptsResponseMapper.\n *\n * @public\n */\n",
6099
6099
  "excerptTokens": [
6100
6100
  {
6101
6101
  "kind": "Content",
@@ -6145,7 +6145,7 @@
6145
6145
  {
6146
6146
  "kind": "Variable",
6147
6147
  "canonicalReference": "@empathyco/x-adapter-platform!relatedPromptsResponseSchema:var",
6148
- "docComment": "/**\n * Default implementation for the RelatedPromptsResponseSchema.\n */\n",
6148
+ "docComment": "/**\n * Default implementation for the RelatedPromptsResponseSchema.\n *\n * @public\n */\n",
6149
6149
  "excerptTokens": [
6150
6150
  {
6151
6151
  "kind": "Content",
@@ -476,6 +476,12 @@ export interface PlatformSearchResponse {
476
476
  query: string;
477
477
  display: string;
478
478
  };
479
+ stats: {
480
+ price: {
481
+ min: number;
482
+ max: number;
483
+ };
484
+ };
479
485
  };
480
486
  // (undocumented)
481
487
  direct: {