@livechat/platform-workflows 0.0.84 → 0.0.86

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
@@ -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
- ids: {
5547
- type: "array",
5548
- title: "Target IDs",
5549
- description: "For the agent, input the agent's email, and for the group, the group ID. The group ID is visible in the Details section of a selected group in the LiveChat app.",
5550
- items: {
5551
- type: "number"
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
  },
@@ -5834,6 +5874,7 @@ var livechatTriggerConfigs = () => ({
5834
5874
  description: "Triggers when a new chat is initiated."
5835
5875
  },
5836
5876
  specification: {
5877
+ input: webhookSpecs2.new_chat.input,
5837
5878
  output: webhookSpecs2.new_chat.output
5838
5879
  }
5839
5880
  },
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
- ids: {
5574
- type: "array",
5575
- title: "Target IDs",
5576
- description: "For the agent, input the agent's email, and for the group, the group ID. The group ID is visible in the Details section of a selected group in the LiveChat app.",
5577
- items: {
5578
- type: "number"
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
  },
@@ -5861,6 +5901,7 @@ var livechatTriggerConfigs = () => ({
5861
5901
  description: "Triggers when a new chat is initiated."
5862
5902
  },
5863
5903
  specification: {
5904
+ input: webhookSpecs2.new_chat.input,
5864
5905
  output: webhookSpecs2.new_chat.output
5865
5906
  }
5866
5907
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/platform-workflows",
3
- "version": "0.0.84",
3
+ "version": "0.0.86",
4
4
  "description": "Text Platform | Workflows",
5
5
  "author": "Wojciech Dudek",
6
6
  "license": "MIT",
@@ -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/developer-studio-api": "3.4.12",
85
- "@livechat/developer-studio-ui-react": "1.1.3",
86
- "@livechat/platform-integrations": "0.0.49"
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",