@renatoascencio/n8n-nodes-chatwoot 0.1.2 → 0.2.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.
Files changed (149) hide show
  1. package/README.md +314 -80
  2. package/dist/nodes/Chatwoot/Chatwoot.node.d.ts +9 -0
  3. package/dist/nodes/Chatwoot/Chatwoot.node.js +383 -77
  4. package/dist/nodes/Chatwoot/Chatwoot.node.js.map +1 -1
  5. package/dist/nodes/Chatwoot/Chatwoot.node.json +22 -0
  6. package/dist/nodes/Chatwoot/ChatwootTrigger.node.d.ts +12 -0
  7. package/dist/nodes/Chatwoot/ChatwootTrigger.node.js +197 -0
  8. package/dist/nodes/Chatwoot/ChatwootTrigger.node.js.map +1 -0
  9. package/dist/nodes/Chatwoot/ChatwootTrigger.node.json +22 -0
  10. package/dist/nodes/Chatwoot/GenericFunctions.d.ts +5 -1
  11. package/dist/nodes/Chatwoot/GenericFunctions.js +71 -0
  12. package/dist/nodes/Chatwoot/GenericFunctions.js.map +1 -1
  13. package/dist/nodes/Chatwoot/chatwoot.svg +10 -6
  14. package/dist/nodes/Chatwoot/resources/account/get.operation.d.ts +2 -0
  15. package/dist/nodes/Chatwoot/resources/account/get.operation.js +5 -0
  16. package/dist/nodes/Chatwoot/resources/account/get.operation.js.map +1 -0
  17. package/dist/nodes/Chatwoot/resources/account/index.d.ts +3 -0
  18. package/dist/nodes/Chatwoot/resources/account/index.js +36 -0
  19. package/dist/nodes/Chatwoot/resources/account/index.js.map +1 -0
  20. package/dist/nodes/Chatwoot/resources/account/update.operation.d.ts +2 -0
  21. package/dist/nodes/Chatwoot/resources/account/update.operation.js +75 -0
  22. package/dist/nodes/Chatwoot/resources/account/update.operation.js.map +1 -0
  23. package/dist/nodes/Chatwoot/resources/agent/create.operation.d.ts +2 -0
  24. package/dist/nodes/Chatwoot/resources/agent/create.operation.js +95 -0
  25. package/dist/nodes/Chatwoot/resources/agent/create.operation.js.map +1 -0
  26. package/dist/nodes/Chatwoot/resources/agent/delete.operation.d.ts +2 -0
  27. package/dist/nodes/Chatwoot/resources/agent/delete.operation.js +23 -0
  28. package/dist/nodes/Chatwoot/resources/agent/delete.operation.js.map +1 -0
  29. package/dist/nodes/Chatwoot/resources/agent/getAll.operation.d.ts +2 -0
  30. package/dist/nodes/Chatwoot/resources/agent/getAll.operation.js +5 -0
  31. package/dist/nodes/Chatwoot/resources/agent/getAll.operation.js.map +1 -0
  32. package/dist/nodes/Chatwoot/resources/agent/index.d.ts +3 -0
  33. package/dist/nodes/Chatwoot/resources/agent/index.js +52 -0
  34. package/dist/nodes/Chatwoot/resources/agent/index.js.map +1 -0
  35. package/dist/nodes/Chatwoot/resources/agent/update.operation.d.ts +2 -0
  36. package/dist/nodes/Chatwoot/resources/agent/update.operation.js +75 -0
  37. package/dist/nodes/Chatwoot/resources/agent/update.operation.js.map +1 -0
  38. package/dist/nodes/Chatwoot/resources/cannedResponse/create.operation.d.ts +2 -0
  39. package/dist/nodes/Chatwoot/resources/cannedResponse/create.operation.js +38 -0
  40. package/dist/nodes/Chatwoot/resources/cannedResponse/create.operation.js.map +1 -0
  41. package/dist/nodes/Chatwoot/resources/cannedResponse/delete.operation.d.ts +2 -0
  42. package/dist/nodes/Chatwoot/resources/cannedResponse/delete.operation.js +20 -0
  43. package/dist/nodes/Chatwoot/resources/cannedResponse/delete.operation.js.map +1 -0
  44. package/dist/nodes/Chatwoot/resources/cannedResponse/getAll.operation.d.ts +2 -0
  45. package/dist/nodes/Chatwoot/resources/cannedResponse/getAll.operation.js +28 -0
  46. package/dist/nodes/Chatwoot/resources/cannedResponse/getAll.operation.js.map +1 -0
  47. package/dist/nodes/Chatwoot/resources/cannedResponse/index.d.ts +3 -0
  48. package/dist/nodes/Chatwoot/resources/cannedResponse/index.js +52 -0
  49. package/dist/nodes/Chatwoot/resources/cannedResponse/index.js.map +1 -0
  50. package/dist/nodes/Chatwoot/resources/cannedResponse/update.operation.d.ts +2 -0
  51. package/dist/nodes/Chatwoot/resources/cannedResponse/update.operation.js +52 -0
  52. package/dist/nodes/Chatwoot/resources/cannedResponse/update.operation.js.map +1 -0
  53. package/dist/nodes/Chatwoot/resources/contact/getConversations.operation.d.ts +2 -0
  54. package/dist/nodes/Chatwoot/resources/contact/getConversations.operation.js +20 -0
  55. package/dist/nodes/Chatwoot/resources/contact/getConversations.operation.js.map +1 -0
  56. package/dist/nodes/Chatwoot/resources/contact/index.js +16 -0
  57. package/dist/nodes/Chatwoot/resources/contact/index.js.map +1 -1
  58. package/dist/nodes/Chatwoot/resources/contact/merge.operation.d.ts +2 -0
  59. package/dist/nodes/Chatwoot/resources/contact/merge.operation.js +34 -0
  60. package/dist/nodes/Chatwoot/resources/contact/merge.operation.js.map +1 -0
  61. package/dist/nodes/Chatwoot/resources/conversation/addLabels.operation.d.ts +2 -0
  62. package/dist/nodes/Chatwoot/resources/conversation/addLabels.operation.js +37 -0
  63. package/dist/nodes/Chatwoot/resources/conversation/addLabels.operation.js.map +1 -0
  64. package/dist/nodes/Chatwoot/resources/conversation/assign.operation.d.ts +2 -0
  65. package/dist/nodes/Chatwoot/resources/conversation/assign.operation.js +87 -0
  66. package/dist/nodes/Chatwoot/resources/conversation/assign.operation.js.map +1 -0
  67. package/dist/nodes/Chatwoot/resources/conversation/index.js +16 -0
  68. package/dist/nodes/Chatwoot/resources/conversation/index.js.map +1 -1
  69. package/dist/nodes/Chatwoot/resources/customAttribute/create.operation.d.ts +2 -0
  70. package/dist/nodes/Chatwoot/resources/customAttribute/create.operation.js +122 -0
  71. package/dist/nodes/Chatwoot/resources/customAttribute/create.operation.js.map +1 -0
  72. package/dist/nodes/Chatwoot/resources/customAttribute/delete.operation.d.ts +2 -0
  73. package/dist/nodes/Chatwoot/resources/customAttribute/delete.operation.js +20 -0
  74. package/dist/nodes/Chatwoot/resources/customAttribute/delete.operation.js.map +1 -0
  75. package/dist/nodes/Chatwoot/resources/customAttribute/get.operation.d.ts +2 -0
  76. package/dist/nodes/Chatwoot/resources/customAttribute/get.operation.js +20 -0
  77. package/dist/nodes/Chatwoot/resources/customAttribute/get.operation.js.map +1 -0
  78. package/dist/nodes/Chatwoot/resources/customAttribute/getAll.operation.d.ts +2 -0
  79. package/dist/nodes/Chatwoot/resources/customAttribute/getAll.operation.js +32 -0
  80. package/dist/nodes/Chatwoot/resources/customAttribute/getAll.operation.js.map +1 -0
  81. package/dist/nodes/Chatwoot/resources/customAttribute/index.d.ts +3 -0
  82. package/dist/nodes/Chatwoot/resources/customAttribute/index.js +60 -0
  83. package/dist/nodes/Chatwoot/resources/customAttribute/index.js.map +1 -0
  84. package/dist/nodes/Chatwoot/resources/customAttribute/update.operation.d.ts +2 -0
  85. package/dist/nodes/Chatwoot/resources/customAttribute/update.operation.js +64 -0
  86. package/dist/nodes/Chatwoot/resources/customAttribute/update.operation.js.map +1 -0
  87. package/dist/nodes/Chatwoot/resources/inbox/get.operation.d.ts +2 -0
  88. package/dist/nodes/Chatwoot/resources/inbox/get.operation.js +23 -0
  89. package/dist/nodes/Chatwoot/resources/inbox/get.operation.js.map +1 -0
  90. package/dist/nodes/Chatwoot/resources/inbox/getAll.operation.d.ts +2 -0
  91. package/dist/nodes/Chatwoot/resources/inbox/getAll.operation.js +5 -0
  92. package/dist/nodes/Chatwoot/resources/inbox/getAll.operation.js.map +1 -0
  93. package/dist/nodes/Chatwoot/resources/inbox/index.d.ts +3 -0
  94. package/dist/nodes/Chatwoot/resources/inbox/index.js +44 -0
  95. package/dist/nodes/Chatwoot/resources/inbox/index.js.map +1 -0
  96. package/dist/nodes/Chatwoot/resources/inbox/update.operation.d.ts +2 -0
  97. package/dist/nodes/Chatwoot/resources/inbox/update.operation.js +143 -0
  98. package/dist/nodes/Chatwoot/resources/inbox/update.operation.js.map +1 -0
  99. package/dist/nodes/Chatwoot/resources/label/create.operation.d.ts +2 -0
  100. package/dist/nodes/Chatwoot/resources/label/create.operation.js +56 -0
  101. package/dist/nodes/Chatwoot/resources/label/create.operation.js.map +1 -0
  102. package/dist/nodes/Chatwoot/resources/label/delete.operation.d.ts +2 -0
  103. package/dist/nodes/Chatwoot/resources/label/delete.operation.js +23 -0
  104. package/dist/nodes/Chatwoot/resources/label/delete.operation.js.map +1 -0
  105. package/dist/nodes/Chatwoot/resources/label/getAll.operation.d.ts +2 -0
  106. package/dist/nodes/Chatwoot/resources/label/getAll.operation.js +5 -0
  107. package/dist/nodes/Chatwoot/resources/label/getAll.operation.js.map +1 -0
  108. package/dist/nodes/Chatwoot/resources/label/index.d.ts +3 -0
  109. package/dist/nodes/Chatwoot/resources/label/index.js +52 -0
  110. package/dist/nodes/Chatwoot/resources/label/index.js.map +1 -0
  111. package/dist/nodes/Chatwoot/resources/label/update.operation.d.ts +2 -0
  112. package/dist/nodes/Chatwoot/resources/label/update.operation.js +66 -0
  113. package/dist/nodes/Chatwoot/resources/label/update.operation.js.map +1 -0
  114. package/dist/nodes/Chatwoot/resources/team/create.operation.d.ts +2 -0
  115. package/dist/nodes/Chatwoot/resources/team/create.operation.js +49 -0
  116. package/dist/nodes/Chatwoot/resources/team/create.operation.js.map +1 -0
  117. package/dist/nodes/Chatwoot/resources/team/delete.operation.d.ts +2 -0
  118. package/dist/nodes/Chatwoot/resources/team/delete.operation.js +23 -0
  119. package/dist/nodes/Chatwoot/resources/team/delete.operation.js.map +1 -0
  120. package/dist/nodes/Chatwoot/resources/team/get.operation.d.ts +2 -0
  121. package/dist/nodes/Chatwoot/resources/team/get.operation.js +23 -0
  122. package/dist/nodes/Chatwoot/resources/team/get.operation.js.map +1 -0
  123. package/dist/nodes/Chatwoot/resources/team/getAll.operation.d.ts +2 -0
  124. package/dist/nodes/Chatwoot/resources/team/getAll.operation.js +5 -0
  125. package/dist/nodes/Chatwoot/resources/team/getAll.operation.js.map +1 -0
  126. package/dist/nodes/Chatwoot/resources/team/index.d.ts +3 -0
  127. package/dist/nodes/Chatwoot/resources/team/index.js +60 -0
  128. package/dist/nodes/Chatwoot/resources/team/index.js.map +1 -0
  129. package/dist/nodes/Chatwoot/resources/team/update.operation.d.ts +2 -0
  130. package/dist/nodes/Chatwoot/resources/team/update.operation.js +59 -0
  131. package/dist/nodes/Chatwoot/resources/team/update.operation.js.map +1 -0
  132. package/dist/nodes/Chatwoot/resources/webhook/create.operation.d.ts +2 -0
  133. package/dist/nodes/Chatwoot/resources/webhook/create.operation.js +77 -0
  134. package/dist/nodes/Chatwoot/resources/webhook/create.operation.js.map +1 -0
  135. package/dist/nodes/Chatwoot/resources/webhook/delete.operation.d.ts +2 -0
  136. package/dist/nodes/Chatwoot/resources/webhook/delete.operation.js +20 -0
  137. package/dist/nodes/Chatwoot/resources/webhook/delete.operation.js.map +1 -0
  138. package/dist/nodes/Chatwoot/resources/webhook/getAll.operation.d.ts +2 -0
  139. package/dist/nodes/Chatwoot/resources/webhook/getAll.operation.js +5 -0
  140. package/dist/nodes/Chatwoot/resources/webhook/getAll.operation.js.map +1 -0
  141. package/dist/nodes/Chatwoot/resources/webhook/index.d.ts +3 -0
  142. package/dist/nodes/Chatwoot/resources/webhook/index.js +52 -0
  143. package/dist/nodes/Chatwoot/resources/webhook/index.js.map +1 -0
  144. package/dist/nodes/Chatwoot/resources/webhook/update.operation.d.ts +2 -0
  145. package/dist/nodes/Chatwoot/resources/webhook/update.operation.js +59 -0
  146. package/dist/nodes/Chatwoot/resources/webhook/update.operation.js.map +1 -0
  147. package/dist/nodes/Chatwoot/types.d.ts +305 -8
  148. package/dist/tsconfig.tsbuildinfo +1 -1
  149. package/package.json +4 -3
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.teamFields = exports.teamOperations = void 0;
4
+ const getAll_operation_1 = require("./getAll.operation");
5
+ const get_operation_1 = require("./get.operation");
6
+ const create_operation_1 = require("./create.operation");
7
+ const update_operation_1 = require("./update.operation");
8
+ const delete_operation_1 = require("./delete.operation");
9
+ exports.teamOperations = {
10
+ displayName: 'Operation',
11
+ name: 'operation',
12
+ type: 'options',
13
+ noDataExpression: true,
14
+ displayOptions: {
15
+ show: {
16
+ resource: ['team'],
17
+ },
18
+ },
19
+ options: [
20
+ {
21
+ name: 'Create',
22
+ value: 'create',
23
+ description: 'Create a new team',
24
+ action: 'Create a team',
25
+ },
26
+ {
27
+ name: 'Delete',
28
+ value: 'delete',
29
+ description: 'Delete a team',
30
+ action: 'Delete a team',
31
+ },
32
+ {
33
+ name: 'Get',
34
+ value: 'get',
35
+ description: 'Get a team by ID',
36
+ action: 'Get a team',
37
+ },
38
+ {
39
+ name: 'Get Many',
40
+ value: 'getAll',
41
+ description: 'Get all teams in the account',
42
+ action: 'Get all teams',
43
+ },
44
+ {
45
+ name: 'Update',
46
+ value: 'update',
47
+ description: 'Update a team',
48
+ action: 'Update a team',
49
+ },
50
+ ],
51
+ default: 'getAll',
52
+ };
53
+ exports.teamFields = [
54
+ ...getAll_operation_1.getAllOperation,
55
+ ...get_operation_1.getOperation,
56
+ ...create_operation_1.createOperation,
57
+ ...update_operation_1.updateOperation,
58
+ ...delete_operation_1.deleteOperation,
59
+ ];
60
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/team/index.ts"],"names":[],"mappings":";;;AACA,yDAAqD;AACrD,mDAA+C;AAC/C,yDAAqD;AACrD,yDAAqD;AACrD,yDAAqD;AAExC,QAAA,cAAc,GAAoB;IAC7C,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,MAAM,CAAC;SACnB;KACF;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,mBAAmB;YAChC,MAAM,EAAE,eAAe;SACxB;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,eAAe;YAC5B,MAAM,EAAE,eAAe;SACxB;QACD;YACE,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,KAAK;YACZ,WAAW,EAAE,kBAAkB;YAC/B,MAAM,EAAE,YAAY;SACrB;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,8BAA8B;YAC3C,MAAM,EAAE,eAAe;SACxB;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,eAAe;YAC5B,MAAM,EAAE,eAAe;SACxB;KACF;IACD,OAAO,EAAE,QAAQ;CAClB,CAAC;AAEW,QAAA,UAAU,GAAsB;IAC3C,GAAG,kCAAe;IAClB,GAAG,4BAAY;IACf,GAAG,kCAAe;IAClB,GAAG,kCAAe;IAClB,GAAG,kCAAe;CACnB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const updateOperation: INodeProperties[];
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateOperation = void 0;
4
+ exports.updateOperation = [
5
+ {
6
+ displayName: 'Team',
7
+ name: 'teamId',
8
+ type: 'options',
9
+ typeOptions: {
10
+ loadOptionsMethod: 'getTeams',
11
+ },
12
+ required: true,
13
+ default: '',
14
+ displayOptions: {
15
+ show: {
16
+ resource: ['team'],
17
+ operation: ['update'],
18
+ },
19
+ },
20
+ description: 'Select the team to update. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
21
+ },
22
+ {
23
+ displayName: 'Update Fields',
24
+ name: 'updateFields',
25
+ type: 'collection',
26
+ placeholder: 'Add Field',
27
+ default: {},
28
+ displayOptions: {
29
+ show: {
30
+ resource: ['team'],
31
+ operation: ['update'],
32
+ },
33
+ },
34
+ options: [
35
+ {
36
+ displayName: 'Name',
37
+ name: 'name',
38
+ type: 'string',
39
+ default: '',
40
+ description: 'Name of the team',
41
+ },
42
+ {
43
+ displayName: 'Description',
44
+ name: 'description',
45
+ type: 'string',
46
+ default: '',
47
+ description: 'Description of the team',
48
+ },
49
+ {
50
+ displayName: 'Allow Auto Assign',
51
+ name: 'allow_auto_assign',
52
+ type: 'boolean',
53
+ default: true,
54
+ description: 'Whether conversations can be automatically assigned to team members',
55
+ },
56
+ ],
57
+ },
58
+ ];
59
+ //# sourceMappingURL=update.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/team/update.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;QACE,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACX,iBAAiB,EAAE,UAAU;SAC9B;QACD,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,4IAA4I;KAC1J;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,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,kBAAkB;aAChC;YACD;gBACE,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,yBAAyB;aACvC;YACD;gBACE,WAAW,EAAE,mBAAmB;gBAChC,IAAI,EAAE,mBAAmB;gBACzB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,IAAI;gBACb,WAAW,EAAE,qEAAqE;aACnF;SACF;KACF;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const createOperation: INodeProperties[];
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createOperation = void 0;
4
+ exports.createOperation = [
5
+ {
6
+ displayName: 'Webhook URL',
7
+ name: 'url',
8
+ type: 'string',
9
+ required: true,
10
+ default: '',
11
+ placeholder: 'https://your-server.com/webhook',
12
+ displayOptions: {
13
+ show: {
14
+ resource: ['webhook'],
15
+ operation: ['create'],
16
+ },
17
+ },
18
+ description: 'URL where webhook events will be sent',
19
+ },
20
+ {
21
+ displayName: 'Subscriptions',
22
+ name: 'subscriptions',
23
+ type: 'multiOptions',
24
+ required: true,
25
+ options: [
26
+ {
27
+ name: 'Contact Created',
28
+ value: 'contact_created',
29
+ description: 'Triggered when a new contact is created',
30
+ },
31
+ {
32
+ name: 'Contact Updated',
33
+ value: 'contact_updated',
34
+ description: 'Triggered when a contact is updated',
35
+ },
36
+ {
37
+ name: 'Conversation Created',
38
+ value: 'conversation_created',
39
+ description: 'Triggered when a new conversation is created',
40
+ },
41
+ {
42
+ name: 'Conversation Status Changed',
43
+ value: 'conversation_status_changed',
44
+ description: 'Triggered when conversation status changes (open, resolved, pending, snoozed)',
45
+ },
46
+ {
47
+ name: 'Conversation Updated',
48
+ value: 'conversation_updated',
49
+ description: 'Triggered when a conversation is updated',
50
+ },
51
+ {
52
+ name: 'Message Created',
53
+ value: 'message_created',
54
+ description: 'Triggered when a new message is sent',
55
+ },
56
+ {
57
+ name: 'Message Updated',
58
+ value: 'message_updated',
59
+ description: 'Triggered when a message is updated',
60
+ },
61
+ {
62
+ name: 'Webwidget Triggered',
63
+ value: 'webwidget_triggered',
64
+ description: 'Triggered when chat widget is opened',
65
+ },
66
+ ],
67
+ default: ['message_created'],
68
+ displayOptions: {
69
+ show: {
70
+ resource: ['webhook'],
71
+ operation: ['create'],
72
+ },
73
+ },
74
+ description: 'Events that will trigger this webhook',
75
+ },
76
+ ];
77
+ //# sourceMappingURL=create.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/webhook/create.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;QACE,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iCAAiC;QAC9C,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,uCAAuC;KACrD;IACD;QACE,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,iBAAiB;gBACvB,KAAK,EAAE,iBAAiB;gBACxB,WAAW,EAAE,yCAAyC;aACvD;YACD;gBACE,IAAI,EAAE,iBAAiB;gBACvB,KAAK,EAAE,iBAAiB;gBACxB,WAAW,EAAE,qCAAqC;aACnD;YACD;gBACE,IAAI,EAAE,sBAAsB;gBAC5B,KAAK,EAAE,sBAAsB;gBAC7B,WAAW,EAAE,8CAA8C;aAC5D;YACD;gBACE,IAAI,EAAE,6BAA6B;gBACnC,KAAK,EAAE,6BAA6B;gBACpC,WAAW,EAAE,+EAA+E;aAC7F;YACD;gBACE,IAAI,EAAE,sBAAsB;gBAC5B,KAAK,EAAE,sBAAsB;gBAC7B,WAAW,EAAE,0CAA0C;aACxD;YACD;gBACE,IAAI,EAAE,iBAAiB;gBACvB,KAAK,EAAE,iBAAiB;gBACxB,WAAW,EAAE,sCAAsC;aACpD;YACD;gBACE,IAAI,EAAE,iBAAiB;gBACvB,KAAK,EAAE,iBAAiB;gBACxB,WAAW,EAAE,qCAAqC;aACnD;YACD;gBACE,IAAI,EAAE,qBAAqB;gBAC3B,KAAK,EAAE,qBAAqB;gBAC5B,WAAW,EAAE,sCAAsC;aACpD;SACF;QACD,OAAO,EAAE,CAAC,iBAAiB,CAAC;QAC5B,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,uCAAuC;KACrD;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const deleteOperation: INodeProperties[];
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deleteOperation = void 0;
4
+ exports.deleteOperation = [
5
+ {
6
+ displayName: 'Webhook ID',
7
+ name: 'webhookId',
8
+ type: 'number',
9
+ required: true,
10
+ default: 0,
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['webhook'],
14
+ operation: ['delete'],
15
+ },
16
+ },
17
+ description: 'ID of the webhook to delete',
18
+ },
19
+ ];
20
+ //# sourceMappingURL=delete.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/webhook/delete.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;QACE,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,6BAA6B;KAC3C;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const getAllOperation: INodeProperties[];
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAllOperation = void 0;
4
+ exports.getAllOperation = [];
5
+ //# sourceMappingURL=getAll.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAll.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/webhook/getAll.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB,EAEjD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const webhookOperations: INodeProperties;
3
+ export declare const webhookFields: INodeProperties[];
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.webhookFields = exports.webhookOperations = void 0;
4
+ const getAll_operation_1 = require("./getAll.operation");
5
+ const create_operation_1 = require("./create.operation");
6
+ const update_operation_1 = require("./update.operation");
7
+ const delete_operation_1 = require("./delete.operation");
8
+ exports.webhookOperations = {
9
+ displayName: 'Operation',
10
+ name: 'operation',
11
+ type: 'options',
12
+ noDataExpression: true,
13
+ displayOptions: {
14
+ show: {
15
+ resource: ['webhook'],
16
+ },
17
+ },
18
+ options: [
19
+ {
20
+ name: 'Create',
21
+ value: 'create',
22
+ description: 'Create a new webhook',
23
+ action: 'Create a webhook',
24
+ },
25
+ {
26
+ name: 'Delete',
27
+ value: 'delete',
28
+ description: 'Delete a webhook',
29
+ action: 'Delete a webhook',
30
+ },
31
+ {
32
+ name: 'Get Many',
33
+ value: 'getAll',
34
+ description: 'Get all webhooks in the account',
35
+ action: 'Get all webhooks',
36
+ },
37
+ {
38
+ name: 'Update',
39
+ value: 'update',
40
+ description: 'Update a webhook',
41
+ action: 'Update a webhook',
42
+ },
43
+ ],
44
+ default: 'getAll',
45
+ };
46
+ exports.webhookFields = [
47
+ ...getAll_operation_1.getAllOperation,
48
+ ...create_operation_1.createOperation,
49
+ ...update_operation_1.updateOperation,
50
+ ...delete_operation_1.deleteOperation,
51
+ ];
52
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/webhook/index.ts"],"names":[],"mappings":";;;AACA,yDAAqD;AACrD,yDAAqD;AACrD,yDAAqD;AACrD,yDAAqD;AAExC,QAAA,iBAAiB,GAAoB;IAChD,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,SAAS,CAAC;SACtB;KACF;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,sBAAsB;YACnC,MAAM,EAAE,kBAAkB;SAC3B;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,kBAAkB;YAC/B,MAAM,EAAE,kBAAkB;SAC3B;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,iCAAiC;YAC9C,MAAM,EAAE,kBAAkB;SAC3B;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,kBAAkB;YAC/B,MAAM,EAAE,kBAAkB;SAC3B;KACF;IACD,OAAO,EAAE,QAAQ;CAClB,CAAC;AAEW,QAAA,aAAa,GAAsB;IAC9C,GAAG,kCAAe;IAClB,GAAG,kCAAe;IAClB,GAAG,kCAAe;IAClB,GAAG,kCAAe;CACnB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const updateOperation: INodeProperties[];
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateOperation = void 0;
4
+ exports.updateOperation = [
5
+ {
6
+ displayName: 'Webhook ID',
7
+ name: 'webhookId',
8
+ type: 'number',
9
+ required: true,
10
+ default: 0,
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['webhook'],
14
+ operation: ['update'],
15
+ },
16
+ },
17
+ description: 'ID of the webhook 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: ['webhook'],
28
+ operation: ['update'],
29
+ },
30
+ },
31
+ options: [
32
+ {
33
+ displayName: 'Webhook URL',
34
+ name: 'url',
35
+ type: 'string',
36
+ default: '',
37
+ description: 'URL where webhook events will be sent',
38
+ },
39
+ {
40
+ displayName: 'Subscriptions',
41
+ name: 'subscriptions',
42
+ type: 'multiOptions',
43
+ options: [
44
+ { name: 'Contact Created', value: 'contact_created' },
45
+ { name: 'Contact Updated', value: 'contact_updated' },
46
+ { name: 'Conversation Created', value: 'conversation_created' },
47
+ { name: 'Conversation Status Changed', value: 'conversation_status_changed' },
48
+ { name: 'Conversation Updated', value: 'conversation_updated' },
49
+ { name: 'Message Created', value: 'message_created' },
50
+ { name: 'Message Updated', value: 'message_updated' },
51
+ { name: 'Webwidget Triggered', value: 'webwidget_triggered' },
52
+ ],
53
+ default: [],
54
+ description: 'Events that will trigger this webhook',
55
+ },
56
+ ],
57
+ },
58
+ ];
59
+ //# sourceMappingURL=update.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/webhook/update.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;QACE,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,6BAA6B;KAC3C;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,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,uCAAuC;aACrD;YACD;gBACE,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,cAAc;gBACpB,OAAO,EAAE;oBACP,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,iBAAiB,EAAE;oBACrD,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,iBAAiB,EAAE;oBACrD,EAAE,IAAI,EAAE,sBAAsB,EAAE,KAAK,EAAE,sBAAsB,EAAE;oBAC/D,EAAE,IAAI,EAAE,6BAA6B,EAAE,KAAK,EAAE,6BAA6B,EAAE;oBAC7E,EAAE,IAAI,EAAE,sBAAsB,EAAE,KAAK,EAAE,sBAAsB,EAAE;oBAC/D,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,iBAAiB,EAAE;oBACrD,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,iBAAiB,EAAE;oBACrD,EAAE,IAAI,EAAE,qBAAqB,EAAE,KAAK,EAAE,qBAAqB,EAAE;iBAC9D;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,uCAAuC;aACrD;SACF;KACF;CACF,CAAC"}