Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: migrate to new endpoints format (#108)
## Describe your changes - Migrate to new endpoints format - Upgrade cli to `0.44.0` ```sh #!/bin/bash pushd() { command pushd "$@" >/dev/null } popd() { command popd "$@" >/dev/null } if [ -n "$npm_config_integration" ]; then integrations=("$npm_config_integration") else cd integrations integrations=($(ls -d */ | sed 's/\///g')) cd .. fi export NANGO_CLI_UPGRADE_MODE=ignore cd integrations for d in "${integrations[@]}"; do integration=$(echo $d | sed 's/\///g') echo "Change endpoint format for $integration..." # Check if the integration directory exists (in case of single integration) if [ ! -d "$integration" ]; then echo "Integration directory $integration does not exist. Skipping..." continue fi pushd "$integration" || exit npx nango migrate-endpoints popd $1 || exit done ``` ## 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