@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.
package/dist/index.d.ts CHANGED
@@ -978,28 +978,33 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
978
978
  } & {
979
979
  type: "app";
980
980
  event: string;
981
- run(args: import("frogbot/pieces").PieceRunArgs<{
982
- tenantId: string;
983
- fetchFullRecord: boolean;
984
- }, {
985
- webhookKey?: string | undefined;
986
- }, {
987
- authorize: (headers: Headers) => void;
988
- listTenants: (signal?: AbortSignal) => Promise<{
981
+ run(args: {
982
+ input: {
989
983
  tenantId: string;
990
- tenantName: string;
991
- }[]>;
992
- request: <TSchema extends import("zod").ZodType>(input: {
993
- path: string;
994
- tenantId?: string;
995
- method?: "DELETE" | "GET" | "POST" | "PUT";
996
- body?: BodyInit | import("./client.js").XeroJSON;
997
- headers?: Record<string, string>;
998
- query?: Record<string, boolean | number | string | undefined>;
999
- signal?: AbortSignal;
1000
- base?: "accounting" | "connections" | "identity" | "projects";
1001
- }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1002
- }>): Promise<import("frogbot/pieces").TriggerEvent<{
984
+ fetchFullRecord: boolean;
985
+ };
986
+ client: {
987
+ authorize: (headers: Headers) => void;
988
+ listTenants: (signal?: AbortSignal) => Promise<{
989
+ tenantId: string;
990
+ tenantName: string;
991
+ }[]>;
992
+ request: <TSchema extends import("zod").ZodType>(input: {
993
+ path: string;
994
+ tenantId?: string;
995
+ method?: "DELETE" | "GET" | "POST" | "PUT";
996
+ body?: BodyInit | import("./client.js").XeroJSON;
997
+ headers?: Record<string, string>;
998
+ query?: Record<string, boolean | number | string | undefined>;
999
+ signal?: AbortSignal;
1000
+ base?: "accounting" | "connections" | "identity" | "projects";
1001
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1002
+ };
1003
+ req: import("frogbot/pieces").FrogBotRequest;
1004
+ options: {
1005
+ webhookKey?: string | undefined;
1006
+ };
1007
+ }): Promise<import("frogbot/pieces").TriggerEvent<{
1003
1008
  [x: string]: import("zod").JSONType;
1004
1009
  }>[]>;
1005
1010
  } & {
@@ -1019,28 +1024,33 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
1019
1024
  } & {
1020
1025
  type: "app";
1021
1026
  event: string;
1022
- run(args: import("frogbot/pieces").PieceRunArgs<{
1023
- tenantId: string;
1024
- fetchFullRecord: boolean;
1025
- }, {
1026
- webhookKey?: string | undefined;
1027
- }, {
1028
- authorize: (headers: Headers) => void;
1029
- listTenants: (signal?: AbortSignal) => Promise<{
1027
+ run(args: {
1028
+ input: {
1030
1029
  tenantId: string;
1031
- tenantName: string;
1032
- }[]>;
1033
- request: <TSchema extends import("zod").ZodType>(input: {
1034
- path: string;
1035
- tenantId?: string;
1036
- method?: "DELETE" | "GET" | "POST" | "PUT";
1037
- body?: BodyInit | import("./client.js").XeroJSON;
1038
- headers?: Record<string, string>;
1039
- query?: Record<string, boolean | number | string | undefined>;
1040
- signal?: AbortSignal;
1041
- base?: "accounting" | "connections" | "identity" | "projects";
1042
- }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1043
- }>): Promise<import("frogbot/pieces").TriggerEvent<{
1030
+ fetchFullRecord: boolean;
1031
+ };
1032
+ client: {
1033
+ authorize: (headers: Headers) => void;
1034
+ listTenants: (signal?: AbortSignal) => Promise<{
1035
+ tenantId: string;
1036
+ tenantName: string;
1037
+ }[]>;
1038
+ request: <TSchema extends import("zod").ZodType>(input: {
1039
+ path: string;
1040
+ tenantId?: string;
1041
+ method?: "DELETE" | "GET" | "POST" | "PUT";
1042
+ body?: BodyInit | import("./client.js").XeroJSON;
1043
+ headers?: Record<string, string>;
1044
+ query?: Record<string, boolean | number | string | undefined>;
1045
+ signal?: AbortSignal;
1046
+ base?: "accounting" | "connections" | "identity" | "projects";
1047
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1048
+ };
1049
+ req: import("frogbot/pieces").FrogBotRequest;
1050
+ options: {
1051
+ webhookKey?: string | undefined;
1052
+ };
1053
+ }): Promise<import("frogbot/pieces").TriggerEvent<{
1044
1054
  [x: string]: import("zod").JSONType;
1045
1055
  }>[]>;
1046
1056
  } & {
@@ -1060,28 +1070,33 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
1060
1070
  } & {
1061
1071
  type: "app";
1062
1072
  event: string;
1063
- run(args: import("frogbot/pieces").PieceRunArgs<{
1064
- tenantId: string;
1065
- fetchFullRecord: boolean;
1066
- }, {
1067
- webhookKey?: string | undefined;
1068
- }, {
1069
- authorize: (headers: Headers) => void;
1070
- listTenants: (signal?: AbortSignal) => Promise<{
1073
+ run(args: {
1074
+ input: {
1071
1075
  tenantId: string;
1072
- tenantName: string;
1073
- }[]>;
1074
- request: <TSchema extends import("zod").ZodType>(input: {
1075
- path: string;
1076
- tenantId?: string;
1077
- method?: "DELETE" | "GET" | "POST" | "PUT";
1078
- body?: BodyInit | import("./client.js").XeroJSON;
1079
- headers?: Record<string, string>;
1080
- query?: Record<string, boolean | number | string | undefined>;
1081
- signal?: AbortSignal;
1082
- base?: "accounting" | "connections" | "identity" | "projects";
1083
- }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1084
- }>): Promise<import("frogbot/pieces").TriggerEvent<{
1076
+ fetchFullRecord: boolean;
1077
+ };
1078
+ client: {
1079
+ authorize: (headers: Headers) => void;
1080
+ listTenants: (signal?: AbortSignal) => Promise<{
1081
+ tenantId: string;
1082
+ tenantName: string;
1083
+ }[]>;
1084
+ request: <TSchema extends import("zod").ZodType>(input: {
1085
+ path: string;
1086
+ tenantId?: string;
1087
+ method?: "DELETE" | "GET" | "POST" | "PUT";
1088
+ body?: BodyInit | import("./client.js").XeroJSON;
1089
+ headers?: Record<string, string>;
1090
+ query?: Record<string, boolean | number | string | undefined>;
1091
+ signal?: AbortSignal;
1092
+ base?: "accounting" | "connections" | "identity" | "projects";
1093
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1094
+ };
1095
+ req: import("frogbot/pieces").FrogBotRequest;
1096
+ options: {
1097
+ webhookKey?: string | undefined;
1098
+ };
1099
+ }): Promise<import("frogbot/pieces").TriggerEvent<{
1085
1100
  [x: string]: import("zod").JSONType;
1086
1101
  }>[]>;
1087
1102
  } & {
@@ -1101,28 +1116,33 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
1101
1116
  } & {
1102
1117
  type: "app";
1103
1118
  event: string;
1104
- run(args: import("frogbot/pieces").PieceRunArgs<{
1105
- tenantId: string;
1106
- fetchFullRecord: boolean;
1107
- }, {
1108
- webhookKey?: string | undefined;
1109
- }, {
1110
- authorize: (headers: Headers) => void;
1111
- listTenants: (signal?: AbortSignal) => Promise<{
1119
+ run(args: {
1120
+ input: {
1112
1121
  tenantId: string;
1113
- tenantName: string;
1114
- }[]>;
1115
- request: <TSchema extends import("zod").ZodType>(input: {
1116
- path: string;
1117
- tenantId?: string;
1118
- method?: "DELETE" | "GET" | "POST" | "PUT";
1119
- body?: BodyInit | import("./client.js").XeroJSON;
1120
- headers?: Record<string, string>;
1121
- query?: Record<string, boolean | number | string | undefined>;
1122
- signal?: AbortSignal;
1123
- base?: "accounting" | "connections" | "identity" | "projects";
1124
- }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1125
- }>): Promise<import("frogbot/pieces").TriggerEvent<{
1122
+ fetchFullRecord: boolean;
1123
+ };
1124
+ client: {
1125
+ authorize: (headers: Headers) => void;
1126
+ listTenants: (signal?: AbortSignal) => Promise<{
1127
+ tenantId: string;
1128
+ tenantName: string;
1129
+ }[]>;
1130
+ request: <TSchema extends import("zod").ZodType>(input: {
1131
+ path: string;
1132
+ tenantId?: string;
1133
+ method?: "DELETE" | "GET" | "POST" | "PUT";
1134
+ body?: BodyInit | import("./client.js").XeroJSON;
1135
+ headers?: Record<string, string>;
1136
+ query?: Record<string, boolean | number | string | undefined>;
1137
+ signal?: AbortSignal;
1138
+ base?: "accounting" | "connections" | "identity" | "projects";
1139
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1140
+ };
1141
+ req: import("frogbot/pieces").FrogBotRequest;
1142
+ options: {
1143
+ webhookKey?: string | undefined;
1144
+ };
1145
+ }): Promise<import("frogbot/pieces").TriggerEvent<{
1126
1146
  [x: string]: import("zod").JSONType;
1127
1147
  }>[]>;
1128
1148
  } & {
@@ -1148,34 +1168,39 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
1148
1168
  } & {
1149
1169
  type: "polling";
1150
1170
  schedule?: string;
1151
- run(args: import("frogbot/pieces").PieceRunArgs<{
1152
- tenantId: string;
1153
- statuses: string[];
1154
- types: string[];
1155
- pageSize: number;
1156
- contactId?: string | undefined;
1157
- reference?: string | undefined;
1158
- dateFrom?: string | undefined;
1159
- dateTo?: string | undefined;
1160
- }, {
1161
- webhookKey?: string | undefined;
1162
- }, {
1163
- authorize: (headers: Headers) => void;
1164
- listTenants: (signal?: AbortSignal) => Promise<{
1171
+ run(args: {
1172
+ input: {
1165
1173
  tenantId: string;
1166
- tenantName: string;
1167
- }[]>;
1168
- request: <TSchema extends import("zod").ZodType>(input: {
1169
- path: string;
1170
- tenantId?: string;
1171
- method?: "DELETE" | "GET" | "POST" | "PUT";
1172
- body?: BodyInit | import("./client.js").XeroJSON;
1173
- headers?: Record<string, string>;
1174
- query?: Record<string, boolean | number | string | undefined>;
1175
- signal?: AbortSignal;
1176
- base?: "accounting" | "connections" | "identity" | "projects";
1177
- }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1178
- }> & {
1174
+ statuses: string[];
1175
+ types: string[];
1176
+ pageSize: number;
1177
+ contactId?: string | undefined;
1178
+ reference?: string | undefined;
1179
+ dateFrom?: string | undefined;
1180
+ dateTo?: string | undefined;
1181
+ };
1182
+ client: {
1183
+ authorize: (headers: Headers) => void;
1184
+ listTenants: (signal?: AbortSignal) => Promise<{
1185
+ tenantId: string;
1186
+ tenantName: string;
1187
+ }[]>;
1188
+ request: <TSchema extends import("zod").ZodType>(input: {
1189
+ path: string;
1190
+ tenantId?: string;
1191
+ method?: "DELETE" | "GET" | "POST" | "PUT";
1192
+ body?: BodyInit | import("./client.js").XeroJSON;
1193
+ headers?: Record<string, string>;
1194
+ query?: Record<string, boolean | number | string | undefined>;
1195
+ signal?: AbortSignal;
1196
+ base?: "accounting" | "connections" | "identity" | "projects";
1197
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1198
+ };
1199
+ req: import("frogbot/pieces").FrogBotRequest;
1200
+ options: {
1201
+ webhookKey?: string | undefined;
1202
+ };
1203
+ } & {
1179
1204
  cursor?: import("frogbot/pieces").PieceJSON | undefined;
1180
1205
  }): Promise<{
1181
1206
  events: {
@@ -1206,34 +1231,39 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
1206
1231
  } & {
1207
1232
  type: "polling";
1208
1233
  schedule?: string;
1209
- run(args: import("frogbot/pieces").PieceRunArgs<{
1210
- tenantId: string;
1211
- statuses: string[];
1212
- types: string[];
1213
- pageSize: number;
1214
- contactId?: string | undefined;
1215
- reference?: string | undefined;
1216
- dateFrom?: string | undefined;
1217
- dateTo?: string | undefined;
1218
- }, {
1219
- webhookKey?: string | undefined;
1220
- }, {
1221
- authorize: (headers: Headers) => void;
1222
- listTenants: (signal?: AbortSignal) => Promise<{
1234
+ run(args: {
1235
+ input: {
1223
1236
  tenantId: string;
1224
- tenantName: string;
1225
- }[]>;
1226
- request: <TSchema extends import("zod").ZodType>(input: {
1227
- path: string;
1228
- tenantId?: string;
1229
- method?: "DELETE" | "GET" | "POST" | "PUT";
1230
- body?: BodyInit | import("./client.js").XeroJSON;
1231
- headers?: Record<string, string>;
1232
- query?: Record<string, boolean | number | string | undefined>;
1233
- signal?: AbortSignal;
1234
- base?: "accounting" | "connections" | "identity" | "projects";
1235
- }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1236
- }> & {
1237
+ statuses: string[];
1238
+ types: string[];
1239
+ pageSize: number;
1240
+ contactId?: string | undefined;
1241
+ reference?: string | undefined;
1242
+ dateFrom?: string | undefined;
1243
+ dateTo?: string | undefined;
1244
+ };
1245
+ client: {
1246
+ authorize: (headers: Headers) => void;
1247
+ listTenants: (signal?: AbortSignal) => Promise<{
1248
+ tenantId: string;
1249
+ tenantName: string;
1250
+ }[]>;
1251
+ request: <TSchema extends import("zod").ZodType>(input: {
1252
+ path: string;
1253
+ tenantId?: string;
1254
+ method?: "DELETE" | "GET" | "POST" | "PUT";
1255
+ body?: BodyInit | import("./client.js").XeroJSON;
1256
+ headers?: Record<string, string>;
1257
+ query?: Record<string, boolean | number | string | undefined>;
1258
+ signal?: AbortSignal;
1259
+ base?: "accounting" | "connections" | "identity" | "projects";
1260
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1261
+ };
1262
+ req: import("frogbot/pieces").FrogBotRequest;
1263
+ options: {
1264
+ webhookKey?: string | undefined;
1265
+ };
1266
+ } & {
1237
1267
  cursor?: import("frogbot/pieces").PieceJSON | undefined;
1238
1268
  }): Promise<{
1239
1269
  events: {
@@ -1264,34 +1294,39 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
1264
1294
  } & {
1265
1295
  type: "polling";
1266
1296
  schedule?: string;
1267
- run(args: import("frogbot/pieces").PieceRunArgs<{
1268
- tenantId: string;
1269
- statuses: string[];
1270
- types: string[];
1271
- pageSize: number;
1272
- contactId?: string | undefined;
1273
- reference?: string | undefined;
1274
- dateFrom?: string | undefined;
1275
- dateTo?: string | undefined;
1276
- }, {
1277
- webhookKey?: string | undefined;
1278
- }, {
1279
- authorize: (headers: Headers) => void;
1280
- listTenants: (signal?: AbortSignal) => Promise<{
1297
+ run(args: {
1298
+ input: {
1281
1299
  tenantId: string;
1282
- tenantName: string;
1283
- }[]>;
1284
- request: <TSchema extends import("zod").ZodType>(input: {
1285
- path: string;
1286
- tenantId?: string;
1287
- method?: "DELETE" | "GET" | "POST" | "PUT";
1288
- body?: BodyInit | import("./client.js").XeroJSON;
1289
- headers?: Record<string, string>;
1290
- query?: Record<string, boolean | number | string | undefined>;
1291
- signal?: AbortSignal;
1292
- base?: "accounting" | "connections" | "identity" | "projects";
1293
- }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1294
- }> & {
1300
+ statuses: string[];
1301
+ types: string[];
1302
+ pageSize: number;
1303
+ contactId?: string | undefined;
1304
+ reference?: string | undefined;
1305
+ dateFrom?: string | undefined;
1306
+ dateTo?: string | undefined;
1307
+ };
1308
+ client: {
1309
+ authorize: (headers: Headers) => void;
1310
+ listTenants: (signal?: AbortSignal) => Promise<{
1311
+ tenantId: string;
1312
+ tenantName: string;
1313
+ }[]>;
1314
+ request: <TSchema extends import("zod").ZodType>(input: {
1315
+ path: string;
1316
+ tenantId?: string;
1317
+ method?: "DELETE" | "GET" | "POST" | "PUT";
1318
+ body?: BodyInit | import("./client.js").XeroJSON;
1319
+ headers?: Record<string, string>;
1320
+ query?: Record<string, boolean | number | string | undefined>;
1321
+ signal?: AbortSignal;
1322
+ base?: "accounting" | "connections" | "identity" | "projects";
1323
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1324
+ };
1325
+ req: import("frogbot/pieces").FrogBotRequest;
1326
+ options: {
1327
+ webhookKey?: string | undefined;
1328
+ };
1329
+ } & {
1295
1330
  cursor?: import("frogbot/pieces").PieceJSON | undefined;
1296
1331
  }): Promise<{
1297
1332
  events: {
@@ -1322,34 +1357,39 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
1322
1357
  } & {
1323
1358
  type: "polling";
1324
1359
  schedule?: string;
1325
- run(args: import("frogbot/pieces").PieceRunArgs<{
1326
- tenantId: string;
1327
- statuses: string[];
1328
- types: string[];
1329
- pageSize: number;
1330
- contactId?: string | undefined;
1331
- reference?: string | undefined;
1332
- dateFrom?: string | undefined;
1333
- dateTo?: string | undefined;
1334
- }, {
1335
- webhookKey?: string | undefined;
1336
- }, {
1337
- authorize: (headers: Headers) => void;
1338
- listTenants: (signal?: AbortSignal) => Promise<{
1360
+ run(args: {
1361
+ input: {
1339
1362
  tenantId: string;
1340
- tenantName: string;
1341
- }[]>;
1342
- request: <TSchema extends import("zod").ZodType>(input: {
1343
- path: string;
1344
- tenantId?: string;
1345
- method?: "DELETE" | "GET" | "POST" | "PUT";
1346
- body?: BodyInit | import("./client.js").XeroJSON;
1347
- headers?: Record<string, string>;
1348
- query?: Record<string, boolean | number | string | undefined>;
1349
- signal?: AbortSignal;
1350
- base?: "accounting" | "connections" | "identity" | "projects";
1351
- }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1352
- }> & {
1363
+ statuses: string[];
1364
+ types: string[];
1365
+ pageSize: number;
1366
+ contactId?: string | undefined;
1367
+ reference?: string | undefined;
1368
+ dateFrom?: string | undefined;
1369
+ dateTo?: string | undefined;
1370
+ };
1371
+ client: {
1372
+ authorize: (headers: Headers) => void;
1373
+ listTenants: (signal?: AbortSignal) => Promise<{
1374
+ tenantId: string;
1375
+ tenantName: string;
1376
+ }[]>;
1377
+ request: <TSchema extends import("zod").ZodType>(input: {
1378
+ path: string;
1379
+ tenantId?: string;
1380
+ method?: "DELETE" | "GET" | "POST" | "PUT";
1381
+ body?: BodyInit | import("./client.js").XeroJSON;
1382
+ headers?: Record<string, string>;
1383
+ query?: Record<string, boolean | number | string | undefined>;
1384
+ signal?: AbortSignal;
1385
+ base?: "accounting" | "connections" | "identity" | "projects";
1386
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1387
+ };
1388
+ req: import("frogbot/pieces").FrogBotRequest;
1389
+ options: {
1390
+ webhookKey?: string | undefined;
1391
+ };
1392
+ } & {
1353
1393
  cursor?: import("frogbot/pieces").PieceJSON | undefined;
1354
1394
  }): Promise<{
1355
1395
  events: {
@@ -1380,34 +1420,39 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
1380
1420
  } & {
1381
1421
  type: "polling";
1382
1422
  schedule?: string;
1383
- run(args: import("frogbot/pieces").PieceRunArgs<{
1384
- tenantId: string;
1385
- statuses: string[];
1386
- types: string[];
1387
- pageSize: number;
1388
- contactId?: string | undefined;
1389
- reference?: string | undefined;
1390
- dateFrom?: string | undefined;
1391
- dateTo?: string | undefined;
1392
- }, {
1393
- webhookKey?: string | undefined;
1394
- }, {
1395
- authorize: (headers: Headers) => void;
1396
- listTenants: (signal?: AbortSignal) => Promise<{
1423
+ run(args: {
1424
+ input: {
1397
1425
  tenantId: string;
1398
- tenantName: string;
1399
- }[]>;
1400
- request: <TSchema extends import("zod").ZodType>(input: {
1401
- path: string;
1402
- tenantId?: string;
1403
- method?: "DELETE" | "GET" | "POST" | "PUT";
1404
- body?: BodyInit | import("./client.js").XeroJSON;
1405
- headers?: Record<string, string>;
1406
- query?: Record<string, boolean | number | string | undefined>;
1407
- signal?: AbortSignal;
1408
- base?: "accounting" | "connections" | "identity" | "projects";
1409
- }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1410
- }> & {
1426
+ statuses: string[];
1427
+ types: string[];
1428
+ pageSize: number;
1429
+ contactId?: string | undefined;
1430
+ reference?: string | undefined;
1431
+ dateFrom?: string | undefined;
1432
+ dateTo?: string | undefined;
1433
+ };
1434
+ client: {
1435
+ authorize: (headers: Headers) => void;
1436
+ listTenants: (signal?: AbortSignal) => Promise<{
1437
+ tenantId: string;
1438
+ tenantName: string;
1439
+ }[]>;
1440
+ request: <TSchema extends import("zod").ZodType>(input: {
1441
+ path: string;
1442
+ tenantId?: string;
1443
+ method?: "DELETE" | "GET" | "POST" | "PUT";
1444
+ body?: BodyInit | import("./client.js").XeroJSON;
1445
+ headers?: Record<string, string>;
1446
+ query?: Record<string, boolean | number | string | undefined>;
1447
+ signal?: AbortSignal;
1448
+ base?: "accounting" | "connections" | "identity" | "projects";
1449
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1450
+ };
1451
+ req: import("frogbot/pieces").FrogBotRequest;
1452
+ options: {
1453
+ webhookKey?: string | undefined;
1454
+ };
1455
+ } & {
1411
1456
  cursor?: import("frogbot/pieces").PieceJSON | undefined;
1412
1457
  }): Promise<{
1413
1458
  events: {
@@ -1438,34 +1483,39 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
1438
1483
  } & {
1439
1484
  type: "polling";
1440
1485
  schedule?: string;
1441
- run(args: import("frogbot/pieces").PieceRunArgs<{
1442
- tenantId: string;
1443
- statuses: string[];
1444
- types: string[];
1445
- pageSize: number;
1446
- contactId?: string | undefined;
1447
- reference?: string | undefined;
1448
- dateFrom?: string | undefined;
1449
- dateTo?: string | undefined;
1450
- }, {
1451
- webhookKey?: string | undefined;
1452
- }, {
1453
- authorize: (headers: Headers) => void;
1454
- listTenants: (signal?: AbortSignal) => Promise<{
1486
+ run(args: {
1487
+ input: {
1455
1488
  tenantId: string;
1456
- tenantName: string;
1457
- }[]>;
1458
- request: <TSchema extends import("zod").ZodType>(input: {
1459
- path: string;
1460
- tenantId?: string;
1461
- method?: "DELETE" | "GET" | "POST" | "PUT";
1462
- body?: BodyInit | import("./client.js").XeroJSON;
1463
- headers?: Record<string, string>;
1464
- query?: Record<string, boolean | number | string | undefined>;
1465
- signal?: AbortSignal;
1466
- base?: "accounting" | "connections" | "identity" | "projects";
1467
- }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1468
- }> & {
1489
+ statuses: string[];
1490
+ types: string[];
1491
+ pageSize: number;
1492
+ contactId?: string | undefined;
1493
+ reference?: string | undefined;
1494
+ dateFrom?: string | undefined;
1495
+ dateTo?: string | undefined;
1496
+ };
1497
+ client: {
1498
+ authorize: (headers: Headers) => void;
1499
+ listTenants: (signal?: AbortSignal) => Promise<{
1500
+ tenantId: string;
1501
+ tenantName: string;
1502
+ }[]>;
1503
+ request: <TSchema extends import("zod").ZodType>(input: {
1504
+ path: string;
1505
+ tenantId?: string;
1506
+ method?: "DELETE" | "GET" | "POST" | "PUT";
1507
+ body?: BodyInit | import("./client.js").XeroJSON;
1508
+ headers?: Record<string, string>;
1509
+ query?: Record<string, boolean | number | string | undefined>;
1510
+ signal?: AbortSignal;
1511
+ base?: "accounting" | "connections" | "identity" | "projects";
1512
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1513
+ };
1514
+ req: import("frogbot/pieces").FrogBotRequest;
1515
+ options: {
1516
+ webhookKey?: string | undefined;
1517
+ };
1518
+ } & {
1469
1519
  cursor?: import("frogbot/pieces").PieceJSON | undefined;
1470
1520
  }): Promise<{
1471
1521
  events: {
@@ -1496,34 +1546,39 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
1496
1546
  } & {
1497
1547
  type: "polling";
1498
1548
  schedule?: string;
1499
- run(args: import("frogbot/pieces").PieceRunArgs<{
1500
- tenantId: string;
1501
- statuses: string[];
1502
- types: string[];
1503
- pageSize: number;
1504
- contactId?: string | undefined;
1505
- reference?: string | undefined;
1506
- dateFrom?: string | undefined;
1507
- dateTo?: string | undefined;
1508
- }, {
1509
- webhookKey?: string | undefined;
1510
- }, {
1511
- authorize: (headers: Headers) => void;
1512
- listTenants: (signal?: AbortSignal) => Promise<{
1549
+ run(args: {
1550
+ input: {
1513
1551
  tenantId: string;
1514
- tenantName: string;
1515
- }[]>;
1516
- request: <TSchema extends import("zod").ZodType>(input: {
1517
- path: string;
1518
- tenantId?: string;
1519
- method?: "DELETE" | "GET" | "POST" | "PUT";
1520
- body?: BodyInit | import("./client.js").XeroJSON;
1521
- headers?: Record<string, string>;
1522
- query?: Record<string, boolean | number | string | undefined>;
1523
- signal?: AbortSignal;
1524
- base?: "accounting" | "connections" | "identity" | "projects";
1525
- }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1526
- }> & {
1552
+ statuses: string[];
1553
+ types: string[];
1554
+ pageSize: number;
1555
+ contactId?: string | undefined;
1556
+ reference?: string | undefined;
1557
+ dateFrom?: string | undefined;
1558
+ dateTo?: string | undefined;
1559
+ };
1560
+ client: {
1561
+ authorize: (headers: Headers) => void;
1562
+ listTenants: (signal?: AbortSignal) => Promise<{
1563
+ tenantId: string;
1564
+ tenantName: string;
1565
+ }[]>;
1566
+ request: <TSchema extends import("zod").ZodType>(input: {
1567
+ path: string;
1568
+ tenantId?: string;
1569
+ method?: "DELETE" | "GET" | "POST" | "PUT";
1570
+ body?: BodyInit | import("./client.js").XeroJSON;
1571
+ headers?: Record<string, string>;
1572
+ query?: Record<string, boolean | number | string | undefined>;
1573
+ signal?: AbortSignal;
1574
+ base?: "accounting" | "connections" | "identity" | "projects";
1575
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1576
+ };
1577
+ req: import("frogbot/pieces").FrogBotRequest;
1578
+ options: {
1579
+ webhookKey?: string | undefined;
1580
+ };
1581
+ } & {
1527
1582
  cursor?: import("frogbot/pieces").PieceJSON | undefined;
1528
1583
  }): Promise<{
1529
1584
  events: {
@@ -1554,34 +1609,39 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
1554
1609
  } & {
1555
1610
  type: "polling";
1556
1611
  schedule?: string;
1557
- run(args: import("frogbot/pieces").PieceRunArgs<{
1558
- tenantId: string;
1559
- statuses: string[];
1560
- types: string[];
1561
- pageSize: number;
1562
- contactId?: string | undefined;
1563
- reference?: string | undefined;
1564
- dateFrom?: string | undefined;
1565
- dateTo?: string | undefined;
1566
- }, {
1567
- webhookKey?: string | undefined;
1568
- }, {
1569
- authorize: (headers: Headers) => void;
1570
- listTenants: (signal?: AbortSignal) => Promise<{
1612
+ run(args: {
1613
+ input: {
1571
1614
  tenantId: string;
1572
- tenantName: string;
1573
- }[]>;
1574
- request: <TSchema extends import("zod").ZodType>(input: {
1575
- path: string;
1576
- tenantId?: string;
1577
- method?: "DELETE" | "GET" | "POST" | "PUT";
1578
- body?: BodyInit | import("./client.js").XeroJSON;
1579
- headers?: Record<string, string>;
1580
- query?: Record<string, boolean | number | string | undefined>;
1581
- signal?: AbortSignal;
1582
- base?: "accounting" | "connections" | "identity" | "projects";
1583
- }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1584
- }> & {
1615
+ statuses: string[];
1616
+ types: string[];
1617
+ pageSize: number;
1618
+ contactId?: string | undefined;
1619
+ reference?: string | undefined;
1620
+ dateFrom?: string | undefined;
1621
+ dateTo?: string | undefined;
1622
+ };
1623
+ client: {
1624
+ authorize: (headers: Headers) => void;
1625
+ listTenants: (signal?: AbortSignal) => Promise<{
1626
+ tenantId: string;
1627
+ tenantName: string;
1628
+ }[]>;
1629
+ request: <TSchema extends import("zod").ZodType>(input: {
1630
+ path: string;
1631
+ tenantId?: string;
1632
+ method?: "DELETE" | "GET" | "POST" | "PUT";
1633
+ body?: BodyInit | import("./client.js").XeroJSON;
1634
+ headers?: Record<string, string>;
1635
+ query?: Record<string, boolean | number | string | undefined>;
1636
+ signal?: AbortSignal;
1637
+ base?: "accounting" | "connections" | "identity" | "projects";
1638
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1639
+ };
1640
+ req: import("frogbot/pieces").FrogBotRequest;
1641
+ options: {
1642
+ webhookKey?: string | undefined;
1643
+ };
1644
+ } & {
1585
1645
  cursor?: import("frogbot/pieces").PieceJSON | undefined;
1586
1646
  }): Promise<{
1587
1647
  events: {
@@ -1612,34 +1672,39 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
1612
1672
  } & {
1613
1673
  type: "polling";
1614
1674
  schedule?: string;
1615
- run(args: import("frogbot/pieces").PieceRunArgs<{
1616
- tenantId: string;
1617
- statuses: string[];
1618
- types: string[];
1619
- pageSize: number;
1620
- contactId?: string | undefined;
1621
- reference?: string | undefined;
1622
- dateFrom?: string | undefined;
1623
- dateTo?: string | undefined;
1624
- }, {
1625
- webhookKey?: string | undefined;
1626
- }, {
1627
- authorize: (headers: Headers) => void;
1628
- listTenants: (signal?: AbortSignal) => Promise<{
1675
+ run(args: {
1676
+ input: {
1629
1677
  tenantId: string;
1630
- tenantName: string;
1631
- }[]>;
1632
- request: <TSchema extends import("zod").ZodType>(input: {
1633
- path: string;
1634
- tenantId?: string;
1635
- method?: "DELETE" | "GET" | "POST" | "PUT";
1636
- body?: BodyInit | import("./client.js").XeroJSON;
1637
- headers?: Record<string, string>;
1638
- query?: Record<string, boolean | number | string | undefined>;
1639
- signal?: AbortSignal;
1640
- base?: "accounting" | "connections" | "identity" | "projects";
1641
- }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1642
- }> & {
1678
+ statuses: string[];
1679
+ types: string[];
1680
+ pageSize: number;
1681
+ contactId?: string | undefined;
1682
+ reference?: string | undefined;
1683
+ dateFrom?: string | undefined;
1684
+ dateTo?: string | undefined;
1685
+ };
1686
+ client: {
1687
+ authorize: (headers: Headers) => void;
1688
+ listTenants: (signal?: AbortSignal) => Promise<{
1689
+ tenantId: string;
1690
+ tenantName: string;
1691
+ }[]>;
1692
+ request: <TSchema extends import("zod").ZodType>(input: {
1693
+ path: string;
1694
+ tenantId?: string;
1695
+ method?: "DELETE" | "GET" | "POST" | "PUT";
1696
+ body?: BodyInit | import("./client.js").XeroJSON;
1697
+ headers?: Record<string, string>;
1698
+ query?: Record<string, boolean | number | string | undefined>;
1699
+ signal?: AbortSignal;
1700
+ base?: "accounting" | "connections" | "identity" | "projects";
1701
+ }, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
1702
+ };
1703
+ req: import("frogbot/pieces").FrogBotRequest;
1704
+ options: {
1705
+ webhookKey?: string | undefined;
1706
+ };
1707
+ } & {
1643
1708
  cursor?: import("frogbot/pieces").PieceJSON | undefined;
1644
1709
  }): Promise<{
1645
1710
  events: {