arky-sdk 0.5.32 → 0.5.35

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/dist/index.cjs CHANGED
@@ -318,13 +318,6 @@ var createBusinessApi = (apiConfig) => {
318
318
  params
319
319
  });
320
320
  },
321
- async triggerBuilds(params, options) {
322
- return apiConfig.httpClient.post(
323
- `/v1/businesses/${params.id}/trigger-builds`,
324
- {},
325
- options
326
- );
327
- },
328
321
  async getSubscriptionPlans(params, options) {
329
322
  return apiConfig.httpClient.get("/v1/businesses/plans", options);
330
323
  },
@@ -1321,9 +1314,10 @@ var createAudienceApi = (apiConfig) => {
1321
1314
  return apiConfig.httpClient.post(
1322
1315
  `/v1/businesses/${apiConfig.businessId}/audiences/${params.id}/subscribe`,
1323
1316
  {
1324
- priceId: params.priceId,
1325
- successUrl: params.successUrl,
1326
- cancelUrl: params.cancelUrl
1317
+ email: params.email,
1318
+ ...params.priceId && { priceId: params.priceId },
1319
+ ...params.successUrl && { successUrl: params.successUrl },
1320
+ ...params.cancelUrl && { cancelUrl: params.cancelUrl }
1327
1321
  },
1328
1322
  options
1329
1323
  );