@renatoascencio/n8n-nodes-chatwoot 0.3.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 +247 -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 +579 -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/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/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/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/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 +40 -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/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/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/index.js +13 -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/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/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -2
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createCategoryOperation = void 0;
|
|
4
|
+
exports.createCategoryOperation = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Portal Slug',
|
|
7
|
+
name: 'portalSlug',
|
|
8
|
+
type: 'string',
|
|
9
|
+
required: true,
|
|
10
|
+
default: '',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['helpCenter'],
|
|
14
|
+
operation: ['createCategory'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
description: 'Slug of the portal to create category in',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
displayName: 'Category Name',
|
|
21
|
+
name: 'name',
|
|
22
|
+
type: 'string',
|
|
23
|
+
required: true,
|
|
24
|
+
default: '',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['helpCenter'],
|
|
28
|
+
operation: ['createCategory'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
description: 'Name of the category',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
displayName: 'Slug',
|
|
35
|
+
name: 'slug',
|
|
36
|
+
type: 'string',
|
|
37
|
+
required: true,
|
|
38
|
+
default: '',
|
|
39
|
+
displayOptions: {
|
|
40
|
+
show: {
|
|
41
|
+
resource: ['helpCenter'],
|
|
42
|
+
operation: ['createCategory'],
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
description: 'Unique slug for the category',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
displayName: 'Locale',
|
|
49
|
+
name: 'locale',
|
|
50
|
+
type: 'string',
|
|
51
|
+
required: true,
|
|
52
|
+
default: 'en',
|
|
53
|
+
displayOptions: {
|
|
54
|
+
show: {
|
|
55
|
+
resource: ['helpCenter'],
|
|
56
|
+
operation: ['createCategory'],
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
description: 'Locale code for the category (e.g., "en", "es")',
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
displayName: 'Additional Fields',
|
|
63
|
+
name: 'additionalFields',
|
|
64
|
+
type: 'collection',
|
|
65
|
+
placeholder: 'Add Field',
|
|
66
|
+
default: {},
|
|
67
|
+
displayOptions: {
|
|
68
|
+
show: {
|
|
69
|
+
resource: ['helpCenter'],
|
|
70
|
+
operation: ['createCategory'],
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
options: [
|
|
74
|
+
{
|
|
75
|
+
displayName: 'Description',
|
|
76
|
+
name: 'description',
|
|
77
|
+
type: 'string',
|
|
78
|
+
default: '',
|
|
79
|
+
description: 'Description of the category',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
displayName: 'Position',
|
|
83
|
+
name: 'position',
|
|
84
|
+
type: 'number',
|
|
85
|
+
default: 0,
|
|
86
|
+
description: 'Position of the category in the list',
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
},
|
|
90
|
+
];
|
|
91
|
+
//# sourceMappingURL=createCategory.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createCategory.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/helpCenter/createCategory.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,uBAAuB,GAAsB;IACxD;QACE,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,gBAAgB,CAAC;aAC9B;SACF;QACD,WAAW,EAAE,0CAA0C;KACxD;IACD;QACE,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,gBAAgB,CAAC;aAC9B;SACF;QACD,WAAW,EAAE,sBAAsB;KACpC;IACD;QACE,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,gBAAgB,CAAC;aAC9B;SACF;QACD,WAAW,EAAE,8BAA8B;KAC5C;IACD;QACE,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,IAAI;QACb,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,gBAAgB,CAAC;aAC9B;SACF;QACD,WAAW,EAAE,iDAAiD;KAC/D;IACD;QACE,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,gBAAgB,CAAC;aAC9B;SACF;QACD,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,6BAA6B;aAC3C;YACD;gBACE,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC;gBACV,WAAW,EAAE,sCAAsC;aACpD;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createPortalOperation = void 0;
|
|
4
|
+
exports.createPortalOperation = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Portal Name',
|
|
7
|
+
name: 'name',
|
|
8
|
+
type: 'string',
|
|
9
|
+
required: true,
|
|
10
|
+
default: '',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['helpCenter'],
|
|
14
|
+
operation: ['createPortal'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
description: 'Name of the portal',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
displayName: 'Slug',
|
|
21
|
+
name: 'slug',
|
|
22
|
+
type: 'string',
|
|
23
|
+
required: true,
|
|
24
|
+
default: '',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['helpCenter'],
|
|
28
|
+
operation: ['createPortal'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
description: 'Unique slug for the portal URL (e.g., "my-help-center")',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
displayName: 'Additional Fields',
|
|
35
|
+
name: 'additionalFields',
|
|
36
|
+
type: 'collection',
|
|
37
|
+
placeholder: 'Add Field',
|
|
38
|
+
default: {},
|
|
39
|
+
displayOptions: {
|
|
40
|
+
show: {
|
|
41
|
+
resource: ['helpCenter'],
|
|
42
|
+
operation: ['createPortal'],
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
options: [
|
|
46
|
+
{
|
|
47
|
+
displayName: 'Archived',
|
|
48
|
+
name: 'archived',
|
|
49
|
+
type: 'boolean',
|
|
50
|
+
default: false,
|
|
51
|
+
description: 'Whether the portal is archived',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
displayName: 'Custom Domain',
|
|
55
|
+
name: 'custom_domain',
|
|
56
|
+
type: 'string',
|
|
57
|
+
default: '',
|
|
58
|
+
description: 'Custom domain for the portal',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
displayName: 'Header Text',
|
|
62
|
+
name: 'header_text',
|
|
63
|
+
type: 'string',
|
|
64
|
+
default: '',
|
|
65
|
+
description: 'Header text displayed on the portal',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
displayName: 'Homepage Link',
|
|
69
|
+
name: 'homepage_link',
|
|
70
|
+
type: 'string',
|
|
71
|
+
default: '',
|
|
72
|
+
description: 'Link to the homepage',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
displayName: 'Page Title',
|
|
76
|
+
name: 'page_title',
|
|
77
|
+
type: 'string',
|
|
78
|
+
default: '',
|
|
79
|
+
description: 'Title of the portal page',
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
},
|
|
83
|
+
];
|
|
84
|
+
//# sourceMappingURL=createPortal.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createPortal.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/helpCenter/createPortal.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,qBAAqB,GAAsB;IACtD;QACE,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,cAAc,CAAC;aAC5B;SACF;QACD,WAAW,EAAE,oBAAoB;KAClC;IACD;QACE,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,cAAc,CAAC;aAC5B;SACF;QACD,WAAW,EAAE,yDAAyD;KACvE;IACD;QACE,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,cAAc,CAAC;aAC5B;SACF;QACD,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,gCAAgC;aAC9C;YACD;gBACE,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,8BAA8B;aAC5C;YACD;gBACE,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,qCAAqC;aACnD;YACD;gBACE,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,sBAAsB;aACpC;YACD;gBACE,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,0BAA0B;aACxC;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPortalOperation = void 0;
|
|
4
|
+
exports.getPortalOperation = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Portal Slug',
|
|
7
|
+
name: 'portalSlug',
|
|
8
|
+
type: 'string',
|
|
9
|
+
required: true,
|
|
10
|
+
default: '',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['helpCenter'],
|
|
14
|
+
operation: ['getPortal'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
description: 'Slug of the portal to retrieve',
|
|
18
|
+
},
|
|
19
|
+
];
|
|
20
|
+
//# sourceMappingURL=getPortal.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPortal.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/helpCenter/getPortal.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAsB;IACnD;QACE,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,WAAW,CAAC;aACzB;SACF;QACD,WAAW,EAAE,gCAAgC;KAC9C;CACF,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.helpCenterFields = exports.helpCenterOperations = void 0;
|
|
4
|
+
const createPortal_operation_1 = require("./createPortal.operation");
|
|
5
|
+
const getPortal_operation_1 = require("./getPortal.operation");
|
|
6
|
+
const updatePortal_operation_1 = require("./updatePortal.operation");
|
|
7
|
+
const createCategory_operation_1 = require("./createCategory.operation");
|
|
8
|
+
const createArticle_operation_1 = require("./createArticle.operation");
|
|
9
|
+
exports.helpCenterOperations = {
|
|
10
|
+
displayName: 'Operation',
|
|
11
|
+
name: 'operation',
|
|
12
|
+
type: 'options',
|
|
13
|
+
noDataExpression: true,
|
|
14
|
+
displayOptions: {
|
|
15
|
+
show: {
|
|
16
|
+
resource: ['helpCenter'],
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
options: [
|
|
20
|
+
{
|
|
21
|
+
name: 'Create Article',
|
|
22
|
+
value: 'createArticle',
|
|
23
|
+
description: 'Create a new help center article',
|
|
24
|
+
action: 'Create article',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'Create Category',
|
|
28
|
+
value: 'createCategory',
|
|
29
|
+
description: 'Create a new help center category',
|
|
30
|
+
action: 'Create category',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'Create Portal',
|
|
34
|
+
value: 'createPortal',
|
|
35
|
+
description: 'Create a new help center portal',
|
|
36
|
+
action: 'Create portal',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'Get Portal',
|
|
40
|
+
value: 'getPortal',
|
|
41
|
+
description: 'Get a help center portal',
|
|
42
|
+
action: 'Get portal',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: 'Update Portal',
|
|
46
|
+
value: 'updatePortal',
|
|
47
|
+
description: 'Update a help center portal',
|
|
48
|
+
action: 'Update portal',
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
default: 'getPortal',
|
|
52
|
+
};
|
|
53
|
+
exports.helpCenterFields = [
|
|
54
|
+
...createPortal_operation_1.createPortalOperation,
|
|
55
|
+
...getPortal_operation_1.getPortalOperation,
|
|
56
|
+
...updatePortal_operation_1.updatePortalOperation,
|
|
57
|
+
...createCategory_operation_1.createCategoryOperation,
|
|
58
|
+
...createArticle_operation_1.createArticleOperation,
|
|
59
|
+
];
|
|
60
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/helpCenter/index.ts"],"names":[],"mappings":";;;AACA,qEAAiE;AACjE,+DAA2D;AAC3D,qEAAiE;AACjE,yEAAqE;AACrE,uEAAmE;AAEtD,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,gBAAgB;YACtB,KAAK,EAAE,eAAe;YACtB,WAAW,EAAE,kCAAkC;YAC/C,MAAM,EAAE,gBAAgB;SACzB;QACD;YACE,IAAI,EAAE,iBAAiB;YACvB,KAAK,EAAE,gBAAgB;YACvB,WAAW,EAAE,mCAAmC;YAChD,MAAM,EAAE,iBAAiB;SAC1B;QACD;YACE,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,cAAc;YACrB,WAAW,EAAE,iCAAiC;YAC9C,MAAM,EAAE,eAAe;SACxB;QACD;YACE,IAAI,EAAE,YAAY;YAClB,KAAK,EAAE,WAAW;YAClB,WAAW,EAAE,0BAA0B;YACvC,MAAM,EAAE,YAAY;SACrB;QACD;YACE,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,cAAc;YACrB,WAAW,EAAE,6BAA6B;YAC1C,MAAM,EAAE,eAAe;SACxB;KACF;IACD,OAAO,EAAE,WAAW;CACrB,CAAC;AAEW,QAAA,gBAAgB,GAAsB;IACjD,GAAG,8CAAqB;IACxB,GAAG,wCAAkB;IACrB,GAAG,8CAAqB;IACxB,GAAG,kDAAuB;IAC1B,GAAG,gDAAsB;CAC1B,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updatePortalOperation = void 0;
|
|
4
|
+
exports.updatePortalOperation = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Portal Slug',
|
|
7
|
+
name: 'portalSlug',
|
|
8
|
+
type: 'string',
|
|
9
|
+
required: true,
|
|
10
|
+
default: '',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['helpCenter'],
|
|
14
|
+
operation: ['updatePortal'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
description: 'Slug of the portal 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: ['helpCenter'],
|
|
28
|
+
operation: ['updatePortal'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
options: [
|
|
32
|
+
{
|
|
33
|
+
displayName: 'Archived',
|
|
34
|
+
name: 'archived',
|
|
35
|
+
type: 'boolean',
|
|
36
|
+
default: false,
|
|
37
|
+
description: 'Whether the portal is archived',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
displayName: 'Custom Domain',
|
|
41
|
+
name: 'custom_domain',
|
|
42
|
+
type: 'string',
|
|
43
|
+
default: '',
|
|
44
|
+
description: 'Custom domain for the portal',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
displayName: 'Header Text',
|
|
48
|
+
name: 'header_text',
|
|
49
|
+
type: 'string',
|
|
50
|
+
default: '',
|
|
51
|
+
description: 'Header text displayed on the portal',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
displayName: 'Homepage Link',
|
|
55
|
+
name: 'homepage_link',
|
|
56
|
+
type: 'string',
|
|
57
|
+
default: '',
|
|
58
|
+
description: 'Link to the homepage',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
displayName: 'Name',
|
|
62
|
+
name: 'name',
|
|
63
|
+
type: 'string',
|
|
64
|
+
default: '',
|
|
65
|
+
description: 'Name of the portal',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
displayName: 'Page Title',
|
|
69
|
+
name: 'page_title',
|
|
70
|
+
type: 'string',
|
|
71
|
+
default: '',
|
|
72
|
+
description: 'Title of the portal page',
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
},
|
|
76
|
+
];
|
|
77
|
+
//# sourceMappingURL=updatePortal.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updatePortal.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/helpCenter/updatePortal.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,qBAAqB,GAAsB;IACtD;QACE,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,cAAc,CAAC;aAC5B;SACF;QACD,WAAW,EAAE,8BAA8B;KAC5C;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,YAAY,CAAC;gBACxB,SAAS,EAAE,CAAC,cAAc,CAAC;aAC5B;SACF;QACD,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,gCAAgC;aAC9C;YACD;gBACE,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,8BAA8B;aAC5C;YACD;gBACE,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,qCAAqC;aACnD;YACD;gBACE,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,sBAAsB;aACpC;YACD;gBACE,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,oBAAoB;aAClC;YACD;gBACE,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,0BAA0B;aACxC;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addAgentOperation = void 0;
|
|
4
|
+
exports.addAgentOperation = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Inbox ID',
|
|
7
|
+
name: 'inboxId',
|
|
8
|
+
type: 'number',
|
|
9
|
+
required: true,
|
|
10
|
+
default: 0,
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['inbox'],
|
|
14
|
+
operation: ['addAgent'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
description: 'ID of the inbox',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
displayName: 'User IDs',
|
|
21
|
+
name: 'userIds',
|
|
22
|
+
type: 'string',
|
|
23
|
+
required: true,
|
|
24
|
+
default: '',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['inbox'],
|
|
28
|
+
operation: ['addAgent'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
description: 'Comma-separated list of user IDs to add to the inbox',
|
|
32
|
+
},
|
|
33
|
+
];
|
|
34
|
+
//# sourceMappingURL=addAgent.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addAgent.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/inbox/addAgent.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAsB;IAClD;QACE,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,SAAS,EAAE,CAAC,UAAU,CAAC;aACxB;SACF;QACD,WAAW,EAAE,iBAAiB;KAC/B;IACD;QACE,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,SAAS,EAAE,CAAC,UAAU,CAAC;aACxB;SACF;QACD,WAAW,EAAE,sDAAsD;KACpE;CACF,CAAC"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createOperation = void 0;
|
|
4
|
+
exports.createOperation = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Name',
|
|
7
|
+
name: 'name',
|
|
8
|
+
type: 'string',
|
|
9
|
+
required: true,
|
|
10
|
+
default: '',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['inbox'],
|
|
14
|
+
operation: ['create'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
description: 'Name of the inbox',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
displayName: 'Channel Type',
|
|
21
|
+
name: 'channelType',
|
|
22
|
+
type: 'options',
|
|
23
|
+
required: true,
|
|
24
|
+
options: [
|
|
25
|
+
{ name: 'API', value: 'api' },
|
|
26
|
+
{ name: 'Email', value: 'email' },
|
|
27
|
+
{ name: 'Web Widget', value: 'web_widget' },
|
|
28
|
+
],
|
|
29
|
+
default: 'api',
|
|
30
|
+
displayOptions: {
|
|
31
|
+
show: {
|
|
32
|
+
resource: ['inbox'],
|
|
33
|
+
operation: ['create'],
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
description: 'Type of channel for this inbox',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
displayName: 'Additional Fields',
|
|
40
|
+
name: 'additionalFields',
|
|
41
|
+
type: 'collection',
|
|
42
|
+
placeholder: 'Add Field',
|
|
43
|
+
default: {},
|
|
44
|
+
displayOptions: {
|
|
45
|
+
show: {
|
|
46
|
+
resource: ['inbox'],
|
|
47
|
+
operation: ['create'],
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
options: [
|
|
51
|
+
{
|
|
52
|
+
displayName: 'Avatar URL',
|
|
53
|
+
name: 'avatar_url',
|
|
54
|
+
type: 'string',
|
|
55
|
+
default: '',
|
|
56
|
+
description: 'URL for the inbox avatar',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
displayName: 'Greeting Enabled',
|
|
60
|
+
name: 'greeting_enabled',
|
|
61
|
+
type: 'boolean',
|
|
62
|
+
default: false,
|
|
63
|
+
description: 'Whether to enable greeting messages',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
displayName: 'Greeting Message',
|
|
67
|
+
name: 'greeting_message',
|
|
68
|
+
type: 'string',
|
|
69
|
+
default: '',
|
|
70
|
+
description: 'The greeting message to display',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
displayName: 'Enable Email Collect',
|
|
74
|
+
name: 'enable_email_collect',
|
|
75
|
+
type: 'boolean',
|
|
76
|
+
default: true,
|
|
77
|
+
description: 'Whether to collect email from visitors',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
displayName: 'CSAT Survey Enabled',
|
|
81
|
+
name: 'csat_survey_enabled',
|
|
82
|
+
type: 'boolean',
|
|
83
|
+
default: false,
|
|
84
|
+
description: 'Whether to enable CSAT survey',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
displayName: 'Allow Messages After Resolved',
|
|
88
|
+
name: 'allow_messages_after_resolved',
|
|
89
|
+
type: 'boolean',
|
|
90
|
+
default: true,
|
|
91
|
+
description: 'Whether to allow messages after conversation is resolved',
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
displayName: 'Working Hours Enabled',
|
|
95
|
+
name: 'working_hours_enabled',
|
|
96
|
+
type: 'boolean',
|
|
97
|
+
default: false,
|
|
98
|
+
description: 'Whether to enable working hours',
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
displayName: 'Timezone',
|
|
102
|
+
name: 'timezone',
|
|
103
|
+
type: 'string',
|
|
104
|
+
default: 'UTC',
|
|
105
|
+
description: 'Timezone for the inbox',
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
},
|
|
109
|
+
];
|
|
110
|
+
//# sourceMappingURL=create.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/inbox/create.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;QACE,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,mBAAmB;KACjC;IACD;QACE,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;YAC7B,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;YACjC,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;SAC5C;QACD,OAAO,EAAE,KAAK;QACd,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,gCAAgC;KAC9C;IACD;QACE,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,0BAA0B;aACxC;YACD;gBACE,WAAW,EAAE,kBAAkB;gBAC/B,IAAI,EAAE,kBAAkB;gBACxB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,qCAAqC;aACnD;YACD;gBACE,WAAW,EAAE,kBAAkB;gBAC/B,IAAI,EAAE,kBAAkB;gBACxB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,iCAAiC;aAC/C;YACD;gBACE,WAAW,EAAE,sBAAsB;gBACnC,IAAI,EAAE,sBAAsB;gBAC5B,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,IAAI;gBACb,WAAW,EAAE,wCAAwC;aACtD;YACD;gBACE,WAAW,EAAE,qBAAqB;gBAClC,IAAI,EAAE,qBAAqB;gBAC3B,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,+BAA+B;aAC7C;YACD;gBACE,WAAW,EAAE,+BAA+B;gBAC5C,IAAI,EAAE,+BAA+B;gBACrC,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,IAAI;gBACb,WAAW,EAAE,0DAA0D;aACxE;YACD;gBACE,WAAW,EAAE,uBAAuB;gBACpC,IAAI,EAAE,uBAAuB;gBAC7B,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,iCAAiC;aAC/C;YACD;gBACE,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,wBAAwB;aACtC;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deleteAgentOperation = void 0;
|
|
4
|
+
exports.deleteAgentOperation = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Inbox ID',
|
|
7
|
+
name: 'inboxId',
|
|
8
|
+
type: 'number',
|
|
9
|
+
required: true,
|
|
10
|
+
default: 0,
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['inbox'],
|
|
14
|
+
operation: ['deleteAgent'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
description: 'ID of the inbox',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
displayName: 'User IDs',
|
|
21
|
+
name: 'userIds',
|
|
22
|
+
type: 'string',
|
|
23
|
+
required: true,
|
|
24
|
+
default: '',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['inbox'],
|
|
28
|
+
operation: ['deleteAgent'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
description: 'Comma-separated list of user IDs to remove from the inbox',
|
|
32
|
+
},
|
|
33
|
+
];
|
|
34
|
+
//# sourceMappingURL=deleteAgent.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteAgent.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/inbox/deleteAgent.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,oBAAoB,GAAsB;IACrD;QACE,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,SAAS,EAAE,CAAC,aAAa,CAAC;aAC3B;SACF;QACD,WAAW,EAAE,iBAAiB;KAC/B;IACD;QACE,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,SAAS,EAAE,CAAC,aAAa,CAAC;aAC3B;SACF;QACD,WAAW,EAAE,2DAA2D;KACzE;CACF,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAgentBotOperation = void 0;
|
|
4
|
+
exports.getAgentBotOperation = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Inbox ID',
|
|
7
|
+
name: 'inboxId',
|
|
8
|
+
type: 'number',
|
|
9
|
+
required: true,
|
|
10
|
+
default: 0,
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['inbox'],
|
|
14
|
+
operation: ['getAgentBot'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
description: 'ID of the inbox to get agent bot from',
|
|
18
|
+
},
|
|
19
|
+
];
|
|
20
|
+
//# sourceMappingURL=getAgentBot.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAgentBot.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/inbox/getAgentBot.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,oBAAoB,GAAsB;IACrD;QACE,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,SAAS,EAAE,CAAC,aAAa,CAAC;aAC3B;SACF;QACD,WAAW,EAAE,uCAAuC;KACrD;CACF,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getMembersOperation = void 0;
|
|
4
|
+
exports.getMembersOperation = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Inbox ID',
|
|
7
|
+
name: 'inboxId',
|
|
8
|
+
type: 'number',
|
|
9
|
+
required: true,
|
|
10
|
+
default: 0,
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['inbox'],
|
|
14
|
+
operation: ['getMembers'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
description: 'ID of the inbox to get members from',
|
|
18
|
+
},
|
|
19
|
+
];
|
|
20
|
+
//# sourceMappingURL=getMembers.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMembers.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/inbox/getMembers.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,mBAAmB,GAAsB;IACpD;QACE,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,SAAS,EAAE,CAAC,YAAY,CAAC;aAC1B;SACF;QACD,WAAW,EAAE,qCAAqC;KACnD;CACF,CAAC"}
|