@livechat/developer-studio-api 3.1.39 → 3.1.40
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 +4 -3
- package/dist/index.d.ts +4 -3
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1049,18 +1049,19 @@ interface CreateHubSpotWebhookSubscriptionPayload {
|
|
|
1049
1049
|
active: boolean;
|
|
1050
1050
|
}
|
|
1051
1051
|
type HubSpotWebhookDataBase<TPayload = unknown> = {
|
|
1052
|
-
|
|
1052
|
+
subscriptionId: string;
|
|
1053
|
+
subscriptionType: HubSpotWebhookEventTypes;
|
|
1053
1054
|
objectId: string;
|
|
1054
1055
|
changeSource: string;
|
|
1056
|
+
changeFlag: string;
|
|
1055
1057
|
eventId: string;
|
|
1056
|
-
subscriptionId: string;
|
|
1057
1058
|
portalId: string;
|
|
1058
1059
|
appId: string;
|
|
1059
1060
|
occurredAt: string;
|
|
1060
1061
|
attemptNumber: number;
|
|
1061
1062
|
} & TPayload;
|
|
1062
1063
|
type HubSpotWebhookConcreteData<TEventType extends HubSpotWebhookEventTypes, TPayload> = HubSpotWebhookDataBase<TPayload> & {
|
|
1063
|
-
|
|
1064
|
+
subscriptionType: TEventType;
|
|
1064
1065
|
};
|
|
1065
1066
|
type HubSpotContactCreationWebhookData = HubSpotWebhookConcreteData<HubSpotWebhookEventTypes.ContactCreation, void>;
|
|
1066
1067
|
type HubSpotContactDeletionWebhookData = HubSpotWebhookConcreteData<HubSpotWebhookEventTypes.ContactDeletion, void>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1049,18 +1049,19 @@ interface CreateHubSpotWebhookSubscriptionPayload {
|
|
|
1049
1049
|
active: boolean;
|
|
1050
1050
|
}
|
|
1051
1051
|
type HubSpotWebhookDataBase<TPayload = unknown> = {
|
|
1052
|
-
|
|
1052
|
+
subscriptionId: string;
|
|
1053
|
+
subscriptionType: HubSpotWebhookEventTypes;
|
|
1053
1054
|
objectId: string;
|
|
1054
1055
|
changeSource: string;
|
|
1056
|
+
changeFlag: string;
|
|
1055
1057
|
eventId: string;
|
|
1056
|
-
subscriptionId: string;
|
|
1057
1058
|
portalId: string;
|
|
1058
1059
|
appId: string;
|
|
1059
1060
|
occurredAt: string;
|
|
1060
1061
|
attemptNumber: number;
|
|
1061
1062
|
} & TPayload;
|
|
1062
1063
|
type HubSpotWebhookConcreteData<TEventType extends HubSpotWebhookEventTypes, TPayload> = HubSpotWebhookDataBase<TPayload> & {
|
|
1063
|
-
|
|
1064
|
+
subscriptionType: TEventType;
|
|
1064
1065
|
};
|
|
1065
1066
|
type HubSpotContactCreationWebhookData = HubSpotWebhookConcreteData<HubSpotWebhookEventTypes.ContactCreation, void>;
|
|
1066
1067
|
type HubSpotContactDeletionWebhookData = HubSpotWebhookConcreteData<HubSpotWebhookEventTypes.ContactDeletion, void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/developer-studio-api",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.40",
|
|
4
4
|
"description": "This project is API for LiveChat Developer Studio.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"@types/node": "^17.0.12",
|
|
21
21
|
"tsup": "^7.1.0",
|
|
22
22
|
"typescript": "^5.1.6",
|
|
23
|
-
"eslint-config-custom": "0.0.8",
|
|
24
23
|
"tsconfig": "0.0.1",
|
|
24
|
+
"eslint-config-custom": "0.0.8",
|
|
25
25
|
"utils": "0.0.4"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|