@frogbotai/piece-xero 0.38.0 → 0.40.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.
@@ -15,28 +15,33 @@ export declare const xeroTriggers: (({
15
15
  } & {
16
16
  type: "app";
17
17
  event: string;
18
- run(args: import("frogbot/pieces").PieceRunArgs<{
19
- tenantId: string;
20
- fetchFullRecord: boolean;
21
- }, {
22
- webhookKey?: string | undefined;
23
- }, {
24
- authorize: (headers: Headers) => void;
25
- listTenants: (signal?: AbortSignal) => Promise<{
18
+ run(args: {
19
+ input: {
26
20
  tenantId: string;
27
- tenantName: string;
28
- }[]>;
29
- request: <TSchema extends z.ZodType>(input: {
30
- path: string;
31
- tenantId?: string;
32
- method?: "DELETE" | "GET" | "POST" | "PUT";
33
- body?: BodyInit | import("./client.js").XeroJSON;
34
- headers?: Record<string, string>;
35
- query?: Record<string, boolean | number | string | undefined>;
36
- signal?: AbortSignal;
37
- base?: "accounting" | "connections" | "identity" | "projects";
38
- }, schema: TSchema) => Promise<z.core.output<TSchema>>;
39
- }>): Promise<import("frogbot/pieces").TriggerEvent<{
21
+ fetchFullRecord: boolean;
22
+ };
23
+ client: {
24
+ authorize: (headers: Headers) => void;
25
+ listTenants: (signal?: AbortSignal) => Promise<{
26
+ tenantId: string;
27
+ tenantName: string;
28
+ }[]>;
29
+ request: <TSchema extends z.ZodType>(input: {
30
+ path: string;
31
+ tenantId?: string;
32
+ method?: "DELETE" | "GET" | "POST" | "PUT";
33
+ body?: BodyInit | import("./client.js").XeroJSON;
34
+ headers?: Record<string, string>;
35
+ query?: Record<string, boolean | number | string | undefined>;
36
+ signal?: AbortSignal;
37
+ base?: "accounting" | "connections" | "identity" | "projects";
38
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
39
+ };
40
+ req: import("frogbot/pieces").FrogBotRequest;
41
+ options: {
42
+ webhookKey?: string | undefined;
43
+ };
44
+ }): Promise<import("frogbot/pieces").TriggerEvent<{
40
45
  [x: string]: z.core.util.JSONType;
41
46
  }>[]>;
42
47
  } & {
@@ -56,28 +61,33 @@ export declare const xeroTriggers: (({
56
61
  } & {
57
62
  type: "app";
58
63
  event: string;
59
- run(args: import("frogbot/pieces").PieceRunArgs<{
60
- tenantId: string;
61
- fetchFullRecord: boolean;
62
- }, {
63
- webhookKey?: string | undefined;
64
- }, {
65
- authorize: (headers: Headers) => void;
66
- listTenants: (signal?: AbortSignal) => Promise<{
64
+ run(args: {
65
+ input: {
67
66
  tenantId: string;
68
- tenantName: string;
69
- }[]>;
70
- request: <TSchema extends z.ZodType>(input: {
71
- path: string;
72
- tenantId?: string;
73
- method?: "DELETE" | "GET" | "POST" | "PUT";
74
- body?: BodyInit | import("./client.js").XeroJSON;
75
- headers?: Record<string, string>;
76
- query?: Record<string, boolean | number | string | undefined>;
77
- signal?: AbortSignal;
78
- base?: "accounting" | "connections" | "identity" | "projects";
79
- }, schema: TSchema) => Promise<z.core.output<TSchema>>;
80
- }>): Promise<import("frogbot/pieces").TriggerEvent<{
67
+ fetchFullRecord: boolean;
68
+ };
69
+ client: {
70
+ authorize: (headers: Headers) => void;
71
+ listTenants: (signal?: AbortSignal) => Promise<{
72
+ tenantId: string;
73
+ tenantName: string;
74
+ }[]>;
75
+ request: <TSchema extends z.ZodType>(input: {
76
+ path: string;
77
+ tenantId?: string;
78
+ method?: "DELETE" | "GET" | "POST" | "PUT";
79
+ body?: BodyInit | import("./client.js").XeroJSON;
80
+ headers?: Record<string, string>;
81
+ query?: Record<string, boolean | number | string | undefined>;
82
+ signal?: AbortSignal;
83
+ base?: "accounting" | "connections" | "identity" | "projects";
84
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
85
+ };
86
+ req: import("frogbot/pieces").FrogBotRequest;
87
+ options: {
88
+ webhookKey?: string | undefined;
89
+ };
90
+ }): Promise<import("frogbot/pieces").TriggerEvent<{
81
91
  [x: string]: z.core.util.JSONType;
82
92
  }>[]>;
83
93
  } & {
@@ -97,28 +107,33 @@ export declare const xeroTriggers: (({
97
107
  } & {
98
108
  type: "app";
99
109
  event: string;
100
- run(args: import("frogbot/pieces").PieceRunArgs<{
101
- tenantId: string;
102
- fetchFullRecord: boolean;
103
- }, {
104
- webhookKey?: string | undefined;
105
- }, {
106
- authorize: (headers: Headers) => void;
107
- listTenants: (signal?: AbortSignal) => Promise<{
110
+ run(args: {
111
+ input: {
108
112
  tenantId: string;
109
- tenantName: string;
110
- }[]>;
111
- request: <TSchema extends z.ZodType>(input: {
112
- path: string;
113
- tenantId?: string;
114
- method?: "DELETE" | "GET" | "POST" | "PUT";
115
- body?: BodyInit | import("./client.js").XeroJSON;
116
- headers?: Record<string, string>;
117
- query?: Record<string, boolean | number | string | undefined>;
118
- signal?: AbortSignal;
119
- base?: "accounting" | "connections" | "identity" | "projects";
120
- }, schema: TSchema) => Promise<z.core.output<TSchema>>;
121
- }>): Promise<import("frogbot/pieces").TriggerEvent<{
113
+ fetchFullRecord: boolean;
114
+ };
115
+ client: {
116
+ authorize: (headers: Headers) => void;
117
+ listTenants: (signal?: AbortSignal) => Promise<{
118
+ tenantId: string;
119
+ tenantName: string;
120
+ }[]>;
121
+ request: <TSchema extends z.ZodType>(input: {
122
+ path: string;
123
+ tenantId?: string;
124
+ method?: "DELETE" | "GET" | "POST" | "PUT";
125
+ body?: BodyInit | import("./client.js").XeroJSON;
126
+ headers?: Record<string, string>;
127
+ query?: Record<string, boolean | number | string | undefined>;
128
+ signal?: AbortSignal;
129
+ base?: "accounting" | "connections" | "identity" | "projects";
130
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
131
+ };
132
+ req: import("frogbot/pieces").FrogBotRequest;
133
+ options: {
134
+ webhookKey?: string | undefined;
135
+ };
136
+ }): Promise<import("frogbot/pieces").TriggerEvent<{
122
137
  [x: string]: z.core.util.JSONType;
123
138
  }>[]>;
124
139
  } & {
@@ -138,28 +153,33 @@ export declare const xeroTriggers: (({
138
153
  } & {
139
154
  type: "app";
140
155
  event: string;
141
- run(args: import("frogbot/pieces").PieceRunArgs<{
142
- tenantId: string;
143
- fetchFullRecord: boolean;
144
- }, {
145
- webhookKey?: string | undefined;
146
- }, {
147
- authorize: (headers: Headers) => void;
148
- listTenants: (signal?: AbortSignal) => Promise<{
156
+ run(args: {
157
+ input: {
149
158
  tenantId: string;
150
- tenantName: string;
151
- }[]>;
152
- request: <TSchema extends z.ZodType>(input: {
153
- path: string;
154
- tenantId?: string;
155
- method?: "DELETE" | "GET" | "POST" | "PUT";
156
- body?: BodyInit | import("./client.js").XeroJSON;
157
- headers?: Record<string, string>;
158
- query?: Record<string, boolean | number | string | undefined>;
159
- signal?: AbortSignal;
160
- base?: "accounting" | "connections" | "identity" | "projects";
161
- }, schema: TSchema) => Promise<z.core.output<TSchema>>;
162
- }>): Promise<import("frogbot/pieces").TriggerEvent<{
159
+ fetchFullRecord: boolean;
160
+ };
161
+ client: {
162
+ authorize: (headers: Headers) => void;
163
+ listTenants: (signal?: AbortSignal) => Promise<{
164
+ tenantId: string;
165
+ tenantName: string;
166
+ }[]>;
167
+ request: <TSchema extends z.ZodType>(input: {
168
+ path: string;
169
+ tenantId?: string;
170
+ method?: "DELETE" | "GET" | "POST" | "PUT";
171
+ body?: BodyInit | import("./client.js").XeroJSON;
172
+ headers?: Record<string, string>;
173
+ query?: Record<string, boolean | number | string | undefined>;
174
+ signal?: AbortSignal;
175
+ base?: "accounting" | "connections" | "identity" | "projects";
176
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
177
+ };
178
+ req: import("frogbot/pieces").FrogBotRequest;
179
+ options: {
180
+ webhookKey?: string | undefined;
181
+ };
182
+ }): Promise<import("frogbot/pieces").TriggerEvent<{
163
183
  [x: string]: z.core.util.JSONType;
164
184
  }>[]>;
165
185
  } & {
@@ -185,34 +205,39 @@ export declare const xeroTriggers: (({
185
205
  } & {
186
206
  type: "polling";
187
207
  schedule?: string;
188
- run(args: import("frogbot/pieces").PieceRunArgs<{
189
- tenantId: string;
190
- statuses: string[];
191
- types: string[];
192
- pageSize: number;
193
- contactId?: string | undefined;
194
- reference?: string | undefined;
195
- dateFrom?: string | undefined;
196
- dateTo?: string | undefined;
197
- }, {
198
- webhookKey?: string | undefined;
199
- }, {
200
- authorize: (headers: Headers) => void;
201
- listTenants: (signal?: AbortSignal) => Promise<{
208
+ run(args: {
209
+ input: {
202
210
  tenantId: string;
203
- tenantName: string;
204
- }[]>;
205
- request: <TSchema extends z.ZodType>(input: {
206
- path: string;
207
- tenantId?: string;
208
- method?: "DELETE" | "GET" | "POST" | "PUT";
209
- body?: BodyInit | import("./client.js").XeroJSON;
210
- headers?: Record<string, string>;
211
- query?: Record<string, boolean | number | string | undefined>;
212
- signal?: AbortSignal;
213
- base?: "accounting" | "connections" | "identity" | "projects";
214
- }, schema: TSchema) => Promise<z.core.output<TSchema>>;
215
- }> & {
211
+ statuses: string[];
212
+ types: string[];
213
+ pageSize: number;
214
+ contactId?: string | undefined;
215
+ reference?: string | undefined;
216
+ dateFrom?: string | undefined;
217
+ dateTo?: string | undefined;
218
+ };
219
+ client: {
220
+ authorize: (headers: Headers) => void;
221
+ listTenants: (signal?: AbortSignal) => Promise<{
222
+ tenantId: string;
223
+ tenantName: string;
224
+ }[]>;
225
+ request: <TSchema extends z.ZodType>(input: {
226
+ path: string;
227
+ tenantId?: string;
228
+ method?: "DELETE" | "GET" | "POST" | "PUT";
229
+ body?: BodyInit | import("./client.js").XeroJSON;
230
+ headers?: Record<string, string>;
231
+ query?: Record<string, boolean | number | string | undefined>;
232
+ signal?: AbortSignal;
233
+ base?: "accounting" | "connections" | "identity" | "projects";
234
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
235
+ };
236
+ req: import("frogbot/pieces").FrogBotRequest;
237
+ options: {
238
+ webhookKey?: string | undefined;
239
+ };
240
+ } & {
216
241
  cursor?: PieceJSON | undefined;
217
242
  }): Promise<{
218
243
  events: {
@@ -243,34 +268,39 @@ export declare const xeroTriggers: (({
243
268
  } & {
244
269
  type: "polling";
245
270
  schedule?: string;
246
- run(args: import("frogbot/pieces").PieceRunArgs<{
247
- tenantId: string;
248
- statuses: string[];
249
- types: string[];
250
- pageSize: number;
251
- contactId?: string | undefined;
252
- reference?: string | undefined;
253
- dateFrom?: string | undefined;
254
- dateTo?: string | undefined;
255
- }, {
256
- webhookKey?: string | undefined;
257
- }, {
258
- authorize: (headers: Headers) => void;
259
- listTenants: (signal?: AbortSignal) => Promise<{
271
+ run(args: {
272
+ input: {
260
273
  tenantId: string;
261
- tenantName: string;
262
- }[]>;
263
- request: <TSchema extends z.ZodType>(input: {
264
- path: string;
265
- tenantId?: string;
266
- method?: "DELETE" | "GET" | "POST" | "PUT";
267
- body?: BodyInit | import("./client.js").XeroJSON;
268
- headers?: Record<string, string>;
269
- query?: Record<string, boolean | number | string | undefined>;
270
- signal?: AbortSignal;
271
- base?: "accounting" | "connections" | "identity" | "projects";
272
- }, schema: TSchema) => Promise<z.core.output<TSchema>>;
273
- }> & {
274
+ statuses: string[];
275
+ types: string[];
276
+ pageSize: number;
277
+ contactId?: string | undefined;
278
+ reference?: string | undefined;
279
+ dateFrom?: string | undefined;
280
+ dateTo?: string | undefined;
281
+ };
282
+ client: {
283
+ authorize: (headers: Headers) => void;
284
+ listTenants: (signal?: AbortSignal) => Promise<{
285
+ tenantId: string;
286
+ tenantName: string;
287
+ }[]>;
288
+ request: <TSchema extends z.ZodType>(input: {
289
+ path: string;
290
+ tenantId?: string;
291
+ method?: "DELETE" | "GET" | "POST" | "PUT";
292
+ body?: BodyInit | import("./client.js").XeroJSON;
293
+ headers?: Record<string, string>;
294
+ query?: Record<string, boolean | number | string | undefined>;
295
+ signal?: AbortSignal;
296
+ base?: "accounting" | "connections" | "identity" | "projects";
297
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
298
+ };
299
+ req: import("frogbot/pieces").FrogBotRequest;
300
+ options: {
301
+ webhookKey?: string | undefined;
302
+ };
303
+ } & {
274
304
  cursor?: PieceJSON | undefined;
275
305
  }): Promise<{
276
306
  events: {
@@ -301,34 +331,39 @@ export declare const xeroTriggers: (({
301
331
  } & {
302
332
  type: "polling";
303
333
  schedule?: string;
304
- run(args: import("frogbot/pieces").PieceRunArgs<{
305
- tenantId: string;
306
- statuses: string[];
307
- types: string[];
308
- pageSize: number;
309
- contactId?: string | undefined;
310
- reference?: string | undefined;
311
- dateFrom?: string | undefined;
312
- dateTo?: string | undefined;
313
- }, {
314
- webhookKey?: string | undefined;
315
- }, {
316
- authorize: (headers: Headers) => void;
317
- listTenants: (signal?: AbortSignal) => Promise<{
334
+ run(args: {
335
+ input: {
318
336
  tenantId: string;
319
- tenantName: string;
320
- }[]>;
321
- request: <TSchema extends z.ZodType>(input: {
322
- path: string;
323
- tenantId?: string;
324
- method?: "DELETE" | "GET" | "POST" | "PUT";
325
- body?: BodyInit | import("./client.js").XeroJSON;
326
- headers?: Record<string, string>;
327
- query?: Record<string, boolean | number | string | undefined>;
328
- signal?: AbortSignal;
329
- base?: "accounting" | "connections" | "identity" | "projects";
330
- }, schema: TSchema) => Promise<z.core.output<TSchema>>;
331
- }> & {
337
+ statuses: string[];
338
+ types: string[];
339
+ pageSize: number;
340
+ contactId?: string | undefined;
341
+ reference?: string | undefined;
342
+ dateFrom?: string | undefined;
343
+ dateTo?: string | undefined;
344
+ };
345
+ client: {
346
+ authorize: (headers: Headers) => void;
347
+ listTenants: (signal?: AbortSignal) => Promise<{
348
+ tenantId: string;
349
+ tenantName: string;
350
+ }[]>;
351
+ request: <TSchema extends z.ZodType>(input: {
352
+ path: string;
353
+ tenantId?: string;
354
+ method?: "DELETE" | "GET" | "POST" | "PUT";
355
+ body?: BodyInit | import("./client.js").XeroJSON;
356
+ headers?: Record<string, string>;
357
+ query?: Record<string, boolean | number | string | undefined>;
358
+ signal?: AbortSignal;
359
+ base?: "accounting" | "connections" | "identity" | "projects";
360
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
361
+ };
362
+ req: import("frogbot/pieces").FrogBotRequest;
363
+ options: {
364
+ webhookKey?: string | undefined;
365
+ };
366
+ } & {
332
367
  cursor?: PieceJSON | undefined;
333
368
  }): Promise<{
334
369
  events: {
@@ -359,34 +394,39 @@ export declare const xeroTriggers: (({
359
394
  } & {
360
395
  type: "polling";
361
396
  schedule?: string;
362
- run(args: import("frogbot/pieces").PieceRunArgs<{
363
- tenantId: string;
364
- statuses: string[];
365
- types: string[];
366
- pageSize: number;
367
- contactId?: string | undefined;
368
- reference?: string | undefined;
369
- dateFrom?: string | undefined;
370
- dateTo?: string | undefined;
371
- }, {
372
- webhookKey?: string | undefined;
373
- }, {
374
- authorize: (headers: Headers) => void;
375
- listTenants: (signal?: AbortSignal) => Promise<{
397
+ run(args: {
398
+ input: {
376
399
  tenantId: string;
377
- tenantName: string;
378
- }[]>;
379
- request: <TSchema extends z.ZodType>(input: {
380
- path: string;
381
- tenantId?: string;
382
- method?: "DELETE" | "GET" | "POST" | "PUT";
383
- body?: BodyInit | import("./client.js").XeroJSON;
384
- headers?: Record<string, string>;
385
- query?: Record<string, boolean | number | string | undefined>;
386
- signal?: AbortSignal;
387
- base?: "accounting" | "connections" | "identity" | "projects";
388
- }, schema: TSchema) => Promise<z.core.output<TSchema>>;
389
- }> & {
400
+ statuses: string[];
401
+ types: string[];
402
+ pageSize: number;
403
+ contactId?: string | undefined;
404
+ reference?: string | undefined;
405
+ dateFrom?: string | undefined;
406
+ dateTo?: string | undefined;
407
+ };
408
+ client: {
409
+ authorize: (headers: Headers) => void;
410
+ listTenants: (signal?: AbortSignal) => Promise<{
411
+ tenantId: string;
412
+ tenantName: string;
413
+ }[]>;
414
+ request: <TSchema extends z.ZodType>(input: {
415
+ path: string;
416
+ tenantId?: string;
417
+ method?: "DELETE" | "GET" | "POST" | "PUT";
418
+ body?: BodyInit | import("./client.js").XeroJSON;
419
+ headers?: Record<string, string>;
420
+ query?: Record<string, boolean | number | string | undefined>;
421
+ signal?: AbortSignal;
422
+ base?: "accounting" | "connections" | "identity" | "projects";
423
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
424
+ };
425
+ req: import("frogbot/pieces").FrogBotRequest;
426
+ options: {
427
+ webhookKey?: string | undefined;
428
+ };
429
+ } & {
390
430
  cursor?: PieceJSON | undefined;
391
431
  }): Promise<{
392
432
  events: {
@@ -417,34 +457,39 @@ export declare const xeroTriggers: (({
417
457
  } & {
418
458
  type: "polling";
419
459
  schedule?: string;
420
- run(args: import("frogbot/pieces").PieceRunArgs<{
421
- tenantId: string;
422
- statuses: string[];
423
- types: string[];
424
- pageSize: number;
425
- contactId?: string | undefined;
426
- reference?: string | undefined;
427
- dateFrom?: string | undefined;
428
- dateTo?: string | undefined;
429
- }, {
430
- webhookKey?: string | undefined;
431
- }, {
432
- authorize: (headers: Headers) => void;
433
- listTenants: (signal?: AbortSignal) => Promise<{
460
+ run(args: {
461
+ input: {
434
462
  tenantId: string;
435
- tenantName: string;
436
- }[]>;
437
- request: <TSchema extends z.ZodType>(input: {
438
- path: string;
439
- tenantId?: string;
440
- method?: "DELETE" | "GET" | "POST" | "PUT";
441
- body?: BodyInit | import("./client.js").XeroJSON;
442
- headers?: Record<string, string>;
443
- query?: Record<string, boolean | number | string | undefined>;
444
- signal?: AbortSignal;
445
- base?: "accounting" | "connections" | "identity" | "projects";
446
- }, schema: TSchema) => Promise<z.core.output<TSchema>>;
447
- }> & {
463
+ statuses: string[];
464
+ types: string[];
465
+ pageSize: number;
466
+ contactId?: string | undefined;
467
+ reference?: string | undefined;
468
+ dateFrom?: string | undefined;
469
+ dateTo?: string | undefined;
470
+ };
471
+ client: {
472
+ authorize: (headers: Headers) => void;
473
+ listTenants: (signal?: AbortSignal) => Promise<{
474
+ tenantId: string;
475
+ tenantName: string;
476
+ }[]>;
477
+ request: <TSchema extends z.ZodType>(input: {
478
+ path: string;
479
+ tenantId?: string;
480
+ method?: "DELETE" | "GET" | "POST" | "PUT";
481
+ body?: BodyInit | import("./client.js").XeroJSON;
482
+ headers?: Record<string, string>;
483
+ query?: Record<string, boolean | number | string | undefined>;
484
+ signal?: AbortSignal;
485
+ base?: "accounting" | "connections" | "identity" | "projects";
486
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
487
+ };
488
+ req: import("frogbot/pieces").FrogBotRequest;
489
+ options: {
490
+ webhookKey?: string | undefined;
491
+ };
492
+ } & {
448
493
  cursor?: PieceJSON | undefined;
449
494
  }): Promise<{
450
495
  events: {
@@ -475,34 +520,39 @@ export declare const xeroTriggers: (({
475
520
  } & {
476
521
  type: "polling";
477
522
  schedule?: string;
478
- run(args: import("frogbot/pieces").PieceRunArgs<{
479
- tenantId: string;
480
- statuses: string[];
481
- types: string[];
482
- pageSize: number;
483
- contactId?: string | undefined;
484
- reference?: string | undefined;
485
- dateFrom?: string | undefined;
486
- dateTo?: string | undefined;
487
- }, {
488
- webhookKey?: string | undefined;
489
- }, {
490
- authorize: (headers: Headers) => void;
491
- listTenants: (signal?: AbortSignal) => Promise<{
523
+ run(args: {
524
+ input: {
492
525
  tenantId: string;
493
- tenantName: string;
494
- }[]>;
495
- request: <TSchema extends z.ZodType>(input: {
496
- path: string;
497
- tenantId?: string;
498
- method?: "DELETE" | "GET" | "POST" | "PUT";
499
- body?: BodyInit | import("./client.js").XeroJSON;
500
- headers?: Record<string, string>;
501
- query?: Record<string, boolean | number | string | undefined>;
502
- signal?: AbortSignal;
503
- base?: "accounting" | "connections" | "identity" | "projects";
504
- }, schema: TSchema) => Promise<z.core.output<TSchema>>;
505
- }> & {
526
+ statuses: string[];
527
+ types: string[];
528
+ pageSize: number;
529
+ contactId?: string | undefined;
530
+ reference?: string | undefined;
531
+ dateFrom?: string | undefined;
532
+ dateTo?: string | undefined;
533
+ };
534
+ client: {
535
+ authorize: (headers: Headers) => void;
536
+ listTenants: (signal?: AbortSignal) => Promise<{
537
+ tenantId: string;
538
+ tenantName: string;
539
+ }[]>;
540
+ request: <TSchema extends z.ZodType>(input: {
541
+ path: string;
542
+ tenantId?: string;
543
+ method?: "DELETE" | "GET" | "POST" | "PUT";
544
+ body?: BodyInit | import("./client.js").XeroJSON;
545
+ headers?: Record<string, string>;
546
+ query?: Record<string, boolean | number | string | undefined>;
547
+ signal?: AbortSignal;
548
+ base?: "accounting" | "connections" | "identity" | "projects";
549
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
550
+ };
551
+ req: import("frogbot/pieces").FrogBotRequest;
552
+ options: {
553
+ webhookKey?: string | undefined;
554
+ };
555
+ } & {
506
556
  cursor?: PieceJSON | undefined;
507
557
  }): Promise<{
508
558
  events: {
@@ -533,34 +583,39 @@ export declare const xeroTriggers: (({
533
583
  } & {
534
584
  type: "polling";
535
585
  schedule?: string;
536
- run(args: import("frogbot/pieces").PieceRunArgs<{
537
- tenantId: string;
538
- statuses: string[];
539
- types: string[];
540
- pageSize: number;
541
- contactId?: string | undefined;
542
- reference?: string | undefined;
543
- dateFrom?: string | undefined;
544
- dateTo?: string | undefined;
545
- }, {
546
- webhookKey?: string | undefined;
547
- }, {
548
- authorize: (headers: Headers) => void;
549
- listTenants: (signal?: AbortSignal) => Promise<{
586
+ run(args: {
587
+ input: {
550
588
  tenantId: string;
551
- tenantName: string;
552
- }[]>;
553
- request: <TSchema extends z.ZodType>(input: {
554
- path: string;
555
- tenantId?: string;
556
- method?: "DELETE" | "GET" | "POST" | "PUT";
557
- body?: BodyInit | import("./client.js").XeroJSON;
558
- headers?: Record<string, string>;
559
- query?: Record<string, boolean | number | string | undefined>;
560
- signal?: AbortSignal;
561
- base?: "accounting" | "connections" | "identity" | "projects";
562
- }, schema: TSchema) => Promise<z.core.output<TSchema>>;
563
- }> & {
589
+ statuses: string[];
590
+ types: string[];
591
+ pageSize: number;
592
+ contactId?: string | undefined;
593
+ reference?: string | undefined;
594
+ dateFrom?: string | undefined;
595
+ dateTo?: string | undefined;
596
+ };
597
+ client: {
598
+ authorize: (headers: Headers) => void;
599
+ listTenants: (signal?: AbortSignal) => Promise<{
600
+ tenantId: string;
601
+ tenantName: string;
602
+ }[]>;
603
+ request: <TSchema extends z.ZodType>(input: {
604
+ path: string;
605
+ tenantId?: string;
606
+ method?: "DELETE" | "GET" | "POST" | "PUT";
607
+ body?: BodyInit | import("./client.js").XeroJSON;
608
+ headers?: Record<string, string>;
609
+ query?: Record<string, boolean | number | string | undefined>;
610
+ signal?: AbortSignal;
611
+ base?: "accounting" | "connections" | "identity" | "projects";
612
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
613
+ };
614
+ req: import("frogbot/pieces").FrogBotRequest;
615
+ options: {
616
+ webhookKey?: string | undefined;
617
+ };
618
+ } & {
564
619
  cursor?: PieceJSON | undefined;
565
620
  }): Promise<{
566
621
  events: {
@@ -591,34 +646,39 @@ export declare const xeroTriggers: (({
591
646
  } & {
592
647
  type: "polling";
593
648
  schedule?: string;
594
- run(args: import("frogbot/pieces").PieceRunArgs<{
595
- tenantId: string;
596
- statuses: string[];
597
- types: string[];
598
- pageSize: number;
599
- contactId?: string | undefined;
600
- reference?: string | undefined;
601
- dateFrom?: string | undefined;
602
- dateTo?: string | undefined;
603
- }, {
604
- webhookKey?: string | undefined;
605
- }, {
606
- authorize: (headers: Headers) => void;
607
- listTenants: (signal?: AbortSignal) => Promise<{
649
+ run(args: {
650
+ input: {
608
651
  tenantId: string;
609
- tenantName: string;
610
- }[]>;
611
- request: <TSchema extends z.ZodType>(input: {
612
- path: string;
613
- tenantId?: string;
614
- method?: "DELETE" | "GET" | "POST" | "PUT";
615
- body?: BodyInit | import("./client.js").XeroJSON;
616
- headers?: Record<string, string>;
617
- query?: Record<string, boolean | number | string | undefined>;
618
- signal?: AbortSignal;
619
- base?: "accounting" | "connections" | "identity" | "projects";
620
- }, schema: TSchema) => Promise<z.core.output<TSchema>>;
621
- }> & {
652
+ statuses: string[];
653
+ types: string[];
654
+ pageSize: number;
655
+ contactId?: string | undefined;
656
+ reference?: string | undefined;
657
+ dateFrom?: string | undefined;
658
+ dateTo?: string | undefined;
659
+ };
660
+ client: {
661
+ authorize: (headers: Headers) => void;
662
+ listTenants: (signal?: AbortSignal) => Promise<{
663
+ tenantId: string;
664
+ tenantName: string;
665
+ }[]>;
666
+ request: <TSchema extends z.ZodType>(input: {
667
+ path: string;
668
+ tenantId?: string;
669
+ method?: "DELETE" | "GET" | "POST" | "PUT";
670
+ body?: BodyInit | import("./client.js").XeroJSON;
671
+ headers?: Record<string, string>;
672
+ query?: Record<string, boolean | number | string | undefined>;
673
+ signal?: AbortSignal;
674
+ base?: "accounting" | "connections" | "identity" | "projects";
675
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
676
+ };
677
+ req: import("frogbot/pieces").FrogBotRequest;
678
+ options: {
679
+ webhookKey?: string | undefined;
680
+ };
681
+ } & {
622
682
  cursor?: PieceJSON | undefined;
623
683
  }): Promise<{
624
684
  events: {
@@ -649,34 +709,39 @@ export declare const xeroTriggers: (({
649
709
  } & {
650
710
  type: "polling";
651
711
  schedule?: string;
652
- run(args: import("frogbot/pieces").PieceRunArgs<{
653
- tenantId: string;
654
- statuses: string[];
655
- types: string[];
656
- pageSize: number;
657
- contactId?: string | undefined;
658
- reference?: string | undefined;
659
- dateFrom?: string | undefined;
660
- dateTo?: string | undefined;
661
- }, {
662
- webhookKey?: string | undefined;
663
- }, {
664
- authorize: (headers: Headers) => void;
665
- listTenants: (signal?: AbortSignal) => Promise<{
712
+ run(args: {
713
+ input: {
666
714
  tenantId: string;
667
- tenantName: string;
668
- }[]>;
669
- request: <TSchema extends z.ZodType>(input: {
670
- path: string;
671
- tenantId?: string;
672
- method?: "DELETE" | "GET" | "POST" | "PUT";
673
- body?: BodyInit | import("./client.js").XeroJSON;
674
- headers?: Record<string, string>;
675
- query?: Record<string, boolean | number | string | undefined>;
676
- signal?: AbortSignal;
677
- base?: "accounting" | "connections" | "identity" | "projects";
678
- }, schema: TSchema) => Promise<z.core.output<TSchema>>;
679
- }> & {
715
+ statuses: string[];
716
+ types: string[];
717
+ pageSize: number;
718
+ contactId?: string | undefined;
719
+ reference?: string | undefined;
720
+ dateFrom?: string | undefined;
721
+ dateTo?: string | undefined;
722
+ };
723
+ client: {
724
+ authorize: (headers: Headers) => void;
725
+ listTenants: (signal?: AbortSignal) => Promise<{
726
+ tenantId: string;
727
+ tenantName: string;
728
+ }[]>;
729
+ request: <TSchema extends z.ZodType>(input: {
730
+ path: string;
731
+ tenantId?: string;
732
+ method?: "DELETE" | "GET" | "POST" | "PUT";
733
+ body?: BodyInit | import("./client.js").XeroJSON;
734
+ headers?: Record<string, string>;
735
+ query?: Record<string, boolean | number | string | undefined>;
736
+ signal?: AbortSignal;
737
+ base?: "accounting" | "connections" | "identity" | "projects";
738
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
739
+ };
740
+ req: import("frogbot/pieces").FrogBotRequest;
741
+ options: {
742
+ webhookKey?: string | undefined;
743
+ };
744
+ } & {
680
745
  cursor?: PieceJSON | undefined;
681
746
  }): Promise<{
682
747
  events: {