Skip to content

Commit 4551691

Browse files
authored
Add methods for tiers, tenants and companies (#115)
* Add missing methods * Simplify exports * fix type errors * fix test * Add changeset and rename method * Remove public type
1 parent c3cbc22 commit 4551691

26 files changed

+1108
-353
lines changed

.changeset/mighty-moles-raise.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
'@team-plain/typescript-sdk': major
3+
---
4+
5+
Added the following queries:
6+
- `getCustomerCustomerGroupMemberships`
7+
- `getCustomerTenantMemberships`
8+
- `getTenantById`
9+
- `getTenants`
10+
- `searchTenants`
11+
- `getCompanies`
12+
- `searchCompanies`
13+
- `getTierById`
14+
- `getTiers`
15+
16+
17+
Added support for the following mutations:
18+
- `upsertTenant`
19+
- `setCustomerTenants`
20+
- `addCustomerToTenants`
21+
- `removeCustomerFromTenants`
22+
- `updateCustomerCompany`
23+
- `addMembersToTier`
24+
- `removeMembersFromTier`
25+
26+
Breaking change:
27+
- You previously received customer group memberships whenever you got a customer back. As there might be many customer groups this is now it's own separate query (`getCustomerCustomerGroupMemberships`). This allows you to fetch and paginate through a customer's customer groups.

0 commit comments

Comments
 (0)