Skip to content

Commit

Permalink
fixed freshdesk
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucie Milan committed Oct 23, 2023
1 parent 2a71140 commit 42e3c7f
Show file tree
Hide file tree
Showing 15 changed files with 107 additions and 1,214 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
tap: freshdesk
version: '1'
version: '0'
keys:
agents_agent_id:
- table: agents
keys:
- id
- table: groups
keys:
- agent_ids.value
- agent_ids
- table: satisfaction_ratings
keys:
- agent_id
Expand Down Expand Up @@ -45,9 +45,6 @@ keys:
- table: tickets
keys:
- group_id
- table: time_entries
keys:
- group_id
roles_role_id:
- table: agents
keys:
Expand Down Expand Up @@ -79,7 +76,7 @@ tables:
- table-name: groups
keys:
- key: id
foreign-key: agent_ids.value
foreign-key: agent_ids
- key: group_ids.type
foreign-key: id
- table-name: satisfaction_ratings
Expand All @@ -98,8 +95,6 @@ tables:
keys:
- key: id
foreign-key: agent_id
- key: group_ids.type
foreign-key: group_id
- table-name: roles
keys:
- key: role_ids.type
Expand All @@ -108,28 +103,26 @@ tables:
join:
- table-name: agents
keys:
- key: agent_ids.value
- key: agent_ids
foreign-key: id
- key: id
foreign-key: group_ids.type
- table-name: satisfaction_ratings
keys:
- key: agent_ids.value
- key: agent_ids
foreign-key: agent_id
- key: id
foreign-key: group_id
- table-name: tickets
keys:
- key: agent_ids.value
- key: agent_ids
foreign-key: responder_id
- key: id
foreign-key: group_id
- table-name: time_entries
keys:
- key: agent_ids.value
- key: agent_ids
foreign-key: agent_id
- key: id
foreign-key: group_id
- table-name: satisfaction_ratings
join:
- table-name: agents
Expand All @@ -141,7 +134,7 @@ tables:
- table-name: groups
keys:
- key: agent_id
foreign-key: agent_ids.value
foreign-key: agent_ids
- key: group_id
foreign-key: id
- table-name: tickets
Expand All @@ -156,8 +149,6 @@ tables:
keys:
- key: agent_id
foreign-key: agent_id
- key: group_id
foreign-key: group_id
- table-name: conversations
keys:
- key: ticket_id
Expand All @@ -173,7 +164,7 @@ tables:
- table-name: groups
keys:
- key: responder_id
foreign-key: agent_ids.value
foreign-key: agent_ids
- key: group_id
foreign-key: id
- table-name: satisfaction_ratings
Expand All @@ -188,8 +179,6 @@ tables:
keys:
- key: responder_id
foreign-key: agent_id
- key: group_id
foreign-key: group_id
- table-name: companies
keys:
- key: company_id
Expand All @@ -204,26 +193,18 @@ tables:
keys:
- key: agent_id
foreign-key: id
- key: group_id
foreign-key: group_ids.type
- table-name: groups
keys:
- key: agent_id
foreign-key: agent_ids.value
- key: group_id
foreign-key: id
foreign-key: agent_ids
- table-name: satisfaction_ratings
keys:
- key: agent_id
foreign-key: agent_id
- key: group_id
foreign-key: group_id
- table-name: tickets
keys:
- key: agent_id
foreign-key: responder_id
- key: group_id
foreign-key: group_id
- table-name: companies
join:
- table-name: tickets
Expand Down
18 changes: 0 additions & 18 deletions _data/taps/schemas/freshdesk/v0/freshdesk-v0-issues.txt

This file was deleted.

150 changes: 93 additions & 57 deletions _data/taps/schemas/freshdesk/v0/freshdesk-v0-tables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,83 +2,119 @@ tap: freshdesk
version: '0'
tables:
- name: agents
description: ''
description: 'The `{{ table.name }}` table contains info about the agents in your
{{ integration.display_name }} account.
'
links:
singer-schema: ''
doc-link: ''
doc-link: https://developers.freshdesk.com/api/#agents
singer-schema: https://github.com/singer-io/tap-freshdesk/blob/master/tap_freshdesk/schemas/agents.json
api-method: https://developers.freshdesk.com/api/#list_all_agents
table-details:
replication-method: ''
primary-key: ''
replication-key: ''
replication-method: Key-based Incremental
primary-key: id
replication-key: updated_at
- name: companies
description: ''
description: 'The `{{ table.name }}` table contains info about the companies your
various customers and contacts belong to.
#### Custom Fields
If applicable, Stitch will replicate custom fields related to `{{ table.name }}`
in {{ integration.display_name }}.
'
links:
singer-schema: ''
doc-link: ''
doc-link: https://developers.freshdesk.com/api/#companies
api-method: https://developers.freshdesk.com/api/#list_all_companies
table-details:
replication-method: ''
primary-key: ''
replication-key: ''
- name: contacts
description: ''
links:
singer-schema: ''
doc-link: ''
table-details:
replication-method: ''
primary-key: ''
replication-key: ''
replication-method: Key-based Incremental
primary-key: id
replication-key: updated_at
- name: conversations
description: ''
description: 'The `{{ table.name }}` table contains info about replies and public/private
notes added to the tickets in your {{ integration.display_name }} account.
'
links:
singer-schema: ''
doc-link: ''
doc-link: https://developers.freshdesk.com/api/#conversations
singer-schema: https://github.com/singer-io/tap-freshdesk/blob/master/tap_freshdesk/schemas/conversations.json
api-method: https://developers.freshdesk.com/api/#list_all_ticket_notes
table-details:
replication-method: ''
primary-key: ''
replication-key: ''
replication-method: Key-based Incremental
primary-key: id
replication-key: updated_at
- name: groups
description: ''
description: 'The `{{ table.name }}` table contains info about the groups your agents
belong to.
'
links:
singer-schema: ''
doc-link: ''
doc-link: https://developers.freshdesk.com/api/#groups
singer-schema: https://github.com/singer-io/tap-freshdesk/blob/master/tap_freshdesk/schemas/groups.json
api-method: https://developers.freshdesk.com/api/#list_all_groups
table-details:
replication-method: ''
primary-key: ''
replication-key: ''
replication-method: Key-based Incremental
primary-key: id
replication-key: updated_at
- name: roles
description: ''
description: 'The `{{ table.name }}` table contains info about the various roles
that can be assigned to team members in your {{ integration.display_name }} account.
'
links:
singer-schema: ''
doc-link: ''
doc-link: https://developers.freshdesk.com/api/#roles
singer-schema: https://github.com/singer-io/tap-freshdesk/blob/master/tap_freshdesk/schemas/roles.json
api-method: https://developers.freshdesk.com/api/#list_all_roles
table-details:
replication-method: ''
primary-key: ''
replication-key: ''
replication-method: Key-based Incremental
primary-key: id
replication-key: updated_at
- name: satisfaction_ratings
description: ''
description: 'The `{{ table.name }}` table contains info about customer satisfaction
survey responses, or satisfaction ratings.
'
links:
singer-schema: ''
doc-link: ''
doc-link: https://developers.freshdesk.com/api/#satisfaction-ratings
singer-schema: https://github.com/singer-io/tap-freshdesk/blob/master/tap_freshdesk/schemas/satisfaction_ratings.json
api-method: https://developers.freshdesk.com/api/#view_all_satisfaction_ratings
table-details:
replication-method: ''
primary-key: ''
replication-key: ''
replication-method: Key-based Incremental
primary-key: id
replication-key: updated_at
- name: tickets
description: ''
description: 'The `tickets` table contains info about the tickets in your {{ integration.display_name
}} account.
#### Custom Fields
If applicable, Stitch will replicate custom fields related to `tickets` in {{
integration.display_name }}.
'
links:
singer-schema: ''
doc-link: ''
doc-link: https://developers.freshdesk.com/api/#tickets
singer-schema: https://github.com/singer-io/tap-freshdesk/blob/master/tap_freshdesk/schemas/tickets.json
api-method: https://developers.freshdesk.com/api/#tickets
table-details:
replication-method: ''
primary-key: ''
replication-key: ''
replication-method: Key-based Incremental
primary-key: id
replication-key: updated_at
- name: time_entries
description: ''
description: 'The `time_entries` table contains info about the time entries entered
by agents working on tickets.
'
links:
singer-schema: ''
doc-link: ''
doc-link: https://developers.freshdesk.com/api/#time-entries
singer-schema: https://github.com/singer-io/tap-freshdesk/blob/master/tap_freshdesk/schemas/time_entries.json
api-method: https://developers.freshdesk.com/api/#time-entries
table-details:
replication-method: ''
primary-key: ''
replication-key: ''
replication-method: Key-based Incremental
primary-key: id
replication-key: updated_at
4 changes: 4 additions & 0 deletions _data/taps/schemas/freshdesk/v0/freshdesk-v0-to-ignore.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tap: freshdesk
version: '0'
schemas:
- contacts
Loading

0 comments on commit 42e3c7f

Please sign in to comment.