n8n-nodes-repliz 1.0.1
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.
- package/README.md +153 -0
- package/dist/credentials/ReplizApi.credentials.d.ts +7 -0
- package/dist/credentials/ReplizApi.credentials.js +41 -0
- package/dist/credentials/ReplizApi.credentials.js.map +1 -0
- package/dist/nodes/Repliz/AccountDescription.d.ts +3 -0
- package/dist/nodes/Repliz/AccountDescription.js +442 -0
- package/dist/nodes/Repliz/AccountDescription.js.map +1 -0
- package/dist/nodes/Repliz/ChatDescription.d.ts +3 -0
- package/dist/nodes/Repliz/ChatDescription.js +359 -0
- package/dist/nodes/Repliz/ChatDescription.js.map +1 -0
- package/dist/nodes/Repliz/CommentDescription.d.ts +3 -0
- package/dist/nodes/Repliz/CommentDescription.js +187 -0
- package/dist/nodes/Repliz/CommentDescription.js.map +1 -0
- package/dist/nodes/Repliz/ContentDescription.d.ts +3 -0
- package/dist/nodes/Repliz/ContentDescription.js +323 -0
- package/dist/nodes/Repliz/ContentDescription.js.map +1 -0
- package/dist/nodes/Repliz/GenericFunctions.d.ts +3 -0
- package/dist/nodes/Repliz/GenericFunctions.js +62 -0
- package/dist/nodes/Repliz/GenericFunctions.js.map +1 -0
- package/dist/nodes/Repliz/LinkDescription.d.ts +3 -0
- package/dist/nodes/Repliz/LinkDescription.js +48 -0
- package/dist/nodes/Repliz/LinkDescription.js.map +1 -0
- package/dist/nodes/Repliz/Repliz.node.d.ts +5 -0
- package/dist/nodes/Repliz/Repliz.node.js +575 -0
- package/dist/nodes/Repliz/Repliz.node.js.map +1 -0
- package/dist/nodes/Repliz/ScheduleDescription.d.ts +3 -0
- package/dist/nodes/Repliz/ScheduleDescription.js +355 -0
- package/dist/nodes/Repliz/ScheduleDescription.js.map +1 -0
- package/dist/nodes/Repliz/ShopeeDescription.d.ts +3 -0
- package/dist/nodes/Repliz/ShopeeDescription.js +60 -0
- package/dist/nodes/Repliz/ShopeeDescription.js.map +1 -0
- package/dist/nodes/Repliz/TikTokDescription.d.ts +3 -0
- package/dist/nodes/Repliz/TikTokDescription.js +63 -0
- package/dist/nodes/Repliz/TikTokDescription.js.map +1 -0
- package/dist/nodes/Repliz/repliz.svg +4 -0
- package/package.json +36 -0
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.chatFields = exports.chatOperations = void 0;
|
|
4
|
+
exports.chatOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: [
|
|
13
|
+
'chat',
|
|
14
|
+
],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
options: [
|
|
18
|
+
{
|
|
19
|
+
name: 'Get Many',
|
|
20
|
+
value: 'getMany',
|
|
21
|
+
description: 'Retrieve a list of chats associated with your account',
|
|
22
|
+
action: 'Get many chats',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: 'Get',
|
|
26
|
+
value: 'get',
|
|
27
|
+
description: 'Retrieve detailed information of a specific chat',
|
|
28
|
+
action: 'Get a chat',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: 'Get Messages',
|
|
32
|
+
value: 'getMessages',
|
|
33
|
+
description: 'Retrieve messages from a specific chat',
|
|
34
|
+
action: 'Get messages in a chat',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: 'Send Message',
|
|
38
|
+
value: 'sendMessage',
|
|
39
|
+
description: 'Send a message to a specific chat',
|
|
40
|
+
action: 'Send message in a chat',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'Mark Read',
|
|
44
|
+
value: 'markRead',
|
|
45
|
+
description: 'Mark a chat as read',
|
|
46
|
+
action: 'Mark chat as read',
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
default: 'getMany',
|
|
50
|
+
},
|
|
51
|
+
];
|
|
52
|
+
exports.chatFields = [
|
|
53
|
+
// ----------------------------------
|
|
54
|
+
// Get Many
|
|
55
|
+
// ----------------------------------
|
|
56
|
+
{
|
|
57
|
+
displayName: 'Return All',
|
|
58
|
+
name: 'returnAll',
|
|
59
|
+
type: 'boolean',
|
|
60
|
+
displayOptions: {
|
|
61
|
+
show: {
|
|
62
|
+
resource: ['chat'],
|
|
63
|
+
operation: ['getMany', 'getMessages'],
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
default: false,
|
|
67
|
+
description: 'Whether to return all results or only up to a limit',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
displayName: 'Limit',
|
|
71
|
+
name: 'limit',
|
|
72
|
+
type: 'number',
|
|
73
|
+
displayOptions: {
|
|
74
|
+
show: {
|
|
75
|
+
resource: ['chat'],
|
|
76
|
+
operation: ['getMany', 'getMessages'],
|
|
77
|
+
returnAll: [false],
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
typeOptions: {
|
|
81
|
+
minValue: 1,
|
|
82
|
+
maxValue: 100,
|
|
83
|
+
},
|
|
84
|
+
default: 20,
|
|
85
|
+
description: 'Max number of results to return',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
displayName: 'Filters',
|
|
89
|
+
name: 'filters',
|
|
90
|
+
type: 'collection',
|
|
91
|
+
placeholder: 'Add Filter',
|
|
92
|
+
default: {},
|
|
93
|
+
displayOptions: {
|
|
94
|
+
show: {
|
|
95
|
+
resource: ['chat'],
|
|
96
|
+
operation: ['getMany'],
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
options: [
|
|
100
|
+
{
|
|
101
|
+
displayName: 'Status',
|
|
102
|
+
name: 'status',
|
|
103
|
+
type: 'options',
|
|
104
|
+
options: [
|
|
105
|
+
{ name: 'Unread', value: 'unread' },
|
|
106
|
+
{ name: 'Unreplied', value: 'unreplied' },
|
|
107
|
+
],
|
|
108
|
+
default: 'unread',
|
|
109
|
+
description: 'Filter chats by status',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
displayName: 'Account IDs',
|
|
113
|
+
name: 'accountIds',
|
|
114
|
+
type: 'string',
|
|
115
|
+
default: '',
|
|
116
|
+
description: 'Comma-separated list of account IDs to filter chats',
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
displayName: 'Search',
|
|
120
|
+
name: 'search',
|
|
121
|
+
type: 'string',
|
|
122
|
+
default: '',
|
|
123
|
+
description: 'Search term to filter chats by participant name',
|
|
124
|
+
},
|
|
125
|
+
],
|
|
126
|
+
},
|
|
127
|
+
// ----------------------------------
|
|
128
|
+
// Chat ID
|
|
129
|
+
// ----------------------------------
|
|
130
|
+
{
|
|
131
|
+
displayName: 'Chat ID',
|
|
132
|
+
name: 'chatId',
|
|
133
|
+
type: 'string',
|
|
134
|
+
required: true,
|
|
135
|
+
displayOptions: {
|
|
136
|
+
show: {
|
|
137
|
+
resource: ['chat'],
|
|
138
|
+
operation: [
|
|
139
|
+
'get',
|
|
140
|
+
'getMessages',
|
|
141
|
+
'sendMessage',
|
|
142
|
+
'markRead',
|
|
143
|
+
],
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
default: '',
|
|
147
|
+
description: 'The unique identifier of the chat',
|
|
148
|
+
},
|
|
149
|
+
// ----------------------------------
|
|
150
|
+
// Send Message Properties
|
|
151
|
+
// ----------------------------------
|
|
152
|
+
{
|
|
153
|
+
displayName: 'Message Type',
|
|
154
|
+
name: 'messageType',
|
|
155
|
+
type: 'options',
|
|
156
|
+
required: true,
|
|
157
|
+
displayOptions: {
|
|
158
|
+
show: {
|
|
159
|
+
resource: ['chat'],
|
|
160
|
+
operation: ['sendMessage'],
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
options: [
|
|
164
|
+
{ name: 'Text', value: 'text' },
|
|
165
|
+
{ name: 'Image', value: 'image' },
|
|
166
|
+
{ name: 'Video', value: 'video' },
|
|
167
|
+
{ name: 'Audio', value: 'audio' },
|
|
168
|
+
{ name: 'Document', value: 'document' },
|
|
169
|
+
{ name: 'Button', value: 'button' },
|
|
170
|
+
],
|
|
171
|
+
default: 'text',
|
|
172
|
+
description: 'The type of message to send',
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
displayName: 'Text',
|
|
176
|
+
name: 'text',
|
|
177
|
+
type: 'string',
|
|
178
|
+
required: true,
|
|
179
|
+
displayOptions: {
|
|
180
|
+
show: {
|
|
181
|
+
resource: ['chat'],
|
|
182
|
+
operation: ['sendMessage'],
|
|
183
|
+
messageType: ['text', 'image', 'video', 'audio', 'document'],
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
default: '',
|
|
187
|
+
description: 'The text content of the message',
|
|
188
|
+
},
|
|
189
|
+
// Media properties (Image/Video/Audio/Document)
|
|
190
|
+
{
|
|
191
|
+
displayName: 'Media URL',
|
|
192
|
+
name: 'mediaUrl',
|
|
193
|
+
type: 'string',
|
|
194
|
+
required: true,
|
|
195
|
+
displayOptions: {
|
|
196
|
+
show: {
|
|
197
|
+
resource: ['chat'],
|
|
198
|
+
operation: ['sendMessage'],
|
|
199
|
+
messageType: ['image', 'video', 'audio', 'document'],
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
default: '',
|
|
203
|
+
description: 'The URL of the media file',
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
displayName: 'Mime Type',
|
|
207
|
+
name: 'mimeType',
|
|
208
|
+
type: 'string',
|
|
209
|
+
required: true,
|
|
210
|
+
displayOptions: {
|
|
211
|
+
show: {
|
|
212
|
+
resource: ['chat'],
|
|
213
|
+
operation: ['sendMessage'],
|
|
214
|
+
messageType: ['image', 'video', 'audio', 'document'],
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
placeholder: 'e.g. image/jpeg, video/mp4, audio/mp3, application/pdf',
|
|
218
|
+
default: '',
|
|
219
|
+
description: 'The mimetype of the media file',
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
displayName: 'Thumbnail URL',
|
|
223
|
+
name: 'thumbnailUrl',
|
|
224
|
+
type: 'string',
|
|
225
|
+
displayOptions: {
|
|
226
|
+
show: {
|
|
227
|
+
resource: ['chat'],
|
|
228
|
+
operation: ['sendMessage'],
|
|
229
|
+
messageType: ['image', 'video'],
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
default: '',
|
|
233
|
+
description: 'The URL of the thumbnail image',
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
displayName: 'Duration (seconds)',
|
|
237
|
+
name: 'duration',
|
|
238
|
+
type: 'number',
|
|
239
|
+
displayOptions: {
|
|
240
|
+
show: {
|
|
241
|
+
resource: ['chat'],
|
|
242
|
+
operation: ['sendMessage'],
|
|
243
|
+
messageType: ['video', 'audio'],
|
|
244
|
+
},
|
|
245
|
+
},
|
|
246
|
+
default: 0,
|
|
247
|
+
description: 'The duration of the video or audio in seconds',
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
displayName: 'Document Name',
|
|
251
|
+
name: 'documentName',
|
|
252
|
+
type: 'string',
|
|
253
|
+
required: true,
|
|
254
|
+
displayOptions: {
|
|
255
|
+
show: {
|
|
256
|
+
resource: ['chat'],
|
|
257
|
+
operation: ['sendMessage'],
|
|
258
|
+
messageType: ['document'],
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
default: '',
|
|
262
|
+
description: 'The filename of the document',
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
displayName: 'Document Size (bytes)',
|
|
266
|
+
name: 'documentSize',
|
|
267
|
+
type: 'number',
|
|
268
|
+
displayOptions: {
|
|
269
|
+
show: {
|
|
270
|
+
resource: ['chat'],
|
|
271
|
+
operation: ['sendMessage'],
|
|
272
|
+
messageType: ['document'],
|
|
273
|
+
},
|
|
274
|
+
},
|
|
275
|
+
default: 0,
|
|
276
|
+
description: 'The size of the document in bytes',
|
|
277
|
+
},
|
|
278
|
+
// Button properties
|
|
279
|
+
{
|
|
280
|
+
displayName: 'Button Text',
|
|
281
|
+
name: 'buttonText',
|
|
282
|
+
type: 'string',
|
|
283
|
+
required: true,
|
|
284
|
+
displayOptions: {
|
|
285
|
+
show: {
|
|
286
|
+
resource: ['chat'],
|
|
287
|
+
operation: ['sendMessage'],
|
|
288
|
+
messageType: ['button'],
|
|
289
|
+
},
|
|
290
|
+
},
|
|
291
|
+
default: '',
|
|
292
|
+
description: 'The main text that goes along with the button',
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
displayName: 'Button Image URL',
|
|
296
|
+
name: 'buttonImageUrl',
|
|
297
|
+
type: 'string',
|
|
298
|
+
displayOptions: {
|
|
299
|
+
show: {
|
|
300
|
+
resource: ['chat'],
|
|
301
|
+
operation: ['sendMessage'],
|
|
302
|
+
messageType: ['button'],
|
|
303
|
+
},
|
|
304
|
+
},
|
|
305
|
+
default: '',
|
|
306
|
+
description: 'Optional image URL for the button message',
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
displayName: 'Buttons',
|
|
310
|
+
name: 'buttons',
|
|
311
|
+
type: 'fixedCollection',
|
|
312
|
+
typeOptions: {
|
|
313
|
+
multipleValues: true,
|
|
314
|
+
},
|
|
315
|
+
displayOptions: {
|
|
316
|
+
show: {
|
|
317
|
+
resource: ['chat'],
|
|
318
|
+
operation: ['sendMessage'],
|
|
319
|
+
messageType: ['button'],
|
|
320
|
+
},
|
|
321
|
+
},
|
|
322
|
+
placeholder: 'Add Button',
|
|
323
|
+
default: {},
|
|
324
|
+
options: [
|
|
325
|
+
{
|
|
326
|
+
name: 'buttonItems',
|
|
327
|
+
displayName: 'Button Item',
|
|
328
|
+
values: [
|
|
329
|
+
{
|
|
330
|
+
displayName: 'Type',
|
|
331
|
+
name: 'type',
|
|
332
|
+
type: 'options',
|
|
333
|
+
options: [
|
|
334
|
+
{ name: 'Web URL', value: 'web_url' },
|
|
335
|
+
],
|
|
336
|
+
default: 'web_url',
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
displayName: 'Title',
|
|
340
|
+
name: 'title',
|
|
341
|
+
type: 'string',
|
|
342
|
+
required: true,
|
|
343
|
+
default: '',
|
|
344
|
+
description: 'The display label of the button',
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
displayName: 'URL',
|
|
348
|
+
name: 'url',
|
|
349
|
+
type: 'string',
|
|
350
|
+
required: true,
|
|
351
|
+
default: '',
|
|
352
|
+
description: 'The link URL the button redirects to',
|
|
353
|
+
},
|
|
354
|
+
],
|
|
355
|
+
},
|
|
356
|
+
],
|
|
357
|
+
},
|
|
358
|
+
];
|
|
359
|
+
//# sourceMappingURL=ChatDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatDescription.js","sourceRoot":"","sources":["../../../nodes/Repliz/ChatDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,cAAc,GAAsB;IAChD;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;oBACT,MAAM;iBACN;aACD;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,uDAAuD;gBACpE,MAAM,EAAE,gBAAgB;aACxB;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,kDAAkD;gBAC/D,MAAM,EAAE,YAAY;aACpB;YACD;gBACC,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,aAAa;gBACpB,WAAW,EAAE,wCAAwC;gBACrD,MAAM,EAAE,wBAAwB;aAChC;YACD;gBACC,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,aAAa;gBACpB,W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BAC1B,MAAM,EAAE;oBACP;wBACC,WAAW,EAAE,MAAM;wBACnB,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE;4BACR,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;yBACrC;wBACD,OAAO,EAAE,SAAS;qBAClB;oBACD;wBACC,WAAW,EAAE,OAAO;wBACpB,IAAI,EAAE,OAAO;wBACb,IAAI,EAAE,QAAQ;wBACd,QAAQ,EAAE,IAAI;wBACd,OAAO,EAAE,EAAE;wBACX,WAAW,EAAE,iCAAiC;qBAC9C;oBACD;wBACC,WAAW,EAAE,KAAK;wBAClB,IAAI,EAAE,KAAK;wBACX,IAAI,EAAE,QAAQ;wBACd,QAAQ,EAAE,IAAI;wBACd,OAAO,EAAE,EAAE;wBACX,WAAW,EAAE,sCAAsC;qBACnD;iBACD;aACD;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.commentFields = exports.commentOperations = void 0;
|
|
4
|
+
exports.commentOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: [
|
|
13
|
+
'comment',
|
|
14
|
+
],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
options: [
|
|
18
|
+
{
|
|
19
|
+
name: 'Get Many',
|
|
20
|
+
value: 'getMany',
|
|
21
|
+
description: 'Retrieve a list of comments stored in the system',
|
|
22
|
+
action: 'Get many comments',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: 'Get',
|
|
26
|
+
value: 'get',
|
|
27
|
+
description: 'Retrieve detailed information of a specific stored comment',
|
|
28
|
+
action: 'Get a comment',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: 'Reply',
|
|
32
|
+
value: 'reply',
|
|
33
|
+
description: 'Send a reply to a stored comment',
|
|
34
|
+
action: 'Reply to a comment',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: 'Update Status',
|
|
38
|
+
value: 'updateStatus',
|
|
39
|
+
description: 'Update the status of a stored comment',
|
|
40
|
+
action: 'Update status of a comment',
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
default: 'getMany',
|
|
44
|
+
},
|
|
45
|
+
];
|
|
46
|
+
exports.commentFields = [
|
|
47
|
+
// ----------------------------------
|
|
48
|
+
// Get Many
|
|
49
|
+
// ----------------------------------
|
|
50
|
+
{
|
|
51
|
+
displayName: 'Return All',
|
|
52
|
+
name: 'returnAll',
|
|
53
|
+
type: 'boolean',
|
|
54
|
+
displayOptions: {
|
|
55
|
+
show: {
|
|
56
|
+
resource: ['comment'],
|
|
57
|
+
operation: ['getMany'],
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
default: false,
|
|
61
|
+
description: 'Whether to return all results or only up to a limit',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
displayName: 'Limit',
|
|
65
|
+
name: 'limit',
|
|
66
|
+
type: 'number',
|
|
67
|
+
displayOptions: {
|
|
68
|
+
show: {
|
|
69
|
+
resource: ['comment'],
|
|
70
|
+
operation: ['getMany'],
|
|
71
|
+
returnAll: [false],
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
typeOptions: {
|
|
75
|
+
minValue: 1,
|
|
76
|
+
maxValue: 100,
|
|
77
|
+
},
|
|
78
|
+
default: 20,
|
|
79
|
+
description: 'Max number of results to return',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
displayName: 'Filters',
|
|
83
|
+
name: 'filters',
|
|
84
|
+
type: 'collection',
|
|
85
|
+
placeholder: 'Add Filter',
|
|
86
|
+
default: {},
|
|
87
|
+
displayOptions: {
|
|
88
|
+
show: {
|
|
89
|
+
resource: ['comment'],
|
|
90
|
+
operation: ['getMany'],
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
options: [
|
|
94
|
+
{
|
|
95
|
+
displayName: 'Status',
|
|
96
|
+
name: 'status',
|
|
97
|
+
type: 'options',
|
|
98
|
+
options: [
|
|
99
|
+
{ name: 'Pending', value: 'pending' },
|
|
100
|
+
{ name: 'Resolved', value: 'resolved' },
|
|
101
|
+
{ name: 'Ignored', value: 'ignored' },
|
|
102
|
+
],
|
|
103
|
+
default: 'pending',
|
|
104
|
+
description: 'Filter comments by status',
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
displayName: 'Account IDs',
|
|
108
|
+
name: 'accountIds',
|
|
109
|
+
type: 'string',
|
|
110
|
+
default: '',
|
|
111
|
+
description: 'Comma-separated list of account IDs to filter comments',
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
displayName: 'Search',
|
|
115
|
+
name: 'search',
|
|
116
|
+
type: 'string',
|
|
117
|
+
default: '',
|
|
118
|
+
description: 'Search term to filter comments by content',
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
},
|
|
122
|
+
// ----------------------------------
|
|
123
|
+
// Comment ID
|
|
124
|
+
// ----------------------------------
|
|
125
|
+
{
|
|
126
|
+
displayName: 'Comment ID',
|
|
127
|
+
name: 'commentId',
|
|
128
|
+
type: 'string',
|
|
129
|
+
required: true,
|
|
130
|
+
displayOptions: {
|
|
131
|
+
show: {
|
|
132
|
+
resource: ['comment'],
|
|
133
|
+
operation: [
|
|
134
|
+
'get',
|
|
135
|
+
'reply',
|
|
136
|
+
'updateStatus',
|
|
137
|
+
],
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
default: '',
|
|
141
|
+
description: 'The unique identifier of the comment',
|
|
142
|
+
},
|
|
143
|
+
// ----------------------------------
|
|
144
|
+
// Reply Parameters
|
|
145
|
+
// ----------------------------------
|
|
146
|
+
{
|
|
147
|
+
displayName: 'Text',
|
|
148
|
+
name: 'text',
|
|
149
|
+
type: 'string',
|
|
150
|
+
required: true,
|
|
151
|
+
displayOptions: {
|
|
152
|
+
show: {
|
|
153
|
+
resource: ['comment'],
|
|
154
|
+
operation: [
|
|
155
|
+
'reply',
|
|
156
|
+
],
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
default: '',
|
|
160
|
+
description: 'The response message text to post',
|
|
161
|
+
},
|
|
162
|
+
// ----------------------------------
|
|
163
|
+
// Update Status Parameters
|
|
164
|
+
// ----------------------------------
|
|
165
|
+
{
|
|
166
|
+
displayName: 'Status',
|
|
167
|
+
name: 'status',
|
|
168
|
+
type: 'options',
|
|
169
|
+
required: true,
|
|
170
|
+
displayOptions: {
|
|
171
|
+
show: {
|
|
172
|
+
resource: ['comment'],
|
|
173
|
+
operation: [
|
|
174
|
+
'updateStatus',
|
|
175
|
+
],
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
options: [
|
|
179
|
+
{ name: 'Pending', value: 'pending' },
|
|
180
|
+
{ name: 'Resolved', value: 'resolved' },
|
|
181
|
+
{ name: 'Ignored', value: 'ignored' },
|
|
182
|
+
],
|
|
183
|
+
default: 'pending',
|
|
184
|
+
description: 'The updated status of the comment',
|
|
185
|
+
},
|
|
186
|
+
];
|
|
187
|
+
//# sourceMappingURL=CommentDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommentDescription.js","sourceRoot":"","sources":["../../../nodes/Repliz/CommentDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAsB;IACnD;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;oBACT,SAAS;iBACT;aACD;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAA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