Skip to content

Commit

Permalink
source-harvest: ensure inline schemas, updated cdk, poetry (where pos…
Browse files Browse the repository at this point in the history
…sible) (#36641)

Co-authored-by: Serhii Lazebnyi <53845333+lazebnyi@users.noreply.github.com>
  • Loading branch information
bleonard and lazebnyi authored May 7, 2024
1 parent 1de4201 commit 6b87ee2
Show file tree
Hide file tree
Showing 36 changed files with 521 additions and 9 deletions.
10 changes: 8 additions & 2 deletions airbyte-integrations/connectors/source-harvest/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ data:
connectorSubtype: api
connectorType: source
definitionId: fe2b4084-3386-4d3b-9ad6-308f61a6f1e6
dockerImageTag: 1.0.0
dockerImageTag: 1.0.1
dockerRepository: airbyte/source-harvest
documentationUrl: https://docs.airbyte.com/integrations/sources/harvest
githubIssueLabel: source-harvest
Expand All @@ -30,7 +30,13 @@ data:
releases:
breakingChanges:
1.0.0:
message: "Several changes have been made to the Harvest connector. This update requires a reset for the following streams to due an update in the format of state: `expenses_clients`, `expenses_categories`, `expenses_projects`, `expenses_team`, `time_clients`, `time_projects`, `time_tasks`, `time_team`, `uninvoiced`, `estimate_messages`, `invoice_payments`, `invoice_messages`, `project_assignments`."
message:
"Several changes have been made to the Harvest connector. This update
requires a reset for the following streams to due an update in the format
of state: `expenses_clients`, `expenses_categories`, `expenses_projects`,
`expenses_team`, `time_clients`, `time_projects`, `time_tasks`, `time_team`,
`uninvoiced`, `estimate_messages`, `invoice_payments`, `invoice_messages`,
`project_assignments`."
upgradeDeadline: "2024-04-29"
scopedImpact:
- scopeType: stream
Expand Down
10 changes: 5 additions & 5 deletions airbyte-integrations/connectors/source-harvest/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions airbyte-integrations/connectors/source-harvest/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
version = "1.0.0"
version = "1.0.1"
name = "source-harvest"
description = "Source implementation for Harvest."
authors = [ "Airbyte <contact@airbyte.io>",]
Expand All @@ -17,7 +17,7 @@ include = "source_harvest"

[tool.poetry.dependencies]
python = "^3.9,<3.12"
airbyte-cdk = "^0"
airbyte-cdk = "0.80.0"

[tool.poetry.scripts]
source-harvest = "source_harvest.run:run"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,34 @@
"type": "object",
"properties": {
"id": {
"description": "The unique identifier for this billable rate.",
"type": ["null", "integer"]
},
"parent_id": {
"description": "The identifier of the parent resource associated with this rate.",
"type": "integer"
},
"amount": {
"description": "The billable amount associated with this rate.",
"type": ["null", "number"]
},
"start_date": {
"description": "The start date for this billable rate period.",
"type": ["null", "string"],
"format": "date"
},
"end_date": {
"description": "The end date for this billable rate period.",
"type": ["null", "string"],
"format": "date"
},
"created_at": {
"description": "The date and time when this rate was created.",
"type": ["null", "string"],
"format": "date-time"
},
"updated_at": {
"description": "The date and time when this rate was last updated.",
"type": ["null", "string"],
"format": "date-time"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,37 @@
"type": "object",
"properties": {
"id": {
"description": "Unique identifier for the client.",
"type": ["null", "integer"]
},
"name": {
"description": "The client's name.",
"type": ["null", "string"]
},
"is_active": {
"description": "Indicates whether the client is currently active or not.",
"type": ["null", "boolean"]
},
"address": {
"description": "The client's postal address.",
"type": ["null", "string"]
},
"statement_key": {
"description": "Key used for client's statements or invoices.",
"type": ["null", "string"]
},
"created_at": {
"description": "The date and time when the client record was created.",
"type": ["null", "string"],
"format": "date-time"
},
"updated_at": {
"description": "The date and time when the client record was last updated.",
"type": ["null", "string"],
"format": "date-time"
},
"currency": {
"description": "The currency used by the client.",
"type": ["null", "string"]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,54 +3,71 @@
"type": "object",
"properties": {
"base_uri": {
"description": "The base URI used in constructing URLs for this company.",
"type": ["null", "string"]
},
"full_domain": {
"description": "The full domain name associated with this company.",
"type": ["null", "string"]
},
"name": {
"description": "The name of the company.",
"type": ["null", "string"]
},
"is_active": {
"description": "Indicates if the company is currently active.",
"type": ["null", "boolean"]
},
"week_start_day": {
"description": "The day considered the start of the week for this company.",
"type": ["null", "string"]
},
"wants_timestamp_timers": {
"description": "Indicates if the company wants timestamp timers displayed.",
"type": ["null", "boolean"]
},
"time_format": {
"description": "The format used to display time.",
"type": ["null", "string"]
},
"plan_type": {
"description": "The type of plan subscribed by the company.",
"type": ["null", "string"]
},
"expense_feature": {
"description": "Indicates if the expense feature is enabled for this company.",
"type": ["null", "boolean"]
},
"invoice_feature": {
"description": "Indicates if the invoice feature is enabled for this company.",
"type": ["null", "boolean"]
},
"estimate_feature": {
"description": "Indicates if the estimate feature is enabled for this company.",
"type": ["null", "boolean"]
},
"approval_required": {
"description": "Indicates if approval is required for certain actions.",
"type": ["null", "boolean"]
},
"clock": {
"description": "The clock configuration for time tracking.",
"type": ["null", "string"]
},
"decimal_symbol": {
"description": "The symbol used to separate the integer part from the fractional part of a number.",
"type": ["null", "string"]
},
"thousands_separator": {
"description": "The symbol used to separate thousands in a number.",
"type": ["null", "string"]
},
"color_scheme": {
"description": "The color scheme used in the user interface.",
"type": ["null", "string"]
},
"weekly_capacity": {
"description": "The weekly capacity setting for this company.",
"type": ["null", "integer"]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,44 +3,57 @@
"type": "object",
"properties": {
"id": {
"description": "Unique identifier for the contact",
"type": ["null", "integer"]
},
"title": {
"description": "Job title of the contact",
"type": ["null", "string"]
},
"first_name": {
"description": "First name of the contact",
"type": ["null", "string"]
},
"last_name": {
"description": "Last name of the contact",
"type": ["null", "string"]
},
"email": {
"description": "Email address of the contact",
"type": ["null", "string"]
},
"phone_office": {
"description": "Office phone number of the contact",
"type": ["null", "string"]
},
"phone_mobile": {
"description": "Mobile phone number of the contact",
"type": ["null", "string"]
},
"fax": {
"description": "Fax number of the contact",
"type": ["null", "string"]
},
"created_at": {
"description": "Timestamp of when the contact was created",
"type": ["null", "string"],
"format": "date-time"
},
"updated_at": {
"description": "Timestamp of when the contact was last updated",
"type": ["null", "string"],
"format": "date-time"
},
"client": {
"description": "Details of the client associated with the contact",
"type": ["null", "object"],
"properties": {
"id": {
"description": "Unique identifier for the client",
"type": ["null", "integer"]
},
"name": {
"description": "Name of the client",
"type": ["null", "string"]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,34 @@
"type": "object",
"properties": {
"id": {
"description": "The unique identifier for this cost rate entry.",
"type": ["null", "integer"]
},
"parent_id": {
"description": "The parent identifier if this cost rate is a child entry.",
"type": "integer"
},
"amount": {
"description": "The cost rate amount associated with this data entry.",
"type": ["null", "number"]
},
"start_date": {
"description": "The start date from which the cost rate is valid. Only applicable for intervals.",
"type": ["null", "string"],
"format": "date"
},
"end_date": {
"description": "The end date for which the cost rate is valid. Only applicable for intervals.",
"type": ["null", "string"],
"format": "date"
},
"created_at": {
"description": "The timestamp indicating when this cost rate entry was created.",
"type": ["null", "string"],
"format": "date-time"
},
"updated_at": {
"description": "The timestamp for the last update made to this cost rate entry.",
"type": ["null", "string"],
"format": "date-time"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,20 @@
"type": "object",
"properties": {
"id": {
"description": "The unique identifier for the estimate item category.",
"type": ["null", "integer"]
},
"name": {
"description": "The name of the estimate item category.",
"type": ["null", "string"]
},
"created_at": {
"description": "The date and time when the estimate item category was created.",
"type": ["null", "string"],
"format": "date-time"
},
"updated_at": {
"description": "The date and time when the estimate item category was last updated.",
"type": ["null", "string"],
"format": "date-time"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,55 +3,70 @@
"type": "object",
"properties": {
"id": {
"description": "The unique identifier for the message.",
"type": ["null", "integer"]
},
"parent_id": {
"description": "The identifier of the parent message, if this is a reply.",
"type": "integer"
},
"sent_by": {
"description": "The name of the user who sent the message.",
"type": ["null", "string"]
},
"sent_by_email": {
"description": "The email address of the user who sent the message.",
"type": ["null", "string"]
},
"sent_from": {
"description": "The name displayed as the sender.",
"type": ["null", "string"]
},
"sent_from_email": {
"description": "The email address displayed as the sender.",
"type": ["null", "string"]
},
"send_me_a_copy": {
"description": "Indicates if the sender requested a copy of the message.",
"type": ["null", "boolean"]
},
"created_at": {
"description": "The date and time when the message was created.",
"type": ["null", "string"],
"format": "date-time"
},
"updated_at": {
"description": "The date and time when the message was last updated.",
"type": ["null", "string"],
"format": "date-time"
},
"recipients": {
"description": "Details of the recipients of the message.",
"type": ["null", "array"],
"items": {
"properties": {
"email": {
"description": "The email address of a recipient.",
"type": ["string", "null"]
},
"name": {
"description": "The name of a recipient.",
"type": ["string", "null"]
}
},
"type": "object"
}
},
"event_type": {
"description": "The type of event associated with the message.",
"type": ["null", "string"]
},
"subject": {
"description": "The subject or title of the message.",
"type": ["null", "string"]
},
"body": {
"description": "The main content of the message.",
"type": ["null", "string"]
}
}
Expand Down
Loading

0 comments on commit 6b87ee2

Please sign in to comment.