Skip to content

feat: add Barcode and PackingList API client#6

Merged
wakemeup0 merged 4 commits into
mainfrom
add/barcoding-api
May 25, 2026
Merged

feat: add Barcode and PackingList API client#6
wakemeup0 merged 4 commits into
mainfrom
add/barcoding-api

Conversation

@wakemeup0

Copy link
Copy Markdown
Collaborator

Summary

  • Add BarcodingClient for product and pack list barcode lookups.
  • Add PackingList v1 invoice, sales order, and PO lookups on the same client.

Test plan

  • bun run check

Expose Barcoding v3 and PackingList v1 lookups on DigiKeyClient with generated types.
Copilot AI review requested due to automatic review settings May 25, 2026 13:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds a new BarcodingClient to the SDK to expose Digi-Key Barcoding v3 barcode lookup endpoints and PackingList v1 lookup endpoints, and wires it into DigiKeyClient with generated OpenAPI-based types plus coverage to ensure paths/query mapping are correct.

Changes:

  • Introduce BarcodingClient with product/packlist barcode lookups and PackingList invoice/sales-order/PO lookups.
  • Attach the client on DigiKeyClient as client.barcoding and export the new client/types from the package entrypoint.
  • Add Bun tests verifying request path/query construction and OAuth-flow configuration enforcement.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/barcoding.test.ts Adds tests asserting endpoint-to-path/query mapping and OAuth-flow configuration validation.
src/index.ts Re-exports Barcoding/PackingList client and related generated types from the public entrypoint.
src/constants.ts Adds base path constants for Barcoding v3 and PackingList routing.
src/client.ts Instantiates and exposes BarcodingClient via DigiKeyClient.barcoding.
src/barcoding.ts Implements BarcodingClient methods and type aliases for Barcoding v3 + PackingList v1 operations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Base automatically changed from add/ordering-api to main May 25, 2026 15:14
@wakemeup0 wakemeup0 merged commit 4246eae into main May 25, 2026
6 checks passed
@wakemeup0 wakemeup0 deleted the add/barcoding-api branch May 25, 2026 15:16
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