@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,595 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.clientFields = exports.clientOperations = void 0;
|
|
4
|
+
exports.clientOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['client'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Create',
|
|
18
|
+
value: 'create',
|
|
19
|
+
description: 'Create a new client',
|
|
20
|
+
action: 'Create a client',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Delete',
|
|
24
|
+
value: 'delete',
|
|
25
|
+
description: 'Delete a client',
|
|
26
|
+
action: 'Delete a client',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Get',
|
|
30
|
+
value: 'get',
|
|
31
|
+
description: 'Get a client by ID',
|
|
32
|
+
action: 'Get a client',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Get Customer Portal',
|
|
36
|
+
value: 'getCustomerPortal',
|
|
37
|
+
description: 'Get customer portal access URL',
|
|
38
|
+
action: 'Get customer portal URL',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'Get Many',
|
|
42
|
+
value: 'getAll',
|
|
43
|
+
description: 'Get many clients',
|
|
44
|
+
action: 'Get many clients',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'Stamp Pending Receipts',
|
|
48
|
+
value: 'stampPendingReceipts',
|
|
49
|
+
description: 'Stamp all pending receipts for a client',
|
|
50
|
+
action: 'Stamp pending receipts',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'Update',
|
|
54
|
+
value: 'update',
|
|
55
|
+
description: 'Update a client',
|
|
56
|
+
action: 'Update a client',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'Validate',
|
|
60
|
+
value: 'validate',
|
|
61
|
+
description: 'Validate client fiscal information against SAT',
|
|
62
|
+
action: 'Validate a client',
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
default: 'getAll',
|
|
66
|
+
},
|
|
67
|
+
];
|
|
68
|
+
exports.clientFields = [
|
|
69
|
+
// ----------------------------------
|
|
70
|
+
// client: create
|
|
71
|
+
// ----------------------------------
|
|
72
|
+
{
|
|
73
|
+
displayName: 'Email',
|
|
74
|
+
name: 'email',
|
|
75
|
+
type: 'string',
|
|
76
|
+
placeholder: 'name@email.com',
|
|
77
|
+
required: true,
|
|
78
|
+
default: '',
|
|
79
|
+
displayOptions: {
|
|
80
|
+
show: {
|
|
81
|
+
resource: ['client'],
|
|
82
|
+
operation: ['create'],
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
description: 'Email address of the client',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
displayName: 'Additional Fields',
|
|
89
|
+
name: 'additionalFields',
|
|
90
|
+
type: 'collection',
|
|
91
|
+
placeholder: 'Add Field',
|
|
92
|
+
default: {},
|
|
93
|
+
displayOptions: {
|
|
94
|
+
show: {
|
|
95
|
+
resource: ['client'],
|
|
96
|
+
operation: ['create'],
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
options: [
|
|
100
|
+
{
|
|
101
|
+
displayName: 'Name',
|
|
102
|
+
name: 'name',
|
|
103
|
+
type: 'string',
|
|
104
|
+
default: '',
|
|
105
|
+
description: 'Full name of the client',
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
displayName: 'Company',
|
|
109
|
+
name: 'company',
|
|
110
|
+
type: 'string',
|
|
111
|
+
default: '',
|
|
112
|
+
description: 'Company name',
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
displayName: 'Phone',
|
|
116
|
+
name: 'phone',
|
|
117
|
+
type: 'string',
|
|
118
|
+
default: '',
|
|
119
|
+
description: 'Phone number',
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
displayName: 'Legal Name',
|
|
123
|
+
name: 'legal_name',
|
|
124
|
+
type: 'string',
|
|
125
|
+
default: '',
|
|
126
|
+
description: 'Legal name for invoicing (Razon Social)',
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
displayName: 'Tax ID (RFC)',
|
|
130
|
+
name: 'tax_id',
|
|
131
|
+
type: 'string',
|
|
132
|
+
default: '',
|
|
133
|
+
description: 'Mexican RFC tax identification number',
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
displayName: 'Tax System',
|
|
137
|
+
name: 'tax_system',
|
|
138
|
+
type: 'options',
|
|
139
|
+
default: '601',
|
|
140
|
+
options: [
|
|
141
|
+
{ name: '601 - General de Ley Personas Morales', value: '601' },
|
|
142
|
+
{ name: '603 - Personas Morales con Fines no Lucrativos', value: '603' },
|
|
143
|
+
{ name: '605 - Sueldos y Salarios', value: '605' },
|
|
144
|
+
{ name: '606 - Arrendamiento', value: '606' },
|
|
145
|
+
{ name: '607 - Regimen de Enajenacion o Adquisicion de Bienes', value: '607' },
|
|
146
|
+
{ name: '608 - Demas Ingresos', value: '608' },
|
|
147
|
+
{ name: '610 - Residentes en el Extranjero', value: '610' },
|
|
148
|
+
{ name: '611 - Ingresos por Dividendos', value: '611' },
|
|
149
|
+
{ name: '612 - Personas Fisicas con Actividades Empresariales', value: '612' },
|
|
150
|
+
{ name: '614 - Ingresos por Intereses', value: '614' },
|
|
151
|
+
{ name: '615 - Regimen de los Ingresos por Premios', value: '615' },
|
|
152
|
+
{ name: '616 - Sin Obligaciones Fiscales', value: '616' },
|
|
153
|
+
{ name: '620 - Sociedades Cooperativas', value: '620' },
|
|
154
|
+
{ name: '621 - Incorporacion Fiscal', value: '621' },
|
|
155
|
+
{ name: '622 - Actividades Agricolas, Ganaderas, Silvicolas y Pesqueras', value: '622' },
|
|
156
|
+
{ name: '623 - Opcional para Grupos de Sociedades', value: '623' },
|
|
157
|
+
{ name: '624 - Coordinados', value: '624' },
|
|
158
|
+
{ name: '625 - Regimen Simplificado de Confianza (RESICO)', value: '625' },
|
|
159
|
+
{ name: '626 - RESICO Personas Morales', value: '626' },
|
|
160
|
+
],
|
|
161
|
+
description: 'SAT tax regime code',
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
displayName: 'CFDI Use',
|
|
165
|
+
name: 'use',
|
|
166
|
+
type: 'options',
|
|
167
|
+
default: 'G03',
|
|
168
|
+
options: [
|
|
169
|
+
{ name: 'G01 - Adquisicion de Mercancias', value: 'G01' },
|
|
170
|
+
{ name: 'G02 - Devoluciones, Descuentos o Bonificaciones', value: 'G02' },
|
|
171
|
+
{ name: 'G03 - Gastos en General', value: 'G03' },
|
|
172
|
+
{ name: 'I01 - Construcciones', value: 'I01' },
|
|
173
|
+
{ name: 'I02 - Mobiliario y Equipo de Oficina', value: 'I02' },
|
|
174
|
+
{ name: 'I03 - Equipo de Transporte', value: 'I03' },
|
|
175
|
+
{ name: 'I04 - Equipo de Computo', value: 'I04' },
|
|
176
|
+
{ name: 'I05 - Dados, Troqueles, Moldes', value: 'I05' },
|
|
177
|
+
{ name: 'I06 - Comunicaciones Telefonicas', value: 'I06' },
|
|
178
|
+
{ name: 'I07 - Comunicaciones Satelitales', value: 'I07' },
|
|
179
|
+
{ name: 'I08 - Otra Maquinaria y Equipo', value: 'I08' },
|
|
180
|
+
{ name: 'D01 - Honorarios Medicos', value: 'D01' },
|
|
181
|
+
{ name: 'D02 - Gastos Medicos por Incapacidad', value: 'D02' },
|
|
182
|
+
{ name: 'D03 - Gastos Funerales', value: 'D03' },
|
|
183
|
+
{ name: 'D04 - Donativos', value: 'D04' },
|
|
184
|
+
{ name: 'D05 - Intereses por Creditos Hipotecarios', value: 'D05' },
|
|
185
|
+
{ name: 'D06 - Aportaciones Voluntarias SAR', value: 'D06' },
|
|
186
|
+
{ name: 'D07 - Primas por Seguros de Gastos Medicos', value: 'D07' },
|
|
187
|
+
{ name: 'D08 - Gastos de Transportacion Escolar', value: 'D08' },
|
|
188
|
+
{ name: 'D09 - Depositos Cuentas Ahorro', value: 'D09' },
|
|
189
|
+
{ name: 'D10 - Pagos por Servicios Educativos', value: 'D10' },
|
|
190
|
+
{ name: 'P01 - Por Definir', value: 'P01' },
|
|
191
|
+
{ name: 'S01 - Sin Efectos Fiscales', value: 'S01' },
|
|
192
|
+
{ name: 'CP01 - Pagos', value: 'CP01' },
|
|
193
|
+
{ name: 'CN01 - Nomina', value: 'CN01' },
|
|
194
|
+
],
|
|
195
|
+
description: 'CFDI use code',
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
displayName: 'BCC Emails',
|
|
199
|
+
name: 'bcc',
|
|
200
|
+
type: 'string',
|
|
201
|
+
default: '',
|
|
202
|
+
description: 'Comma-separated list of BCC email addresses',
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
displayName: 'Street',
|
|
206
|
+
name: 'street',
|
|
207
|
+
type: 'string',
|
|
208
|
+
default: '',
|
|
209
|
+
description: 'Street address',
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
displayName: 'Exterior Number',
|
|
213
|
+
name: 'exterior',
|
|
214
|
+
type: 'string',
|
|
215
|
+
default: '',
|
|
216
|
+
description: 'Exterior number',
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
displayName: 'Interior Number',
|
|
220
|
+
name: 'interior',
|
|
221
|
+
type: 'string',
|
|
222
|
+
default: '',
|
|
223
|
+
description: 'Interior number',
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
displayName: 'Neighborhood',
|
|
227
|
+
name: 'neighborhood',
|
|
228
|
+
type: 'string',
|
|
229
|
+
default: '',
|
|
230
|
+
description: 'Neighborhood (Colonia)',
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
displayName: 'City',
|
|
234
|
+
name: 'city',
|
|
235
|
+
type: 'string',
|
|
236
|
+
default: '',
|
|
237
|
+
description: 'City',
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
displayName: 'State',
|
|
241
|
+
name: 'state',
|
|
242
|
+
type: 'string',
|
|
243
|
+
default: '',
|
|
244
|
+
description: 'State',
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
displayName: 'Zip Code',
|
|
248
|
+
name: 'zip',
|
|
249
|
+
type: 'string',
|
|
250
|
+
default: '',
|
|
251
|
+
description: 'Postal code',
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
displayName: 'Country',
|
|
255
|
+
name: 'country',
|
|
256
|
+
type: 'string',
|
|
257
|
+
default: 'Mexico',
|
|
258
|
+
description: 'Country',
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
displayName: 'Municipality',
|
|
262
|
+
name: 'municipality',
|
|
263
|
+
type: 'string',
|
|
264
|
+
default: '',
|
|
265
|
+
description: 'Municipality (Municipio)',
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
displayName: 'Metadata',
|
|
269
|
+
name: 'metadata',
|
|
270
|
+
type: 'json',
|
|
271
|
+
default: '{}',
|
|
272
|
+
description: 'Additional custom metadata as JSON',
|
|
273
|
+
},
|
|
274
|
+
],
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
displayName: 'Search Options',
|
|
278
|
+
name: 'searchOptions',
|
|
279
|
+
type: 'collection',
|
|
280
|
+
placeholder: 'Add Search Option',
|
|
281
|
+
default: {},
|
|
282
|
+
displayOptions: {
|
|
283
|
+
show: {
|
|
284
|
+
resource: ['client'],
|
|
285
|
+
operation: ['create'],
|
|
286
|
+
},
|
|
287
|
+
},
|
|
288
|
+
description: 'Options to find existing client (upsert behavior)',
|
|
289
|
+
options: [
|
|
290
|
+
{
|
|
291
|
+
displayName: 'Search On Key',
|
|
292
|
+
name: 'on_key',
|
|
293
|
+
type: 'options',
|
|
294
|
+
options: [
|
|
295
|
+
{ name: 'Email', value: 'email' },
|
|
296
|
+
{ name: 'Tax ID (RFC)', value: 'tax_id' },
|
|
297
|
+
],
|
|
298
|
+
default: 'email',
|
|
299
|
+
description: 'Field to search for existing client',
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
displayName: 'Search On Value',
|
|
303
|
+
name: 'on_value',
|
|
304
|
+
type: 'string',
|
|
305
|
+
default: '',
|
|
306
|
+
description: 'Value to search for',
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
displayName: 'Update If Found',
|
|
310
|
+
name: 'update',
|
|
311
|
+
type: 'boolean',
|
|
312
|
+
default: false,
|
|
313
|
+
description: 'Whether to update the client if found',
|
|
314
|
+
},
|
|
315
|
+
],
|
|
316
|
+
},
|
|
317
|
+
// ----------------------------------
|
|
318
|
+
// client: get
|
|
319
|
+
// ----------------------------------
|
|
320
|
+
{
|
|
321
|
+
displayName: 'Client ID',
|
|
322
|
+
name: 'clientId',
|
|
323
|
+
type: 'string',
|
|
324
|
+
required: true,
|
|
325
|
+
default: '',
|
|
326
|
+
displayOptions: {
|
|
327
|
+
show: {
|
|
328
|
+
resource: ['client'],
|
|
329
|
+
operation: ['get', 'update', 'delete', 'validate', 'stampPendingReceipts'],
|
|
330
|
+
},
|
|
331
|
+
},
|
|
332
|
+
description: 'The ID of the client',
|
|
333
|
+
},
|
|
334
|
+
// ----------------------------------
|
|
335
|
+
// client: getCustomerPortal
|
|
336
|
+
// ----------------------------------
|
|
337
|
+
{
|
|
338
|
+
displayName: 'Client ID or Email',
|
|
339
|
+
name: 'clientIdentifier',
|
|
340
|
+
type: 'string',
|
|
341
|
+
required: true,
|
|
342
|
+
default: '',
|
|
343
|
+
displayOptions: {
|
|
344
|
+
show: {
|
|
345
|
+
resource: ['client'],
|
|
346
|
+
operation: ['getCustomerPortal'],
|
|
347
|
+
},
|
|
348
|
+
},
|
|
349
|
+
description: 'The ID or email of the client',
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
displayName: 'Identifier Type',
|
|
353
|
+
name: 'identifierType',
|
|
354
|
+
type: 'options',
|
|
355
|
+
options: [
|
|
356
|
+
{ name: 'Client ID', value: 'id' },
|
|
357
|
+
{ name: 'Email', value: 'email' },
|
|
358
|
+
],
|
|
359
|
+
default: 'id',
|
|
360
|
+
displayOptions: {
|
|
361
|
+
show: {
|
|
362
|
+
resource: ['client'],
|
|
363
|
+
operation: ['getCustomerPortal'],
|
|
364
|
+
},
|
|
365
|
+
},
|
|
366
|
+
description: 'Whether to identify client by ID or email',
|
|
367
|
+
},
|
|
368
|
+
// ----------------------------------
|
|
369
|
+
// client: update
|
|
370
|
+
// ----------------------------------
|
|
371
|
+
{
|
|
372
|
+
displayName: 'Update Fields',
|
|
373
|
+
name: 'updateFields',
|
|
374
|
+
type: 'collection',
|
|
375
|
+
placeholder: 'Add Field',
|
|
376
|
+
default: {},
|
|
377
|
+
displayOptions: {
|
|
378
|
+
show: {
|
|
379
|
+
resource: ['client'],
|
|
380
|
+
operation: ['update'],
|
|
381
|
+
},
|
|
382
|
+
},
|
|
383
|
+
options: [
|
|
384
|
+
{
|
|
385
|
+
displayName: 'Name',
|
|
386
|
+
name: 'name',
|
|
387
|
+
type: 'string',
|
|
388
|
+
default: '',
|
|
389
|
+
description: 'Full name of the client',
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
displayName: 'Email',
|
|
393
|
+
name: 'email',
|
|
394
|
+
type: 'string',
|
|
395
|
+
default: '',
|
|
396
|
+
description: 'Email address',
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
displayName: 'Company',
|
|
400
|
+
name: 'company',
|
|
401
|
+
type: 'string',
|
|
402
|
+
default: '',
|
|
403
|
+
description: 'Company name',
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
displayName: 'Phone',
|
|
407
|
+
name: 'phone',
|
|
408
|
+
type: 'string',
|
|
409
|
+
default: '',
|
|
410
|
+
description: 'Phone number',
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
displayName: 'Legal Name',
|
|
414
|
+
name: 'legal_name',
|
|
415
|
+
type: 'string',
|
|
416
|
+
default: '',
|
|
417
|
+
description: 'Legal name for invoicing (Razon Social)',
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
displayName: 'Tax ID (RFC)',
|
|
421
|
+
name: 'tax_id',
|
|
422
|
+
type: 'string',
|
|
423
|
+
default: '',
|
|
424
|
+
description: 'Mexican RFC tax identification number',
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
displayName: 'Tax System',
|
|
428
|
+
name: 'tax_system',
|
|
429
|
+
type: 'options',
|
|
430
|
+
default: '601',
|
|
431
|
+
options: [
|
|
432
|
+
{ name: '601 - General de Ley Personas Morales', value: '601' },
|
|
433
|
+
{ name: '603 - Personas Morales con Fines no Lucrativos', value: '603' },
|
|
434
|
+
{ name: '605 - Sueldos y Salarios', value: '605' },
|
|
435
|
+
{ name: '606 - Arrendamiento', value: '606' },
|
|
436
|
+
{ name: '612 - Personas Fisicas con Actividades Empresariales', value: '612' },
|
|
437
|
+
{ name: '616 - Sin Obligaciones Fiscales', value: '616' },
|
|
438
|
+
{ name: '621 - Incorporacion Fiscal', value: '621' },
|
|
439
|
+
{ name: '625 - Regimen Simplificado de Confianza (RESICO)', value: '625' },
|
|
440
|
+
{ name: '626 - RESICO Personas Morales', value: '626' },
|
|
441
|
+
],
|
|
442
|
+
description: 'SAT tax regime code',
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
displayName: 'CFDI Use',
|
|
446
|
+
name: 'use',
|
|
447
|
+
type: 'options',
|
|
448
|
+
default: 'G03',
|
|
449
|
+
options: [
|
|
450
|
+
{ name: 'G01 - Adquisicion de Mercancias', value: 'G01' },
|
|
451
|
+
{ name: 'G02 - Devoluciones, Descuentos o Bonificaciones', value: 'G02' },
|
|
452
|
+
{ name: 'G03 - Gastos en General', value: 'G03' },
|
|
453
|
+
{ name: 'P01 - Por Definir', value: 'P01' },
|
|
454
|
+
{ name: 'S01 - Sin Efectos Fiscales', value: 'S01' },
|
|
455
|
+
],
|
|
456
|
+
description: 'CFDI use code',
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
displayName: 'Street',
|
|
460
|
+
name: 'street',
|
|
461
|
+
type: 'string',
|
|
462
|
+
default: '',
|
|
463
|
+
description: 'Street address',
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
displayName: 'Zip Code',
|
|
467
|
+
name: 'zip',
|
|
468
|
+
type: 'string',
|
|
469
|
+
default: '',
|
|
470
|
+
description: 'Postal code',
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
displayName: 'City',
|
|
474
|
+
name: 'city',
|
|
475
|
+
type: 'string',
|
|
476
|
+
default: '',
|
|
477
|
+
description: 'City',
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
displayName: 'State',
|
|
481
|
+
name: 'state',
|
|
482
|
+
type: 'string',
|
|
483
|
+
default: '',
|
|
484
|
+
description: 'State',
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
displayName: 'Country',
|
|
488
|
+
name: 'country',
|
|
489
|
+
type: 'string',
|
|
490
|
+
default: 'Mexico',
|
|
491
|
+
description: 'Country',
|
|
492
|
+
},
|
|
493
|
+
],
|
|
494
|
+
},
|
|
495
|
+
// ----------------------------------
|
|
496
|
+
// client: getAll
|
|
497
|
+
// ----------------------------------
|
|
498
|
+
{
|
|
499
|
+
displayName: 'Return All',
|
|
500
|
+
name: 'returnAll',
|
|
501
|
+
type: 'boolean',
|
|
502
|
+
default: false,
|
|
503
|
+
displayOptions: {
|
|
504
|
+
show: {
|
|
505
|
+
resource: ['client'],
|
|
506
|
+
operation: ['getAll'],
|
|
507
|
+
},
|
|
508
|
+
},
|
|
509
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
displayName: 'Limit',
|
|
513
|
+
name: 'limit',
|
|
514
|
+
type: 'number',
|
|
515
|
+
default: 50,
|
|
516
|
+
typeOptions: {
|
|
517
|
+
minValue: 1,
|
|
518
|
+
maxValue: 100,
|
|
519
|
+
},
|
|
520
|
+
displayOptions: {
|
|
521
|
+
show: {
|
|
522
|
+
resource: ['client'],
|
|
523
|
+
operation: ['getAll'],
|
|
524
|
+
returnAll: [false],
|
|
525
|
+
},
|
|
526
|
+
},
|
|
527
|
+
description: 'Max number of results to return',
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
displayName: 'Filters',
|
|
531
|
+
name: 'filters',
|
|
532
|
+
type: 'collection',
|
|
533
|
+
placeholder: 'Add Filter',
|
|
534
|
+
default: {},
|
|
535
|
+
displayOptions: {
|
|
536
|
+
show: {
|
|
537
|
+
resource: ['client'],
|
|
538
|
+
operation: ['getAll'],
|
|
539
|
+
},
|
|
540
|
+
},
|
|
541
|
+
options: [
|
|
542
|
+
{
|
|
543
|
+
displayName: 'Order By',
|
|
544
|
+
name: 'orderBy',
|
|
545
|
+
type: 'options',
|
|
546
|
+
options: [
|
|
547
|
+
{ name: 'Name', value: 'name' },
|
|
548
|
+
{ name: 'Created At', value: 'timestamp' },
|
|
549
|
+
],
|
|
550
|
+
default: 'timestamp',
|
|
551
|
+
description: 'Field to order results by',
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
displayName: 'Sort Direction',
|
|
555
|
+
name: 'sort',
|
|
556
|
+
type: 'options',
|
|
557
|
+
options: [
|
|
558
|
+
{ name: 'Ascending', value: 'asc' },
|
|
559
|
+
{ name: 'Descending', value: 'desc' },
|
|
560
|
+
],
|
|
561
|
+
default: 'desc',
|
|
562
|
+
description: 'Sort direction',
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
displayName: 'Created After',
|
|
566
|
+
name: 'createdAfter',
|
|
567
|
+
type: 'dateTime',
|
|
568
|
+
default: '',
|
|
569
|
+
description: 'Filter clients created after this date',
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
displayName: 'Created Before',
|
|
573
|
+
name: 'createdBefore',
|
|
574
|
+
type: 'dateTime',
|
|
575
|
+
default: '',
|
|
576
|
+
description: 'Filter clients created before this date',
|
|
577
|
+
},
|
|
578
|
+
],
|
|
579
|
+
},
|
|
580
|
+
// ----------------------------------
|
|
581
|
+
// client: Common - Team
|
|
582
|
+
// ----------------------------------
|
|
583
|
+
{
|
|
584
|
+
displayName: 'Team ID',
|
|
585
|
+
name: 'team',
|
|
586
|
+
type: 'string',
|
|
587
|
+
default: '',
|
|
588
|
+
displayOptions: {
|
|
589
|
+
show: {
|
|
590
|
+
resource: ['client'],
|
|
591
|
+
},
|
|
592
|
+
},
|
|
593
|
+
description: 'Team ID for Gigstack Connect (multi-team access). Leave empty to use default team.',
|
|
594
|
+
},
|
|
595
|
+
];
|