Skip to content

Commit

Permalink
source-front: rewrite as native connector
Browse files Browse the repository at this point in the history
The `source-front` connector was not working correctly as an import.
Instead of troubleshooting the low-code import, I chose to rewrite it
as a native connector.

Backwards compatibility with the sole existing (non-working) capture was
not a goal. I focused on just parent streams that seemed most important
for the user's use case, and we can add more later as needed.
  • Loading branch information
Alex-Bair committed Nov 14, 2024
1 parent 41b6d58 commit 254e9bf
Show file tree
Hide file tree
Showing 26 changed files with 1,375 additions and 5,730 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ jobs:
usage_rate: "1.0"
- name: source-front
type: capture
version: v2
version: v3
usage_rate: "1.0"
- name: source-genesys
type: capture
Expand Down
1 change: 1 addition & 0 deletions source-front/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v3
31 changes: 31 additions & 0 deletions source-front/acmeCo/channels.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: FrontResource
type: object
x-infer-schema: true
40 changes: 40 additions & 0 deletions source-front/acmeCo/contacts.schema.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
$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: string
updated_at:
title: Updated At
type: number
required:
- id
- updated_at
title: Contact
type: object
x-infer-schema: true
36 changes: 36 additions & 0 deletions source-front/acmeCo/conversations.schema.yaml
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: string
required:
- id
title: Conversation
type: object
x-infer-schema: true
40 changes: 40 additions & 0 deletions source-front/acmeCo/events.schema.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
$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: string
emitted_at:
title: Emitted At
type: number
required:
- id
- emitted_at
title: Event
type: object
x-infer-schema: true
Loading

0 comments on commit 254e9bf

Please sign in to comment.