Skip to content
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: add types #842

Merged
merged 14 commits into from
Nov 14, 2024
Merged

feat: add types #842

merged 14 commits into from
Nov 14, 2024

Conversation

himanshu-dixit
Copy link
Collaborator

@himanshu-dixit himanshu-dixit commented Nov 8, 2024

Important

Enhancements include new DTO properties, field renames for consistency, version update, and improved error handling across multiple files.

  • Behavior:
    • Added labels to ConnectionWithAppData, ConnectionParams, GetConnectionsQueryDto, InitiateConnectionPayloadDto, UpdateConnectionLabelsPayloadDto in schemas.gen.ts and types.gen.ts.
    • Added isNew to TriggerResponseDTO in schemas.gen.ts and types.gen.ts.
    • Added page and offset to ActionsQueryDTO in schemas.gen.ts and types.gen.ts.
    • Updated CreateConnectorPayloadDTO to make appId optional and added appName in schemas.gen.ts and types.gen.ts.
  • Renames:
    • Renamed displayName to display_name, expectedFromCustomer to expected_from_customer, isSecret to is_secret in ExpectedInputFieldsDTO.
  • Services:
    • Added updateConnectionData method to ConnectionsService in connectedAccounts.ts.
  • Misc:
    • Updated version in package.json from 0.2.8-4 to 0.2.8-5.
    • Improved error handling in error.ts with more detailed messages and suggestions.

This description was created by Ellipsis for c83eb17. It will automatically update as commits are pushed.

Copy link

vercel bot commented Nov 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
composio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 14, 2024 1:49pm

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Reviewed everything up to 0915a9c in 1 minute and 4 seconds

More details
  • Looked at 343 lines of code in 4 files
  • Skipped 0 files when reviewing.
  • Skipped posting 6 drafted comments based on config settings.
1. js/src/sdk/client/schemas.gen.ts:797
  • Draft comment:
    Changed displayName to display_name to maintain consistent naming convention with snake_case.
  • Reason this comment was not posted:
    Confidence changes required: 10%
    The change from camelCase to snake_case in the schemas and types is consistent and aligns with the naming convention used in the rest of the file.
2. js/src/sdk/client/schemas.gen.ts:809
  • Draft comment:
    Changed expectedFromCustomer to expected_from_customer to maintain consistent naming convention with snake_case.
  • Reason this comment was not posted:
    Confidence changes required: 10%
    The change from camelCase to snake_case in the schemas and types is consistent and aligns with the naming convention used in the rest of the file.
3. js/src/sdk/client/schemas.gen.ts:817
  • Draft comment:
    Changed isSecret to is_secret to maintain consistent naming convention with snake_case.
  • Reason this comment was not posted:
    Confidence changes required: 10%
    The change from camelCase to snake_case in the schemas and types is consistent and aligns with the naming convention used in the rest of the file.
4. js/src/sdk/client/types.gen.ts:574
  • Draft comment:
    Changed displayName to display_name to maintain consistent naming convention with snake_case.
  • Reason this comment was not posted:
    Confidence changes required: 10%
    The change from camelCase to snake_case in the schemas and types is consistent and aligns with the naming convention used in the rest of the file.
5. js/src/sdk/client/types.gen.ts:588
  • Draft comment:
    Changed expectedFromCustomer to expected_from_customer to maintain consistent naming convention with snake_case.
  • Reason this comment was not posted:
    Confidence changes required: 10%
    The change from camelCase to snake_case in the schemas and types is consistent and aligns with the naming convention used in the rest of the file.
6. js/src/sdk/client/types.gen.ts:592
  • Draft comment:
    Changed isSecret to is_secret to maintain consistent naming convention with snake_case.
  • Reason this comment was not posted:
    Confidence changes required: 10%
    The change from camelCase to snake_case in the schemas and types is consistent and aligns with the naming convention used in the rest of the file.

Workflow ID: wflow_6WJMo3SxQnuGuWZ0


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link

github-actions bot commented Nov 8, 2024

This comment was generated by github-actions[bot]!

JS SDK Coverage Report

📊 Coverage report for JS SDK can be found at the following URL:
https://pub-92e668239ab84bfd80ee07d61e9d2f40.r2.dev/coverage-11838529973/coverage/index.html

📁 Test report folder can be found at the following URL:
https://pub-92e668239ab84bfd80ee07d61e9d2f40.r2.dev/html-report-11838529973/html-report/report.html

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Incremental review on a437a8e in 42 seconds

More details
  • Looked at 335 lines of code in 11 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. js/src/sdk/utils/error.ts:12
  • Draft comment:
    The error code ERROR.COMMON.API_KEY_UNAVAILABLE should be updated to ERROR.COMMON.API_KEY_INVALID to match the changes in the ERROR object.
  • Reason this comment was not posted:
    Decided after close inspection that this draft comment was likely wrong and/or not actionable:
    The comment is pointing out a change that has already been implemented in the diff. Since the change from API_KEY_UNAVAILABLE to API_KEY_INVALID is already present, the comment is redundant and not needed.
    I might be missing if there are other parts of the code that still use API_KEY_UNAVAILABLE incorrectly, but the comment specifically refers to the change in the ERROR object, which is already done.
    The comment is specifically about the change in the ERROR object, which is already reflected in the diff. Therefore, the comment is unnecessary.
    The comment is redundant because the change it suggests has already been made in the diff. It should be deleted.

Workflow ID: wflow_LaCEWjncc4TuVcAg


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Incremental review on 4d7a76f in 22 seconds

More details
  • Looked at 40 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. js/src/sdk/models/connectedAccounts.ts:74
  • Draft comment:
    Consider adding spaces around the data object for better readability.
const { integrationId, entityId = 'default', labels, data = {}, redirectUri } = payload;
  • Reason this comment was not posted:
    Confidence changes required: 20%
    The initiate method in the ConnectedAccounts class has a minor formatting issue with spacing around the data object. This can be improved for better readability.

Workflow ID: wflow_Qv3gDXhjESuHRyqX


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Changes requested. Incremental review on 69e8fd7 in 1 minute and 4 seconds

More details
  • Looked at 86 lines of code in 9 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_QDYGFnvKb8C1rdLV


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@@ -0,0 +1,3 @@
---
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new API documentation files are missing descriptions and details about the endpoints. Consider adding information such as parameters, request body, responses, and examples to improve clarity and usability. This applies to clear-cache.mdx, get-user-info.mdx, and update-connection-data.mdx.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Incremental review on bb3de9b in 1 minute and 13 seconds

More details
  • Looked at 41 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_9LrXyOzLz8zRgT5R


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Incremental review on 0355079 in 32 seconds

More details
  • Looked at 12 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. js/package.json:3
  • Draft comment:
    The version update in package.json is inconsistent with the PR description. The description mentions updating from 0.2.8-4 to 0.2.8-5, but the file shows 0.2.9-6 to 0.2.9-7. Please ensure the versioning is consistent.
  • Reason this comment was not posted:
    Comment did not seem useful.

Workflow ID: wflow_gPIj6O9dO2vyFzrF


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Incremental review on 772ed13 in 1 minute and 0 seconds

More details
  • Looked at 133 lines of code in 8 files
  • Skipped 0 files when reviewing.
  • Skipped posting 2 drafted comments based on config settings.
1. js/src/sdk/base.toolset.spec.ts:79
  • Draft comment:
    Typo: 'successfull' should be 'successful'. This typo is present in multiple files and should be corrected for consistency and correctness.
  • Reason this comment was not posted:
    Comment was on unchanged code.
2. js/src/sdk/client/types.gen.ts:2602
  • Draft comment:
    Typo: 'successfull' should be 'successful'. This typo is present in multiple files and should be corrected for consistency and correctness.
  • Reason this comment was not posted:
    Marked as duplicate.

Workflow ID: wflow_GGov9Pw8BPf6EW6W


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Incremental review on c83eb17 in 31 seconds

More details
  • Looked at 12 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. js/src/sdk/client/types.gen.ts:855
  • Draft comment:
    The labels property was removed from ConnectionParams type, but the PR description indicates it should be added. This seems like a mistake. Please verify if labels should be included.
  • Reason this comment was not posted:
    Comment did not seem useful.

Workflow ID: wflow_bIe8xDHFafMwtFoK


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@himanshu-dixit himanshu-dixit merged commit 7ef57b7 into master Nov 14, 2024
9 checks passed
@himanshu-dixit himanshu-dixit deleted the ft-add-types branch November 14, 2024 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants