arky-sdk 0.4.48 → 0.4.50

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.d.cts CHANGED
@@ -294,6 +294,9 @@ declare function createArkySDK(config: HttpClientConfig & {
294
294
  events: {
295
295
  getEvents(params: GetEventsParams, options?: RequestOptions): Promise<any>;
296
296
  updateEvent(params: UpdateEventParams, options?: RequestOptions): Promise<any>;
297
+ getWebhookEvents(options?: RequestOptions): Promise<{
298
+ data: string[];
299
+ }>;
297
300
  };
298
301
  analytics: {
299
302
  track: typeof track;
package/dist/index.d.ts CHANGED
@@ -294,6 +294,9 @@ declare function createArkySDK(config: HttpClientConfig & {
294
294
  events: {
295
295
  getEvents(params: GetEventsParams, options?: RequestOptions): Promise<any>;
296
296
  updateEvent(params: UpdateEventParams, options?: RequestOptions): Promise<any>;
297
+ getWebhookEvents(options?: RequestOptions): Promise<{
298
+ data: string[];
299
+ }>;
297
300
  };
298
301
  analytics: {
299
302
  track: typeof track;
package/dist/index.js CHANGED
@@ -1376,7 +1376,6 @@ function createEventsApi(apiConfig) {
1376
1376
  return apiConfig.httpClient.get(`/v1/events`, {
1377
1377
  ...options,
1378
1378
  params: {
1379
- businessId: apiConfig.businessId,
1380
1379
  entity: params.entity,
1381
1380
  limit: params.limit,
1382
1381
  cursor: params.cursor
@@ -1387,11 +1386,14 @@ function createEventsApi(apiConfig) {
1387
1386
  return apiConfig.httpClient.put(
1388
1387
  `/v1/events/${params.eventId}`,
1389
1388
  {
1390
- businessId: apiConfig.businessId,
1389
+ eventId: params.eventId,
1391
1390
  event: params.event
1392
1391
  },
1393
1392
  options
1394
1393
  );
1394
+ },
1395
+ async getWebhookEvents(options) {
1396
+ return apiConfig.httpClient.get(`/v1/operations/events/metadata`, options);
1395
1397
  }
1396
1398
  };
1397
1399
  }