2023-08-18 11:25:02 +02:00
|
|
|
import MappingConfigType, {FeaturePropertyMappingConfigType} from "../../mappings/mapping-config.type";
|
2023-08-09 23:10:45 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* configurations de mapping pour les cas de tests
|
|
|
|
*/
|
|
|
|
export const mappingRemoveAll: MappingConfigType = {
|
2023-08-18 11:25:02 +02:00
|
|
|
config_name: 'testing config mappingRemoveAll',
|
2023-08-09 23:10:45 +02:00
|
|
|
config_author: 'tykayn <contact@cipherbliss.com>',
|
2023-08-18 11:25:02 +02:00
|
|
|
default_properties_of_point: {},
|
|
|
|
tags: {},
|
|
|
|
add_not_mapped_tags_too: false,
|
|
|
|
source: {},
|
|
|
|
filters: {},
|
|
|
|
}
|
|
|
|
export const mappingSame: MappingConfigType = {
|
|
|
|
config_name: 'testing config mappingSame',
|
|
|
|
config_author: 'tykayn <contact@cipherbliss.com>',
|
|
|
|
default_properties_of_point: {},
|
2023-08-09 23:10:45 +02:00
|
|
|
tags: {
|
2023-08-18 11:25:02 +02:00
|
|
|
equal : 'equal'
|
|
|
|
},
|
|
|
|
add_not_mapped_tags_too: false,
|
|
|
|
source: {},
|
|
|
|
filters: {},
|
2023-08-09 23:10:45 +02:00
|
|
|
}
|
2023-08-18 11:25:02 +02:00
|
|
|
export const mappingName: MappingConfigType = {
|
|
|
|
config_name: 'testing config mappingName',
|
2023-08-09 23:10:45 +02:00
|
|
|
config_author: 'tykayn <contact@cipherbliss.com>',
|
2023-08-18 11:25:02 +02:00
|
|
|
default_properties_of_point: {},
|
|
|
|
tags: {
|
|
|
|
nom_amenageur : 'name'
|
2023-08-09 23:10:45 +02:00
|
|
|
},
|
2023-08-18 11:25:02 +02:00
|
|
|
add_not_mapped_tags_too: true,
|
|
|
|
source: {},
|
|
|
|
filters: {},
|
|
|
|
}
|
|
|
|
export const mappingPhone: MappingConfigType = {
|
|
|
|
|
|
|
|
config_name: 'testing config mappingPhone',
|
|
|
|
config_author: 'tykayn <contact@cipherbliss.com>',
|
|
|
|
default_properties_of_point: {},
|
2023-08-09 23:10:45 +02:00
|
|
|
tags: {
|
2023-08-18 11:25:02 +02:00
|
|
|
telephone_operateur: {
|
|
|
|
key_converted: 'phone',
|
|
|
|
convert_to_phone: true, // convertit en yes ou no
|
|
|
|
},
|
|
|
|
},
|
|
|
|
add_not_mapped_tags_too: false,
|
|
|
|
source: {},
|
|
|
|
filters: {},
|
|
|
|
}
|
2023-08-18 11:58:52 +02:00
|
|
|
export const mappingBoolean: MappingConfigType = {
|
|
|
|
|
|
|
|
config_name: 'testing config mappingBoolean',
|
|
|
|
config_author: 'tykayn <contact@cipherbliss.com>',
|
|
|
|
default_properties_of_point: {},
|
|
|
|
tags: {
|
|
|
|
consolidated_is_lon_lat_correct: {
|
|
|
|
convert_to_boolean_value: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
add_not_mapped_tags_too: false,
|
|
|
|
source: {},
|
|
|
|
filters: {},
|
|
|
|
}
|
2023-08-18 11:25:02 +02:00
|
|
|
// export const mappingIgnore: MappingConfigType = {
|
|
|
|
// config_name: 'testing config',
|
|
|
|
// config_author: 'tykayn <contact@cipherbliss.com>',
|
|
|
|
// default_properties_of_point: {
|
|
|
|
// 'amenity': 'charging_station'
|
|
|
|
// },
|
|
|
|
// tags: {
|
|
|
|
// nom_amenageur: {
|
|
|
|
// ignore_this_data: true,
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|