@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,362 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.userFields = exports.userOperations = void 0;
|
|
4
|
+
exports.userOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['user'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Create',
|
|
18
|
+
value: 'create',
|
|
19
|
+
description: 'Create a new user',
|
|
20
|
+
action: 'Create a user',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Generate Login Link',
|
|
24
|
+
value: 'loginLink',
|
|
25
|
+
description: 'Generate a direct login link for a user',
|
|
26
|
+
action: 'Generate login link',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Get',
|
|
30
|
+
value: 'get',
|
|
31
|
+
description: 'Get a user by ID',
|
|
32
|
+
action: 'Get a user',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Get Many',
|
|
36
|
+
value: 'getAll',
|
|
37
|
+
description: 'Get many users',
|
|
38
|
+
action: 'Get many users',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'Reset Password',
|
|
42
|
+
value: 'resetPassword',
|
|
43
|
+
description: 'Reset a user password',
|
|
44
|
+
action: 'Reset user password',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'Update',
|
|
48
|
+
value: 'update',
|
|
49
|
+
description: 'Update a user',
|
|
50
|
+
action: 'Update a user',
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
default: 'getAll',
|
|
54
|
+
},
|
|
55
|
+
];
|
|
56
|
+
exports.userFields = [
|
|
57
|
+
// ----------------------------------
|
|
58
|
+
// user: create
|
|
59
|
+
// ----------------------------------
|
|
60
|
+
{
|
|
61
|
+
displayName: 'Email',
|
|
62
|
+
name: 'email',
|
|
63
|
+
type: 'string',
|
|
64
|
+
placeholder: 'name@email.com',
|
|
65
|
+
required: true,
|
|
66
|
+
default: '',
|
|
67
|
+
displayOptions: {
|
|
68
|
+
show: {
|
|
69
|
+
resource: ['user'],
|
|
70
|
+
operation: ['create'],
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
description: 'Email address of the user',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
displayName: 'Additional Fields',
|
|
77
|
+
name: 'additionalFields',
|
|
78
|
+
type: 'collection',
|
|
79
|
+
placeholder: 'Add Field',
|
|
80
|
+
default: {},
|
|
81
|
+
displayOptions: {
|
|
82
|
+
show: {
|
|
83
|
+
resource: ['user'],
|
|
84
|
+
operation: ['create'],
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
options: [
|
|
88
|
+
{
|
|
89
|
+
displayName: 'First Name',
|
|
90
|
+
name: 'first_name',
|
|
91
|
+
type: 'string',
|
|
92
|
+
default: '',
|
|
93
|
+
description: 'First name of the user',
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
displayName: 'Last Name',
|
|
97
|
+
name: 'last_name',
|
|
98
|
+
type: 'string',
|
|
99
|
+
default: '',
|
|
100
|
+
description: 'Last name of the user',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
displayName: 'Phone',
|
|
104
|
+
name: 'phone',
|
|
105
|
+
type: 'string',
|
|
106
|
+
default: '',
|
|
107
|
+
description: 'Phone number',
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
displayName: 'Company Role',
|
|
111
|
+
name: 'company_role',
|
|
112
|
+
type: 'string',
|
|
113
|
+
default: '',
|
|
114
|
+
description: 'Role in the company',
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
displayName: 'Role',
|
|
118
|
+
name: 'role',
|
|
119
|
+
type: 'options',
|
|
120
|
+
options: [
|
|
121
|
+
{ name: 'Admin', value: 'admin' },
|
|
122
|
+
{ name: 'Editor', value: 'editor' },
|
|
123
|
+
{ name: 'Viewer', value: 'viewer' },
|
|
124
|
+
],
|
|
125
|
+
default: 'viewer',
|
|
126
|
+
description: 'User role in the system',
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
displayName: 'Auto Join Team',
|
|
130
|
+
name: 'auto_join',
|
|
131
|
+
type: 'boolean',
|
|
132
|
+
default: true,
|
|
133
|
+
description: 'Whether to automatically join the user to the team',
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
displayName: 'Street',
|
|
137
|
+
name: 'street',
|
|
138
|
+
type: 'string',
|
|
139
|
+
default: '',
|
|
140
|
+
description: 'Street address',
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
displayName: 'Zip Code',
|
|
144
|
+
name: 'zip',
|
|
145
|
+
type: 'string',
|
|
146
|
+
default: '',
|
|
147
|
+
description: 'Postal code',
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
displayName: 'City',
|
|
151
|
+
name: 'city',
|
|
152
|
+
type: 'string',
|
|
153
|
+
default: '',
|
|
154
|
+
description: 'City',
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
displayName: 'State',
|
|
158
|
+
name: 'state',
|
|
159
|
+
type: 'string',
|
|
160
|
+
default: '',
|
|
161
|
+
description: 'State',
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
displayName: 'Country',
|
|
165
|
+
name: 'country',
|
|
166
|
+
type: 'string',
|
|
167
|
+
default: 'Mexico',
|
|
168
|
+
description: 'Country',
|
|
169
|
+
},
|
|
170
|
+
],
|
|
171
|
+
},
|
|
172
|
+
// ----------------------------------
|
|
173
|
+
// user: get, update
|
|
174
|
+
// ----------------------------------
|
|
175
|
+
{
|
|
176
|
+
displayName: 'User ID',
|
|
177
|
+
name: 'userId',
|
|
178
|
+
type: 'string',
|
|
179
|
+
required: true,
|
|
180
|
+
default: '',
|
|
181
|
+
displayOptions: {
|
|
182
|
+
show: {
|
|
183
|
+
resource: ['user'],
|
|
184
|
+
operation: ['get', 'update'],
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
description: 'The ID of the user',
|
|
188
|
+
},
|
|
189
|
+
// ----------------------------------
|
|
190
|
+
// user: update
|
|
191
|
+
// ----------------------------------
|
|
192
|
+
{
|
|
193
|
+
displayName: 'Update Fields',
|
|
194
|
+
name: 'updateFields',
|
|
195
|
+
type: 'collection',
|
|
196
|
+
placeholder: 'Add Field',
|
|
197
|
+
default: {},
|
|
198
|
+
displayOptions: {
|
|
199
|
+
show: {
|
|
200
|
+
resource: ['user'],
|
|
201
|
+
operation: ['update'],
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
options: [
|
|
205
|
+
{
|
|
206
|
+
displayName: 'Email',
|
|
207
|
+
name: 'email',
|
|
208
|
+
type: 'string',
|
|
209
|
+
default: '',
|
|
210
|
+
description: 'Email address',
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
displayName: 'First Name',
|
|
214
|
+
name: 'first_name',
|
|
215
|
+
type: 'string',
|
|
216
|
+
default: '',
|
|
217
|
+
description: 'First name of the user',
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
displayName: 'Last Name',
|
|
221
|
+
name: 'last_name',
|
|
222
|
+
type: 'string',
|
|
223
|
+
default: '',
|
|
224
|
+
description: 'Last name of the user',
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
displayName: 'Phone',
|
|
228
|
+
name: 'phone',
|
|
229
|
+
type: 'string',
|
|
230
|
+
default: '',
|
|
231
|
+
description: 'Phone number',
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
displayName: 'Company Role',
|
|
235
|
+
name: 'company_role',
|
|
236
|
+
type: 'string',
|
|
237
|
+
default: '',
|
|
238
|
+
description: 'Role in the company',
|
|
239
|
+
},
|
|
240
|
+
],
|
|
241
|
+
},
|
|
242
|
+
// ----------------------------------
|
|
243
|
+
// user: resetPassword
|
|
244
|
+
// ----------------------------------
|
|
245
|
+
{
|
|
246
|
+
displayName: 'User Email',
|
|
247
|
+
name: 'userEmail',
|
|
248
|
+
type: 'string',
|
|
249
|
+
required: true,
|
|
250
|
+
default: '',
|
|
251
|
+
displayOptions: {
|
|
252
|
+
show: {
|
|
253
|
+
resource: ['user'],
|
|
254
|
+
operation: ['resetPassword'],
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
description: 'Email of the user to reset password for',
|
|
258
|
+
},
|
|
259
|
+
// ----------------------------------
|
|
260
|
+
// user: loginLink
|
|
261
|
+
// ----------------------------------
|
|
262
|
+
{
|
|
263
|
+
displayName: 'User ID',
|
|
264
|
+
name: 'userId',
|
|
265
|
+
type: 'string',
|
|
266
|
+
required: true,
|
|
267
|
+
default: '',
|
|
268
|
+
displayOptions: {
|
|
269
|
+
show: {
|
|
270
|
+
resource: ['user'],
|
|
271
|
+
operation: ['loginLink'],
|
|
272
|
+
},
|
|
273
|
+
},
|
|
274
|
+
description: 'The ID of the user to generate login link for',
|
|
275
|
+
},
|
|
276
|
+
// ----------------------------------
|
|
277
|
+
// user: getAll
|
|
278
|
+
// ----------------------------------
|
|
279
|
+
{
|
|
280
|
+
displayName: 'Return All',
|
|
281
|
+
name: 'returnAll',
|
|
282
|
+
type: 'boolean',
|
|
283
|
+
default: false,
|
|
284
|
+
displayOptions: {
|
|
285
|
+
show: {
|
|
286
|
+
resource: ['user'],
|
|
287
|
+
operation: ['getAll'],
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
displayName: 'Limit',
|
|
294
|
+
name: 'limit',
|
|
295
|
+
type: 'number',
|
|
296
|
+
default: 50,
|
|
297
|
+
typeOptions: {
|
|
298
|
+
minValue: 1,
|
|
299
|
+
maxValue: 100,
|
|
300
|
+
},
|
|
301
|
+
displayOptions: {
|
|
302
|
+
show: {
|
|
303
|
+
resource: ['user'],
|
|
304
|
+
operation: ['getAll'],
|
|
305
|
+
returnAll: [false],
|
|
306
|
+
},
|
|
307
|
+
},
|
|
308
|
+
description: 'Max number of results to return',
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
displayName: 'Filters',
|
|
312
|
+
name: 'filters',
|
|
313
|
+
type: 'collection',
|
|
314
|
+
placeholder: 'Add Filter',
|
|
315
|
+
default: {},
|
|
316
|
+
displayOptions: {
|
|
317
|
+
show: {
|
|
318
|
+
resource: ['user'],
|
|
319
|
+
operation: ['getAll'],
|
|
320
|
+
},
|
|
321
|
+
},
|
|
322
|
+
options: [
|
|
323
|
+
{
|
|
324
|
+
displayName: 'Order By',
|
|
325
|
+
name: 'orderBy',
|
|
326
|
+
type: 'options',
|
|
327
|
+
options: [
|
|
328
|
+
{ name: 'Name', value: 'name' },
|
|
329
|
+
{ name: 'Created At', value: 'timestamp' },
|
|
330
|
+
],
|
|
331
|
+
default: 'timestamp',
|
|
332
|
+
description: 'Field to order results by',
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
displayName: 'Sort Direction',
|
|
336
|
+
name: 'sort',
|
|
337
|
+
type: 'options',
|
|
338
|
+
options: [
|
|
339
|
+
{ name: 'Ascending', value: 'asc' },
|
|
340
|
+
{ name: 'Descending', value: 'desc' },
|
|
341
|
+
],
|
|
342
|
+
default: 'desc',
|
|
343
|
+
description: 'Sort direction',
|
|
344
|
+
},
|
|
345
|
+
],
|
|
346
|
+
},
|
|
347
|
+
// ----------------------------------
|
|
348
|
+
// user: Common - Team
|
|
349
|
+
// ----------------------------------
|
|
350
|
+
{
|
|
351
|
+
displayName: 'Team ID',
|
|
352
|
+
name: 'team',
|
|
353
|
+
type: 'string',
|
|
354
|
+
default: '',
|
|
355
|
+
displayOptions: {
|
|
356
|
+
show: {
|
|
357
|
+
resource: ['user'],
|
|
358
|
+
},
|
|
359
|
+
},
|
|
360
|
+
description: 'Team ID for Gigstack Connect (multi-team access). Leave empty to use default team.',
|
|
361
|
+
},
|
|
362
|
+
];
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.webhookFields = exports.webhookOperations = void 0;
|
|
4
|
+
exports.webhookOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['webhook'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Create',
|
|
18
|
+
value: 'create',
|
|
19
|
+
description: 'Create a new webhook',
|
|
20
|
+
action: 'Create a webhook',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Delete',
|
|
24
|
+
value: 'delete',
|
|
25
|
+
description: 'Delete a webhook',
|
|
26
|
+
action: 'Delete a webhook',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Get',
|
|
30
|
+
value: 'get',
|
|
31
|
+
description: 'Get a webhook by ID',
|
|
32
|
+
action: 'Get a webhook',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Get Many',
|
|
36
|
+
value: 'getAll',
|
|
37
|
+
description: 'Get many webhooks',
|
|
38
|
+
action: 'Get many webhooks',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'Update',
|
|
42
|
+
value: 'update',
|
|
43
|
+
description: 'Update a webhook',
|
|
44
|
+
action: 'Update a webhook',
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
default: 'getAll',
|
|
48
|
+
},
|
|
49
|
+
];
|
|
50
|
+
exports.webhookFields = [
|
|
51
|
+
// ----------------------------------
|
|
52
|
+
// webhook: create
|
|
53
|
+
// ----------------------------------
|
|
54
|
+
{
|
|
55
|
+
displayName: 'URL',
|
|
56
|
+
name: 'url',
|
|
57
|
+
type: 'string',
|
|
58
|
+
required: true,
|
|
59
|
+
default: '',
|
|
60
|
+
placeholder: 'https://your-domain.com/webhooks/gigstack',
|
|
61
|
+
displayOptions: {
|
|
62
|
+
show: {
|
|
63
|
+
resource: ['webhook'],
|
|
64
|
+
operation: ['create'],
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
description: 'The URL to receive webhook notifications',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
displayName: 'Events',
|
|
71
|
+
name: 'events',
|
|
72
|
+
type: 'multiOptions',
|
|
73
|
+
required: true,
|
|
74
|
+
options: [
|
|
75
|
+
// Payment events
|
|
76
|
+
{ name: 'Payment Created', value: 'payment.created' },
|
|
77
|
+
{ name: 'Payment Succeeded', value: 'payment.succeeded' },
|
|
78
|
+
{ name: 'Payment Failed', value: 'payment.failed' },
|
|
79
|
+
{ name: 'Payment Cancelled', value: 'payment.cancelled' },
|
|
80
|
+
{ name: 'Payment Refunded', value: 'payment.refunded' },
|
|
81
|
+
// Invoice events
|
|
82
|
+
{ name: 'Invoice Created', value: 'invoice.created' },
|
|
83
|
+
{ name: 'Invoice Stamped', value: 'invoice.stamped' },
|
|
84
|
+
{ name: 'Invoice Cancelled', value: 'invoice.cancelled' },
|
|
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' },
|
|
90
|
+
// Receipt events
|
|
91
|
+
{ name: 'Receipt Created', value: 'receipt.created' },
|
|
92
|
+
{ name: 'Receipt Stamped', value: 'receipt.stamped' },
|
|
93
|
+
{ name: 'Receipt Cancelled', value: 'receipt.cancelled' },
|
|
94
|
+
],
|
|
95
|
+
default: ['payment.succeeded', 'invoice.created'],
|
|
96
|
+
displayOptions: {
|
|
97
|
+
show: {
|
|
98
|
+
resource: ['webhook'],
|
|
99
|
+
operation: ['create'],
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
description: 'Events that will trigger this webhook',
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
displayName: 'Additional Fields',
|
|
106
|
+
name: 'additionalFields',
|
|
107
|
+
type: 'collection',
|
|
108
|
+
placeholder: 'Add Field',
|
|
109
|
+
default: {},
|
|
110
|
+
displayOptions: {
|
|
111
|
+
show: {
|
|
112
|
+
resource: ['webhook'],
|
|
113
|
+
operation: ['create'],
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
options: [
|
|
117
|
+
{
|
|
118
|
+
displayName: 'Description',
|
|
119
|
+
name: 'description',
|
|
120
|
+
type: 'string',
|
|
121
|
+
default: '',
|
|
122
|
+
description: 'Description of the webhook',
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
displayName: 'Status',
|
|
126
|
+
name: 'status',
|
|
127
|
+
type: 'options',
|
|
128
|
+
options: [
|
|
129
|
+
{ name: 'Active', value: 'active' },
|
|
130
|
+
{ name: 'Inactive', value: 'inactive' },
|
|
131
|
+
],
|
|
132
|
+
default: 'active',
|
|
133
|
+
description: 'Webhook status',
|
|
134
|
+
},
|
|
135
|
+
],
|
|
136
|
+
},
|
|
137
|
+
// ----------------------------------
|
|
138
|
+
// webhook: get, update, delete
|
|
139
|
+
// ----------------------------------
|
|
140
|
+
{
|
|
141
|
+
displayName: 'Webhook ID',
|
|
142
|
+
name: 'webhookId',
|
|
143
|
+
type: 'string',
|
|
144
|
+
required: true,
|
|
145
|
+
default: '',
|
|
146
|
+
displayOptions: {
|
|
147
|
+
show: {
|
|
148
|
+
resource: ['webhook'],
|
|
149
|
+
operation: ['get', 'update', 'delete'],
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
description: 'The ID of the webhook',
|
|
153
|
+
},
|
|
154
|
+
// ----------------------------------
|
|
155
|
+
// webhook: update
|
|
156
|
+
// ----------------------------------
|
|
157
|
+
{
|
|
158
|
+
displayName: 'Update Fields',
|
|
159
|
+
name: 'updateFields',
|
|
160
|
+
type: 'collection',
|
|
161
|
+
placeholder: 'Add Field',
|
|
162
|
+
default: {},
|
|
163
|
+
displayOptions: {
|
|
164
|
+
show: {
|
|
165
|
+
resource: ['webhook'],
|
|
166
|
+
operation: ['update'],
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
options: [
|
|
170
|
+
{
|
|
171
|
+
displayName: 'URL',
|
|
172
|
+
name: 'url',
|
|
173
|
+
type: 'string',
|
|
174
|
+
default: '',
|
|
175
|
+
description: 'The URL to receive webhook notifications',
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
displayName: 'Events',
|
|
179
|
+
name: 'events',
|
|
180
|
+
type: 'multiOptions',
|
|
181
|
+
options: [
|
|
182
|
+
{ name: 'Payment Created', value: 'payment.created' },
|
|
183
|
+
{ name: 'Payment Succeeded', value: 'payment.succeeded' },
|
|
184
|
+
{ name: 'Payment Failed', value: 'payment.failed' },
|
|
185
|
+
{ name: 'Payment Cancelled', value: 'payment.cancelled' },
|
|
186
|
+
{ name: 'Payment Refunded', value: 'payment.refunded' },
|
|
187
|
+
{ name: 'Invoice Created', value: 'invoice.created' },
|
|
188
|
+
{ name: 'Invoice Stamped', value: 'invoice.stamped' },
|
|
189
|
+
{ name: 'Invoice Cancelled', value: 'invoice.cancelled' },
|
|
190
|
+
{ name: 'Client Created', value: 'client.created' },
|
|
191
|
+
{ name: 'Client Updated', value: 'client.updated' },
|
|
192
|
+
{ name: 'Receipt Created', value: 'receipt.created' },
|
|
193
|
+
{ name: 'Receipt Stamped', value: 'receipt.stamped' },
|
|
194
|
+
],
|
|
195
|
+
default: [],
|
|
196
|
+
description: 'Events that will trigger this webhook',
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
displayName: 'Description',
|
|
200
|
+
name: 'description',
|
|
201
|
+
type: 'string',
|
|
202
|
+
default: '',
|
|
203
|
+
description: 'Description of the webhook',
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
displayName: 'Status',
|
|
207
|
+
name: 'status',
|
|
208
|
+
type: 'options',
|
|
209
|
+
options: [
|
|
210
|
+
{ name: 'Active', value: 'active' },
|
|
211
|
+
{ name: 'Inactive', value: 'inactive' },
|
|
212
|
+
],
|
|
213
|
+
default: 'active',
|
|
214
|
+
description: 'Webhook status',
|
|
215
|
+
},
|
|
216
|
+
],
|
|
217
|
+
},
|
|
218
|
+
// ----------------------------------
|
|
219
|
+
// webhook: getAll
|
|
220
|
+
// ----------------------------------
|
|
221
|
+
{
|
|
222
|
+
displayName: 'Return All',
|
|
223
|
+
name: 'returnAll',
|
|
224
|
+
type: 'boolean',
|
|
225
|
+
default: false,
|
|
226
|
+
displayOptions: {
|
|
227
|
+
show: {
|
|
228
|
+
resource: ['webhook'],
|
|
229
|
+
operation: ['getAll'],
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
displayName: 'Limit',
|
|
236
|
+
name: 'limit',
|
|
237
|
+
type: 'number',
|
|
238
|
+
default: 10,
|
|
239
|
+
typeOptions: {
|
|
240
|
+
minValue: 1,
|
|
241
|
+
maxValue: 100,
|
|
242
|
+
},
|
|
243
|
+
displayOptions: {
|
|
244
|
+
show: {
|
|
245
|
+
resource: ['webhook'],
|
|
246
|
+
operation: ['getAll'],
|
|
247
|
+
returnAll: [false],
|
|
248
|
+
},
|
|
249
|
+
},
|
|
250
|
+
description: 'Max number of results to return',
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
displayName: 'Filters',
|
|
254
|
+
name: 'filters',
|
|
255
|
+
type: 'collection',
|
|
256
|
+
placeholder: 'Add Filter',
|
|
257
|
+
default: {},
|
|
258
|
+
displayOptions: {
|
|
259
|
+
show: {
|
|
260
|
+
resource: ['webhook'],
|
|
261
|
+
operation: ['getAll'],
|
|
262
|
+
},
|
|
263
|
+
},
|
|
264
|
+
options: [
|
|
265
|
+
{
|
|
266
|
+
displayName: 'Status',
|
|
267
|
+
name: 'status',
|
|
268
|
+
type: 'options',
|
|
269
|
+
options: [
|
|
270
|
+
{ name: 'Active', value: 'active' },
|
|
271
|
+
{ name: 'Inactive', value: 'inactive' },
|
|
272
|
+
],
|
|
273
|
+
default: 'active',
|
|
274
|
+
description: 'Filter by webhook status',
|
|
275
|
+
},
|
|
276
|
+
],
|
|
277
|
+
},
|
|
278
|
+
// ----------------------------------
|
|
279
|
+
// webhook: Common - Team
|
|
280
|
+
// ----------------------------------
|
|
281
|
+
{
|
|
282
|
+
displayName: 'Team ID',
|
|
283
|
+
name: 'team',
|
|
284
|
+
type: 'string',
|
|
285
|
+
default: '',
|
|
286
|
+
displayOptions: {
|
|
287
|
+
show: {
|
|
288
|
+
resource: ['webhook'],
|
|
289
|
+
},
|
|
290
|
+
},
|
|
291
|
+
description: 'Team ID for Gigstack Connect (multi-team access). Leave empty to use default team.',
|
|
292
|
+
},
|
|
293
|
+
];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './ClientDescription';
|
|
2
|
+
export * from './ServiceDescription';
|
|
3
|
+
export * from './InvoiceDescription';
|
|
4
|
+
export * from './PaymentDescription';
|
|
5
|
+
export * from './ReceiptDescription';
|
|
6
|
+
export * from './TeamDescription';
|
|
7
|
+
export * from './UserDescription';
|
|
8
|
+
export * from './WebhookDescription';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ClientDescription"), exports);
|
|
18
|
+
__exportStar(require("./ServiceDescription"), exports);
|
|
19
|
+
__exportStar(require("./InvoiceDescription"), exports);
|
|
20
|
+
__exportStar(require("./PaymentDescription"), exports);
|
|
21
|
+
__exportStar(require("./ReceiptDescription"), exports);
|
|
22
|
+
__exportStar(require("./TeamDescription"), exports);
|
|
23
|
+
__exportStar(require("./UserDescription"), exports);
|
|
24
|
+
__exportStar(require("./WebhookDescription"), exports);
|