@frogbotai/piece-xero 0.26.0 → 0.28.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.
package/dist/actions.d.ts CHANGED
@@ -1,58 +1,914 @@
1
- import type { PieceRunArgs } from 'frogbot/pieces';
2
1
  import { z } from 'zod';
3
- import type { XeroClient, XeroJSON } from './client.js';
4
- declare const sendInvoiceEmailInput: z.ZodObject<{
2
+ import type { XeroJSON } from './client.js';
3
+ export declare const xeroActions: ((import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
4
+ contactId: z.ZodOptional<z.ZodString>;
5
+ name: z.ZodString;
6
+ email: z.ZodOptional<z.ZodString>;
7
+ tenantId: z.ZodString;
8
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnion<readonly [z.ZodJSONSchema, z.ZodArray<z.ZodJSONSchema>]>>>, {
9
+ webhookKey?: string | undefined;
10
+ }, {
11
+ listTenants: (signal?: AbortSignal) => Promise<{
12
+ tenantId: string;
13
+ tenantName: string;
14
+ }[]>;
15
+ request: <TSchema extends z.ZodType>(input: {
16
+ path: string;
17
+ tenantId?: string;
18
+ method?: "DELETE" | "GET" | "POST" | "PUT";
19
+ body?: BodyInit | XeroJSON;
20
+ headers?: Record<string, string>;
21
+ query?: Record<string, boolean | number | string | undefined>;
22
+ signal?: AbortSignal;
23
+ base?: "accounting" | "connections" | "identity" | "projects";
24
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
25
+ }, {
26
+ [x: string]: z.core.util.JSONType | z.core.util.JSONType[];
27
+ }> & {
28
+ slug: "createOrUpdateContact";
29
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
30
+ invoiceId: z.ZodOptional<z.ZodString>;
31
+ contactId: z.ZodOptional<z.ZodString>;
32
+ name: z.ZodString;
33
+ email: z.ZodOptional<z.ZodString>;
34
+ lineItem: z.ZodObject<{
35
+ Description: z.ZodString;
36
+ Quantity: z.ZodOptional<z.ZodNumber>;
37
+ UnitAmount: z.ZodOptional<z.ZodNumber>;
38
+ AccountCode: z.ZodOptional<z.ZodString>;
39
+ ItemCode: z.ZodOptional<z.ZodString>;
40
+ TaxType: z.ZodOptional<z.ZodString>;
41
+ DiscountRate: z.ZodOptional<z.ZodNumber>;
42
+ LineItemID: z.ZodOptional<z.ZodString>;
43
+ }, z.core.$strip>;
44
+ date: z.ZodOptional<z.ZodString>;
45
+ dueDate: z.ZodString;
46
+ reference: z.ZodOptional<z.ZodString>;
47
+ status: z.ZodEnum<{
48
+ DRAFT: "DRAFT";
49
+ SUBMITTED: "SUBMITTED";
50
+ AUTHORISED: "AUTHORISED";
51
+ DELETED: "DELETED";
52
+ VOIDED: "VOIDED";
53
+ }>;
54
+ tenantId: z.ZodString;
55
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnion<readonly [z.ZodJSONSchema, z.ZodArray<z.ZodJSONSchema>]>>>, {
56
+ webhookKey?: string | undefined;
57
+ }, {
58
+ listTenants: (signal?: AbortSignal) => Promise<{
59
+ tenantId: string;
60
+ tenantName: string;
61
+ }[]>;
62
+ request: <TSchema extends z.ZodType>(input: {
63
+ path: string;
64
+ tenantId?: string;
65
+ method?: "DELETE" | "GET" | "POST" | "PUT";
66
+ body?: BodyInit | XeroJSON;
67
+ headers?: Record<string, string>;
68
+ query?: Record<string, boolean | number | string | undefined>;
69
+ signal?: AbortSignal;
70
+ base?: "accounting" | "connections" | "identity" | "projects";
71
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
72
+ }, {
73
+ [x: string]: z.core.util.JSONType | z.core.util.JSONType[];
74
+ }> & {
75
+ slug: "createOrUpdateInvoice";
76
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
77
+ creditNoteId: z.ZodString;
78
+ invoiceId: z.ZodString;
79
+ amount: z.ZodNumber;
80
+ date: z.ZodOptional<z.ZodString>;
81
+ tenantId: z.ZodString;
82
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnion<readonly [z.ZodJSONSchema, z.ZodArray<z.ZodJSONSchema>]>>>, {
83
+ webhookKey?: string | undefined;
84
+ }, {
85
+ listTenants: (signal?: AbortSignal) => Promise<{
86
+ tenantId: string;
87
+ tenantName: string;
88
+ }[]>;
89
+ request: <TSchema extends z.ZodType>(input: {
90
+ path: string;
91
+ tenantId?: string;
92
+ method?: "DELETE" | "GET" | "POST" | "PUT";
93
+ body?: BodyInit | XeroJSON;
94
+ headers?: Record<string, string>;
95
+ query?: Record<string, boolean | number | string | undefined>;
96
+ signal?: AbortSignal;
97
+ base?: "accounting" | "connections" | "identity" | "projects";
98
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
99
+ }, {
100
+ [x: string]: z.core.util.JSONType | z.core.util.JSONType[];
101
+ }> & {
102
+ slug: "allocateCreditNote";
103
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
104
+ fromBankAccountId: z.ZodString;
105
+ toBankAccountId: z.ZodString;
106
+ amount: z.ZodNumber;
107
+ date: z.ZodOptional<z.ZodString>;
108
+ reference: z.ZodOptional<z.ZodString>;
109
+ fromIsReconciled: z.ZodDefault<z.ZodBoolean>;
110
+ toIsReconciled: z.ZodDefault<z.ZodBoolean>;
111
+ tenantId: z.ZodString;
112
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnion<readonly [z.ZodJSONSchema, z.ZodArray<z.ZodJSONSchema>]>>>, {
113
+ webhookKey?: string | undefined;
114
+ }, {
115
+ listTenants: (signal?: AbortSignal) => Promise<{
116
+ tenantId: string;
117
+ tenantName: string;
118
+ }[]>;
119
+ request: <TSchema extends z.ZodType>(input: {
120
+ path: string;
121
+ tenantId?: string;
122
+ method?: "DELETE" | "GET" | "POST" | "PUT";
123
+ body?: BodyInit | XeroJSON;
124
+ headers?: Record<string, string>;
125
+ query?: Record<string, boolean | number | string | undefined>;
126
+ signal?: AbortSignal;
127
+ base?: "accounting" | "connections" | "identity" | "projects";
128
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
129
+ }, {
130
+ [x: string]: z.core.util.JSONType | z.core.util.JSONType[];
131
+ }> & {
132
+ slug: "createBankTransfer";
133
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
134
+ contactId: z.ZodString;
135
+ date: z.ZodString;
136
+ expiryDate: z.ZodOptional<z.ZodString>;
137
+ lineItem: z.ZodObject<{
138
+ Description: z.ZodString;
139
+ Quantity: z.ZodOptional<z.ZodNumber>;
140
+ UnitAmount: z.ZodOptional<z.ZodNumber>;
141
+ AccountCode: z.ZodOptional<z.ZodString>;
142
+ ItemCode: z.ZodOptional<z.ZodString>;
143
+ TaxType: z.ZodOptional<z.ZodString>;
144
+ DiscountRate: z.ZodOptional<z.ZodNumber>;
145
+ LineItemID: z.ZodOptional<z.ZodString>;
146
+ }, z.core.$strip>;
147
+ lineAmountTypes: z.ZodOptional<z.ZodEnum<{
148
+ Exclusive: "Exclusive";
149
+ Inclusive: "Inclusive";
150
+ NoTax: "NoTax";
151
+ }>>;
152
+ reference: z.ZodOptional<z.ZodString>;
153
+ quoteNumber: z.ZodOptional<z.ZodString>;
154
+ title: z.ZodOptional<z.ZodString>;
155
+ summary: z.ZodOptional<z.ZodString>;
156
+ terms: z.ZodOptional<z.ZodString>;
157
+ status: z.ZodDefault<z.ZodLiteral<"DRAFT">>;
158
+ tenantId: z.ZodString;
159
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnion<readonly [z.ZodJSONSchema, z.ZodArray<z.ZodJSONSchema>]>>>, {
160
+ webhookKey?: string | undefined;
161
+ }, {
162
+ listTenants: (signal?: AbortSignal) => Promise<{
163
+ tenantId: string;
164
+ tenantName: string;
165
+ }[]>;
166
+ request: <TSchema extends z.ZodType>(input: {
167
+ path: string;
168
+ tenantId?: string;
169
+ method?: "DELETE" | "GET" | "POST" | "PUT";
170
+ body?: BodyInit | XeroJSON;
171
+ headers?: Record<string, string>;
172
+ query?: Record<string, boolean | number | string | undefined>;
173
+ signal?: AbortSignal;
174
+ base?: "accounting" | "connections" | "identity" | "projects";
175
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
176
+ }, {
177
+ [x: string]: z.core.util.JSONType | z.core.util.JSONType[];
178
+ }> & {
179
+ slug: "createQuote";
180
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
5
181
  invoiceId: z.ZodString;
6
182
  tenantId: z.ZodString;
7
- }, z.core.$strip>;
8
- export declare const xeroActions: ({
9
- slug: string;
10
- label: string;
11
- description: string;
12
- input: z.ZodObject<{
13
- invoiceId: z.ZodString;
14
- tenantId: z.ZodString;
183
+ }, z.core.$strip>, z.ZodObject<{
184
+ success: z.ZodLiteral<true>;
185
+ }, z.core.$strip>, {
186
+ webhookKey?: string | undefined;
187
+ }, {
188
+ listTenants: (signal?: AbortSignal) => Promise<{
189
+ tenantId: string;
190
+ tenantName: string;
191
+ }[]>;
192
+ request: <TSchema extends z.ZodType>(input: {
193
+ path: string;
194
+ tenantId?: string;
195
+ method?: "DELETE" | "GET" | "POST" | "PUT";
196
+ body?: BodyInit | XeroJSON;
197
+ headers?: Record<string, string>;
198
+ query?: Record<string, boolean | number | string | undefined>;
199
+ signal?: AbortSignal;
200
+ base?: "accounting" | "connections" | "identity" | "projects";
201
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
202
+ }, {
203
+ success: true;
204
+ }> & {
205
+ slug: "sendInvoiceEmail";
206
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
207
+ contactId: z.ZodString;
208
+ lineItem: z.ZodObject<{
209
+ Description: z.ZodString;
210
+ Quantity: z.ZodOptional<z.ZodNumber>;
211
+ UnitAmount: z.ZodOptional<z.ZodNumber>;
212
+ AccountCode: z.ZodOptional<z.ZodString>;
213
+ ItemCode: z.ZodOptional<z.ZodString>;
214
+ TaxType: z.ZodOptional<z.ZodString>;
215
+ DiscountRate: z.ZodOptional<z.ZodNumber>;
216
+ LineItemID: z.ZodOptional<z.ZodString>;
15
217
  }, z.core.$strip>;
16
- output: z.ZodObject<{
17
- success: z.ZodLiteral<true>;
218
+ date: z.ZodOptional<z.ZodString>;
219
+ dueDate: z.ZodOptional<z.ZodString>;
220
+ lineAmountTypes: z.ZodOptional<z.ZodEnum<{
221
+ Exclusive: "Exclusive";
222
+ Inclusive: "Inclusive";
223
+ NoTax: "NoTax";
224
+ }>>;
225
+ invoiceNumber: z.ZodOptional<z.ZodString>;
226
+ status: z.ZodDefault<z.ZodEnum<{
227
+ DRAFT: "DRAFT";
228
+ SUBMITTED: "SUBMITTED";
229
+ AUTHORISED: "AUTHORISED";
230
+ }>>;
231
+ tenantId: z.ZodString;
232
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnion<readonly [z.ZodJSONSchema, z.ZodArray<z.ZodJSONSchema>]>>>, {
233
+ webhookKey?: string | undefined;
234
+ }, {
235
+ listTenants: (signal?: AbortSignal) => Promise<{
236
+ tenantId: string;
237
+ tenantName: string;
238
+ }[]>;
239
+ request: <TSchema extends z.ZodType>(input: {
240
+ path: string;
241
+ tenantId?: string;
242
+ method?: "DELETE" | "GET" | "POST" | "PUT";
243
+ body?: BodyInit | XeroJSON;
244
+ headers?: Record<string, string>;
245
+ query?: Record<string, boolean | number | string | undefined>;
246
+ signal?: AbortSignal;
247
+ base?: "accounting" | "connections" | "identity" | "projects";
248
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
249
+ }, {
250
+ [x: string]: z.core.util.JSONType | z.core.util.JSONType[];
251
+ }> & {
252
+ slug: "createBill";
253
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
254
+ invoiceId: z.ZodString;
255
+ accountId: z.ZodString;
256
+ amount: z.ZodNumber;
257
+ date: z.ZodString;
258
+ reference: z.ZodOptional<z.ZodString>;
259
+ isReconciled: z.ZodDefault<z.ZodBoolean>;
260
+ tenantId: z.ZodString;
261
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnion<readonly [z.ZodJSONSchema, z.ZodArray<z.ZodJSONSchema>]>>>, {
262
+ webhookKey?: string | undefined;
263
+ }, {
264
+ listTenants: (signal?: AbortSignal) => Promise<{
265
+ tenantId: string;
266
+ tenantName: string;
267
+ }[]>;
268
+ request: <TSchema extends z.ZodType>(input: {
269
+ path: string;
270
+ tenantId?: string;
271
+ method?: "DELETE" | "GET" | "POST" | "PUT";
272
+ body?: BodyInit | XeroJSON;
273
+ headers?: Record<string, string>;
274
+ query?: Record<string, boolean | number | string | undefined>;
275
+ signal?: AbortSignal;
276
+ base?: "accounting" | "connections" | "identity" | "projects";
277
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
278
+ }, {
279
+ [x: string]: z.core.util.JSONType | z.core.util.JSONType[];
280
+ }> & {
281
+ slug: "createPayment";
282
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
283
+ contactId: z.ZodString;
284
+ lineItem: z.ZodObject<{
285
+ Description: z.ZodString;
286
+ Quantity: z.ZodOptional<z.ZodNumber>;
287
+ UnitAmount: z.ZodOptional<z.ZodNumber>;
288
+ AccountCode: z.ZodOptional<z.ZodString>;
289
+ ItemCode: z.ZodOptional<z.ZodString>;
290
+ TaxType: z.ZodOptional<z.ZodString>;
291
+ DiscountRate: z.ZodOptional<z.ZodNumber>;
292
+ LineItemID: z.ZodOptional<z.ZodString>;
293
+ }, z.core.$strip>;
294
+ date: z.ZodOptional<z.ZodString>;
295
+ deliveryDate: z.ZodOptional<z.ZodString>;
296
+ lineAmountTypes: z.ZodOptional<z.ZodEnum<{
297
+ Exclusive: "Exclusive";
298
+ Inclusive: "Inclusive";
299
+ NoTax: "NoTax";
300
+ }>>;
301
+ purchaseOrderNumber: z.ZodOptional<z.ZodString>;
302
+ reference: z.ZodOptional<z.ZodString>;
303
+ brandingThemeId: z.ZodOptional<z.ZodString>;
304
+ status: z.ZodDefault<z.ZodEnum<{
305
+ DRAFT: "DRAFT";
306
+ SUBMITTED: "SUBMITTED";
307
+ AUTHORISED: "AUTHORISED";
308
+ DELETED: "DELETED";
309
+ BILLED: "BILLED";
310
+ }>>;
311
+ deliveryAddress: z.ZodOptional<z.ZodString>;
312
+ attentionTo: z.ZodOptional<z.ZodString>;
313
+ telephone: z.ZodOptional<z.ZodString>;
314
+ deliveryInstructions: z.ZodOptional<z.ZodString>;
315
+ expectedArrivalDate: z.ZodOptional<z.ZodString>;
316
+ tenantId: z.ZodString;
317
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnion<readonly [z.ZodJSONSchema, z.ZodArray<z.ZodJSONSchema>]>>>, {
318
+ webhookKey?: string | undefined;
319
+ }, {
320
+ listTenants: (signal?: AbortSignal) => Promise<{
321
+ tenantId: string;
322
+ tenantName: string;
323
+ }[]>;
324
+ request: <TSchema extends z.ZodType>(input: {
325
+ path: string;
326
+ tenantId?: string;
327
+ method?: "DELETE" | "GET" | "POST" | "PUT";
328
+ body?: BodyInit | XeroJSON;
329
+ headers?: Record<string, string>;
330
+ query?: Record<string, boolean | number | string | undefined>;
331
+ signal?: AbortSignal;
332
+ base?: "accounting" | "connections" | "identity" | "projects";
333
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
334
+ }, {
335
+ [x: string]: z.core.util.JSONType | z.core.util.JSONType[];
336
+ }> & {
337
+ slug: "createPurchaseOrder";
338
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
339
+ purchaseOrderId: z.ZodString;
340
+ status: z.ZodOptional<z.ZodEnum<{
341
+ DRAFT: "DRAFT";
342
+ SUBMITTED: "SUBMITTED";
343
+ AUTHORISED: "AUTHORISED";
344
+ DELETED: "DELETED";
345
+ BILLED: "BILLED";
346
+ }>>;
347
+ sentToContact: z.ZodDefault<z.ZodBoolean>;
348
+ deliveryAddress: z.ZodOptional<z.ZodString>;
349
+ attentionTo: z.ZodOptional<z.ZodString>;
350
+ telephone: z.ZodOptional<z.ZodString>;
351
+ deliveryInstructions: z.ZodOptional<z.ZodString>;
352
+ expectedArrivalDate: z.ZodOptional<z.ZodString>;
353
+ tenantId: z.ZodString;
354
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnion<readonly [z.ZodJSONSchema, z.ZodArray<z.ZodJSONSchema>]>>>, {
355
+ webhookKey?: string | undefined;
356
+ }, {
357
+ listTenants: (signal?: AbortSignal) => Promise<{
358
+ tenantId: string;
359
+ tenantName: string;
360
+ }[]>;
361
+ request: <TSchema extends z.ZodType>(input: {
362
+ path: string;
363
+ tenantId?: string;
364
+ method?: "DELETE" | "GET" | "POST" | "PUT";
365
+ body?: BodyInit | XeroJSON;
366
+ headers?: Record<string, string>;
367
+ query?: Record<string, boolean | number | string | undefined>;
368
+ signal?: AbortSignal;
369
+ base?: "accounting" | "connections" | "identity" | "projects";
370
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
371
+ }, {
372
+ [x: string]: z.core.util.JSONType | z.core.util.JSONType[];
373
+ }> & {
374
+ slug: "updatePurchaseOrder";
375
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
376
+ resourceType: z.ZodEnum<{
377
+ Contacts: "Contacts";
378
+ Invoices: "Invoices";
379
+ BankTransfers: "BankTransfers";
380
+ Quotes: "Quotes";
381
+ PurchaseOrders: "PurchaseOrders";
382
+ CreditNotes: "CreditNotes";
383
+ BankTransactions: "BankTransactions";
384
+ Accounts: "Accounts";
385
+ ManualJournals: "ManualJournals";
386
+ Receipts: "Receipts";
387
+ RepeatingInvoices: "RepeatingInvoices";
388
+ }>;
389
+ resourceId: z.ZodString;
390
+ file: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
391
+ fileName: z.ZodString;
392
+ contentType: z.ZodDefault<z.ZodString>;
393
+ includeOnline: z.ZodDefault<z.ZodBoolean>;
394
+ tenantId: z.ZodString;
395
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnion<readonly [z.ZodJSONSchema, z.ZodArray<z.ZodJSONSchema>]>>>, {
396
+ webhookKey?: string | undefined;
397
+ }, {
398
+ listTenants: (signal?: AbortSignal) => Promise<{
399
+ tenantId: string;
400
+ tenantName: string;
401
+ }[]>;
402
+ request: <TSchema extends z.ZodType>(input: {
403
+ path: string;
404
+ tenantId?: string;
405
+ method?: "DELETE" | "GET" | "POST" | "PUT";
406
+ body?: BodyInit | XeroJSON;
407
+ headers?: Record<string, string>;
408
+ query?: Record<string, boolean | number | string | undefined>;
409
+ signal?: AbortSignal;
410
+ base?: "accounting" | "connections" | "identity" | "projects";
411
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
412
+ }, {
413
+ [x: string]: z.core.util.JSONType | z.core.util.JSONType[];
414
+ }> & {
415
+ slug: "uploadAttachment";
416
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
417
+ invoiceId: z.ZodString;
418
+ newLineItems: z.ZodArray<z.ZodObject<{
419
+ Description: z.ZodString;
420
+ Quantity: z.ZodOptional<z.ZodNumber>;
421
+ UnitAmount: z.ZodOptional<z.ZodNumber>;
422
+ AccountCode: z.ZodOptional<z.ZodString>;
423
+ ItemCode: z.ZodOptional<z.ZodString>;
424
+ TaxType: z.ZodOptional<z.ZodString>;
425
+ DiscountRate: z.ZodOptional<z.ZodNumber>;
426
+ LineItemID: z.ZodOptional<z.ZodString>;
427
+ }, z.core.$strip>>;
428
+ tenantId: z.ZodString;
429
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnion<readonly [z.ZodJSONSchema, z.ZodArray<z.ZodJSONSchema>]>>>, {
430
+ webhookKey?: string | undefined;
431
+ }, {
432
+ listTenants: (signal?: AbortSignal) => Promise<{
433
+ tenantId: string;
434
+ tenantName: string;
435
+ }[]>;
436
+ request: <TSchema extends z.ZodType>(input: {
437
+ path: string;
438
+ tenantId?: string;
439
+ method?: "DELETE" | "GET" | "POST" | "PUT";
440
+ body?: BodyInit | XeroJSON;
441
+ headers?: Record<string, string>;
442
+ query?: Record<string, boolean | number | string | undefined>;
443
+ signal?: AbortSignal;
444
+ base?: "accounting" | "connections" | "identity" | "projects";
445
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
446
+ }, {
447
+ [x: string]: z.core.util.JSONType | z.core.util.JSONType[];
448
+ }> & {
449
+ slug: "addInvoiceItems";
450
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
451
+ type: z.ZodDefault<z.ZodEnum<{
452
+ ACCRECCREDIT: "ACCRECCREDIT";
453
+ ACCPAYCREDIT: "ACCPAYCREDIT";
454
+ }>>;
455
+ contactId: z.ZodString;
456
+ date: z.ZodOptional<z.ZodString>;
457
+ status: z.ZodDefault<z.ZodEnum<{
458
+ DRAFT: "DRAFT";
459
+ AUTHORISED: "AUTHORISED";
460
+ }>>;
461
+ lineAmountTypes: z.ZodOptional<z.ZodEnum<{
462
+ Exclusive: "Exclusive";
463
+ Inclusive: "Inclusive";
464
+ NoTax: "NoTax";
465
+ }>>;
466
+ creditNoteNumber: z.ZodOptional<z.ZodString>;
467
+ reference: z.ZodOptional<z.ZodString>;
468
+ currencyCode: z.ZodOptional<z.ZodString>;
469
+ brandingThemeId: z.ZodOptional<z.ZodString>;
470
+ lineItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
471
+ Description: z.ZodString;
472
+ Quantity: z.ZodOptional<z.ZodNumber>;
473
+ UnitAmount: z.ZodOptional<z.ZodNumber>;
474
+ AccountCode: z.ZodOptional<z.ZodString>;
475
+ ItemCode: z.ZodOptional<z.ZodString>;
476
+ TaxType: z.ZodOptional<z.ZodString>;
477
+ DiscountRate: z.ZodOptional<z.ZodNumber>;
478
+ LineItemID: z.ZodOptional<z.ZodString>;
479
+ }, z.core.$strip>>>;
480
+ tenantId: z.ZodString;
481
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnion<readonly [z.ZodJSONSchema, z.ZodArray<z.ZodJSONSchema>]>>>, {
482
+ webhookKey?: string | undefined;
483
+ }, {
484
+ listTenants: (signal?: AbortSignal) => Promise<{
485
+ tenantId: string;
486
+ tenantName: string;
487
+ }[]>;
488
+ request: <TSchema extends z.ZodType>(input: {
489
+ path: string;
490
+ tenantId?: string;
491
+ method?: "DELETE" | "GET" | "POST" | "PUT";
492
+ body?: BodyInit | XeroJSON;
493
+ headers?: Record<string, string>;
494
+ query?: Record<string, boolean | number | string | undefined>;
495
+ signal?: AbortSignal;
496
+ base?: "accounting" | "connections" | "identity" | "projects";
497
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
498
+ }, {
499
+ [x: string]: z.core.util.JSONType | z.core.util.JSONType[];
500
+ }> & {
501
+ slug: "createCreditNote";
502
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
503
+ code: z.ZodString;
504
+ name: z.ZodOptional<z.ZodString>;
505
+ description: z.ZodOptional<z.ZodString>;
506
+ purchaseDescription: z.ZodOptional<z.ZodString>;
507
+ isSold: z.ZodDefault<z.ZodBoolean>;
508
+ isPurchased: z.ZodDefault<z.ZodBoolean>;
509
+ salesDetails: z.ZodOptional<z.ZodObject<{
510
+ UnitPrice: z.ZodNumber;
511
+ }, z.core.$strip>>;
512
+ purchaseDetails: z.ZodOptional<z.ZodObject<{
513
+ UnitPrice: z.ZodNumber;
514
+ }, z.core.$strip>>;
515
+ salesAccountId: z.ZodOptional<z.ZodString>;
516
+ purchaseAccountId: z.ZodOptional<z.ZodString>;
517
+ cogsAccountId: z.ZodOptional<z.ZodString>;
518
+ inventoryAssetAccountId: z.ZodOptional<z.ZodString>;
519
+ tenantId: z.ZodString;
520
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnion<readonly [z.ZodJSONSchema, z.ZodArray<z.ZodJSONSchema>]>>>, {
521
+ webhookKey?: string | undefined;
522
+ }, {
523
+ listTenants: (signal?: AbortSignal) => Promise<{
524
+ tenantId: string;
525
+ tenantName: string;
526
+ }[]>;
527
+ request: <TSchema extends z.ZodType>(input: {
528
+ path: string;
529
+ tenantId?: string;
530
+ method?: "DELETE" | "GET" | "POST" | "PUT";
531
+ body?: BodyInit | XeroJSON;
532
+ headers?: Record<string, string>;
533
+ query?: Record<string, boolean | number | string | undefined>;
534
+ signal?: AbortSignal;
535
+ base?: "accounting" | "connections" | "identity" | "projects";
536
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
537
+ }, {
538
+ [x: string]: z.core.util.JSONType | z.core.util.JSONType[];
539
+ }> & {
540
+ slug: "createItem";
541
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
542
+ contactId: z.ZodString;
543
+ name: z.ZodString;
544
+ deadlineUtc: z.ZodOptional<z.ZodString>;
545
+ estimateAmount: z.ZodOptional<z.ZodNumber>;
546
+ tenantId: z.ZodString;
547
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnion<readonly [z.ZodJSONSchema, z.ZodArray<z.ZodJSONSchema>]>>>, {
548
+ webhookKey?: string | undefined;
549
+ }, {
550
+ listTenants: (signal?: AbortSignal) => Promise<{
551
+ tenantId: string;
552
+ tenantName: string;
553
+ }[]>;
554
+ request: <TSchema extends z.ZodType>(input: {
555
+ path: string;
556
+ tenantId?: string;
557
+ method?: "DELETE" | "GET" | "POST" | "PUT";
558
+ body?: BodyInit | XeroJSON;
559
+ headers?: Record<string, string>;
560
+ query?: Record<string, boolean | number | string | undefined>;
561
+ signal?: AbortSignal;
562
+ base?: "accounting" | "connections" | "identity" | "projects";
563
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
564
+ }, {
565
+ [x: string]: z.core.util.JSONType | z.core.util.JSONType[];
566
+ }> & {
567
+ slug: "createProject";
568
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
569
+ invoiceId: z.ZodString;
570
+ reference: z.ZodOptional<z.ZodString>;
571
+ dueDate: z.ZodOptional<z.ZodString>;
572
+ invoiceNumber: z.ZodOptional<z.ZodString>;
573
+ brandingThemeId: z.ZodOptional<z.ZodString>;
574
+ url: z.ZodOptional<z.ZodString>;
575
+ contactId: z.ZodOptional<z.ZodString>;
576
+ status: z.ZodOptional<z.ZodEnum<{
577
+ DRAFT: "DRAFT";
578
+ SUBMITTED: "SUBMITTED";
579
+ AUTHORISED: "AUTHORISED";
580
+ DELETED: "DELETED";
581
+ VOIDED: "VOIDED";
582
+ }>>;
583
+ sentToContact: z.ZodDefault<z.ZodBoolean>;
584
+ replaceAllLineItems: z.ZodDefault<z.ZodBoolean>;
585
+ lineItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
586
+ Description: z.ZodString;
587
+ Quantity: z.ZodOptional<z.ZodNumber>;
588
+ UnitAmount: z.ZodOptional<z.ZodNumber>;
589
+ AccountCode: z.ZodOptional<z.ZodString>;
590
+ ItemCode: z.ZodOptional<z.ZodString>;
591
+ TaxType: z.ZodOptional<z.ZodString>;
592
+ DiscountRate: z.ZodOptional<z.ZodNumber>;
593
+ LineItemID: z.ZodOptional<z.ZodString>;
594
+ }, z.core.$strip>>>;
595
+ tenantId: z.ZodString;
596
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnion<readonly [z.ZodJSONSchema, z.ZodArray<z.ZodJSONSchema>]>>>, {
597
+ webhookKey?: string | undefined;
598
+ }, {
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 | 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
+ [x: string]: z.core.util.JSONType | z.core.util.JSONType[];
615
+ }> & {
616
+ slug: "updateInvoice";
617
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
618
+ contactId: z.ZodString;
619
+ schedulePeriod: z.ZodNumber;
620
+ scheduleUnit: z.ZodEnum<{
621
+ WEEKLY: "WEEKLY";
622
+ MONTHLY: "MONTHLY";
623
+ }>;
624
+ dueDate: z.ZodNumber;
625
+ dueDateType: z.ZodEnum<{
626
+ OFCURRENTMONTH: "OFCURRENTMONTH";
627
+ OFFOLLOWINGMONTH: "OFFOLLOWINGMONTH";
628
+ DAYSAFTERBILLDATE: "DAYSAFTERBILLDATE";
629
+ DAYSAFTERBILLMONTH: "DAYSAFTERBILLMONTH";
630
+ }>;
631
+ startDate: z.ZodString;
632
+ endDate: z.ZodOptional<z.ZodString>;
633
+ lineAmountTypes: z.ZodDefault<z.ZodEnum<{
634
+ Exclusive: "Exclusive";
635
+ Inclusive: "Inclusive";
636
+ NoTax: "NoTax";
637
+ }>>;
638
+ currencyCode: z.ZodString;
639
+ status: z.ZodDefault<z.ZodEnum<{
640
+ DRAFT: "DRAFT";
641
+ AUTHORISED: "AUTHORISED";
642
+ }>>;
643
+ reference: z.ZodOptional<z.ZodString>;
644
+ brandingThemeId: z.ZodOptional<z.ZodString>;
645
+ approvedForSending: z.ZodDefault<z.ZodBoolean>;
646
+ sendCopy: z.ZodDefault<z.ZodBoolean>;
647
+ markAsSent: z.ZodDefault<z.ZodBoolean>;
648
+ includePdf: z.ZodDefault<z.ZodBoolean>;
649
+ lineItems: z.ZodArray<z.ZodObject<{
650
+ Description: z.ZodString;
651
+ Quantity: z.ZodOptional<z.ZodNumber>;
652
+ UnitAmount: z.ZodOptional<z.ZodNumber>;
653
+ AccountCode: z.ZodOptional<z.ZodString>;
654
+ ItemCode: z.ZodOptional<z.ZodString>;
655
+ TaxType: z.ZodOptional<z.ZodString>;
656
+ DiscountRate: z.ZodOptional<z.ZodNumber>;
657
+ LineItemID: z.ZodOptional<z.ZodString>;
658
+ }, z.core.$strip>>;
659
+ tenantId: z.ZodString;
660
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnion<readonly [z.ZodJSONSchema, z.ZodArray<z.ZodJSONSchema>]>>>, {
661
+ webhookKey?: string | undefined;
662
+ }, {
663
+ listTenants: (signal?: AbortSignal) => Promise<{
664
+ tenantId: string;
665
+ tenantName: string;
666
+ }[]>;
667
+ request: <TSchema extends z.ZodType>(input: {
668
+ path: string;
669
+ tenantId?: string;
670
+ method?: "DELETE" | "GET" | "POST" | "PUT";
671
+ body?: BodyInit | XeroJSON;
672
+ headers?: Record<string, string>;
673
+ query?: Record<string, boolean | number | string | undefined>;
674
+ signal?: AbortSignal;
675
+ base?: "accounting" | "connections" | "identity" | "projects";
676
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
677
+ }, {
678
+ [x: string]: z.core.util.JSONType | z.core.util.JSONType[];
679
+ }> & {
680
+ slug: "createRepeatingInvoice";
681
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
682
+ searchBy: z.ZodString;
683
+ value: z.ZodString;
684
+ page: z.ZodOptional<z.ZodNumber>;
685
+ tenantId: z.ZodString;
686
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnion<readonly [z.ZodJSONSchema, z.ZodArray<z.ZodJSONSchema>]>>>, {
687
+ webhookKey?: string | undefined;
688
+ }, {
689
+ listTenants: (signal?: AbortSignal) => Promise<{
690
+ tenantId: string;
691
+ tenantName: string;
692
+ }[]>;
693
+ request: <TSchema extends z.ZodType>(input: {
694
+ path: string;
695
+ tenantId?: string;
696
+ method?: "DELETE" | "GET" | "POST" | "PUT";
697
+ body?: BodyInit | XeroJSON;
698
+ headers?: Record<string, string>;
699
+ query?: Record<string, boolean | number | string | undefined>;
700
+ signal?: AbortSignal;
701
+ base?: "accounting" | "connections" | "identity" | "projects";
702
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
703
+ }, {
704
+ [x: string]: z.core.util.JSONType | z.core.util.JSONType[];
705
+ }> & {
706
+ slug: "findContact";
707
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
708
+ searchBy: z.ZodString;
709
+ value: z.ZodString;
710
+ page: z.ZodOptional<z.ZodNumber>;
711
+ tenantId: z.ZodString;
712
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnion<readonly [z.ZodJSONSchema, z.ZodArray<z.ZodJSONSchema>]>>>, {
713
+ webhookKey?: string | undefined;
714
+ }, {
715
+ listTenants: (signal?: AbortSignal) => Promise<{
716
+ tenantId: string;
717
+ tenantName: string;
718
+ }[]>;
719
+ request: <TSchema extends z.ZodType>(input: {
720
+ path: string;
721
+ tenantId?: string;
722
+ method?: "DELETE" | "GET" | "POST" | "PUT";
723
+ body?: BodyInit | XeroJSON;
724
+ headers?: Record<string, string>;
725
+ query?: Record<string, boolean | number | string | undefined>;
726
+ signal?: AbortSignal;
727
+ base?: "accounting" | "connections" | "identity" | "projects";
728
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
729
+ }, {
730
+ [x: string]: z.core.util.JSONType | z.core.util.JSONType[];
731
+ }> & {
732
+ slug: "findInvoice";
733
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
734
+ searchBy: z.ZodString;
735
+ value: z.ZodString;
736
+ page: z.ZodOptional<z.ZodNumber>;
737
+ tenantId: z.ZodString;
738
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnion<readonly [z.ZodJSONSchema, z.ZodArray<z.ZodJSONSchema>]>>>, {
739
+ webhookKey?: string | undefined;
740
+ }, {
741
+ listTenants: (signal?: AbortSignal) => Promise<{
742
+ tenantId: string;
743
+ tenantName: string;
744
+ }[]>;
745
+ request: <TSchema extends z.ZodType>(input: {
746
+ path: string;
747
+ tenantId?: string;
748
+ method?: "DELETE" | "GET" | "POST" | "PUT";
749
+ body?: BodyInit | XeroJSON;
750
+ headers?: Record<string, string>;
751
+ query?: Record<string, boolean | number | string | undefined>;
752
+ signal?: AbortSignal;
753
+ base?: "accounting" | "connections" | "identity" | "projects";
754
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
755
+ }, {
756
+ [x: string]: z.core.util.JSONType | z.core.util.JSONType[];
757
+ }> & {
758
+ slug: "findItem";
759
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
760
+ searchBy: z.ZodString;
761
+ value: z.ZodString;
762
+ page: z.ZodOptional<z.ZodNumber>;
763
+ tenantId: z.ZodString;
764
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnion<readonly [z.ZodJSONSchema, z.ZodArray<z.ZodJSONSchema>]>>>, {
765
+ webhookKey?: string | undefined;
766
+ }, {
767
+ listTenants: (signal?: AbortSignal) => Promise<{
768
+ tenantId: string;
769
+ tenantName: string;
770
+ }[]>;
771
+ request: <TSchema extends z.ZodType>(input: {
772
+ path: string;
773
+ tenantId?: string;
774
+ method?: "DELETE" | "GET" | "POST" | "PUT";
775
+ body?: BodyInit | XeroJSON;
776
+ headers?: Record<string, string>;
777
+ query?: Record<string, boolean | number | string | undefined>;
778
+ signal?: AbortSignal;
779
+ base?: "accounting" | "connections" | "identity" | "projects";
780
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
781
+ }, {
782
+ [x: string]: z.core.util.JSONType | z.core.util.JSONType[];
783
+ }> & {
784
+ slug: "findPurchaseOrder";
785
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
786
+ invoiceId: z.ZodString;
787
+ tenantId: z.ZodString;
788
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnion<readonly [z.ZodJSONSchema, z.ZodArray<z.ZodJSONSchema>]>>>, {
789
+ webhookKey?: string | undefined;
790
+ }, {
791
+ listTenants: (signal?: AbortSignal) => Promise<{
792
+ tenantId: string;
793
+ tenantName: string;
794
+ }[]>;
795
+ request: <TSchema extends z.ZodType>(input: {
796
+ path: string;
797
+ tenantId?: string;
798
+ method?: "DELETE" | "GET" | "POST" | "PUT";
799
+ body?: BodyInit | XeroJSON;
800
+ headers?: Record<string, string>;
801
+ query?: Record<string, boolean | number | string | undefined>;
802
+ signal?: AbortSignal;
803
+ base?: "accounting" | "connections" | "identity" | "projects";
804
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
805
+ }, {
806
+ [x: string]: z.core.util.JSONType | z.core.util.JSONType[];
807
+ }> & {
808
+ slug: "getInvoiceHistory";
809
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
810
+ type: z.ZodDefault<z.ZodEnum<{
811
+ SPEND: "SPEND";
812
+ RECEIVE: "RECEIVE";
813
+ }>>;
814
+ contactId: z.ZodString;
815
+ bankAccountId: z.ZodString;
816
+ lineItem: z.ZodObject<{
817
+ Description: z.ZodString;
818
+ Quantity: z.ZodOptional<z.ZodNumber>;
819
+ UnitAmount: z.ZodOptional<z.ZodNumber>;
820
+ AccountCode: z.ZodOptional<z.ZodString>;
821
+ ItemCode: z.ZodOptional<z.ZodString>;
822
+ TaxType: z.ZodOptional<z.ZodString>;
823
+ DiscountRate: z.ZodOptional<z.ZodNumber>;
824
+ LineItemID: z.ZodOptional<z.ZodString>;
18
825
  }, z.core.$strip>;
19
- run({ input, client, req, }: PieceRunArgs<z.output<typeof sendInvoiceEmailInput>, object, XeroClient>): Promise<{
20
- success: boolean;
826
+ date: z.ZodOptional<z.ZodString>;
827
+ reference: z.ZodOptional<z.ZodString>;
828
+ lineAmountTypes: z.ZodOptional<z.ZodEnum<{
829
+ Exclusive: "Exclusive";
830
+ Inclusive: "Inclusive";
831
+ NoTax: "NoTax";
832
+ }>>;
833
+ isReconciled: z.ZodDefault<z.ZodBoolean>;
834
+ tenantId: z.ZodString;
835
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnion<readonly [z.ZodJSONSchema, z.ZodArray<z.ZodJSONSchema>]>>>, {
836
+ webhookKey?: string | undefined;
837
+ }, {
838
+ listTenants: (signal?: AbortSignal) => Promise<{
839
+ tenantId: string;
840
+ tenantName: string;
841
+ }[]>;
842
+ request: <TSchema extends z.ZodType>(input: {
843
+ path: string;
844
+ tenantId?: string;
845
+ method?: "DELETE" | "GET" | "POST" | "PUT";
846
+ body?: BodyInit | XeroJSON;
847
+ headers?: Record<string, string>;
848
+ query?: Record<string, boolean | number | string | undefined>;
849
+ signal?: AbortSignal;
850
+ base?: "accounting" | "connections" | "identity" | "projects";
851
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
852
+ }, {
853
+ [x: string]: z.core.util.JSONType | z.core.util.JSONType[];
854
+ }> & {
855
+ slug: "createBankTransaction";
856
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
857
+ email: z.ZodOptional<z.ZodString>;
858
+ tenantId: z.ZodString;
859
+ name: z.ZodString;
860
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnion<readonly [z.ZodJSONSchema, z.ZodArray<z.ZodJSONSchema>]>>>, {
861
+ webhookKey?: string | undefined;
862
+ }, {
863
+ listTenants: (signal?: AbortSignal) => Promise<{
864
+ tenantId: string;
865
+ tenantName: string;
866
+ }[]>;
867
+ request: <TSchema extends z.ZodType>(input: {
868
+ path: string;
869
+ tenantId?: string;
870
+ method?: "DELETE" | "GET" | "POST" | "PUT";
871
+ body?: BodyInit | XeroJSON;
872
+ headers?: Record<string, string>;
873
+ query?: Record<string, boolean | number | string | undefined>;
874
+ signal?: AbortSignal;
875
+ base?: "accounting" | "connections" | "identity" | "projects";
876
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
877
+ }, {
878
+ [x: string]: z.core.util.JSONType | z.core.util.JSONType[];
879
+ }> & {
880
+ slug: "findOrCreateContact";
881
+ }) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
882
+ method: z.ZodEnum<{
883
+ DELETE: "DELETE";
884
+ GET: "GET";
885
+ POST: "POST";
886
+ PUT: "PUT";
21
887
  }>;
22
- } | {
23
- slug: string;
24
- label: string;
25
- description: string;
26
- input: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
27
- output: z.ZodObject<{}, z.core.$catchall<z.ZodUnion<readonly [z.ZodJSONSchema, z.ZodArray<z.ZodJSONSchema>]>>>;
28
- idempotent: boolean;
29
- options: {
30
- tenantId({ client, req, }: {
31
- client: XeroClient;
32
- req: {
33
- signal?: AbortSignal | null;
34
- };
35
- }): Promise<{
36
- label: string;
37
- value: string;
38
- }[]>;
39
- };
40
- run: (args: PieceRunArgs<unknown, object, {
41
- listTenants: (signal?: AbortSignal) => Promise<{
42
- tenantId: string;
43
- tenantName: string;
44
- }[]>;
45
- request: <TSchema extends z.ZodType>(input: {
46
- path: string;
47
- tenantId?: string;
48
- method?: "DELETE" | "GET" | "POST" | "PUT";
49
- body?: BodyInit | XeroJSON;
50
- headers?: Record<string, string>;
51
- query?: Record<string, boolean | number | string | undefined>;
52
- signal?: AbortSignal;
53
- base?: "accounting" | "connections" | "identity" | "projects";
54
- }, schema: TSchema) => Promise<z.core.output<TSchema>>;
55
- }>) => Promise<unknown>;
56
- })[];
57
- export {};
888
+ path: z.ZodString;
889
+ query: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
890
+ body: z.ZodOptional<z.ZodJSONSchema>;
891
+ tenantId: z.ZodString;
892
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnion<readonly [z.ZodJSONSchema, z.ZodArray<z.ZodJSONSchema>]>>>, {
893
+ webhookKey?: string | undefined;
894
+ }, {
895
+ listTenants: (signal?: AbortSignal) => Promise<{
896
+ tenantId: string;
897
+ tenantName: string;
898
+ }[]>;
899
+ request: <TSchema extends z.ZodType>(input: {
900
+ path: string;
901
+ tenantId?: string;
902
+ method?: "DELETE" | "GET" | "POST" | "PUT";
903
+ body?: BodyInit | XeroJSON;
904
+ headers?: Record<string, string>;
905
+ query?: Record<string, boolean | number | string | undefined>;
906
+ signal?: AbortSignal;
907
+ base?: "accounting" | "connections" | "identity" | "projects";
908
+ }, schema: TSchema) => Promise<z.core.output<TSchema>>;
909
+ }, {
910
+ [x: string]: z.core.util.JSONType | z.core.util.JSONType[];
911
+ }> & {
912
+ slug: "customApiCall";
913
+ }))[];
58
914
  //# sourceMappingURL=actions.d.ts.map