@renatoascencio/n8n-nodes-chatwoot 0.2.0 → 0.4.0
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/README.md +248 -9
- package/dist/credentials/ChatwootPlatformApi.credentials.d.ts +9 -0
- package/dist/credentials/ChatwootPlatformApi.credentials.js +49 -0
- package/dist/credentials/ChatwootPlatformApi.credentials.js.map +1 -0
- package/dist/credentials/ChatwootPublicApi.credentials.d.ts +7 -0
- package/dist/credentials/ChatwootPublicApi.credentials.js +31 -0
- package/dist/credentials/ChatwootPublicApi.credentials.js.map +1 -0
- package/dist/nodes/Chatwoot/Chatwoot.node.d.ts +4 -1
- package/dist/nodes/Chatwoot/Chatwoot.node.js +807 -12
- package/dist/nodes/Chatwoot/Chatwoot.node.js.map +1 -1
- package/dist/nodes/Chatwoot/GenericFunctions.d.ts +14 -0
- package/dist/nodes/Chatwoot/GenericFunctions.js +170 -0
- package/dist/nodes/Chatwoot/GenericFunctions.js.map +1 -1
- package/dist/nodes/Chatwoot/chatwoot.svg +4 -11
- package/dist/nodes/Chatwoot/resources/accountAgentBot/create.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/accountAgentBot/create.operation.js +63 -0
- package/dist/nodes/Chatwoot/resources/accountAgentBot/create.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/accountAgentBot/delete.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/accountAgentBot/delete.operation.js +34 -0
- package/dist/nodes/Chatwoot/resources/accountAgentBot/delete.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/accountAgentBot/get.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/accountAgentBot/get.operation.js +34 -0
- package/dist/nodes/Chatwoot/resources/accountAgentBot/get.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/accountAgentBot/getAll.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/accountAgentBot/getAll.operation.js +20 -0
- package/dist/nodes/Chatwoot/resources/accountAgentBot/getAll.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/accountAgentBot/index.d.ts +3 -0
- package/dist/nodes/Chatwoot/resources/accountAgentBot/index.js +60 -0
- package/dist/nodes/Chatwoot/resources/accountAgentBot/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/accountAgentBot/update.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/accountAgentBot/update.operation.js +70 -0
- package/dist/nodes/Chatwoot/resources/accountAgentBot/update.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/accountUser/create.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/accountUser/create.operation.js +52 -0
- package/dist/nodes/Chatwoot/resources/accountUser/create.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/accountUser/delete.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/accountUser/delete.operation.js +34 -0
- package/dist/nodes/Chatwoot/resources/accountUser/delete.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/accountUser/getAll.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/accountUser/getAll.operation.js +20 -0
- package/dist/nodes/Chatwoot/resources/accountUser/getAll.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/accountUser/index.d.ts +3 -0
- package/dist/nodes/Chatwoot/resources/accountUser/index.js +44 -0
- package/dist/nodes/Chatwoot/resources/accountUser/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/agentBot/index.d.ts +3 -0
- package/dist/nodes/Chatwoot/resources/agentBot/index.js +143 -0
- package/dist/nodes/Chatwoot/resources/agentBot/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/auditLog/getAll.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/auditLog/getAll.operation.js +76 -0
- package/dist/nodes/Chatwoot/resources/auditLog/getAll.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/auditLog/index.d.ts +3 -0
- package/dist/nodes/Chatwoot/resources/auditLog/index.js +26 -0
- package/dist/nodes/Chatwoot/resources/auditLog/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/automationRule/index.d.ts +3 -0
- package/dist/nodes/Chatwoot/resources/automationRule/index.js +205 -0
- package/dist/nodes/Chatwoot/resources/automationRule/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/contact/addLabels.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/contact/addLabels.operation.js +36 -0
- package/dist/nodes/Chatwoot/resources/contact/addLabels.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/contact/filter.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/contact/filter.operation.js +51 -0
- package/dist/nodes/Chatwoot/resources/contact/filter.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/contact/index.js +24 -0
- package/dist/nodes/Chatwoot/resources/contact/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/contact/listLabels.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/contact/listLabels.operation.js +20 -0
- package/dist/nodes/Chatwoot/resources/contact/listLabels.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/conversation/create.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/conversation/create.operation.js +92 -0
- package/dist/nodes/Chatwoot/resources/conversation/create.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/conversation/filter.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/conversation/filter.operation.js +51 -0
- package/dist/nodes/Chatwoot/resources/conversation/filter.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/conversation/getMeta.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/conversation/getMeta.operation.js +55 -0
- package/dist/nodes/Chatwoot/resources/conversation/getMeta.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/conversation/index.js +56 -0
- package/dist/nodes/Chatwoot/resources/conversation/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/conversation/listLabels.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/conversation/listLabels.operation.js +20 -0
- package/dist/nodes/Chatwoot/resources/conversation/listLabels.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/conversation/togglePriority.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/conversation/togglePriority.operation.js +41 -0
- package/dist/nodes/Chatwoot/resources/conversation/togglePriority.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/conversation/update.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/conversation/update.operation.js +56 -0
- package/dist/nodes/Chatwoot/resources/conversation/update.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/conversation/updateCustomAttributes.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/conversation/updateCustomAttributes.operation.js +34 -0
- package/dist/nodes/Chatwoot/resources/conversation/updateCustomAttributes.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/csatSurvey/get.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/csatSurvey/get.operation.js +20 -0
- package/dist/nodes/Chatwoot/resources/csatSurvey/get.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/csatSurvey/index.d.ts +3 -0
- package/dist/nodes/Chatwoot/resources/csatSurvey/index.js +26 -0
- package/dist/nodes/Chatwoot/resources/csatSurvey/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/customFilter/index.d.ts +3 -0
- package/dist/nodes/Chatwoot/resources/customFilter/index.js +139 -0
- package/dist/nodes/Chatwoot/resources/customFilter/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/createArticle.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/createArticle.operation.js +113 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/createArticle.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/createCategory.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/createCategory.operation.js +91 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/createCategory.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/createPortal.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/createPortal.operation.js +84 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/createPortal.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/getPortal.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/getPortal.operation.js +20 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/getPortal.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/index.d.ts +3 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/index.js +60 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/updatePortal.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/updatePortal.operation.js +77 -0
- package/dist/nodes/Chatwoot/resources/helpCenter/updatePortal.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/inbox/addAgent.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/inbox/addAgent.operation.js +34 -0
- package/dist/nodes/Chatwoot/resources/inbox/addAgent.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/inbox/create.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/inbox/create.operation.js +110 -0
- package/dist/nodes/Chatwoot/resources/inbox/create.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/inbox/deleteAgent.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/inbox/deleteAgent.operation.js +34 -0
- package/dist/nodes/Chatwoot/resources/inbox/deleteAgent.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/inbox/getAgentBot.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/inbox/getAgentBot.operation.js +20 -0
- package/dist/nodes/Chatwoot/resources/inbox/getAgentBot.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/inbox/getMembers.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/inbox/getMembers.operation.js +20 -0
- package/dist/nodes/Chatwoot/resources/inbox/getMembers.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/inbox/index.js +48 -0
- package/dist/nodes/Chatwoot/resources/inbox/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/inbox/setAgentBot.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/inbox/setAgentBot.operation.js +36 -0
- package/dist/nodes/Chatwoot/resources/inbox/setAgentBot.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/integration/createHook.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/integration/createHook.operation.js +47 -0
- package/dist/nodes/Chatwoot/resources/integration/createHook.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/integration/deleteHook.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/integration/deleteHook.operation.js +34 -0
- package/dist/nodes/Chatwoot/resources/integration/deleteHook.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/integration/getAll.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/integration/getAll.operation.js +5 -0
- package/dist/nodes/Chatwoot/resources/integration/getAll.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/integration/index.d.ts +3 -0
- package/dist/nodes/Chatwoot/resources/integration/index.js +52 -0
- package/dist/nodes/Chatwoot/resources/integration/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/integration/updateHook.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/integration/updateHook.operation.js +47 -0
- package/dist/nodes/Chatwoot/resources/integration/updateHook.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/message/delete.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/message/delete.operation.js +34 -0
- package/dist/nodes/Chatwoot/resources/message/delete.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/message/index.js +20 -1
- package/dist/nodes/Chatwoot/resources/message/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/message/update.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/message/update.operation.js +51 -0
- package/dist/nodes/Chatwoot/resources/message/update.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/platformAccount/create.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/platformAccount/create.operation.js +56 -0
- package/dist/nodes/Chatwoot/resources/platformAccount/create.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/platformAccount/delete.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/platformAccount/delete.operation.js +20 -0
- package/dist/nodes/Chatwoot/resources/platformAccount/delete.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/platformAccount/get.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/platformAccount/get.operation.js +20 -0
- package/dist/nodes/Chatwoot/resources/platformAccount/get.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/platformAccount/index.d.ts +3 -0
- package/dist/nodes/Chatwoot/resources/platformAccount/index.js +52 -0
- package/dist/nodes/Chatwoot/resources/platformAccount/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/platformAccount/update.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/platformAccount/update.operation.js +63 -0
- package/dist/nodes/Chatwoot/resources/platformAccount/update.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/platformUser/create.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/platformUser/create.operation.js +67 -0
- package/dist/nodes/Chatwoot/resources/platformUser/create.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/platformUser/delete.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/platformUser/delete.operation.js +20 -0
- package/dist/nodes/Chatwoot/resources/platformUser/delete.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/platformUser/get.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/platformUser/get.operation.js +20 -0
- package/dist/nodes/Chatwoot/resources/platformUser/get.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/platformUser/getSsoUrl.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/platformUser/getSsoUrl.operation.js +20 -0
- package/dist/nodes/Chatwoot/resources/platformUser/getSsoUrl.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/platformUser/index.d.ts +3 -0
- package/dist/nodes/Chatwoot/resources/platformUser/index.js +60 -0
- package/dist/nodes/Chatwoot/resources/platformUser/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/platformUser/update.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/platformUser/update.operation.js +66 -0
- package/dist/nodes/Chatwoot/resources/platformUser/update.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/profile/fetch.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/profile/fetch.operation.js +5 -0
- package/dist/nodes/Chatwoot/resources/profile/fetch.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/profile/index.d.ts +3 -0
- package/dist/nodes/Chatwoot/resources/profile/index.js +26 -0
- package/dist/nodes/Chatwoot/resources/profile/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/publicContact/create.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/publicContact/create.operation.js +63 -0
- package/dist/nodes/Chatwoot/resources/publicContact/create.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/publicContact/get.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/publicContact/get.operation.js +20 -0
- package/dist/nodes/Chatwoot/resources/publicContact/get.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/publicContact/index.d.ts +3 -0
- package/dist/nodes/Chatwoot/resources/publicContact/index.js +44 -0
- package/dist/nodes/Chatwoot/resources/publicContact/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/publicContact/update.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/publicContact/update.operation.js +70 -0
- package/dist/nodes/Chatwoot/resources/publicContact/update.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/publicConversation/create.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/publicConversation/create.operation.js +42 -0
- package/dist/nodes/Chatwoot/resources/publicConversation/create.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/publicConversation/get.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/publicConversation/get.operation.js +34 -0
- package/dist/nodes/Chatwoot/resources/publicConversation/get.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/publicConversation/getAll.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/publicConversation/getAll.operation.js +20 -0
- package/dist/nodes/Chatwoot/resources/publicConversation/getAll.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/publicConversation/index.d.ts +3 -0
- package/dist/nodes/Chatwoot/resources/publicConversation/index.js +68 -0
- package/dist/nodes/Chatwoot/resources/publicConversation/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/publicConversation/resolve.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/publicConversation/resolve.operation.js +34 -0
- package/dist/nodes/Chatwoot/resources/publicConversation/resolve.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/publicConversation/toggleTyping.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/publicConversation/toggleTyping.operation.js +52 -0
- package/dist/nodes/Chatwoot/resources/publicConversation/toggleTyping.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/publicConversation/updateLastSeen.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/publicConversation/updateLastSeen.operation.js +34 -0
- package/dist/nodes/Chatwoot/resources/publicConversation/updateLastSeen.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/publicMessage/create.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/publicMessage/create.operation.js +73 -0
- package/dist/nodes/Chatwoot/resources/publicMessage/create.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/publicMessage/getAll.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/publicMessage/getAll.operation.js +34 -0
- package/dist/nodes/Chatwoot/resources/publicMessage/getAll.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/publicMessage/index.d.ts +3 -0
- package/dist/nodes/Chatwoot/resources/publicMessage/index.js +44 -0
- package/dist/nodes/Chatwoot/resources/publicMessage/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/publicMessage/update.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/publicMessage/update.operation.js +65 -0
- package/dist/nodes/Chatwoot/resources/publicMessage/update.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/report/index.d.ts +3 -0
- package/dist/nodes/Chatwoot/resources/report/index.js +155 -0
- package/dist/nodes/Chatwoot/resources/report/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/team/addAgent.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/team/addAgent.operation.js +34 -0
- package/dist/nodes/Chatwoot/resources/team/addAgent.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/team/deleteAgent.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/team/deleteAgent.operation.js +34 -0
- package/dist/nodes/Chatwoot/resources/team/deleteAgent.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/team/getMembers.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/team/getMembers.operation.js +20 -0
- package/dist/nodes/Chatwoot/resources/team/getMembers.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/team/index.js +32 -0
- package/dist/nodes/Chatwoot/resources/team/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/team/updateAgents.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/team/updateAgents.operation.js +34 -0
- package/dist/nodes/Chatwoot/resources/team/updateAgents.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/types.d.ts +19 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -2
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getMetaOperation = void 0;
|
|
4
|
+
exports.getMetaOperation = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Filters',
|
|
7
|
+
name: 'filters',
|
|
8
|
+
type: 'collection',
|
|
9
|
+
placeholder: 'Add Filter',
|
|
10
|
+
default: {},
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['conversation'],
|
|
14
|
+
operation: ['getMeta'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
options: [
|
|
18
|
+
{
|
|
19
|
+
displayName: 'Status',
|
|
20
|
+
name: 'status',
|
|
21
|
+
type: 'options',
|
|
22
|
+
options: [
|
|
23
|
+
{ name: 'All', value: 'all' },
|
|
24
|
+
{ name: 'Open', value: 'open' },
|
|
25
|
+
{ name: 'Resolved', value: 'resolved' },
|
|
26
|
+
{ name: 'Pending', value: 'pending' },
|
|
27
|
+
{ name: 'Snoozed', value: 'snoozed' },
|
|
28
|
+
],
|
|
29
|
+
default: 'all',
|
|
30
|
+
description: 'Filter by conversation status',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
displayName: 'Inbox',
|
|
34
|
+
name: 'inbox_id',
|
|
35
|
+
type: 'options',
|
|
36
|
+
typeOptions: {
|
|
37
|
+
loadOptionsMethod: 'getInboxes',
|
|
38
|
+
},
|
|
39
|
+
default: '',
|
|
40
|
+
description: 'Filter by inbox',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
displayName: 'Team',
|
|
44
|
+
name: 'team_id',
|
|
45
|
+
type: 'options',
|
|
46
|
+
typeOptions: {
|
|
47
|
+
loadOptionsMethod: 'getTeams',
|
|
48
|
+
},
|
|
49
|
+
default: '',
|
|
50
|
+
description: 'Filter by team',
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
];
|
|
55
|
+
//# sourceMappingURL=getMeta.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMeta.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/conversation/getMeta.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,gBAAgB,GAAsB;IACjD;QACE,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,SAAS,CAAC;aACvB;SACF;QACD,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACP,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;oBAC7B,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;oBAC/B,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;oBACvC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;oBACrC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;iBACtC;gBACD,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,+BAA+B;aAC7C;YACD;gBACE,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE;oBACX,iBAAiB,EAAE,YAAY;iBAChC;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,iBAAiB;aAC/B;YACD;gBACE,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE;oBACX,iBAAiB,EAAE,UAAU;iBAC9B;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,gBAAgB;aAC9B;SACF;KACF;CACF,CAAC"}
|
|
@@ -6,6 +6,13 @@ const getAll_operation_1 = require("./getAll.operation");
|
|
|
6
6
|
const updateStatus_operation_1 = require("./updateStatus.operation");
|
|
7
7
|
const assign_operation_1 = require("./assign.operation");
|
|
8
8
|
const addLabels_operation_1 = require("./addLabels.operation");
|
|
9
|
+
const create_operation_1 = require("./create.operation");
|
|
10
|
+
const togglePriority_operation_1 = require("./togglePriority.operation");
|
|
11
|
+
const update_operation_1 = require("./update.operation");
|
|
12
|
+
const filter_operation_1 = require("./filter.operation");
|
|
13
|
+
const updateCustomAttributes_operation_1 = require("./updateCustomAttributes.operation");
|
|
14
|
+
const listLabels_operation_1 = require("./listLabels.operation");
|
|
15
|
+
const getMeta_operation_1 = require("./getMeta.operation");
|
|
9
16
|
exports.conversationOperations = {
|
|
10
17
|
displayName: 'Operation',
|
|
11
18
|
name: 'operation',
|
|
@@ -29,6 +36,18 @@ exports.conversationOperations = {
|
|
|
29
36
|
description: 'Assign conversation to an agent or team',
|
|
30
37
|
action: 'Assign a conversation',
|
|
31
38
|
},
|
|
39
|
+
{
|
|
40
|
+
name: 'Create',
|
|
41
|
+
value: 'create',
|
|
42
|
+
description: 'Create a new conversation',
|
|
43
|
+
action: 'Create a conversation',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'Filter',
|
|
47
|
+
value: 'filter',
|
|
48
|
+
description: 'Filter conversations using advanced criteria',
|
|
49
|
+
action: 'Filter conversations',
|
|
50
|
+
},
|
|
32
51
|
{
|
|
33
52
|
name: 'Get',
|
|
34
53
|
value: 'get',
|
|
@@ -41,6 +60,36 @@ exports.conversationOperations = {
|
|
|
41
60
|
description: 'Get many conversations with optional filters',
|
|
42
61
|
action: 'Get many conversations',
|
|
43
62
|
},
|
|
63
|
+
{
|
|
64
|
+
name: 'Get Meta',
|
|
65
|
+
value: 'getMeta',
|
|
66
|
+
description: 'Get conversation metadata and counts',
|
|
67
|
+
action: 'Get conversation metadata',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: 'List Labels',
|
|
71
|
+
value: 'listLabels',
|
|
72
|
+
description: 'Get all labels for a conversation',
|
|
73
|
+
action: 'List conversation labels',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: 'Toggle Priority',
|
|
77
|
+
value: 'togglePriority',
|
|
78
|
+
description: 'Set conversation priority (urgent, high, medium, low, none)',
|
|
79
|
+
action: 'Toggle conversation priority',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: 'Update',
|
|
83
|
+
value: 'update',
|
|
84
|
+
description: 'Update conversation details',
|
|
85
|
+
action: 'Update a conversation',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: 'Update Custom Attributes',
|
|
89
|
+
value: 'updateCustomAttributes',
|
|
90
|
+
description: 'Update conversation custom attributes',
|
|
91
|
+
action: 'Update conversation custom attributes',
|
|
92
|
+
},
|
|
44
93
|
{
|
|
45
94
|
name: 'Update Status',
|
|
46
95
|
value: 'updateStatus',
|
|
@@ -56,5 +105,12 @@ exports.conversationFields = [
|
|
|
56
105
|
...updateStatus_operation_1.updateStatusOperation,
|
|
57
106
|
...assign_operation_1.assignOperation,
|
|
58
107
|
...addLabels_operation_1.addLabelsOperation,
|
|
108
|
+
...create_operation_1.createOperation,
|
|
109
|
+
...togglePriority_operation_1.togglePriorityOperation,
|
|
110
|
+
...update_operation_1.updateOperation,
|
|
111
|
+
...filter_operation_1.filterOperation,
|
|
112
|
+
...updateCustomAttributes_operation_1.updateCustomAttributesOperation,
|
|
113
|
+
...listLabels_operation_1.listLabelsOperation,
|
|
114
|
+
...getMeta_operation_1.getMetaOperation,
|
|
59
115
|
];
|
|
60
116
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/conversation/index.ts"],"names":[],"mappings":";;;AACA,mDAA+C;AAC/C,yDAAqD;AACrD,qEAAiE;AACjE,yDAAqD;AACrD,+DAA2D;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/conversation/index.ts"],"names":[],"mappings":";;;AACA,mDAA+C;AAC/C,yDAAqD;AACrD,qEAAiE;AACjE,yDAAqD;AACrD,+DAA2D;AAC3D,yDAAqD;AACrD,yEAAqE;AACrE,yDAAqD;AACrD,yDAAqD;AACrD,yFAAqF;AACrF,iEAA6D;AAC7D,2DAAuD;AAE1C,QAAA,sBAAsB,GAAoB;IACrD,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE;QACd,IAAI,EAAE;YACJ,QAAQ,EAAE,CAAC,cAAc,CAAC;SAC3B;KACF;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,YAAY;YAClB,KAAK,EAAE,WAAW;YAClB,WAAW,EAAE,8BAA8B;YAC3C,MAAM,EAAE,8BAA8B;SACvC;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,yCAAyC;YACtD,MAAM,EAAE,uBAAuB;SAChC;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,2BAA2B;YACxC,MAAM,EAAE,uBAAuB;SAChC;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,8CAA8C;YAC3D,MAAM,EAAE,sBAAsB;SAC/B;QACD;YACE,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,KAAK;YACZ,WAAW,EAAE,0BAA0B;YACvC,MAAM,EAAE,oBAAoB;SAC7B;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,8CAA8C;YAC3D,MAAM,EAAE,wBAAwB;SACjC;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,sCAAsC;YACnD,MAAM,EAAE,2BAA2B;SACpC;QACD;YACE,IAAI,EAAE,aAAa;YACnB,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,mCAAmC;YAChD,MAAM,EAAE,0BAA0B;SACnC;QACD;YACE,IAAI,EAAE,iBAAiB;YACvB,KAAK,EAAE,gBAAgB;YACvB,WAAW,EAAE,6DAA6D;YAC1E,MAAM,EAAE,8BAA8B;SACvC;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,6BAA6B;YAC1C,MAAM,EAAE,uBAAuB;SAChC;QACD;YACE,IAAI,EAAE,0BAA0B;YAChC,KAAK,EAAE,wBAAwB;YAC/B,WAAW,EAAE,uCAAuC;YACpD,MAAM,EAAE,uCAAuC;SAChD;QACD;YACE,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,cAAc;YACrB,WAAW,EAAE,+DAA+D;YAC5E,MAAM,EAAE,4BAA4B;SACrC;KACF;IACD,OAAO,EAAE,QAAQ;CAClB,CAAC;AAEW,QAAA,kBAAkB,GAAsB;IACnD,GAAG,4BAAY;IACf,GAAG,kCAAe;IAClB,GAAG,8CAAqB;IACxB,GAAG,kCAAe;IAClB,GAAG,wCAAkB;IACrB,GAAG,kCAAe;IAClB,GAAG,kDAAuB;IAC1B,GAAG,kCAAe;IAClB,GAAG,kCAAe;IAClB,GAAG,kEAA+B;IAClC,GAAG,0CAAmB;IACtB,GAAG,oCAAgB;CACpB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.listLabelsOperation = void 0;
|
|
4
|
+
exports.listLabelsOperation = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Conversation ID',
|
|
7
|
+
name: 'conversationId',
|
|
8
|
+
type: 'number',
|
|
9
|
+
required: true,
|
|
10
|
+
default: 0,
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['conversation'],
|
|
14
|
+
operation: ['listLabels'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
description: 'ID of the conversation to get labels from',
|
|
18
|
+
},
|
|
19
|
+
];
|
|
20
|
+
//# sourceMappingURL=listLabels.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listLabels.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/conversation/listLabels.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,mBAAmB,GAAsB;IACpD;QACE,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,YAAY,CAAC;aAC1B;SACF;QACD,WAAW,EAAE,2CAA2C;KACzD;CACF,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.togglePriorityOperation = void 0;
|
|
4
|
+
exports.togglePriorityOperation = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Conversation ID',
|
|
7
|
+
name: 'conversationId',
|
|
8
|
+
type: 'number',
|
|
9
|
+
required: true,
|
|
10
|
+
default: 0,
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['conversation'],
|
|
14
|
+
operation: ['togglePriority'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
description: 'ID of the conversation',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
displayName: 'Priority',
|
|
21
|
+
name: 'priority',
|
|
22
|
+
type: 'options',
|
|
23
|
+
required: true,
|
|
24
|
+
options: [
|
|
25
|
+
{ name: 'Urgent', value: 'urgent' },
|
|
26
|
+
{ name: 'High', value: 'high' },
|
|
27
|
+
{ name: 'Medium', value: 'medium' },
|
|
28
|
+
{ name: 'Low', value: 'low' },
|
|
29
|
+
{ name: 'None', value: 'none' },
|
|
30
|
+
],
|
|
31
|
+
default: 'none',
|
|
32
|
+
displayOptions: {
|
|
33
|
+
show: {
|
|
34
|
+
resource: ['conversation'],
|
|
35
|
+
operation: ['togglePriority'],
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
description: 'Priority level to set',
|
|
39
|
+
},
|
|
40
|
+
];
|
|
41
|
+
//# sourceMappingURL=togglePriority.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"togglePriority.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/conversation/togglePriority.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,uBAAuB,GAAsB;IACxD;QACE,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,gBAAgB,CAAC;aAC9B;SACF;QACD,WAAW,EAAE,wBAAwB;KACtC;IACD;QACE,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;YACnC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;YAC/B,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;YACnC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;YAC7B,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;SAChC;QACD,OAAO,EAAE,MAAM;QACf,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,gBAAgB,CAAC;aAC9B;SACF;QACD,WAAW,EAAE,uBAAuB;KACrC;CACF,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateOperation = void 0;
|
|
4
|
+
exports.updateOperation = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Conversation ID',
|
|
7
|
+
name: 'conversationId',
|
|
8
|
+
type: 'number',
|
|
9
|
+
required: true,
|
|
10
|
+
default: 0,
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['conversation'],
|
|
14
|
+
operation: ['update'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
description: 'ID of the conversation to update',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
displayName: 'Update Fields',
|
|
21
|
+
name: 'updateFields',
|
|
22
|
+
type: 'collection',
|
|
23
|
+
placeholder: 'Add Field',
|
|
24
|
+
default: {},
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['conversation'],
|
|
28
|
+
operation: ['update'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
options: [
|
|
32
|
+
{
|
|
33
|
+
displayName: 'Priority',
|
|
34
|
+
name: 'priority',
|
|
35
|
+
type: 'options',
|
|
36
|
+
options: [
|
|
37
|
+
{ name: 'Urgent', value: 'urgent' },
|
|
38
|
+
{ name: 'High', value: 'high' },
|
|
39
|
+
{ name: 'Medium', value: 'medium' },
|
|
40
|
+
{ name: 'Low', value: 'low' },
|
|
41
|
+
{ name: 'None', value: 'none' },
|
|
42
|
+
],
|
|
43
|
+
default: 'none',
|
|
44
|
+
description: 'Priority level of the conversation',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
displayName: 'Snoozed Until',
|
|
48
|
+
name: 'snoozed_until',
|
|
49
|
+
type: 'dateTime',
|
|
50
|
+
default: '',
|
|
51
|
+
description: 'When to un-snooze the conversation (only applies when status is snoozed)',
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
},
|
|
55
|
+
];
|
|
56
|
+
//# sourceMappingURL=update.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/conversation/update.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;QACE,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,kCAAkC;KAChD;IACD;QACE,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACP,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;oBACnC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;oBAC/B,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;oBACnC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;oBAC7B,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;iBAChC;gBACD,OAAO,EAAE,MAAM;gBACf,WAAW,EAAE,oCAAoC;aAClD;YACD;gBACE,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,UAAU;gBAChB,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,0EAA0E;aACxF;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateCustomAttributesOperation = void 0;
|
|
4
|
+
exports.updateCustomAttributesOperation = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Conversation ID',
|
|
7
|
+
name: 'conversationId',
|
|
8
|
+
type: 'number',
|
|
9
|
+
required: true,
|
|
10
|
+
default: 0,
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['conversation'],
|
|
14
|
+
operation: ['updateCustomAttributes'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
description: 'ID of the conversation to update',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
displayName: 'Custom Attributes',
|
|
21
|
+
name: 'customAttributes',
|
|
22
|
+
type: 'json',
|
|
23
|
+
required: true,
|
|
24
|
+
default: '{}',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['conversation'],
|
|
28
|
+
operation: ['updateCustomAttributes'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
description: 'Custom attributes as a JSON object (e.g., {"order_id": "12345", "priority_customer": true})',
|
|
32
|
+
},
|
|
33
|
+
];
|
|
34
|
+
//# sourceMappingURL=updateCustomAttributes.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateCustomAttributes.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/conversation/updateCustomAttributes.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,+BAA+B,GAAsB;IAChE;QACE,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,wBAAwB,CAAC;aACtC;SACF;QACD,WAAW,EAAE,kCAAkC;KAChD;IACD;QACE,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;QACb,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,wBAAwB,CAAC;aACtC;SACF;QACD,WAAW,EACT,6FAA6F;KAChG;CACF,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getOperation = void 0;
|
|
4
|
+
exports.getOperation = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Conversation ID',
|
|
7
|
+
name: 'conversationId',
|
|
8
|
+
type: 'number',
|
|
9
|
+
required: true,
|
|
10
|
+
default: 0,
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['csatSurvey'],
|
|
14
|
+
operation: ['get'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
description: 'ID of the conversation to get CSAT survey for',
|
|
18
|
+
},
|
|
19
|
+
];
|
|
20
|
+
//# sourceMappingURL=get.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/csatSurvey/get.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAAsB;IAC7C;QACE,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,KAAK,CAAC;aACnB;SACF;QACD,WAAW,EAAE,+CAA+C;KAC7D;CACF,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.csatSurveyFields = exports.csatSurveyOperations = void 0;
|
|
4
|
+
const get_operation_1 = require("./get.operation");
|
|
5
|
+
exports.csatSurveyOperations = {
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['csatSurvey'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Get',
|
|
18
|
+
value: 'get',
|
|
19
|
+
description: 'Get CSAT survey for a conversation',
|
|
20
|
+
action: 'Get CSAT survey',
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
default: 'get',
|
|
24
|
+
};
|
|
25
|
+
exports.csatSurveyFields = [...get_operation_1.getOperation];
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/csatSurvey/index.ts"],"names":[],"mappings":";;;AACA,mDAA+C;AAElC,QAAA,oBAAoB,GAAoB;IACnD,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE;QACd,IAAI,EAAE;YACJ,QAAQ,EAAE,CAAC,YAAY,CAAC;SACzB;KACF;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,KAAK;YACZ,WAAW,EAAE,oCAAoC;YACjD,MAAM,EAAE,iBAAiB;SAC1B;KACF;IACD,OAAO,EAAE,KAAK;CACf,CAAC;AAEW,QAAA,gBAAgB,GAAsB,CAAC,GAAG,4BAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customFilterFields = exports.customFilterOperations = void 0;
|
|
4
|
+
exports.customFilterOperations = {
|
|
5
|
+
displayName: 'Operation',
|
|
6
|
+
name: 'operation',
|
|
7
|
+
type: 'options',
|
|
8
|
+
noDataExpression: true,
|
|
9
|
+
displayOptions: {
|
|
10
|
+
show: {
|
|
11
|
+
resource: ['customFilter'],
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
options: [
|
|
15
|
+
{
|
|
16
|
+
name: 'Create',
|
|
17
|
+
value: 'create',
|
|
18
|
+
description: 'Create a custom filter',
|
|
19
|
+
action: 'Create a custom filter',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'Delete',
|
|
23
|
+
value: 'delete',
|
|
24
|
+
description: 'Delete a custom filter',
|
|
25
|
+
action: 'Delete a custom filter',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: 'Get',
|
|
29
|
+
value: 'get',
|
|
30
|
+
description: 'Get a custom filter by ID',
|
|
31
|
+
action: 'Get a custom filter',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'Get Many',
|
|
35
|
+
value: 'getAll',
|
|
36
|
+
description: 'Get all custom filters',
|
|
37
|
+
action: 'Get all custom filters',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'Update',
|
|
41
|
+
value: 'update',
|
|
42
|
+
description: 'Update a custom filter',
|
|
43
|
+
action: 'Update a custom filter',
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
default: 'getAll',
|
|
47
|
+
};
|
|
48
|
+
exports.customFilterFields = [
|
|
49
|
+
{
|
|
50
|
+
displayName: 'Custom Filter ID',
|
|
51
|
+
name: 'customFilterId',
|
|
52
|
+
type: 'number',
|
|
53
|
+
required: true,
|
|
54
|
+
default: 0,
|
|
55
|
+
displayOptions: {
|
|
56
|
+
show: {
|
|
57
|
+
resource: ['customFilter'],
|
|
58
|
+
operation: ['get', 'update', 'delete'],
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
description: 'ID of the custom filter',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
displayName: 'Filter Type',
|
|
65
|
+
name: 'filterType',
|
|
66
|
+
type: 'options',
|
|
67
|
+
options: [
|
|
68
|
+
{ name: 'Conversation', value: 'conversation' },
|
|
69
|
+
{ name: 'Contact', value: 'contact' },
|
|
70
|
+
{ name: 'Report', value: 'report' },
|
|
71
|
+
],
|
|
72
|
+
default: 'conversation',
|
|
73
|
+
displayOptions: {
|
|
74
|
+
show: {
|
|
75
|
+
resource: ['customFilter'],
|
|
76
|
+
operation: ['getAll', 'create'],
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
description: 'Type of filter',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
displayName: 'Name',
|
|
83
|
+
name: 'name',
|
|
84
|
+
type: 'string',
|
|
85
|
+
required: true,
|
|
86
|
+
default: '',
|
|
87
|
+
displayOptions: {
|
|
88
|
+
show: {
|
|
89
|
+
resource: ['customFilter'],
|
|
90
|
+
operation: ['create'],
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
description: 'Name of the custom filter',
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
displayName: 'Query (JSON)',
|
|
97
|
+
name: 'query',
|
|
98
|
+
type: 'json',
|
|
99
|
+
required: true,
|
|
100
|
+
default: '{}',
|
|
101
|
+
displayOptions: {
|
|
102
|
+
show: {
|
|
103
|
+
resource: ['customFilter'],
|
|
104
|
+
operation: ['create'],
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
description: 'Filter query in JSON format',
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
displayName: 'Update Fields',
|
|
111
|
+
name: 'updateFields',
|
|
112
|
+
type: 'collection',
|
|
113
|
+
placeholder: 'Add Field',
|
|
114
|
+
default: {},
|
|
115
|
+
displayOptions: {
|
|
116
|
+
show: {
|
|
117
|
+
resource: ['customFilter'],
|
|
118
|
+
operation: ['update'],
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
options: [
|
|
122
|
+
{
|
|
123
|
+
displayName: 'Name',
|
|
124
|
+
name: 'name',
|
|
125
|
+
type: 'string',
|
|
126
|
+
default: '',
|
|
127
|
+
description: 'Name of the custom filter',
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
displayName: 'Query (JSON)',
|
|
131
|
+
name: 'query',
|
|
132
|
+
type: 'json',
|
|
133
|
+
default: '',
|
|
134
|
+
description: 'Filter query in JSON format',
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
},
|
|
138
|
+
];
|
|
139
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/customFilter/index.ts"],"names":[],"mappings":"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"}
|