@adv-ui/ma-segment-wrapper
Advanced tools
Comparing version 1.9.0 to 1.10.0
@@ -1,4 +0,4 @@ | ||
export var googleAdsEventsJson = "{\n \"Motor\": \"Ad Inserted Motor\",\n \"Coches\": \"Ad Inserted Cars\",\n \"Libros y m\xE1s\": \"Ad Inserted Libros\",\n \"Inform\xE1tica\": \"Ad Inserted Inform\xE1tica\",\n \"Imagen y Sonido\": \"Ad Inserted ImagenSonido\",\n \"Telefon\xEDa\": \"Ad Inserted Telefon\xEDa\",\n \"Juegos\": \"Ad Inserted Juegos\",\n \"Casa y Jard\xEDn\": \"Ad Inserted Hogar\",\n \"Moda y complementos\": \"Ad Inserted Moda\",\n \"Deportes\": \"Ad Inserted Deportes\",\n \"Beb\xE9s\": \"Ad Inserted Bebes\"\n}"; | ||
export var googleAdsEventsJson = "{\n \"Motor\": \"Ad Inserted Motor\",\n \"Coches\": \"Ad Inserted Cars\",\n \"Todoterreno\": \"Ad Inserted Cars\",\n \"Libros y m\xE1s\": \"Ad Inserted Libros\",\n \"Inform\xE1tica\": \"Ad Inserted Inform\xE1tica\",\n \"Imagen y Sonido\": \"Ad Inserted ImagenSonido\",\n \"Telefon\xEDa\": \"Ad Inserted Telefon\xEDa\",\n \"Juegos\": \"Ad Inserted Juegos\",\n \"Casa y Jard\xEDn\": \"Ad Inserted Hogar\",\n \"Moda y complementos\": \"Ad Inserted Moda\",\n \"Deportes\": \"Ad Inserted Deportes\",\n \"Beb\xE9s\": \"Ad Inserted Bebes\"\n}"; | ||
export var isPrivate = function isPrivate(properties) { | ||
return properties.ad_publisher_type === 'private'; | ||
}; |
{ | ||
"name": "@adv-ui/ma-segment-wrapper", | ||
"version": "1.9.0", | ||
"version": "1.10.0", | ||
"description": "Milanuncios Segment Wrapper", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -653,2 +653,54 @@ export const adRepliedEmailEvents = [ | ||
export const adInsertedClassicCars = { | ||
obj: { | ||
event: 'Ad Inserted', | ||
properties: { | ||
platform: 'web', | ||
site: 'milanuncios', | ||
event_name_adobe: 'Ad Inserted', | ||
stc: null, | ||
category_level1: 'Motor', | ||
category_level2: 'Coches clásicos', | ||
ad_publisher_type: 'private', | ||
hit_information: | ||
'brandshow:T_brandfrom:T_modelshow:T_modelfrom:T_colorshow:T_colorfrom:T_yearshow:T_yearfrom:T', | ||
ml_id: | ||
'sdrn:milanuncios:recognition:5ac3d146-4844-4251-958f-305b27a0764b', | ||
ml_type: 'RecognitionMetadata', | ||
modelVersion: '1.0.0', | ||
service: 'v1-car-classifier', | ||
user_choices: [ | ||
{ | ||
attribute: 'brand', | ||
suggestions_shown: true, | ||
uid: '47', | ||
label: 'VOLKSWAGEN', | ||
from_suggestions: true | ||
}, | ||
{ | ||
attribute: 'model', | ||
suggestions_shown: true, | ||
uid: '83', | ||
label: 'Passat', | ||
from_suggestions: true | ||
}, | ||
{ | ||
attribute: 'color', | ||
suggestions_shown: true, | ||
uid: 'BLACK', | ||
label: 'Negro', | ||
from_suggestions: true | ||
}, | ||
{ | ||
attribute: 'year', | ||
suggestions_shown: true, | ||
uid: '2016', | ||
label: '2016', | ||
from_suggestions: true | ||
} | ||
] | ||
} | ||
} | ||
} | ||
export const adInsertedComputer = { | ||
@@ -655,0 +707,0 @@ obj: { |
@@ -15,7 +15,9 @@ import {expect} from 'chai' | ||
adInsertedGarden, | ||
adInsertedFashionAndAccessories | ||
adInsertedFashionAndAccessories, | ||
adInsertedClassicCars | ||
} from '../test/fixtures/events' | ||
const payloadsByExpectedEvent = [ | ||
{expectedEvent: 'Ad Inserted Motor', payload: adInsertedOffroad}, | ||
{expectedEvent: 'Ad Inserted Motor', payload: adInsertedClassicCars}, | ||
{expectedEvent: 'Ad Inserted Cars', payload: adInsertedOffroad}, | ||
{expectedEvent: 'Ad Inserted Cars', payload: adInsertedCar}, | ||
@@ -22,0 +24,0 @@ {expectedEvent: 'Ad Inserted Libros', payload: adInsertedBook}, |
Sorry, the diff of this file is too big to display
130768
1362