@disruptive-learning/n8n-nodes-gigstack 1.1.4 → 1.1.6

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.
@@ -68,6 +68,23 @@ function buildFilterQuery(filters) {
68
68
  if (filters.team) {
69
69
  qs.team = filters.team;
70
70
  }
71
+ // Status filter (payments, invoices, receipts)
72
+ if (filters.status) {
73
+ qs.status = filters.status;
74
+ }
75
+ // Client filter
76
+ if (filters.client_id) {
77
+ qs.client_id = filters.client_id;
78
+ }
79
+ // Email filter (payments)
80
+ if (filters.email) {
81
+ qs.email = filters.email;
82
+ }
83
+ // Currency filter (payments)
84
+ if (filters.currency) {
85
+ qs.currency = filters.currency;
86
+ }
87
+ // Date filters
71
88
  if (filters.createdAfter) {
72
89
  qs['created[gte]'] = Math.floor(new Date(filters.createdAfter).getTime() / 1000);
73
90
  }
@@ -40,19 +40,19 @@ class GigstackTrigger {
40
40
  default: [],
41
41
  options: [
42
42
  {
43
- name: 'Client Created',
44
- value: 'client.created',
45
- description: 'Triggered when a new client is created',
43
+ name: 'Customer Created',
44
+ value: 'customer.created',
45
+ description: 'Triggered when a new customer is created',
46
46
  },
47
47
  {
48
- name: 'Client Deleted',
49
- value: 'client.deleted',
50
- description: 'Triggered when a client is deleted',
48
+ name: 'Customer Deleted',
49
+ value: 'customer.deleted',
50
+ description: 'Triggered when a customer is deleted',
51
51
  },
52
52
  {
53
- name: 'Client Updated',
54
- value: 'client.updated',
55
- description: 'Triggered when a client is updated',
53
+ name: 'Customer Updated',
54
+ value: 'customer.updated',
55
+ description: 'Triggered when a customer is updated',
56
56
  },
57
57
  {
58
58
  name: 'Invoice Cancelled',
@@ -447,6 +447,25 @@ exports.invoiceFields = [
447
447
  },
448
448
  },
449
449
  options: [
450
+ {
451
+ displayName: 'Status',
452
+ name: 'status',
453
+ type: 'options',
454
+ options: [
455
+ { name: 'Valid', value: 'valid' },
456
+ { name: 'Canceled', value: 'canceled' },
457
+ { name: 'Pending', value: 'pending' },
458
+ ],
459
+ default: '',
460
+ description: 'Filter invoices by status',
461
+ },
462
+ {
463
+ displayName: 'Client ID',
464
+ name: 'client_id',
465
+ type: 'string',
466
+ default: '',
467
+ description: 'Filter invoices by client ID',
468
+ },
450
469
  {
451
470
  displayName: 'Order By',
452
471
  name: 'orderBy',
@@ -398,6 +398,44 @@ exports.paymentFields = [
398
398
  },
399
399
  },
400
400
  options: [
401
+ {
402
+ displayName: 'Status',
403
+ name: 'status',
404
+ type: 'options',
405
+ options: [
406
+ { name: 'Requires Payment Method', value: 'requires_payment_method' },
407
+ { name: 'Succeeded', value: 'succeeded' },
408
+ { name: 'Canceled', value: 'canceled' },
409
+ ],
410
+ default: '',
411
+ description: 'Filter payments by status',
412
+ },
413
+ {
414
+ displayName: 'Client ID',
415
+ name: 'client_id',
416
+ type: 'string',
417
+ default: '',
418
+ description: 'Filter payments by client ID',
419
+ },
420
+ {
421
+ displayName: 'Client Email',
422
+ name: 'email',
423
+ type: 'string',
424
+ default: '',
425
+ placeholder: 'name@email.com',
426
+ description: 'Filter payments by client email address',
427
+ },
428
+ {
429
+ displayName: 'Currency',
430
+ name: 'currency',
431
+ type: 'options',
432
+ options: [
433
+ { name: 'MXN - Mexican Peso', value: 'MXN' },
434
+ { name: 'USD - US Dollar', value: 'USD' },
435
+ ],
436
+ default: '',
437
+ description: 'Filter payments by currency',
438
+ },
401
439
  {
402
440
  displayName: 'Order By',
403
441
  name: 'orderBy',
@@ -313,6 +313,25 @@ exports.receiptFields = [
313
313
  },
314
314
  },
315
315
  options: [
316
+ {
317
+ displayName: 'Status',
318
+ name: 'status',
319
+ type: 'options',
320
+ options: [
321
+ { name: 'Pending', value: 'pending' },
322
+ { name: 'Stamped', value: 'stamped' },
323
+ { name: 'Canceled', value: 'canceled' },
324
+ ],
325
+ default: '',
326
+ description: 'Filter receipts by status',
327
+ },
328
+ {
329
+ displayName: 'Client ID',
330
+ name: 'client_id',
331
+ type: 'string',
332
+ default: '',
333
+ description: 'Filter receipts by client ID',
334
+ },
316
335
  {
317
336
  displayName: 'Order By',
318
337
  name: 'orderBy',
@@ -83,10 +83,10 @@ exports.webhookFields = [
83
83
  { name: 'Invoice Stamped', value: 'invoice.stamped' },
84
84
  { name: 'Invoice Cancelled', value: 'invoice.cancelled' },
85
85
  { name: 'Invoice Sent', value: 'invoice.sent' },
86
- // Client events
87
- { name: 'Client Created', value: 'client.created' },
88
- { name: 'Client Updated', value: 'client.updated' },
89
- { name: 'Client Deleted', value: 'client.deleted' },
86
+ // Customer events
87
+ { name: 'Customer Created', value: 'customer.created' },
88
+ { name: 'Customer Updated', value: 'customer.updated' },
89
+ { name: 'Customer Deleted', value: 'customer.deleted' },
90
90
  // Receipt events
91
91
  { name: 'Receipt Created', value: 'receipt.created' },
92
92
  { name: 'Receipt Stamped', value: 'receipt.stamped' },
@@ -187,8 +187,8 @@ exports.webhookFields = [
187
187
  { name: 'Invoice Created', value: 'invoice.created' },
188
188
  { name: 'Invoice Stamped', value: 'invoice.stamped' },
189
189
  { name: 'Invoice Cancelled', value: 'invoice.cancelled' },
190
- { name: 'Client Created', value: 'client.created' },
191
- { name: 'Client Updated', value: 'client.updated' },
190
+ { name: 'Customer Created', value: 'customer.created' },
191
+ { name: 'Customer Updated', value: 'customer.updated' },
192
192
  { name: 'Receipt Created', value: 'receipt.created' },
193
193
  { name: 'Receipt Stamped', value: 'receipt.stamped' },
194
194
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@disruptive-learning/n8n-nodes-gigstack",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "n8n community node for Gigstack API - Mexican tax compliance, invoicing, and payment processing",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",