@ixblix/sdk-js 0.4.3 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -154,10 +154,13 @@ Register a company (keyless), then activate it after payment to obtain the API
154
154
  key:
155
155
 
156
156
  ```ts
157
+ const plans = await ixblix.listPlans();
158
+ const plan = plans.find((p) => p.isActive && p.isPublic);
159
+
157
160
  const { company, payment } = await ixblix.registerCompany({
158
161
  name: "Acme CRM",
159
162
  handle: "acme-crm",
160
- paymentProvider: "dummy",
163
+ planId: plan?.id,
161
164
  });
162
165
 
163
166
  // After the payment is confirmed:
package/dist/types.d.ts CHANGED
@@ -280,7 +280,6 @@ export interface RegisterCompanyInput {
280
280
  name: string;
281
281
  handle: string;
282
282
  planId?: string;
283
- paymentProvider?: string;
284
283
  confirmationWebhookUrl?: string;
285
284
  /** Contact e-mail forwarded to the gateway as the checkout customer e-mail. */
286
285
  email?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixblix/sdk-js",
3
- "version": "0.4.3",
3
+ "version": "0.5.0",
4
4
  "description": "Official ixblix SDK for desk/CRM integrations. Create overflow conversations, exchange end-to-end encrypted messages and media, and manage company onboarding.",
5
5
  "license": "MIT",
6
6
  "type": "module",