@saraivadev/n8n-nodes-uazapi 0.1.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 (56) hide show
  1. package/LICENSE.md +19 -0
  2. package/README.md +130 -0
  3. package/dist/credentials/UazapiApi.credentials.d.ts +10 -0
  4. package/dist/credentials/UazapiApi.credentials.js +56 -0
  5. package/dist/credentials/UazapiApi.credentials.js.map +1 -0
  6. package/dist/icons/uazapi.svg +4 -0
  7. package/dist/nodes/Uazapi/Uazapi.node.d.ts +4 -0
  8. package/dist/nodes/Uazapi/Uazapi.node.js +85 -0
  9. package/dist/nodes/Uazapi/Uazapi.node.js.map +1 -0
  10. package/dist/nodes/Uazapi/Uazapi.node.json +18 -0
  11. package/dist/nodes/Uazapi/descriptions/AdminDescription.d.ts +2 -0
  12. package/dist/nodes/Uazapi/descriptions/AdminDescription.js +206 -0
  13. package/dist/nodes/Uazapi/descriptions/AdminDescription.js.map +1 -0
  14. package/dist/nodes/Uazapi/descriptions/BusinessDescription.d.ts +2 -0
  15. package/dist/nodes/Uazapi/descriptions/BusinessDescription.js +274 -0
  16. package/dist/nodes/Uazapi/descriptions/BusinessDescription.js.map +1 -0
  17. package/dist/nodes/Uazapi/descriptions/ChatDescription.d.ts +2 -0
  18. package/dist/nodes/Uazapi/descriptions/ChatDescription.js +776 -0
  19. package/dist/nodes/Uazapi/descriptions/ChatDescription.js.map +1 -0
  20. package/dist/nodes/Uazapi/descriptions/ChatbotDescription.d.ts +2 -0
  21. package/dist/nodes/Uazapi/descriptions/ChatbotDescription.js +546 -0
  22. package/dist/nodes/Uazapi/descriptions/ChatbotDescription.js.map +1 -0
  23. package/dist/nodes/Uazapi/descriptions/ContactDescription.d.ts +2 -0
  24. package/dist/nodes/Uazapi/descriptions/ContactDescription.js +198 -0
  25. package/dist/nodes/Uazapi/descriptions/ContactDescription.js.map +1 -0
  26. package/dist/nodes/Uazapi/descriptions/CrmDescription.d.ts +2 -0
  27. package/dist/nodes/Uazapi/descriptions/CrmDescription.js +499 -0
  28. package/dist/nodes/Uazapi/descriptions/CrmDescription.js.map +1 -0
  29. package/dist/nodes/Uazapi/descriptions/GroupDescription.d.ts +2 -0
  30. package/dist/nodes/Uazapi/descriptions/GroupDescription.js +705 -0
  31. package/dist/nodes/Uazapi/descriptions/GroupDescription.js.map +1 -0
  32. package/dist/nodes/Uazapi/descriptions/InstanceDescription.d.ts +2 -0
  33. package/dist/nodes/Uazapi/descriptions/InstanceDescription.js +396 -0
  34. package/dist/nodes/Uazapi/descriptions/InstanceDescription.js.map +1 -0
  35. package/dist/nodes/Uazapi/descriptions/LabelDescription.d.ts +2 -0
  36. package/dist/nodes/Uazapi/descriptions/LabelDescription.js +120 -0
  37. package/dist/nodes/Uazapi/descriptions/LabelDescription.js.map +1 -0
  38. package/dist/nodes/Uazapi/descriptions/MessageDescription.d.ts +2 -0
  39. package/dist/nodes/Uazapi/descriptions/MessageDescription.js +1034 -0
  40. package/dist/nodes/Uazapi/descriptions/MessageDescription.js.map +1 -0
  41. package/dist/nodes/Uazapi/descriptions/ProfileDescription.d.ts +2 -0
  42. package/dist/nodes/Uazapi/descriptions/ProfileDescription.js +84 -0
  43. package/dist/nodes/Uazapi/descriptions/ProfileDescription.js.map +1 -0
  44. package/dist/nodes/Uazapi/descriptions/SenderDescription.d.ts +2 -0
  45. package/dist/nodes/Uazapi/descriptions/SenderDescription.js +627 -0
  46. package/dist/nodes/Uazapi/descriptions/SenderDescription.js.map +1 -0
  47. package/dist/nodes/Uazapi/descriptions/shared.d.ts +5 -0
  48. package/dist/nodes/Uazapi/descriptions/shared.js +95 -0
  49. package/dist/nodes/Uazapi/descriptions/shared.js.map +1 -0
  50. package/dist/nodes/UazapiTrigger/UazapiTrigger.node.d.ts +13 -0
  51. package/dist/nodes/UazapiTrigger/UazapiTrigger.node.js +362 -0
  52. package/dist/nodes/UazapiTrigger/UazapiTrigger.node.js.map +1 -0
  53. package/dist/nodes/UazapiTrigger/UazapiTrigger.node.json +18 -0
  54. package/dist/package.json +50 -0
  55. package/dist/tsconfig.tsbuildinfo +1 -0
  56. package/package.json +49 -0
@@ -0,0 +1,274 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.businessDescription = void 0;
4
+ exports.businessDescription = [
5
+ {
6
+ displayName: 'Operation',
7
+ name: 'operation',
8
+ type: 'options',
9
+ noDataExpression: true,
10
+ displayOptions: {
11
+ show: {
12
+ resource: ['business'],
13
+ },
14
+ },
15
+ options: [
16
+ {
17
+ name: 'Delete Product',
18
+ value: 'deleteProduct',
19
+ action: 'Delete a catalog product',
20
+ description: 'Delete a product from the business catalog',
21
+ routing: {
22
+ request: {
23
+ method: 'POST',
24
+ url: '/business/catalog/delete',
25
+ },
26
+ },
27
+ },
28
+ {
29
+ name: 'Get Categories',
30
+ value: 'getCategories',
31
+ action: 'Get business categories',
32
+ description: 'Retrieve the available business categories',
33
+ routing: {
34
+ request: {
35
+ method: 'GET',
36
+ url: '/business/get/categories',
37
+ },
38
+ },
39
+ },
40
+ {
41
+ name: 'Get Product',
42
+ value: 'getProduct',
43
+ action: 'Get a catalog product',
44
+ description: 'Retrieve detailed information about a catalog product',
45
+ routing: {
46
+ request: {
47
+ method: 'POST',
48
+ url: '/business/catalog/info',
49
+ },
50
+ },
51
+ },
52
+ {
53
+ name: 'Get Profile',
54
+ value: 'getProfile',
55
+ action: 'Get a business profile',
56
+ description: 'Retrieve a WhatsApp Business profile',
57
+ routing: {
58
+ request: {
59
+ method: 'POST',
60
+ url: '/business/get/profile',
61
+ },
62
+ },
63
+ },
64
+ {
65
+ name: 'Hide Product',
66
+ value: 'hideProduct',
67
+ action: 'Hide a catalog product',
68
+ description: 'Hide a product from the business catalog',
69
+ routing: {
70
+ request: {
71
+ method: 'POST',
72
+ url: '/business/catalog/hide',
73
+ },
74
+ },
75
+ },
76
+ {
77
+ name: 'List Catalog',
78
+ value: 'listCatalog',
79
+ action: 'List catalog products',
80
+ description: 'List all products in a business catalog',
81
+ routing: {
82
+ request: {
83
+ method: 'POST',
84
+ url: '/business/catalog/list',
85
+ },
86
+ },
87
+ },
88
+ {
89
+ name: 'Show Product',
90
+ value: 'showProduct',
91
+ action: 'Show a catalog product',
92
+ description: 'Make a hidden product visible in the catalog',
93
+ routing: {
94
+ request: {
95
+ method: 'POST',
96
+ url: '/business/catalog/show',
97
+ },
98
+ },
99
+ },
100
+ {
101
+ name: 'Update Profile',
102
+ value: 'updateProfile',
103
+ action: 'Update the business profile',
104
+ description: 'Update fields of the WhatsApp Business profile',
105
+ routing: {
106
+ request: {
107
+ method: 'POST',
108
+ url: '/business/update/profile',
109
+ },
110
+ },
111
+ },
112
+ ],
113
+ default: 'getProfile',
114
+ },
115
+ {
116
+ displayName: 'JID',
117
+ name: 'jid',
118
+ type: 'string',
119
+ default: '',
120
+ description: 'Target WhatsApp JID. Leave empty to fetch the own profile.',
121
+ displayOptions: {
122
+ show: {
123
+ resource: ['business'],
124
+ operation: ['getProfile'],
125
+ },
126
+ },
127
+ routing: {
128
+ send: {
129
+ type: 'body',
130
+ property: 'jid',
131
+ },
132
+ },
133
+ },
134
+ {
135
+ displayName: 'Profile Fields',
136
+ name: 'profileFields',
137
+ type: 'collection',
138
+ placeholder: 'Add Field',
139
+ default: {},
140
+ description: 'Fields to update on the business profile',
141
+ displayOptions: {
142
+ show: {
143
+ resource: ['business'],
144
+ operation: ['updateProfile'],
145
+ },
146
+ },
147
+ options: [
148
+ {
149
+ displayName: 'Address',
150
+ name: 'address',
151
+ type: 'string',
152
+ default: '',
153
+ description: 'Physical address of the business',
154
+ routing: {
155
+ send: {
156
+ type: 'body',
157
+ property: 'address',
158
+ },
159
+ },
160
+ },
161
+ {
162
+ displayName: 'Description',
163
+ name: 'description',
164
+ type: 'string',
165
+ typeOptions: {
166
+ rows: 4,
167
+ },
168
+ default: '',
169
+ description: 'Description of the business',
170
+ routing: {
171
+ send: {
172
+ type: 'body',
173
+ property: 'description',
174
+ },
175
+ },
176
+ },
177
+ {
178
+ displayName: 'Email',
179
+ name: 'email',
180
+ type: 'string',
181
+ placeholder: 'name@email.com',
182
+ default: '',
183
+ description: 'Contact email of the business',
184
+ routing: {
185
+ send: {
186
+ type: 'body',
187
+ property: 'email',
188
+ },
189
+ },
190
+ },
191
+ ],
192
+ },
193
+ {
194
+ displayName: 'JID',
195
+ name: 'jid',
196
+ type: 'string',
197
+ required: true,
198
+ default: '',
199
+ description: 'WhatsApp JID of the catalog owner',
200
+ displayOptions: {
201
+ show: {
202
+ resource: ['business'],
203
+ operation: ['listCatalog'],
204
+ },
205
+ },
206
+ routing: {
207
+ send: {
208
+ type: 'body',
209
+ property: 'jid',
210
+ },
211
+ },
212
+ },
213
+ {
214
+ displayName: 'JID',
215
+ name: 'jid',
216
+ type: 'string',
217
+ required: true,
218
+ default: '',
219
+ description: 'WhatsApp JID of the catalog owner',
220
+ displayOptions: {
221
+ show: {
222
+ resource: ['business'],
223
+ operation: ['getProduct'],
224
+ },
225
+ },
226
+ routing: {
227
+ send: {
228
+ type: 'body',
229
+ property: 'jid',
230
+ },
231
+ },
232
+ },
233
+ {
234
+ displayName: 'Product ID',
235
+ name: 'id',
236
+ type: 'string',
237
+ required: true,
238
+ default: '',
239
+ description: 'Identifier of the catalog product',
240
+ displayOptions: {
241
+ show: {
242
+ resource: ['business'],
243
+ operation: ['getProduct'],
244
+ },
245
+ },
246
+ routing: {
247
+ send: {
248
+ type: 'body',
249
+ property: 'id',
250
+ },
251
+ },
252
+ },
253
+ {
254
+ displayName: 'Product ID',
255
+ name: 'id',
256
+ type: 'string',
257
+ required: true,
258
+ default: '',
259
+ description: 'Identifier of the catalog product',
260
+ displayOptions: {
261
+ show: {
262
+ resource: ['business'],
263
+ operation: ['deleteProduct', 'showProduct', 'hideProduct'],
264
+ },
265
+ },
266
+ routing: {
267
+ send: {
268
+ type: 'body',
269
+ property: 'id',
270
+ },
271
+ },
272
+ },
273
+ ];
274
+ //# sourceMappingURL=BusinessDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BusinessDescription.js","sourceRoot":"","sources":["../../../../nodes/Uazapi/descriptions/BusinessDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,mBAAmB,GAAsB;IAIrD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,UAAU,CAAC;aACtB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,gBAAgB;gBACtB,KAAK,EAAE,eAAe;gBACtB,MAAM,EAAE,0BAA0B;gBAClC,WAAW,EAAE,4CAA4C;gBACzD,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,MAAM;wBACd,GAAG,EAAE,0BAA0B;qBAC/B;iBACD;aACD;YACD;gBACC,IAAI,EAAE,gBAAgB;gBACtB,KAAK,EAAE,eAAe;gBACtB,MAAM,EAAE,yBAAyB;gBACjC,WAAW,EAAE,4CAA4C;gBACzD,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,0BAA0B;qBAC/B;iBACD;aACD;YACD;gBACC,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,YAAY;gBACnB,MAAM,EAAE,uBAAuB;gBAC/B,WAAW,EAAE,uDAAuD;gBACpE,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,MAAM;wBACd,GAAG,EAAE,wBAAwB;qBAC7B;iBACD;aACD;YACD;gBACC,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,YAAY;gBACnB,MAAM,EAAE,wBAAwB;gBAChC,WAAW,EAAE,sCAAsC;gBACnD,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,MAAM;wBACd,GAAG,EAAE,uBAAuB;qBAC5B;iBACD;aACD;YACD;gB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AE,aAAa,EAAE,aAAa,CAAC;aAC1D;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,IAAI;aACd;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const chatDescription: INodeProperties[];