Sha256: 3fc5f8376138e21b258d49769aae971ef3c2746373ac67d3eab98bf0a94f61fd

Contents?: true

Size: 1.78 KB

Versions: 13

Compression:

Stored size: 1.78 KB

Contents

# frozen_string_literal: true

module Multiwoven
  module Integrations::Core
    module Constants
      # CONFIG
      META_DATA_PATH = "config/meta.json"
      CONNECTOR_SPEC_PATH = "config/spec.json"
      CATALOG_SPEC_PATH   = "config/catalog.json"
      SNOWFLAKE_MAC_DRIVER_PATH = "/opt/snowflake/snowflakeodbc/lib/universal/libSnowflake.dylib"
      DATABRICKS_MAC_DRIVER_PATH = "/Library/simba/spark/lib/libsparkodbc_sb64-universal.dylib"

      SNOWFLAKE_DRIVER_PATH = ENV["SNOWFLAKE_DRIVER_PATH"] || SNOWFLAKE_MAC_DRIVER_PATH
      DATABRICKS_DRIVER_PATH = ENV["DATABRICKS_DRIVER_PATH"] || DATABRICKS_MAC_DRIVER_PATH

      JSON_SCHEMA_URL = "https://json-schema.org/draft-07/schema#"

      # CONNECTORS
      INSTALL_HTTPFS_QUERY = ENV["INSTALL_HTTPFS_QUERY"] || "INSTALL HTTPFS; LOAD HTTPFS;"

      KLAVIYO_AUTH_ENDPOINT = "https://a.klaviyo.com/api/lists/"
      KLAVIYO_AUTH_PAYLOAD = {
        data: {
          type: "list",
          attributes: {
            name: "THIS IS REQUIRED"
          }
        }
      }.freeze

      ZENDESK_URL_SUFFIX = "zendesk.com/api/v2/"

      FACEBOOK_AUDIENCE_GET_ALL_ACCOUNTS = "https://graph.facebook.com/v18.0/me/adaccounts?fields=id,name"

      AIRTABLE_URL_BASE = "https://api.airtable.com/v0/"
      AIRTABLE_BASES_ENDPOINT = "https://api.airtable.com/v0/meta/bases"
      AIRTABLE_GET_BASE_SCHEMA_ENDPOINT = "https://api.airtable.com/v0/meta/bases/{baseId}/tables"

      AWS_ACCESS_KEY_ID = ENV["AWS_ACCESS_KEY_ID"]
      AWS_SECRET_ACCESS_KEY = ENV["AWS_SECRET_ACCESS_KEY"]

      # HTTP
      HTTP_GET = "GET"
      HTTP_POST = "POST"
      HTTP_PUT = "PUT"
      HTTP_DELETE = "DELETE"

      # google sheets
      GOOGLE_SHEETS_SCOPE = "https://www.googleapis.com/auth/drive"
      GOOGLE_SPREADSHEET_ID_REGEX = %r{/d/([-\w]{20,})/}.freeze
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
multiwoven-integrations-0.7.9 lib/multiwoven/integrations/core/constants.rb
multiwoven-integrations-0.7.8 lib/multiwoven/integrations/core/constants.rb
multiwoven-integrations-0.7.7 lib/multiwoven/integrations/core/constants.rb
multiwoven-integrations-0.7.6 lib/multiwoven/integrations/core/constants.rb
multiwoven-integrations-0.7.5 lib/multiwoven/integrations/core/constants.rb
multiwoven-integrations-0.7.4 lib/multiwoven/integrations/core/constants.rb
multiwoven-integrations-0.7.3 lib/multiwoven/integrations/core/constants.rb
multiwoven-integrations-0.7.2 lib/multiwoven/integrations/core/constants.rb
multiwoven-integrations-0.7.1 lib/multiwoven/integrations/core/constants.rb
multiwoven-integrations-0.7.0 lib/multiwoven/integrations/core/constants.rb
multiwoven-integrations-0.6.0 lib/multiwoven/integrations/core/constants.rb
multiwoven-integrations-0.5.2 lib/multiwoven/integrations/core/constants.rb
multiwoven-integrations-0.5.1 lib/multiwoven/integrations/core/constants.rb