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(integration-templates): add quickbooks actions & syncs #2741

Merged
merged 5 commits into from
Sep 20, 2024

Conversation

hassan254-prog
Copy link
Contributor

Describe your changes

  • Add quickbooks actions & sycns

Issue ticket number and link

EXT-143

@hassan254-prog hassan254-prog self-assigned this Sep 17, 2024
@NangoHQ NangoHQ deleted a comment from linear bot Sep 17, 2024
@hassan254-prog
Copy link
Contributor Author

I've been utilizing the QuickBooks sandbox environment for testing, as it offers a comprehensive set of test data and API simulation capabilities. I'll update the integration accordingly once the review is finalized.

@bodinsamuel bodinsamuel changed the title feat(integration-templates): add quickbooks actions & sycns feat(integration-templates): add quickbooks actions & syncs Sep 18, 2024
Copy link
Collaborator

@bodinsamuel bodinsamuel left a comment

Choose a reason for hiding this comment

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

Massive work 💪🏻
Nothing critical in my comments, just a few open questions and possible improvements

*
* @param {NangoAction} nango - The NangoAction instance for handling the get Connection task.
* @returns {Promise<string>} - The realmId for the QuickBooks instance.
* @throws {Error} - Throws an error if the realmId cannot be retrieved.
Copy link
Collaborator

Choose a reason for hiding this comment

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

just out of curiosity, your new PR seems to have a lot jsdoc, is this a new requirement?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It’s not a new requirement; I just thought it would be beneficial to include JSDoc comments for better documentation. What do you think?

integration-templates/quickbooks/mappers/toCustomer.ts Outdated Show resolved Hide resolved
integration-templates/quickbooks/helpers/paginate.ts Outdated Show resolved Hide resolved
integration-templates/quickbooks/actions/update-item.ts Outdated Show resolved Hide resolved
const quickBooksAccount = toQuickBooksAccount(input);

const config: ProxyConfiguration = {
baseUrlOverride: 'https://sandbox-quickbooks.api.intuit.com',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this something correct to hardcode?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've been utilizing the QuickBooks sandbox environment for testing, as it offers a comprehensive set of test data and API simulation capabilities. That is why I had to override the base url. But I will change this after review, before merging the PR 👍.

}

// Validate required fields
if (!input.customer_ref || !input.customer_ref.value) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just a matter of thought we can generate zod models, maybe it's shorter and more reliable than manual validation

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was thinking the same thing. Now that we also generate tests, it would be good practice to generate the Zod models and override them where possible. It would also be nice to apply this approach to the other models. What do you think?

@khaliqgant khaliqgant enabled auto-merge (squash) September 19, 2024 17:23
@khaliqgant khaliqgant merged commit a7578b8 into master Sep 20, 2024
22 checks passed
@khaliqgant khaliqgant deleted the wari/ext-142-quickbooks-syncs-actions branch September 20, 2024 08:07
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.

3 participants