@livechat/developer-studio-api 3.1.39 → 3.1.41
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/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
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/dist/index.js
CHANGED
|
@@ -3676,11 +3676,11 @@ function getLiveChatClientAuthorization(req) {
|
|
|
3676
3676
|
};
|
|
3677
3677
|
}
|
|
3678
3678
|
function getLiveChatClientConfig(options = {}) {
|
|
3679
|
-
var _a;
|
|
3679
|
+
var _a, _b;
|
|
3680
3680
|
const currentHeaders = livechatClientInstance.defaults.headers;
|
|
3681
3681
|
const defaultAuthorization = currentHeaders.Authorization;
|
|
3682
3682
|
const headers = {
|
|
3683
|
-
authorization: (
|
|
3683
|
+
authorization: (_b = options.token ? `${(_a = options.tokenType) != null ? _a : "Bearer"} ${options.token}` : void 0) != null ? _b : defaultAuthorization
|
|
3684
3684
|
};
|
|
3685
3685
|
return {
|
|
3686
3686
|
headers: __spreadValues({}, headers.authorization ? { Authorization: headers.authorization } : {})
|
|
@@ -4587,11 +4587,11 @@ function getPlatformDpsAdminClientAuthorization() {
|
|
|
4587
4587
|
};
|
|
4588
4588
|
}
|
|
4589
4589
|
function getPlatformDpsClientConfig(options = {}) {
|
|
4590
|
-
var _a;
|
|
4590
|
+
var _a, _b;
|
|
4591
4591
|
const currentHeaders = platformDpsClientInstance.defaults.headers;
|
|
4592
4592
|
const defaultAuthorization = currentHeaders.Authorization;
|
|
4593
4593
|
const headers = {
|
|
4594
|
-
authorization: (
|
|
4594
|
+
authorization: (_b = options.token ? `${(_a = options.tokenType) != null ? _a : "Bearer"} ${options.token}` : void 0) != null ? _b : defaultAuthorization
|
|
4595
4595
|
};
|
|
4596
4596
|
return {
|
|
4597
4597
|
headers: __spreadValues({}, headers.authorization ? { Authorization: headers.authorization } : {})
|
package/dist/index.mjs
CHANGED
|
@@ -3524,11 +3524,11 @@ function getLiveChatClientAuthorization(req) {
|
|
|
3524
3524
|
};
|
|
3525
3525
|
}
|
|
3526
3526
|
function getLiveChatClientConfig(options = {}) {
|
|
3527
|
-
var _a;
|
|
3527
|
+
var _a, _b;
|
|
3528
3528
|
const currentHeaders = livechatClientInstance.defaults.headers;
|
|
3529
3529
|
const defaultAuthorization = currentHeaders.Authorization;
|
|
3530
3530
|
const headers = {
|
|
3531
|
-
authorization: (
|
|
3531
|
+
authorization: (_b = options.token ? `${(_a = options.tokenType) != null ? _a : "Bearer"} ${options.token}` : void 0) != null ? _b : defaultAuthorization
|
|
3532
3532
|
};
|
|
3533
3533
|
return {
|
|
3534
3534
|
headers: __spreadValues({}, headers.authorization ? { Authorization: headers.authorization } : {})
|
|
@@ -4435,11 +4435,11 @@ function getPlatformDpsAdminClientAuthorization() {
|
|
|
4435
4435
|
};
|
|
4436
4436
|
}
|
|
4437
4437
|
function getPlatformDpsClientConfig(options = {}) {
|
|
4438
|
-
var _a;
|
|
4438
|
+
var _a, _b;
|
|
4439
4439
|
const currentHeaders = platformDpsClientInstance.defaults.headers;
|
|
4440
4440
|
const defaultAuthorization = currentHeaders.Authorization;
|
|
4441
4441
|
const headers = {
|
|
4442
|
-
authorization: (
|
|
4442
|
+
authorization: (_b = options.token ? `${(_a = options.tokenType) != null ? _a : "Bearer"} ${options.token}` : void 0) != null ? _b : defaultAuthorization
|
|
4443
4443
|
};
|
|
4444
4444
|
return {
|
|
4445
4445
|
headers: __spreadValues({}, headers.authorization ? { Authorization: headers.authorization } : {})
|