@disruptive-learning/n8n-nodes-gigstack 1.1.1 → 1.1.2
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/credentials/GigstackApi.credentials.d.ts +2 -1
- package/dist/credentials/GigstackApi.credentials.js +30 -17
- package/dist/nodes/Gigstack/GenericFunctions.d.ts +5 -0
- package/dist/nodes/Gigstack/GenericFunctions.js +78 -0
- package/dist/nodes/{Gigstack.node.d.ts → Gigstack/Gigstack.node.d.ts} +1 -1
- package/dist/nodes/Gigstack/Gigstack.node.js +952 -0
- package/dist/nodes/Gigstack/GigstackTrigger.node.d.ts +12 -0
- package/dist/nodes/Gigstack/GigstackTrigger.node.js +207 -0
- package/dist/nodes/Gigstack/descriptions/ClientDescription.d.ts +3 -0
- package/dist/nodes/Gigstack/descriptions/ClientDescription.js +595 -0
- package/dist/nodes/Gigstack/descriptions/InvoiceDescription.d.ts +3 -0
- package/dist/nodes/Gigstack/descriptions/InvoiceDescription.js +503 -0
- package/dist/nodes/Gigstack/descriptions/PaymentDescription.d.ts +3 -0
- package/dist/nodes/Gigstack/descriptions/PaymentDescription.js +454 -0
- package/dist/nodes/Gigstack/descriptions/ReceiptDescription.d.ts +3 -0
- package/dist/nodes/Gigstack/descriptions/ReceiptDescription.js +369 -0
- package/dist/nodes/Gigstack/descriptions/ServiceDescription.d.ts +3 -0
- package/dist/nodes/Gigstack/descriptions/ServiceDescription.js +381 -0
- package/dist/nodes/Gigstack/descriptions/TeamDescription.d.ts +3 -0
- package/dist/nodes/Gigstack/descriptions/TeamDescription.js +599 -0
- package/dist/nodes/Gigstack/descriptions/UserDescription.d.ts +3 -0
- package/dist/nodes/Gigstack/descriptions/UserDescription.js +362 -0
- package/dist/nodes/Gigstack/descriptions/WebhookDescription.d.ts +3 -0
- package/dist/nodes/Gigstack/descriptions/WebhookDescription.js +293 -0
- package/dist/nodes/Gigstack/descriptions/index.d.ts +8 -0
- package/dist/nodes/Gigstack/descriptions/index.js +24 -0
- package/dist/nodes/Gigstack/gigstack.svg +1 -0
- package/package.json +64 -71
- package/LICENSE +0 -21
- package/README.md +0 -81
- package/dist/nodes/Gigstack.node.js +0 -1207
- package/dist/nodes/gigstack.svg +0 -4
|
@@ -0,0 +1,599 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.teamFields = exports.teamOperations = void 0;
|
|
4
|
+
exports.teamOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['team'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Add Member',
|
|
18
|
+
value: 'addMember',
|
|
19
|
+
description: 'Add a member to a team',
|
|
20
|
+
action: 'Add member to team',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Create',
|
|
24
|
+
value: 'create',
|
|
25
|
+
description: 'Create a new team',
|
|
26
|
+
action: 'Create a team',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Create Series',
|
|
30
|
+
value: 'createSeries',
|
|
31
|
+
description: 'Create a new invoice series for a team',
|
|
32
|
+
action: 'Create team series',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Get',
|
|
36
|
+
value: 'get',
|
|
37
|
+
description: 'Get a team by ID',
|
|
38
|
+
action: 'Get a team',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'Get Integrations',
|
|
42
|
+
value: 'getIntegrations',
|
|
43
|
+
description: 'Get team integrations',
|
|
44
|
+
action: 'Get team integrations',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'Get Many',
|
|
48
|
+
value: 'getAll',
|
|
49
|
+
description: 'Get many teams',
|
|
50
|
+
action: 'Get many teams',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'Get Onboarding URL',
|
|
54
|
+
value: 'getOnboardingUrl',
|
|
55
|
+
description: 'Get team onboarding URL (Gigstack Connect)',
|
|
56
|
+
action: 'Get onboarding URL',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'Get Series',
|
|
60
|
+
value: 'getSeries',
|
|
61
|
+
description: 'Get invoice series for a team',
|
|
62
|
+
action: 'Get team series',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: 'Remove Member',
|
|
66
|
+
value: 'removeMember',
|
|
67
|
+
description: 'Remove a member from a team',
|
|
68
|
+
action: 'Remove member from team',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'Update',
|
|
72
|
+
value: 'update',
|
|
73
|
+
description: 'Update a team',
|
|
74
|
+
action: 'Update a team',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: 'Update Series',
|
|
78
|
+
value: 'updateSeries',
|
|
79
|
+
description: 'Update an invoice series',
|
|
80
|
+
action: 'Update team series',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: 'Update Settings',
|
|
84
|
+
value: 'updateSettings',
|
|
85
|
+
description: 'Update team settings',
|
|
86
|
+
action: 'Update team settings',
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
default: 'getAll',
|
|
90
|
+
},
|
|
91
|
+
];
|
|
92
|
+
exports.teamFields = [
|
|
93
|
+
// ----------------------------------
|
|
94
|
+
// team: create
|
|
95
|
+
// ----------------------------------
|
|
96
|
+
{
|
|
97
|
+
displayName: 'Tax ID (RFC)',
|
|
98
|
+
name: 'tax_id',
|
|
99
|
+
type: 'string',
|
|
100
|
+
required: true,
|
|
101
|
+
default: '',
|
|
102
|
+
displayOptions: {
|
|
103
|
+
show: {
|
|
104
|
+
resource: ['team'],
|
|
105
|
+
operation: ['create'],
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
description: 'Mexican RFC tax identification number',
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
displayName: 'Additional Fields',
|
|
112
|
+
name: 'additionalFields',
|
|
113
|
+
type: 'collection',
|
|
114
|
+
placeholder: 'Add Field',
|
|
115
|
+
default: {},
|
|
116
|
+
displayOptions: {
|
|
117
|
+
show: {
|
|
118
|
+
resource: ['team'],
|
|
119
|
+
operation: ['create'],
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
options: [
|
|
123
|
+
{
|
|
124
|
+
displayName: 'Tax System',
|
|
125
|
+
name: 'tax_system',
|
|
126
|
+
type: 'options',
|
|
127
|
+
default: '601',
|
|
128
|
+
options: [
|
|
129
|
+
{ name: '601 - General de Ley Personas Morales', value: '601' },
|
|
130
|
+
{ name: '603 - Personas Morales con Fines no Lucrativos', value: '603' },
|
|
131
|
+
{ name: '612 - Personas Fisicas con Actividades Empresariales', value: '612' },
|
|
132
|
+
{ name: '621 - Incorporacion Fiscal', value: '621' },
|
|
133
|
+
{ name: '625 - RESICO', value: '625' },
|
|
134
|
+
{ name: '626 - RESICO Personas Morales', value: '626' },
|
|
135
|
+
],
|
|
136
|
+
description: 'SAT tax regime code',
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
displayName: 'Brand Alias',
|
|
140
|
+
name: 'brandAlias',
|
|
141
|
+
type: 'string',
|
|
142
|
+
default: '',
|
|
143
|
+
description: 'Brand alias name',
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
displayName: 'Primary Color',
|
|
147
|
+
name: 'primaryColor',
|
|
148
|
+
type: 'string',
|
|
149
|
+
default: '#2563eb',
|
|
150
|
+
description: 'Primary brand color (hex)',
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
displayName: 'Logo URL',
|
|
154
|
+
name: 'logo',
|
|
155
|
+
type: 'string',
|
|
156
|
+
default: '',
|
|
157
|
+
description: 'URL to company logo',
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
displayName: 'Support Email',
|
|
161
|
+
name: 'support_email',
|
|
162
|
+
type: 'string',
|
|
163
|
+
default: '',
|
|
164
|
+
description: 'Support email address',
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
displayName: 'Support Phone',
|
|
168
|
+
name: 'support_phone',
|
|
169
|
+
type: 'string',
|
|
170
|
+
default: '',
|
|
171
|
+
description: 'Support phone number',
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
displayName: 'Street',
|
|
175
|
+
name: 'street',
|
|
176
|
+
type: 'string',
|
|
177
|
+
default: '',
|
|
178
|
+
description: 'Street address',
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
displayName: 'Zip Code',
|
|
182
|
+
name: 'zip',
|
|
183
|
+
type: 'string',
|
|
184
|
+
default: '',
|
|
185
|
+
description: 'Postal code',
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
displayName: 'City',
|
|
189
|
+
name: 'city',
|
|
190
|
+
type: 'string',
|
|
191
|
+
default: '',
|
|
192
|
+
description: 'City',
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
displayName: 'State',
|
|
196
|
+
name: 'state',
|
|
197
|
+
type: 'string',
|
|
198
|
+
default: '',
|
|
199
|
+
description: 'State',
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
displayName: 'Country',
|
|
203
|
+
name: 'country',
|
|
204
|
+
type: 'string',
|
|
205
|
+
default: 'Mexico',
|
|
206
|
+
description: 'Country',
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
displayName: 'Generate Onboarding URL',
|
|
210
|
+
name: 'generate_onboarding_url',
|
|
211
|
+
type: 'boolean',
|
|
212
|
+
default: false,
|
|
213
|
+
description: 'Whether to generate an onboarding URL for the team',
|
|
214
|
+
},
|
|
215
|
+
],
|
|
216
|
+
},
|
|
217
|
+
// ----------------------------------
|
|
218
|
+
// team: get, update, addMember, removeMember, getSeries, createSeries, updateSettings, getOnboardingUrl
|
|
219
|
+
// ----------------------------------
|
|
220
|
+
{
|
|
221
|
+
displayName: 'Team ID',
|
|
222
|
+
name: 'teamId',
|
|
223
|
+
type: 'string',
|
|
224
|
+
required: true,
|
|
225
|
+
default: '',
|
|
226
|
+
displayOptions: {
|
|
227
|
+
show: {
|
|
228
|
+
resource: ['team'],
|
|
229
|
+
operation: ['get', 'update', 'addMember', 'removeMember', 'getSeries', 'createSeries', 'updateSeries', 'updateSettings', 'getOnboardingUrl'],
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
description: 'The ID of the team',
|
|
233
|
+
},
|
|
234
|
+
// ----------------------------------
|
|
235
|
+
// team: update
|
|
236
|
+
// ----------------------------------
|
|
237
|
+
{
|
|
238
|
+
displayName: 'Update Fields',
|
|
239
|
+
name: 'updateFields',
|
|
240
|
+
type: 'collection',
|
|
241
|
+
placeholder: 'Add Field',
|
|
242
|
+
default: {},
|
|
243
|
+
displayOptions: {
|
|
244
|
+
show: {
|
|
245
|
+
resource: ['team'],
|
|
246
|
+
operation: ['update'],
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
options: [
|
|
250
|
+
{
|
|
251
|
+
displayName: 'Tax ID (RFC)',
|
|
252
|
+
name: 'tax_id',
|
|
253
|
+
type: 'string',
|
|
254
|
+
default: '',
|
|
255
|
+
description: 'Mexican RFC tax identification number',
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
displayName: 'Tax System',
|
|
259
|
+
name: 'tax_system',
|
|
260
|
+
type: 'string',
|
|
261
|
+
default: '',
|
|
262
|
+
description: 'SAT tax regime code',
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
displayName: 'Brand Alias',
|
|
266
|
+
name: 'brandAlias',
|
|
267
|
+
type: 'string',
|
|
268
|
+
default: '',
|
|
269
|
+
description: 'Brand alias name',
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
displayName: 'Primary Color',
|
|
273
|
+
name: 'primaryColor',
|
|
274
|
+
type: 'string',
|
|
275
|
+
default: '',
|
|
276
|
+
description: 'Primary brand color (hex)',
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
displayName: 'Logo URL',
|
|
280
|
+
name: 'logo',
|
|
281
|
+
type: 'string',
|
|
282
|
+
default: '',
|
|
283
|
+
description: 'URL to company logo',
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
displayName: 'Support Email',
|
|
287
|
+
name: 'support_email',
|
|
288
|
+
type: 'string',
|
|
289
|
+
default: '',
|
|
290
|
+
description: 'Support email address',
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
displayName: 'Support Phone',
|
|
294
|
+
name: 'support_phone',
|
|
295
|
+
type: 'string',
|
|
296
|
+
default: '',
|
|
297
|
+
description: 'Support phone number',
|
|
298
|
+
},
|
|
299
|
+
],
|
|
300
|
+
},
|
|
301
|
+
// ----------------------------------
|
|
302
|
+
// team: addMember
|
|
303
|
+
// ----------------------------------
|
|
304
|
+
{
|
|
305
|
+
displayName: 'User ID',
|
|
306
|
+
name: 'userId',
|
|
307
|
+
type: 'string',
|
|
308
|
+
required: true,
|
|
309
|
+
default: '',
|
|
310
|
+
displayOptions: {
|
|
311
|
+
show: {
|
|
312
|
+
resource: ['team'],
|
|
313
|
+
operation: ['addMember'],
|
|
314
|
+
},
|
|
315
|
+
},
|
|
316
|
+
description: 'The ID of the user to add',
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
displayName: 'Role',
|
|
320
|
+
name: 'role',
|
|
321
|
+
type: 'options',
|
|
322
|
+
options: [
|
|
323
|
+
{ name: 'Admin', value: 'admin' },
|
|
324
|
+
{ name: 'Editor', value: 'editor' },
|
|
325
|
+
{ name: 'Viewer', value: 'viewer' },
|
|
326
|
+
],
|
|
327
|
+
default: 'viewer',
|
|
328
|
+
displayOptions: {
|
|
329
|
+
show: {
|
|
330
|
+
resource: ['team'],
|
|
331
|
+
operation: ['addMember'],
|
|
332
|
+
},
|
|
333
|
+
},
|
|
334
|
+
description: 'Role for the team member',
|
|
335
|
+
},
|
|
336
|
+
// ----------------------------------
|
|
337
|
+
// team: removeMember
|
|
338
|
+
// ----------------------------------
|
|
339
|
+
{
|
|
340
|
+
displayName: 'User ID',
|
|
341
|
+
name: 'userId',
|
|
342
|
+
type: 'string',
|
|
343
|
+
required: true,
|
|
344
|
+
default: '',
|
|
345
|
+
displayOptions: {
|
|
346
|
+
show: {
|
|
347
|
+
resource: ['team'],
|
|
348
|
+
operation: ['removeMember'],
|
|
349
|
+
},
|
|
350
|
+
},
|
|
351
|
+
description: 'The ID of the user to remove',
|
|
352
|
+
},
|
|
353
|
+
// ----------------------------------
|
|
354
|
+
// team: createSeries
|
|
355
|
+
// ----------------------------------
|
|
356
|
+
{
|
|
357
|
+
displayName: 'Series Name',
|
|
358
|
+
name: 'series',
|
|
359
|
+
type: 'string',
|
|
360
|
+
required: true,
|
|
361
|
+
default: '',
|
|
362
|
+
displayOptions: {
|
|
363
|
+
show: {
|
|
364
|
+
resource: ['team'],
|
|
365
|
+
operation: ['createSeries'],
|
|
366
|
+
},
|
|
367
|
+
},
|
|
368
|
+
description: 'Series identifier (e.g., A, B, NC)',
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
displayName: 'Live Folio Start',
|
|
372
|
+
name: 'live',
|
|
373
|
+
type: 'number',
|
|
374
|
+
default: 0,
|
|
375
|
+
displayOptions: {
|
|
376
|
+
show: {
|
|
377
|
+
resource: ['team'],
|
|
378
|
+
operation: ['createSeries'],
|
|
379
|
+
},
|
|
380
|
+
},
|
|
381
|
+
description: 'Initial folio number for live mode',
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
displayName: 'Test Folio Start',
|
|
385
|
+
name: 'test',
|
|
386
|
+
type: 'number',
|
|
387
|
+
default: 0,
|
|
388
|
+
displayOptions: {
|
|
389
|
+
show: {
|
|
390
|
+
resource: ['team'],
|
|
391
|
+
operation: ['createSeries'],
|
|
392
|
+
},
|
|
393
|
+
},
|
|
394
|
+
description: 'Initial folio number for test mode',
|
|
395
|
+
},
|
|
396
|
+
// ----------------------------------
|
|
397
|
+
// team: updateSeries
|
|
398
|
+
// ----------------------------------
|
|
399
|
+
{
|
|
400
|
+
displayName: 'Series ID',
|
|
401
|
+
name: 'seriesId',
|
|
402
|
+
type: 'string',
|
|
403
|
+
required: true,
|
|
404
|
+
default: '',
|
|
405
|
+
displayOptions: {
|
|
406
|
+
show: {
|
|
407
|
+
resource: ['team'],
|
|
408
|
+
operation: ['updateSeries'],
|
|
409
|
+
},
|
|
410
|
+
},
|
|
411
|
+
description: 'The ID of the series to update',
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
displayName: 'Live Folio Number',
|
|
415
|
+
name: 'live',
|
|
416
|
+
type: 'number',
|
|
417
|
+
default: 0,
|
|
418
|
+
displayOptions: {
|
|
419
|
+
show: {
|
|
420
|
+
resource: ['team'],
|
|
421
|
+
operation: ['updateSeries'],
|
|
422
|
+
},
|
|
423
|
+
},
|
|
424
|
+
description: 'Update folio number for live mode',
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
displayName: 'Test Folio Number',
|
|
428
|
+
name: 'test',
|
|
429
|
+
type: 'number',
|
|
430
|
+
default: 0,
|
|
431
|
+
displayOptions: {
|
|
432
|
+
show: {
|
|
433
|
+
resource: ['team'],
|
|
434
|
+
operation: ['updateSeries'],
|
|
435
|
+
},
|
|
436
|
+
},
|
|
437
|
+
description: 'Update folio number for test mode',
|
|
438
|
+
},
|
|
439
|
+
// ----------------------------------
|
|
440
|
+
// team: updateSettings
|
|
441
|
+
// ----------------------------------
|
|
442
|
+
{
|
|
443
|
+
displayName: 'Settings',
|
|
444
|
+
name: 'settings',
|
|
445
|
+
type: 'collection',
|
|
446
|
+
placeholder: 'Add Setting',
|
|
447
|
+
default: {},
|
|
448
|
+
displayOptions: {
|
|
449
|
+
show: {
|
|
450
|
+
resource: ['team'],
|
|
451
|
+
operation: ['updateSettings'],
|
|
452
|
+
},
|
|
453
|
+
},
|
|
454
|
+
options: [
|
|
455
|
+
{
|
|
456
|
+
displayName: 'Default Description',
|
|
457
|
+
name: 'default_description',
|
|
458
|
+
type: 'string',
|
|
459
|
+
default: '',
|
|
460
|
+
description: 'Default description for invoices',
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
displayName: 'Invoice PDF Notes',
|
|
464
|
+
name: 'invoice_pdf_notes',
|
|
465
|
+
type: 'string',
|
|
466
|
+
default: '',
|
|
467
|
+
description: 'Notes to include on invoice PDFs',
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
displayName: 'Default Product Key',
|
|
471
|
+
name: 'product_key',
|
|
472
|
+
type: 'string',
|
|
473
|
+
default: '',
|
|
474
|
+
description: 'Default SAT product key',
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
displayName: 'Default Unit Key',
|
|
478
|
+
name: 'unit_key',
|
|
479
|
+
type: 'string',
|
|
480
|
+
default: '',
|
|
481
|
+
description: 'Default SAT unit key',
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
displayName: 'Default CFDI Use',
|
|
485
|
+
name: 'use',
|
|
486
|
+
type: 'string',
|
|
487
|
+
default: '',
|
|
488
|
+
description: 'Default CFDI use code',
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
displayName: 'Keep Full Legal Name',
|
|
492
|
+
name: 'keep_full_legal_name',
|
|
493
|
+
type: 'boolean',
|
|
494
|
+
default: false,
|
|
495
|
+
description: 'Whether to keep full legal name on invoices',
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
displayName: 'Avoid Invoice Emails',
|
|
499
|
+
name: 'avoid_invoice_emails',
|
|
500
|
+
type: 'boolean',
|
|
501
|
+
default: false,
|
|
502
|
+
description: 'Whether to disable automatic invoice emails',
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
displayName: 'Invoices BCC',
|
|
506
|
+
name: 'invoices_bcc',
|
|
507
|
+
type: 'string',
|
|
508
|
+
default: '',
|
|
509
|
+
description: 'Comma-separated BCC emails for invoices',
|
|
510
|
+
},
|
|
511
|
+
],
|
|
512
|
+
},
|
|
513
|
+
// ----------------------------------
|
|
514
|
+
// team: getAll
|
|
515
|
+
// ----------------------------------
|
|
516
|
+
{
|
|
517
|
+
displayName: 'Return All',
|
|
518
|
+
name: 'returnAll',
|
|
519
|
+
type: 'boolean',
|
|
520
|
+
default: false,
|
|
521
|
+
displayOptions: {
|
|
522
|
+
show: {
|
|
523
|
+
resource: ['team'],
|
|
524
|
+
operation: ['getAll'],
|
|
525
|
+
},
|
|
526
|
+
},
|
|
527
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
displayName: 'Limit',
|
|
531
|
+
name: 'limit',
|
|
532
|
+
type: 'number',
|
|
533
|
+
default: 50,
|
|
534
|
+
typeOptions: {
|
|
535
|
+
minValue: 1,
|
|
536
|
+
maxValue: 100,
|
|
537
|
+
},
|
|
538
|
+
displayOptions: {
|
|
539
|
+
show: {
|
|
540
|
+
resource: ['team'],
|
|
541
|
+
operation: ['getAll'],
|
|
542
|
+
returnAll: [false],
|
|
543
|
+
},
|
|
544
|
+
},
|
|
545
|
+
description: 'Max number of results to return',
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
displayName: 'Filters',
|
|
549
|
+
name: 'filters',
|
|
550
|
+
type: 'collection',
|
|
551
|
+
placeholder: 'Add Filter',
|
|
552
|
+
default: {},
|
|
553
|
+
displayOptions: {
|
|
554
|
+
show: {
|
|
555
|
+
resource: ['team'],
|
|
556
|
+
operation: ['getAll'],
|
|
557
|
+
},
|
|
558
|
+
},
|
|
559
|
+
options: [
|
|
560
|
+
{
|
|
561
|
+
displayName: 'Order By',
|
|
562
|
+
name: 'orderBy',
|
|
563
|
+
type: 'options',
|
|
564
|
+
options: [
|
|
565
|
+
{ name: 'Name', value: 'name' },
|
|
566
|
+
{ name: 'Created At', value: 'timestamp' },
|
|
567
|
+
],
|
|
568
|
+
default: 'timestamp',
|
|
569
|
+
description: 'Field to order results by',
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
displayName: 'Sort Direction',
|
|
573
|
+
name: 'sort',
|
|
574
|
+
type: 'options',
|
|
575
|
+
options: [
|
|
576
|
+
{ name: 'Ascending', value: 'asc' },
|
|
577
|
+
{ name: 'Descending', value: 'desc' },
|
|
578
|
+
],
|
|
579
|
+
default: 'desc',
|
|
580
|
+
description: 'Sort direction',
|
|
581
|
+
},
|
|
582
|
+
],
|
|
583
|
+
},
|
|
584
|
+
// ----------------------------------
|
|
585
|
+
// team: Common - Team (for Gigstack Connect)
|
|
586
|
+
// ----------------------------------
|
|
587
|
+
{
|
|
588
|
+
displayName: 'Connect Team ID',
|
|
589
|
+
name: 'team',
|
|
590
|
+
type: 'string',
|
|
591
|
+
default: '',
|
|
592
|
+
displayOptions: {
|
|
593
|
+
show: {
|
|
594
|
+
resource: ['team'],
|
|
595
|
+
},
|
|
596
|
+
},
|
|
597
|
+
description: 'Team ID for Gigstack Connect (multi-team access). Leave empty to use default team.',
|
|
598
|
+
},
|
|
599
|
+
];
|