From 8813e87970afee1696813b8b35c5da43a1917c92 Mon Sep 17 00:00:00 2001
From: fivetran-catfritz <111930712+fivetran-catfritz@users.noreply.github.com>
Date: Wed, 17 May 2023 16:38:07 -0500
Subject: [PATCH 1/6] MagicBot/databricks-compatibility updates
---
.buildkite/hooks/pre-command | 3 ++-
.buildkite/pipeline.yml | 15 +++++++++++++++
CHANGELOG.md | 7 +++++--
dbt_project.yml | 2 +-
integration_tests/ci/sample.profiles.yml | 2 +-
integration_tests/dbt_project.yml | 6 +++++-
6 files changed, 29 insertions(+), 6 deletions(-)
diff --git a/.buildkite/hooks/pre-command b/.buildkite/hooks/pre-command
index 04c85c0..81b7b00 100644
--- a/.buildkite/hooks/pre-command
+++ b/.buildkite/hooks/pre-command
@@ -21,4 +21,5 @@ export CI_SNOWFLAKE_DBT_USER=$(gcloud secrets versions access latest --secret="C
export CI_SNOWFLAKE_DBT_WAREHOUSE=$(gcloud secrets versions access latest --secret="CI_SNOWFLAKE_DBT_WAREHOUSE" --project="dbt-package-testing-363917")
export CI_DATABRICKS_DBT_HOST=$(gcloud secrets versions access latest --secret="CI_DATABRICKS_DBT_HOST" --project="dbt-package-testing-363917")
export CI_DATABRICKS_DBT_HTTP_PATH=$(gcloud secrets versions access latest --secret="CI_DATABRICKS_DBT_HTTP_PATH" --project="dbt-package-testing-363917")
-export CI_DATABRICKS_DBT_TOKEN=$(gcloud secrets versions access latest --secret="CI_DATABRICKS_DBT_TOKEN" --project="dbt-package-testing-363917")
\ No newline at end of file
+export CI_DATABRICKS_DBT_TOKEN=$(gcloud secrets versions access latest --secret="CI_DATABRICKS_DBT_TOKEN" --project="dbt-package-testing-363917")
+export CI_DATABRICKS_DBT_CATALOG=$(gcloud secrets versions access latest --secret="CI_DATABRICKS_DBT_CATALOG" --project="dbt-package-testing-363917")
\ No newline at end of file
diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml
index 526c516..552f698 100644
--- a/.buildkite/pipeline.yml
+++ b/.buildkite/pipeline.yml
@@ -57,3 +57,18 @@ steps:
- "CI_REDSHIFT_DBT_USER"
commands: |
bash .buildkite/scripts/run_models.sh redshift
+
+ - label: ":databricks: Run Tests - Databricks"
+ key: "run_dbt_databricks"
+ plugins:
+ - docker#v3.13.0:
+ image: "python:3.8"
+ shell: [ "/bin/bash", "-e", "-c" ]
+ environment:
+ - "BASH_ENV=/tmp/.bashrc"
+ - "CI_DATABRICKS_DBT_HOST"
+ - "CI_DATABRICKS_DBT_HTTP_PATH"
+ - "CI_DATABRICKS_DBT_TOKEN"
+ - "CI_DATABRICKS_DBT_CATALOG"
+ commands: |
+ bash .buildkite/scripts/run_models.sh databricks
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 065cd7a..3a48b39 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,8 +1,11 @@
-# dbt_xero_source v0.UPDATE.UPDATE
+# dbt_xero_source v0.6.0
+## 🎉 Feature Update 🎉
+- Databricks compatibility! ([#20](https://github.com/fivetran/dbt_xero_source/pull/20))
-## Under the Hood:
+## 🚘 Under the Hood 🚘
- Incorporated the new `fivetran_utils.drop_schemas_automation` macro into the end of each Buildkite integration test job. ([#19](https://github.com/fivetran/dbt_xero_source/pull/19))
- Updated the pull request [templates](/.github). ([#19](https://github.com/fivetran/dbt_xero_source/pull/19))
+ ([#19](https://github.com/fivetran/dbt_xero_source/pull/19))
# dbt_xero_source v0.5.0
## 🚨 Breaking Changes 🚨:
diff --git a/dbt_project.yml b/dbt_project.yml
index 01cf3dd..afddd50 100644
--- a/dbt_project.yml
+++ b/dbt_project.yml
@@ -1,5 +1,5 @@
name: 'xero_source'
-version: '0.5.0'
+version: 0.6.0
config-version: 2
require-dbt-version: [">=1.3.0", "<2.0.0"]
vars:
diff --git a/integration_tests/ci/sample.profiles.yml b/integration_tests/ci/sample.profiles.yml
index 2022a56..0addf70 100644
--- a/integration_tests/ci/sample.profiles.yml
+++ b/integration_tests/ci/sample.profiles.yml
@@ -45,7 +45,7 @@ integration_tests:
schema: xero_source_integration_tests
threads: 8
databricks:
- catalog: null
+ catalog: "{{ env_var('CI_DATABRICKS_DBT_CATALOG') }}"
host: "{{ env_var('CI_DATABRICKS_DBT_HOST') }}"
http_path: "{{ env_var('CI_DATABRICKS_DBT_HTTP_PATH') }}"
schema: xero_source_integration_tests
diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml
index 228ebca..0d967b8 100644
--- a/integration_tests/dbt_project.yml
+++ b/integration_tests/dbt_project.yml
@@ -1,5 +1,5 @@
name: 'xero_source_integration_tests'
-version: '0.5.0'
+version: 0.6.0
profile: 'integration_tests'
config-version: 2
@@ -15,3 +15,7 @@ vars:
xero_bank_transaction_identifier: "xero_bank_transaction_data"
xero_credit_note_identifier: "xero_credit_note_data"
xero_schema: xero_source_integration_tests
+
+dispatch:
+ - macro_namespace: dbt_utils
+ search_order: ['spark_utils', 'dbt_utils']
\ No newline at end of file
From 73f441e28ad211d6388eb15424ea2be60e2744af Mon Sep 17 00:00:00 2001
From: fivetran-catfritz <111930712+fivetran-catfritz@users.noreply.github.com>
Date: Wed, 17 May 2023 18:47:26 -0500
Subject: [PATCH 2/6] MagicBot/databricks-compatibility updates
---
.buildkite/hooks/pre-command | 3 ++-
.buildkite/pipeline.yml | 15 +++++++++++++++
CHANGELOG.md | 7 +++++--
dbt_project.yml | 2 +-
integration_tests/ci/sample.profiles.yml | 2 +-
integration_tests/dbt_project.yml | 6 +++++-
models/src_xero.yml | 2 +-
7 files changed, 30 insertions(+), 7 deletions(-)
diff --git a/.buildkite/hooks/pre-command b/.buildkite/hooks/pre-command
index 04c85c0..81b7b00 100644
--- a/.buildkite/hooks/pre-command
+++ b/.buildkite/hooks/pre-command
@@ -21,4 +21,5 @@ export CI_SNOWFLAKE_DBT_USER=$(gcloud secrets versions access latest --secret="C
export CI_SNOWFLAKE_DBT_WAREHOUSE=$(gcloud secrets versions access latest --secret="CI_SNOWFLAKE_DBT_WAREHOUSE" --project="dbt-package-testing-363917")
export CI_DATABRICKS_DBT_HOST=$(gcloud secrets versions access latest --secret="CI_DATABRICKS_DBT_HOST" --project="dbt-package-testing-363917")
export CI_DATABRICKS_DBT_HTTP_PATH=$(gcloud secrets versions access latest --secret="CI_DATABRICKS_DBT_HTTP_PATH" --project="dbt-package-testing-363917")
-export CI_DATABRICKS_DBT_TOKEN=$(gcloud secrets versions access latest --secret="CI_DATABRICKS_DBT_TOKEN" --project="dbt-package-testing-363917")
\ No newline at end of file
+export CI_DATABRICKS_DBT_TOKEN=$(gcloud secrets versions access latest --secret="CI_DATABRICKS_DBT_TOKEN" --project="dbt-package-testing-363917")
+export CI_DATABRICKS_DBT_CATALOG=$(gcloud secrets versions access latest --secret="CI_DATABRICKS_DBT_CATALOG" --project="dbt-package-testing-363917")
\ No newline at end of file
diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml
index 526c516..552f698 100644
--- a/.buildkite/pipeline.yml
+++ b/.buildkite/pipeline.yml
@@ -57,3 +57,18 @@ steps:
- "CI_REDSHIFT_DBT_USER"
commands: |
bash .buildkite/scripts/run_models.sh redshift
+
+ - label: ":databricks: Run Tests - Databricks"
+ key: "run_dbt_databricks"
+ plugins:
+ - docker#v3.13.0:
+ image: "python:3.8"
+ shell: [ "/bin/bash", "-e", "-c" ]
+ environment:
+ - "BASH_ENV=/tmp/.bashrc"
+ - "CI_DATABRICKS_DBT_HOST"
+ - "CI_DATABRICKS_DBT_HTTP_PATH"
+ - "CI_DATABRICKS_DBT_TOKEN"
+ - "CI_DATABRICKS_DBT_CATALOG"
+ commands: |
+ bash .buildkite/scripts/run_models.sh databricks
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 065cd7a..3a48b39 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,8 +1,11 @@
-# dbt_xero_source v0.UPDATE.UPDATE
+# dbt_xero_source v0.6.0
+## 🎉 Feature Update 🎉
+- Databricks compatibility! ([#20](https://github.com/fivetran/dbt_xero_source/pull/20))
-## Under the Hood:
+## 🚘 Under the Hood 🚘
- Incorporated the new `fivetran_utils.drop_schemas_automation` macro into the end of each Buildkite integration test job. ([#19](https://github.com/fivetran/dbt_xero_source/pull/19))
- Updated the pull request [templates](/.github). ([#19](https://github.com/fivetran/dbt_xero_source/pull/19))
+ ([#19](https://github.com/fivetran/dbt_xero_source/pull/19))
# dbt_xero_source v0.5.0
## 🚨 Breaking Changes 🚨:
diff --git a/dbt_project.yml b/dbt_project.yml
index 01cf3dd..afddd50 100644
--- a/dbt_project.yml
+++ b/dbt_project.yml
@@ -1,5 +1,5 @@
name: 'xero_source'
-version: '0.5.0'
+version: 0.6.0
config-version: 2
require-dbt-version: [">=1.3.0", "<2.0.0"]
vars:
diff --git a/integration_tests/ci/sample.profiles.yml b/integration_tests/ci/sample.profiles.yml
index 2022a56..0addf70 100644
--- a/integration_tests/ci/sample.profiles.yml
+++ b/integration_tests/ci/sample.profiles.yml
@@ -45,7 +45,7 @@ integration_tests:
schema: xero_source_integration_tests
threads: 8
databricks:
- catalog: null
+ catalog: "{{ env_var('CI_DATABRICKS_DBT_CATALOG') }}"
host: "{{ env_var('CI_DATABRICKS_DBT_HOST') }}"
http_path: "{{ env_var('CI_DATABRICKS_DBT_HTTP_PATH') }}"
schema: xero_source_integration_tests
diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml
index 228ebca..0d967b8 100644
--- a/integration_tests/dbt_project.yml
+++ b/integration_tests/dbt_project.yml
@@ -1,5 +1,5 @@
name: 'xero_source_integration_tests'
-version: '0.5.0'
+version: 0.6.0
profile: 'integration_tests'
config-version: 2
@@ -15,3 +15,7 @@ vars:
xero_bank_transaction_identifier: "xero_bank_transaction_data"
xero_credit_note_identifier: "xero_credit_note_data"
xero_schema: xero_source_integration_tests
+
+dispatch:
+ - macro_namespace: dbt_utils
+ search_order: ['spark_utils', 'dbt_utils']
\ No newline at end of file
diff --git a/models/src_xero.yml b/models/src_xero.yml
index 45f9454..5cef90e 100644
--- a/models/src_xero.yml
+++ b/models/src_xero.yml
@@ -3,7 +3,7 @@ version: 2
sources:
- name: xero
schema: "{{ var('xero_schema', 'xero') }}"
- database: "{{ var('xero_database', target.database) }}"
+ database: "{% if target.type != 'spark' %}{{ var('xero_database', target.database)}}{% endif %}"
loader: Fivetran
loaded_at_field: _fivetran_synced
tables:
From 4055a90be60155ab60f6fbb17c599fb22caa0b19 Mon Sep 17 00:00:00 2001
From: fivetran-catfritz <111930712+fivetran-catfritz@users.noreply.github.com>
Date: Fri, 16 Jun 2023 17:52:42 -0500
Subject: [PATCH 3/6] update docs
---
README.md | 4 ++--
docs/catalog.json | 2 +-
docs/index.html | 8 ++++----
docs/manifest.json | 2 +-
docs/run_results.json | 2 +-
integration_tests/ci/sample.profiles.yml | 2 +-
6 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/README.md b/README.md
index 7fde17a..78a2c66 100644
--- a/README.md
+++ b/README.md
@@ -23,7 +23,7 @@
## Step 1: Prerequisites
To use this dbt package, you must have the following:
- At least one Fivetran Xero connector syncing data into your destination.
-- A **BigQuery**, **Snowflake**, **Redshift**, or **PostgreSQL** destination.
+- A **BigQuery**, **Snowflake**, **Redshift**, **PostgreSQL**, or **Databricks** destination.
## Step 2: Install the package (skip if also using the `xero` transformation package)
Include the following xero_source package version in your `packages.yml` file.
@@ -31,7 +31,7 @@ Include the following xero_source package version in your `packages.yml` file.
```yaml
packages:
- package: fivetran/xero_source
- version: [">=0.5.0", "<0.6.0"] # we recommend using ranges to capture non-breaking changes automatically
+ version: [">=0.6.0", "<0.7.0"] # we recommend using ranges to capture non-breaking changes automatically
```
## Step 3: Define database and schema variables
By default, this package runs using your destination and the `xero` schema. If this is not where your Xero data is (for example, if your Xero schema is named `xero_fivetran`), add the following configuration to your root `dbt_project.yml` file:
diff --git a/docs/catalog.json b/docs/catalog.json
index 27481cd..80119d1 100644
--- a/docs/catalog.json
+++ b/docs/catalog.json
@@ -1 +1 @@
-{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.3.0", "generated_at": "2022-12-15T20:11:19.648534Z", "invocation_id": "99687433-f8c6-4324-8ca5-d93b818867c2", "env": {}}, "nodes": {"seed.xero_source_integration_tests.xero_account_data": {"metadata": {"type": "BASE TABLE", "schema": "xero_source_integration_tests", "name": "xero_account_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "code": {"type": "integer", "index": 3, "name": "code", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "class": {"type": "text", "index": 5, "name": "class", "comment": null}, "_fivetran_synced": {"type": "text", "index": 6, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.xero_source_integration_tests.xero_account_data"}, "seed.xero_source_integration_tests.xero_bank_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "xero_source_integration_tests", "name": "xero_bank_transaction_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bank_transaction_id": {"type": "text", "index": 1, "name": "bank_transaction_id", "comment": null}, "contact_id": {"type": "text", "index": 2, "name": "contact_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.xero_source_integration_tests.xero_bank_transaction_data"}, "seed.xero_source_integration_tests.xero_contact_data": {"metadata": {"type": "BASE TABLE", "schema": "xero_source_integration_tests", "name": "xero_contact_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"contact_id": {"type": "text", "index": 1, "name": "contact_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.xero_source_integration_tests.xero_contact_data"}, "seed.xero_source_integration_tests.xero_credit_note_data": {"metadata": {"type": "BASE TABLE", "schema": "xero_source_integration_tests", "name": "xero_credit_note_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_note_id": {"type": "text", "index": 1, "name": "credit_note_id", "comment": null}, "contact_id": {"type": "text", "index": 2, "name": "contact_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.xero_source_integration_tests.xero_credit_note_data"}, "seed.xero_source_integration_tests.xero_invoice_data": {"metadata": {"type": "BASE TABLE", "schema": "xero_source_integration_tests", "name": "xero_invoice_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "contact_id": {"type": "text", "index": 2, "name": "contact_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "updated_date_utc": {"type": "text", "index": 4, "name": "updated_date_utc", "comment": null}, "planned_payment_date": {"type": "integer", "index": 5, "name": "planned_payment_date", "comment": null}, "due_date": {"type": "date", "index": 6, "name": "due_date", "comment": null}, "expected_payment_date": {"type": "integer", "index": 7, "name": "expected_payment_date", "comment": null}, "fully_paid_on_date": {"type": "date", "index": 8, "name": "fully_paid_on_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 9, "name": "_fivetran_synced", "comment": null}, "amount_credited": {"type": "integer", "index": 10, "name": "amount_credited", "comment": null}, "amount_due": {"type": "double precision", "index": 11, "name": "amount_due", "comment": null}, "amount_paid": {"type": "double precision", "index": 12, "name": "amount_paid", "comment": null}, "sub_total": {"type": "double precision", "index": 13, "name": "sub_total", "comment": null}, "total": {"type": "double precision", "index": 14, "name": "total", "comment": null}, "total_tax": {"type": "double precision", "index": 15, "name": "total_tax", "comment": null}, "currency_code": {"type": "text", "index": 16, "name": "currency_code", "comment": null}, "currency_rate": {"type": "double precision", "index": 17, "name": "currency_rate", "comment": null}, "has_attachments": {"type": "boolean", "index": 18, "name": "has_attachments", "comment": null}, "has_errors": {"type": "boolean", "index": 19, "name": "has_errors", "comment": null}, "invoice_number": {"type": "text", "index": 20, "name": "invoice_number", "comment": null}, "is_discounted": {"type": "boolean", "index": 21, "name": "is_discounted", "comment": null}, "line_amount_types": {"type": "text", "index": 22, "name": "line_amount_types", "comment": null}, "reference": {"type": "text", "index": 23, "name": "reference", "comment": null}, "sent_to_contact": {"type": "boolean", "index": 24, "name": "sent_to_contact", "comment": null}, "status": {"type": "text", "index": 25, "name": "status", "comment": null}, "type": {"type": "text", "index": 26, "name": "type", "comment": null}, "url": {"type": "integer", "index": 27, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.xero_source_integration_tests.xero_invoice_data"}, "seed.xero_source_integration_tests.xero_invoice_line_item_data": {"metadata": {"type": "BASE TABLE", "schema": "xero_source_integration_tests", "name": "xero_invoice_line_item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_code": {"type": "integer", "index": 2, "name": "account_code", "comment": null}, "description": {"type": "text", "index": 3, "name": "description", "comment": null}, "discount_entered_as_percent": {"type": "integer", "index": 4, "name": "discount_entered_as_percent", "comment": null}, "discount_rate": {"type": "integer", "index": 5, "name": "discount_rate", "comment": null}, "invoice_id": {"type": "text", "index": 6, "name": "invoice_id", "comment": null}, "item_code": {"type": "integer", "index": 7, "name": "item_code", "comment": null}, "line_amount": {"type": "double precision", "index": 8, "name": "line_amount", "comment": null}, "line_item_id": {"type": "text", "index": 9, "name": "line_item_id", "comment": null}, "quantity": {"type": "double precision", "index": 10, "name": "quantity", "comment": null}, "tax_amount": {"type": "double precision", "index": 11, "name": "tax_amount", "comment": null}, "tax_type": {"type": "text", "index": 12, "name": "tax_type", "comment": null}, "unit_amount": {"type": "double precision", "index": 13, "name": "unit_amount", "comment": null}, "validation_errors": {"type": "integer", "index": 14, "name": "validation_errors", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.xero_source_integration_tests.xero_invoice_line_item_data"}, "seed.xero_source_integration_tests.xero_journal_data": {"metadata": {"type": "BASE TABLE", "schema": "xero_source_integration_tests", "name": "xero_journal_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"journal_id": {"type": "text", "index": 1, "name": "journal_id", "comment": null}, "created_date_utc": {"type": "text", "index": 2, "name": "created_date_utc", "comment": null}, "journal_date": {"type": "date", "index": 3, "name": "journal_date", "comment": null}, "journal_number": {"type": "integer", "index": 4, "name": "journal_number", "comment": null}, "reference": {"type": "text", "index": 5, "name": "reference", "comment": null}, "source_id": {"type": "text", "index": 6, "name": "source_id", "comment": null}, "source_type": {"type": "text", "index": 7, "name": "source_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.xero_source_integration_tests.xero_journal_data"}, "seed.xero_source_integration_tests.xero_journal_line_data": {"metadata": {"type": "BASE TABLE", "schema": "xero_source_integration_tests", "name": "xero_journal_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"journal_line_id": {"type": "text", "index": 1, "name": "journal_line_id", "comment": null}, "account_code": {"type": "integer", "index": 2, "name": "account_code", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "account_type": {"type": "text", "index": 5, "name": "account_type", "comment": null}, "description": {"type": "integer", "index": 6, "name": "description", "comment": null}, "gross_amount": {"type": "double precision", "index": 7, "name": "gross_amount", "comment": null}, "journal_id": {"type": "text", "index": 8, "name": "journal_id", "comment": null}, "net_amount": {"type": "double precision", "index": 9, "name": "net_amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 10, "name": "tax_amount", "comment": null}, "tax_name": {"type": "text", "index": 11, "name": "tax_name", "comment": null}, "tax_type": {"type": "text", "index": 12, "name": "tax_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.xero_source_integration_tests.xero_journal_line_data"}, "seed.xero_source_integration_tests.xero_organization_data": {"metadata": {"type": "BASE TABLE", "schema": "xero_source_integration_tests", "name": "xero_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organisation_id": {"type": "text", "index": 1, "name": "organisation_id", "comment": null}, "financial_year_end_month": {"type": "integer", "index": 2, "name": "financial_year_end_month", "comment": null}, "financial_year_end_day": {"type": "integer", "index": 3, "name": "financial_year_end_day", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.xero_source_integration_tests.xero_organization_data"}, "model.xero_source.stg_xero__account": {"metadata": {"type": "BASE TABLE", "schema": "xero_source_integration_tests_stg_xero", "name": "stg_xero__account", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 2, "name": "account_name", "comment": null}, "account_code": {"type": "integer", "index": 3, "name": "account_code", "comment": null}, "account_type": {"type": "text", "index": 4, "name": "account_type", "comment": null}, "account_class": {"type": "text", "index": 5, "name": "account_class", "comment": null}, "_fivetran_synced": {"type": "text", "index": 6, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__account"}, "model.xero_source.stg_xero__account_tmp": {"metadata": {"type": "VIEW", "schema": "xero_source_integration_tests_stg_xero", "name": "stg_xero__account_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "code": {"type": "integer", "index": 3, "name": "code", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "class": {"type": "text", "index": 5, "name": "class", "comment": null}, "_fivetran_synced": {"type": "text", "index": 6, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__account_tmp"}, "model.xero_source.stg_xero__bank_transaction": {"metadata": {"type": "BASE TABLE", "schema": "xero_source_integration_tests_stg_xero", "name": "stg_xero__bank_transaction", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bank_transaction_id": {"type": "text", "index": 1, "name": "bank_transaction_id", "comment": null}, "contact_id": {"type": "text", "index": 2, "name": "contact_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__bank_transaction"}, "model.xero_source.stg_xero__bank_transaction_tmp": {"metadata": {"type": "VIEW", "schema": "xero_source_integration_tests_stg_xero", "name": "stg_xero__bank_transaction_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bank_transaction_id": {"type": "text", "index": 1, "name": "bank_transaction_id", "comment": null}, "contact_id": {"type": "text", "index": 2, "name": "contact_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__bank_transaction_tmp"}, "model.xero_source.stg_xero__contact": {"metadata": {"type": "BASE TABLE", "schema": "xero_source_integration_tests_stg_xero", "name": "stg_xero__contact", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"contact_id": {"type": "text", "index": 1, "name": "contact_id", "comment": null}, "contact_name": {"type": "text", "index": 2, "name": "contact_name", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__contact"}, "model.xero_source.stg_xero__contact_tmp": {"metadata": {"type": "VIEW", "schema": "xero_source_integration_tests_stg_xero", "name": "stg_xero__contact_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"contact_id": {"type": "text", "index": 1, "name": "contact_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__contact_tmp"}, "model.xero_source.stg_xero__credit_note": {"metadata": {"type": "BASE TABLE", "schema": "xero_source_integration_tests_stg_xero", "name": "stg_xero__credit_note", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_note_id": {"type": "text", "index": 1, "name": "credit_note_id", "comment": null}, "contact_id": {"type": "text", "index": 2, "name": "contact_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__credit_note"}, "model.xero_source.stg_xero__credit_note_tmp": {"metadata": {"type": "VIEW", "schema": "xero_source_integration_tests_stg_xero", "name": "stg_xero__credit_note_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_note_id": {"type": "text", "index": 1, "name": "credit_note_id", "comment": null}, "contact_id": {"type": "text", "index": 2, "name": "contact_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__credit_note_tmp"}, "model.xero_source.stg_xero__invoice": {"metadata": {"type": "BASE TABLE", "schema": "xero_source_integration_tests_stg_xero", "name": "stg_xero__invoice", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "contact_id": {"type": "text", "index": 2, "name": "contact_id", "comment": null}, "invoice_date": {"type": "date", "index": 3, "name": "invoice_date", "comment": null}, "updated_date": {"type": "text", "index": 4, "name": "updated_date", "comment": null}, "planned_payment_date": {"type": "integer", "index": 5, "name": "planned_payment_date", "comment": null}, "due_date": {"type": "date", "index": 6, "name": "due_date", "comment": null}, "expected_payment_date": {"type": "integer", "index": 7, "name": "expected_payment_date", "comment": null}, "fully_paid_on_date": {"type": "date", "index": 8, "name": "fully_paid_on_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 9, "name": "_fivetran_synced", "comment": null}, "currency_code": {"type": "text", "index": 10, "name": "currency_code", "comment": null}, "currency_rate": {"type": "double precision", "index": 11, "name": "currency_rate", "comment": null}, "invoice_number": {"type": "text", "index": 12, "name": "invoice_number", "comment": null}, "reference": {"type": "text", "index": 13, "name": "reference", "comment": null}, "is_sent_to_contact": {"type": "boolean", "index": 14, "name": "is_sent_to_contact", "comment": null}, "invoice_status": {"type": "text", "index": 15, "name": "invoice_status", "comment": null}, "type": {"type": "text", "index": 16, "name": "type", "comment": null}, "url": {"type": "integer", "index": 17, "name": "url", "comment": null}, "source_relation": {"type": "text", "index": 18, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__invoice"}, "model.xero_source.stg_xero__invoice_line_item": {"metadata": {"type": "BASE TABLE", "schema": "xero_source_integration_tests_stg_xero", "name": "stg_xero__invoice_line_item", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_code": {"type": "integer", "index": 2, "name": "account_code", "comment": null}, "line_item_description": {"type": "text", "index": 3, "name": "line_item_description", "comment": null}, "discount_entered_as_percent": {"type": "integer", "index": 4, "name": "discount_entered_as_percent", "comment": null}, "discount_rate": {"type": "integer", "index": 5, "name": "discount_rate", "comment": null}, "invoice_id": {"type": "text", "index": 6, "name": "invoice_id", "comment": null}, "item_code": {"type": "integer", "index": 7, "name": "item_code", "comment": null}, "line_amount": {"type": "double precision", "index": 8, "name": "line_amount", "comment": null}, "line_item_id": {"type": "text", "index": 9, "name": "line_item_id", "comment": null}, "quantity": {"type": "double precision", "index": 10, "name": "quantity", "comment": null}, "tax_amount": {"type": "double precision", "index": 11, "name": "tax_amount", "comment": null}, "tax_type": {"type": "text", "index": 12, "name": "tax_type", "comment": null}, "unit_amount": {"type": "double precision", "index": 13, "name": "unit_amount", "comment": null}, "source_relation": {"type": "text", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__invoice_line_item"}, "model.xero_source.stg_xero__invoice_line_item_tmp": {"metadata": {"type": "VIEW", "schema": "xero_source_integration_tests_stg_xero", "name": "stg_xero__invoice_line_item_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_code": {"type": "integer", "index": 2, "name": "account_code", "comment": null}, "description": {"type": "text", "index": 3, "name": "description", "comment": null}, "discount_entered_as_percent": {"type": "integer", "index": 4, "name": "discount_entered_as_percent", "comment": null}, "discount_rate": {"type": "integer", "index": 5, "name": "discount_rate", "comment": null}, "invoice_id": {"type": "text", "index": 6, "name": "invoice_id", "comment": null}, "item_code": {"type": "integer", "index": 7, "name": "item_code", "comment": null}, "line_amount": {"type": "double precision", "index": 8, "name": "line_amount", "comment": null}, "line_item_id": {"type": "text", "index": 9, "name": "line_item_id", "comment": null}, "quantity": {"type": "double precision", "index": 10, "name": "quantity", "comment": null}, "tax_amount": {"type": "double precision", "index": 11, "name": "tax_amount", "comment": null}, "tax_type": {"type": "text", "index": 12, "name": "tax_type", "comment": null}, "unit_amount": {"type": "double precision", "index": 13, "name": "unit_amount", "comment": null}, "validation_errors": {"type": "integer", "index": 14, "name": "validation_errors", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__invoice_line_item_tmp"}, "model.xero_source.stg_xero__invoice_tmp": {"metadata": {"type": "VIEW", "schema": "xero_source_integration_tests_stg_xero", "name": "stg_xero__invoice_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "contact_id": {"type": "text", "index": 2, "name": "contact_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "updated_date_utc": {"type": "text", "index": 4, "name": "updated_date_utc", "comment": null}, "planned_payment_date": {"type": "integer", "index": 5, "name": "planned_payment_date", "comment": null}, "due_date": {"type": "date", "index": 6, "name": "due_date", "comment": null}, "expected_payment_date": {"type": "integer", "index": 7, "name": "expected_payment_date", "comment": null}, "fully_paid_on_date": {"type": "date", "index": 8, "name": "fully_paid_on_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 9, "name": "_fivetran_synced", "comment": null}, "amount_credited": {"type": "integer", "index": 10, "name": "amount_credited", "comment": null}, "amount_due": {"type": "double precision", "index": 11, "name": "amount_due", "comment": null}, "amount_paid": {"type": "double precision", "index": 12, "name": "amount_paid", "comment": null}, "sub_total": {"type": "double precision", "index": 13, "name": "sub_total", "comment": null}, "total": {"type": "double precision", "index": 14, "name": "total", "comment": null}, "total_tax": {"type": "double precision", "index": 15, "name": "total_tax", "comment": null}, "currency_code": {"type": "text", "index": 16, "name": "currency_code", "comment": null}, "currency_rate": {"type": "double precision", "index": 17, "name": "currency_rate", "comment": null}, "has_attachments": {"type": "boolean", "index": 18, "name": "has_attachments", "comment": null}, "has_errors": {"type": "boolean", "index": 19, "name": "has_errors", "comment": null}, "invoice_number": {"type": "text", "index": 20, "name": "invoice_number", "comment": null}, "is_discounted": {"type": "boolean", "index": 21, "name": "is_discounted", "comment": null}, "line_amount_types": {"type": "text", "index": 22, "name": "line_amount_types", "comment": null}, "reference": {"type": "text", "index": 23, "name": "reference", "comment": null}, "sent_to_contact": {"type": "boolean", "index": 24, "name": "sent_to_contact", "comment": null}, "status": {"type": "text", "index": 25, "name": "status", "comment": null}, "type": {"type": "text", "index": 26, "name": "type", "comment": null}, "url": {"type": "integer", "index": 27, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__invoice_tmp"}, "model.xero_source.stg_xero__journal": {"metadata": {"type": "BASE TABLE", "schema": "xero_source_integration_tests_stg_xero", "name": "stg_xero__journal", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"journal_id": {"type": "text", "index": 1, "name": "journal_id", "comment": null}, "created_date_utc": {"type": "text", "index": 2, "name": "created_date_utc", "comment": null}, "journal_date": {"type": "date", "index": 3, "name": "journal_date", "comment": null}, "journal_number": {"type": "integer", "index": 4, "name": "journal_number", "comment": null}, "reference": {"type": "text", "index": 5, "name": "reference", "comment": null}, "source_id": {"type": "text", "index": 6, "name": "source_id", "comment": null}, "source_type": {"type": "text", "index": 7, "name": "source_type", "comment": null}, "source_relation": {"type": "text", "index": 8, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__journal"}, "model.xero_source.stg_xero__journal_line": {"metadata": {"type": "BASE TABLE", "schema": "xero_source_integration_tests_stg_xero", "name": "stg_xero__journal_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"journal_line_id": {"type": "text", "index": 1, "name": "journal_line_id", "comment": null}, "account_code": {"type": "integer", "index": 2, "name": "account_code", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "account_type": {"type": "text", "index": 5, "name": "account_type", "comment": null}, "description": {"type": "integer", "index": 6, "name": "description", "comment": null}, "gross_amount": {"type": "double precision", "index": 7, "name": "gross_amount", "comment": null}, "journal_id": {"type": "text", "index": 8, "name": "journal_id", "comment": null}, "net_amount": {"type": "double precision", "index": 9, "name": "net_amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 10, "name": "tax_amount", "comment": null}, "tax_name": {"type": "text", "index": 11, "name": "tax_name", "comment": null}, "tax_type": {"type": "text", "index": 12, "name": "tax_type", "comment": null}, "source_relation": {"type": "text", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__journal_line"}, "model.xero_source.stg_xero__journal_line_tmp": {"metadata": {"type": "VIEW", "schema": "xero_source_integration_tests_stg_xero", "name": "stg_xero__journal_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"journal_line_id": {"type": "text", "index": 1, "name": "journal_line_id", "comment": null}, "account_code": {"type": "integer", "index": 2, "name": "account_code", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "account_type": {"type": "text", "index": 5, "name": "account_type", "comment": null}, "description": {"type": "integer", "index": 6, "name": "description", "comment": null}, "gross_amount": {"type": "double precision", "index": 7, "name": "gross_amount", "comment": null}, "journal_id": {"type": "text", "index": 8, "name": "journal_id", "comment": null}, "net_amount": {"type": "double precision", "index": 9, "name": "net_amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 10, "name": "tax_amount", "comment": null}, "tax_name": {"type": "text", "index": 11, "name": "tax_name", "comment": null}, "tax_type": {"type": "text", "index": 12, "name": "tax_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__journal_line_tmp"}, "model.xero_source.stg_xero__journal_tmp": {"metadata": {"type": "VIEW", "schema": "xero_source_integration_tests_stg_xero", "name": "stg_xero__journal_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"journal_id": {"type": "text", "index": 1, "name": "journal_id", "comment": null}, "created_date_utc": {"type": "text", "index": 2, "name": "created_date_utc", "comment": null}, "journal_date": {"type": "date", "index": 3, "name": "journal_date", "comment": null}, "journal_number": {"type": "integer", "index": 4, "name": "journal_number", "comment": null}, "reference": {"type": "text", "index": 5, "name": "reference", "comment": null}, "source_id": {"type": "text", "index": 6, "name": "source_id", "comment": null}, "source_type": {"type": "text", "index": 7, "name": "source_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__journal_tmp"}, "model.xero_source.stg_xero__organization": {"metadata": {"type": "BASE TABLE", "schema": "xero_source_integration_tests_stg_xero", "name": "stg_xero__organization", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organisation_id": {"type": "text", "index": 1, "name": "organisation_id", "comment": null}, "financial_year_end_month": {"type": "integer", "index": 2, "name": "financial_year_end_month", "comment": null}, "financial_year_end_day": {"type": "integer", "index": 3, "name": "financial_year_end_day", "comment": null}, "source_relation": {"type": "text", "index": 4, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__organization"}, "model.xero_source.stg_xero__organization_tmp": {"metadata": {"type": "VIEW", "schema": "xero_source_integration_tests_stg_xero", "name": "stg_xero__organization_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organisation_id": {"type": "text", "index": 1, "name": "organisation_id", "comment": null}, "financial_year_end_month": {"type": "integer", "index": 2, "name": "financial_year_end_month", "comment": null}, "financial_year_end_day": {"type": "integer", "index": 3, "name": "financial_year_end_day", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__organization_tmp"}}, "sources": {"source.xero_source.xero.account": {"metadata": {"type": "BASE TABLE", "schema": "xero_source_integration_tests", "name": "xero_account_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "code": {"type": "integer", "index": 3, "name": "code", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "class": {"type": "text", "index": 5, "name": "class", "comment": null}, "_fivetran_synced": {"type": "text", "index": 6, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.xero_source.xero.account"}, "source.xero_source.xero.bank_transaction": {"metadata": {"type": "BASE TABLE", "schema": "xero_source_integration_tests", "name": "xero_bank_transaction_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bank_transaction_id": {"type": "text", "index": 1, "name": "bank_transaction_id", "comment": null}, "contact_id": {"type": "text", "index": 2, "name": "contact_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.xero_source.xero.bank_transaction"}, "source.xero_source.xero.contact": {"metadata": {"type": "BASE TABLE", "schema": "xero_source_integration_tests", "name": "xero_contact_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"contact_id": {"type": "text", "index": 1, "name": "contact_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.xero_source.xero.contact"}, "source.xero_source.xero.credit_note": {"metadata": {"type": "BASE TABLE", "schema": "xero_source_integration_tests", "name": "xero_credit_note_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_note_id": {"type": "text", "index": 1, "name": "credit_note_id", "comment": null}, "contact_id": {"type": "text", "index": 2, "name": "contact_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.xero_source.xero.credit_note"}, "source.xero_source.xero.invoice": {"metadata": {"type": "BASE TABLE", "schema": "xero_source_integration_tests", "name": "xero_invoice_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "text", "index": 1, "name": "invoice_id", "comment": null}, "contact_id": {"type": "text", "index": 2, "name": "contact_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "updated_date_utc": {"type": "text", "index": 4, "name": "updated_date_utc", "comment": null}, "planned_payment_date": {"type": "integer", "index": 5, "name": "planned_payment_date", "comment": null}, "due_date": {"type": "date", "index": 6, "name": "due_date", "comment": null}, "expected_payment_date": {"type": "integer", "index": 7, "name": "expected_payment_date", "comment": null}, "fully_paid_on_date": {"type": "date", "index": 8, "name": "fully_paid_on_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 9, "name": "_fivetran_synced", "comment": null}, "amount_credited": {"type": "integer", "index": 10, "name": "amount_credited", "comment": null}, "amount_due": {"type": "double precision", "index": 11, "name": "amount_due", "comment": null}, "amount_paid": {"type": "double precision", "index": 12, "name": "amount_paid", "comment": null}, "sub_total": {"type": "double precision", "index": 13, "name": "sub_total", "comment": null}, "total": {"type": "double precision", "index": 14, "name": "total", "comment": null}, "total_tax": {"type": "double precision", "index": 15, "name": "total_tax", "comment": null}, "currency_code": {"type": "text", "index": 16, "name": "currency_code", "comment": null}, "currency_rate": {"type": "double precision", "index": 17, "name": "currency_rate", "comment": null}, "has_attachments": {"type": "boolean", "index": 18, "name": "has_attachments", "comment": null}, "has_errors": {"type": "boolean", "index": 19, "name": "has_errors", "comment": null}, "invoice_number": {"type": "text", "index": 20, "name": "invoice_number", "comment": null}, "is_discounted": {"type": "boolean", "index": 21, "name": "is_discounted", "comment": null}, "line_amount_types": {"type": "text", "index": 22, "name": "line_amount_types", "comment": null}, "reference": {"type": "text", "index": 23, "name": "reference", "comment": null}, "sent_to_contact": {"type": "boolean", "index": 24, "name": "sent_to_contact", "comment": null}, "status": {"type": "text", "index": 25, "name": "status", "comment": null}, "type": {"type": "text", "index": 26, "name": "type", "comment": null}, "url": {"type": "integer", "index": 27, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.xero_source.xero.invoice"}, "source.xero_source.xero.invoice_line_item": {"metadata": {"type": "BASE TABLE", "schema": "xero_source_integration_tests", "name": "xero_invoice_line_item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_code": {"type": "integer", "index": 2, "name": "account_code", "comment": null}, "description": {"type": "text", "index": 3, "name": "description", "comment": null}, "discount_entered_as_percent": {"type": "integer", "index": 4, "name": "discount_entered_as_percent", "comment": null}, "discount_rate": {"type": "integer", "index": 5, "name": "discount_rate", "comment": null}, "invoice_id": {"type": "text", "index": 6, "name": "invoice_id", "comment": null}, "item_code": {"type": "integer", "index": 7, "name": "item_code", "comment": null}, "line_amount": {"type": "double precision", "index": 8, "name": "line_amount", "comment": null}, "line_item_id": {"type": "text", "index": 9, "name": "line_item_id", "comment": null}, "quantity": {"type": "double precision", "index": 10, "name": "quantity", "comment": null}, "tax_amount": {"type": "double precision", "index": 11, "name": "tax_amount", "comment": null}, "tax_type": {"type": "text", "index": 12, "name": "tax_type", "comment": null}, "unit_amount": {"type": "double precision", "index": 13, "name": "unit_amount", "comment": null}, "validation_errors": {"type": "integer", "index": 14, "name": "validation_errors", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.xero_source.xero.invoice_line_item"}, "source.xero_source.xero.journal": {"metadata": {"type": "BASE TABLE", "schema": "xero_source_integration_tests", "name": "xero_journal_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"journal_id": {"type": "text", "index": 1, "name": "journal_id", "comment": null}, "created_date_utc": {"type": "text", "index": 2, "name": "created_date_utc", "comment": null}, "journal_date": {"type": "date", "index": 3, "name": "journal_date", "comment": null}, "journal_number": {"type": "integer", "index": 4, "name": "journal_number", "comment": null}, "reference": {"type": "text", "index": 5, "name": "reference", "comment": null}, "source_id": {"type": "text", "index": 6, "name": "source_id", "comment": null}, "source_type": {"type": "text", "index": 7, "name": "source_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.xero_source.xero.journal"}, "source.xero_source.xero.journal_line": {"metadata": {"type": "BASE TABLE", "schema": "xero_source_integration_tests", "name": "xero_journal_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"journal_line_id": {"type": "text", "index": 1, "name": "journal_line_id", "comment": null}, "account_code": {"type": "integer", "index": 2, "name": "account_code", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "account_type": {"type": "text", "index": 5, "name": "account_type", "comment": null}, "description": {"type": "integer", "index": 6, "name": "description", "comment": null}, "gross_amount": {"type": "double precision", "index": 7, "name": "gross_amount", "comment": null}, "journal_id": {"type": "text", "index": 8, "name": "journal_id", "comment": null}, "net_amount": {"type": "double precision", "index": 9, "name": "net_amount", "comment": null}, "tax_amount": {"type": "double precision", "index": 10, "name": "tax_amount", "comment": null}, "tax_name": {"type": "text", "index": 11, "name": "tax_name", "comment": null}, "tax_type": {"type": "text", "index": 12, "name": "tax_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.xero_source.xero.journal_line"}, "source.xero_source.xero.organization": {"metadata": {"type": "BASE TABLE", "schema": "xero_source_integration_tests", "name": "xero_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organisation_id": {"type": "text", "index": 1, "name": "organisation_id", "comment": null}, "financial_year_end_month": {"type": "integer", "index": 2, "name": "financial_year_end_month", "comment": null}, "financial_year_end_day": {"type": "integer", "index": 3, "name": "financial_year_end_day", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.xero_source.xero.organization"}}, "errors": null}
\ No newline at end of file
+{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.5.0", "generated_at": "2023-06-16T22:45:59.064133Z", "invocation_id": "3855d19f-594b-4cac-850d-bd6157b3205b", "env": {}}, "nodes": {"seed.xero_source_integration_tests.xero_account_data": {"metadata": {"type": "table", "schema": "quickbooks_integrations_tests", "name": "xero_account_data", "database": "hive_metastore", "comment": null, "owner": "root"}, "columns": {"account_id": {"type": "string", "index": 1, "name": "account_id", "comment": null}, "name": {"type": "string", "index": 2, "name": "name", "comment": null}, "code": {"type": "bigint", "index": 3, "name": "code", "comment": null}, "type": {"type": "string", "index": 4, "name": "type", "comment": null}, "class": {"type": "string", "index": 5, "name": "class", "comment": null}, "_fivetran_synced": {"type": "string", "index": 6, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.xero_source_integration_tests.xero_account_data"}, "seed.xero_source_integration_tests.xero_bank_transaction_data": {"metadata": {"type": "table", "schema": "quickbooks_integrations_tests", "name": "xero_bank_transaction_data", "database": "hive_metastore", "comment": null, "owner": "root"}, "columns": {"bank_transaction_id": {"type": "string", "index": 1, "name": "bank_transaction_id", "comment": null}, "contact_id": {"type": "string", "index": 2, "name": "contact_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.xero_source_integration_tests.xero_bank_transaction_data"}, "seed.xero_source_integration_tests.xero_contact_data": {"metadata": {"type": "table", "schema": "quickbooks_integrations_tests", "name": "xero_contact_data", "database": "hive_metastore", "comment": null, "owner": "root"}, "columns": {"contact_id": {"type": "string", "index": 1, "name": "contact_id", "comment": null}, "name": {"type": "string", "index": 2, "name": "name", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.xero_source_integration_tests.xero_contact_data"}, "seed.xero_source_integration_tests.xero_credit_note_data": {"metadata": {"type": "table", "schema": "quickbooks_integrations_tests", "name": "xero_credit_note_data", "database": "hive_metastore", "comment": null, "owner": "root"}, "columns": {"credit_note_id": {"type": "string", "index": 1, "name": "credit_note_id", "comment": null}, "contact_id": {"type": "string", "index": 2, "name": "contact_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.xero_source_integration_tests.xero_credit_note_data"}, "seed.xero_source_integration_tests.xero_invoice_data": {"metadata": {"type": "table", "schema": "quickbooks_integrations_tests", "name": "xero_invoice_data", "database": "hive_metastore", "comment": null, "owner": "root"}, "columns": {"invoice_id": {"type": "string", "index": 1, "name": "invoice_id", "comment": null}, "contact_id": {"type": "string", "index": 2, "name": "contact_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "updated_date_utc": {"type": "string", "index": 4, "name": "updated_date_utc", "comment": null}, "planned_payment_date": {"type": "bigint", "index": 5, "name": "planned_payment_date", "comment": null}, "due_date": {"type": "date", "index": 6, "name": "due_date", "comment": null}, "expected_payment_date": {"type": "bigint", "index": 7, "name": "expected_payment_date", "comment": null}, "fully_paid_on_date": {"type": "date", "index": 8, "name": "fully_paid_on_date", "comment": null}, "_fivetran_synced": {"type": "string", "index": 9, "name": "_fivetran_synced", "comment": null}, "amount_credited": {"type": "bigint", "index": 10, "name": "amount_credited", "comment": null}, "amount_due": {"type": "double", "index": 11, "name": "amount_due", "comment": null}, "amount_paid": {"type": "double", "index": 12, "name": "amount_paid", "comment": null}, "sub_total": {"type": "double", "index": 13, "name": "sub_total", "comment": null}, "total": {"type": "double", "index": 14, "name": "total", "comment": null}, "total_tax": {"type": "double", "index": 15, "name": "total_tax", "comment": null}, "currency_code": {"type": "string", "index": 16, "name": "currency_code", "comment": null}, "currency_rate": {"type": "double", "index": 17, "name": "currency_rate", "comment": null}, "has_attachments": {"type": "boolean", "index": 18, "name": "has_attachments", "comment": null}, "has_errors": {"type": "boolean", "index": 19, "name": "has_errors", "comment": null}, "invoice_number": {"type": "string", "index": 20, "name": "invoice_number", "comment": null}, "is_discounted": {"type": "boolean", "index": 21, "name": "is_discounted", "comment": null}, "line_amount_types": {"type": "string", "index": 22, "name": "line_amount_types", "comment": null}, "reference": {"type": "string", "index": 23, "name": "reference", "comment": null}, "sent_to_contact": {"type": "boolean", "index": 24, "name": "sent_to_contact", "comment": null}, "status": {"type": "string", "index": 25, "name": "status", "comment": null}, "type": {"type": "string", "index": 26, "name": "type", "comment": null}, "url": {"type": "bigint", "index": 27, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.xero_source_integration_tests.xero_invoice_data"}, "seed.xero_source_integration_tests.xero_invoice_line_item_data": {"metadata": {"type": "table", "schema": "quickbooks_integrations_tests", "name": "xero_invoice_line_item_data", "database": "hive_metastore", "comment": null, "owner": "root"}, "columns": {"_fivetran_synced": {"type": "string", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_code": {"type": "bigint", "index": 2, "name": "account_code", "comment": null}, "description": {"type": "string", "index": 3, "name": "description", "comment": null}, "discount_entered_as_percent": {"type": "bigint", "index": 4, "name": "discount_entered_as_percent", "comment": null}, "discount_rate": {"type": "bigint", "index": 5, "name": "discount_rate", "comment": null}, "invoice_id": {"type": "string", "index": 6, "name": "invoice_id", "comment": null}, "item_code": {"type": "bigint", "index": 7, "name": "item_code", "comment": null}, "line_amount": {"type": "double", "index": 8, "name": "line_amount", "comment": null}, "line_item_id": {"type": "string", "index": 9, "name": "line_item_id", "comment": null}, "quantity": {"type": "double", "index": 10, "name": "quantity", "comment": null}, "tax_amount": {"type": "double", "index": 11, "name": "tax_amount", "comment": null}, "tax_type": {"type": "string", "index": 12, "name": "tax_type", "comment": null}, "unit_amount": {"type": "double", "index": 13, "name": "unit_amount", "comment": null}, "validation_errors": {"type": "bigint", "index": 14, "name": "validation_errors", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.xero_source_integration_tests.xero_invoice_line_item_data"}, "seed.xero_source_integration_tests.xero_journal_data": {"metadata": {"type": "table", "schema": "quickbooks_integrations_tests", "name": "xero_journal_data", "database": "hive_metastore", "comment": null, "owner": "root"}, "columns": {"journal_id": {"type": "string", "index": 1, "name": "journal_id", "comment": null}, "created_date_utc": {"type": "string", "index": 2, "name": "created_date_utc", "comment": null}, "journal_date": {"type": "date", "index": 3, "name": "journal_date", "comment": null}, "journal_number": {"type": "bigint", "index": 4, "name": "journal_number", "comment": null}, "reference": {"type": "string", "index": 5, "name": "reference", "comment": null}, "source_id": {"type": "string", "index": 6, "name": "source_id", "comment": null}, "source_type": {"type": "string", "index": 7, "name": "source_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.xero_source_integration_tests.xero_journal_data"}, "seed.xero_source_integration_tests.xero_journal_line_data": {"metadata": {"type": "table", "schema": "quickbooks_integrations_tests", "name": "xero_journal_line_data", "database": "hive_metastore", "comment": null, "owner": "root"}, "columns": {"journal_line_id": {"type": "string", "index": 1, "name": "journal_line_id", "comment": null}, "account_code": {"type": "bigint", "index": 2, "name": "account_code", "comment": null}, "account_id": {"type": "string", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "string", "index": 4, "name": "account_name", "comment": null}, "account_type": {"type": "string", "index": 5, "name": "account_type", "comment": null}, "description": {"type": "bigint", "index": 6, "name": "description", "comment": null}, "gross_amount": {"type": "double", "index": 7, "name": "gross_amount", "comment": null}, "journal_id": {"type": "string", "index": 8, "name": "journal_id", "comment": null}, "net_amount": {"type": "double", "index": 9, "name": "net_amount", "comment": null}, "tax_amount": {"type": "double", "index": 10, "name": "tax_amount", "comment": null}, "tax_name": {"type": "string", "index": 11, "name": "tax_name", "comment": null}, "tax_type": {"type": "string", "index": 12, "name": "tax_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.xero_source_integration_tests.xero_journal_line_data"}, "seed.xero_source_integration_tests.xero_organization_data": {"metadata": {"type": "table", "schema": "quickbooks_integrations_tests", "name": "xero_organization_data", "database": "hive_metastore", "comment": null, "owner": "root"}, "columns": {"organisation_id": {"type": "string", "index": 1, "name": "organisation_id", "comment": null}, "financial_year_end_month": {"type": "bigint", "index": 2, "name": "financial_year_end_month", "comment": null}, "financial_year_end_day": {"type": "bigint", "index": 3, "name": "financial_year_end_day", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.xero_source_integration_tests.xero_organization_data"}, "model.xero_source.stg_xero__account": {"metadata": {"type": "table", "schema": "quickbooks_integrations_tests_stg_xero", "name": "stg_xero__account", "database": "hive_metastore", "comment": null, "owner": "root"}, "columns": {"account_id": {"type": "string", "index": 1, "name": "account_id", "comment": null}, "account_name": {"type": "string", "index": 2, "name": "account_name", "comment": null}, "account_code": {"type": "string", "index": 3, "name": "account_code", "comment": null}, "account_type": {"type": "string", "index": 4, "name": "account_type", "comment": null}, "account_class": {"type": "string", "index": 5, "name": "account_class", "comment": null}, "_fivetran_synced": {"type": "timestamp", "index": 6, "name": "_fivetran_synced", "comment": null}, "source_relation": {"type": "string", "index": 7, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__account"}, "model.xero_source.stg_xero__account_tmp": {"metadata": {"type": "view", "schema": "quickbooks_integrations_tests_stg_xero", "name": "stg_xero__account_tmp", "database": "hive_metastore", "comment": null, "owner": "root"}, "columns": {"_dbt_source_relation": {"type": "string", "index": 1, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__account_tmp"}, "model.xero_source.stg_xero__bank_transaction": {"metadata": {"type": "table", "schema": "quickbooks_integrations_tests_stg_xero", "name": "stg_xero__bank_transaction", "database": "hive_metastore", "comment": null, "owner": "root"}, "columns": {"bank_transaction_id": {"type": "string", "index": 1, "name": "bank_transaction_id", "comment": null}, "contact_id": {"type": "string", "index": 2, "name": "contact_id", "comment": null}, "source_relation": {"type": "string", "index": 3, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__bank_transaction"}, "model.xero_source.stg_xero__bank_transaction_tmp": {"metadata": {"type": "view", "schema": "quickbooks_integrations_tests_stg_xero", "name": "stg_xero__bank_transaction_tmp", "database": "hive_metastore", "comment": null, "owner": "root"}, "columns": {"_dbt_source_relation": {"type": "string", "index": 1, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__bank_transaction_tmp"}, "model.xero_source.stg_xero__contact": {"metadata": {"type": "table", "schema": "quickbooks_integrations_tests_stg_xero", "name": "stg_xero__contact", "database": "hive_metastore", "comment": null, "owner": "root"}, "columns": {"contact_id": {"type": "string", "index": 1, "name": "contact_id", "comment": null}, "contact_name": {"type": "string", "index": 2, "name": "contact_name", "comment": null}, "source_relation": {"type": "string", "index": 3, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__contact"}, "model.xero_source.stg_xero__contact_tmp": {"metadata": {"type": "view", "schema": "quickbooks_integrations_tests_stg_xero", "name": "stg_xero__contact_tmp", "database": "hive_metastore", "comment": null, "owner": "root"}, "columns": {"_dbt_source_relation": {"type": "string", "index": 1, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__contact_tmp"}, "model.xero_source.stg_xero__credit_note": {"metadata": {"type": "table", "schema": "quickbooks_integrations_tests_stg_xero", "name": "stg_xero__credit_note", "database": "hive_metastore", "comment": null, "owner": "root"}, "columns": {"credit_note_id": {"type": "string", "index": 1, "name": "credit_note_id", "comment": null}, "contact_id": {"type": "string", "index": 2, "name": "contact_id", "comment": null}, "source_relation": {"type": "string", "index": 3, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__credit_note"}, "model.xero_source.stg_xero__credit_note_tmp": {"metadata": {"type": "view", "schema": "quickbooks_integrations_tests_stg_xero", "name": "stg_xero__credit_note_tmp", "database": "hive_metastore", "comment": null, "owner": "root"}, "columns": {"_dbt_source_relation": {"type": "string", "index": 1, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__credit_note_tmp"}, "model.xero_source.stg_xero__invoice": {"metadata": {"type": "table", "schema": "quickbooks_integrations_tests_stg_xero", "name": "stg_xero__invoice", "database": "hive_metastore", "comment": null, "owner": "root"}, "columns": {"invoice_id": {"type": "string", "index": 1, "name": "invoice_id", "comment": null}, "contact_id": {"type": "string", "index": 2, "name": "contact_id", "comment": null}, "invoice_date": {"type": "date", "index": 3, "name": "invoice_date", "comment": null}, "updated_date": {"type": "timestamp", "index": 4, "name": "updated_date", "comment": null}, "planned_payment_date": {"type": "timestamp", "index": 5, "name": "planned_payment_date", "comment": null}, "due_date": {"type": "date", "index": 6, "name": "due_date", "comment": null}, "expected_payment_date": {"type": "timestamp", "index": 7, "name": "expected_payment_date", "comment": null}, "fully_paid_on_date": {"type": "date", "index": 8, "name": "fully_paid_on_date", "comment": null}, "_fivetran_synced": {"type": "timestamp", "index": 9, "name": "_fivetran_synced", "comment": null}, "currency_code": {"type": "string", "index": 10, "name": "currency_code", "comment": null}, "currency_rate": {"type": "decimal(28,6)", "index": 11, "name": "currency_rate", "comment": null}, "invoice_number": {"type": "string", "index": 12, "name": "invoice_number", "comment": null}, "reference": {"type": "string", "index": 13, "name": "reference", "comment": null}, "is_sent_to_contact": {"type": "boolean", "index": 14, "name": "is_sent_to_contact", "comment": null}, "invoice_status": {"type": "string", "index": 15, "name": "invoice_status", "comment": null}, "type": {"type": "string", "index": 16, "name": "type", "comment": null}, "url": {"type": "string", "index": 17, "name": "url", "comment": null}, "source_relation": {"type": "string", "index": 18, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__invoice"}, "model.xero_source.stg_xero__invoice_line_item": {"metadata": {"type": "table", "schema": "quickbooks_integrations_tests_stg_xero", "name": "stg_xero__invoice_line_item", "database": "hive_metastore", "comment": null, "owner": "root"}, "columns": {"_fivetran_synced": {"type": "timestamp", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_code": {"type": "string", "index": 2, "name": "account_code", "comment": null}, "line_item_description": {"type": "string", "index": 3, "name": "line_item_description", "comment": null}, "discount_entered_as_percent": {"type": "boolean", "index": 4, "name": "discount_entered_as_percent", "comment": null}, "discount_rate": {"type": "integer", "index": 5, "name": "discount_rate", "comment": null}, "invoice_id": {"type": "string", "index": 6, "name": "invoice_id", "comment": null}, "item_code": {"type": "string", "index": 7, "name": "item_code", "comment": null}, "line_amount": {"type": "decimal(28,6)", "index": 8, "name": "line_amount", "comment": null}, "line_item_id": {"type": "string", "index": 9, "name": "line_item_id", "comment": null}, "quantity": {"type": "decimal(28,6)", "index": 10, "name": "quantity", "comment": null}, "tax_amount": {"type": "decimal(28,6)", "index": 11, "name": "tax_amount", "comment": null}, "tax_type": {"type": "string", "index": 12, "name": "tax_type", "comment": null}, "unit_amount": {"type": "decimal(28,6)", "index": 13, "name": "unit_amount", "comment": null}, "source_relation": {"type": "string", "index": 14, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__invoice_line_item"}, "model.xero_source.stg_xero__invoice_line_item_tmp": {"metadata": {"type": "view", "schema": "quickbooks_integrations_tests_stg_xero", "name": "stg_xero__invoice_line_item_tmp", "database": "hive_metastore", "comment": null, "owner": "root"}, "columns": {"_dbt_source_relation": {"type": "string", "index": 1, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__invoice_line_item_tmp"}, "model.xero_source.stg_xero__invoice_tmp": {"metadata": {"type": "view", "schema": "quickbooks_integrations_tests_stg_xero", "name": "stg_xero__invoice_tmp", "database": "hive_metastore", "comment": null, "owner": "root"}, "columns": {"_dbt_source_relation": {"type": "string", "index": 1, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__invoice_tmp"}, "model.xero_source.stg_xero__journal": {"metadata": {"type": "table", "schema": "quickbooks_integrations_tests_stg_xero", "name": "stg_xero__journal", "database": "hive_metastore", "comment": null, "owner": "root"}, "columns": {"journal_id": {"type": "string", "index": 1, "name": "journal_id", "comment": null}, "created_date_utc": {"type": "timestamp", "index": 2, "name": "created_date_utc", "comment": null}, "journal_date": {"type": "date", "index": 3, "name": "journal_date", "comment": null}, "journal_number": {"type": "integer", "index": 4, "name": "journal_number", "comment": null}, "reference": {"type": "string", "index": 5, "name": "reference", "comment": null}, "source_id": {"type": "string", "index": 6, "name": "source_id", "comment": null}, "source_type": {"type": "string", "index": 7, "name": "source_type", "comment": null}, "source_relation": {"type": "string", "index": 8, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__journal"}, "model.xero_source.stg_xero__journal_line": {"metadata": {"type": "table", "schema": "quickbooks_integrations_tests_stg_xero", "name": "stg_xero__journal_line", "database": "hive_metastore", "comment": null, "owner": "root"}, "columns": {"journal_line_id": {"type": "string", "index": 1, "name": "journal_line_id", "comment": null}, "account_code": {"type": "string", "index": 2, "name": "account_code", "comment": null}, "account_id": {"type": "string", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "string", "index": 4, "name": "account_name", "comment": null}, "account_type": {"type": "string", "index": 5, "name": "account_type", "comment": null}, "description": {"type": "string", "index": 6, "name": "description", "comment": null}, "gross_amount": {"type": "decimal(28,6)", "index": 7, "name": "gross_amount", "comment": null}, "journal_id": {"type": "string", "index": 8, "name": "journal_id", "comment": null}, "net_amount": {"type": "decimal(28,6)", "index": 9, "name": "net_amount", "comment": null}, "tax_amount": {"type": "decimal(28,6)", "index": 10, "name": "tax_amount", "comment": null}, "tax_name": {"type": "string", "index": 11, "name": "tax_name", "comment": null}, "tax_type": {"type": "string", "index": 12, "name": "tax_type", "comment": null}, "source_relation": {"type": "string", "index": 13, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__journal_line"}, "model.xero_source.stg_xero__journal_line_tmp": {"metadata": {"type": "view", "schema": "quickbooks_integrations_tests_stg_xero", "name": "stg_xero__journal_line_tmp", "database": "hive_metastore", "comment": null, "owner": "root"}, "columns": {"_dbt_source_relation": {"type": "string", "index": 1, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__journal_line_tmp"}, "model.xero_source.stg_xero__journal_tmp": {"metadata": {"type": "view", "schema": "quickbooks_integrations_tests_stg_xero", "name": "stg_xero__journal_tmp", "database": "hive_metastore", "comment": null, "owner": "root"}, "columns": {"_dbt_source_relation": {"type": "string", "index": 1, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__journal_tmp"}, "model.xero_source.stg_xero__organization": {"metadata": {"type": "table", "schema": "quickbooks_integrations_tests_stg_xero", "name": "stg_xero__organization", "database": "hive_metastore", "comment": null, "owner": "root"}, "columns": {"organisation_id": {"type": "string", "index": 1, "name": "organisation_id", "comment": null}, "financial_year_end_month": {"type": "integer", "index": 2, "name": "financial_year_end_month", "comment": null}, "financial_year_end_day": {"type": "integer", "index": 3, "name": "financial_year_end_day", "comment": null}, "source_relation": {"type": "string", "index": 4, "name": "source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__organization"}, "model.xero_source.stg_xero__organization_tmp": {"metadata": {"type": "view", "schema": "quickbooks_integrations_tests_stg_xero", "name": "stg_xero__organization_tmp", "database": "hive_metastore", "comment": null, "owner": "root"}, "columns": {"_dbt_source_relation": {"type": "string", "index": 1, "name": "_dbt_source_relation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.xero_source.stg_xero__organization_tmp"}}, "sources": {}, "errors": null}
\ No newline at end of file
diff --git a/docs/index.html b/docs/index.html
index 182b6b4..5631ac6 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -64,7 +64,7 @@
* Released under MIT license "+e+"-1},In.prototype.set=function(e,t){var n=this.__data__,r=Hn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Nn.prototype.clear=function(){this.size=0,this.__data__={hash:new Rn,map:new(hn||In),string:new Rn}},Nn.prototype.delete=function(e){var t=Ji(this,e).delete(e);return this.size-=t?1:0,t},Nn.prototype.get=function(e){return Ji(this,e).get(e)},Nn.prototype.has=function(e){return Ji(this,e).has(e)},Nn.prototype.set=function(e,t){var n=Ji(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Mn.prototype.add=Mn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Mn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.clear=function(){this.__data__=new In,this.size=0},zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},zn.prototype.get=function(e){return this.__data__.get(e)},zn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof In){var r=n.__data__;if(!hn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Nn(r)}return n.set(e,t),this.size=n.size,this};var tr=ki(cr),nr=ki(ur,!0);function rr(e,t){var n=!0;return tr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function ir(e,t,n){for(var r=-1,i=e.length;++r0&&n(s)?t>1?ar(s,t-1,n,r,i):ht(i,s):r||(i[i.length]=s)}return i}var sr=Ai(),lr=Ai(!0);function cr(e,t){return e&&sr(e,t,ws)}function ur(e,t){return e&&lr(e,t,ws)}function dr(e,t){return ut(t,(function(t){return Fa(e[t])}))}function fr(e,t){for(var n=0,r=(t=li(t,e)).length;null!=e&&n-1&&e%1==0&&e\n {{ model.source_name }}.{{ model.name }}\n source table\n
\n Description
\n Columns
\n Referenced By
\n -1},In.prototype.set=function(e,t){var n=this.__data__,r=Hn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Nn.prototype.clear=function(){this.size=0,this.__data__={hash:new Rn,map:new(hn||In),string:new Rn}},Nn.prototype.delete=function(e){var t=Ji(this,e).delete(e);return this.size-=t?1:0,t},Nn.prototype.get=function(e){return Ji(this,e).get(e)},Nn.prototype.has=function(e){return Ji(this,e).has(e)},Nn.prototype.set=function(e,t){var n=Ji(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Mn.prototype.add=Mn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Mn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.clear=function(){this.__data__=new In,this.size=0},zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},zn.prototype.get=function(e){return this.__data__.get(e)},zn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof In){var r=n.__data__;if(!hn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Nn(r)}return n.set(e,t),this.size=n.size,this};var tr=ki(cr),nr=ki(ur,!0);function rr(e,t){var n=!0;return tr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function ir(e,t,n){for(var r=-1,i=e.length;++r0&&n(s)?t>1?ar(s,t-1,n,r,i):ht(i,s):r||(i[i.length]=s)}return i}var sr=Ai(),lr=Ai(!0);function cr(e,t){return e&&sr(e,t,ws)}function ur(e,t){return e&&lr(e,t,ws)}function dr(e,t){return ut(t,(function(t){return Fa(e[t])}))}function fr(e,t){for(var n=0,r=(t=li(t,e)).length;null!=e&&n-1&&e%1==0&&e\n {{ model.source_name }}.{{ model.name }}\n source table\n
\n Description
\n Columns
\n Referenced By
\n
\n":"'+(n?e:c(e,!0))+"\n
"},a.prototype.blockquote=function(e){return""+(n?e:c(e,!0))+"\n
\n"+e+"
\n"},a.prototype.html=function(e){return e},a.prototype.heading=function(e,t,n){return"
\n":"
\n"},a.prototype.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+""+r+">\n"},a.prototype.listitem=function(e){return"\n\n"+e+"\n\n"+t+"\n
\n"},a.prototype.tablerow=function(e){return"\n"+e+" \n"},a.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">")+e+""+n+">\n"},a.prototype.strong=function(e){return""+e+""},a.prototype.em=function(e){return""+e+""},a.prototype.codespan=function(e){return""+e+"
"},a.prototype.br=function(){return this.options.xhtml?"
":"
"},a.prototype.del=function(e){return""+e+""},a.prototype.link=function(e,t,n){if(this.options.sanitize){try{var r=decodeURIComponent(u(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return n}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return n}this.options.baseUrl&&!h.test(e)&&(e=f(this.options.baseUrl,e));var i='"+n+""},a.prototype.image=function(e,t,n){this.options.baseUrl&&!h.test(e)&&(e=f(this.options.baseUrl,e));var r='":">"},a.prototype.text=function(e){return e},s.prototype.strong=s.prototype.em=s.prototype.codespan=s.prototype.del=s.prototype.text=function(e){return e},s.prototype.link=s.prototype.image=function(e,t,n){return""+n},s.prototype.br=function(){return""},l.parse=function(e,t){return new l(t).parse(e)},l.prototype.parse=function(e){this.inline=new o(e.links,this.options),this.inlineText=new o(e.links,m({},this.options,{renderer:new s})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},l.prototype.next=function(){return this.token=this.tokens.pop()},l.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},l.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},l.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,u(this.inlineText.output(this.token.text)));case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,i="",o="";for(n="",e=0;e
"+c(e.message+"",!0)+"";throw e}}g.exec=g,v.options=v.setOptions=function(e){return m(v.defaults,e),v},v.defaults={gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,sanitizer:null,mangle:!0,smartLists:!1,silent:!1,highlight:null,langPrefix:"lang-",smartypants:!1,headerPrefix:"",renderer:new a,xhtml:!1,baseUrl:null},v.Parser=l,v.parser=l.parse,v.Renderer=a,v.TextRenderer=s,v.Lexer=r,v.lexer=r.lex,v.InlineLexer=o,v.inlineLexer=o.output,v.parse=v,e.exports=v}(this||"undefined"!=typeof window&&window)}).call(this,n(35))},function(e,t,n){n(231),n(233),n(422),n(424),n(428),n(430),n(434),n(436),n(440),n(442)},function(e,t,n){"use strict";const r=n(232),i=n(21),o=n(31);angular.module("dbt").directive("graphLauncher",["$state","$q","graph","selectorService","project","trackingService","locationService",function(e,t,n,a,s,l,c){return{restrict:"EA",replace:!0,scope:{},templateUrl:r,link:function(t,r){t.filters_visible=!1,t.graphService=n,t.selectorService=a,t.allSelected=!0;var s={tags:{visible:!1},packages:{visible:!1},resource_types:{visible:!1}};t.onWindowClick=function(e){o(e.target);var t=o(e.target).closest(".dropup");t.length||(s.tags.visible=!1,s.packages.visible=!1);var n=t.data("form-type");i.each(s,(function(e,t){t!=n&&(e.visible=!1)})),o(e.target).closest("#graph-viz-wrapper").length&&setTimeout((function(){o(":focus").blur()}))},t.onSelectClick=function(e){i.each(s,(function(t,n){n==e&&(t.visible=!t.visible,t.visible||o(":focus").blur())}))},t.isVisible=function(e){return s[e].visible},t.isSelected=function(e,t){return-1!=a.selection.dirty[e].indexOf(t)},t.onSelectAll=function(e,n,r){var i=a.selection.dirty;i[e]=n?[...a.options[e]]:[],t.allSelected=!t.allSelected,r.preventDefault()},t.onItemSelect=function(e,n,r){var o=a.selection.dirty;t.isSelected(e,n)?o[e]=i.without(o[e],n):o[e]=i.union(o[e],[n]),r.preventDefault()},t.onSelectBlur=function(e,n){n&&(n.relatedTarget&&"SELECT"!=n.relatedTarget.tagName||t.isVisible(e)&&o(n.target).focus())},t.resourceTypeTitle=function(e){return"analysis"==e?"Analyses":e[0].toUpperCase()+e.slice(1)+"s"},t.selectionLabel=function(e,t){var n=a.selection.dirty[e],r=a.options[e];return 0==n.length?"None selected":1==n.length?n[0]||t:n.length==r.length?"All selected":n.length+" selected"},t.onUpdateSelector=function(){var e=a.updateSelection(),t=n.updateGraph(e);l.track_graph_interaction("update-graph",t.length)},t.showExpanded=function(){var e=a.getViewNode(),t=e?e.name:null;if(e&&"source"==e.resource_type)var r=n.showFullGraph("source:"+e.source_name+"."+e.name);else if(e&&"exposure"==e.resource_type)r=n.showFullGraph("exposure:"+e.name);else if(e&&"metric"==e.resource_type)r=n.showFullGraph("metric:"+e.name);else r=n.showFullGraph(t);l.track_graph_interaction("show-expanded",r.length)},t.showContracted=function(){var e=a.getViewNode();if(e&&"source"==e.resource_type)var t=n.showVerticalGraph("source:"+e.source_name+"."+e.name,!0);else if(e&&"exposure"==e.resource_type)t=n.showVerticalGraph("exposure:"+e.name,!0);else if(e&&"metric"==e.resource_type)t=n.showVerticalGraph("metric:"+e.name,!0);else t=n.showVerticalGraph(e.name,!0);c.clearState(),l.track_graph_interaction("show-contracted",t.length)},t.closeGraph=function(){n.hideGraph(),c.clearState()},t.onLauncherClick=function(){var r=a.getViewNode();if(r)a.resetSelection(r),t.showContracted();else if(e.params.source){a.resetSelection(),t.showExpanded();var i=a.selectSource(e.params.source,{children:!0});setTimeout((function(){n.updateGraph(i)}))}else a.resetSelection(),t.showExpanded()},t.$watch((function(){return a.selection.dirty}),(function(e,t){if(a.isDirty()){var r=n.graph.pristine.dag,o=n.graph.pristine.nodes,s=a.selection.clean,l=a.selection.dirty,c=a.selectNodes(r,o,s),u=a.selectNodes(r,o,l),d=i.difference(c.selected,u.selected);n.markDirty(d)}else n.markAllClean()}),!0)}}}])},function(e,t){var n="/components/graph/graph-launcher.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n
'+(n?e:c(e,!0))+"\n
\n":""+(n?e:c(e,!0))+"\n
"},a.prototype.blockquote=function(e){return"\n"+e+"\n"},a.prototype.html=function(e){return e},a.prototype.heading=function(e,t,n){return"
"+e+"
\n"},a.prototype.table=function(e,t){return""+e+"
"},a.prototype.br=function(){return this.options.xhtml?""+c(e.message+"",!0)+"";throw e}}g.exec=g,v.options=v.setOptions=function(e){return m(v.defaults,e),v},v.defaults={gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,sanitizer:null,mangle:!0,smartLists:!1,silent:!1,highlight:null,langPrefix:"lang-",smartypants:!1,headerPrefix:"",renderer:new a,xhtml:!1,baseUrl:null},v.Parser=l,v.parser=l.parse,v.Renderer=a,v.TextRenderer=s,v.Lexer=r,v.lexer=r.lex,v.InlineLexer=o,v.inlineLexer=o.output,v.parse=v,e.exports=v}(this||"undefined"!=typeof window&&window)}).call(this,n(35))},function(e,t,n){n(231),n(233),n(422),n(424),n(428),n(430),n(434),n(436),n(440),n(442)},function(e,t,n){"use strict";const r=n(232),i=n(21),o=n(31);angular.module("dbt").directive("graphLauncher",["$state","$q","graph","selectorService","project","trackingService","locationService",function(e,t,n,a,s,l,c){return{restrict:"EA",replace:!0,scope:{},templateUrl:r,link:function(t,r){t.filters_visible=!1,t.graphService=n,t.selectorService=a,t.allSelected=!0;var s={tags:{visible:!1},packages:{visible:!1},resource_types:{visible:!1}};t.onWindowClick=function(e){o(e.target);var t=o(e.target).closest(".dropup");t.length||(s.tags.visible=!1,s.packages.visible=!1);var n=t.data("form-type");i.each(s,(function(e,t){t!=n&&(e.visible=!1)})),o(e.target).closest("#graph-viz-wrapper").length&&setTimeout((function(){o(":focus").blur()}))},t.onSelectClick=function(e){i.each(s,(function(t,n){n==e&&(t.visible=!t.visible,t.visible||o(":focus").blur())}))},t.isVisible=function(e){return s[e].visible},t.isSelected=function(e,t){return-1!=a.selection.dirty[e].indexOf(t)},t.onSelectAll=function(e,n,r){var i=a.selection.dirty;i[e]=n?[...a.options[e]]:[],t.allSelected=!t.allSelected,r.preventDefault()},t.onItemSelect=function(e,n,r){var o=a.selection.dirty;t.isSelected(e,n)?o[e]=i.without(o[e],n):o[e]=i.union(o[e],[n]),r.preventDefault()},t.onSelectBlur=function(e,n){n&&(n.relatedTarget&&"SELECT"!=n.relatedTarget.tagName||t.isVisible(e)&&o(n.target).focus())},t.resourceTypeTitle=function(e){return"analysis"==e?"Analyses":e[0].toUpperCase()+e.slice(1)+"s"},t.selectionLabel=function(e,t){var n=a.selection.dirty[e],r=a.options[e];return 0==n.length?"None selected":1==n.length?n[0]||t:n.length==r.length?"All selected":n.length+" selected"},t.onUpdateSelector=function(){var e=a.updateSelection(),t=n.updateGraph(e);l.track_graph_interaction("update-graph",t.length)},t.showExpanded=function(){var e=a.getViewNode(),t=e?e.name:null;if(e&&"source"==e.resource_type)var r=n.showFullGraph("source:"+e.source_name+"."+e.name);else if(e&&"exposure"==e.resource_type)r=n.showFullGraph("exposure:"+e.name);else if(e&&"metric"==e.resource_type)r=n.showFullGraph("metric:"+e.name);else r=n.showFullGraph(t);l.track_graph_interaction("show-expanded",r.length)},t.showContracted=function(){var e=a.getViewNode();if(e&&"source"==e.resource_type)var t=n.showVerticalGraph("source:"+e.source_name+"."+e.name,!0);else if(e&&"exposure"==e.resource_type)t=n.showVerticalGraph("exposure:"+e.name,!0);else if(e&&"metric"==e.resource_type)t=n.showVerticalGraph("metric:"+e.name,!0);else t=n.showVerticalGraph(e.name,!0);c.clearState(),l.track_graph_interaction("show-contracted",t.length)},t.closeGraph=function(){n.hideGraph(),c.clearState()},t.onLauncherClick=function(){var r=a.getViewNode();if(r)a.resetSelection(r),t.showContracted();else if(e.params.source){a.resetSelection(),t.showExpanded();var i=a.selectSource(e.params.source,{children:!0});setTimeout((function(){n.updateGraph(i)}))}else a.resetSelection(),t.showExpanded()},t.$watch((function(){return a.selection.dirty}),(function(e,t){if(a.isDirty()){var r=n.graph.pristine.dag,o=n.graph.pristine.nodes,s=a.selection.clean,l=a.selection.dirty,c=a.selectNodes(r,o,s),u=a.selectNodes(r,o,l),d=i.difference(c.selected,u.selected);n.markDirty(d)}else n.markAllClean()}),!0)}}}])},function(e,t){var n="/components/graph/graph-launcher.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n
{{ tag }}
\n Column | \nType | \nDescription | \nTests | \nMore? | \n
---|---|---|---|---|
\n \n {{ get_col_name(column.name) }}\n \n | \n \n {{ column.type }}\n | \n \n\n \n U\n N\n F\n A\n +\n \n | \n\n \n \n \n \n \n \n \n \n | \n|
\n \n \n \n \n\n Details\n\n \n \n \n
\n \n\n Description\n \n\n \n Generic Tests\n
| \n
\n Argument | \nType | \nDescription | \nMore? | \n
---|---|---|---|
\n \n {{ arg.name }}\n \n | \n \n {{ arg.type }}\n | \n \n\n \n \n \n \n \n \n \n \n | \n|
\n \n \n \n \n Description\n \n | \n