@livechat/developer-studio-api 3.5.1 → 3.5.2

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.mts CHANGED
@@ -438,8 +438,10 @@ declare enum HubSpotWebhookEventTypes {
438
438
  ContactDeletion = "contact.deletion"
439
439
  }
440
440
  interface HubSpotWebhookSettings {
441
- webhookUrl: string;
442
- maxConcurrentRequests: number;
441
+ targetUrl: string;
442
+ throttling: {
443
+ maxConcurrentRequests: number;
444
+ };
443
445
  }
444
446
  interface HubSpotWebhookSubscription {
445
447
  id: number;
@@ -451,9 +453,10 @@ interface HubSpotWebhookSubscription {
451
453
  }
452
454
 
453
455
  interface UpsertHubSpotWebhookSettingsPayload {
454
- webhookUrl: string;
455
- period: 'SECONDLY' | 'ROLLING_MINUTE';
456
- maxConcurrentRequests: number;
456
+ targetUrl: string;
457
+ throttling: {
458
+ maxConcurrentRequests: number;
459
+ };
457
460
  }
458
461
  interface CreateHubSpotWebhookSubscriptionPayload {
459
462
  eventType: HubSpotWebhookEventTypes;
package/dist/index.d.ts CHANGED
@@ -438,8 +438,10 @@ declare enum HubSpotWebhookEventTypes {
438
438
  ContactDeletion = "contact.deletion"
439
439
  }
440
440
  interface HubSpotWebhookSettings {
441
- webhookUrl: string;
442
- maxConcurrentRequests: number;
441
+ targetUrl: string;
442
+ throttling: {
443
+ maxConcurrentRequests: number;
444
+ };
443
445
  }
444
446
  interface HubSpotWebhookSubscription {
445
447
  id: number;
@@ -451,9 +453,10 @@ interface HubSpotWebhookSubscription {
451
453
  }
452
454
 
453
455
  interface UpsertHubSpotWebhookSettingsPayload {
454
- webhookUrl: string;
455
- period: 'SECONDLY' | 'ROLLING_MINUTE';
456
- maxConcurrentRequests: number;
456
+ targetUrl: string;
457
+ throttling: {
458
+ maxConcurrentRequests: number;
459
+ };
457
460
  }
458
461
  interface CreateHubSpotWebhookSubscriptionPayload {
459
462
  eventType: HubSpotWebhookEventTypes;
package/dist/index.js CHANGED
@@ -1023,7 +1023,7 @@ var hubspotWebhooksApi = {
1023
1023
  } : {}
1024
1024
  );
1025
1025
  return hubspotClientInstance.get(
1026
- `/webhooks/v1/${encodeURIComponent(
1026
+ `/webhooks/v3/${encodeURIComponent(
1027
1027
  appId
1028
1028
  )}/settings?${params.toString()}`
1029
1029
  // getHubspotClientConfig({
@@ -1041,7 +1041,7 @@ var hubspotWebhooksApi = {
1041
1041
  } : {}
1042
1042
  );
1043
1043
  return hubspotClientInstance.put(
1044
- `/webhooks/v1/${encodeURIComponent(
1044
+ `/webhooks/v3/${encodeURIComponent(
1045
1045
  appId
1046
1046
  )}/settings?${params.toString()}`,
1047
1047
  payload
@@ -1060,7 +1060,7 @@ var hubspotWebhooksApi = {
1060
1060
  } : {}
1061
1061
  );
1062
1062
  return hubspotClientInstance.delete(
1063
- `/webhooks/v1/${encodeURIComponent(
1063
+ `/webhooks/v3/${encodeURIComponent(
1064
1064
  appId
1065
1065
  )}/settings?${params.toString()}`
1066
1066
  // getHubspotClientConfig({
package/dist/index.mjs CHANGED
@@ -850,7 +850,7 @@ var hubspotWebhooksApi = {
850
850
  } : {}
851
851
  );
852
852
  return hubspotClientInstance.get(
853
- `/webhooks/v1/${encodeURIComponent(
853
+ `/webhooks/v3/${encodeURIComponent(
854
854
  appId
855
855
  )}/settings?${params.toString()}`
856
856
  // getHubspotClientConfig({
@@ -868,7 +868,7 @@ var hubspotWebhooksApi = {
868
868
  } : {}
869
869
  );
870
870
  return hubspotClientInstance.put(
871
- `/webhooks/v1/${encodeURIComponent(
871
+ `/webhooks/v3/${encodeURIComponent(
872
872
  appId
873
873
  )}/settings?${params.toString()}`,
874
874
  payload
@@ -887,7 +887,7 @@ var hubspotWebhooksApi = {
887
887
  } : {}
888
888
  );
889
889
  return hubspotClientInstance.delete(
890
- `/webhooks/v1/${encodeURIComponent(
890
+ `/webhooks/v3/${encodeURIComponent(
891
891
  appId
892
892
  )}/settings?${params.toString()}`
893
893
  // getHubspotClientConfig({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "3.5.1",
3
+ "version": "3.5.2",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",