Skip to content

refactor: stop using SDK exports that SDK 8 drops; integration on dependency changes - #251

Merged
pviti merged 2 commits into
monorepofrom
chore/sdk-agnostic
Oct 1, 2026
Merged

pviti merged 2 commits into
monorepofrom
chore/sdk-agnostic

Conversation

@pviti

@pviti pviti commented Oct 1, 2026

Copy link
Copy Markdown
Member

Summary

The changes from the SDK 8 work (#250) that don't depend on SDK 8: they work with the current SDK 6 and leave #250 with only what SDK 8 needs.

  • tags: the resource classes (Skus, Orders, …), which SDK 8 no longer exports, were only used for their TYPE constant: replaced by the type names, still checked against TaggableResourceType.
  • links: QuerySort instead of QueryArraySortable | QueryRecordSortable (both SDKs export it).
  • triggers: the retrieve fields typed through QueryParamsRetrieve instead of QueryRecordFields.
  • provisioning tests: the list mocks accept a query string, like the resources ones (the next provisioning-sdk adds page[number]=1).
  • CI: the integration suites (real API) also run on pull requests that change the dependencies (pnpm-workspace.yaml, pnpm-lock.yaml): an SDK update above all must work against the real API. README updated.

Test plan

  • pnpm build, pnpm lint; tags, links, triggers, provisioning suites pass on SDK 6
  • CI

🤖 Generated with Claude Code

pviti and others added 2 commits October 1, 2026 18:03
Compatible with the current SDK 6, and one step less for SDK 8:
- tags: the resource classes are only used for their TYPE constant,
  replaced by the type names (still checked against
  TaggableResourceType)
- links: QuerySort instead of QueryArraySortable | QueryRecordSortable
- triggers: the fields of the retrieve params typed through
  QueryParamsRetrieve instead of QueryRecordFields
- provisioning tests: the list mocks accept a query, as the resources
  ones do (the next provisioning-sdk sends page[number]=1)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An SDK update above all must work against the real API.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pviti
pviti merged commit ef34039 into monorepo Oct 1, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant