@frogbotai/piece-xero 0.39.0 → 0.41.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/README.md +1 -1
- package/dist/actions.js +2 -2
- package/dist/actions.js.map +1 -1
- package/dist/define.d.ts +96 -76
- package/dist/define.d.ts.map +1 -1
- package/dist/index.d.ts +392 -327
- package/dist/index.d.ts.map +1 -1
- package/dist/triggers.d.ts +392 -327
- package/dist/triggers.d.ts.map +1 -1
- package/dist/triggers.js +1 -1
- package/dist/triggers.js.map +1 -1
- package/package.json +3 -3
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:
|
|
982
|
-
|
|
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
|
-
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
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:
|
|
1023
|
-
|
|
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
|
-
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
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:
|
|
1064
|
-
|
|
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
|
-
|
|
1073
|
-
}
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
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:
|
|
1105
|
-
|
|
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
|
-
|
|
1114
|
-
}
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
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:
|
|
1152
|
-
|
|
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
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
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:
|
|
1210
|
-
|
|
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
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
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:
|
|
1268
|
-
|
|
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
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
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:
|
|
1326
|
-
|
|
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
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
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:
|
|
1384
|
-
|
|
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
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
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:
|
|
1442
|
-
|
|
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
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
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:
|
|
1500
|
-
|
|
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
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
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:
|
|
1558
|
-
|
|
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
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
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:
|
|
1616
|
-
|
|
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
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
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: {
|