Skip to content

feat(core,react): add PARTNER role + /partner URL constants and types#178

Draft
TaprootFreak wants to merge 1 commit into
developfrom
feat/partner-role-and-urls
Draft

feat(core,react): add PARTNER role + /partner URL constants and types#178
TaprootFreak wants to merge 1 commit into
developfrom
feat/partner-role-and-urls

Conversation

@TaprootFreak

Copy link
Copy Markdown
Contributor

Summary

  • packages/core: PARTNER = 'Partner' added to UserRole enum
  • packages/core: new partner.ts with PartnerUrl helper + PartnerUserInfo, PartnerFee, SetOnboardingFee types
  • packages/react: thin re-exports from @dfx.swiss/core
  • Version bumps: core 0.3.0-beta.1 → 0.3.0-beta.2, react 1.4.0-beta.1 → 1.4.0-beta.2

Why

Mirrors the new /partner endpoint family added in DFXswiss/api#3787. The DFXswiss/services UI PR will consume PartnerUrl and the PartnerUserInfo/PartnerFee types via @dfx.swiss/react.

Test plan

  • core: npm run build, npm run lint, npm run format:check, npm test (54 passed)
  • react: npm run build, npm run lint, npm run format:check
  • After merge: Publish-workflow ships both packages via OIDC
  • DFXswiss/services PR bumps dep to ^1.4.0-beta.2 and uses the new exports

Mirrors the new /partner endpoint family added in DFXswiss/api.

- packages/core: PARTNER added to UserRole enum
- packages/core: new partner.ts with PartnerUrl helper + PartnerUserInfo,
  PartnerFee, SetOnboardingFee types
- packages/react: re-exports from @dfx.swiss/core
- version bumps: core 0.3.0-beta.1 -> 0.3.0-beta.2,
                 react 1.4.0-beta.1 -> 1.4.0-beta.2
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.

1 participant