Skip to content

Commit

Permalink
feat(group): Backfill Groups (#111)
Browse files Browse the repository at this point in the history
## Describe your changes
Add groups to the endpoints. Follow up to
#108

## Issue ticket number and link

## Checklist before requesting a review (skip if just adding/editing
APIs & templates)
- [ ] I added tests, otherwise the reason is:
- [ ] External API requests have `retries`
- [ ] Pagination is used where appropriate
- [ ] The built in `nango.paginate` call is used instead of a `while
(true)` loop
- [ ] Third party requests are NOT parallelized (this can cause issues
with rate limits)
- [ ] If a sync requires metadata the `nango.yaml` has `auto_start:
false`
- [ ] If the sync is a `full` sync then `track_deletes: true` is set
- [ ] I followed the best practices and guidelines from the [Writing
Integration
Scripts](/NangoHQ/integration-templates/blob/main/WRITING_INTEGRATION_SCRIPTS.md)
doc
  • Loading branch information
khaliqgant authored Nov 15, 2024
1 parent b6e62a3 commit 27577d6
Show file tree
Hide file tree
Showing 38 changed files with 512 additions and 80 deletions.
296 changes: 256 additions & 40 deletions flows.yaml

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions integrations/aircall-basic/nango.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ integrations:
endpoint:
method: POST
path: /users
group: Users
input: CreateUser
delete-user:
description: Deletes a user in Aircall
endpoint:
method: DELETE
path: /users
group: Users
output: SuccessResponse
input: IdEntity
syncs:
Expand All @@ -26,6 +28,7 @@ integrations:
endpoint:
method: GET
path: /users
group: Users
models:
# Generic
SuccessResponse:
Expand Down
3 changes: 3 additions & 0 deletions integrations/airtable/nango.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ integrations:
endpoint:
method: POST
path: /webhooks
group: Webhooks
scopes:
- webhook:manage
list-webhooks:
Expand All @@ -42,13 +43,15 @@ integrations:
endpoint:
method: GET
path: /webhooks
group: Webhooks
scopes:
- webhook:manage
delete-webhook:
description: Delete a webhook
endpoint:
method: DELETE
path: /webhooks
group: Webhooks
input: DeleteWebhook
output: SuccessResponse
scopes:
Expand Down
7 changes: 7 additions & 0 deletions integrations/asana/nango.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ integrations:
endpoint:
method: GET
path: /tasks
group: Tasks
sync_type: incremental
users:
runs: every hour
Expand All @@ -16,6 +17,7 @@ integrations:
endpoint:
method: GET
path: /users
group: Users
sync_type: incremental
workspaces:
runs: every hour
Expand All @@ -24,13 +26,15 @@ integrations:
endpoint:
method: GET
path: /workspaces
group: Workspaces
projects:
runs: every hour
description: Retrieves all projects for a user
output: AsanaProject
endpoint:
method: GET
path: /projects
group: Projects
actions:
fetch-workspaces:
description: Fetch the workspaces with a limit (default 10) of a user to allow them to
Expand All @@ -53,6 +57,7 @@ integrations:
endpoint:
method: POST
path: /tasks
group: Tasks
output: Task
description: |
Create a task using Asana specific fields and return a unified model task. See https://developers.asana.com/reference/createtask for Asana specific fields
Expand All @@ -62,12 +67,14 @@ integrations:
endpoint:
method: PATCH
path: /tasks
group: Tasks
output: Task
delete-task:
input: Id
endpoint:
method: DELETE
path: /tasks
group: Tasks
output: boolean
models:
Id:
Expand Down
3 changes: 3 additions & 0 deletions integrations/aws-iam/nango.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ integrations:
endpoint:
method: POST
path: /users
group: Users
input: AWSCreateUser
delete-user:
description: |
Delete an existing user in AWS IAM. When you delete a user, you must delete the items attached to the user manually, or the deletion fails.
endpoint:
method: DELETE
path: /users
group: Users
output: SuccessResponse
input: UserNamEntity
syncs:
Expand All @@ -27,6 +29,7 @@ integrations:
endpoint:
method: GET
path: /users
group: Users

models:
# Generic
Expand Down
3 changes: 3 additions & 0 deletions integrations/bamboohr-basic/nango.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ integrations:
endpoint:
method: GET
path: /employees
group: Employees
actions:
create-employee:
description: |
Expand All @@ -19,11 +20,13 @@ integrations:
endpoint:
method: POST
path: /employees
group: Employees
version: 1.0.0
update-employee:
endpoint:
method: PUT
path: /employees
group: Employees
input: BamboohrUpdateEmployee
output: BamboohrResponseStatus
description: Update an existing employee in the system
Expand Down
3 changes: 3 additions & 0 deletions integrations/bill/nango.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ integrations:
endpoint:
method: POST
path: /users
group: Users
input: BillCreateUser
disable-user:
description: Archive an existing user in Bill
endpoint:
method: DELETE
path: /users
group: Users
output: SuccessResponse
input: IdEntity
syncs:
Expand All @@ -25,6 +27,7 @@ integrations:
endpoint:
method: GET
path: /users
group: Users

models:
# Generic
Expand Down
3 changes: 3 additions & 0 deletions integrations/box/nango.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ integrations:
endpoint:
method: POST
path: /users
group: Users
input: BoxCreateUser
delete-user:
description: Deletes a user in Box. Requires an enterprise account.
endpoint:
method: DELETE
path: /users
group: Users
output: SuccessResponse
input: BoxDeleteUser
syncs:
Expand All @@ -26,6 +28,7 @@ integrations:
endpoint:
method: GET
path: /users
group: Users
models:
# Generic
SuccessResponse:
Expand Down
3 changes: 3 additions & 0 deletions integrations/calendly/nango.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ integrations:
endpoint:
method: GET
path: /users
group: Users
actions:
create-user:
description: Creates a user in Calendly
endpoint:
method: POST
path: /users
group: Users
output: User
input: CreateUser
scopes:
Expand All @@ -49,6 +51,7 @@ integrations:
endpoint:
method: DELETE
path: /users
group: Users
output: SuccessResponse
input: IdEntity
scopes:
Expand Down
3 changes: 3 additions & 0 deletions integrations/datadog/nango.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ integrations:
endpoint:
method: POST
path: /users
group: Users
input: CreateUser
scopes:
- user_access_invite
Expand All @@ -15,6 +16,7 @@ integrations:
endpoint:
method: DELETE
path: /users
group: Users
output: SuccessResponse
input: IdEntity
scopes:
Expand All @@ -30,6 +32,7 @@ integrations:
endpoint:
method: GET
path: /users
group: Users
scopes:
- user_access_read
models:
Expand Down
2 changes: 2 additions & 0 deletions integrations/discourse/nango.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ integrations:
endpoint:
method: GET
path: /categories
group: Categories
description: List all categories
sync_type: full
track_deletes: true
Expand All @@ -25,6 +26,7 @@ integrations:
endpoint:
method: POST
path: /categories
group: Categories
description: Create a category in discourse
input: CreateCategory
output: Category
Expand Down
3 changes: 3 additions & 0 deletions integrations/docusign/nango.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ integrations:
endpoint:
method: GET
path: /users
group: Users
scopes:
- oauth
- user_read
Expand All @@ -21,6 +22,7 @@ integrations:
endpoint:
method: POST
path: /users
group: Users
input: DocuSignCreateUser
scopes:
- oauth
Expand All @@ -30,6 +32,7 @@ integrations:
endpoint:
method: DELETE
path: /users
group: Users
output: SuccessResponse
input: IdEntity
scopes:
Expand Down
3 changes: 3 additions & 0 deletions integrations/dropbox/nango.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ integrations:
endpoint:
method: POST
path: /users
group: Users
input: CreateUser
scopes:
- members.write
Expand All @@ -15,6 +16,7 @@ integrations:
endpoint:
method: DELETE
path: /users
group: Users
output: SuccessResponse
input: IdEntity
scopes:
Expand All @@ -41,6 +43,7 @@ integrations:
endpoint:
method: GET
path: /users
group: Users
scopes:
- members.read
files:
Expand Down
5 changes: 5 additions & 0 deletions integrations/exact-online/nango.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ integrations:
endpoint:
method: GET
path: /customers
group: Customers
track_deletes: true

# Payments
Expand Down Expand Up @@ -40,6 +41,7 @@ integrations:
endpoint:
method: POST
path: /customers
group: Customers
update-customer:
version: 1.0.0
description: |
Expand All @@ -49,6 +51,7 @@ integrations:
endpoint:
method: PUT
path: /customers
group: Customers

# Invoices
create-invoice:
Expand All @@ -60,6 +63,7 @@ integrations:
endpoint:
method: POST
path: /invoices
group: Invoices
update-invoice:
version: 1.0.0
description: |
Expand All @@ -69,6 +73,7 @@ integrations:
endpoint:
method: PUT
path: /invoices
group: Invoices
attach-file-invoice:
version: 1.0.0
description: |
Expand Down
3 changes: 3 additions & 0 deletions integrations/expensify/nango.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ integrations:
endpoint:
method: POST
path: /users
group: Users
input: CreateUser
output: ExpsensifyNullableUser
disable-user:
description: Disables a user in Expensify
endpoint:
method: DELETE
path: /users
group: Users
output: SuccessResponse
input: ExpensifyDisableUser
list-policies:
Expand All @@ -35,6 +37,7 @@ integrations:
endpoint:
method: GET
path: /users
group: Users

models:
IdEntity:
Expand Down
Loading

0 comments on commit 27577d6

Please sign in to comment.