Skip to content

Commit

Permalink
fix(salesforce): update endpoints and bump versions (#83)
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
  • Loading branch information
khaliqgant authored Oct 30, 2024
1 parent 676a094 commit aa73bd2
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 52 deletions.
66 changes: 40 additions & 26 deletions flows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6508,114 +6508,126 @@ integrations:
- offline_access
- api
input: SalesforceEntity
version: 1.0.0
version: 1.0.1
output: SalesforceFieldSchema
endpoint: GET /salesforce/fetch-fields
endpoint: GET /fields
create-contact:
description: Create a single contact in salesforce
scopes:
- offline_access
- api
input: CreateContactInput
output: ActionResponse
endpoint: POST /salesforce/create-contact
endpoint: POST /contacts
version: 1.0.0
update-contact:
description: Update a single contact in salesforce
scopes:
- offline_access
- api
input: UpdateContactInput
output: SuccessResponse
endpoint: PATCH /salesforce/update-contact
endpoint: PATCH /contacts
version: 1.0.0
delete-contact:
description: Delete a single contact in salesforce
scopes:
- offline_access
- api
input: IdEntity
output: SuccessResponse
endpoint: DELETE /salesforce/delete-contact
endpoint: DELETE /contacts
version: 1.0.0
create-lead:
description: Create a single lead in salesforce
scopes:
- offline_access
- api
input: CreateLeadInput
output: ActionResponse
endpoint: POST /salesforce/create-lead
endpoint: POST /leads
version: 1.0.0
update-lead:
description: Update a single lead in salesforce
scopes:
- offline_access
- api
input: UpdateLeadInput
output: SuccessResponse
endpoint: PATCH /salesforce/update-lead
endpoint: PATCH /leads
version: 1.0.0
delete-lead:
description: Delete a single lead in salesforce
scopes:
- offline_access
- api
input: IdEntity
output: SuccessResponse
endpoint: DELETE /salesforce/delete-lead
endpoint: DELETE /leads
version: 1.0.0
create-account:
description: Create a single account in salesforce
scopes:
- offline_access
- api
input: CreateAccountInput
output: ActionResponse
endpoint: POST /salesforce/create-account
endpoint: POST /accounts
version: 1.0.0
update-account:
description: Update a single account in salesforce
scopes:
- offline_access
- api
input: UpdateAccountInput
output: SuccessResponse
endpoint: PATCH /salesforce/update-account
endpoint: PATCH /accounts
version: 1.0.0
delete-account:
description: Delete a single account in salesforce
scopes:
- offline_access
- api
input: IdEntity
output: SuccessResponse
endpoint: DELETE /salesforce/delete-account
endpoint: DELETE /accounts
version: 1.0.0
create-opportunity:
description: Create a single opportunity in salesforce
scopes:
- offline_access
- api
input: CreateOpportunityInput
output: ActionResponse
endpoint: POST /salesforce/create-opportunity
endpoint: POST /opportunities
version: 1.0.0
update-opportunity:
description: Update a single opportunity in salesforce
scopes:
- offline_access
- api
input: UpdateOpportunityInput
output: SuccessResponse
endpoint: PATCH /salesforce/update-opportunity
endpoint: PATCH /opportunities
version: 1.0.0
delete-opportunity:
description: Delete a single opportunity in salesforce
scopes:
- offline_access
- api
input: IdEntity
output: SuccessResponse
endpoint: DELETE /salesforce/delete-opportunity
endpoint: DELETE /opportunities
version: 1.0.0
syncs:
accounts:
runs: every hour
description: |
Fetches a list of accounts from salesforce
output: Account
sync_type: incremental
version: 1.0.1
endpoint: GET /salesforce/accounts
version: 1.0.2
endpoint: GET /accounts
contacts:
runs: every hour
description: |
Expand All @@ -6625,8 +6637,8 @@ integrations:
scopes:
- offline_access
- api
version: 1.0.1
endpoint: GET /salesforce/contacts
version: 1.0.2
endpoint: GET /contacts
leads:
runs: every hour
description: |
Expand All @@ -6636,33 +6648,34 @@ integrations:
scopes:
- offline_access
- api
endpoint: GET /salesforce/leads
endpoint: GET /leads
version: 1.0.0
deals:
runs: every hour
description: |
Fetches a list of deals from salesforce
output: Deal
sync_type: incremental
version: 1.0.0
endpoint: GET /salesforce/deals
version: 1.0.1
endpoint: GET /deals
articles:
runs: every day
description: |
Fetches a list of articles from salesforce
output: Article
input: SalesforceMetadata
version: 1.0.0
version: 1.0.1
auto_start: false
sync_type: incremental
endpoint: GET /salesforce/articles
endpoint: GET /articles
tickets:
runs: every day
description: |
Fetches a list of tickets from salesforce
output: Ticket
sync_type: incremental
version: 1.0.0
endpoint: GET /salesforce/tickets
version: 1.0.1
endpoint: GET /tickets
opportunities:
runs: every hour
description: |
Expand All @@ -6672,7 +6685,8 @@ integrations:
scopes:
- offline_access
- api
endpoint: GET /salesforce/opportunities
endpoint: GET /opportunities
version: 1.0.0
models:
IdEntity:
id: string
Expand Down
Loading

0 comments on commit aa73bd2

Please sign in to comment.