Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

source-zendesk-support-native: new connector #2309

Merged
merged 7 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ on:
- "source-braintree-native/**"
- "source-intercom-native/**"
- "source-shopify-native/**"
- "source-zendesk-support-native/**"

pull_request:
branches: [main]
Expand Down Expand Up @@ -68,6 +69,7 @@ on:
- "source-braintree-native/**"
- "source-intercom-native/**"
- "source-shopify-native/**"
- "source-zendesk-support-native/**"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -195,6 +197,10 @@ jobs:
type: capture
version: v1
usage_rate: "1.0"
- name: source-zendesk-support-native
type: capture
version: v1
usage_rate: "1.0"

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 2 additions & 0 deletions estuary-cdk/estuary_cdk/capture/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,8 @@ async def _binding_incremental_task(
is_larger = item > state.cursor
elif isinstance(item, datetime) and isinstance(state.cursor, datetime):
is_larger = item > state.cursor
elif isinstance(item, tuple) and isinstance(state.cursor, tuple) and isinstance(item[0], str) and isinstance(state.cursor[0], str):
is_larger = item[0] > state.cursor[0]
else:
raise RuntimeError(
f"Implementation error: FetchChangesFn yielded LogCursor {item} of a different type than the last LogCursor {state.cursor}",
Expand Down
1 change: 1 addition & 0 deletions source-zendesk-support-native/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v1
41 changes: 41 additions & 0 deletions source-zendesk-support-native/acmeCo/audit_logs.schema.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
$defs:
Meta:
properties:
op:
default: u
description: "Operation type (c: Create, u: Update, d: Delete)"
enum:
- c
- u
- d
title: Op
type: string
row_id:
default: -1
description: "Row ID of the Document, counting up from zero, or -1 if not known"
title: Row Id
type: integer
title: Meta
type: object
additionalProperties: true
properties:
_meta:
$ref: "#/$defs/Meta"
default:
op: u
row_id: -1
description: Document metadata
id:
title: Id
type: integer
created_at:
format: date-time
title: Created At
type: string
required:
- id
- created_at
title: AuditLog
type: object
x-infer-schema: true
41 changes: 41 additions & 0 deletions source-zendesk-support-native/acmeCo/brands.schema.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
$defs:
Meta:
properties:
op:
default: u
description: "Operation type (c: Create, u: Update, d: Delete)"
enum:
- c
- u
- d
title: Op
type: string
row_id:
default: -1
description: "Row ID of the Document, counting up from zero, or -1 if not known"
title: Row Id
type: integer
title: Meta
type: object
additionalProperties: true
properties:
_meta:
$ref: "#/$defs/Meta"
default:
op: u
row_id: -1
description: Document metadata
id:
title: Id
type: integer
updated_at:
format: date-time
title: Updated At
type: string
required:
- id
- updated_at
title: TimestampedResource
type: object
x-infer-schema: true
66 changes: 66 additions & 0 deletions source-zendesk-support-native/acmeCo/flow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---
collections:
acmeCo/audit_logs:
schema: audit_logs.schema.yaml
key:
- /id
acmeCo/brands:
schema: brands.schema.yaml
key:
- /id
acmeCo/groups:
schema: groups.schema.yaml
key:
- /id
acmeCo/macros:
schema: macros.schema.yaml
key:
- /id
acmeCo/organization_memberships:
schema: organization_memberships.schema.yaml
key:
- /id
acmeCo/satisfaction_ratings:
schema: satisfaction_ratings.schema.yaml
key:
- /id
acmeCo/tags:
schema: tags.schema.yaml
key:
- /_meta/row_id
acmeCo/ticket_audits:
schema: ticket_audits.schema.yaml
key:
- /id
acmeCo/ticket_comments:
schema: ticket_comments.schema.yaml
key:
- /id
acmeCo/ticket_fields:
schema: ticket_fields.schema.yaml
key:
- /id
acmeCo/ticket_metric_events:
schema: ticket_metric_events.schema.yaml
key:
- /id
acmeCo/ticket_metrics:
schema: ticket_metrics.schema.yaml
key:
- /id
acmeCo/ticket_metrics_events:
schema: ticket_metrics_events.schema.yaml
key:
- /id
acmeCo/ticket_skips:
schema: ticket_skips.schema.yaml
key:
- /id
acmeCo/tickets:
schema: tickets.schema.yaml
key:
- /id
acmeCo/users:
schema: users.schema.yaml
key:
- /id
41 changes: 41 additions & 0 deletions source-zendesk-support-native/acmeCo/groups.schema.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
$defs:
Meta:
properties:
op:
default: u
description: "Operation type (c: Create, u: Update, d: Delete)"
enum:
- c
- u
- d
title: Op
type: string
row_id:
default: -1
description: "Row ID of the Document, counting up from zero, or -1 if not known"
title: Row Id
type: integer
title: Meta
type: object
additionalProperties: true
properties:
_meta:
$ref: "#/$defs/Meta"
default:
op: u
row_id: -1
description: Document metadata
id:
title: Id
type: integer
updated_at:
format: date-time
title: Updated At
type: string
required:
- id
- updated_at
title: TimestampedResource
type: object
x-infer-schema: true
41 changes: 41 additions & 0 deletions source-zendesk-support-native/acmeCo/macros.schema.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
$defs:
Meta:
properties:
op:
default: u
description: "Operation type (c: Create, u: Update, d: Delete)"
enum:
- c
- u
- d
title: Op
type: string
row_id:
default: -1
description: "Row ID of the Document, counting up from zero, or -1 if not known"
title: Row Id
type: integer
title: Meta
type: object
additionalProperties: true
properties:
_meta:
$ref: "#/$defs/Meta"
default:
op: u
row_id: -1
description: Document metadata
id:
title: Id
type: integer
updated_at:
format: date-time
title: Updated At
type: string
required:
- id
- updated_at
title: TimestampedResource
type: object
x-infer-schema: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
$defs:
Meta:
properties:
op:
default: u
description: "Operation type (c: Create, u: Update, d: Delete)"
enum:
- c
- u
- d
title: Op
type: string
row_id:
default: -1
description: "Row ID of the Document, counting up from zero, or -1 if not known"
title: Row Id
type: integer
title: Meta
type: object
additionalProperties: true
properties:
_meta:
$ref: "#/$defs/Meta"
default:
op: u
row_id: -1
description: Document metadata
id:
title: Id
type: integer
updated_at:
format: date-time
title: Updated At
type: string
required:
- id
- updated_at
title: TimestampedResource
type: object
x-infer-schema: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
$defs:
Meta:
properties:
op:
default: u
description: "Operation type (c: Create, u: Update, d: Delete)"
enum:
- c
- u
- d
title: Op
type: string
row_id:
default: -1
description: "Row ID of the Document, counting up from zero, or -1 if not known"
title: Row Id
type: integer
title: Meta
type: object
additionalProperties: true
properties:
_meta:
$ref: "#/$defs/Meta"
default:
op: u
row_id: -1
description: Document metadata
id:
title: Id
type: integer
required:
- id
title: ZendeskResource
type: object
x-infer-schema: true
31 changes: 31 additions & 0 deletions source-zendesk-support-native/acmeCo/tags.schema.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
$defs:
Meta:
properties:
op:
default: u
description: "Operation type (c: Create, u: Update, d: Delete)"
enum:
- c
- u
- d
title: Op
type: string
row_id:
default: -1
description: "Row ID of the Document, counting up from zero, or -1 if not known"
title: Row Id
type: integer
title: Meta
type: object
additionalProperties: true
properties:
_meta:
$ref: "#/$defs/Meta"
default:
op: u
row_id: -1
description: Document metadata
title: FullRefreshResource
type: object
x-infer-schema: true
Loading
Loading