-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #682 from OpenFn/662-sf-update-api
`salesforce` API Update
- Loading branch information
Showing
10 changed files
with
771 additions
and
1,301 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |
Oops, something went wrong.