TurboDocx / TurboDocx/SDK

feat(js-sdk): Add TurboQuote module

Open
#25 0 comments 0 reactions 3 assignees View on GitHub

@yacinekahlerras-turbodocx is already working on this.

Since Jul 21, 2026.

Dominant language
PHP
Stars
1
Forks
0
Avg merge
12h 19m
Merged PRs (30d)
2

Description

Summary

Add a TurboQuote module to the JS SDK with full UI parity for TurboQuote. This includes:

  • 68 static methods across 12 entity groups: Quotes, Line Items, Products, Bundles, Price Books, Companies, Contacts, Templates, Types/Categories, Approval Workflows, and a createAndSend convenience method
  • 11 type files with full TypeScript types for all request/response shapes
  • HttpClient extensions: getRaw() for PDF download, postFormData()/patchFormData() for product image uploads
  • 70 unit tests covering all methods with mocked HttpClient
  • DX-first design: minimal required fields, single-or-batch line items, direct parameters for simple ops, hidden API inconsistencies (e.g., template endpoint path mismatch)

Follow-up work

  • Port to Python SDK
  • Port to Go SDK
  • Port to PHP SDK
  • Port to Java SDK
  • Add product image upload integration tests
  • Add usage examples (examples/turboquote-*.ts)

Design decisions

See the plan file and PR description for details on architecture choices (single static class, createAndSend convenience, skipSenderValidation, etc.)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.