Skip to content

Commit

Permalink
Source Timely: fix timely tests (#31745)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosmarxm committed Oct 23, 2023
1 parent 544aed4 commit 3acc905
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 17 deletions.
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-timely/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ COPY source_timely ./source_timely
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.1.0
LABEL io.airbyte.version=0.2.0
LABEL io.airbyte.name=airbyte/source-timely
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ data:
connectorSubtype: api
connectorType: source
definitionId: bc617b5f-1b9e-4a2d-bebe-782fd454a771
dockerImageTag: 0.1.0
dockerImageTag: 0.2.0
dockerRepository: airbyte/source-timely
githubIssueLabel: source-timely
icon: timely.svg
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": true,
"properties": {
"invoice_id": {
"type": ["null", "string"]
Expand All @@ -11,6 +12,19 @@
"locked": {
"type": ["null", "boolean"]
},
"creator_id": {
"type": ["null", "integer"]
},
"state": {
"type": ["null", "object"],
"additionalProperties": true
},
"timestamps": {
"type": ["null", "array"],
"items": {
"type": ["null", "string"]
}
},
"created_id": {
"type": ["null", "integer"]
},
Expand All @@ -26,7 +40,8 @@
"airbyte_type": "timestamp_with_timezone"
},
"estimated_cost": {
"type": "object",
"type": ["null", "object"],
"additionalProperties": true,
"properties": {
"amount": {
"type": ["null", "number"]
Expand All @@ -46,13 +61,19 @@
"type": ["null", "integer"]
},
"label_ids": {
"type": ["null", "array"]
"type": ["null", "array"],
"items": {
"type": ["null", "string"]
}
},
"forecast_id": {
"type": ["null", "string"]
},
"user_ids": {
"type": ["null", "array"]
"type": ["null", "array"],
"items": {
"type": ["null", "string"]
}
},
"timer_stopped_on": {
"type": ["null", "integer"]
Expand All @@ -65,7 +86,8 @@
"type": ["null", "integer"]
},
"cost": {
"type": "object",
"type": ["null", "object"],
"additionalProperties": true,
"properties": {
"amount": {
"type": ["null", "number"]
Expand All @@ -90,13 +112,20 @@
"type": ["null", "integer"]
},
"project": {
"type": "object",
"type": ["null", "object"],
"additionalProperties": true,
"properties": {
"required_label_ids": {
"type": ["null", "array"]
"type": ["null", "array"],
"items": {
"type": ["null", "string"]
}
},
"labels": {
"type": ["null", "array"]
"type": ["null", "array"],
"items": {
"type": ["null", "string"]
}
},
"invoice_by_budget": {
"type": ["null", "boolean"]
Expand All @@ -123,7 +152,10 @@
"type": ["null", "boolean"]
},
"label_ids": {
"type": ["null", "array"]
"type": ["null", "array"],
"items": {
"type": ["null", "string"]
}
},
"enable_labels": {
"type": ["null", "string"]
Expand All @@ -135,7 +167,8 @@
"type": ["null", "boolean"]
},
"client": {
"type": "object",
"type": ["null", "object"],
"additionalProperties": true,
"properties": {
"external_id": {
"type": ["null", "string"]
Expand Down Expand Up @@ -195,7 +228,8 @@
}
},
"user": {
"type": "object",
"type": ["null", "object"],
"additionalProperties": true,
"properties": {
"name": {
"type": ["null", "string"]
Expand All @@ -209,7 +243,8 @@
"airbyte_type": "timestamp_with_timezone"
},
"avatar": {
"type": "object",
"type": ["null", "object"],
"additionalProperties": true,
"properties": {
"medium": {
"type": ["null", "string"]
Expand Down Expand Up @@ -240,7 +275,8 @@
"type": ["null", "string"]
},
"estimated_duration": {
"type": "object",
"type": ["null", "object"],
"additionalProperties": true,
"properties": {
"total_minutes": {
"type": ["null", "integer"]
Expand Down Expand Up @@ -286,7 +322,8 @@
"type": ["null", "integer"]
},
"duration": {
"type": "object",
"type": ["null", "object"],
"additionalProperties": true,
"properties": {
"total_minutes": {
"type": ["null", "integer"]
Expand Down Expand Up @@ -321,7 +358,10 @@
"type": ["null", "string"]
},
"entry_ids": {
"type": ["null", "array"]
"type": ["null", "array"],
"items": {
"type": ["null", "string"]
}
},
"hour_rate": {
"type": ["null", "number"]
Expand All @@ -334,6 +374,9 @@
},
"timer_started_on": {
"type": ["null", "integer"]
},
"updated_at": {
"type": ["null", "integer"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"title": "Timely Integration Spec",
"type": "object",
"required": ["account_id", "start_date", "bearer_token"],
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"account_id": {
"title": "account_id",
Expand Down
1 change: 1 addition & 0 deletions docs/integrations/sources/timely.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ The Timely source connector supports the following [sync modes](https://docs.air

| Version | Date | Pull Request | Subject |
| :------ | :--------- | :------------------------------------------------------- | :-------------- |
| 0.2.0 | 2023-10-23 | [13617](https://github.com/airbytehq/airbyte/pull/13617) | Fix schemas |
| 0.1.0 | 2022-06-22 | [13617](https://github.com/airbytehq/airbyte/pull/13617) | Initial release |

0 comments on commit 3acc905

Please sign in to comment.