@livechat/developer-studio-api 3.4.9 → 3.4.10
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 +351 -500
- package/dist/index.d.ts +351 -500
- package/dist/index.js +6 -6
- package/dist/index.mjs +5 -5
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -124,7 +124,7 @@ __export(src_exports, {
|
|
|
124
124
|
getHelpDeskClientConfig: () => getHelpDeskClientConfig,
|
|
125
125
|
getHubspotClientConfig: () => getHubspotClientConfig,
|
|
126
126
|
getIntegrationFlowUrl: () => getIntegrationFlowUrl,
|
|
127
|
-
|
|
127
|
+
getIntegrationFlowUrlForRedirection: () => getIntegrationFlowUrlForRedirection,
|
|
128
128
|
getLiveChatClientConfig: () => getLiveChatClientConfig,
|
|
129
129
|
getMailchimpClientConfig: () => getMailchimpClientConfig,
|
|
130
130
|
getMailchimpClientUrl: () => getMailchimpClientUrl,
|
|
@@ -8035,13 +8035,13 @@ var serializerBase64 = {
|
|
|
8035
8035
|
};
|
|
8036
8036
|
|
|
8037
8037
|
// src/utils/integrations/getIntegrationFlowUrl.ts
|
|
8038
|
-
function
|
|
8039
|
-
const
|
|
8038
|
+
function getIntegrationFlowUrlForRedirection(provider, flow, state, context, config) {
|
|
8039
|
+
const serializedState = typeof state === "string" ? state : serializerBase64.serialize(state);
|
|
8040
8040
|
const serializedContext = serializerBase64.serialize(__spreadProps(__spreadValues({}, context), {
|
|
8041
8041
|
mode: "redirect" /* Redirect */,
|
|
8042
|
-
state:
|
|
8042
|
+
state: serializedState
|
|
8043
8043
|
}));
|
|
8044
|
-
return `${config.adapterUrl}/integrations/${provider}/
|
|
8044
|
+
return `${config.adapterUrl}/integrations/${provider}/flows/${flow}/flow?context=${serializedContext}`;
|
|
8045
8045
|
}
|
|
8046
8046
|
function getIntegrationFlowUrl(name, flow, trigger, context, state, config) {
|
|
8047
8047
|
return __async(this, null, function* () {
|
|
@@ -8181,7 +8181,7 @@ var debounce = (func, wait) => {
|
|
|
8181
8181
|
getHelpDeskClientConfig,
|
|
8182
8182
|
getHubspotClientConfig,
|
|
8183
8183
|
getIntegrationFlowUrl,
|
|
8184
|
-
|
|
8184
|
+
getIntegrationFlowUrlForRedirection,
|
|
8185
8185
|
getLiveChatClientConfig,
|
|
8186
8186
|
getMailchimpClientConfig,
|
|
8187
8187
|
getMailchimpClientUrl,
|
package/dist/index.mjs
CHANGED
|
@@ -7888,13 +7888,13 @@ var serializerBase64 = {
|
|
|
7888
7888
|
};
|
|
7889
7889
|
|
|
7890
7890
|
// src/utils/integrations/getIntegrationFlowUrl.ts
|
|
7891
|
-
function
|
|
7892
|
-
const
|
|
7891
|
+
function getIntegrationFlowUrlForRedirection(provider, flow, state, context, config) {
|
|
7892
|
+
const serializedState = typeof state === "string" ? state : serializerBase64.serialize(state);
|
|
7893
7893
|
const serializedContext = serializerBase64.serialize(__spreadProps(__spreadValues({}, context), {
|
|
7894
7894
|
mode: "redirect" /* Redirect */,
|
|
7895
|
-
state:
|
|
7895
|
+
state: serializedState
|
|
7896
7896
|
}));
|
|
7897
|
-
return `${config.adapterUrl}/integrations/${provider}/
|
|
7897
|
+
return `${config.adapterUrl}/integrations/${provider}/flows/${flow}/flow?context=${serializedContext}`;
|
|
7898
7898
|
}
|
|
7899
7899
|
function getIntegrationFlowUrl(name, flow, trigger, context, state, config) {
|
|
7900
7900
|
return __async(this, null, function* () {
|
|
@@ -8033,7 +8033,7 @@ export {
|
|
|
8033
8033
|
getHelpDeskClientConfig,
|
|
8034
8034
|
getHubspotClientConfig,
|
|
8035
8035
|
getIntegrationFlowUrl,
|
|
8036
|
-
|
|
8036
|
+
getIntegrationFlowUrlForRedirection,
|
|
8037
8037
|
getLiveChatClientConfig,
|
|
8038
8038
|
getMailchimpClientConfig,
|
|
8039
8039
|
getMailchimpClientUrl,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/developer-studio-api",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.10",
|
|
4
4
|
"description": "This project is API for LiveChat Developer Studio.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"tsup": "^7.1.0",
|
|
22
22
|
"typescript": "^5.1.6",
|
|
23
23
|
"eslint-config-custom": "0.0.10",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
24
|
+
"tsconfig": "0.0.1",
|
|
25
|
+
"utils": "0.0.4"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "tsup",
|