@livechat/platform-workflows 0.0.85 → 0.0.87
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 +51 -10
- package/dist/index.mjs +51 -10
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -4948,6 +4948,16 @@ var hubSpotTriggerTemplates = () => ({
|
|
|
4948
4948
|
var import_developer_studio_api7 = require("@livechat/developer-studio-api");
|
|
4949
4949
|
var webhookSpecs2 = {
|
|
4950
4950
|
new_chat: {
|
|
4951
|
+
input: {
|
|
4952
|
+
type: "object",
|
|
4953
|
+
required: [],
|
|
4954
|
+
properties: {
|
|
4955
|
+
targetAgentId: {
|
|
4956
|
+
type: "string",
|
|
4957
|
+
title: "Target Agent email"
|
|
4958
|
+
}
|
|
4959
|
+
}
|
|
4960
|
+
},
|
|
4951
4961
|
output: {
|
|
4952
4962
|
type: "object",
|
|
4953
4963
|
properties: {
|
|
@@ -5542,16 +5552,46 @@ var livechatTaskConfigs = () => ({
|
|
|
5542
5552
|
{ const: "group", title: "Group" },
|
|
5543
5553
|
{ const: "agent", title: "Agent" }
|
|
5544
5554
|
]
|
|
5555
|
+
}
|
|
5556
|
+
},
|
|
5557
|
+
allOf: [
|
|
5558
|
+
{
|
|
5559
|
+
if: {
|
|
5560
|
+
properties: { target_type: { const: "agent" } }
|
|
5561
|
+
},
|
|
5562
|
+
then: {
|
|
5563
|
+
properties: {
|
|
5564
|
+
ids: {
|
|
5565
|
+
type: "array",
|
|
5566
|
+
title: "Agent emails",
|
|
5567
|
+
items: {
|
|
5568
|
+
title: " ",
|
|
5569
|
+
type: "string",
|
|
5570
|
+
format: "email"
|
|
5571
|
+
}
|
|
5572
|
+
}
|
|
5573
|
+
}
|
|
5574
|
+
}
|
|
5545
5575
|
},
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5576
|
+
{
|
|
5577
|
+
if: {
|
|
5578
|
+
properties: { target_type: { const: "group" } }
|
|
5579
|
+
},
|
|
5580
|
+
then: {
|
|
5581
|
+
properties: {
|
|
5582
|
+
ids: {
|
|
5583
|
+
type: "array",
|
|
5584
|
+
title: "Group IDs",
|
|
5585
|
+
items: {
|
|
5586
|
+
title: " ",
|
|
5587
|
+
type: "number"
|
|
5588
|
+
// $ref: '#/$defs/livechat_group'
|
|
5589
|
+
}
|
|
5590
|
+
}
|
|
5591
|
+
}
|
|
5552
5592
|
}
|
|
5553
5593
|
}
|
|
5554
|
-
|
|
5594
|
+
]
|
|
5555
5595
|
})
|
|
5556
5596
|
}
|
|
5557
5597
|
},
|
|
@@ -5651,7 +5691,7 @@ var livechatTaskConfigs = () => ({
|
|
|
5651
5691
|
product: import_developer_studio_api7.IntegrationDisplayNames.LiveChat,
|
|
5652
5692
|
displayName: "Send message",
|
|
5653
5693
|
shortDescription: "Send message",
|
|
5654
|
-
description: "Sends a message in a currently ongoing chat."
|
|
5694
|
+
description: "Sends a message in a currently ongoing chat. Note: This action requires the workflow creator to be present in the chat as an agent."
|
|
5655
5695
|
},
|
|
5656
5696
|
specification: {
|
|
5657
5697
|
input: WORKFLOW_HTTP_TASK_INPUT_SCHEMA({
|
|
@@ -5831,9 +5871,10 @@ var livechatTriggerConfigs = () => ({
|
|
|
5831
5871
|
product: import_developer_studio_api7.IntegrationDisplayNames.LiveChat,
|
|
5832
5872
|
displayName: "Chat started",
|
|
5833
5873
|
shortDescription: "Chat started",
|
|
5834
|
-
description: "Triggers when a new chat is
|
|
5874
|
+
description: "Triggers when a new chat starts. Fires only if the specified Target Agent is in the chat; otherwise, it applies to all new chats."
|
|
5835
5875
|
},
|
|
5836
5876
|
specification: {
|
|
5877
|
+
input: webhookSpecs2.new_chat.input,
|
|
5837
5878
|
output: webhookSpecs2.new_chat.output
|
|
5838
5879
|
}
|
|
5839
5880
|
},
|
|
@@ -21670,7 +21711,7 @@ function WorkflowElementPanel() {
|
|
|
21670
21711
|
Header7,
|
|
21671
21712
|
{
|
|
21672
21713
|
css: css`
|
|
21673
|
-
max-width:
|
|
21714
|
+
max-width: 85%;
|
|
21674
21715
|
`,
|
|
21675
21716
|
children: /* @__PURE__ */ jsxs2(Title7, { children: [
|
|
21676
21717
|
(config2 == null ? void 0 : config2.customization.product) ? /* @__PURE__ */ jsx4(
|
package/dist/index.mjs
CHANGED
|
@@ -4975,6 +4975,16 @@ import {
|
|
|
4975
4975
|
} from "@livechat/developer-studio-api";
|
|
4976
4976
|
var webhookSpecs2 = {
|
|
4977
4977
|
new_chat: {
|
|
4978
|
+
input: {
|
|
4979
|
+
type: "object",
|
|
4980
|
+
required: [],
|
|
4981
|
+
properties: {
|
|
4982
|
+
targetAgentId: {
|
|
4983
|
+
type: "string",
|
|
4984
|
+
title: "Target Agent email"
|
|
4985
|
+
}
|
|
4986
|
+
}
|
|
4987
|
+
},
|
|
4978
4988
|
output: {
|
|
4979
4989
|
type: "object",
|
|
4980
4990
|
properties: {
|
|
@@ -5569,16 +5579,46 @@ var livechatTaskConfigs = () => ({
|
|
|
5569
5579
|
{ const: "group", title: "Group" },
|
|
5570
5580
|
{ const: "agent", title: "Agent" }
|
|
5571
5581
|
]
|
|
5582
|
+
}
|
|
5583
|
+
},
|
|
5584
|
+
allOf: [
|
|
5585
|
+
{
|
|
5586
|
+
if: {
|
|
5587
|
+
properties: { target_type: { const: "agent" } }
|
|
5588
|
+
},
|
|
5589
|
+
then: {
|
|
5590
|
+
properties: {
|
|
5591
|
+
ids: {
|
|
5592
|
+
type: "array",
|
|
5593
|
+
title: "Agent emails",
|
|
5594
|
+
items: {
|
|
5595
|
+
title: " ",
|
|
5596
|
+
type: "string",
|
|
5597
|
+
format: "email"
|
|
5598
|
+
}
|
|
5599
|
+
}
|
|
5600
|
+
}
|
|
5601
|
+
}
|
|
5572
5602
|
},
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5603
|
+
{
|
|
5604
|
+
if: {
|
|
5605
|
+
properties: { target_type: { const: "group" } }
|
|
5606
|
+
},
|
|
5607
|
+
then: {
|
|
5608
|
+
properties: {
|
|
5609
|
+
ids: {
|
|
5610
|
+
type: "array",
|
|
5611
|
+
title: "Group IDs",
|
|
5612
|
+
items: {
|
|
5613
|
+
title: " ",
|
|
5614
|
+
type: "number"
|
|
5615
|
+
// $ref: '#/$defs/livechat_group'
|
|
5616
|
+
}
|
|
5617
|
+
}
|
|
5618
|
+
}
|
|
5579
5619
|
}
|
|
5580
5620
|
}
|
|
5581
|
-
|
|
5621
|
+
]
|
|
5582
5622
|
})
|
|
5583
5623
|
}
|
|
5584
5624
|
},
|
|
@@ -5678,7 +5718,7 @@ var livechatTaskConfigs = () => ({
|
|
|
5678
5718
|
product: IntegrationDisplayNames4.LiveChat,
|
|
5679
5719
|
displayName: "Send message",
|
|
5680
5720
|
shortDescription: "Send message",
|
|
5681
|
-
description: "Sends a message in a currently ongoing chat."
|
|
5721
|
+
description: "Sends a message in a currently ongoing chat. Note: This action requires the workflow creator to be present in the chat as an agent."
|
|
5682
5722
|
},
|
|
5683
5723
|
specification: {
|
|
5684
5724
|
input: WORKFLOW_HTTP_TASK_INPUT_SCHEMA({
|
|
@@ -5858,9 +5898,10 @@ var livechatTriggerConfigs = () => ({
|
|
|
5858
5898
|
product: IntegrationDisplayNames4.LiveChat,
|
|
5859
5899
|
displayName: "Chat started",
|
|
5860
5900
|
shortDescription: "Chat started",
|
|
5861
|
-
description: "Triggers when a new chat is
|
|
5901
|
+
description: "Triggers when a new chat starts. Fires only if the specified Target Agent is in the chat; otherwise, it applies to all new chats."
|
|
5862
5902
|
},
|
|
5863
5903
|
specification: {
|
|
5904
|
+
input: webhookSpecs2.new_chat.input,
|
|
5864
5905
|
output: webhookSpecs2.new_chat.output
|
|
5865
5906
|
}
|
|
5866
5907
|
},
|
|
@@ -22028,7 +22069,7 @@ function WorkflowElementPanel() {
|
|
|
22028
22069
|
Header7,
|
|
22029
22070
|
{
|
|
22030
22071
|
css: css`
|
|
22031
|
-
max-width:
|
|
22072
|
+
max-width: 85%;
|
|
22032
22073
|
`,
|
|
22033
22074
|
children: /* @__PURE__ */ jsxs2(Title7, { children: [
|
|
22034
22075
|
(config2 == null ? void 0 : config2.customization.product) ? /* @__PURE__ */ jsx4(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/platform-workflows",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.87",
|
|
4
4
|
"description": "Text Platform | Workflows",
|
|
5
5
|
"author": "Wojciech Dudek",
|
|
6
6
|
"license": "MIT",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"esbuild-sass-plugin": "^3.2.0",
|
|
49
49
|
"tsup": "^8.0.0",
|
|
50
50
|
"typescript": "^5.1.6",
|
|
51
|
-
"
|
|
52
|
-
"
|
|
51
|
+
"eslint-config-custom": "0.0.10",
|
|
52
|
+
"tsconfig": "0.0.1"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@amplitude/analytics-browser": "^2.11.9",
|
|
@@ -81,9 +81,9 @@
|
|
|
81
81
|
"uuid": "^9.0.1",
|
|
82
82
|
"validator": "^13.12.0",
|
|
83
83
|
"web-worker": "^1.3.0",
|
|
84
|
-
"@livechat/
|
|
85
|
-
"@livechat/developer-studio-ui-react": "1.1.
|
|
86
|
-
"@livechat/
|
|
84
|
+
"@livechat/developer-studio-api": "3.4.13",
|
|
85
|
+
"@livechat/developer-studio-ui-react": "1.1.4",
|
|
86
|
+
"@livechat/platform-integrations": "0.0.51"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
89
|
"@tanstack/react-query": "4.36.1",
|