@disruptive-learning/n8n-nodes-gigstack 1.1.1 → 1.1.3
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 +142 -50
- 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 +65 -71
- package/LICENSE +0 -21
- package/dist/nodes/Gigstack.node.js +0 -1207
- package/dist/nodes/gigstack.svg +0 -4
|
@@ -0,0 +1,503 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.invoiceFields = exports.invoiceOperations = void 0;
|
|
4
|
+
exports.invoiceOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['invoice'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Cancel',
|
|
18
|
+
value: 'cancel',
|
|
19
|
+
description: 'Cancel an invoice with SAT',
|
|
20
|
+
action: 'Cancel an invoice',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Create Income',
|
|
24
|
+
value: 'createIncome',
|
|
25
|
+
description: 'Create an income invoice (CFDI type I)',
|
|
26
|
+
action: 'Create an income invoice',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Create Egress',
|
|
30
|
+
value: 'createEgress',
|
|
31
|
+
description: 'Create an egress/credit note invoice (CFDI type E)',
|
|
32
|
+
action: 'Create an egress invoice',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Get',
|
|
36
|
+
value: 'get',
|
|
37
|
+
description: 'Get an invoice by ID',
|
|
38
|
+
action: 'Get an invoice',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'Get Files',
|
|
42
|
+
value: 'getFiles',
|
|
43
|
+
description: 'Get invoice PDF and XML files',
|
|
44
|
+
action: 'Get invoice files',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'Get Many Income',
|
|
48
|
+
value: 'getAllIncome',
|
|
49
|
+
description: 'Get many income invoices',
|
|
50
|
+
action: 'Get many income invoices',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'Get Many Egress',
|
|
54
|
+
value: 'getAllEgress',
|
|
55
|
+
description: 'Get many egress invoices',
|
|
56
|
+
action: 'Get many egress invoices',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'Get Many Payment',
|
|
60
|
+
value: 'getAllPayment',
|
|
61
|
+
description: 'Get many payment complement invoices (CFDI type P)',
|
|
62
|
+
action: 'Get many payment invoices',
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
default: 'getAllIncome',
|
|
66
|
+
},
|
|
67
|
+
];
|
|
68
|
+
exports.invoiceFields = [
|
|
69
|
+
// ----------------------------------
|
|
70
|
+
// invoice: createIncome / createEgress
|
|
71
|
+
// ----------------------------------
|
|
72
|
+
{
|
|
73
|
+
displayName: 'Client ID',
|
|
74
|
+
name: 'clientId',
|
|
75
|
+
type: 'string',
|
|
76
|
+
required: true,
|
|
77
|
+
default: '',
|
|
78
|
+
displayOptions: {
|
|
79
|
+
show: {
|
|
80
|
+
resource: ['invoice'],
|
|
81
|
+
operation: ['createIncome', 'createEgress'],
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
description: 'The ID of the client for this invoice',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
displayName: 'Items',
|
|
88
|
+
name: 'items',
|
|
89
|
+
type: 'fixedCollection',
|
|
90
|
+
typeOptions: {
|
|
91
|
+
multipleValues: true,
|
|
92
|
+
minValue: 1,
|
|
93
|
+
},
|
|
94
|
+
required: true,
|
|
95
|
+
default: { itemValues: [{}] },
|
|
96
|
+
displayOptions: {
|
|
97
|
+
show: {
|
|
98
|
+
resource: ['invoice'],
|
|
99
|
+
operation: ['createIncome', 'createEgress'],
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
placeholder: 'Add Item',
|
|
103
|
+
options: [
|
|
104
|
+
{
|
|
105
|
+
name: 'itemValues',
|
|
106
|
+
displayName: 'Item',
|
|
107
|
+
values: [
|
|
108
|
+
{
|
|
109
|
+
displayName: 'Description',
|
|
110
|
+
name: 'description',
|
|
111
|
+
type: 'string',
|
|
112
|
+
default: '',
|
|
113
|
+
description: 'Description of the item',
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
displayName: 'Quantity',
|
|
117
|
+
name: 'quantity',
|
|
118
|
+
type: 'number',
|
|
119
|
+
default: 1,
|
|
120
|
+
description: 'Quantity of items',
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
displayName: 'Unit Price',
|
|
124
|
+
name: 'unit_price',
|
|
125
|
+
type: 'number',
|
|
126
|
+
default: 0,
|
|
127
|
+
typeOptions: {
|
|
128
|
+
numberPrecision: 2,
|
|
129
|
+
},
|
|
130
|
+
description: 'Price per unit',
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
displayName: 'Product Key (SAT)',
|
|
134
|
+
name: 'product_key',
|
|
135
|
+
type: 'string',
|
|
136
|
+
default: '80141503',
|
|
137
|
+
description: 'SAT product key code',
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
displayName: 'Unit Key (SAT)',
|
|
141
|
+
name: 'unit_key',
|
|
142
|
+
type: 'string',
|
|
143
|
+
default: 'E48',
|
|
144
|
+
description: 'SAT unit key code',
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
displayName: 'Service ID',
|
|
148
|
+
name: 'id',
|
|
149
|
+
type: 'string',
|
|
150
|
+
default: '',
|
|
151
|
+
description: 'Service ID to use (will inherit properties from service)',
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
displayName: 'Taxability',
|
|
155
|
+
name: 'taxability',
|
|
156
|
+
type: 'options',
|
|
157
|
+
default: '02',
|
|
158
|
+
options: [
|
|
159
|
+
{ name: '01 - No Objeto de Impuesto', value: '01' },
|
|
160
|
+
{ name: '02 - Si Objeto de Impuesto', value: '02' },
|
|
161
|
+
{ name: '03 - Si Objeto de Impuesto (No Obligado)', value: '03' },
|
|
162
|
+
{ name: '04 - Si Objeto de Impuesto (Exento)', value: '04' },
|
|
163
|
+
],
|
|
164
|
+
description: 'Tax object code',
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
displayName: 'Include IVA 16%',
|
|
168
|
+
name: 'includeIva',
|
|
169
|
+
type: 'boolean',
|
|
170
|
+
default: true,
|
|
171
|
+
description: 'Whether to include 16% IVA tax',
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
},
|
|
175
|
+
],
|
|
176
|
+
description: 'Invoice line items',
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
displayName: 'Additional Fields',
|
|
180
|
+
name: 'additionalFields',
|
|
181
|
+
type: 'collection',
|
|
182
|
+
placeholder: 'Add Field',
|
|
183
|
+
default: {},
|
|
184
|
+
displayOptions: {
|
|
185
|
+
show: {
|
|
186
|
+
resource: ['invoice'],
|
|
187
|
+
operation: ['createIncome', 'createEgress'],
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
options: [
|
|
191
|
+
{
|
|
192
|
+
displayName: 'Currency',
|
|
193
|
+
name: 'currency',
|
|
194
|
+
type: 'options',
|
|
195
|
+
options: [
|
|
196
|
+
{ name: 'MXN - Mexican Peso', value: 'MXN' },
|
|
197
|
+
{ name: 'USD - US Dollar', value: 'USD' },
|
|
198
|
+
{ name: 'EUR - Euro', value: 'EUR' },
|
|
199
|
+
],
|
|
200
|
+
default: 'MXN',
|
|
201
|
+
description: 'Invoice currency',
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
displayName: 'Exchange Rate',
|
|
205
|
+
name: 'exchange_rate',
|
|
206
|
+
type: 'number',
|
|
207
|
+
default: 1,
|
|
208
|
+
typeOptions: {
|
|
209
|
+
numberPrecision: 4,
|
|
210
|
+
},
|
|
211
|
+
description: 'Exchange rate to MXN (required for non-MXN currencies)',
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
displayName: 'Payment Method',
|
|
215
|
+
name: 'payment_method',
|
|
216
|
+
type: 'options',
|
|
217
|
+
options: [
|
|
218
|
+
{ name: 'PUE - Pago en Una Exhibicion', value: 'PUE' },
|
|
219
|
+
{ name: 'PPD - Pago en Parcialidades o Diferido', value: 'PPD' },
|
|
220
|
+
],
|
|
221
|
+
default: 'PUE',
|
|
222
|
+
description: 'CFDI payment method',
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
displayName: 'Payment Form',
|
|
226
|
+
name: 'payment_form',
|
|
227
|
+
type: 'options',
|
|
228
|
+
options: [
|
|
229
|
+
{ name: '01 - Efectivo', value: '01' },
|
|
230
|
+
{ name: '02 - Cheque Nominativo', value: '02' },
|
|
231
|
+
{ name: '03 - Transferencia Electronica', value: '03' },
|
|
232
|
+
{ name: '04 - Tarjeta de Credito', value: '04' },
|
|
233
|
+
{ name: '05 - Monedero Electronico', value: '05' },
|
|
234
|
+
{ name: '06 - Dinero Electronico', value: '06' },
|
|
235
|
+
{ name: '08 - Vales de Despensa', value: '08' },
|
|
236
|
+
{ name: '12 - Dacion en Pago', value: '12' },
|
|
237
|
+
{ name: '13 - Pago por Subrogacion', value: '13' },
|
|
238
|
+
{ name: '14 - Pago por Consignacion', value: '14' },
|
|
239
|
+
{ name: '15 - Condonacion', value: '15' },
|
|
240
|
+
{ name: '17 - Compensacion', value: '17' },
|
|
241
|
+
{ name: '23 - Novacion', value: '23' },
|
|
242
|
+
{ name: '24 - Confusion', value: '24' },
|
|
243
|
+
{ name: '25 - Remision de Deuda', value: '25' },
|
|
244
|
+
{ name: '26 - Prescripcion o Caducidad', value: '26' },
|
|
245
|
+
{ name: '27 - A Satisfaccion del Acreedor', value: '27' },
|
|
246
|
+
{ name: '28 - Tarjeta de Debito', value: '28' },
|
|
247
|
+
{ name: '29 - Tarjeta de Servicios', value: '29' },
|
|
248
|
+
{ name: '30 - Aplicacion de Anticipos', value: '30' },
|
|
249
|
+
{ name: '31 - Intermediario Pagos', value: '31' },
|
|
250
|
+
{ name: '99 - Por Definir', value: '99' },
|
|
251
|
+
],
|
|
252
|
+
default: '03',
|
|
253
|
+
description: 'SAT payment form code',
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
displayName: 'CFDI Use',
|
|
257
|
+
name: 'use',
|
|
258
|
+
type: 'options',
|
|
259
|
+
options: [
|
|
260
|
+
{ name: 'G01 - Adquisicion de Mercancias', value: 'G01' },
|
|
261
|
+
{ name: 'G02 - Devoluciones, Descuentos o Bonificaciones', value: 'G02' },
|
|
262
|
+
{ name: 'G03 - Gastos en General', value: 'G03' },
|
|
263
|
+
{ name: 'P01 - Por Definir', value: 'P01' },
|
|
264
|
+
{ name: 'S01 - Sin Efectos Fiscales', value: 'S01' },
|
|
265
|
+
],
|
|
266
|
+
default: 'G03',
|
|
267
|
+
description: 'CFDI use code',
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
displayName: 'Series',
|
|
271
|
+
name: 'series',
|
|
272
|
+
type: 'string',
|
|
273
|
+
default: '',
|
|
274
|
+
description: 'Invoice series (e.g., A, B, NC)',
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
displayName: 'Send Email',
|
|
278
|
+
name: 'send_email',
|
|
279
|
+
type: 'boolean',
|
|
280
|
+
default: true,
|
|
281
|
+
description: 'Whether to send invoice to client via email',
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
displayName: 'Additional Emails',
|
|
285
|
+
name: 'emails',
|
|
286
|
+
type: 'string',
|
|
287
|
+
default: '',
|
|
288
|
+
description: 'Comma-separated list of additional email addresses to send invoice to',
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
displayName: 'Automation Type',
|
|
292
|
+
name: 'automation_type',
|
|
293
|
+
type: 'options',
|
|
294
|
+
options: [
|
|
295
|
+
{ name: 'Payment - Link to Payment', value: 'payment' },
|
|
296
|
+
{ name: 'None - Standalone Invoice', value: 'none' },
|
|
297
|
+
],
|
|
298
|
+
default: 'none',
|
|
299
|
+
description: 'Invoice automation behavior',
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
displayName: 'Metadata',
|
|
303
|
+
name: 'metadata',
|
|
304
|
+
type: 'json',
|
|
305
|
+
default: '{}',
|
|
306
|
+
description: 'Additional custom metadata as JSON',
|
|
307
|
+
},
|
|
308
|
+
],
|
|
309
|
+
},
|
|
310
|
+
// ----------------------------------
|
|
311
|
+
// invoice: get, cancel, getFiles
|
|
312
|
+
// ----------------------------------
|
|
313
|
+
{
|
|
314
|
+
displayName: 'Invoice ID',
|
|
315
|
+
name: 'invoiceId',
|
|
316
|
+
type: 'string',
|
|
317
|
+
required: true,
|
|
318
|
+
default: '',
|
|
319
|
+
displayOptions: {
|
|
320
|
+
show: {
|
|
321
|
+
resource: ['invoice'],
|
|
322
|
+
operation: ['get', 'cancel', 'getFiles'],
|
|
323
|
+
},
|
|
324
|
+
},
|
|
325
|
+
description: 'The ID of the invoice',
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
displayName: 'Invoice Type',
|
|
329
|
+
name: 'invoiceType',
|
|
330
|
+
type: 'options',
|
|
331
|
+
options: [
|
|
332
|
+
{ name: 'Income', value: 'income' },
|
|
333
|
+
{ name: 'Egress', value: 'egress' },
|
|
334
|
+
{ name: 'Payment', value: 'payment' },
|
|
335
|
+
],
|
|
336
|
+
default: 'income',
|
|
337
|
+
displayOptions: {
|
|
338
|
+
show: {
|
|
339
|
+
resource: ['invoice'],
|
|
340
|
+
operation: ['get'],
|
|
341
|
+
},
|
|
342
|
+
},
|
|
343
|
+
description: 'Type of invoice to retrieve',
|
|
344
|
+
},
|
|
345
|
+
// ----------------------------------
|
|
346
|
+
// invoice: cancel
|
|
347
|
+
// ----------------------------------
|
|
348
|
+
{
|
|
349
|
+
displayName: 'Cancellation Motive',
|
|
350
|
+
name: 'motive',
|
|
351
|
+
type: 'options',
|
|
352
|
+
required: true,
|
|
353
|
+
options: [
|
|
354
|
+
{ name: '01 - Comprobante Emitido con Errores con Relacion', value: '01' },
|
|
355
|
+
{ name: '02 - Comprobante Emitido con Errores sin Relacion', value: '02' },
|
|
356
|
+
{ name: '03 - No se Llevo a Cabo la Operacion', value: '03' },
|
|
357
|
+
{ name: '04 - Operacion Nominativa Relacionada en Factura Global', value: '04' },
|
|
358
|
+
],
|
|
359
|
+
default: '02',
|
|
360
|
+
displayOptions: {
|
|
361
|
+
show: {
|
|
362
|
+
resource: ['invoice'],
|
|
363
|
+
operation: ['cancel'],
|
|
364
|
+
},
|
|
365
|
+
},
|
|
366
|
+
description: 'SAT cancellation motive code',
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
displayName: 'Substitution UUID',
|
|
370
|
+
name: 'substitution_uuid',
|
|
371
|
+
type: 'string',
|
|
372
|
+
default: '',
|
|
373
|
+
displayOptions: {
|
|
374
|
+
show: {
|
|
375
|
+
resource: ['invoice'],
|
|
376
|
+
operation: ['cancel'],
|
|
377
|
+
motive: ['01'],
|
|
378
|
+
},
|
|
379
|
+
},
|
|
380
|
+
description: 'UUID of the invoice that substitutes this one (required for motive 01)',
|
|
381
|
+
},
|
|
382
|
+
// ----------------------------------
|
|
383
|
+
// invoice: getFiles
|
|
384
|
+
// ----------------------------------
|
|
385
|
+
{
|
|
386
|
+
displayName: 'File Type',
|
|
387
|
+
name: 'fileType',
|
|
388
|
+
type: 'options',
|
|
389
|
+
options: [
|
|
390
|
+
{ name: 'Both PDF and XML', value: 'both' },
|
|
391
|
+
{ name: 'PDF Only', value: 'pdf' },
|
|
392
|
+
{ name: 'XML Only', value: 'xml' },
|
|
393
|
+
],
|
|
394
|
+
default: 'both',
|
|
395
|
+
displayOptions: {
|
|
396
|
+
show: {
|
|
397
|
+
resource: ['invoice'],
|
|
398
|
+
operation: ['getFiles'],
|
|
399
|
+
},
|
|
400
|
+
},
|
|
401
|
+
description: 'Type of files to retrieve',
|
|
402
|
+
},
|
|
403
|
+
// ----------------------------------
|
|
404
|
+
// invoice: getAll
|
|
405
|
+
// ----------------------------------
|
|
406
|
+
{
|
|
407
|
+
displayName: 'Return All',
|
|
408
|
+
name: 'returnAll',
|
|
409
|
+
type: 'boolean',
|
|
410
|
+
default: false,
|
|
411
|
+
displayOptions: {
|
|
412
|
+
show: {
|
|
413
|
+
resource: ['invoice'],
|
|
414
|
+
operation: ['getAllIncome', 'getAllEgress', 'getAllPayment'],
|
|
415
|
+
},
|
|
416
|
+
},
|
|
417
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
displayName: 'Limit',
|
|
421
|
+
name: 'limit',
|
|
422
|
+
type: 'number',
|
|
423
|
+
default: 50,
|
|
424
|
+
typeOptions: {
|
|
425
|
+
minValue: 1,
|
|
426
|
+
maxValue: 100,
|
|
427
|
+
},
|
|
428
|
+
displayOptions: {
|
|
429
|
+
show: {
|
|
430
|
+
resource: ['invoice'],
|
|
431
|
+
operation: ['getAllIncome', 'getAllEgress', 'getAllPayment'],
|
|
432
|
+
returnAll: [false],
|
|
433
|
+
},
|
|
434
|
+
},
|
|
435
|
+
description: 'Max number of results to return',
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
displayName: 'Filters',
|
|
439
|
+
name: 'filters',
|
|
440
|
+
type: 'collection',
|
|
441
|
+
placeholder: 'Add Filter',
|
|
442
|
+
default: {},
|
|
443
|
+
displayOptions: {
|
|
444
|
+
show: {
|
|
445
|
+
resource: ['invoice'],
|
|
446
|
+
operation: ['getAllIncome', 'getAllEgress', 'getAllPayment'],
|
|
447
|
+
},
|
|
448
|
+
},
|
|
449
|
+
options: [
|
|
450
|
+
{
|
|
451
|
+
displayName: 'Order By',
|
|
452
|
+
name: 'orderBy',
|
|
453
|
+
type: 'options',
|
|
454
|
+
options: [
|
|
455
|
+
{ name: 'Name', value: 'name' },
|
|
456
|
+
{ name: 'Created At', value: 'timestamp' },
|
|
457
|
+
],
|
|
458
|
+
default: 'timestamp',
|
|
459
|
+
description: 'Field to order results by',
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
displayName: 'Sort Direction',
|
|
463
|
+
name: 'sort',
|
|
464
|
+
type: 'options',
|
|
465
|
+
options: [
|
|
466
|
+
{ name: 'Ascending', value: 'asc' },
|
|
467
|
+
{ name: 'Descending', value: 'desc' },
|
|
468
|
+
],
|
|
469
|
+
default: 'desc',
|
|
470
|
+
description: 'Sort direction',
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
displayName: 'Created After',
|
|
474
|
+
name: 'createdAfter',
|
|
475
|
+
type: 'dateTime',
|
|
476
|
+
default: '',
|
|
477
|
+
description: 'Filter invoices created after this date',
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
displayName: 'Created Before',
|
|
481
|
+
name: 'createdBefore',
|
|
482
|
+
type: 'dateTime',
|
|
483
|
+
default: '',
|
|
484
|
+
description: 'Filter invoices created before this date',
|
|
485
|
+
},
|
|
486
|
+
],
|
|
487
|
+
},
|
|
488
|
+
// ----------------------------------
|
|
489
|
+
// invoice: Common - Team
|
|
490
|
+
// ----------------------------------
|
|
491
|
+
{
|
|
492
|
+
displayName: 'Team ID',
|
|
493
|
+
name: 'team',
|
|
494
|
+
type: 'string',
|
|
495
|
+
default: '',
|
|
496
|
+
displayOptions: {
|
|
497
|
+
show: {
|
|
498
|
+
resource: ['invoice'],
|
|
499
|
+
},
|
|
500
|
+
},
|
|
501
|
+
description: 'Team ID for Gigstack Connect (multi-team access). Leave empty to use default team.',
|
|
502
|
+
},
|
|
503
|
+
];
|