ees_microsoft_outlook/adapter.py (26 lines of code) (raw):

# # Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one # or more contributor license agreements. Licensed under the Elastic License 2.0; # you may not use this file except in compliance with the Elastic License 2.0. # """Module containing default schema for data uploaded to Enterprise Search. This module contains definition of default schema for the data that will be uploaded to Elastic Enterprise Search per the source object. Keys for each object represent the fields that will be uploaded to Enterprise Search while key values represent the source fields that will be used to populate the data. """ SCHEMA = { "mails": { "id": "Id", "title": "DisplayName", "body": "Description", "created_at": "Created", }, "tasks": { "id": "Id", "title": "DisplayName", "body": "Description", "created_at": "Created", }, "calendar": { "id": "Id", "title": "DisplayName", "body": "Description", "created_at": "Created", }, "contacts": { "id": "Id", "title": "DisplayName", "body": "Description", "created_at": "Created", }, }