Repository navigation
feat: update zoho implementation with account resource - #4291
Conversation
Summary by CodeRabbit
Summary by CodeRabbit
WalkthroughThis change introduces two new TypeScript types, Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant Destination
participant AccountWithDefinition
Caller->>Destination: Access Destination
alt Delivery operation
Destination->>AccountWithDefinition: Use DeliveryAccount (optional)
end
alt Deletion operation
Destination->>AccountWithDefinition: Use DeleteAccount (optional)
end
Suggested reviewers
Suggestions for Improvement
Tip ⚡️ Faster reviews with caching
Enjoy the performance boost—your workflow just got faster. 📜 Recent review detailsConfiguration used: .coderabbit.yaml ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (3)
⏰ Context from checks skipped due to timeout of 90000ms (8)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/types/controlPlaneConfig.ts (1)
15-20: Consider adding JSDoc comments to clarify the purpose ofAccountWithDefinition.The type structure looks good and follows the pattern of other entity types in the file. To improve maintainability, I'd suggest adding JSDoc comments explaining:
- The relationship between
AccountWithDefinitionandAccountDefinition- The purpose and expected content of the
OptionsandSecretfields+/** + * Represents an account with its definition, credentials, and configuration options. + * Used for delivery and deletion operations in destinations. + */ export type AccountWithDefinition = { ID: string; + /** Configuration options for the account */ Options: Record<string, unknown>; + /** Sensitive credentials used for authentication */ Secret: Record<string, unknown>; AccountDefinition: AccountDefinition; };
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/types/controlPlaneConfig.ts(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (8)
- GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image AMD64
- GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image ARM64
- GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image AMD64
- GitHub Check: Code Coverage
- GitHub Check: UT Tests
- GitHub Check: test_and_publish
- GitHub Check: Analyze (javascript-typescript)
- GitHub Check: Analyze (go)
🔇 Additional comments (2)
src/types/controlPlaneConfig.ts (2)
11-14: New typeAccountDefinitionlooks good.This new type follows the existing pattern in the codebase for definition types, with a name and configuration object. It's appropriately exported for use in other parts of the application.
33-34: Destination type extension looks good and follows the PR objectives.The addition of optional
DeliveryAccountandDeleteAccountproperties to theDestinationtype aligns with the PR objectives to extend the destination type with optional account types. The properties are correctly marked as optional, which means this change is non-breaking for existing code.
|
Allure Test reports for this run are available at:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #4291 +/- ##
========================================
Coverage 91.32% 91.32%
========================================
Files 636 636
Lines 33376 33381 +5
Branches 7892 7894 +2
========================================
+ Hits 30481 30486 +5
Misses 2680 2680
Partials 215 215 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Allure Test reports for this run are available at:
|
|
Allure Test reports for this run are available at:
|
|
Allure Test reports for this run are available at:
|
|
Allure Test reports for this run are available at:
|
|
Allure Test reports for this run are available at:
|
|
Allure Test reports for this run are available at:
|
|
Allure Test reports for this run are available at:
|
|
Allure Test reports for this run are available at:
|
* feat: add support of account in zoho_dev destinaiton * chore: address comments * chore: update destConfig to connectionConfig
|
Allure Test reports for this run are available at:
|
|
Allure Test reports for this run are available at:
|
|
Allure Test reports for this run are available at:
|
|
Allure Test reports for this run are available at:
|
|
Allure Test reports for this run are available at:
|
|
)" This reverts commit f368f00.
* feat: update destination type with optional account types (#4291) * feat: update destination type with optional account types * chore: add authenticationType * chore: update types with generics * chore: add optional config to accountDefiition * chore: update deleteAccount to regulationAccount * chore: update regulationAccount to deleteAccount * chore(destination): migrate slack destination tests to new format (#4279) * chore(destination): migrate slack destination tests to new format * refactor: tests to use proper types * chore: fix status in mailchimp, fix cognitive complexity, add unit tests (#4314) * chore: fix status in mailchimp, fix cognitive complexity, add unit tests * chore: fix PR comments for mailchimp tests * test: add tests for error cases to improve code coverage --------- Co-authored-by: Dilip Kola <[email protected]> * chore(braze): added docs for braze destination (#4297) * chore(braze): added docs for braze destination * chore: update braze docs * chore: add multiplexing section --------- Co-authored-by: Utsab Chowdhury <[email protected]> * chore: add string check for phone in gaoc (#4311) * chore: add string check for phone in gaoc * chore: add unit test * chore: update condition Co-authored-by: Sudip Paul <[email protected]> --------- Co-authored-by: Sudip Paul <[email protected]> * chore: correct dotenv import (#4320) * chore: payload size middleware performance improvement (#4318) * fix: add uuid as fallback to missing anonymousId in webhook events (#4276) * chore: bump codecov/codecov-action from 5.4.2 to 5.4.3 (#4335) Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 5.4.2 to 5.4.3. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](codecov/codecov-action@v5.4.2...v5.4.3) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-version: 5.4.3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore: bump slackapi/slack-github-action from 1.27.0 to 2.1.0 (#4312) Bumps [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action) from 1.27.0 to 2.1.0. - [Release notes](https://github.com/slackapi/slack-github-action/releases) - [Commits](slackapi/slack-github-action@v1.27.0...v2.1.0) --- updated-dependencies: - dependency-name: slackapi/slack-github-action dependency-version: 2.1.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore: mp add content type header to all apis (#4344) * fix: mp add content-type header and follow strict for engage and group apis * chore: mp add content type header to all apis * feat: bluecore email subscription event (#4304) * fix: blucore optin event mapping * fix: review comments * chore: add subscription event * chore: add subscription event * fix: reviews comments * fix: review comments * fix: review comments * fix: review comments * chore: test description * chore(release): 1.101.0 * chore: pass copy of metadata to avoid actual metadata modifications (#4351) * Revert "feat: update destination type with optional account types (#4291)" (#4348) This reverts commit f368f00. --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Sudip Paul <[email protected]> Co-authored-by: Yashasvi Bajpai <[email protected]> Co-authored-by: Dilip Kola <[email protected]> Co-authored-by: Dilip Kola <[email protected]> Co-authored-by: Vinay Teki <[email protected]> Co-authored-by: Utsab Chowdhury <[email protected]> Co-authored-by: Aris Tzoumas <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mahesh Kutty <[email protected]> Co-authored-by: GitHub Actions <[email protected]> Co-authored-by: Jayachand Mopidevi <[email protected]>



What are the changes introduced in this PR?
We are adding the new account types to destination.
What is the related Linear task?
Resolves INT-3448
Please explain the objectives of your changes below
Put down any required details on the broader aspect of your changes. If there are any dependent changes, mandatorily mention them here
Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?
N/A
Any new dependencies introduced with this change?
N/A
Any new generic utility introduced or modified. Please explain the changes.
N/A
Any technical or performance related pointers to consider with the change?
N/A
@coderabbitai review
Developer checklist
My code follows the style guidelines of this project
No breaking changes are being introduced.
All related docs linked with the PR?
All changes manually tested?
Any documentation changes needed with this change?
Is the PR limited to 10 file changes?
Is the PR limited to one linear task?
Are relevant unit and component test-cases added in new readability format?
Reviewer checklist
Is the type of change in the PR title appropriate as per the changes?
Verified that there are no credentials or confidential data exposed with the changes.