@renatoascencio/n8n-nodes-chatwoot 0.1.2 → 0.3.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 (172) hide show
  1. package/README.md +315 -80
  2. package/dist/nodes/Chatwoot/Chatwoot.node.d.ts +9 -0
  3. package/dist/nodes/Chatwoot/Chatwoot.node.js +611 -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 +4 -7
  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/agentBot/index.d.ts +3 -0
  39. package/dist/nodes/Chatwoot/resources/agentBot/index.js +143 -0
  40. package/dist/nodes/Chatwoot/resources/agentBot/index.js.map +1 -0
  41. package/dist/nodes/Chatwoot/resources/automationRule/index.d.ts +3 -0
  42. package/dist/nodes/Chatwoot/resources/automationRule/index.js +205 -0
  43. package/dist/nodes/Chatwoot/resources/automationRule/index.js.map +1 -0
  44. package/dist/nodes/Chatwoot/resources/cannedResponse/create.operation.d.ts +2 -0
  45. package/dist/nodes/Chatwoot/resources/cannedResponse/create.operation.js +38 -0
  46. package/dist/nodes/Chatwoot/resources/cannedResponse/create.operation.js.map +1 -0
  47. package/dist/nodes/Chatwoot/resources/cannedResponse/delete.operation.d.ts +2 -0
  48. package/dist/nodes/Chatwoot/resources/cannedResponse/delete.operation.js +20 -0
  49. package/dist/nodes/Chatwoot/resources/cannedResponse/delete.operation.js.map +1 -0
  50. package/dist/nodes/Chatwoot/resources/cannedResponse/getAll.operation.d.ts +2 -0
  51. package/dist/nodes/Chatwoot/resources/cannedResponse/getAll.operation.js +28 -0
  52. package/dist/nodes/Chatwoot/resources/cannedResponse/getAll.operation.js.map +1 -0
  53. package/dist/nodes/Chatwoot/resources/cannedResponse/index.d.ts +3 -0
  54. package/dist/nodes/Chatwoot/resources/cannedResponse/index.js +52 -0
  55. package/dist/nodes/Chatwoot/resources/cannedResponse/index.js.map +1 -0
  56. package/dist/nodes/Chatwoot/resources/cannedResponse/update.operation.d.ts +2 -0
  57. package/dist/nodes/Chatwoot/resources/cannedResponse/update.operation.js +52 -0
  58. package/dist/nodes/Chatwoot/resources/cannedResponse/update.operation.js.map +1 -0
  59. package/dist/nodes/Chatwoot/resources/contact/getConversations.operation.d.ts +2 -0
  60. package/dist/nodes/Chatwoot/resources/contact/getConversations.operation.js +20 -0
  61. package/dist/nodes/Chatwoot/resources/contact/getConversations.operation.js.map +1 -0
  62. package/dist/nodes/Chatwoot/resources/contact/index.js +16 -0
  63. package/dist/nodes/Chatwoot/resources/contact/index.js.map +1 -1
  64. package/dist/nodes/Chatwoot/resources/contact/merge.operation.d.ts +2 -0
  65. package/dist/nodes/Chatwoot/resources/contact/merge.operation.js +34 -0
  66. package/dist/nodes/Chatwoot/resources/contact/merge.operation.js.map +1 -0
  67. package/dist/nodes/Chatwoot/resources/conversation/addLabels.operation.d.ts +2 -0
  68. package/dist/nodes/Chatwoot/resources/conversation/addLabels.operation.js +37 -0
  69. package/dist/nodes/Chatwoot/resources/conversation/addLabels.operation.js.map +1 -0
  70. package/dist/nodes/Chatwoot/resources/conversation/assign.operation.d.ts +2 -0
  71. package/dist/nodes/Chatwoot/resources/conversation/assign.operation.js +87 -0
  72. package/dist/nodes/Chatwoot/resources/conversation/assign.operation.js.map +1 -0
  73. package/dist/nodes/Chatwoot/resources/conversation/create.operation.d.ts +2 -0
  74. package/dist/nodes/Chatwoot/resources/conversation/create.operation.js +92 -0
  75. package/dist/nodes/Chatwoot/resources/conversation/create.operation.js.map +1 -0
  76. package/dist/nodes/Chatwoot/resources/conversation/index.js +32 -0
  77. package/dist/nodes/Chatwoot/resources/conversation/index.js.map +1 -1
  78. package/dist/nodes/Chatwoot/resources/conversation/togglePriority.operation.d.ts +2 -0
  79. package/dist/nodes/Chatwoot/resources/conversation/togglePriority.operation.js +41 -0
  80. package/dist/nodes/Chatwoot/resources/conversation/togglePriority.operation.js.map +1 -0
  81. package/dist/nodes/Chatwoot/resources/customAttribute/create.operation.d.ts +2 -0
  82. package/dist/nodes/Chatwoot/resources/customAttribute/create.operation.js +122 -0
  83. package/dist/nodes/Chatwoot/resources/customAttribute/create.operation.js.map +1 -0
  84. package/dist/nodes/Chatwoot/resources/customAttribute/delete.operation.d.ts +2 -0
  85. package/dist/nodes/Chatwoot/resources/customAttribute/delete.operation.js +20 -0
  86. package/dist/nodes/Chatwoot/resources/customAttribute/delete.operation.js.map +1 -0
  87. package/dist/nodes/Chatwoot/resources/customAttribute/get.operation.d.ts +2 -0
  88. package/dist/nodes/Chatwoot/resources/customAttribute/get.operation.js +20 -0
  89. package/dist/nodes/Chatwoot/resources/customAttribute/get.operation.js.map +1 -0
  90. package/dist/nodes/Chatwoot/resources/customAttribute/getAll.operation.d.ts +2 -0
  91. package/dist/nodes/Chatwoot/resources/customAttribute/getAll.operation.js +32 -0
  92. package/dist/nodes/Chatwoot/resources/customAttribute/getAll.operation.js.map +1 -0
  93. package/dist/nodes/Chatwoot/resources/customAttribute/index.d.ts +3 -0
  94. package/dist/nodes/Chatwoot/resources/customAttribute/index.js +60 -0
  95. package/dist/nodes/Chatwoot/resources/customAttribute/index.js.map +1 -0
  96. package/dist/nodes/Chatwoot/resources/customAttribute/update.operation.d.ts +2 -0
  97. package/dist/nodes/Chatwoot/resources/customAttribute/update.operation.js +64 -0
  98. package/dist/nodes/Chatwoot/resources/customAttribute/update.operation.js.map +1 -0
  99. package/dist/nodes/Chatwoot/resources/customFilter/index.d.ts +3 -0
  100. package/dist/nodes/Chatwoot/resources/customFilter/index.js +139 -0
  101. package/dist/nodes/Chatwoot/resources/customFilter/index.js.map +1 -0
  102. package/dist/nodes/Chatwoot/resources/inbox/get.operation.d.ts +2 -0
  103. package/dist/nodes/Chatwoot/resources/inbox/get.operation.js +23 -0
  104. package/dist/nodes/Chatwoot/resources/inbox/get.operation.js.map +1 -0
  105. package/dist/nodes/Chatwoot/resources/inbox/getAll.operation.d.ts +2 -0
  106. package/dist/nodes/Chatwoot/resources/inbox/getAll.operation.js +5 -0
  107. package/dist/nodes/Chatwoot/resources/inbox/getAll.operation.js.map +1 -0
  108. package/dist/nodes/Chatwoot/resources/inbox/index.d.ts +3 -0
  109. package/dist/nodes/Chatwoot/resources/inbox/index.js +44 -0
  110. package/dist/nodes/Chatwoot/resources/inbox/index.js.map +1 -0
  111. package/dist/nodes/Chatwoot/resources/inbox/update.operation.d.ts +2 -0
  112. package/dist/nodes/Chatwoot/resources/inbox/update.operation.js +143 -0
  113. package/dist/nodes/Chatwoot/resources/inbox/update.operation.js.map +1 -0
  114. package/dist/nodes/Chatwoot/resources/label/create.operation.d.ts +2 -0
  115. package/dist/nodes/Chatwoot/resources/label/create.operation.js +56 -0
  116. package/dist/nodes/Chatwoot/resources/label/create.operation.js.map +1 -0
  117. package/dist/nodes/Chatwoot/resources/label/delete.operation.d.ts +2 -0
  118. package/dist/nodes/Chatwoot/resources/label/delete.operation.js +23 -0
  119. package/dist/nodes/Chatwoot/resources/label/delete.operation.js.map +1 -0
  120. package/dist/nodes/Chatwoot/resources/label/getAll.operation.d.ts +2 -0
  121. package/dist/nodes/Chatwoot/resources/label/getAll.operation.js +5 -0
  122. package/dist/nodes/Chatwoot/resources/label/getAll.operation.js.map +1 -0
  123. package/dist/nodes/Chatwoot/resources/label/index.d.ts +3 -0
  124. package/dist/nodes/Chatwoot/resources/label/index.js +52 -0
  125. package/dist/nodes/Chatwoot/resources/label/index.js.map +1 -0
  126. package/dist/nodes/Chatwoot/resources/label/update.operation.d.ts +2 -0
  127. package/dist/nodes/Chatwoot/resources/label/update.operation.js +66 -0
  128. package/dist/nodes/Chatwoot/resources/label/update.operation.js.map +1 -0
  129. package/dist/nodes/Chatwoot/resources/message/delete.operation.d.ts +2 -0
  130. package/dist/nodes/Chatwoot/resources/message/delete.operation.js +34 -0
  131. package/dist/nodes/Chatwoot/resources/message/delete.operation.js.map +1 -0
  132. package/dist/nodes/Chatwoot/resources/message/index.js +8 -1
  133. package/dist/nodes/Chatwoot/resources/message/index.js.map +1 -1
  134. package/dist/nodes/Chatwoot/resources/report/index.d.ts +3 -0
  135. package/dist/nodes/Chatwoot/resources/report/index.js +155 -0
  136. package/dist/nodes/Chatwoot/resources/report/index.js.map +1 -0
  137. package/dist/nodes/Chatwoot/resources/team/create.operation.d.ts +2 -0
  138. package/dist/nodes/Chatwoot/resources/team/create.operation.js +49 -0
  139. package/dist/nodes/Chatwoot/resources/team/create.operation.js.map +1 -0
  140. package/dist/nodes/Chatwoot/resources/team/delete.operation.d.ts +2 -0
  141. package/dist/nodes/Chatwoot/resources/team/delete.operation.js +23 -0
  142. package/dist/nodes/Chatwoot/resources/team/delete.operation.js.map +1 -0
  143. package/dist/nodes/Chatwoot/resources/team/get.operation.d.ts +2 -0
  144. package/dist/nodes/Chatwoot/resources/team/get.operation.js +23 -0
  145. package/dist/nodes/Chatwoot/resources/team/get.operation.js.map +1 -0
  146. package/dist/nodes/Chatwoot/resources/team/getAll.operation.d.ts +2 -0
  147. package/dist/nodes/Chatwoot/resources/team/getAll.operation.js +5 -0
  148. package/dist/nodes/Chatwoot/resources/team/getAll.operation.js.map +1 -0
  149. package/dist/nodes/Chatwoot/resources/team/index.d.ts +3 -0
  150. package/dist/nodes/Chatwoot/resources/team/index.js +60 -0
  151. package/dist/nodes/Chatwoot/resources/team/index.js.map +1 -0
  152. package/dist/nodes/Chatwoot/resources/team/update.operation.d.ts +2 -0
  153. package/dist/nodes/Chatwoot/resources/team/update.operation.js +59 -0
  154. package/dist/nodes/Chatwoot/resources/team/update.operation.js.map +1 -0
  155. package/dist/nodes/Chatwoot/resources/webhook/create.operation.d.ts +2 -0
  156. package/dist/nodes/Chatwoot/resources/webhook/create.operation.js +77 -0
  157. package/dist/nodes/Chatwoot/resources/webhook/create.operation.js.map +1 -0
  158. package/dist/nodes/Chatwoot/resources/webhook/delete.operation.d.ts +2 -0
  159. package/dist/nodes/Chatwoot/resources/webhook/delete.operation.js +20 -0
  160. package/dist/nodes/Chatwoot/resources/webhook/delete.operation.js.map +1 -0
  161. package/dist/nodes/Chatwoot/resources/webhook/getAll.operation.d.ts +2 -0
  162. package/dist/nodes/Chatwoot/resources/webhook/getAll.operation.js +5 -0
  163. package/dist/nodes/Chatwoot/resources/webhook/getAll.operation.js.map +1 -0
  164. package/dist/nodes/Chatwoot/resources/webhook/index.d.ts +3 -0
  165. package/dist/nodes/Chatwoot/resources/webhook/index.js +52 -0
  166. package/dist/nodes/Chatwoot/resources/webhook/index.js.map +1 -0
  167. package/dist/nodes/Chatwoot/resources/webhook/update.operation.d.ts +2 -0
  168. package/dist/nodes/Chatwoot/resources/webhook/update.operation.js +59 -0
  169. package/dist/nodes/Chatwoot/resources/webhook/update.operation.js.map +1 -0
  170. package/dist/nodes/Chatwoot/types.d.ts +322 -6
  171. package/dist/tsconfig.tsbuildinfo +1 -1
  172. package/package.json +4 -3
@@ -0,0 +1,205 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.automationRuleFields = exports.automationRuleOperations = void 0;
4
+ exports.automationRuleOperations = {
5
+ displayName: 'Operation',
6
+ name: 'operation',
7
+ type: 'options',
8
+ noDataExpression: true,
9
+ displayOptions: {
10
+ show: {
11
+ resource: ['automationRule'],
12
+ },
13
+ },
14
+ options: [
15
+ {
16
+ name: 'Create',
17
+ value: 'create',
18
+ description: 'Create an automation rule',
19
+ action: 'Create an automation rule',
20
+ },
21
+ {
22
+ name: 'Delete',
23
+ value: 'delete',
24
+ description: 'Delete an automation rule',
25
+ action: 'Delete an automation rule',
26
+ },
27
+ {
28
+ name: 'Get',
29
+ value: 'get',
30
+ description: 'Get an automation rule by ID',
31
+ action: 'Get an automation rule',
32
+ },
33
+ {
34
+ name: 'Get Many',
35
+ value: 'getAll',
36
+ description: 'Get all automation rules',
37
+ action: 'Get all automation rules',
38
+ },
39
+ {
40
+ name: 'Update',
41
+ value: 'update',
42
+ description: 'Update an automation rule',
43
+ action: 'Update an automation rule',
44
+ },
45
+ ],
46
+ default: 'getAll',
47
+ };
48
+ exports.automationRuleFields = [
49
+ {
50
+ displayName: 'Automation Rule ID',
51
+ name: 'automationRuleId',
52
+ type: 'number',
53
+ required: true,
54
+ default: 0,
55
+ displayOptions: {
56
+ show: {
57
+ resource: ['automationRule'],
58
+ operation: ['get', 'update', 'delete'],
59
+ },
60
+ },
61
+ description: 'ID of the automation rule',
62
+ },
63
+ {
64
+ displayName: 'Name',
65
+ name: 'name',
66
+ type: 'string',
67
+ required: true,
68
+ default: '',
69
+ displayOptions: {
70
+ show: {
71
+ resource: ['automationRule'],
72
+ operation: ['create'],
73
+ },
74
+ },
75
+ description: 'Name of the automation rule',
76
+ },
77
+ {
78
+ displayName: 'Event Name',
79
+ name: 'eventName',
80
+ type: 'options',
81
+ required: true,
82
+ options: [
83
+ { name: 'Conversation Created', value: 'conversation_created' },
84
+ { name: 'Conversation Updated', value: 'conversation_updated' },
85
+ { name: 'Conversation Opened', value: 'conversation_opened' },
86
+ { name: 'Message Created', value: 'message_created' },
87
+ ],
88
+ default: 'conversation_created',
89
+ displayOptions: {
90
+ show: {
91
+ resource: ['automationRule'],
92
+ operation: ['create'],
93
+ },
94
+ },
95
+ description: 'Event that triggers the automation',
96
+ },
97
+ {
98
+ displayName: 'Conditions (JSON)',
99
+ name: 'conditions',
100
+ type: 'json',
101
+ required: true,
102
+ default: '[]',
103
+ displayOptions: {
104
+ show: {
105
+ resource: ['automationRule'],
106
+ operation: ['create'],
107
+ },
108
+ },
109
+ description: 'Array of conditions in JSON format',
110
+ },
111
+ {
112
+ displayName: 'Actions (JSON)',
113
+ name: 'actions',
114
+ type: 'json',
115
+ required: true,
116
+ default: '[]',
117
+ displayOptions: {
118
+ show: {
119
+ resource: ['automationRule'],
120
+ operation: ['create'],
121
+ },
122
+ },
123
+ description: 'Array of actions in JSON format',
124
+ },
125
+ {
126
+ displayName: 'Additional Fields',
127
+ name: 'additionalFields',
128
+ type: 'collection',
129
+ placeholder: 'Add Field',
130
+ default: {},
131
+ displayOptions: {
132
+ show: {
133
+ resource: ['automationRule'],
134
+ operation: ['create'],
135
+ },
136
+ },
137
+ options: [
138
+ {
139
+ displayName: 'Description',
140
+ name: 'description',
141
+ type: 'string',
142
+ default: '',
143
+ description: 'Description of the automation rule',
144
+ },
145
+ {
146
+ displayName: 'Active',
147
+ name: 'active',
148
+ type: 'boolean',
149
+ default: true,
150
+ description: 'Whether the rule is active',
151
+ },
152
+ ],
153
+ },
154
+ {
155
+ displayName: 'Update Fields',
156
+ name: 'updateFields',
157
+ type: 'collection',
158
+ placeholder: 'Add Field',
159
+ default: {},
160
+ displayOptions: {
161
+ show: {
162
+ resource: ['automationRule'],
163
+ operation: ['update'],
164
+ },
165
+ },
166
+ options: [
167
+ {
168
+ displayName: 'Name',
169
+ name: 'name',
170
+ type: 'string',
171
+ default: '',
172
+ description: 'Name of the automation rule',
173
+ },
174
+ {
175
+ displayName: 'Description',
176
+ name: 'description',
177
+ type: 'string',
178
+ default: '',
179
+ description: 'Description of the automation rule',
180
+ },
181
+ {
182
+ displayName: 'Active',
183
+ name: 'active',
184
+ type: 'boolean',
185
+ default: true,
186
+ description: 'Whether the rule is active',
187
+ },
188
+ {
189
+ displayName: 'Conditions (JSON)',
190
+ name: 'conditions',
191
+ type: 'json',
192
+ default: '',
193
+ description: 'Array of conditions in JSON format',
194
+ },
195
+ {
196
+ displayName: 'Actions (JSON)',
197
+ name: 'actions',
198
+ type: 'json',
199
+ default: '',
200
+ description: 'Array of actions in JSON format',
201
+ },
202
+ ],
203
+ },
204
+ ];
205
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","s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OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,oCAAoC;aAClD;YACD;gBACE,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,IAAI;gBACb,WAAW,EAAE,4BAA4B;aAC1C;YACD;gBACE,WAAW,EAAE,mBAAmB;gBAChC,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,MAAM;gBACZ,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,oCAAoC;aAClD;YACD;gBACE,WAAW,EAAE,gBAAgB;gBAC7B,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,MAAM;gBACZ,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,iCAAiC;aAC/C;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,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eProperties } from 'n8n-workflow';
2
+ export declare const mergeOperation: INodeProperties[];
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mergeOperation = void 0;
4
+ exports.mergeOperation = [
5
+ {
6
+ displayName: 'Base Contact ID',
7
+ name: 'baseContactId',
8
+ type: 'number',
9
+ required: true,
10
+ default: 0,
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['contact'],
14
+ operation: ['merge'],
15
+ },
16
+ },
17
+ description: 'ID of the contact that will be kept (primary contact)',
18
+ },
19
+ {
20
+ displayName: 'Merge Contact ID',
21
+ name: 'mergeeContactId',
22
+ type: 'number',
23
+ required: true,
24
+ default: 0,
25
+ displayOptions: {
26
+ show: {
27
+ resource: ['contact'],
28
+ operation: ['merge'],
29
+ },
30
+ },
31
+ description: 'ID of the contact that will be merged and deleted',
32
+ },
33
+ ];
34
+ //# sourceMappingURL=merge.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"merge.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/contact/merge.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,cAAc,GAAsB;IAC/C;QACE,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,eAAe;QACrB,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,OAAO,CAAC;aACrB;SACF;QACD,WAAW,EAAE,uDAAuD;KACrE;IACD;QACE,WAAW,EAAE,kBAAkB;QAC/B,IAAI,EAAE,iBAAiB;QACvB,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,OAAO,CAAC;aACrB;SACF;QACD,WAAW,EAAE,mDAAmD;KACjE;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const addLabelsOperation: INodeProperties[];
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.addLabelsOperation = void 0;
4
+ exports.addLabelsOperation = [
5
+ {
6
+ displayName: 'Conversation ID',
7
+ name: 'conversationId',
8
+ type: 'number',
9
+ required: true,
10
+ default: 0,
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['conversation'],
14
+ operation: ['addLabels'],
15
+ },
16
+ },
17
+ description: 'ID of the conversation',
18
+ },
19
+ {
20
+ displayName: 'Labels',
21
+ name: 'labels',
22
+ type: 'multiOptions',
23
+ typeOptions: {
24
+ loadOptionsMethod: 'getLabels',
25
+ },
26
+ required: true,
27
+ default: [],
28
+ displayOptions: {
29
+ show: {
30
+ resource: ['conversation'],
31
+ operation: ['addLabels'],
32
+ },
33
+ },
34
+ description: 'Labels to set on the conversation (replaces existing labels). Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
35
+ },
36
+ ];
37
+ //# sourceMappingURL=addLabels.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addLabels.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/conversation/addLabels.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAsB;IACnD;QACE,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,WAAW,CAAC;aACzB;SACF;QACD,WAAW,EAAE,wBAAwB;KACtC;IACD;QACE,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,cAAc;QACpB,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,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,WAAW,CAAC;aACzB;SACF;QACD,WAAW,EAAE,6KAA6K;KAC3L;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const assignOperation: INodeProperties[];