Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Epic: Salesforce next #691

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from
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
Loading