n8n-nodes-yourang 0.2.0 → 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.
- package/dist/nodes/Yourang/Yourang.node.js +22 -342
- package/dist/nodes/Yourang/Yourang.node.js.map +1 -1
- package/dist/nodes/Yourang/YourangDescription.js +12 -928
- package/dist/nodes/Yourang/YourangDescription.js.map +1 -1
- package/dist/nodes/Yourang/descriptions/action.description.d.ts +3 -0
- package/dist/nodes/Yourang/descriptions/action.description.js +355 -0
- package/dist/nodes/Yourang/descriptions/action.description.js.map +1 -0
- package/dist/nodes/Yourang/descriptions/callHistory.description.d.ts +3 -0
- package/dist/nodes/Yourang/descriptions/callHistory.description.js +205 -0
- package/dist/nodes/Yourang/descriptions/callHistory.description.js.map +1 -0
- package/dist/nodes/Yourang/descriptions/contact.description.d.ts +3 -0
- package/dist/nodes/Yourang/descriptions/contact.description.js +341 -0
- package/dist/nodes/Yourang/descriptions/contact.description.js.map +1 -0
- package/dist/nodes/Yourang/descriptions/event.description.d.ts +3 -0
- package/dist/nodes/Yourang/descriptions/event.description.js +283 -0
- package/dist/nodes/Yourang/descriptions/event.description.js.map +1 -0
- package/dist/nodes/Yourang/resources/ActionHandler.d.ts +12 -0
- package/dist/nodes/Yourang/resources/ActionHandler.js +107 -0
- package/dist/nodes/Yourang/resources/ActionHandler.js.map +1 -0
- package/dist/nodes/Yourang/resources/BaseResourceHandler.d.ts +26 -0
- package/dist/nodes/Yourang/resources/BaseResourceHandler.js +74 -0
- package/dist/nodes/Yourang/resources/BaseResourceHandler.js.map +1 -0
- package/dist/nodes/Yourang/resources/CallHistoryHandler.d.ts +8 -0
- package/dist/nodes/Yourang/resources/CallHistoryHandler.js +61 -0
- package/dist/nodes/Yourang/resources/CallHistoryHandler.js.map +1 -0
- package/dist/nodes/Yourang/resources/ContactHandler.d.ts +13 -0
- package/dist/nodes/Yourang/resources/ContactHandler.js +144 -0
- package/dist/nodes/Yourang/resources/ContactHandler.js.map +1 -0
- package/dist/nodes/Yourang/resources/EventHandler.d.ts +10 -0
- package/dist/nodes/Yourang/resources/EventHandler.js +94 -0
- package/dist/nodes/Yourang/resources/EventHandler.js.map +1 -0
- package/dist/package.json +16 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +16 -2
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.contactFields = exports.contactOperations = void 0;
|
|
4
|
+
exports.contactOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['contact'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Create',
|
|
18
|
+
value: 'create',
|
|
19
|
+
description: 'Create a new contact',
|
|
20
|
+
action: 'Create a contact',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Delete',
|
|
24
|
+
value: 'delete',
|
|
25
|
+
description: 'Delete a contact',
|
|
26
|
+
action: 'Delete a contact',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Delete by Phone',
|
|
30
|
+
value: 'deleteByPhone',
|
|
31
|
+
description: 'Delete a contact by phone number',
|
|
32
|
+
action: 'Delete contact by phone',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Get',
|
|
36
|
+
value: 'get',
|
|
37
|
+
description: 'Get details of a specific contact',
|
|
38
|
+
action: 'Get a contact',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'Get by Phone',
|
|
42
|
+
value: 'getByPhone',
|
|
43
|
+
description: 'Get a contact by phone number',
|
|
44
|
+
action: 'Get contact by phone',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'Get Many',
|
|
48
|
+
value: 'getAll',
|
|
49
|
+
description: 'Get many contacts',
|
|
50
|
+
action: 'Get many contacts',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'Update',
|
|
54
|
+
value: 'update',
|
|
55
|
+
description: 'Update an existing contact',
|
|
56
|
+
action: 'Update a contact',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'Update by Phone',
|
|
60
|
+
value: 'updateByPhone',
|
|
61
|
+
description: 'Update a contact by phone number',
|
|
62
|
+
action: 'Update contact by phone',
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
default: 'getAll',
|
|
66
|
+
},
|
|
67
|
+
];
|
|
68
|
+
exports.contactFields = [
|
|
69
|
+
{
|
|
70
|
+
displayName: 'Contact ID',
|
|
71
|
+
name: 'contactId',
|
|
72
|
+
type: 'string',
|
|
73
|
+
displayOptions: {
|
|
74
|
+
show: {
|
|
75
|
+
resource: ['contact'],
|
|
76
|
+
operation: ['get', 'update', 'delete'],
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
default: '',
|
|
80
|
+
required: true,
|
|
81
|
+
description: 'The ID of the contact',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
displayName: 'Phone Number',
|
|
85
|
+
name: 'phoneNumberLookup',
|
|
86
|
+
type: 'string',
|
|
87
|
+
displayOptions: {
|
|
88
|
+
show: {
|
|
89
|
+
resource: ['contact'],
|
|
90
|
+
operation: ['getByPhone', 'updateByPhone', 'deleteByPhone'],
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
default: '',
|
|
94
|
+
required: true,
|
|
95
|
+
description: 'The phone number of the contact in E.164 format (e.g., +1234567890)',
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
displayName: 'First Name',
|
|
99
|
+
name: 'first_name',
|
|
100
|
+
type: 'string',
|
|
101
|
+
displayOptions: {
|
|
102
|
+
show: {
|
|
103
|
+
resource: ['contact'],
|
|
104
|
+
operation: ['create'],
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
default: '',
|
|
108
|
+
required: true,
|
|
109
|
+
description: 'Contact\'s first name',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
displayName: 'First Name',
|
|
113
|
+
name: 'first_name',
|
|
114
|
+
type: 'string',
|
|
115
|
+
displayOptions: {
|
|
116
|
+
show: {
|
|
117
|
+
resource: ['contact'],
|
|
118
|
+
operation: ['update', 'updateByPhone'],
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
default: '',
|
|
122
|
+
description: 'Contact\'s first name (optional)',
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
displayName: 'Phone Number',
|
|
126
|
+
name: 'phone_number',
|
|
127
|
+
type: 'string',
|
|
128
|
+
displayOptions: {
|
|
129
|
+
show: {
|
|
130
|
+
resource: ['contact'],
|
|
131
|
+
operation: ['create'],
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
default: '',
|
|
135
|
+
required: true,
|
|
136
|
+
description: 'Contact\'s phone number in E.164 format (e.g., +1234567890)',
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
displayName: 'Phone Number',
|
|
140
|
+
name: 'phone_number',
|
|
141
|
+
type: 'string',
|
|
142
|
+
displayOptions: {
|
|
143
|
+
show: {
|
|
144
|
+
resource: ['contact'],
|
|
145
|
+
operation: ['update', 'updateByPhone'],
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
default: '',
|
|
149
|
+
description: 'New phone number in E.164 format (optional, leave empty to keep current)',
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
displayName: 'Last Name',
|
|
153
|
+
name: 'last_name',
|
|
154
|
+
type: 'string',
|
|
155
|
+
displayOptions: {
|
|
156
|
+
show: {
|
|
157
|
+
resource: ['contact'],
|
|
158
|
+
operation: ['create', 'update', 'updateByPhone'],
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
default: '',
|
|
162
|
+
description: 'Contact\'s last name (optional)',
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
displayName: 'Email',
|
|
166
|
+
name: 'email',
|
|
167
|
+
type: 'string',
|
|
168
|
+
placeholder: 'name@email.com',
|
|
169
|
+
displayOptions: {
|
|
170
|
+
show: {
|
|
171
|
+
resource: ['contact'],
|
|
172
|
+
operation: ['create', 'update', 'updateByPhone'],
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
default: '',
|
|
176
|
+
description: 'Contact\'s email address (optional)',
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
displayName: 'Address',
|
|
180
|
+
name: 'address',
|
|
181
|
+
type: 'string',
|
|
182
|
+
displayOptions: {
|
|
183
|
+
show: {
|
|
184
|
+
resource: ['contact'],
|
|
185
|
+
operation: ['create', 'update', 'updateByPhone'],
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
default: '',
|
|
189
|
+
description: 'Contact\'s address (optional)',
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
displayName: 'Return All',
|
|
193
|
+
name: 'returnAll',
|
|
194
|
+
type: 'boolean',
|
|
195
|
+
displayOptions: {
|
|
196
|
+
show: {
|
|
197
|
+
resource: ['contact'],
|
|
198
|
+
operation: ['getAll'],
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
default: false,
|
|
202
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
displayName: 'Limit',
|
|
206
|
+
name: 'limit',
|
|
207
|
+
type: 'number',
|
|
208
|
+
displayOptions: {
|
|
209
|
+
show: {
|
|
210
|
+
resource: ['contact'],
|
|
211
|
+
operation: ['getAll'],
|
|
212
|
+
returnAll: [false],
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
typeOptions: {
|
|
216
|
+
minValue: 1,
|
|
217
|
+
},
|
|
218
|
+
default: 50,
|
|
219
|
+
description: 'Max number of results to return',
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
displayName: 'Search',
|
|
223
|
+
name: 'search',
|
|
224
|
+
type: 'collection',
|
|
225
|
+
placeholder: 'Add Search Field',
|
|
226
|
+
displayOptions: {
|
|
227
|
+
show: {
|
|
228
|
+
resource: ['contact'],
|
|
229
|
+
operation: ['getAll'],
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
default: {},
|
|
233
|
+
options: [
|
|
234
|
+
{
|
|
235
|
+
displayName: 'Combine',
|
|
236
|
+
name: 'combineOperation',
|
|
237
|
+
type: 'options',
|
|
238
|
+
options: [
|
|
239
|
+
{
|
|
240
|
+
name: 'AND',
|
|
241
|
+
value: '&',
|
|
242
|
+
description: 'All conditions must match',
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
name: 'OR',
|
|
246
|
+
value: '|',
|
|
247
|
+
description: 'At least one condition must match',
|
|
248
|
+
},
|
|
249
|
+
],
|
|
250
|
+
default: '&',
|
|
251
|
+
description: 'How to combine multiple search conditions',
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
displayName: 'Email',
|
|
255
|
+
name: 'email',
|
|
256
|
+
type: 'string',
|
|
257
|
+
placeholder: 'name@email.com',
|
|
258
|
+
default: '',
|
|
259
|
+
description: 'Filter by email address',
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
displayName: 'First Name',
|
|
263
|
+
name: 'first_name',
|
|
264
|
+
type: 'string',
|
|
265
|
+
default: '',
|
|
266
|
+
description: 'Filter by first name',
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
displayName: 'Last Name',
|
|
270
|
+
name: 'last_name',
|
|
271
|
+
type: 'string',
|
|
272
|
+
default: '',
|
|
273
|
+
description: 'Filter by last name',
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
displayName: 'Phone Number',
|
|
277
|
+
name: 'phone_number',
|
|
278
|
+
type: 'string',
|
|
279
|
+
default: '',
|
|
280
|
+
description: 'Filter by phone number',
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
displayName: 'Sort',
|
|
284
|
+
name: 'sort',
|
|
285
|
+
type: 'options',
|
|
286
|
+
options: [
|
|
287
|
+
{
|
|
288
|
+
name: 'Created At (Ascending)',
|
|
289
|
+
value: 'created_at',
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
name: 'Created At (Descending)',
|
|
293
|
+
value: '-created_at',
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
name: 'Email (Ascending)',
|
|
297
|
+
value: 'email',
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
name: 'Email (Descending)',
|
|
301
|
+
value: '-email',
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
name: 'First Name (Ascending)',
|
|
305
|
+
value: 'first_name',
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
name: 'First Name (Descending)',
|
|
309
|
+
value: '-first_name',
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
name: 'Last Name (Ascending)',
|
|
313
|
+
value: 'last_name',
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
name: 'Last Name (Descending)',
|
|
317
|
+
value: '-last_name',
|
|
318
|
+
},
|
|
319
|
+
],
|
|
320
|
+
default: '-created_at',
|
|
321
|
+
description: 'Sort field and order',
|
|
322
|
+
},
|
|
323
|
+
],
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
displayName: 'Advanced Filter Query',
|
|
327
|
+
name: 'advancedFilter',
|
|
328
|
+
type: 'string',
|
|
329
|
+
displayOptions: {
|
|
330
|
+
show: {
|
|
331
|
+
resource: ['contact'],
|
|
332
|
+
operation: ['getAll'],
|
|
333
|
+
},
|
|
334
|
+
},
|
|
335
|
+
default: '',
|
|
336
|
+
placeholder: 'first_name:John|last_name:Doe&email:test@test.com',
|
|
337
|
+
description: 'Advanced filter query with OR (|) and AND (&) operators. Overrides simple filters if provided.',
|
|
338
|
+
hint: 'Format: field:value|field:value&field:value',
|
|
339
|
+
},
|
|
340
|
+
];
|
|
341
|
+
//# sourceMappingURL=contact.description.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact.description.js","sourceRoot":"","sources":["../../../../nodes/Yourang/descriptions/contact.description.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,CAAC,SAAS,CAAC;aACrB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,sBAAsB;gBACnC,MAAM,EAAE,kBAAkB;aAC1B;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,kBAAkB;gBAC/B,MAAM,EAAE,kBAAkB;aAC1B;YACD;gBACC,IAAI,EAAE,iBAAiB;gBACvB,KAAK,EAAE,eAAe;gBACtB,WAAW,EAAE,kCAAkC;gBAC/C,MAAM,EAAE,yBAAyB;aACjC;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,mCAAmC;gBAChD,MAAM,EAAE,eAAe;aACvB;YACD;gBACC,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,YAAY;gBACnB,WAAW,EAAE,+BAA+B;gBAC5C,MAAM,EAAE,sBAAsB;aAC9B;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,mBAAmB;gBAChC,MAAM,EAAE,mBAAmB;aAC3B;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,4BAA4B;gBACzC,MAAM,EAAE,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EAAE,YAAY;qBACnB;oBACD;wBACC,IAAI,EAAE,yBAAyB;wBAC/B,KAAK,EAAE,aAAa;qBACpB;oBACD;wBACC,IAAI,EAAE,uBAAuB;wBAC7B,KAAK,EAAE,WAAW;qBAClB;oBACD;wBACC,IAAI,EAAE,wBAAwB;wBAC9B,KAAK,EAAE,YAAY;qBACnB;iBACD;gBACD,OAAO,EAAE,aAAa;gBACtB,WAAW,EAAE,sBAAsB;aACnC;SACD;KACD;IACD;QACC,WAAW,EAAE,uBAAuB;QACpC,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,mDAAmD;QAChE,WAAW,EAAE,gGAAgG;QAC7G,IAAI,EAAE,6CAA6C;KACnD;CACD,CAAC"}
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.eventFields = exports.eventOperations = void 0;
|
|
4
|
+
exports.eventOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['event'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Delete',
|
|
18
|
+
value: 'delete',
|
|
19
|
+
description: 'Delete an event',
|
|
20
|
+
action: 'Delete an event',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Get',
|
|
24
|
+
value: 'get',
|
|
25
|
+
description: 'Get details of a specific event',
|
|
26
|
+
action: 'Get an event',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Get by Date',
|
|
30
|
+
value: 'getByDate',
|
|
31
|
+
description: 'Get events for a specific date',
|
|
32
|
+
action: 'Get events by date',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Get Many',
|
|
36
|
+
value: 'getAll',
|
|
37
|
+
description: 'Get events grouped by date',
|
|
38
|
+
action: 'Get many events',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'Update',
|
|
42
|
+
value: 'update',
|
|
43
|
+
description: 'Update an existing event',
|
|
44
|
+
action: 'Update an event',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'Update Status',
|
|
48
|
+
value: 'updateStatus',
|
|
49
|
+
description: 'Approve or reject an event',
|
|
50
|
+
action: 'Update event status',
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
default: 'getAll',
|
|
54
|
+
},
|
|
55
|
+
];
|
|
56
|
+
exports.eventFields = [
|
|
57
|
+
{
|
|
58
|
+
displayName: 'Event ID',
|
|
59
|
+
name: 'eventId',
|
|
60
|
+
type: 'string',
|
|
61
|
+
displayOptions: {
|
|
62
|
+
show: {
|
|
63
|
+
resource: ['event'],
|
|
64
|
+
operation: ['get', 'update', 'updateStatus', 'delete'],
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
default: '',
|
|
68
|
+
required: true,
|
|
69
|
+
description: 'The ID of the event',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
displayName: 'Target Date',
|
|
73
|
+
name: 'targetDate',
|
|
74
|
+
type: 'dateTime',
|
|
75
|
+
displayOptions: {
|
|
76
|
+
show: {
|
|
77
|
+
resource: ['event'],
|
|
78
|
+
operation: ['getByDate'],
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
default: '',
|
|
82
|
+
required: true,
|
|
83
|
+
description: 'Target date to get events for (YYYY-MM-DD format)',
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
displayName: 'Start Date',
|
|
87
|
+
name: 'startDate',
|
|
88
|
+
type: 'dateTime',
|
|
89
|
+
displayOptions: {
|
|
90
|
+
show: {
|
|
91
|
+
resource: ['event'],
|
|
92
|
+
operation: ['getAll'],
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
default: '',
|
|
96
|
+
description: 'Start date for event range (YYYY-MM-DD)',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
displayName: 'End Date',
|
|
100
|
+
name: 'endDate',
|
|
101
|
+
type: 'dateTime',
|
|
102
|
+
displayOptions: {
|
|
103
|
+
show: {
|
|
104
|
+
resource: ['event'],
|
|
105
|
+
operation: ['getAll'],
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
default: '',
|
|
109
|
+
description: 'End date for event range (YYYY-MM-DD)',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
displayName: 'Events Per Day',
|
|
113
|
+
name: 'eventsPerDay',
|
|
114
|
+
type: 'number',
|
|
115
|
+
displayOptions: {
|
|
116
|
+
show: {
|
|
117
|
+
resource: ['event'],
|
|
118
|
+
operation: ['getAll'],
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
default: 50,
|
|
122
|
+
description: 'Maximum number of events to show per day',
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
displayName: 'Return All',
|
|
126
|
+
name: 'returnAll',
|
|
127
|
+
type: 'boolean',
|
|
128
|
+
displayOptions: {
|
|
129
|
+
show: {
|
|
130
|
+
resource: ['event'],
|
|
131
|
+
operation: ['getByDate'],
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
default: false,
|
|
135
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
displayName: 'Limit',
|
|
139
|
+
name: 'limit',
|
|
140
|
+
type: 'number',
|
|
141
|
+
displayOptions: {
|
|
142
|
+
show: {
|
|
143
|
+
resource: ['event'],
|
|
144
|
+
operation: ['getByDate'],
|
|
145
|
+
returnAll: [false],
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
typeOptions: {
|
|
149
|
+
minValue: 1,
|
|
150
|
+
},
|
|
151
|
+
default: 50,
|
|
152
|
+
description: 'Max number of results to return',
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
displayName: 'Client Full Name',
|
|
156
|
+
name: 'client_full_name',
|
|
157
|
+
type: 'string',
|
|
158
|
+
displayOptions: {
|
|
159
|
+
show: {
|
|
160
|
+
resource: ['event'],
|
|
161
|
+
operation: ['update'],
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
default: '',
|
|
165
|
+
description: 'Client\'s full name (optional)',
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
displayName: 'Client Email',
|
|
169
|
+
name: 'client_email',
|
|
170
|
+
type: 'string',
|
|
171
|
+
placeholder: 'name@email.com',
|
|
172
|
+
displayOptions: {
|
|
173
|
+
show: {
|
|
174
|
+
resource: ['event'],
|
|
175
|
+
operation: ['update'],
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
default: '',
|
|
179
|
+
description: 'Client\'s email address (optional)',
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
displayName: 'Client Phone Number',
|
|
183
|
+
name: 'client_phone_number',
|
|
184
|
+
type: 'string',
|
|
185
|
+
displayOptions: {
|
|
186
|
+
show: {
|
|
187
|
+
resource: ['event'],
|
|
188
|
+
operation: ['update'],
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
default: '',
|
|
192
|
+
description: 'Client\'s phone number (optional)',
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
displayName: 'Details',
|
|
196
|
+
name: 'details',
|
|
197
|
+
type: 'string',
|
|
198
|
+
displayOptions: {
|
|
199
|
+
show: {
|
|
200
|
+
resource: ['event'],
|
|
201
|
+
operation: ['update'],
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
default: '',
|
|
205
|
+
description: 'Event details (optional)',
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
displayName: 'Starting Date',
|
|
209
|
+
name: 'starting_date',
|
|
210
|
+
type: 'dateTime',
|
|
211
|
+
displayOptions: {
|
|
212
|
+
show: {
|
|
213
|
+
resource: ['event'],
|
|
214
|
+
operation: ['update'],
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
default: '',
|
|
218
|
+
description: 'Event start date and time (optional)',
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
displayName: 'Ending Date',
|
|
222
|
+
name: 'ending_date',
|
|
223
|
+
type: 'dateTime',
|
|
224
|
+
displayOptions: {
|
|
225
|
+
show: {
|
|
226
|
+
resource: ['event'],
|
|
227
|
+
operation: ['update'],
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
default: '',
|
|
231
|
+
description: 'Event end date and time (optional)',
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
displayName: 'Status',
|
|
235
|
+
name: 'status',
|
|
236
|
+
type: 'options',
|
|
237
|
+
options: [
|
|
238
|
+
{
|
|
239
|
+
name: 'Approved',
|
|
240
|
+
value: 'APPROVED',
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
name: 'Confirmed',
|
|
244
|
+
value: 'CONFIRMED',
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
name: 'Pending',
|
|
248
|
+
value: 'PENDING',
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
name: 'Pending Deletion',
|
|
252
|
+
value: 'PENDING_DELETION',
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
name: 'Rejected',
|
|
256
|
+
value: 'REJECTED',
|
|
257
|
+
},
|
|
258
|
+
],
|
|
259
|
+
displayOptions: {
|
|
260
|
+
show: {
|
|
261
|
+
resource: ['event'],
|
|
262
|
+
operation: ['update'],
|
|
263
|
+
},
|
|
264
|
+
},
|
|
265
|
+
default: 'PENDING',
|
|
266
|
+
description: 'Event status (optional)',
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
displayName: 'Is Approved',
|
|
270
|
+
name: 'isApproved',
|
|
271
|
+
type: 'boolean',
|
|
272
|
+
displayOptions: {
|
|
273
|
+
show: {
|
|
274
|
+
resource: ['event'],
|
|
275
|
+
operation: ['updateStatus'],
|
|
276
|
+
},
|
|
277
|
+
},
|
|
278
|
+
default: true,
|
|
279
|
+
required: true,
|
|
280
|
+
description: 'Whether to approve or reject (true to approve, false to reject)',
|
|
281
|
+
},
|
|
282
|
+
];
|
|
283
|
+
//# sourceMappingURL=event.description.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event.description.js","sourceRoot":"","sources":["../../../../nodes/Yourang/descriptions/event.description.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IACjD;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,OAAO,CAAC;aACnB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,iBAAiB;gBAC9B,MAAM,EAAE,iBAAiB;aACzB;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,iCAAiC;gBAC9C,MAAM,EAAE,cAAc;aACtB;YACD;gBACC,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,WAAW;gBAClB,WAAW,EAAE,gCAAgC;gBAC7C,MAAM,EAAE,oBAAoB;aAC5B;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,4BAA4B;gBACzC,MAAM,EAAE,iBAAiB;aACzB;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW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W,EAAE,oCAAoC;KACjD;IACD;QACC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;QACf,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,UAAU;aACjB;YACD;gBACC,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,WAAW;aAClB;YACD;gBACC,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,SAAS;aAChB;YACD;gBACC,IAAI,EAAE,kBAAkB;gBACxB,KAAK,EAAE,kBAAkB;aACzB;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,UAAU;aACjB;SACD;QACD,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,SAAS;QAClB,WAAW,EAAE,yBAAyB;KACtC;IACD;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,SAAS,EAAE,CAAC,cAAc,CAAC;aAC3B;SACD;QACD,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,iEAAiE;KAC9E;CACD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseResourceHandler } from './BaseResourceHandler';
|
|
2
|
+
export declare class ActionHandler extends BaseResourceHandler {
|
|
3
|
+
execute(operation: string, itemIndex: number): Promise<any>;
|
|
4
|
+
private listActions;
|
|
5
|
+
private executeSingle;
|
|
6
|
+
private executeBatchNumbers;
|
|
7
|
+
private executeBatchContacts;
|
|
8
|
+
private getActionHistory;
|
|
9
|
+
private getActionHistoryDetails;
|
|
10
|
+
private getBatchHistory;
|
|
11
|
+
private getBatchHistoryDetails;
|
|
12
|
+
}
|