Skip to content

Commit

Permalink
fix(smartsheet): Add scopes (#185)
Browse files Browse the repository at this point in the history
## Describe your changes

## 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 Jan 8, 2025
1 parent b6b6976 commit 8603fb3
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 4 deletions.
8 changes: 8 additions & 0 deletions flows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13318,6 +13318,8 @@ integrations:
method: GET
path: /users
group: Users
scopes:
- READ_USERS
actions:
create-user:
description: Creates a user in Smartsheet
Expand All @@ -13327,6 +13329,8 @@ integrations:
path: /users
group: Users
input: CreateUser
scopes:
- ADMIN_USERS
delete-user:
description: >
Deletes a user from Smartsheet. User is transitioned to a free
Expand All @@ -13339,6 +13343,8 @@ integrations:
group: Users
output: SuccessResponse
input: IdEntity
scopes:
- ADMIN_USERS
disable-user:
description: >
Disables a user in an organization account. User will no longer be
Expand All @@ -13350,6 +13356,8 @@ integrations:
group: Users
output: SuccessResponse
input: IdEntity
scopes:
- ADMIN_USERS
models:
IdEntity:
id: string
Expand Down
2 changes: 1 addition & 1 deletion integrations/smartsheet/actions/create-user.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- **Description:** Creates a user in Smartsheet
- **Version:** 0.0.1
- **Group:** Users
- **Scopes:** _None_
- **Scopes:** `ADMIN_USERS`
- **Endpoint Type:** Action
- **Code:** [github.com](https://github.com/NangoHQ/integration-templates/tree/main/integrations/smartsheet/actions/create-user.ts)

Expand Down
2 changes: 1 addition & 1 deletion integrations/smartsheet/actions/delete-user.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

- **Version:** 0.0.1
- **Group:** Users
- **Scopes:** _None_
- **Scopes:** `ADMIN_USERS`
- **Endpoint Type:** Action
- **Code:** [github.com](https://github.com/NangoHQ/integration-templates/tree/main/integrations/smartsheet/actions/delete-user.ts)

Expand Down
2 changes: 1 addition & 1 deletion integrations/smartsheet/actions/disable-user.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

- **Version:** 0.0.1
- **Group:** Users
- **Scopes:** _None_
- **Scopes:** `ADMIN_USERS`
- **Endpoint Type:** Action
- **Code:** [github.com](https://github.com/NangoHQ/integration-templates/tree/main/integrations/smartsheet/actions/disable-user.ts)

Expand Down
8 changes: 8 additions & 0 deletions integrations/smartsheet/nango.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ integrations:
method: GET
path: /users
group: Users
scopes:
- READ_USERS

actions:
create-user:
Expand All @@ -20,6 +22,8 @@ integrations:
path: /users
group: Users
input: CreateUser
scopes:
- ADMIN_USERS

delete-user:
description: |
Expand All @@ -30,6 +34,8 @@ integrations:
group: Users
output: SuccessResponse
input: IdEntity
scopes:
- ADMIN_USERS

disable-user:
description: |
Expand All @@ -40,6 +46,8 @@ integrations:
group: Users
output: SuccessResponse
input: IdEntity
scopes:
- ADMIN_USERS

models:
IdEntity:
Expand Down
2 changes: 1 addition & 1 deletion integrations/smartsheet/syncs/users.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- **Description:** Fetches a list of users from Smartsheet
- **Version:** 0.0.1
- **Group:** Users
- **Scopes:** _None_
- **Scopes:** `READ_USERS`
- **Endpoint Type:** Sync
- **Code:** [github.com](https://github.com/NangoHQ/integration-templates/tree/main/integrations/smartsheet/syncs/users.ts)

Expand Down

0 comments on commit 8603fb3

Please sign in to comment.