@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,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[];
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.assignOperation = void 0;
4
+ exports.assignOperation = [
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: ['assign'],
15
+ },
16
+ },
17
+ description: 'ID of the conversation to assign',
18
+ },
19
+ {
20
+ displayName: 'Assignment Type',
21
+ name: 'assignmentType',
22
+ type: 'options',
23
+ required: true,
24
+ options: [
25
+ {
26
+ name: 'Agent',
27
+ value: 'agent',
28
+ description: 'Assign to a specific agent',
29
+ },
30
+ {
31
+ name: 'Team',
32
+ value: 'team',
33
+ description: 'Assign to a team',
34
+ },
35
+ {
36
+ name: 'Unassign',
37
+ value: 'unassign',
38
+ description: 'Remove current assignment',
39
+ },
40
+ ],
41
+ default: 'agent',
42
+ displayOptions: {
43
+ show: {
44
+ resource: ['conversation'],
45
+ operation: ['assign'],
46
+ },
47
+ },
48
+ description: 'Type of assignment to make',
49
+ },
50
+ {
51
+ displayName: 'Agent',
52
+ name: 'assigneeId',
53
+ type: 'options',
54
+ typeOptions: {
55
+ loadOptionsMethod: 'getAgents',
56
+ },
57
+ required: true,
58
+ default: '',
59
+ displayOptions: {
60
+ show: {
61
+ resource: ['conversation'],
62
+ operation: ['assign'],
63
+ assignmentType: ['agent'],
64
+ },
65
+ },
66
+ description: 'Select the agent to assign. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
67
+ },
68
+ {
69
+ displayName: 'Team',
70
+ name: 'teamId',
71
+ type: 'options',
72
+ typeOptions: {
73
+ loadOptionsMethod: 'getTeams',
74
+ },
75
+ required: true,
76
+ default: '',
77
+ displayOptions: {
78
+ show: {
79
+ resource: ['conversation'],
80
+ operation: ['assign'],
81
+ assignmentType: ['team'],
82
+ },
83
+ },
84
+ description: 'Select the team to assign. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
85
+ },
86
+ ];
87
+ //# sourceMappingURL=assign.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assign.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/conversation/assign.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;QACE,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,kCAAkC;KAChD;IACD;QACE,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,OAAO;gBACd,WAAW,EAAE,4BAA4B;aAC1C;YACD;gBACE,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,MAAM;gBACb,WAAW,EAAE,kBAAkB;aAChC;YACD;gBACE,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,UAAU;gBACjB,WAAW,EAAE,2BAA2B;aACzC;SACF;QACD,OAAO,EAAE,OAAO;QAChB,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,4BAA4B;KAC1C;IACD;QACE,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,YAAY;QAClB,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,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,QAAQ,CAAC;gBACrB,cAAc,EAAE,CAAC,OAAO,CAAC;aAC1B;SACF;QACD,WAAW,EAAE,6IAA6I;KAC3J;IACD;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,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,QAAQ,CAAC;gBACrB,cAAc,EAAE,CAAC,MAAM,CAAC;aACzB;SACF;QACD,WAAW,EAAE,4IAA4I;KAC1J;CACF,CAAC"}
@@ -4,6 +4,8 @@ exports.conversationFields = exports.conversationOperations = void 0;
4
4
  const get_operation_1 = require("./get.operation");
5
5
  const getAll_operation_1 = require("./getAll.operation");
6
6
  const updateStatus_operation_1 = require("./updateStatus.operation");
7
+ const assign_operation_1 = require("./assign.operation");
8
+ const addLabels_operation_1 = require("./addLabels.operation");
7
9
  exports.conversationOperations = {
8
10
  displayName: 'Operation',
9
11
  name: 'operation',
@@ -15,6 +17,18 @@ exports.conversationOperations = {
15
17
  },
16
18
  },
17
19
  options: [
20
+ {
21
+ name: 'Add Labels',
22
+ value: 'addLabels',
23
+ description: 'Set labels on a conversation',
24
+ action: 'Add labels to a conversation',
25
+ },
26
+ {
27
+ name: 'Assign',
28
+ value: 'assign',
29
+ description: 'Assign conversation to an agent or team',
30
+ action: 'Assign a conversation',
31
+ },
18
32
  {
19
33
  name: 'Get',
20
34
  value: 'get',
@@ -40,5 +54,7 @@ exports.conversationFields = [
40
54
  ...get_operation_1.getOperation,
41
55
  ...getAll_operation_1.getAllOperation,
42
56
  ...updateStatus_operation_1.updateStatusOperation,
57
+ ...assign_operation_1.assignOperation,
58
+ ...addLabels_operation_1.addLabelsOperation,
43
59
  ];
44
60
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/conversation/index.ts"],"names":[],"mappings":";;;AACA,mDAA+C;AAC/C,yDAAqD;AACrD,qEAAiE;AAEpD,QAAA,sBAAsB,GAAoB;IACrD,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE;QACd,IAAI,EAAE;YACJ,QAAQ,EAAE,CAAC,cAAc,CAAC;SAC3B;KACF;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,KAAK;YACZ,WAAW,EAAE,0BAA0B;YACvC,MAAM,EAAE,oBAAoB;SAC7B;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,8CAA8C;YAC3D,MAAM,EAAE,wBAAwB;SACjC;QACD;YACE,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,cAAc;YACrB,WAAW,EAAE,+DAA+D;YAC5E,MAAM,EAAE,4BAA4B;SACrC;KACF;IACD,OAAO,EAAE,QAAQ;CAClB,CAAC;AAEW,QAAA,kBAAkB,GAAsB;IACnD,GAAG,4BAAY;IACf,GAAG,kCAAe;IAClB,GAAG,8CAAqB;CACzB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/conversation/index.ts"],"names":[],"mappings":";;;AACA,mDAA+C;AAC/C,yDAAqD;AACrD,qEAAiE;AACjE,yDAAqD;AACrD,+DAA2D;AAE9C,QAAA,sBAAsB,GAAoB;IACrD,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE;QACd,IAAI,EAAE;YACJ,QAAQ,EAAE,CAAC,cAAc,CAAC;SAC3B;KACF;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,YAAY;YAClB,KAAK,EAAE,WAAW;YAClB,WAAW,EAAE,8BAA8B;YAC3C,MAAM,EAAE,8BAA8B;SACvC;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,yCAAyC;YACtD,MAAM,EAAE,uBAAuB;SAChC;QACD;YACE,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,KAAK;YACZ,WAAW,EAAE,0BAA0B;YACvC,MAAM,EAAE,oBAAoB;SAC7B;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,8CAA8C;YAC3D,MAAM,EAAE,wBAAwB;SACjC;QACD;YACE,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,cAAc;YACrB,WAAW,EAAE,+DAA+D;YAC5E,MAAM,EAAE,4BAA4B;SACrC;KACF;IACD,OAAO,EAAE,QAAQ;CAClB,CAAC;AAEW,QAAA,kBAAkB,GAAsB;IACnD,GAAG,4BAAY;IACf,GAAG,kCAAe;IAClB,GAAG,8CAAqB;IACxB,GAAG,kCAAe;IAClB,GAAG,wCAAkB;CACtB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const createOperation: INodeProperties[];
@@ -0,0 +1,122 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createOperation = void 0;
4
+ exports.createOperation = [
5
+ {
6
+ displayName: 'Attribute Display Name',
7
+ name: 'attributeDisplayName',
8
+ type: 'string',
9
+ required: true,
10
+ default: '',
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['customAttribute'],
14
+ operation: ['create'],
15
+ },
16
+ },
17
+ description: 'Display name of the custom attribute (shown in UI)',
18
+ },
19
+ {
20
+ displayName: 'Attribute Key',
21
+ name: 'attributeKey',
22
+ type: 'string',
23
+ required: true,
24
+ default: '',
25
+ placeholder: 'company_size',
26
+ displayOptions: {
27
+ show: {
28
+ resource: ['customAttribute'],
29
+ operation: ['create'],
30
+ },
31
+ },
32
+ description: 'Unique key for the attribute (snake_case, no spaces)',
33
+ },
34
+ {
35
+ displayName: 'Attribute Model',
36
+ name: 'attributeModel',
37
+ type: 'options',
38
+ required: true,
39
+ options: [
40
+ {
41
+ name: 'Contact Attribute',
42
+ value: 'contact_attribute',
43
+ description: 'Custom attribute for contacts',
44
+ },
45
+ {
46
+ name: 'Conversation Attribute',
47
+ value: 'conversation_attribute',
48
+ description: 'Custom attribute for conversations',
49
+ },
50
+ ],
51
+ default: 'contact_attribute',
52
+ displayOptions: {
53
+ show: {
54
+ resource: ['customAttribute'],
55
+ operation: ['create'],
56
+ },
57
+ },
58
+ description: 'The model this attribute applies to',
59
+ },
60
+ {
61
+ displayName: 'Attribute Type',
62
+ name: 'attributeDisplayType',
63
+ type: 'options',
64
+ required: true,
65
+ options: [
66
+ { name: 'Text', value: 'text' },
67
+ { name: 'Number', value: 'number' },
68
+ { name: 'Currency', value: 'currency' },
69
+ { name: 'Percent', value: 'percent' },
70
+ { name: 'Link', value: 'link' },
71
+ { name: 'Date', value: 'date' },
72
+ { name: 'List', value: 'list' },
73
+ { name: 'Checkbox', value: 'checkbox' },
74
+ ],
75
+ default: 'text',
76
+ displayOptions: {
77
+ show: {
78
+ resource: ['customAttribute'],
79
+ operation: ['create'],
80
+ },
81
+ },
82
+ description: 'The data type of the attribute',
83
+ },
84
+ {
85
+ displayName: 'Additional Fields',
86
+ name: 'additionalFields',
87
+ type: 'collection',
88
+ placeholder: 'Add Field',
89
+ default: {},
90
+ displayOptions: {
91
+ show: {
92
+ resource: ['customAttribute'],
93
+ operation: ['create'],
94
+ },
95
+ },
96
+ options: [
97
+ {
98
+ displayName: 'Description',
99
+ name: 'attribute_description',
100
+ type: 'string',
101
+ default: '',
102
+ description: 'Description of the custom attribute',
103
+ },
104
+ {
105
+ displayName: 'Default Value',
106
+ name: 'default_value',
107
+ type: 'string',
108
+ default: '',
109
+ description: 'Default value for the attribute',
110
+ },
111
+ {
112
+ displayName: 'List Values',
113
+ name: 'attribute_values',
114
+ type: 'string',
115
+ default: '',
116
+ placeholder: 'value1,value2,value3',
117
+ description: 'Comma-separated list of values (only for "List" type)',
118
+ },
119
+ ],
120
+ },
121
+ ];
122
+ //# sourceMappingURL=create.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/customAttribute/create.operation.ts"],"names":[],"mappings":"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"}
@@ -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: 'Custom Attribute ID',
7
+ name: 'customAttributeId',
8
+ type: 'number',
9
+ required: true,
10
+ default: 0,
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['customAttribute'],
14
+ operation: ['delete'],
15
+ },
16
+ },
17
+ description: 'ID of the custom attribute 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/customAttribute/delete.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;QACE,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,iBAAiB,CAAC;gBAC7B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,sCAAsC;KACpD;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const getOperation: INodeProperties[];
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getOperation = void 0;
4
+ exports.getOperation = [
5
+ {
6
+ displayName: 'Custom Attribute ID',
7
+ name: 'customAttributeId',
8
+ type: 'number',
9
+ required: true,
10
+ default: 0,
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['customAttribute'],
14
+ operation: ['get'],
15
+ },
16
+ },
17
+ description: 'ID of the custom attribute to retrieve',
18
+ },
19
+ ];
20
+ //# sourceMappingURL=get.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/customAttribute/get.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAAsB;IAC7C;QACE,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,iBAAiB,CAAC;gBAC7B,SAAS,EAAE,CAAC,KAAK,CAAC;aACnB;SACF;QACD,WAAW,EAAE,wCAAwC;KACtD;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const getAllOperation: INodeProperties[];
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAllOperation = void 0;
4
+ exports.getAllOperation = [
5
+ {
6
+ displayName: 'Attribute Model',
7
+ name: 'attributeModel',
8
+ type: 'options',
9
+ required: true,
10
+ options: [
11
+ {
12
+ name: 'Contact Attribute',
13
+ value: 'contact_attribute',
14
+ description: 'Custom attributes for contacts',
15
+ },
16
+ {
17
+ name: 'Conversation Attribute',
18
+ value: 'conversation_attribute',
19
+ description: 'Custom attributes for conversations',
20
+ },
21
+ ],
22
+ default: 'contact_attribute',
23
+ displayOptions: {
24
+ show: {
25
+ resource: ['customAttribute'],
26
+ operation: ['getAll'],
27
+ },
28
+ },
29
+ description: 'The model type for custom attributes',
30
+ },
31
+ ];
32
+ //# sourceMappingURL=getAll.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAll.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/customAttribute/getAll.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;QACE,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,mBAAmB;gBACzB,KAAK,EAAE,mBAAmB;gBAC1B,WAAW,EAAE,gCAAgC;aAC9C;YACD;gBACE,IAAI,EAAE,wBAAwB;gBAC9B,KAAK,EAAE,wBAAwB;gBAC/B,WAAW,EAAE,qCAAqC;aACnD;SACF;QACD,OAAO,EAAE,mBAAmB;QAC5B,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,iBAAiB,CAAC;gBAC7B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,sCAAsC;KACpD;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const customAttributeOperations: INodeProperties;
3
+ export declare const customAttributeFields: INodeProperties[];
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.customAttributeFields = exports.customAttributeOperations = 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.customAttributeOperations = {
10
+ displayName: 'Operation',
11
+ name: 'operation',
12
+ type: 'options',
13
+ noDataExpression: true,
14
+ displayOptions: {
15
+ show: {
16
+ resource: ['customAttribute'],
17
+ },
18
+ },
19
+ options: [
20
+ {
21
+ name: 'Create',
22
+ value: 'create',
23
+ description: 'Create a new custom attribute definition',
24
+ action: 'Create a custom attribute',
25
+ },
26
+ {
27
+ name: 'Delete',
28
+ value: 'delete',
29
+ description: 'Delete a custom attribute definition',
30
+ action: 'Delete a custom attribute',
31
+ },
32
+ {
33
+ name: 'Get',
34
+ value: 'get',
35
+ description: 'Get a custom attribute by ID',
36
+ action: 'Get a custom attribute',
37
+ },
38
+ {
39
+ name: 'Get Many',
40
+ value: 'getAll',
41
+ description: 'Get all custom attribute definitions',
42
+ action: 'Get all custom attributes',
43
+ },
44
+ {
45
+ name: 'Update',
46
+ value: 'update',
47
+ description: 'Update a custom attribute definition',
48
+ action: 'Update a custom attribute',
49
+ },
50
+ ],
51
+ default: 'getAll',
52
+ };
53
+ exports.customAttributeFields = [
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/customAttribute/index.ts"],"names":[],"mappings":";;;AACA,yDAAqD;AACrD,mDAA+C;AAC/C,yDAAqD;AACrD,yDAAqD;AACrD,yDAAqD;AAExC,QAAA,yBAAyB,GAAoB;IACxD,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,iBAAiB,CAAC;SAC9B;KACF;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,0CAA0C;YACvD,MAAM,EAAE,2BAA2B;SACpC;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,sCAAsC;YACnD,MAAM,EAAE,2BAA2B;SACpC;QACD;YACE,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,KAAK;YACZ,WAAW,EAAE,8BAA8B;YAC3C,MAAM,EAAE,wBAAwB;SACjC;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,sCAAsC;YACnD,MAAM,EAAE,2BAA2B;SACpC;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,sCAAsC;YACnD,MAAM,EAAE,2BAA2B;SACpC;KACF;IACD,OAAO,EAAE,QAAQ;CAClB,CAAC;AAEW,QAAA,qBAAqB,GAAsB;IACtD,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,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateOperation = void 0;
4
+ exports.updateOperation = [
5
+ {
6
+ displayName: 'Custom Attribute ID',
7
+ name: 'customAttributeId',
8
+ type: 'number',
9
+ required: true,
10
+ default: 0,
11
+ displayOptions: {
12
+ show: {
13
+ resource: ['customAttribute'],
14
+ operation: ['update'],
15
+ },
16
+ },
17
+ description: 'ID of the custom attribute 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: ['customAttribute'],
28
+ operation: ['update'],
29
+ },
30
+ },
31
+ options: [
32
+ {
33
+ displayName: 'Display Name',
34
+ name: 'attribute_display_name',
35
+ type: 'string',
36
+ default: '',
37
+ description: 'Display name of the custom attribute',
38
+ },
39
+ {
40
+ displayName: 'Description',
41
+ name: 'attribute_description',
42
+ type: 'string',
43
+ default: '',
44
+ description: 'Description of the custom attribute',
45
+ },
46
+ {
47
+ displayName: 'Default Value',
48
+ name: 'default_value',
49
+ type: 'string',
50
+ default: '',
51
+ description: 'Default value for the attribute',
52
+ },
53
+ {
54
+ displayName: 'List Values',
55
+ name: 'attribute_values',
56
+ type: 'string',
57
+ default: '',
58
+ placeholder: 'value1,value2,value3',
59
+ description: 'Comma-separated list of values (only for "List" type)',
60
+ },
61
+ ],
62
+ },
63
+ ];
64
+ //# sourceMappingURL=update.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/customAttribute/update.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;QACE,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,iBAAiB,CAAC;gBAC7B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,sCAAsC;KACpD;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,iBAAiB,CAAC;gBAC7B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,wBAAwB;gBAC9B,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,sCAAsC;aACpD;YACD;gBACE,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,uBAAuB;gBAC7B,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,qCAAqC;aACnD;YACD;gBACE,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,iCAAiC;aAC/C;YACD;gBACE,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,kBAAkB;gBACxB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,sBAAsB;gBACnC,WAAW,EAAE,uDAAuD;aACrE;SACF;KACF;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const getOperation: INodeProperties[];
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getOperation = void 0;
4
+ exports.getOperation = [
5
+ {
6
+ displayName: 'Inbox',
7
+ name: 'inboxId',
8
+ type: 'options',
9
+ typeOptions: {
10
+ loadOptionsMethod: 'getInboxes',
11
+ },
12
+ required: true,
13
+ default: '',
14
+ displayOptions: {
15
+ show: {
16
+ resource: ['inbox'],
17
+ operation: ['get'],
18
+ },
19
+ },
20
+ description: 'Select the inbox to retrieve. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
21
+ },
22
+ ];
23
+ //# sourceMappingURL=get.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/inbox/get.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAAsB;IAC7C;QACE,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACX,iBAAiB,EAAE,YAAY;SAChC;QACD,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,SAAS,EAAE,CAAC,KAAK,CAAC;aACnB;SACF;QACD,WAAW,EAAE,+IAA+I;KAC7J;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/inbox/getAll.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB,EAEjD,CAAC"}