Skip to content

Commit

Permalink
source-intercom: ensure inline schemas, updated cdk, poetry (where po…
Browse files Browse the repository at this point in the history
…ssible) (#36644)

Co-authored-by: Serhii Lazebnyi <53845333+lazebnyi@users.noreply.github.com>
Co-authored-by: Serhii Lazebnyi <serhii.lazebnyi@globallogic.com>
  • Loading branch information
3 people authored May 10, 2024
1 parent 9586894 commit 2453122
Show file tree
Hide file tree
Showing 18 changed files with 2,458 additions and 1,541 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ data:
connectorSubtype: api
connectorType: source
definitionId: d8313939-3782-41b0-be29-b3ca20d8dd3a
dockerImageTag: 0.6.3
dockerImageTag: 0.6.5
dockerRepository: airbyte/source-intercom
documentationUrl: https://docs.airbyte.com/integrations/sources/intercom
githubIssueLabel: source-intercom
Expand Down
471 changes: 375 additions & 96 deletions airbyte-integrations/connectors/source-intercom/poetry.lock

Large diffs are not rendered by default.

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 = "0.6.3"
version = "0.6.5"
name = "source-intercom"
description = "Source implementation for Intercom Yaml."
authors = [ "Airbyte <contact@airbyte.io>",]
Expand All @@ -17,7 +17,7 @@ include = "source_intercom"

[tool.poetry.dependencies]
python = "^3.9,<3.12"
airbyte-cdk = ">=0.62.0"
airbyte-cdk = "0.86.3"

[tool.poetry.scripts]
source-intercom = "source_intercom.run:run"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def observe(self, stream_slice: StreamSlice, record: Record) -> None:
if self.is_greater_than_or_equal(record, self._state):
self._cursor = record_cursor_value

def close_slice(self, stream_slice: StreamSlice) -> None:
def close_slice(self, stream_slice: StreamSlice, *args: Any) -> None:
cursor_field = self.cursor_field.eval(self.config)
self._state[cursor_field] = self._cursor

Expand Down Expand Up @@ -178,8 +178,8 @@ def observe(self, stream_slice: StreamSlice, record: Record) -> None:
# observe the substream
super().observe(stream_slice, record)

def close_slice(self, stream_slice: StreamSlice) -> None:
super().close_slice(stream_slice=stream_slice)
def close_slice(self, stream_slice: StreamSlice, *args: Any) -> None:
super().close_slice(stream_slice, *args)

def stream_slices(self) -> Iterable[Mapping[str, Any]]:
parent_state = (self._state or {}).get(self.parent_stream_name, {})
Expand Down
Loading

0 comments on commit 2453122

Please sign in to comment.