This PR introduces support for calling SCAPI custom endpoint. It upgrades commerce-sdk-isormorphic to the latest version v2. Two new hooks are introduced in this PR.
New hooks
useCustomQuery
useCustomMutation
Types of Changes
[ ] Bug fix (non-breaking change that fixes an issue)
[x] New feature (non-breaking change that adds functionality)
[ ] Documentation update
[ ] Breaking change (could cause existing functionality to not work as expected)
[ ] Other changes (non-breaking changes that does not fit any of the above)
How to Test-Drive This PR
pull this branch
npm ci
cd ./packages/test-commerce-sdk-react && npm start
go to localhost:3000/custom-endpoint
check the custom query is successfully made with 200 and correct auth token
Checklists
General
[ ] Changes are covered by test cases
[ ] CHANGELOG.md updated with a short description of changes (not required for documentation updates)
Accessibility Compliance
You must check off all items in one of the follow two lists:
[ ] There are no changes to UI
or...
[ ] Changes were tested with a Screen Reader (iOS VoiceOver or Android Talkback) and had no issues
Description
This PR introduces support for calling SCAPI custom endpoint. It upgrades
commerce-sdk-isormorphic
to the latest versionv2
. Two new hooks are introduced in this PR.New hooks
useCustomQuery
useCustomMutation
Types of Changes
How to Test-Drive This PR
npm ci
cd ./packages/test-commerce-sdk-react && npm start
localhost:3000/custom-endpoint
Checklists
General
Accessibility Compliance
You must check off all items in one of the follow two lists:
or...
Localization