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.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +39 -4
- package/dist/types.d.ts +39 -4
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
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
|
-
|
|
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
|
}
|