-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat(elation): new action to create a referral order #535
feat(elation): new action to create a referral order #535
Conversation
- add create referral order action - add create referral order and search contacts to elation api client - add missing specialties property in elation contact type
54c1a62
to
08f9be2
Compare
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a general comment on the try / catch mechanism -> reducing boilerplate for extensions developers
User description
api client
PR Type
Enhancement, Tests
Description
createReferralOrder
to create referral orders in Elation.createReferralOrder
action.Changes walkthrough 📝
3 files
client.ts
Add mock for createReferralOrder in client tests
extensions/elation/mocks/client.ts
createReferralOrder
.createReferralOrder
.constants.ts
Add mock data for referral order and contacts
extensions/elation/mocks/constants.ts
referralOrderExample
mock data.searchContactsResponseExample
mock data.specialties
property infindContactResponseExample
.createReferralOrder.test.ts
Add unit tests for createReferralOrder action
extensions/elation/actions/createReferralOrder/createReferralOrder.test.ts
createReferralOrder
action.handling.
11 files
dataPoints.ts
Add dataPoints configuration for referral order
extensions/elation/actions/createReferralOrder/config/dataPoints.ts
dataPoints
configuration for referral order action.fields.ts
Define fields and validation schema for referral order
extensions/elation/actions/createReferralOrder/config/fields.ts
authorization_for
field.index.ts
Export referral order configuration modules
extensions/elation/actions/createReferralOrder/config/index.ts
dataPoints
andfields
configurations.createReferralOrder.ts
Implement createReferralOrder action with API integration
extensions/elation/actions/createReferralOrder/createReferralOrder.ts
createReferralOrder
action.posting.
index.ts
Export createReferralOrder action
extensions/elation/actions/createReferralOrder/index.ts
createReferralOrder
action.client.ts
Extend Elation client with referral order and contact search
extensions/elation/client.ts
name.
contact.ts
Extend ElationContact type with specialties
extensions/elation/types/contact.ts
specialties
property toElationContact
interface.referralOrder.ts
Define types for referral order API
extensions/elation/types/referralOrder.ts
specialty.ts
Define ElationSpecialty type
extensions/elation/types/specialty.ts
ElationSpecialty
.referralOrder.zod.ts
Add validation schema for referral order
extensions/elation/validation/referralOrder.zod.ts
specialty.zod.ts
Add validation schema for specialty
extensions/elation/validation/specialty.zod.ts