@livechat/developer-studio-api 3.4.8 → 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.js CHANGED
@@ -98,6 +98,7 @@ __export(src_exports, {
98
98
  UnauthorizeAccountsApiError: () => UnauthorizeAccountsApiError,
99
99
  UnauthorizeApiError: () => UnauthorizeApiError,
100
100
  WorkflowDefinitionTaskType: () => WorkflowDefinitionTaskType,
101
+ WorkflowTemplateCategory: () => WorkflowTemplateCategory,
101
102
  adapterClientInstance: () => adapterClientInstance,
102
103
  allAppTemplates: () => allAppTemplates,
103
104
  api: () => api,
@@ -123,7 +124,7 @@ __export(src_exports, {
123
124
  getHelpDeskClientConfig: () => getHelpDeskClientConfig,
124
125
  getHubspotClientConfig: () => getHubspotClientConfig,
125
126
  getIntegrationFlowUrl: () => getIntegrationFlowUrl,
126
- getIntegrationFlowUrlOld: () => getIntegrationFlowUrlOld,
127
+ getIntegrationFlowUrlForRedirection: () => getIntegrationFlowUrlForRedirection,
127
128
  getLiveChatClientConfig: () => getLiveChatClientConfig,
128
129
  getMailchimpClientConfig: () => getMailchimpClientConfig,
129
130
  getMailchimpClientUrl: () => getMailchimpClientUrl,
@@ -1697,15 +1698,20 @@ var textAppMonitoringEventsApi = {
1697
1698
  };
1698
1699
 
1699
1700
  // src/apis/integrations/text/platform/workflow/workflows/_contracts/dtos/workflows.ts
1701
+ var WorkflowTemplateCategory = /* @__PURE__ */ ((WorkflowTemplateCategory2) => {
1702
+ WorkflowTemplateCategory2["NotificationAndAlerts"] = "Notifications & alerts";
1703
+ WorkflowTemplateCategory2["SalesManagement"] = "Sales management";
1704
+ WorkflowTemplateCategory2["LeadCollection"] = "Lead collection";
1705
+ WorkflowTemplateCategory2["ChatManagement"] = "Chat management";
1706
+ WorkflowTemplateCategory2["CustomerExperience"] = "Customer experience";
1707
+ return WorkflowTemplateCategory2;
1708
+ })(WorkflowTemplateCategory || {});
1700
1709
  var WorkflowDefinitionTaskType = {
1701
1710
  http: "HTTP",
1702
1711
  switch: "SWITCH",
1703
1712
  forkJoin: "FORK_JOIN",
1704
1713
  terminate: "TERMINATE",
1705
- join: "JOIN",
1706
- addNode: "ADD_NODE",
1707
- addTrigger: "ADD_TRIGGER",
1708
- trigger: "TRIGGER"
1714
+ join: "JOIN"
1709
1715
  };
1710
1716
 
1711
1717
  // src/apis/integrations/vercel/instance.ts
@@ -8029,13 +8035,13 @@ var serializerBase64 = {
8029
8035
  };
8030
8036
 
8031
8037
  // src/utils/integrations/getIntegrationFlowUrl.ts
8032
- function getIntegrationFlowUrlOld(provider, flow, data, context, config) {
8033
- const serializedFlowState = typeof data === "string" ? data : serializerBase64.serialize(data);
8038
+ function getIntegrationFlowUrlForRedirection(provider, flow, state, context, config) {
8039
+ const serializedState = typeof state === "string" ? state : serializerBase64.serialize(state);
8034
8040
  const serializedContext = serializerBase64.serialize(__spreadProps(__spreadValues({}, context), {
8035
8041
  mode: "redirect" /* Redirect */,
8036
- state: serializedFlowState
8042
+ state: serializedState
8037
8043
  }));
8038
- return `${config.adapterUrl}/integrations/${provider}/flow?flow=${flow}&context=${serializedContext}`;
8044
+ return `${config.adapterUrl}/integrations/${provider}/flows/${flow}/flow?context=${serializedContext}`;
8039
8045
  }
8040
8046
  function getIntegrationFlowUrl(name, flow, trigger, context, state, config) {
8041
8047
  return __async(this, null, function* () {
@@ -8149,6 +8155,7 @@ var debounce = (func, wait) => {
8149
8155
  UnauthorizeAccountsApiError,
8150
8156
  UnauthorizeApiError,
8151
8157
  WorkflowDefinitionTaskType,
8158
+ WorkflowTemplateCategory,
8152
8159
  adapterClientInstance,
8153
8160
  allAppTemplates,
8154
8161
  api,
@@ -8174,7 +8181,7 @@ var debounce = (func, wait) => {
8174
8181
  getHelpDeskClientConfig,
8175
8182
  getHubspotClientConfig,
8176
8183
  getIntegrationFlowUrl,
8177
- getIntegrationFlowUrlOld,
8184
+ getIntegrationFlowUrlForRedirection,
8178
8185
  getLiveChatClientConfig,
8179
8186
  getMailchimpClientConfig,
8180
8187
  getMailchimpClientUrl,
package/dist/index.mjs CHANGED
@@ -1551,15 +1551,20 @@ var textAppMonitoringEventsApi = {
1551
1551
  };
1552
1552
 
1553
1553
  // src/apis/integrations/text/platform/workflow/workflows/_contracts/dtos/workflows.ts
1554
+ var WorkflowTemplateCategory = /* @__PURE__ */ ((WorkflowTemplateCategory2) => {
1555
+ WorkflowTemplateCategory2["NotificationAndAlerts"] = "Notifications & alerts";
1556
+ WorkflowTemplateCategory2["SalesManagement"] = "Sales management";
1557
+ WorkflowTemplateCategory2["LeadCollection"] = "Lead collection";
1558
+ WorkflowTemplateCategory2["ChatManagement"] = "Chat management";
1559
+ WorkflowTemplateCategory2["CustomerExperience"] = "Customer experience";
1560
+ return WorkflowTemplateCategory2;
1561
+ })(WorkflowTemplateCategory || {});
1554
1562
  var WorkflowDefinitionTaskType = {
1555
1563
  http: "HTTP",
1556
1564
  switch: "SWITCH",
1557
1565
  forkJoin: "FORK_JOIN",
1558
1566
  terminate: "TERMINATE",
1559
- join: "JOIN",
1560
- addNode: "ADD_NODE",
1561
- addTrigger: "ADD_TRIGGER",
1562
- trigger: "TRIGGER"
1567
+ join: "JOIN"
1563
1568
  };
1564
1569
 
1565
1570
  // src/apis/integrations/vercel/instance.ts
@@ -7883,13 +7888,13 @@ var serializerBase64 = {
7883
7888
  };
7884
7889
 
7885
7890
  // src/utils/integrations/getIntegrationFlowUrl.ts
7886
- function getIntegrationFlowUrlOld(provider, flow, data, context, config) {
7887
- const serializedFlowState = typeof data === "string" ? data : serializerBase64.serialize(data);
7891
+ function getIntegrationFlowUrlForRedirection(provider, flow, state, context, config) {
7892
+ const serializedState = typeof state === "string" ? state : serializerBase64.serialize(state);
7888
7893
  const serializedContext = serializerBase64.serialize(__spreadProps(__spreadValues({}, context), {
7889
7894
  mode: "redirect" /* Redirect */,
7890
- state: serializedFlowState
7895
+ state: serializedState
7891
7896
  }));
7892
- return `${config.adapterUrl}/integrations/${provider}/flow?flow=${flow}&context=${serializedContext}`;
7897
+ return `${config.adapterUrl}/integrations/${provider}/flows/${flow}/flow?context=${serializedContext}`;
7893
7898
  }
7894
7899
  function getIntegrationFlowUrl(name, flow, trigger, context, state, config) {
7895
7900
  return __async(this, null, function* () {
@@ -8002,6 +8007,7 @@ export {
8002
8007
  UnauthorizeAccountsApiError,
8003
8008
  UnauthorizeApiError,
8004
8009
  WorkflowDefinitionTaskType,
8010
+ WorkflowTemplateCategory,
8005
8011
  adapterClientInstance,
8006
8012
  allAppTemplates,
8007
8013
  api,
@@ -8027,7 +8033,7 @@ export {
8027
8033
  getHelpDeskClientConfig,
8028
8034
  getHubspotClientConfig,
8029
8035
  getIntegrationFlowUrl,
8030
- getIntegrationFlowUrlOld,
8036
+ getIntegrationFlowUrlForRedirection,
8031
8037
  getLiveChatClientConfig,
8032
8038
  getMailchimpClientConfig,
8033
8039
  getMailchimpClientUrl,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "3.4.8",
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
- "utils": "0.0.4",
25
- "tsconfig": "0.0.1"
24
+ "tsconfig": "0.0.1",
25
+ "utils": "0.0.4"
26
26
  },
27
27
  "scripts": {
28
28
  "build": "tsup",