@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 @@
1
+ {"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/account/update.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;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,Q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AO,EAAE,EAAE;gBACX,WAAW,EAAE,oCAAoC;aAClD;YACD;gBACE,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,qBAAqB;gBAClC,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,uCAAuC;aACrD;YACD;gBACE,WAAW,EAAE,8BAA8B;gBAC3C,IAAI,EAAE,uBAAuB;gBAC7B,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACX,QAAQ,EAAE,CAAC;oBACX,QAAQ,EAAE,GAAG;iBACd;gBACD,OAAO,EAAE,CAAC;gBACV,WAAW,EAAE,kFAAkF;aAChG;SACF;KACF;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const createOperation: INodeProperties[];
@@ -0,0 +1,95 @@
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: ['agent'],
14
+ operation: ['create'],
15
+ },
16
+ },
17
+ description: 'Full name of the agent',
18
+ },
19
+ {
20
+ displayName: 'Email',
21
+ name: 'email',
22
+ type: 'string',
23
+ placeholder: 'name@email.com',
24
+ required: true,
25
+ default: '',
26
+ displayOptions: {
27
+ show: {
28
+ resource: ['agent'],
29
+ operation: ['create'],
30
+ },
31
+ },
32
+ description: 'Email address of the agent (used for login)',
33
+ },
34
+ {
35
+ displayName: 'Role',
36
+ name: 'role',
37
+ type: 'options',
38
+ required: true,
39
+ options: [
40
+ {
41
+ name: 'Agent',
42
+ value: 'agent',
43
+ description: 'Can manage assigned conversations and contacts',
44
+ },
45
+ {
46
+ name: 'Administrator',
47
+ value: 'administrator',
48
+ description: 'Full access to all conversations, contacts, and settings',
49
+ },
50
+ ],
51
+ default: 'agent',
52
+ displayOptions: {
53
+ show: {
54
+ resource: ['agent'],
55
+ operation: ['create'],
56
+ },
57
+ },
58
+ description: 'Role determines the permissions of the agent',
59
+ },
60
+ {
61
+ displayName: 'Additional Fields',
62
+ name: 'additionalFields',
63
+ type: 'collection',
64
+ placeholder: 'Add Field',
65
+ default: {},
66
+ displayOptions: {
67
+ show: {
68
+ resource: ['agent'],
69
+ operation: ['create'],
70
+ },
71
+ },
72
+ options: [
73
+ {
74
+ displayName: 'Availability Status',
75
+ name: 'availability_status',
76
+ type: 'options',
77
+ options: [
78
+ { name: 'Available', value: 'available' },
79
+ { name: 'Busy', value: 'busy' },
80
+ { name: 'Offline', value: 'offline' },
81
+ ],
82
+ default: 'available',
83
+ description: 'Initial availability status of the agent',
84
+ },
85
+ {
86
+ displayName: 'Auto Offline',
87
+ name: 'auto_offline',
88
+ type: 'boolean',
89
+ default: true,
90
+ description: 'Whether to automatically set agent offline when inactive',
91
+ },
92
+ ],
93
+ },
94
+ ];
95
+ //# sourceMappingURL=create.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/agent/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,wBAAwB;KACtC;IACD;QACE,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,gBAAgB;QAC7B,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc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aACxD;YACD;gBACE,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,IAAI;gBACb,WAAW,EAAE,0DAA0D;aACxE;SACF;KACF;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const deleteOperation: INodeProperties[];
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deleteOperation = void 0;
4
+ exports.deleteOperation = [
5
+ {
6
+ displayName: 'Agent',
7
+ name: 'agentId',
8
+ type: 'options',
9
+ typeOptions: {
10
+ loadOptionsMethod: 'getAgents',
11
+ },
12
+ required: true,
13
+ default: '',
14
+ displayOptions: {
15
+ show: {
16
+ resource: ['agent'],
17
+ operation: ['delete'],
18
+ },
19
+ },
20
+ description: 'Select the agent to delete. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
21
+ },
22
+ ];
23
+ //# sourceMappingURL=delete.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/agent/delete.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;QACE,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACX,iBAAiB,EAAE,WAAW;SAC/B;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,6IAA6I;KAC3J;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/agent/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 agentOperations: INodeProperties;
3
+ export declare const agentFields: INodeProperties[];
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.agentFields = exports.agentOperations = 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.agentOperations = {
9
+ displayName: 'Operation',
10
+ name: 'operation',
11
+ type: 'options',
12
+ noDataExpression: true,
13
+ displayOptions: {
14
+ show: {
15
+ resource: ['agent'],
16
+ },
17
+ },
18
+ options: [
19
+ {
20
+ name: 'Create',
21
+ value: 'create',
22
+ description: 'Create a new agent',
23
+ action: 'Create an agent',
24
+ },
25
+ {
26
+ name: 'Delete',
27
+ value: 'delete',
28
+ description: 'Delete an agent',
29
+ action: 'Delete an agent',
30
+ },
31
+ {
32
+ name: 'Get Many',
33
+ value: 'getAll',
34
+ description: 'Get all agents in the account',
35
+ action: 'Get all agents',
36
+ },
37
+ {
38
+ name: 'Update',
39
+ value: 'update',
40
+ description: 'Update an agent',
41
+ action: 'Update an agent',
42
+ },
43
+ ],
44
+ default: 'getAll',
45
+ };
46
+ exports.agentFields = [
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/agent/index.ts"],"names":[],"mappings":";;;AACA,yDAAqD;AACrD,yDAAqD;AACrD,yDAAqD;AACrD,yDAAqD;AAExC,QAAA,eAAe,GAAoB;IAC9C,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,OAAO,CAAC;SACpB;KACF;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,oBAAoB;YACjC,MAAM,EAAE,iBAAiB;SAC1B;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,iBAAiB;YAC9B,MAAM,EAAE,iBAAiB;SAC1B;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,+BAA+B;YAC5C,MAAM,EAAE,gBAAgB;SACzB;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,iBAAiB;YAC9B,MAAM,EAAE,iBAAiB;SAC1B;KACF;IACD,OAAO,EAAE,QAAQ;CAClB,CAAC;AAEW,QAAA,WAAW,GAAsB;IAC5C,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,75 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateOperation = void 0;
4
+ exports.updateOperation = [
5
+ {
6
+ displayName: 'Agent',
7
+ name: 'agentId',
8
+ type: 'options',
9
+ typeOptions: {
10
+ loadOptionsMethod: 'getAgents',
11
+ },
12
+ required: true,
13
+ default: '',
14
+ displayOptions: {
15
+ show: {
16
+ resource: ['agent'],
17
+ operation: ['update'],
18
+ },
19
+ },
20
+ description: 'Select the agent 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: ['agent'],
31
+ operation: ['update'],
32
+ },
33
+ },
34
+ options: [
35
+ {
36
+ displayName: 'Name',
37
+ name: 'name',
38
+ type: 'string',
39
+ default: '',
40
+ description: 'Full name of the agent',
41
+ },
42
+ {
43
+ displayName: 'Role',
44
+ name: 'role',
45
+ type: 'options',
46
+ options: [
47
+ { name: 'Agent', value: 'agent' },
48
+ { name: 'Administrator', value: 'administrator' },
49
+ ],
50
+ default: 'agent',
51
+ description: 'Role determines the permissions of the agent',
52
+ },
53
+ {
54
+ displayName: 'Availability Status',
55
+ name: 'availability_status',
56
+ type: 'options',
57
+ options: [
58
+ { name: 'Available', value: 'available' },
59
+ { name: 'Busy', value: 'busy' },
60
+ { name: 'Offline', value: 'offline' },
61
+ ],
62
+ default: 'available',
63
+ description: 'Availability status of the agent',
64
+ },
65
+ {
66
+ displayName: 'Auto Offline',
67
+ name: 'auto_offline',
68
+ type: 'boolean',
69
+ default: true,
70
+ description: 'Whether to automatically set agent offline when inactive',
71
+ },
72
+ ],
73
+ },
74
+ ];
75
+ //# sourceMappingURL=update.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/agent/update.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;QACE,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,SAAS;QACf,I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S,EAAE;iBACtC;gBACD,OAAO,EAAE,WAAW;gBACpB,WAAW,EAAE,kCAAkC;aAChD;YACD;gBACE,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,IAAI;gBACb,WAAW,EAAE,0DAA0D;aACxE;SACF;KACF;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const createOperation: INodeProperties[];
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createOperation = void 0;
4
+ exports.createOperation = [
5
+ {
6
+ displayName: 'Short Code',
7
+ name: 'shortCode',
8
+ type: 'string',
9
+ required: true,
10
+ default: '',
11
+ placeholder: 'greeting',
12
+ displayOptions: {
13
+ show: {
14
+ resource: ['cannedResponse'],
15
+ operation: ['create'],
16
+ },
17
+ },
18
+ description: 'Short code to trigger this response (e.g., "greeting" can be triggered by typing "/greeting")',
19
+ },
20
+ {
21
+ displayName: 'Content',
22
+ name: 'content',
23
+ type: 'string',
24
+ typeOptions: {
25
+ rows: 4,
26
+ },
27
+ required: true,
28
+ default: '',
29
+ displayOptions: {
30
+ show: {
31
+ resource: ['cannedResponse'],
32
+ operation: ['create'],
33
+ },
34
+ },
35
+ description: 'The message content of the canned response',
36
+ },
37
+ ];
38
+ //# sourceMappingURL=create.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/cannedResponse/create.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,EAAE;QACX,WAAW,EAAE,UAAU;QACvB,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,gBAAgB,CAAC;gBAC5B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,+FAA+F;KAC7G;IACD;QACE,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE;YACX,IAAI,EAAE,CAAC;SACR;QACD,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,gBAAgB,CAAC;gBAC5B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,4CAA4C;KAC1D;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: 'Canned Response ID',
7
+ name: 'cannedResponseId',
8
+ type: 'number',
9
+ required: true,
10
+ default: 0,
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['cannedResponse'],
14
+ operation: ['delete'],
15
+ },
16
+ },
17
+ description: 'ID of the canned response 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/cannedResponse/delete.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;QACE,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,gBAAgB,CAAC;gBAC5B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,qCAAqC;KACnD;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const getAllOperation: INodeProperties[];
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAllOperation = void 0;
4
+ exports.getAllOperation = [
5
+ {
6
+ displayName: 'Options',
7
+ name: 'options',
8
+ type: 'collection',
9
+ placeholder: 'Add Option',
10
+ default: {},
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['cannedResponse'],
14
+ operation: ['getAll'],
15
+ },
16
+ },
17
+ options: [
18
+ {
19
+ displayName: 'Search',
20
+ name: 'search',
21
+ type: 'string',
22
+ default: '',
23
+ description: 'Search canned responses by short code or content',
24
+ },
25
+ ],
26
+ },
27
+ ];
28
+ //# sourceMappingURL=getAll.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAll.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/cannedResponse/getAll.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;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,gBAAgB,CAAC;gBAC5B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,kDAAkD;aAChE;SACF;KACF;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const cannedResponseOperations: INodeProperties;
3
+ export declare const cannedResponseFields: INodeProperties[];
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.cannedResponseFields = exports.cannedResponseOperations = 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.cannedResponseOperations = {
9
+ displayName: 'Operation',
10
+ name: 'operation',
11
+ type: 'options',
12
+ noDataExpression: true,
13
+ displayOptions: {
14
+ show: {
15
+ resource: ['cannedResponse'],
16
+ },
17
+ },
18
+ options: [
19
+ {
20
+ name: 'Create',
21
+ value: 'create',
22
+ description: 'Create a new canned response',
23
+ action: 'Create a canned response',
24
+ },
25
+ {
26
+ name: 'Delete',
27
+ value: 'delete',
28
+ description: 'Delete a canned response',
29
+ action: 'Delete a canned response',
30
+ },
31
+ {
32
+ name: 'Get Many',
33
+ value: 'getAll',
34
+ description: 'Get all canned responses',
35
+ action: 'Get all canned responses',
36
+ },
37
+ {
38
+ name: 'Update',
39
+ value: 'update',
40
+ description: 'Update a canned response',
41
+ action: 'Update a canned response',
42
+ },
43
+ ],
44
+ default: 'getAll',
45
+ };
46
+ exports.cannedResponseFields = [
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/cannedResponse/index.ts"],"names":[],"mappings":";;;AACA,yDAAqD;AACrD,yDAAqD;AACrD,yDAAqD;AACrD,yDAAqD;AAExC,QAAA,wBAAwB,GAAoB;IACvD,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,gBAAgB,CAAC;SAC7B;KACF;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,8BAA8B;YAC3C,MAAM,EAAE,0BAA0B;SACnC;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,0BAA0B;YACvC,MAAM,EAAE,0BAA0B;SACnC;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,0BAA0B;YACvC,MAAM,EAAE,0BAA0B;SACnC;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,0BAA0B;YACvC,MAAM,EAAE,0BAA0B;SACnC;KACF;IACD,OAAO,EAAE,QAAQ;CAClB,CAAC;AAEW,QAAA,oBAAoB,GAAsB;IACrD,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,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateOperation = void 0;
4
+ exports.updateOperation = [
5
+ {
6
+ displayName: 'Canned Response ID',
7
+ name: 'cannedResponseId',
8
+ type: 'number',
9
+ required: true,
10
+ default: 0,
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['cannedResponse'],
14
+ operation: ['update'],
15
+ },
16
+ },
17
+ description: 'ID of the canned response 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: ['cannedResponse'],
28
+ operation: ['update'],
29
+ },
30
+ },
31
+ options: [
32
+ {
33
+ displayName: 'Short Code',
34
+ name: 'short_code',
35
+ type: 'string',
36
+ default: '',
37
+ description: 'Short code to trigger this response',
38
+ },
39
+ {
40
+ displayName: 'Content',
41
+ name: 'content',
42
+ type: 'string',
43
+ typeOptions: {
44
+ rows: 4,
45
+ },
46
+ default: '',
47
+ description: 'The message content of the canned response',
48
+ },
49
+ ],
50
+ },
51
+ ];
52
+ //# sourceMappingURL=update.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/cannedResponse/update.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;QACE,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,gBAAgB,CAAC;gBAC5B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,qCAAqC;KACnD;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,gBAAgB,CAAC;gBAC5B,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,qCAAqC;aACnD;YACD;gBACE,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACX,IAAI,EAAE,CAAC;iBACR;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,4CAA4C;aAC1D;SACF;KACF;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const getConversationsOperation: INodeProperties[];
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getConversationsOperation = void 0;
4
+ exports.getConversationsOperation = [
5
+ {
6
+ displayName: 'Contact ID',
7
+ name: 'contactId',
8
+ type: 'number',
9
+ required: true,
10
+ default: 0,
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['contact'],
14
+ operation: ['getConversations'],
15
+ },
16
+ },
17
+ description: 'ID of the contact',
18
+ },
19
+ ];
20
+ //# sourceMappingURL=getConversations.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getConversations.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/contact/getConversations.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,yBAAyB,GAAsB;IAC1D;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,kBAAkB,CAAC;aAChC;SACF;QACD,WAAW,EAAE,mBAAmB;KACjC;CACF,CAAC"}
@@ -7,6 +7,8 @@ const getAll_operation_1 = require("./getAll.operation");
7
7
  const update_operation_1 = require("./update.operation");
8
8
  const delete_operation_1 = require("./delete.operation");
9
9
  const search_operation_1 = require("./search.operation");
10
+ const getConversations_operation_1 = require("./getConversations.operation");
11
+ const merge_operation_1 = require("./merge.operation");
10
12
  exports.contactOperations = {
11
13
  displayName: 'Operation',
12
14
  name: 'operation',
@@ -36,12 +38,24 @@ exports.contactOperations = {
36
38
  description: 'Get a contact by ID',
37
39
  action: 'Get a contact',
38
40
  },
41
+ {
42
+ name: 'Get Conversations',
43
+ value: 'getConversations',
44
+ description: 'Get all conversations for a contact',
45
+ action: 'Get contact conversations',
46
+ },
39
47
  {
40
48
  name: 'Get Many',
41
49
  value: 'getAll',
42
50
  description: 'Get many contacts',
43
51
  action: 'Get many contacts',
44
52
  },
53
+ {
54
+ name: 'Merge',
55
+ value: 'merge',
56
+ description: 'Merge two contacts into one',
57
+ action: 'Merge contacts',
58
+ },
45
59
  {
46
60
  name: 'Search',
47
61
  value: 'search',
@@ -64,5 +78,7 @@ exports.contactFields = [
64
78
  ...update_operation_1.updateOperation,
65
79
  ...delete_operation_1.deleteOperation,
66
80
  ...search_operation_1.searchOperation,
81
+ ...getConversations_operation_1.getConversationsOperation,
82
+ ...merge_operation_1.mergeOperation,
67
83
  ];
68
84
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/contact/index.ts"],"names":[],"mappings":";;;AACA,yDAAqD;AACrD,mDAA+C;AAC/C,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,KAAK;YACX,KAAK,EAAE,KAAK;YACZ,WAAW,EAAE,qBAAqB;YAClC,MAAM,EAAE,eAAe;SACxB;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,mBAAmB;YAChC,MAAM,EAAE,mBAAmB;SAC5B;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,sDAAsD;YACnE,MAAM,EAAE,iBAAiB;SAC1B;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,4BAAY;IACf,GAAG,kCAAe;IAClB,GAAG,kCAAe;IAClB,GAAG,kCAAe;IAClB,GAAG,kCAAe;CACnB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/contact/index.ts"],"names":[],"mappings":";;;AACA,yDAAqD;AACrD,mDAA+C;AAC/C,yDAAqD;AACrD,yDAAqD;AACrD,yDAAqD;AACrD,yDAAqD;AACrD,6EAAyE;AACzE,uDAAmD;AAEtC,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,KAAK;YACX,KAAK,EAAE,KAAK;YACZ,WAAW,EAAE,qBAAqB;YAClC,MAAM,EAAE,eAAe;SACxB;QACD;YACE,IAAI,EAAE,mBAAmB;YACzB,KAAK,EAAE,kBAAkB;YACzB,WAAW,EAAE,qCAAqC;YAClD,MAAM,EAAE,2BAA2B;SACpC;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,mBAAmB;YAChC,MAAM,EAAE,mBAAmB;SAC5B;QACD;YACE,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,6BAA6B;YAC1C,MAAM,EAAE,gBAAgB;SACzB;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,sDAAsD;YACnE,MAAM,EAAE,iBAAiB;SAC1B;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,4BAAY;IACf,GAAG,kCAAe;IAClB,GAAG,kCAAe;IAClB,GAAG,kCAAe;IAClB,GAAG,kCAAe;IAClB,GAAG,sDAAyB;IAC5B,GAAG,gCAAc;CAClB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const mergeOperation: INodeProperties[];