@empathyco/x-adapter
Advanced tools
Comparing version 7.0.0-alpha.5 to 7.0.0-alpha.6
@@ -22,3 +22,3 @@ "use strict"; | ||
EmpathyResultMapper.prototype.map = function (rawResult, result, context) { | ||
var value = Number.parseFloat((rawResult.price)); | ||
var value = Number.parseFloat(rawResult.price); | ||
var originalValue = Number.parseFloat((rawResult.originalPrice || rawResult.price)); | ||
@@ -39,3 +39,3 @@ var sku = rawResult.eb_sku || ''; | ||
rating: { | ||
value: rawResult.rating !== undefined ? Number.parseFloat((rawResult.rating)) : null | ||
value: rawResult.rating !== undefined ? Number.parseFloat(rawResult.rating) : null | ||
}, | ||
@@ -42,0 +42,0 @@ identifier: { |
@@ -19,3 +19,3 @@ import { __decorate, __metadata, __param } from "tslib"; | ||
EmpathyResultMapper.prototype.map = function (rawResult, result, context) { | ||
var value = Number.parseFloat((rawResult.price)); | ||
var value = Number.parseFloat(rawResult.price); | ||
var originalValue = Number.parseFloat((rawResult.originalPrice || rawResult.price)); | ||
@@ -36,3 +36,3 @@ var sku = rawResult.eb_sku || ''; | ||
rating: { | ||
value: rawResult.rating !== undefined ? Number.parseFloat((rawResult.rating)) : null | ||
value: rawResult.rating !== undefined ? Number.parseFloat(rawResult.rating) : null | ||
}, | ||
@@ -39,0 +39,0 @@ identifier: { |
{ | ||
"name": "@empathyco/x-adapter", | ||
"version": "7.0.0-alpha.5", | ||
"version": "7.0.0-alpha.6", | ||
"description": "A search client for the Empathy search API ", | ||
@@ -47,3 +47,3 @@ "author": "Empathy Systems Corporation S.L.", | ||
"@empathyco/x-storage-service": "^1.4.0-alpha.0", | ||
"@empathyco/x-types": "^10.0.0-alpha.10", | ||
"@empathyco/x-types": "^10.0.0-alpha.11", | ||
"inversify": "~5.0.1", | ||
@@ -66,3 +66,3 @@ "reflect-metadata": "~0.1.13", | ||
}, | ||
"gitHead": "1576727b2de0db70fc04932518830683cc58ba74" | ||
"gitHead": "86cecedd0d76dc5db810bba830adea137154e33d" | ||
} |
@@ -375,4 +375,4 @@ ## API Report File for "@empathyco/x-adapter" | ||
export class EmpathyBannerMapper implements ResponseMapper<EmpathyBanner, Banner> { | ||
// Warning: (ae-forgotten-export) The symbol "Tagging" needs to be exported by the entry point index.d.ts | ||
constructor(taggingMappers: ResponseMapper<string, Tagging>[]); | ||
// Warning: (ae-forgotten-export) The symbol "TaggingInfo" needs to be exported by the entry point index.d.ts | ||
constructor(taggingMappers: ResponseMapper<string, TaggingInfo>[]); | ||
// (undocumented) | ||
@@ -590,3 +590,3 @@ map(rawBanner: EmpathyBanner, banner: Banner, context: ResponseMapperContext): Banner; | ||
export class EmpathyPromotedMapper implements ResponseMapper<EmpathyPromoted, Promoted> { | ||
constructor(taggingMappers: ResponseMapper<string, Tagging>[]); | ||
constructor(taggingMappers: ResponseMapper<string, TaggingInfo>[]); | ||
// (undocumented) | ||
@@ -620,3 +620,3 @@ map(rawPromoted: EmpathyPromoted, promoted: Promoted, context: ResponseMapperContext): Promoted; | ||
export class EmpathyRedirectionMapper implements ResponseMapper<EmpathyDirect, Redirection> { | ||
constructor(taggingMappers: ResponseMapper<string, Tagging>[]); | ||
constructor(taggingMappers: ResponseMapper<string, TaggingInfo>[]); | ||
// (undocumented) | ||
@@ -725,3 +725,3 @@ map(rawDirect: EmpathyDirect, redirection: Redirection, context: ResponseMapperContext): Redirection; | ||
export class EmpathyResultMapper implements ResponseMapper<EmpathyResult, Result> { | ||
constructor(config: EmpathyAdapterConfig, taggingMappers: ResponseMapper<string, Tagging>[]); | ||
constructor(config: EmpathyAdapterConfig, taggingMappers: ResponseMapper<string, TaggingInfo>[]); | ||
// (undocumented) | ||
@@ -733,2 +733,3 @@ map(rawResult: EmpathyResult, result: Result, context: ResponseMapperContext): Result; | ||
export class EmpathyResultQueryTaggingMapper implements ResponseMapper<EmpathyResult, Result> { | ||
// Warning: (ae-forgotten-export) The symbol "Tagging" needs to be exported by the entry point index.d.ts | ||
constructor(config: EmpathyAdapterConfig, queryTaggingMappers: ResponseMapper<string, Tagging>[]); | ||
@@ -877,5 +878,5 @@ // (undocumented) | ||
// @public | ||
export class EmpathyTaggingMapper implements ResponseMapper<string, Tagging> { | ||
export class EmpathyTaggingMapper implements ResponseMapper<string, TaggingInfo> { | ||
// (undocumented) | ||
map(taggingUrl: string, tagging: Tagging): Tagging; | ||
map(taggingUrl: string, tagging: TaggingInfo): TaggingInfo; | ||
} | ||
@@ -1356,3 +1357,3 @@ | ||
// (undocumented) | ||
queryTagging: Tagging; | ||
queryTagging: TaggingInfo; | ||
// (undocumented) | ||
@@ -1415,3 +1416,3 @@ redirections: Redirection[]; | ||
// (undocumented) | ||
showTagging: Tagging; | ||
showTagging: TaggingInfo; | ||
} | ||
@@ -1418,0 +1419,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { Banner, Tagging } from '@empathyco/x-types'; | ||
import { Banner, TaggingInfo } from '@empathyco/x-types'; | ||
import { ResponseMapper, ResponseMapperContext } from '../../empathy-adapter.types'; | ||
@@ -11,4 +11,4 @@ import { EmpathyBanner } from '../../models/entities/empathy-banner.model'; | ||
private readonly mapTagging; | ||
constructor(taggingMappers: ResponseMapper<string, Tagging>[]); | ||
constructor(taggingMappers: ResponseMapper<string, TaggingInfo>[]); | ||
map(rawBanner: EmpathyBanner, banner: Banner, context: ResponseMapperContext): Banner; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { Promoted, Tagging } from '@empathyco/x-types'; | ||
import { Promoted, TaggingInfo } from '@empathyco/x-types'; | ||
import { ResponseMapper, ResponseMapperContext } from '../../empathy-adapter.types'; | ||
@@ -11,4 +11,4 @@ import { EmpathyPromoted } from '../../models'; | ||
private readonly mapTagging; | ||
constructor(taggingMappers: ResponseMapper<string, Tagging>[]); | ||
constructor(taggingMappers: ResponseMapper<string, TaggingInfo>[]); | ||
map(rawPromoted: EmpathyPromoted, promoted: Promoted, context: ResponseMapperContext): Promoted; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { Redirection, Tagging } from '@empathyco/x-types'; | ||
import { Redirection, TaggingInfo } from '@empathyco/x-types'; | ||
import { ResponseMapper, ResponseMapperContext } from '../../empathy-adapter.types'; | ||
@@ -11,4 +11,4 @@ import { EmpathyDirect } from '../../models/entities/empathy-direct.model'; | ||
private readonly mapTagging; | ||
constructor(taggingMappers: ResponseMapper<string, Tagging>[]); | ||
constructor(taggingMappers: ResponseMapper<string, TaggingInfo>[]); | ||
map(rawDirect: EmpathyDirect, redirection: Redirection, context: ResponseMapperContext): Redirection; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { Tagging } from '@empathyco/x-types'; | ||
import { TaggingInfo } from '@empathyco/x-types'; | ||
import { ResponseMapper } from '../../empathy-adapter.types'; | ||
@@ -8,6 +8,6 @@ /** | ||
*/ | ||
export declare class EmpathyTaggingMapper implements ResponseMapper<string, Tagging> { | ||
export declare class EmpathyTaggingMapper implements ResponseMapper<string, TaggingInfo> { | ||
private readonly logger; | ||
map(taggingUrl: string, tagging: Tagging): Tagging; | ||
map(taggingUrl: string, tagging: TaggingInfo): TaggingInfo; | ||
private extractUrlParameters; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { Result, Tagging } from '@empathyco/x-types'; | ||
import { Result, TaggingInfo } from '@empathyco/x-types'; | ||
import { EmpathyAdapterConfig } from '../../../config/empathy-adapter-config.types'; | ||
@@ -14,5 +14,5 @@ import { ResponseMapper, ResponseMapperContext } from '../../../empathy-adapter.types'; | ||
private readonly trackingResultConfig; | ||
constructor(config: EmpathyAdapterConfig, taggingMappers: ResponseMapper<string, Tagging>[]); | ||
constructor(config: EmpathyAdapterConfig, taggingMappers: ResponseMapper<string, TaggingInfo>[]); | ||
map(rawResult: EmpathyResult, result: Result, context: ResponseMapperContext): Result; | ||
private createResultTagging; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { Banner, Facet, NextQuery, PartialResult, Promoted, Redirection, RelatedTag, Result, Suggestion, Tagging } from '@empathyco/x-types'; | ||
import { Banner, Facet, NextQuery, PartialResult, Promoted, Redirection, RelatedTag, Result, Suggestion, TaggingInfo } from '@empathyco/x-types'; | ||
/** | ||
@@ -32,3 +32,3 @@ * TODO https://searchbroker.atlassian.net/browse/EX-2163 | ||
export interface TrackableShowResponse { | ||
showTagging: Tagging; | ||
showTagging: TaggingInfo; | ||
} | ||
@@ -45,3 +45,3 @@ /** | ||
promoteds: Promoted[]; | ||
queryTagging: Tagging; | ||
queryTagging: TaggingInfo; | ||
redirections: Redirection[]; | ||
@@ -48,0 +48,0 @@ results: Result[]; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1553967