Skip to content

Commit

Permalink
Merge pull request #138 from rudderlabs/feat-zendeskNewResources
Browse files Browse the repository at this point in the history
feat: adds 4 streams
Triggers, Views, Automations, Ticket Events
  • Loading branch information
a-rampalli authored Jul 20, 2023
2 parents f0b5931 + 872c0eb commit 430b14a
Show file tree
Hide file tree
Showing 7 changed files with 658 additions and 83 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,18 @@
"sync_mode": "full_refresh",
"destination_sync_mode": "append"
},
{
"stream": {
"name": "ticket_events",
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["created_at"],
"source_defined_primary_key": [["id"]]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "append"
},
{
"stream": {
"name": "ticket_comments",
Expand Down Expand Up @@ -211,6 +223,42 @@
},
"sync_mode": "full_refresh",
"destination_sync_mode": "append"
},
{
"stream": {
"name": "triggers",
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["updated_at"],
"source_defined_primary_key": [["id"]]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "append"
},
{
"stream": {
"name": "views",
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["updated_at"],
"source_defined_primary_key": [["id"]]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "append"
},
{
"stream": {
"name": "automations",
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["updated_at"],
"source_defined_primary_key": [["id"]]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "append"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Automations Schema",
"type": ["null", "object"],
"additionalProperties": true,
"properties": {
"url": {
"type": ["null", "string"]
},
"id": {
"type": ["null", "number"]
},
"title": {
"type": ["null", "string"]
},
"active": {
"type": ["null", "boolean"]
},
"updated_at": {
"type": ["null", "string"],
"format": "date-time"
},
"created_at": {
"type": ["null", "string"],
"format": "date-time"
},
"default": {
"type": ["null", "boolean"]
},
"actions": {
"items": {
"properties": {
"field": {
"type": ["null", "string"]
},
"value": {
"type": ["null", "string", "array"],
"items": {
"type": ["null", "string"]
}
}
},
"type": ["null", "object"],
"additionalProperties": true
},
"type": ["null", "array"]
},
"conditions": {
"properties": {
"all": {
"items": {
"properties": {
"field": {
"type": ["null", "string"]
},
"operator": {
"type": ["null", "string"]
},
"value": {
"type": ["null", "string"]
}
}
},
"type": ["null", "array"]
},
"any": {
"items": {
"properties": {
"field": {
"type": ["null", "string"]
},
"operator": {
"type": ["null", "string"]
},
"value": {
"type": ["null", "string"]
}
}
},
"type": ["null", "array"]
}
},
"type": ["null", "object"],
"additionalProperties": true
},
"position": {
"type": ["null", "number"]
},
"raw_title": {
"type": ["null", "string"]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"properties": {
"created_at": {
"type": ["null", "string"],
"format": "date-time"
},
"timestamp": {
"type": ["null", "integer"]
},
"id": {
"type": ["null", "integer"]
},
"ticket_id": {
"type": ["null", "integer"]
},
"event_type": {
"type": ["null", "string"]
},
"via_reference_id": {
"type": ["null", "integer"]
},
"via": {
"type": ["null", "string"]
},
"comment_present": {
"type": ["null", "boolean"]
},
"comment_public": {
"type": ["null", "boolean"]
}
},
"type": ["null", "object"]
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Triggers Schema",
"type": ["null", "object"],
"additionalProperties": true,
"properties": {
"url": {
"type": ["null", "string"]
},
"id": {
"type": ["null", "number"]
},
"title": {
"type": ["null", "string"]
},
"active": {
"type": ["null", "boolean"]
},
"updated_at": {
"type": ["null", "string"],
"format": "date-time"
},
"created_at": {
"type": ["null", "string"],
"format": "date-time"
},
"default": {
"type": ["null", "boolean"]
},
"actions": {
"items": {
"properties": {
"field": {
"type": ["null", "string"]
},
"value": {
"type": ["null", "string", "array"],
"items": {
"type": ["null", "string"]
}
}
},
"type": ["null", "object"],
"additionalProperties": true
},
"type": ["null", "array"]
},
"conditions": {
"properties": {
"all": {
"items": {
"properties": {
"field": {
"type": ["null", "string"]
},
"operator": {
"type": ["null", "string"]
},
"value": {
"type": ["null", "string"]
}
}
},
"type": ["null", "array"]
},
"any": {
"items": {
"properties": {
"field": {
"type": ["null", "string"]
},
"operator": {
"type": ["null", "string"]
},
"value": {
"type": ["null", "string"]
}
}
},
"type": ["null", "array"]
}
},
"type": ["null", "object"],
"additionalProperties": true
},
"description": {
"type": ["null", "string"]
},
"position": {
"type": ["null", "number"]
},
"raw_title": {
"type": ["null", "string"]
},
"category_id": {
"type": ["null", "number"]
}
}
}
Loading

0 comments on commit 430b14a

Please sign in to comment.