@frogbotai/piece-xero 0.27.0 → 0.29.0

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.
@@ -1,52 +1,677 @@
1
- import type { PieceAppTrigger, PiecePollingTrigger } from 'frogbot/pieces';
1
+ import type { PieceJSON } from 'frogbot/pieces';
2
2
  import { z } from 'zod';
3
- export declare const xeroTriggers: (PiecePollingTrigger<z.ZodObject<{
4
- tenantId: z.ZodString;
5
- statuses: z.ZodDefault<z.ZodArray<z.ZodString>>;
6
- types: z.ZodDefault<z.ZodArray<z.ZodString>>;
7
- contactId: z.ZodOptional<z.ZodString>;
8
- reference: z.ZodOptional<z.ZodString>;
9
- dateFrom: z.ZodOptional<z.ZodString>;
10
- dateTo: z.ZodOptional<z.ZodString>;
11
- pageSize: z.ZodDefault<z.ZodNumber>;
12
- }, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodJSONSchema>>, object, {
13
- listTenants: (signal?: AbortSignal) => Promise<{
14
- tenantId: string;
15
- tenantName: string;
16
- }[]>;
17
- request: <TSchema extends z.ZodType>(input: {
18
- path: string;
19
- tenantId?: string;
20
- method?: "DELETE" | "GET" | "POST" | "PUT";
21
- body?: BodyInit | import("./client.js").XeroJSON;
22
- headers?: Record<string, string>;
23
- query?: Record<string, boolean | number | string | undefined>;
24
- signal?: AbortSignal;
25
- base?: "accounting" | "connections" | "identity" | "projects";
26
- }, schema: TSchema) => Promise<z.core.output<TSchema>>;
27
- }, {
28
- nextPage: number;
29
- seenIds: string[];
30
- values: Record<string, number | boolean>;
31
- modifiedAfter?: string | undefined;
32
- windowStarted?: string | undefined;
33
- }> | PieceAppTrigger<z.ZodObject<{
34
- tenantId: z.ZodString;
35
- fetchFullRecord: z.ZodDefault<z.ZodBoolean>;
36
- }, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodJSONSchema>>, object, {
37
- listTenants: (signal?: AbortSignal) => Promise<{
38
- tenantId: string;
39
- tenantName: string;
40
- }[]>;
41
- request: <TSchema extends z.ZodType>(input: {
42
- path: string;
43
- tenantId?: string;
44
- method?: "DELETE" | "GET" | "POST" | "PUT";
45
- body?: BodyInit | import("./client.js").XeroJSON;
46
- headers?: Record<string, string>;
47
- query?: Record<string, boolean | number | string | undefined>;
48
- signal?: AbortSignal;
49
- base?: "accounting" | "connections" | "identity" | "projects";
50
- }, schema: TSchema) => Promise<z.core.output<TSchema>>;
51
- }>)[];
3
+ export declare const xeroTriggers: (({
4
+ slug: string;
5
+ label?: string;
6
+ description: string;
7
+ input: z.ZodObject<{
8
+ tenantId: z.ZodString;
9
+ fetchFullRecord: z.ZodDefault<z.ZodBoolean>;
10
+ }, z.core.$strip>;
11
+ output?: z.ZodObject<{}, z.core.$catchall<z.ZodJSONSchema>> | undefined;
12
+ sample?: {
13
+ [x: string]: z.core.util.JSONType;
14
+ } | undefined;
15
+ } & {
16
+ type: "app";
17
+ event: string;
18
+ run(args: import("frogbot/pieces").PieceRunArgs<{
19
+ tenantId: string;
20
+ fetchFullRecord: boolean;
21
+ }, {
22
+ webhookKey?: string | undefined;
23
+ }, {
24
+ listTenants: (signal?: AbortSignal) => Promise<{
25
+ tenantId: string;
26
+ tenantName: string;
27
+ }[]>;
28
+ request: <TSchema extends z.ZodType>(input: {
29
+ path: string;
30
+ tenantId?: string;
31
+ method?: "DELETE" | "GET" | "POST" | "PUT";
32
+ body?: BodyInit | import("./client.js").XeroJSON;
33
+ headers?: Record<string, string>;
34
+ query?: Record<string, boolean | number | string | undefined>;
35
+ signal?: AbortSignal;
36
+ base?: "accounting" | "connections" | "identity" | "projects";
37
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
38
+ }>): Promise<import("frogbot/pieces").TriggerEvent<{
39
+ [x: string]: z.core.util.JSONType;
40
+ }>[]>;
41
+ } & {
42
+ slug: "contactCreated";
43
+ }) | ({
44
+ slug: string;
45
+ label?: string;
46
+ description: string;
47
+ input: z.ZodObject<{
48
+ tenantId: z.ZodString;
49
+ fetchFullRecord: z.ZodDefault<z.ZodBoolean>;
50
+ }, z.core.$strip>;
51
+ output?: z.ZodObject<{}, z.core.$catchall<z.ZodJSONSchema>> | undefined;
52
+ sample?: {
53
+ [x: string]: z.core.util.JSONType;
54
+ } | undefined;
55
+ } & {
56
+ type: "app";
57
+ event: string;
58
+ run(args: import("frogbot/pieces").PieceRunArgs<{
59
+ tenantId: string;
60
+ fetchFullRecord: boolean;
61
+ }, {
62
+ webhookKey?: string | undefined;
63
+ }, {
64
+ listTenants: (signal?: AbortSignal) => Promise<{
65
+ tenantId: string;
66
+ tenantName: string;
67
+ }[]>;
68
+ request: <TSchema extends z.ZodType>(input: {
69
+ path: string;
70
+ tenantId?: string;
71
+ method?: "DELETE" | "GET" | "POST" | "PUT";
72
+ body?: BodyInit | import("./client.js").XeroJSON;
73
+ headers?: Record<string, string>;
74
+ query?: Record<string, boolean | number | string | undefined>;
75
+ signal?: AbortSignal;
76
+ base?: "accounting" | "connections" | "identity" | "projects";
77
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
78
+ }>): Promise<import("frogbot/pieces").TriggerEvent<{
79
+ [x: string]: z.core.util.JSONType;
80
+ }>[]>;
81
+ } & {
82
+ slug: "contactCreatedOrUpdated";
83
+ }) | ({
84
+ slug: string;
85
+ label?: string;
86
+ description: string;
87
+ input: z.ZodObject<{
88
+ tenantId: z.ZodString;
89
+ fetchFullRecord: z.ZodDefault<z.ZodBoolean>;
90
+ }, z.core.$strip>;
91
+ output?: z.ZodObject<{}, z.core.$catchall<z.ZodJSONSchema>> | undefined;
92
+ sample?: {
93
+ [x: string]: z.core.util.JSONType;
94
+ } | undefined;
95
+ } & {
96
+ type: "app";
97
+ event: string;
98
+ run(args: import("frogbot/pieces").PieceRunArgs<{
99
+ tenantId: string;
100
+ fetchFullRecord: boolean;
101
+ }, {
102
+ webhookKey?: string | undefined;
103
+ }, {
104
+ listTenants: (signal?: AbortSignal) => Promise<{
105
+ tenantId: string;
106
+ tenantName: string;
107
+ }[]>;
108
+ request: <TSchema extends z.ZodType>(input: {
109
+ path: string;
110
+ tenantId?: string;
111
+ method?: "DELETE" | "GET" | "POST" | "PUT";
112
+ body?: BodyInit | import("./client.js").XeroJSON;
113
+ headers?: Record<string, string>;
114
+ query?: Record<string, boolean | number | string | undefined>;
115
+ signal?: AbortSignal;
116
+ base?: "accounting" | "connections" | "identity" | "projects";
117
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
118
+ }>): Promise<import("frogbot/pieces").TriggerEvent<{
119
+ [x: string]: z.core.util.JSONType;
120
+ }>[]>;
121
+ } & {
122
+ slug: "salesInvoiceCreated";
123
+ }) | ({
124
+ slug: string;
125
+ label?: string;
126
+ description: string;
127
+ input: z.ZodObject<{
128
+ tenantId: z.ZodString;
129
+ fetchFullRecord: z.ZodDefault<z.ZodBoolean>;
130
+ }, z.core.$strip>;
131
+ output?: z.ZodObject<{}, z.core.$catchall<z.ZodJSONSchema>> | undefined;
132
+ sample?: {
133
+ [x: string]: z.core.util.JSONType;
134
+ } | undefined;
135
+ } & {
136
+ type: "app";
137
+ event: string;
138
+ run(args: import("frogbot/pieces").PieceRunArgs<{
139
+ tenantId: string;
140
+ fetchFullRecord: boolean;
141
+ }, {
142
+ webhookKey?: string | undefined;
143
+ }, {
144
+ listTenants: (signal?: AbortSignal) => Promise<{
145
+ tenantId: string;
146
+ tenantName: string;
147
+ }[]>;
148
+ request: <TSchema extends z.ZodType>(input: {
149
+ path: string;
150
+ tenantId?: string;
151
+ method?: "DELETE" | "GET" | "POST" | "PUT";
152
+ body?: BodyInit | import("./client.js").XeroJSON;
153
+ headers?: Record<string, string>;
154
+ query?: Record<string, boolean | number | string | undefined>;
155
+ signal?: AbortSignal;
156
+ base?: "accounting" | "connections" | "identity" | "projects";
157
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
158
+ }>): Promise<import("frogbot/pieces").TriggerEvent<{
159
+ [x: string]: z.core.util.JSONType;
160
+ }>[]>;
161
+ } & {
162
+ slug: "salesInvoiceUpdated";
163
+ }) | ({
164
+ slug: string;
165
+ label?: string;
166
+ description: string;
167
+ input: z.ZodObject<{
168
+ tenantId: z.ZodString;
169
+ statuses: z.ZodDefault<z.ZodArray<z.ZodString>>;
170
+ types: z.ZodDefault<z.ZodArray<z.ZodString>>;
171
+ contactId: z.ZodOptional<z.ZodString>;
172
+ reference: z.ZodOptional<z.ZodString>;
173
+ dateFrom: z.ZodOptional<z.ZodString>;
174
+ dateTo: z.ZodOptional<z.ZodString>;
175
+ pageSize: z.ZodDefault<z.ZodNumber>;
176
+ }, z.core.$strip>;
177
+ output?: z.ZodObject<{}, z.core.$catchall<z.ZodJSONSchema>> | undefined;
178
+ sample?: {
179
+ [x: string]: z.core.util.JSONType;
180
+ } | undefined;
181
+ } & {
182
+ type: "polling";
183
+ schedule?: string;
184
+ run(args: import("frogbot/pieces").PieceRunArgs<{
185
+ tenantId: string;
186
+ statuses: string[];
187
+ types: string[];
188
+ pageSize: number;
189
+ contactId?: string | undefined;
190
+ reference?: string | undefined;
191
+ dateFrom?: string | undefined;
192
+ dateTo?: string | undefined;
193
+ }, {
194
+ webhookKey?: string | undefined;
195
+ }, {
196
+ listTenants: (signal?: AbortSignal) => Promise<{
197
+ tenantId: string;
198
+ tenantName: string;
199
+ }[]>;
200
+ request: <TSchema extends z.ZodType>(input: {
201
+ path: string;
202
+ tenantId?: string;
203
+ method?: "DELETE" | "GET" | "POST" | "PUT";
204
+ body?: BodyInit | import("./client.js").XeroJSON;
205
+ headers?: Record<string, string>;
206
+ query?: Record<string, boolean | number | string | undefined>;
207
+ signal?: AbortSignal;
208
+ base?: "accounting" | "connections" | "identity" | "projects";
209
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
210
+ }> & {
211
+ cursor?: PieceJSON | undefined;
212
+ }): Promise<{
213
+ events: {
214
+ [x: string]: z.core.util.JSONType;
215
+ }[];
216
+ cursor?: PieceJSON | undefined;
217
+ }>;
218
+ } & {
219
+ slug: "bankTransactionCreated";
220
+ }) | ({
221
+ slug: string;
222
+ label?: string;
223
+ description: string;
224
+ input: z.ZodObject<{
225
+ tenantId: z.ZodString;
226
+ statuses: z.ZodDefault<z.ZodArray<z.ZodString>>;
227
+ types: z.ZodDefault<z.ZodArray<z.ZodString>>;
228
+ contactId: z.ZodOptional<z.ZodString>;
229
+ reference: z.ZodOptional<z.ZodString>;
230
+ dateFrom: z.ZodOptional<z.ZodString>;
231
+ dateTo: z.ZodOptional<z.ZodString>;
232
+ pageSize: z.ZodDefault<z.ZodNumber>;
233
+ }, z.core.$strip>;
234
+ output?: z.ZodObject<{}, z.core.$catchall<z.ZodJSONSchema>> | undefined;
235
+ sample?: {
236
+ [x: string]: z.core.util.JSONType;
237
+ } | undefined;
238
+ } & {
239
+ type: "polling";
240
+ schedule?: string;
241
+ run(args: import("frogbot/pieces").PieceRunArgs<{
242
+ tenantId: string;
243
+ statuses: string[];
244
+ types: string[];
245
+ pageSize: number;
246
+ contactId?: string | undefined;
247
+ reference?: string | undefined;
248
+ dateFrom?: string | undefined;
249
+ dateTo?: string | undefined;
250
+ }, {
251
+ webhookKey?: string | undefined;
252
+ }, {
253
+ listTenants: (signal?: AbortSignal) => Promise<{
254
+ tenantId: string;
255
+ tenantName: string;
256
+ }[]>;
257
+ request: <TSchema extends z.ZodType>(input: {
258
+ path: string;
259
+ tenantId?: string;
260
+ method?: "DELETE" | "GET" | "POST" | "PUT";
261
+ body?: BodyInit | import("./client.js").XeroJSON;
262
+ headers?: Record<string, string>;
263
+ query?: Record<string, boolean | number | string | undefined>;
264
+ signal?: AbortSignal;
265
+ base?: "accounting" | "connections" | "identity" | "projects";
266
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
267
+ }> & {
268
+ cursor?: PieceJSON | undefined;
269
+ }): Promise<{
270
+ events: {
271
+ [x: string]: z.core.util.JSONType;
272
+ }[];
273
+ cursor?: PieceJSON | undefined;
274
+ }>;
275
+ } & {
276
+ slug: "paymentCreated";
277
+ }) | ({
278
+ slug: string;
279
+ label?: string;
280
+ description: string;
281
+ input: z.ZodObject<{
282
+ tenantId: z.ZodString;
283
+ statuses: z.ZodDefault<z.ZodArray<z.ZodString>>;
284
+ types: z.ZodDefault<z.ZodArray<z.ZodString>>;
285
+ contactId: z.ZodOptional<z.ZodString>;
286
+ reference: z.ZodOptional<z.ZodString>;
287
+ dateFrom: z.ZodOptional<z.ZodString>;
288
+ dateTo: z.ZodOptional<z.ZodString>;
289
+ pageSize: z.ZodDefault<z.ZodNumber>;
290
+ }, z.core.$strip>;
291
+ output?: z.ZodObject<{}, z.core.$catchall<z.ZodJSONSchema>> | undefined;
292
+ sample?: {
293
+ [x: string]: z.core.util.JSONType;
294
+ } | undefined;
295
+ } & {
296
+ type: "polling";
297
+ schedule?: string;
298
+ run(args: import("frogbot/pieces").PieceRunArgs<{
299
+ tenantId: string;
300
+ statuses: string[];
301
+ types: string[];
302
+ pageSize: number;
303
+ contactId?: string | undefined;
304
+ reference?: string | undefined;
305
+ dateFrom?: string | undefined;
306
+ dateTo?: string | undefined;
307
+ }, {
308
+ webhookKey?: string | undefined;
309
+ }, {
310
+ listTenants: (signal?: AbortSignal) => Promise<{
311
+ tenantId: string;
312
+ tenantName: string;
313
+ }[]>;
314
+ request: <TSchema extends z.ZodType>(input: {
315
+ path: string;
316
+ tenantId?: string;
317
+ method?: "DELETE" | "GET" | "POST" | "PUT";
318
+ body?: BodyInit | import("./client.js").XeroJSON;
319
+ headers?: Record<string, string>;
320
+ query?: Record<string, boolean | number | string | undefined>;
321
+ signal?: AbortSignal;
322
+ base?: "accounting" | "connections" | "identity" | "projects";
323
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
324
+ }> & {
325
+ cursor?: PieceJSON | undefined;
326
+ }): Promise<{
327
+ events: {
328
+ [x: string]: z.core.util.JSONType;
329
+ }[];
330
+ cursor?: PieceJSON | undefined;
331
+ }>;
332
+ } & {
333
+ slug: "purchaseOrderCreated";
334
+ }) | ({
335
+ slug: string;
336
+ label?: string;
337
+ description: string;
338
+ input: z.ZodObject<{
339
+ tenantId: z.ZodString;
340
+ statuses: z.ZodDefault<z.ZodArray<z.ZodString>>;
341
+ types: z.ZodDefault<z.ZodArray<z.ZodString>>;
342
+ contactId: z.ZodOptional<z.ZodString>;
343
+ reference: z.ZodOptional<z.ZodString>;
344
+ dateFrom: z.ZodOptional<z.ZodString>;
345
+ dateTo: z.ZodOptional<z.ZodString>;
346
+ pageSize: z.ZodDefault<z.ZodNumber>;
347
+ }, z.core.$strip>;
348
+ output?: z.ZodObject<{}, z.core.$catchall<z.ZodJSONSchema>> | undefined;
349
+ sample?: {
350
+ [x: string]: z.core.util.JSONType;
351
+ } | undefined;
352
+ } & {
353
+ type: "polling";
354
+ schedule?: string;
355
+ run(args: import("frogbot/pieces").PieceRunArgs<{
356
+ tenantId: string;
357
+ statuses: string[];
358
+ types: string[];
359
+ pageSize: number;
360
+ contactId?: string | undefined;
361
+ reference?: string | undefined;
362
+ dateFrom?: string | undefined;
363
+ dateTo?: string | undefined;
364
+ }, {
365
+ webhookKey?: string | undefined;
366
+ }, {
367
+ listTenants: (signal?: AbortSignal) => Promise<{
368
+ tenantId: string;
369
+ tenantName: string;
370
+ }[]>;
371
+ request: <TSchema extends z.ZodType>(input: {
372
+ path: string;
373
+ tenantId?: string;
374
+ method?: "DELETE" | "GET" | "POST" | "PUT";
375
+ body?: BodyInit | import("./client.js").XeroJSON;
376
+ headers?: Record<string, string>;
377
+ query?: Record<string, boolean | number | string | undefined>;
378
+ signal?: AbortSignal;
379
+ base?: "accounting" | "connections" | "identity" | "projects";
380
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
381
+ }> & {
382
+ cursor?: PieceJSON | undefined;
383
+ }): Promise<{
384
+ events: {
385
+ [x: string]: z.core.util.JSONType;
386
+ }[];
387
+ cursor?: PieceJSON | undefined;
388
+ }>;
389
+ } & {
390
+ slug: "paymentReconciled";
391
+ }) | ({
392
+ slug: string;
393
+ label?: string;
394
+ description: string;
395
+ input: z.ZodObject<{
396
+ tenantId: z.ZodString;
397
+ statuses: z.ZodDefault<z.ZodArray<z.ZodString>>;
398
+ types: z.ZodDefault<z.ZodArray<z.ZodString>>;
399
+ contactId: z.ZodOptional<z.ZodString>;
400
+ reference: z.ZodOptional<z.ZodString>;
401
+ dateFrom: z.ZodOptional<z.ZodString>;
402
+ dateTo: z.ZodOptional<z.ZodString>;
403
+ pageSize: z.ZodDefault<z.ZodNumber>;
404
+ }, z.core.$strip>;
405
+ output?: z.ZodObject<{}, z.core.$catchall<z.ZodJSONSchema>> | undefined;
406
+ sample?: {
407
+ [x: string]: z.core.util.JSONType;
408
+ } | undefined;
409
+ } & {
410
+ type: "polling";
411
+ schedule?: string;
412
+ run(args: import("frogbot/pieces").PieceRunArgs<{
413
+ tenantId: string;
414
+ statuses: string[];
415
+ types: string[];
416
+ pageSize: number;
417
+ contactId?: string | undefined;
418
+ reference?: string | undefined;
419
+ dateFrom?: string | undefined;
420
+ dateTo?: string | undefined;
421
+ }, {
422
+ webhookKey?: string | undefined;
423
+ }, {
424
+ listTenants: (signal?: AbortSignal) => Promise<{
425
+ tenantId: string;
426
+ tenantName: string;
427
+ }[]>;
428
+ request: <TSchema extends z.ZodType>(input: {
429
+ path: string;
430
+ tenantId?: string;
431
+ method?: "DELETE" | "GET" | "POST" | "PUT";
432
+ body?: BodyInit | import("./client.js").XeroJSON;
433
+ headers?: Record<string, string>;
434
+ query?: Record<string, boolean | number | string | undefined>;
435
+ signal?: AbortSignal;
436
+ base?: "accounting" | "connections" | "identity" | "projects";
437
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
438
+ }> & {
439
+ cursor?: PieceJSON | undefined;
440
+ }): Promise<{
441
+ events: {
442
+ [x: string]: z.core.util.JSONType;
443
+ }[];
444
+ cursor?: PieceJSON | undefined;
445
+ }>;
446
+ } & {
447
+ slug: "quoteUpdated";
448
+ }) | ({
449
+ slug: string;
450
+ label?: string;
451
+ description: string;
452
+ input: z.ZodObject<{
453
+ tenantId: z.ZodString;
454
+ statuses: z.ZodDefault<z.ZodArray<z.ZodString>>;
455
+ types: z.ZodDefault<z.ZodArray<z.ZodString>>;
456
+ contactId: z.ZodOptional<z.ZodString>;
457
+ reference: z.ZodOptional<z.ZodString>;
458
+ dateFrom: z.ZodOptional<z.ZodString>;
459
+ dateTo: z.ZodOptional<z.ZodString>;
460
+ pageSize: z.ZodDefault<z.ZodNumber>;
461
+ }, z.core.$strip>;
462
+ output?: z.ZodObject<{}, z.core.$catchall<z.ZodJSONSchema>> | undefined;
463
+ sample?: {
464
+ [x: string]: z.core.util.JSONType;
465
+ } | undefined;
466
+ } & {
467
+ type: "polling";
468
+ schedule?: string;
469
+ run(args: import("frogbot/pieces").PieceRunArgs<{
470
+ tenantId: string;
471
+ statuses: string[];
472
+ types: string[];
473
+ pageSize: number;
474
+ contactId?: string | undefined;
475
+ reference?: string | undefined;
476
+ dateFrom?: string | undefined;
477
+ dateTo?: string | undefined;
478
+ }, {
479
+ webhookKey?: string | undefined;
480
+ }, {
481
+ listTenants: (signal?: AbortSignal) => Promise<{
482
+ tenantId: string;
483
+ tenantName: string;
484
+ }[]>;
485
+ request: <TSchema extends z.ZodType>(input: {
486
+ path: string;
487
+ tenantId?: string;
488
+ method?: "DELETE" | "GET" | "POST" | "PUT";
489
+ body?: BodyInit | import("./client.js").XeroJSON;
490
+ headers?: Record<string, string>;
491
+ query?: Record<string, boolean | number | string | undefined>;
492
+ signal?: AbortSignal;
493
+ base?: "accounting" | "connections" | "identity" | "projects";
494
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
495
+ }> & {
496
+ cursor?: PieceJSON | undefined;
497
+ }): Promise<{
498
+ events: {
499
+ [x: string]: z.core.util.JSONType;
500
+ }[];
501
+ cursor?: PieceJSON | undefined;
502
+ }>;
503
+ } & {
504
+ slug: "billCreated";
505
+ }) | ({
506
+ slug: string;
507
+ label?: string;
508
+ description: string;
509
+ input: z.ZodObject<{
510
+ tenantId: z.ZodString;
511
+ statuses: z.ZodDefault<z.ZodArray<z.ZodString>>;
512
+ types: z.ZodDefault<z.ZodArray<z.ZodString>>;
513
+ contactId: z.ZodOptional<z.ZodString>;
514
+ reference: z.ZodOptional<z.ZodString>;
515
+ dateFrom: z.ZodOptional<z.ZodString>;
516
+ dateTo: z.ZodOptional<z.ZodString>;
517
+ pageSize: z.ZodDefault<z.ZodNumber>;
518
+ }, z.core.$strip>;
519
+ output?: z.ZodObject<{}, z.core.$catchall<z.ZodJSONSchema>> | undefined;
520
+ sample?: {
521
+ [x: string]: z.core.util.JSONType;
522
+ } | undefined;
523
+ } & {
524
+ type: "polling";
525
+ schedule?: string;
526
+ run(args: import("frogbot/pieces").PieceRunArgs<{
527
+ tenantId: string;
528
+ statuses: string[];
529
+ types: string[];
530
+ pageSize: number;
531
+ contactId?: string | undefined;
532
+ reference?: string | undefined;
533
+ dateFrom?: string | undefined;
534
+ dateTo?: string | undefined;
535
+ }, {
536
+ webhookKey?: string | undefined;
537
+ }, {
538
+ listTenants: (signal?: AbortSignal) => Promise<{
539
+ tenantId: string;
540
+ tenantName: string;
541
+ }[]>;
542
+ request: <TSchema extends z.ZodType>(input: {
543
+ path: string;
544
+ tenantId?: string;
545
+ method?: "DELETE" | "GET" | "POST" | "PUT";
546
+ body?: BodyInit | import("./client.js").XeroJSON;
547
+ headers?: Record<string, string>;
548
+ query?: Record<string, boolean | number | string | undefined>;
549
+ signal?: AbortSignal;
550
+ base?: "accounting" | "connections" | "identity" | "projects";
551
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
552
+ }> & {
553
+ cursor?: PieceJSON | undefined;
554
+ }): Promise<{
555
+ events: {
556
+ [x: string]: z.core.util.JSONType;
557
+ }[];
558
+ cursor?: PieceJSON | undefined;
559
+ }>;
560
+ } & {
561
+ slug: "creditNoteCreated";
562
+ }) | ({
563
+ slug: string;
564
+ label?: string;
565
+ description: string;
566
+ input: z.ZodObject<{
567
+ tenantId: z.ZodString;
568
+ statuses: z.ZodDefault<z.ZodArray<z.ZodString>>;
569
+ types: z.ZodDefault<z.ZodArray<z.ZodString>>;
570
+ contactId: z.ZodOptional<z.ZodString>;
571
+ reference: z.ZodOptional<z.ZodString>;
572
+ dateFrom: z.ZodOptional<z.ZodString>;
573
+ dateTo: z.ZodOptional<z.ZodString>;
574
+ pageSize: z.ZodDefault<z.ZodNumber>;
575
+ }, z.core.$strip>;
576
+ output?: z.ZodObject<{}, z.core.$catchall<z.ZodJSONSchema>> | undefined;
577
+ sample?: {
578
+ [x: string]: z.core.util.JSONType;
579
+ } | undefined;
580
+ } & {
581
+ type: "polling";
582
+ schedule?: string;
583
+ run(args: import("frogbot/pieces").PieceRunArgs<{
584
+ tenantId: string;
585
+ statuses: string[];
586
+ types: string[];
587
+ pageSize: number;
588
+ contactId?: string | undefined;
589
+ reference?: string | undefined;
590
+ dateFrom?: string | undefined;
591
+ dateTo?: string | undefined;
592
+ }, {
593
+ webhookKey?: string | undefined;
594
+ }, {
595
+ listTenants: (signal?: AbortSignal) => Promise<{
596
+ tenantId: string;
597
+ tenantName: string;
598
+ }[]>;
599
+ request: <TSchema extends z.ZodType>(input: {
600
+ path: string;
601
+ tenantId?: string;
602
+ method?: "DELETE" | "GET" | "POST" | "PUT";
603
+ body?: BodyInit | import("./client.js").XeroJSON;
604
+ headers?: Record<string, string>;
605
+ query?: Record<string, boolean | number | string | undefined>;
606
+ signal?: AbortSignal;
607
+ base?: "accounting" | "connections" | "identity" | "projects";
608
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
609
+ }> & {
610
+ cursor?: PieceJSON | undefined;
611
+ }): Promise<{
612
+ events: {
613
+ [x: string]: z.core.util.JSONType;
614
+ }[];
615
+ cursor?: PieceJSON | undefined;
616
+ }>;
617
+ } & {
618
+ slug: "projectCreated";
619
+ }) | ({
620
+ slug: string;
621
+ label?: string;
622
+ description: string;
623
+ input: z.ZodObject<{
624
+ tenantId: z.ZodString;
625
+ statuses: z.ZodDefault<z.ZodArray<z.ZodString>>;
626
+ types: z.ZodDefault<z.ZodArray<z.ZodString>>;
627
+ contactId: z.ZodOptional<z.ZodString>;
628
+ reference: z.ZodOptional<z.ZodString>;
629
+ dateFrom: z.ZodOptional<z.ZodString>;
630
+ dateTo: z.ZodOptional<z.ZodString>;
631
+ pageSize: z.ZodDefault<z.ZodNumber>;
632
+ }, z.core.$strip>;
633
+ output?: z.ZodObject<{}, z.core.$catchall<z.ZodJSONSchema>> | undefined;
634
+ sample?: {
635
+ [x: string]: z.core.util.JSONType;
636
+ } | undefined;
637
+ } & {
638
+ type: "polling";
639
+ schedule?: string;
640
+ run(args: import("frogbot/pieces").PieceRunArgs<{
641
+ tenantId: string;
642
+ statuses: string[];
643
+ types: string[];
644
+ pageSize: number;
645
+ contactId?: string | undefined;
646
+ reference?: string | undefined;
647
+ dateFrom?: string | undefined;
648
+ dateTo?: string | undefined;
649
+ }, {
650
+ webhookKey?: string | undefined;
651
+ }, {
652
+ listTenants: (signal?: AbortSignal) => Promise<{
653
+ tenantId: string;
654
+ tenantName: string;
655
+ }[]>;
656
+ request: <TSchema extends z.ZodType>(input: {
657
+ path: string;
658
+ tenantId?: string;
659
+ method?: "DELETE" | "GET" | "POST" | "PUT";
660
+ body?: BodyInit | import("./client.js").XeroJSON;
661
+ headers?: Record<string, string>;
662
+ query?: Record<string, boolean | number | string | undefined>;
663
+ signal?: AbortSignal;
664
+ base?: "accounting" | "connections" | "identity" | "projects";
665
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
666
+ }> & {
667
+ cursor?: PieceJSON | undefined;
668
+ }): Promise<{
669
+ events: {
670
+ [x: string]: z.core.util.JSONType;
671
+ }[];
672
+ cursor?: PieceJSON | undefined;
673
+ }>;
674
+ } & {
675
+ slug: "quoteCreated";
676
+ }))[];
52
677
  //# sourceMappingURL=triggers.d.ts.map