<gh_stars>0
#
# Copyright (c) 2022 Airbyte, Inc., all rights reserved.
#


class WebflowToAirbyteMapping:

    """
    The following disctionary is used for dynamically pulling the schema from Webflow, and mapping it to an Airbyte-compatible json-schema
        Webflow: https://developers.webflow.com/#get-collection-with-full-schema
        Airbyte/json-schema:  https://docs.airbyte.com/understanding-airbyte/supported-data-types/
    """

    webflow_to_airbyte_mapping = {
        "Bool": {"type": ["null", "boolean"]},
        "Date": {
            "type": ["null", "string"],
            "format": "date-time",
        },
        "Email": {
            "type": ["null", "string"],
        },
        "ImageRef": {"type": ["null", "object"], "additionalProperties": True},
        "ItemRef": {"type": ["null", "string"]},
        "ItemRefSet": {"type": ["null", "array"]},
        "Link": {"type": ["null", "string"]},
        "Number": {"type": ["null", "number"]},
        "Option": {"type": ["null", "string"]},
        "PlainText": {"type": ["null", "string"]},
        "RichText": {"type": ["null", "string"]},
        "User": {"type": ["null", "string"]},
        "Video": {"type": ["null", "string"]},
    }

#
# Copyright (c) 2022 Airbyte, Inc., all rights reserved.
#


class WebflowToAirbyteMapping:

    """
    The following disctionary is used for dynamically pulling the schema from Webflow, and mapping it to an Airbyte-compatible json-schema
        Webflow: https://developers.webflow.com/#get-collection-with-full-schema
        Airbyte/json-schema:  https://docs.airbyte.com/understanding-airbyte/supported-data-types/
    """

    webflow_to_airbyte_mapping = {
        "Bool": {"type": ["null", "boolean"]},
        "Date": {
            "type": ["null", "string"],
            "format": "date-time",
        },
        "Email": {
            "type": ["null", "string"],
        },
        "ImageRef": {"type": ["null", "object"], "additionalProperties": True},
        "ItemRef": {"type": ["null", "string"]},
        "ItemRefSet": {"type": ["null", "array"]},
        "Link": {"type": ["null", "string"]},
        "Number": {"type": ["null", "number"]},
        "Option": {"type": ["null", "string"]},
        "PlainText": {"type": ["null", "string"]},
        "RichText": {"type": ["null", "string"]},
        "User": {"type": ["null", "string"]},
        "Video": {"type": ["null", "string"]},
    }
# # Copyright (c) 2022 Airbyte, Inc., all rights reserved. # The following disctionary is used for dynamically pulling the schema from Webflow, and mapping it to an Airbyte-compatible json-schema         Webflow: https://developers.webflow.com/#get-collection-with-full-schema         Airbyte/json-schema:  https://docs.airbyte.com/understanding-airbyte/supported-data-types/