From 4a10953a930f27289a5bfd37161deb3e4829ba46 Mon Sep 17 00:00:00 2001 From: marcosmarxm Date: Thu, 8 Aug 2024 09:53:51 -0300 Subject: [PATCH 1/2] add jira --- connectors/source_jira/README.md | 9 ++ connectors/source_jira/dbt_project.yml | 34 ++++++ .../models/source/issue_comments.yaml | 48 ++++++++ .../models/source/issue_fields.yaml | 45 +++++++ .../models/source/issue_priorities.yaml | 33 +++++ .../models/source/issue_resolutions.yaml | 27 +++++ .../source_jira/models/source/issues.yaml | 69 +++++++++++ .../models/source/project_components.yaml | 60 +++++++++ .../models/source/project_versions.yaml | 63 ++++++++++ .../source_jira/models/source/projects.yaml | 114 ++++++++++++++++++ .../source_jira/models/source/sprints.yaml | 45 +++++++ .../source_jira/models/source/users.yaml | 54 +++++++++ 12 files changed, 601 insertions(+) create mode 100644 connectors/source_jira/README.md create mode 100644 connectors/source_jira/dbt_project.yml create mode 100644 connectors/source_jira/models/source/issue_comments.yaml create mode 100644 connectors/source_jira/models/source/issue_fields.yaml create mode 100644 connectors/source_jira/models/source/issue_priorities.yaml create mode 100644 connectors/source_jira/models/source/issue_resolutions.yaml create mode 100644 connectors/source_jira/models/source/issues.yaml create mode 100644 connectors/source_jira/models/source/project_components.yaml create mode 100644 connectors/source_jira/models/source/project_versions.yaml create mode 100644 connectors/source_jira/models/source/projects.yaml create mode 100644 connectors/source_jira/models/source/sprints.yaml create mode 100644 connectors/source_jira/models/source/users.yaml diff --git a/connectors/source_jira/README.md b/connectors/source_jira/README.md new file mode 100644 index 00000000..bcd6b107 --- /dev/null +++ b/connectors/source_jira/README.md @@ -0,0 +1,9 @@ +# Airbyte source_jira dbt Package + +This package contains dbt models for Airbyte Jira source. + +What it includes: + +- A complete source description +- ERD model for the source +- Diagram documentation for the source diff --git a/connectors/source_jira/dbt_project.yml b/connectors/source_jira/dbt_project.yml new file mode 100644 index 00000000..41044465 --- /dev/null +++ b/connectors/source_jira/dbt_project.yml @@ -0,0 +1,34 @@ +name: source_jira + +config-version: 2 + +version: 0.1.0 + +profile: airbyte + +model-paths: + - models + +macro-paths: + - macros + +target-path: target + +clean-targets: + - target + - dbt_modules + - logs + +require-dbt-version: + - ">=1.0.0" + - <2.0.0 + +models: + source_jira: + materialized: view + staging: + materialized: view + +vars: + airbyte_database: airbyte_default_database + airbyte_schema: airbyte_default_schema diff --git a/connectors/source_jira/models/source/issue_comments.yaml b/connectors/source_jira/models/source/issue_comments.yaml new file mode 100644 index 00000000..72365d92 --- /dev/null +++ b/connectors/source_jira/models/source/issue_comments.yaml @@ -0,0 +1,48 @@ +version: 2 + +sources: + - name: source_jira + schema: "{{ var('airbyte_schema', target.schema) }}" + database: "{{ var('airbyte_database', target.database) }}" + loader: airbyte + loaded_at_field: _airbyte_extracted_at + tables: + - name: issue_comments + description: "Comments on Jira issues" + columns: + - name: self + description: "The URL of the comment" + data_type: string + - name: id + description: "The ID of the comment" + data_type: string + - name: issueId + description: "ID of the related issue" + data_type: string + - name: author + description: "The ID of the user who created the comment" + data_type: string + - name: body + description: "The comment text in Atlassian Document Format" + data_type: json + - name: renderedBody + description: "The rendered version of the comment" + data_type: string + - name: updateAuthor + description: "The ID of the user who updated the comment last" + data_type: json + - name: created + description: "The date and time at which the comment was created" + data_type: timestamp + - name: updated + description: "The date and time at which the comment was updated last" + data_type: timestamp + - name: visibility + description: "The group or role to which this item is visible" + data_type: json + - name: jsdPublic + description: "Whether the comment is visible in Jira Service Desk" + data_type: boolean + - name: properties + description: "A list of comment properties" + data_type: array diff --git a/connectors/source_jira/models/source/issue_fields.yaml b/connectors/source_jira/models/source/issue_fields.yaml new file mode 100644 index 00000000..68416444 --- /dev/null +++ b/connectors/source_jira/models/source/issue_fields.yaml @@ -0,0 +1,45 @@ +version: 2 + +sources: + - name: source_jira + schema: "{{ var('airbyte_schema', target.schema) }}" + database: "{{ var('airbyte_database', target.database) }}" + loader: airbyte + loaded_at_field: _airbyte_extracted_at + tables: + - name: issue_fields + description: "Fields associated with Jira issues" + columns: + - name: id + description: "The ID of the field" + data_type: string + - name: key + description: "The key of the field" + data_type: string + - name: name + description: "The name of the field" + data_type: string + - name: custom + description: "Whether the field is a custom field" + data_type: boolean + - name: orderable + description: "Whether the content of the field can be used to order lists" + data_type: boolean + - name: navigable + description: "Whether the field can be used as a column on the issue navigator" + data_type: boolean + - name: searchable + description: "Whether the content of the field can be searched" + data_type: boolean + - name: clauseNames + description: "The names that can be used to reference the field in an advanced search" + data_type: array + - name: scope + description: "The scope of the field" + data_type: json + - name: schema + description: "The data schema for the field" + data_type: json + - name: untranslatedName + description: "The untranslated name of the field" + data_type: string diff --git a/connectors/source_jira/models/source/issue_priorities.yaml b/connectors/source_jira/models/source/issue_priorities.yaml new file mode 100644 index 00000000..bc817342 --- /dev/null +++ b/connectors/source_jira/models/source/issue_priorities.yaml @@ -0,0 +1,33 @@ +version: 2 + +sources: + - name: source_jira + schema: "{{ var('airbyte_schema', target.schema) }}" + database: "{{ var('airbyte_database', target.database) }}" + loader: airbyte + loaded_at_field: _airbyte_extracted_at + tables: + - name: issue_priorities + description: "Details of Jira issue priorities" + columns: + - name: self + description: "The URL of the issue priority" + data_type: string + - name: statusColor + description: "The color used to indicate the issue priority" + data_type: string + - name: description + description: "The description of the issue priority" + data_type: string + - name: iconUrl + description: "The URL of the icon for the issue priority" + data_type: string + - name: name + description: "The name of the issue priority" + data_type: string + - name: id + description: "The ID of the issue priority" + data_type: string + - name: isDefault + description: "Indicates if this issue priority is the default" + data_type: boolean diff --git a/connectors/source_jira/models/source/issue_resolutions.yaml b/connectors/source_jira/models/source/issue_resolutions.yaml new file mode 100644 index 00000000..4378162c --- /dev/null +++ b/connectors/source_jira/models/source/issue_resolutions.yaml @@ -0,0 +1,27 @@ +version: 2 + +sources: + - name: source_jira + schema: "{{ var('airbyte_schema', target.schema) }}" + database: "{{ var('airbyte_database', target.database) }}" + loader: airbyte + loaded_at_field: _airbyte_extracted_at + tables: + - name: issue_resolutions + description: "Details of Jira issue resolutions" + columns: + - name: self + description: "The URL of the issue resolution" + data_type: string + - name: id + description: "The ID of the issue resolution" + data_type: string + - name: description + description: "The description of the issue resolution" + data_type: string + - name: name + description: "The name of the issue resolution" + data_type: string + - name: isDefault + description: "Indicates if this is the default issue resolution" + data_type: boolean diff --git a/connectors/source_jira/models/source/issues.yaml b/connectors/source_jira/models/source/issues.yaml new file mode 100644 index 00000000..483ac925 --- /dev/null +++ b/connectors/source_jira/models/source/issues.yaml @@ -0,0 +1,69 @@ +version: 2 + +sources: + - name: source_jira + schema: "{{ var('airbyte_schema', target.schema) }}" + database: "{{ var('airbyte_database', target.database) }}" + loader: airbyte + loaded_at_field: _airbyte_extracted_at + tables: + - name: issues + description: "Details of Jira issues" + columns: + - name: expand + description: "Expand options that include additional issue details in the response" + data_type: string + - name: id + description: "The unique ID of the issue" + data_type: string + - name: self + description: "The URL of the issue details" + data_type: string + - name: key + description: "The unique key of the issue" + data_type: string + - name: renderedFields + description: "The rendered value of each field present on the issue" + data_type: json + - name: properties + description: "Details of the issue properties identified in the request" + data_type: json + - name: names + description: "The ID and name of each field present on the issue" + data_type: json + - name: schema + description: "The schema describing each field present on the issue" + data_type: json + - name: transitions + description: "The transitions that can be performed on the issue" + data_type: json + - name: operations + description: "The operations that can be performed on the issue" + data_type: json + - name: editmeta + description: "The metadata for the fields on the issue that can be amended" + data_type: json + - name: changelog + description: "Details of changelogs associated with the issue" + data_type: json + - name: versionedRepresentations + description: "The versions of each field on the issue" + data_type: json + - name: fieldsToInclude + description: "Specify the fields to include in the fetched issues data" + data_type: json + - name: fields + description: "Details of various fields associated with the issue" + data_type: json + - name: projectId + description: "The ID of the project containing the issue" + data_type: string + - name: projectKey + description: "The key of the project containing the issue" + data_type: string + - name: created + description: "The timestamp when the issue was created" + data_type: timestamp + - name: updated + description: "The timestamp when the issue was last updated" + data_type: timestamp diff --git a/connectors/source_jira/models/source/project_components.yaml b/connectors/source_jira/models/source/project_components.yaml new file mode 100644 index 00000000..c5f92b91 --- /dev/null +++ b/connectors/source_jira/models/source/project_components.yaml @@ -0,0 +1,60 @@ +version: 2 + +sources: + - name: source_jira + schema: "{{ var('airbyte_schema', target.schema) }}" + database: "{{ var('airbyte_database', target.database) }}" + loader: airbyte + loaded_at_field: _airbyte_extracted_at + tables: + - name: project_components + description: "Components of Jira projects" + columns: + - name: self + description: "The URL of the component" + data_type: string + - name: id + description: "The unique identifier for the component" + data_type: string + - name: name + description: "The unique name for the component in the project" + data_type: string + - name: description + description: "The description for the component" + data_type: string + - name: lead + description: "The user details for the component's lead user" + data_type: json + - name: leadUserName + description: "Deprecated: The username of the component's lead user" + data_type: string + - name: leadAccountId + description: "The accountId of the component's lead user" + data_type: string + - name: assigneeType + description: "The nominal user type used to determine the assignee for issues created with this component" + data_type: string + - name: assignee + description: "The details of the user associated with assigneeType" + data_type: json + - name: realAssigneeType + description: "The type of the assignee that is assigned to issues created with this component" + data_type: string + - name: realAssignee + description: "The user assigned to issues created with this component" + data_type: json + - name: isAssigneeTypeValid + description: "Whether a user is associated with assigneeType" + data_type: boolean + - name: project + description: "The key of the project the component is assigned to" + data_type: string + - name: projectId + description: "The ID of the project the component is assigned to" + data_type: integer + - name: componentBean + description: "Contains information about the component associated with the project" + data_type: json + - name: issueCount + description: "The total count of issues related to the project component" + data_type: integer diff --git a/connectors/source_jira/models/source/project_versions.yaml b/connectors/source_jira/models/source/project_versions.yaml new file mode 100644 index 00000000..034702e9 --- /dev/null +++ b/connectors/source_jira/models/source/project_versions.yaml @@ -0,0 +1,63 @@ +version: 2 + +sources: + - name: source_jira + schema: "{{ var('airbyte_schema', target.schema) }}" + database: "{{ var('airbyte_database', target.database) }}" + loader: airbyte + loaded_at_field: _airbyte_extracted_at + tables: + - name: project_versions + description: "Details of Jira project versions" + columns: + - name: expand + description: "Use expand parameter to include additional information about the version in the response" + data_type: string + - name: self + description: "The URL of the version" + data_type: string + - name: id + description: "The unique ID of the version" + data_type: string + - name: description + description: "The description of the version" + data_type: string + - name: name + description: "The unique name assigned to the version" + data_type: string + - name: archived + description: "Indicates whether the version is archived" + data_type: boolean + - name: released + description: "Indicates whether the version has been released" + data_type: boolean + - name: startDate + description: "The start date of the version in ISO 8601 format (yyyy-mm-dd)" + data_type: date + - name: releaseDate + description: "The release date of the version in ISO 8601 format (yyyy-mm-dd)" + data_type: date + - name: overdue + description: "Indicates whether the version is overdue" + data_type: boolean + - name: userStartDate + description: "The date when work on this version is expected to begin, expressed in the instance's Day/Month/Year format" + data_type: string + - name: userReleaseDate + description: "The date when work on this version is expected to finish, expressed in the instance's Day/Month/Year format" + data_type: string + - name: project + description: "Deprecated field. Use projectId instead" + data_type: string + - name: projectId + description: "The ID of the project to which this version is connected" + data_type: integer + - name: moveUnfixedIssuesTo + description: "The URL of the self link to the version where all unfixed issues are moved when the version gets released" + data_type: string + - name: operations + description: "If 'operations' is expanded, provides a list of available operations for this version" + data_type: json + - name: issuesStatusForFixVersion + description: "If 'issuesstatus' is expanded, provides counts of issues in this version for status categories: to do, in progress, done, and unmapped" + data_type: json diff --git a/connectors/source_jira/models/source/projects.yaml b/connectors/source_jira/models/source/projects.yaml new file mode 100644 index 00000000..37fbe3eb --- /dev/null +++ b/connectors/source_jira/models/source/projects.yaml @@ -0,0 +1,114 @@ +version: 2 + +sources: + - name: source_jira + schema: "{{ var('airbyte_schema', target.schema) }}" + database: "{{ var('airbyte_database', target.database) }}" + loader: airbyte + loaded_at_field: _airbyte_extracted_at + tables: + - name: projects + description: "Details of Jira projects" + columns: + - name: expand + description: "Expand options that include additional project details in the response" + data_type: string + - name: self + description: "The URL of the project details" + data_type: string + - name: id + description: "The ID of the project" + data_type: string + - name: key + description: "The key of the project" + data_type: string + - name: description + description: "A brief description of the project" + data_type: string + - name: lead + description: "The username of the project lead" + data_type: string + - name: components + description: "List of the components contained in the project" + data_type: json + - name: issueTypes + description: "List of the issue types available in the project" + data_type: json + - name: url + description: "A link to information about this project, such as project documentation" + data_type: string + - name: email + description: "An email address associated with the project" + data_type: string + - name: assigneeType + description: "The default assignee when creating issues for this project" + data_type: string + - name: versions + description: "The versions defined in the project" + data_type: json + - name: name + description: "The name of the project" + data_type: string + - name: roles + description: "The name and self URL for each role defined in the project" + data_type: json + - name: avatarUrls + description: "The URLs of the project's avatars" + data_type: json + - name: projectCategory + description: "The category the project belongs to" + data_type: json + - name: projectTypeKey + description: "The project type of the project" + data_type: string + - name: simplified + description: "Whether the project is simplified" + data_type: boolean + - name: style + description: "The type of the project" + data_type: string + - name: favourite + description: "Whether the project is selected as a favorite" + data_type: boolean + - name: isPrivate + description: "Whether the project is private" + data_type: boolean + - name: issueTypeHierarchy + description: "The issue type hierarchy for the project" + data_type: json + - name: permissions + description: "User permissions on the project" + data_type: json + - name: properties + description: "Map of project properties" + data_type: json + - name: uuid + description: "Unique ID for next-gen projects" + data_type: string + - name: insight + description: "Insights about the project" + data_type: json + - name: deleted + description: "Whether the project is marked as deleted" + data_type: boolean + - name: retentionTillDate + description: "The date when the project is deleted permanently" + data_type: timestamp + - name: deletedDate + description: "The date when the project was marked as deleted" + data_type: timestamp + - name: deletedBy + description: "The user who marked the project as deleted" + data_type: json + - name: archived + description: "Whether the project is archived" + data_type: boolean + - name: archivedDate + description: "The date when the project was archived" + data_type: timestamp + - name: archivedBy + description: "The user who archived the project" + data_type: json + - name: entityId + description: "The unique identifier of the project entity" + data_type: string diff --git a/connectors/source_jira/models/source/sprints.yaml b/connectors/source_jira/models/source/sprints.yaml new file mode 100644 index 00000000..b656e7c3 --- /dev/null +++ b/connectors/source_jira/models/source/sprints.yaml @@ -0,0 +1,45 @@ +version: 2 + +sources: + - name: source_jira + schema: "{{ var('airbyte_schema', target.schema) }}" + database: "{{ var('airbyte_database', target.database) }}" + loader: airbyte + loaded_at_field: _airbyte_extracted_at + tables: + - name: sprints + description: "Details of Jira sprints" + columns: + - name: id + description: "The unique identifier for the sprint" + data_type: integer + - name: self + description: "The URL link to fetch more details about the sprint" + data_type: string + - name: state + description: "The current state/status of the sprint" + data_type: string + - name: name + description: "The name or title of the sprint" + data_type: string + - name: startDate + description: "The date and time when the sprint is scheduled to start" + data_type: timestamp + - name: endDate + description: "The date and time when the sprint is expected to end" + data_type: timestamp + - name: completeDate + description: "The date and time when the sprint was completed" + data_type: timestamp + - name: originBoardId + description: "The original board ID the sprint belongs to" + data_type: integer + - name: boardId + description: "Used to determine which board the sprint is a part of (Not always the same as originBoardId)" + data_type: integer + - name: goal + description: "The goal or objective of the sprint" + data_type: string + - name: createdDate + description: "The date and time when the sprint was created" + data_type: timestamp diff --git a/connectors/source_jira/models/source/users.yaml b/connectors/source_jira/models/source/users.yaml new file mode 100644 index 00000000..a0f5d220 --- /dev/null +++ b/connectors/source_jira/models/source/users.yaml @@ -0,0 +1,54 @@ +version: 2 + +sources: + - name: source_jira + schema: "{{ var('airbyte_schema', target.schema) }}" + database: "{{ var('airbyte_database', target.database) }}" + loader: airbyte + loaded_at_field: _airbyte_extracted_at + tables: + - name: users + description: "Details of Jira users" + columns: + - name: self + description: "The URL of the user" + data_type: string + - name: key + description: "Deprecated property. See the deprecation notice for details" + data_type: string + - name: accountId + description: "The account ID of the user, uniquely identifying the user across all Atlassian products" + data_type: string + - name: accountType + description: "The user account type" + data_type: string + - name: name + description: "Deprecated property. See the deprecation notice for details" + data_type: string + - name: emailAddress + description: "The email address of the user. May be null based on privacy settings" + data_type: string + - name: avatarUrls + description: "The avatars of the user" + data_type: json + - name: displayName + description: "The display name of the user. May return an alternative value based on privacy settings" + data_type: string + - name: active + description: "Indicates whether the user is active" + data_type: boolean + - name: timeZone + description: "The time zone specified in the user's profile. May be null based on privacy settings" + data_type: string + - name: locale + description: "The locale of the user. May be null based on privacy settings" + data_type: string + - name: groups + description: "The groups to which the user belongs" + data_type: json + - name: applicationRoles + description: "The application roles assigned to the user" + data_type: json + - name: expand + description: "Options to include additional user details in the response" + data_type: string From a4c5d3b2ace46c4f9090bda09614becf917b8fcb Mon Sep 17 00:00:00 2001 From: marcosmarxm Date: Thu, 8 Aug 2024 10:24:52 -0300 Subject: [PATCH 2/2] add recurly --- connectors/source_recurly/README.md | 9 ++ connectors/source_recurly/dbt_project.yml | 34 ++++++++ .../models/source/account_notes.yaml | 28 ++++++ .../source_recurly/models/source/add_ons.yaml | 46 ++++++++++ .../models/source/billing_info.yaml | 83 ++++++++++++++++++ .../source_recurly/models/source/coupons.yaml | 62 +++++++++++++ .../models/source/credit_payments.yaml | 38 ++++++++ .../models/source/export_dates.yaml | 29 +++++++ .../models/source/invoices.yaml | 80 +++++++++++++++++ .../models/source/line_items.yaml | 77 +++++++++++++++++ .../models/source/measured_units.yaml | 26 ++++++ .../source_recurly/models/source/plans.yaml | 50 +++++++++++ .../models/source/shipping_addresses.yaml | 62 +++++++++++++ .../models/source/shipping_methods.yaml | 32 +++++++ .../models/source/subscriptions.yaml | 86 +++++++++++++++++++ .../models/source/transactions.yaml | 65 ++++++++++++++ .../models/source/unique_coupons.yaml | 50 +++++++++++ 17 files changed, 857 insertions(+) create mode 100644 connectors/source_recurly/README.md create mode 100644 connectors/source_recurly/dbt_project.yml create mode 100644 connectors/source_recurly/models/source/account_notes.yaml create mode 100644 connectors/source_recurly/models/source/add_ons.yaml create mode 100644 connectors/source_recurly/models/source/billing_info.yaml create mode 100644 connectors/source_recurly/models/source/coupons.yaml create mode 100644 connectors/source_recurly/models/source/credit_payments.yaml create mode 100644 connectors/source_recurly/models/source/export_dates.yaml create mode 100644 connectors/source_recurly/models/source/invoices.yaml create mode 100644 connectors/source_recurly/models/source/line_items.yaml create mode 100644 connectors/source_recurly/models/source/measured_units.yaml create mode 100644 connectors/source_recurly/models/source/plans.yaml create mode 100644 connectors/source_recurly/models/source/shipping_addresses.yaml create mode 100644 connectors/source_recurly/models/source/shipping_methods.yaml create mode 100644 connectors/source_recurly/models/source/subscriptions.yaml create mode 100644 connectors/source_recurly/models/source/transactions.yaml create mode 100644 connectors/source_recurly/models/source/unique_coupons.yaml diff --git a/connectors/source_recurly/README.md b/connectors/source_recurly/README.md new file mode 100644 index 00000000..d2f4adf1 --- /dev/null +++ b/connectors/source_recurly/README.md @@ -0,0 +1,9 @@ +# Airbyte source_recurly dbt Package + +This package contains dbt models for Airbyte Recurly source. + +What it includes: + +- A complete source description +- ERD model for the source +- Diagram documentation for the source diff --git a/connectors/source_recurly/dbt_project.yml b/connectors/source_recurly/dbt_project.yml new file mode 100644 index 00000000..bddf50e8 --- /dev/null +++ b/connectors/source_recurly/dbt_project.yml @@ -0,0 +1,34 @@ +name: source_recurly + +config-version: 2 + +version: 0.1.0 + +profile: airbyte + +model-paths: + - models + +macro-paths: + - macros + +target-path: target + +clean-targets: + - target + - dbt_modules + - logs + +require-dbt-version: + - ">=1.0.0" + - <2.0.0 + +models: + source_recurly: + materialized: view + staging: + materialized: view + +vars: + airbyte_database: airbyte_default_database + airbyte_schema: airbyte_default_schema diff --git a/connectors/source_recurly/models/source/account_notes.yaml b/connectors/source_recurly/models/source/account_notes.yaml new file mode 100644 index 00000000..3d5ee47b --- /dev/null +++ b/connectors/source_recurly/models/source/account_notes.yaml @@ -0,0 +1,28 @@ +version: 2 +sources: + - name: account_notes + tables: + - name: account_notes + description: Metadata for account_notes + columns: + - name: id + description: Unique identifier of the note + data_type: string + - name: object + description: Type of object + data_type: string + - name: account_id + description: The ID of the account + data_type: string + - name: message + description: The content of the note + data_type: string + - name: created_by + description: The user who created the note + data_type: string + - name: created_at + description: Date and time when the note was created + data_type: string + - name: updated_at + description: Date and time when the note was last updated + data_type: string diff --git a/connectors/source_recurly/models/source/add_ons.yaml b/connectors/source_recurly/models/source/add_ons.yaml new file mode 100644 index 00000000..0962dbc0 --- /dev/null +++ b/connectors/source_recurly/models/source/add_ons.yaml @@ -0,0 +1,46 @@ +version: 2 +sources: + - name: add_ons + tables: + - name: add_ons + description: Metadata for add_ons + columns: + - name: id + description: Unique identifier of the add-on + data_type: string + - name: object + description: Type of object + data_type: string + - name: code + description: Code assigned to the add-on + data_type: string + - name: name + description: Name of the add-on + data_type: string + - name: state + description: State of the add-on + data_type: string + - name: description + description: Description of the add-on + data_type: string + - name: account_id + description: The ID of the account associated with the add-on + data_type: string + - name: created_at + description: Date and time when the add-on was created + data_type: string + - name: updated_at + description: Date and time when the add-on was last updated + data_type: string + - name: deleted_at + description: Date and time when the add-on was deleted + data_type: string + - name: item_code + description: Item code associated with the add-on + data_type: string + - name: item_id + description: Item ID associated with the add-on + data_type: string + - name: currencies + description: Currencies applicable to the add-on + data_type: array diff --git a/connectors/source_recurly/models/source/billing_info.yaml b/connectors/source_recurly/models/source/billing_info.yaml new file mode 100644 index 00000000..baacd4f5 --- /dev/null +++ b/connectors/source_recurly/models/source/billing_info.yaml @@ -0,0 +1,83 @@ +version: 2 +sources: + - name: source_recurly + schema: "{{ var('airbyte_schema', target.schema) }}" + database: "{{ var('airbyte_database', target.database) }}" + loader: airbyte + loaded_at_field: _airbyte_extracted_at + tables: + - name: billing_infos + description: Metadata for billing_infos + columns: + - name: id + description: Unique identifier of the billing information + data_type: string + - name: object + description: Type of object + data_type: string + - name: account_id + description: The ID of the account + data_type: string + - name: first_name + description: First name of the billing contact + data_type: string + - name: last_name + description: Last name of the billing contact + data_type: string + - name: company + description: Company of the billing contact + data_type: string + - name: address + description: Address of the billing contact + data_type: string + - name: city + description: City of the billing contact + data_type: string + - name: state + description: State of the billing contact + data_type: string + - name: zip + description: ZIP code of the billing contact + data_type: string + - name: country + description: Country of the billing contact + data_type: string + - name: phone + description: Phone number of the billing contact + data_type: string + - name: vat_number + description: VAT number of the billing contact + data_type: string + - name: account_number + description: Account number + data_type: string + - name: bank_code + description: Bank code + data_type: string + - name: routing_number + description: Routing number + data_type: string + - name: iban + description: IBAN + data_type: string + - name: number + description: Credit card number + data_type: string + - name: month + description: Expiry month of the credit card + data_type: string + - name: year + description: Expiry year of the credit card + data_type: string + - name: address1 + description: Address line 1 + data_type: string + - name: address2 + description: Address line 2 + data_type: string + - name: verified + description: Whether the billing information is verified + data_type: boolean + - name: payment_type + description: Type of payment method + data_type: string diff --git a/connectors/source_recurly/models/source/coupons.yaml b/connectors/source_recurly/models/source/coupons.yaml new file mode 100644 index 00000000..f87b94bf --- /dev/null +++ b/connectors/source_recurly/models/source/coupons.yaml @@ -0,0 +1,62 @@ +version: 2 +sources: + - name: source_recurly + schema: "{{ var('airbyte_schema', target.schema) }}" + database: "{{ var('airbyte_database', target.database) }}" + loader: airbyte + loaded_at_field: _airbyte_extracted_at + tables: + - name: coupons + description: Metadata for coupons + columns: + - name: id + description: Unique identifier of the coupon + data_type: string + - name: object + description: Type of object + data_type: string + - name: code + description: Code of the coupon + data_type: string + - name: name + description: Name of the coupon + data_type: string + - name: state + description: State of the coupon + data_type: string + - name: max_redemptions + description: Maximum number of redemptions + data_type: number + - name: max_redemptions_per_account + description: Maximum number of redemptions per account + data_type: number + - name: unique_coupon_codes_count + description: Count of unique coupon codes + data_type: number + - name: unique_code_template + description: Template for unique coupon codes + data_type: string + - name: unique_coupon_code + description: Unique coupon code + data_type: string + - name: duration + description: Duration of the coupon + data_type: string + - name: temporal_amount + description: Temporal amount of the coupon + data_type: number + - name: temporal_unit + description: Temporal unit of the coupon + data_type: string + - name: free_trial_unit + description: Free trial unit of the coupon + data_type: string + - name: free_trial_amount + description: Free trial amount of the coupon + data_type: number + - name: applies_to_all_plans + description: Whether the coupon applies to all plans + data_type: boolean + - name: applies_to_all_items + description: Whether the coupon applies to all items + data_type: boolean diff --git a/connectors/source_recurly/models/source/credit_payments.yaml b/connectors/source_recurly/models/source/credit_payments.yaml new file mode 100644 index 00000000..58e2b159 --- /dev/null +++ b/connectors/source_recurly/models/source/credit_payments.yaml @@ -0,0 +1,38 @@ +version: 2 +sources: + - name: source_recurly + schema: "{{ var('airbyte_schema', target.schema) }}" + database: "{{ var('airbyte_database', target.database) }}" + loader: airbyte + loaded_at_field: _airbyte_extracted_at + tables: + - name: credit_payments + description: Metadata for credit_payments + columns: + - name: id + description: Unique identifier of the credit payment + data_type: string + - name: object + description: Type of object + data_type: string + - name: account_id + description: The ID of the account associated with the credit payment + data_type: string + - name: amount + description: The amount of the credit payment + data_type: number + - name: currency + description: The currency of the credit payment + data_type: string + - name: invoice_id + description: The ID of the invoice associated with the credit payment + data_type: string + - name: created_at + description: Date and time when the credit payment was created + data_type: string + - name: updated_at + description: Date and time when the credit payment was last updated + data_type: string + - name: description + description: Description of the credit payment + data_type: string diff --git a/connectors/source_recurly/models/source/export_dates.yaml b/connectors/source_recurly/models/source/export_dates.yaml new file mode 100644 index 00000000..641d5748 --- /dev/null +++ b/connectors/source_recurly/models/source/export_dates.yaml @@ -0,0 +1,29 @@ +version: 2 +sources: + - name: source_recurly + schema: "{{ var('airbyte_schema', target.schema) }}" + database: "{{ var('airbyte_database', target.database) }}" + loader: airbyte + loaded_at_field: _airbyte_extracted_at + tables: + - name: export_dates + description: Metadata for export_dates + columns: + - name: id + description: Unique identifier of the export date + data_type: string + - name: object + description: Type of object + data_type: string + - name: account_id + description: The ID of the account associated with the export date + data_type: string + - name: export_date + description: The export date + data_type: string + - name: created_at + description: Date and time when the export date was created + data_type: string + - name: updated_at + description: Date and time when the export date was last updated + data_type: string diff --git a/connectors/source_recurly/models/source/invoices.yaml b/connectors/source_recurly/models/source/invoices.yaml new file mode 100644 index 00000000..709f93eb --- /dev/null +++ b/connectors/source_recurly/models/source/invoices.yaml @@ -0,0 +1,80 @@ +version: 2 +sources: + - name: source_recurly + schema: "{{ var('airbyte_schema', target.schema) }}" + database: "{{ var('airbyte_database', target.database) }}" + loader: airbyte + loaded_at_field: _airbyte_extracted_at + tables: + - name: invoices + description: Metadata for invoices + columns: + - name: id + description: Unique identifier of the invoice + data_type: string + - name: object + description: Type of object + data_type: string + - name: account_id + description: The ID of the account associated with the invoice + data_type: string + - name: state + description: The state of the invoice + data_type: string + - name: invoice_number + description: The invoice number + data_type: string + - name: vat_number + description: The VAT number associated with the invoice + data_type: string + - name: subtotal + description: The subtotal of the invoice + data_type: number + - name: discount + description: The discount applied to the invoice + data_type: number + - name: tax + description: The tax applied to the invoice + data_type: number + - name: total + description: The total amount of the invoice + data_type: number + - name: currency + description: The currency of the invoice + data_type: string + - name: created_at + description: Date and time when the invoice was created + data_type: string + - name: updated_at + description: Date and time when the invoice was last updated + data_type: string + - name: due_at + description: Date and time when the invoice is due + data_type: string + - name: collection_method + description: The collection method for the invoice + data_type: string + - name: net_terms + description: The net terms of the invoice + data_type: number + - name: po_number + description: The purchase order number associated with the invoice + data_type: string + - name: line_items + description: Line items of the invoice + data_type: array + - name: address + description: The address associated with the invoice + data_type: string + - name: refund + description: Refund information associated with the invoice + data_type: string + - name: customer_notes + description: Customer notes on the invoice + data_type: string + - name: terms_and_conditions + description: Terms and conditions of the invoice + data_type: string + - name: vat_reverse_charge_notes + description: VAT reverse charge notes of the invoice + data_type: string diff --git a/connectors/source_recurly/models/source/line_items.yaml b/connectors/source_recurly/models/source/line_items.yaml new file mode 100644 index 00000000..f9a980d8 --- /dev/null +++ b/connectors/source_recurly/models/source/line_items.yaml @@ -0,0 +1,77 @@ +version: 2 +sources: + - name: source_recurly + schema: "{{ var('airbyte_schema', target.schema) }}" + database: "{{ var('airbyte_database', target.database) }}" + loader: airbyte + loaded_at_field: _airbyte_extracted_at + tables: + - name: line_items + description: Metadata for line_items + columns: + - name: id + description: Unique identifier of the line item + data_type: string + - name: object + description: Type of object + data_type: string + - name: invoice_id + description: The ID of the invoice associated with the line item + data_type: string + - name: subscription_id + description: The ID of the subscription associated with the line item + data_type: string + - name: plan_id + description: The ID of the plan associated with the line item + data_type: string + - name: add_on_id + description: The ID of the add-on associated with the line item + data_type: string + - name: code + description: The code of the line item + data_type: string + - name: description + description: The description of the line item + data_type: string + - name: state + description: The state of the line item + data_type: string + - name: unit_amount + description: The unit amount of the line item + data_type: number + - name: quantity + description: The quantity of the line item + data_type: number + - name: subtotal + description: The subtotal of the line item + data_type: number + - name: discount + description: The discount applied to the line item + data_type: number + - name: tax + description: The tax applied to the line item + data_type: number + - name: total + description: The total amount of the line item + data_type: number + - name: unit_of_measure + description: The unit of measure of the line item + data_type: string + - name: created_at + description: Date and time when the line item was created + data_type: string + - name: updated_at + description: Date and time when the line item was last updated + data_type: string + - name: deleted_at + description: Date and time when the line item was deleted + data_type: string + - name: product_code + description: The product code associated with the line item + data_type: string + - name: external_account_code + description: The external account code associated with the line item + data_type: string + - name: external_account_id + description: The external account ID associated with the line item + data_type: string diff --git a/connectors/source_recurly/models/source/measured_units.yaml b/connectors/source_recurly/models/source/measured_units.yaml new file mode 100644 index 00000000..94cf0d91 --- /dev/null +++ b/connectors/source_recurly/models/source/measured_units.yaml @@ -0,0 +1,26 @@ +version: 2 +sources: + - name: source_recurly + schema: "{{ var('airbyte_schema', target.schema) }}" + database: "{{ var('airbyte_database', target.database) }}" + loader: airbyte + loaded_at_field: _airbyte_extracted_at + tables: + - name: measured_units + description: Metadata for measured_units + columns: + - name: id + description: Unique identifier of the measured unit + data_type: string + - name: object + description: Type of object + data_type: string + - name: name + description: Name of the measured unit + data_type: string + - name: display_name + description: Display name of the measured unit + data_type: string + - name: description + description: Description of the measured unit + data_type: string diff --git a/connectors/source_recurly/models/source/plans.yaml b/connectors/source_recurly/models/source/plans.yaml new file mode 100644 index 00000000..9fd0bea6 --- /dev/null +++ b/connectors/source_recurly/models/source/plans.yaml @@ -0,0 +1,50 @@ +version: 2 +sources: + - name: source_recurly + schema: "{{ var('airbyte_schema', target.schema) }}" + database: "{{ var('airbyte_database', target.database) }}" + loader: airbyte + loaded_at_field: _airbyte_extracted_at + tables: + - name: plans + description: Metadata for plans + columns: + - name: id + description: Unique identifier of the plan + data_type: string + - name: object + description: Type of object + data_type: string + - name: code + description: Code of the plan + data_type: string + - name: name + description: Name of the plan + data_type: string + - name: description + description: Description of the plan + data_type: string + - name: interval_unit + description: Interval unit of the plan + data_type: string + - name: interval_length + description: Interval length of the plan + data_type: number + - name: trial_unit + description: Trial unit of the plan + data_type: string + - name: trial_length + description: Trial length of the plan + data_type: number + - name: unit_amount + description: Unit amount of the plan + data_type: number + - name: setup_fee + description: Setup fee of the plan + data_type: number + - name: created_at + description: Date and time when the plan was created + data_type: string + - name: updated_at + description: Date and time when the plan was last updated + data_type: string diff --git a/connectors/source_recurly/models/source/shipping_addresses.yaml b/connectors/source_recurly/models/source/shipping_addresses.yaml new file mode 100644 index 00000000..781d5f40 --- /dev/null +++ b/connectors/source_recurly/models/source/shipping_addresses.yaml @@ -0,0 +1,62 @@ +version: 2 +sources: + - name: source_recurly + schema: "{{ var('airbyte_schema', target.schema) }}" + database: "{{ var('airbyte_database', target.database) }}" + loader: airbyte + loaded_at_field: _airbyte_extracted_at + tables: + - name: shipping_addresses + description: Metadata for shipping_addresses + columns: + - name: id + description: Unique identifier of the shipping address + data_type: string + - name: object + description: Type of object + data_type: string + - name: account_id + description: The ID of the account associated with the shipping address + data_type: string + - name: first_name + description: First name of the shipping address contact + data_type: string + - name: last_name + description: Last name of the shipping address contact + data_type: string + - name: company + description: Company of the shipping address contact + data_type: string + - name: email + description: Email of the shipping address contact + data_type: string + - name: phone + description: Phone number of the shipping address contact + data_type: string + - name: vat_number + description: VAT number of the shipping address contact + data_type: string + - name: address1 + description: Address line 1 of the shipping address + data_type: string + - name: address2 + description: Address line 2 of the shipping address + data_type: string + - name: city + description: City of the shipping address + data_type: string + - name: state + description: State of the shipping address + data_type: string + - name: zip + description: ZIP code of the shipping address + data_type: string + - name: country + description: Country of the shipping address + data_type: string + - name: created_at + description: Date and time when the shipping address was created + data_type: string + - name: updated_at + description: Date and time when the shipping address was last updated + data_type: string diff --git a/connectors/source_recurly/models/source/shipping_methods.yaml b/connectors/source_recurly/models/source/shipping_methods.yaml new file mode 100644 index 00000000..cfc91da0 --- /dev/null +++ b/connectors/source_recurly/models/source/shipping_methods.yaml @@ -0,0 +1,32 @@ +version: 2 +sources: + - name: source_recurly + schema: "{{ var('airbyte_schema', target.schema) }}" + database: "{{ var('airbyte_database', target.database) }}" + loader: airbyte + loaded_at_field: _airbyte_extracted_at + tables: + - name: shipping_methods + description: Metadata for shipping_methods + columns: + - name: id + description: Unique identifier of the shipping method + data_type: string + - name: object + description: Type of object + data_type: string + - name: code + description: Code of the shipping method + data_type: string + - name: name + description: Name of the shipping method + data_type: string + - name: description + description: Description of the shipping method + data_type: string + - name: created_at + description: Date and time when the shipping method was created + data_type: string + - name: updated_at + description: Date and time when the shipping method was last updated + data_type: string diff --git a/connectors/source_recurly/models/source/subscriptions.yaml b/connectors/source_recurly/models/source/subscriptions.yaml new file mode 100644 index 00000000..d97d9b47 --- /dev/null +++ b/connectors/source_recurly/models/source/subscriptions.yaml @@ -0,0 +1,86 @@ +version: 2 +sources: + - name: source_recurly + schema: "{{ var('airbyte_schema', target.schema) }}" + database: "{{ var('airbyte_database', target.database) }}" + loader: airbyte + loaded_at_field: _airbyte_extracted_at + tables: + - name: subscriptions + description: Metadata for subscriptions + columns: + - name: id + description: Unique identifier of the subscription + data_type: string + - name: object + description: Type of object + data_type: string + - name: account_id + description: The ID of the account associated with the subscription + data_type: string + - name: plan_id + description: The ID of the plan associated with the subscription + data_type: string + - name: state + description: The state of the subscription + data_type: string + - name: quantity + description: The quantity of the subscription + data_type: number + - name: unit_amount + description: The unit amount of the subscription + data_type: number + - name: setup_fee + description: The setup fee of the subscription + data_type: number + - name: tax + description: The tax applied to the subscription + data_type: number + - name: total + description: The total amount of the subscription + data_type: number + - name: currency + description: The currency of the subscription + data_type: string + - name: created_at + description: Date and time when the subscription was created + data_type: string + - name: updated_at + description: Date and time when the subscription was last updated + data_type: string + - name: trial_started_at + description: Date and time when the trial started + data_type: string + - name: trial_ends_at + description: Date and time when the trial ends + data_type: string + - name: activated_at + description: Date and time when the subscription was activated + data_type: string + - name: canceled_at + description: Date and time when the subscription was canceled + data_type: string + - name: expires_at + description: Date and time when the subscription expires + data_type: string + - name: renewal_billing_cycle + description: The renewal billing cycle of the subscription + data_type: number + - name: custom_fields + description: Custom fields associated with the subscription + data_type: array + - name: invoice + description: Invoice associated with the subscription + data_type: string + - name: dunning_campaign + description: Dunning campaign associated with the subscription + data_type: string + - name: collection_method + description: Collection method of the subscription + data_type: string + - name: paused_at + description: Date and time when the subscription was paused + data_type: string + - name: remaining_pause_cycles + description: Remaining pause cycles of the subscription + data_type: number diff --git a/connectors/source_recurly/models/source/transactions.yaml b/connectors/source_recurly/models/source/transactions.yaml new file mode 100644 index 00000000..5f73b59d --- /dev/null +++ b/connectors/source_recurly/models/source/transactions.yaml @@ -0,0 +1,65 @@ +version: 2 +sources: + - name: source_recurly + schema: "{{ var('airbyte_schema', target.schema) }}" + database: "{{ var('airbyte_database', target.database) }}" + loader: airbyte + loaded_at_field: _airbyte_extracted_at + tables: + - name: transactions + description: Metadata for transactions + columns: + - name: id + description: Unique identifier of the transaction + data_type: string + - name: object + description: Type of object + data_type: string + - name: account_id + description: The ID of the account associated with the transaction + data_type: string + - name: invoice_id + description: The ID of the invoice associated with the transaction + data_type: string + - name: type + description: The type of the transaction + data_type: string + - name: origin + description: The origin of the transaction + data_type: string + - name: currency + description: The currency of the transaction + data_type: string + - name: amount + description: The amount of the transaction + data_type: number + - name: status + description: The status of the transaction + data_type: string + - name: test + description: Whether the transaction is a test + data_type: boolean + - name: voided_at + description: Date and time when the transaction was voided + data_type: string + - name: collected_at + description: Date and time when the transaction was collected + data_type: string + - name: gateway_id + description: The gateway ID associated with the transaction + data_type: string + - name: ip_address + description: The IP address of the transaction + data_type: string + - name: gateway + description: The gateway used for the transaction + data_type: string + - name: error_code + description: The error code of the transaction + data_type: string + - name: message + description: The message associated with the transaction + data_type: string + - name: payment_method + description: The payment method used for the transaction + data_type: string diff --git a/connectors/source_recurly/models/source/unique_coupons.yaml b/connectors/source_recurly/models/source/unique_coupons.yaml new file mode 100644 index 00000000..06bf4bdf --- /dev/null +++ b/connectors/source_recurly/models/source/unique_coupons.yaml @@ -0,0 +1,50 @@ +version: 2 +sources: + - name: source_recurly + schema: "{{ var('airbyte_schema', target.schema) }}" + database: "{{ var('airbyte_database', target.database) }}" + loader: airbyte + loaded_at_field: _airbyte_extracted_at + tables: + - name: unique_coupons + description: Metadata for unique_coupons + columns: + - name: id + description: Unique identifier of the unique coupon + data_type: string + - name: object + description: Type of object + data_type: string + - name: code + description: Code of the unique coupon + data_type: string + - name: name + description: Name of the unique coupon + data_type: string + - name: state + description: State of the unique coupon + data_type: string + - name: discount + description: Discount details of the unique coupon + data_type: string + - name: applies_to_all_plans + description: Whether the unique coupon applies to all plans + data_type: boolean + - name: applies_to_all_items + description: Whether the unique coupon applies to all items + data_type: boolean + - name: max_redemptions + description: Maximum number of redemptions for the unique coupon + data_type: number + - name: max_redemptions_per_account + description: Maximum number of redemptions per account for the unique coupon + data_type: number + - name: created_at + description: Date and time when the unique coupon was created + data_type: string + - name: updated_at + description: Date and time when the unique coupon was last updated + data_type: string + - name: expired_at + description: Date and time when the unique coupon expired + data_type: string