Skip to content

Commit

Permalink
Merge pull request #682 from OpenFn/662-sf-update-api
Browse files Browse the repository at this point in the history
`salesforce` API Update
  • Loading branch information
josephjclark authored Jul 23, 2024
2 parents 4216f0a + 98c1f83 commit 2693672
Show file tree
Hide file tree
Showing 10 changed files with 771 additions and 1,301 deletions.
21 changes: 21 additions & 0 deletions .changeset/gentle-oranges-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
'@openfn/language-salesforce': major
---

New API design for salesforce, including adding composeNextState and removing
old code.

- Remove axios dependency
- Remove old/unused functions. `relationship`, `upsertIf`, `createIf`,
`reference`, `steps`, `beta`, `describeAll()`
- Standardize state mutation in all operation
- Change `bulk` signature to `bulk(operation, sObjectName, records, options)`
- Remove callback support

### Migration Guide

- Replace `describeAll()` with `describe()`.
- Replace `upsertIf()` with `fnIf(true, upsert())`.
- Replace `createIf()` with `fnIf(true, create())`.
- Replace `bulk(operation, sObject, options, records)` with
`bulk(operation, sObjectName, records, options)`.
7 changes: 7 additions & 0 deletions .changeset/lucky-chicken-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@openfn/language-salesforce': minor
---

- Create a `get()` and `post()` function for all http requests in salesforce
tions, records)`
- Update `describe()` to fetch all available sObjects metadata
6 changes: 6 additions & 0 deletions .changeset/wise-trees-carry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@openfn/language-salesforce': patch
---

- Change `cleanupState` to `removeConnection` and tagged it as private function
- Rename `attrs` to `records`
Loading

0 comments on commit 2693672

Please sign in to comment.