@frogbotai/piece-xero 0.41.0 → 0.43.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 +21 -21
- package/dist/define.d.ts +12 -12
- package/dist/index.d.ts +62 -62
- package/dist/triggers.d.ts +39 -39
- package/package.json +3 -3
package/dist/actions.d.ts
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { XeroJSON } from './client.js';
|
|
3
|
-
export declare const xeroActions: (
|
|
3
|
+
export declare const xeroActions: (import("frogbot/pieces").CustomApiCallAction<{
|
|
4
|
+
webhookKey?: string | undefined;
|
|
5
|
+
}, {
|
|
6
|
+
authorize: (headers: Headers) => void;
|
|
7
|
+
listTenants: (signal?: AbortSignal) => Promise<{
|
|
8
|
+
tenantId: string;
|
|
9
|
+
tenantName: string;
|
|
10
|
+
}[]>;
|
|
11
|
+
request: <TSchema extends z.ZodType>(input: {
|
|
12
|
+
path: string;
|
|
13
|
+
tenantId?: string;
|
|
14
|
+
method?: "DELETE" | "GET" | "POST" | "PUT";
|
|
15
|
+
body?: BodyInit | XeroJSON;
|
|
16
|
+
headers?: Record<string, string>;
|
|
17
|
+
query?: Record<string, boolean | number | string | undefined>;
|
|
18
|
+
signal?: AbortSignal;
|
|
19
|
+
base?: "accounting" | "connections" | "identity" | "projects";
|
|
20
|
+
}, schema: TSchema) => Promise<z.core.output<TSchema>>;
|
|
21
|
+
}> | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
|
|
4
22
|
contactId: z.ZodOptional<z.ZodString>;
|
|
5
23
|
name: z.ZodString;
|
|
6
24
|
email: z.ZodOptional<z.ZodString>;
|
|
@@ -877,9 +895,9 @@ export declare const xeroActions: ((import("frogbot/pieces").PieceActionDefiniti
|
|
|
877
895
|
}> & {
|
|
878
896
|
slug: "createBankTransaction";
|
|
879
897
|
}) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
|
|
898
|
+
email: z.ZodOptional<z.ZodString>;
|
|
880
899
|
tenantId: z.ZodString;
|
|
881
900
|
name: z.ZodString;
|
|
882
|
-
email: z.ZodOptional<z.ZodString>;
|
|
883
901
|
}, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnion<readonly [z.ZodJSONSchema, z.ZodArray<z.ZodJSONSchema>]>>>, {
|
|
884
902
|
webhookKey?: string | undefined;
|
|
885
903
|
}, {
|
|
@@ -902,23 +920,5 @@ export declare const xeroActions: ((import("frogbot/pieces").PieceActionDefiniti
|
|
|
902
920
|
[x: string]: z.core.util.JSONType | z.core.util.JSONType[];
|
|
903
921
|
}> & {
|
|
904
922
|
slug: "findOrCreateContact";
|
|
905
|
-
})
|
|
906
|
-
webhookKey?: string | undefined;
|
|
907
|
-
}, {
|
|
908
|
-
authorize: (headers: Headers) => void;
|
|
909
|
-
listTenants: (signal?: AbortSignal) => Promise<{
|
|
910
|
-
tenantId: string;
|
|
911
|
-
tenantName: string;
|
|
912
|
-
}[]>;
|
|
913
|
-
request: <TSchema extends z.ZodType>(input: {
|
|
914
|
-
path: string;
|
|
915
|
-
tenantId?: string;
|
|
916
|
-
method?: "DELETE" | "GET" | "POST" | "PUT";
|
|
917
|
-
body?: BodyInit | XeroJSON;
|
|
918
|
-
headers?: Record<string, string>;
|
|
919
|
-
query?: Record<string, boolean | number | string | undefined>;
|
|
920
|
-
signal?: AbortSignal;
|
|
921
|
-
base?: "accounting" | "connections" | "identity" | "projects";
|
|
922
|
-
}, schema: TSchema) => Promise<z.core.output<TSchema>>;
|
|
923
|
-
}>)[];
|
|
923
|
+
}))[];
|
|
924
924
|
//# sourceMappingURL=actions.d.ts.map
|
package/dist/define.d.ts
CHANGED
|
@@ -50,6 +50,9 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
50
50
|
event: string;
|
|
51
51
|
run(args: {
|
|
52
52
|
input: import("zod").infer<TInput>;
|
|
53
|
+
options: {
|
|
54
|
+
webhookKey?: string | undefined;
|
|
55
|
+
};
|
|
53
56
|
client: {
|
|
54
57
|
authorize: (headers: Headers) => void;
|
|
55
58
|
listTenants: (signal?: AbortSignal) => Promise<{
|
|
@@ -68,9 +71,6 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
68
71
|
}, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
|
|
69
72
|
};
|
|
70
73
|
req: import("frogbot/pieces").FrogBotRequest;
|
|
71
|
-
options: {
|
|
72
|
-
webhookKey?: string | undefined;
|
|
73
|
-
};
|
|
74
74
|
}): Promise<import("frogbot/pieces").TriggerEvent<TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot/pieces").PieceJSON>[]>;
|
|
75
75
|
} & {
|
|
76
76
|
slug: TSlug;
|
|
@@ -86,6 +86,9 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
86
86
|
event: string;
|
|
87
87
|
run(args: {
|
|
88
88
|
input: import("zod").infer<TInput>;
|
|
89
|
+
options: {
|
|
90
|
+
webhookKey?: string | undefined;
|
|
91
|
+
};
|
|
89
92
|
client: {
|
|
90
93
|
authorize: (headers: Headers) => void;
|
|
91
94
|
listTenants: (signal?: AbortSignal) => Promise<{
|
|
@@ -104,9 +107,6 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
104
107
|
}, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
|
|
105
108
|
};
|
|
106
109
|
req: import("frogbot/pieces").FrogBotRequest;
|
|
107
|
-
options: {
|
|
108
|
-
webhookKey?: string | undefined;
|
|
109
|
-
};
|
|
110
110
|
}): Promise<import("frogbot/pieces").TriggerEvent<TOutput extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<TOutput> : import("frogbot/pieces").PieceJSON>[]>;
|
|
111
111
|
} & {
|
|
112
112
|
slug: TSlug;
|
|
@@ -156,6 +156,9 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
156
156
|
schedule?: string;
|
|
157
157
|
run(args: {
|
|
158
158
|
input: import("zod").infer<TInput>;
|
|
159
|
+
options: {
|
|
160
|
+
webhookKey?: string | undefined;
|
|
161
|
+
};
|
|
159
162
|
client: {
|
|
160
163
|
authorize: (headers: Headers) => void;
|
|
161
164
|
listTenants: (signal?: AbortSignal) => Promise<{
|
|
@@ -174,9 +177,6 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
174
177
|
}, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
|
|
175
178
|
};
|
|
176
179
|
req: import("frogbot/pieces").FrogBotRequest;
|
|
177
|
-
options: {
|
|
178
|
-
webhookKey?: string | undefined;
|
|
179
|
-
};
|
|
180
180
|
} & {
|
|
181
181
|
cursor?: import("frogbot/pieces").PieceJSON | undefined;
|
|
182
182
|
}): Promise<{
|
|
@@ -197,6 +197,9 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
197
197
|
schedule?: string;
|
|
198
198
|
run(args: {
|
|
199
199
|
input: import("zod").infer<TInput>;
|
|
200
|
+
options: {
|
|
201
|
+
webhookKey?: string | undefined;
|
|
202
|
+
};
|
|
200
203
|
client: {
|
|
201
204
|
authorize: (headers: Headers) => void;
|
|
202
205
|
listTenants: (signal?: AbortSignal) => Promise<{
|
|
@@ -215,9 +218,6 @@ export declare const defineAction: <const TSlug extends string, TInput extends i
|
|
|
215
218
|
}, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
|
|
216
219
|
};
|
|
217
220
|
req: import("frogbot/pieces").FrogBotRequest;
|
|
218
|
-
options: {
|
|
219
|
-
webhookKey?: string | undefined;
|
|
220
|
-
};
|
|
221
221
|
} & {
|
|
222
222
|
cursor?: import("frogbot/pieces").PieceJSON | undefined;
|
|
223
223
|
}): Promise<{
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { type PieceOAuthAccount, type PieceOAuthRecipe } from 'frogbot/pieces';
|
|
|
2
2
|
import { createXeroClient } from './client.js';
|
|
3
3
|
import { xeroScopes } from './config.js';
|
|
4
4
|
export { xeroScopes };
|
|
5
|
-
export declare const xeroActionNames: ("createOrUpdateContact" | "createOrUpdateInvoice" | "allocateCreditNote" | "createBankTransfer" | "createQuote" | "sendInvoiceEmail" | "createBill" | "createPayment" | "createPurchaseOrder" | "updatePurchaseOrder" | "uploadAttachment" | "addInvoiceItems" | "createCreditNote" | "createItem" | "createProject" | "updateInvoice" | "createRepeatingInvoice" | "findContact" | "findInvoice" | "findItem" | "findPurchaseOrder" | "getInvoiceHistory" | "createBankTransaction" | "findOrCreateContact"
|
|
5
|
+
export declare const xeroActionNames: ("customApiCall" | "createOrUpdateContact" | "createOrUpdateInvoice" | "allocateCreditNote" | "createBankTransfer" | "createQuote" | "sendInvoiceEmail" | "createBill" | "createPayment" | "createPurchaseOrder" | "updatePurchaseOrder" | "uploadAttachment" | "addInvoiceItems" | "createCreditNote" | "createItem" | "createProject" | "updateInvoice" | "createRepeatingInvoice" | "findContact" | "findInvoice" | "findItem" | "findPurchaseOrder" | "getInvoiceHistory" | "createBankTransaction" | "findOrCreateContact")[];
|
|
6
6
|
export declare const xeroTriggerNames: ("contactCreated" | "contactCreatedOrUpdated" | "salesInvoiceCreated" | "salesInvoiceUpdated" | "bankTransactionCreated" | "paymentCreated" | "purchaseOrderCreated" | "paymentReconciled" | "quoteUpdated" | "billCreated" | "creditNoteCreated" | "projectCreated" | "quoteCreated")[];
|
|
7
7
|
export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
8
8
|
readonly slug: "xero";
|
|
@@ -38,11 +38,29 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
|
38
38
|
signal?: AbortSignal;
|
|
39
39
|
base?: "accounting" | "connections" | "identity" | "projects";
|
|
40
40
|
}, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
|
|
41
|
-
}, PieceOAuthAccount, "
|
|
41
|
+
}, PieceOAuthAccount, "openid" | "profile" | "email" | "offline_access" | "accounting.contacts" | "accounting.transactions" | "accounting.reports.read" | "accounting.journals.read" | "accounting.budgets.read" | "accounting.attachments" | "accounting.settings" | "projects" | "accounting.transactions.read" | "accounting.contacts.read" | "accounting.settings.read" | "accounting.attachments.read" | "payroll.employees" | "payroll.employees.read" | "payroll.payruns" | "payroll.payruns.read" | "payroll.payslip" | "payroll.payslip.read" | "payroll.timesheets" | "payroll.timesheets.read" | "payroll.settings" | "payroll.settings.read" | "files" | "files.read" | "assets" | "assets.read" | "projects.read">;
|
|
42
42
|
readonly webhook: import("frogbot/pieces").PieceWebhook<{
|
|
43
43
|
webhookKey?: string | undefined;
|
|
44
44
|
}>;
|
|
45
|
-
readonly actions: (
|
|
45
|
+
readonly actions: (import("frogbot/pieces").CustomApiCallAction<{
|
|
46
|
+
webhookKey?: string | undefined;
|
|
47
|
+
}, {
|
|
48
|
+
authorize: (headers: Headers) => void;
|
|
49
|
+
listTenants: (signal?: AbortSignal) => Promise<{
|
|
50
|
+
tenantId: string;
|
|
51
|
+
tenantName: string;
|
|
52
|
+
}[]>;
|
|
53
|
+
request: <TSchema extends import("zod").ZodType>(input: {
|
|
54
|
+
path: string;
|
|
55
|
+
tenantId?: string;
|
|
56
|
+
method?: "DELETE" | "GET" | "POST" | "PUT";
|
|
57
|
+
body?: BodyInit | import("./client.js").XeroJSON;
|
|
58
|
+
headers?: Record<string, string>;
|
|
59
|
+
query?: Record<string, boolean | number | string | undefined>;
|
|
60
|
+
signal?: AbortSignal;
|
|
61
|
+
base?: "accounting" | "connections" | "identity" | "projects";
|
|
62
|
+
}, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
|
|
63
|
+
}> | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
|
|
46
64
|
contactId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
47
65
|
name: import("zod").ZodString;
|
|
48
66
|
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -919,9 +937,9 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
|
919
937
|
}> & {
|
|
920
938
|
slug: "createBankTransaction";
|
|
921
939
|
}) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
|
|
940
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
922
941
|
tenantId: import("zod").ZodString;
|
|
923
942
|
name: import("zod").ZodString;
|
|
924
|
-
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
925
943
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$catchall<import("zod").ZodUnion<readonly [import("zod").ZodJSONSchema, import("zod").ZodArray<import("zod").ZodJSONSchema>]>>>, {
|
|
926
944
|
webhookKey?: string | undefined;
|
|
927
945
|
}, {
|
|
@@ -944,25 +962,7 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
|
944
962
|
[x: string]: import("zod").JSONType | import("zod").JSONType[];
|
|
945
963
|
}> & {
|
|
946
964
|
slug: "findOrCreateContact";
|
|
947
|
-
})
|
|
948
|
-
webhookKey?: string | undefined;
|
|
949
|
-
}, {
|
|
950
|
-
authorize: (headers: Headers) => void;
|
|
951
|
-
listTenants: (signal?: AbortSignal) => Promise<{
|
|
952
|
-
tenantId: string;
|
|
953
|
-
tenantName: string;
|
|
954
|
-
}[]>;
|
|
955
|
-
request: <TSchema extends import("zod").ZodType>(input: {
|
|
956
|
-
path: string;
|
|
957
|
-
tenantId?: string;
|
|
958
|
-
method?: "DELETE" | "GET" | "POST" | "PUT";
|
|
959
|
-
body?: BodyInit | import("./client.js").XeroJSON;
|
|
960
|
-
headers?: Record<string, string>;
|
|
961
|
-
query?: Record<string, boolean | number | string | undefined>;
|
|
962
|
-
signal?: AbortSignal;
|
|
963
|
-
base?: "accounting" | "connections" | "identity" | "projects";
|
|
964
|
-
}, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
|
|
965
|
-
}>)[];
|
|
965
|
+
}))[];
|
|
966
966
|
readonly triggers: (({
|
|
967
967
|
slug: string;
|
|
968
968
|
label?: string;
|
|
@@ -983,6 +983,9 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
|
983
983
|
tenantId: string;
|
|
984
984
|
fetchFullRecord: boolean;
|
|
985
985
|
};
|
|
986
|
+
options: {
|
|
987
|
+
webhookKey?: string | undefined;
|
|
988
|
+
};
|
|
986
989
|
client: {
|
|
987
990
|
authorize: (headers: Headers) => void;
|
|
988
991
|
listTenants: (signal?: AbortSignal) => Promise<{
|
|
@@ -1001,9 +1004,6 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
|
1001
1004
|
}, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
|
|
1002
1005
|
};
|
|
1003
1006
|
req: import("frogbot/pieces").FrogBotRequest;
|
|
1004
|
-
options: {
|
|
1005
|
-
webhookKey?: string | undefined;
|
|
1006
|
-
};
|
|
1007
1007
|
}): Promise<import("frogbot/pieces").TriggerEvent<{
|
|
1008
1008
|
[x: string]: import("zod").JSONType;
|
|
1009
1009
|
}>[]>;
|
|
@@ -1029,6 +1029,9 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
|
1029
1029
|
tenantId: string;
|
|
1030
1030
|
fetchFullRecord: boolean;
|
|
1031
1031
|
};
|
|
1032
|
+
options: {
|
|
1033
|
+
webhookKey?: string | undefined;
|
|
1034
|
+
};
|
|
1032
1035
|
client: {
|
|
1033
1036
|
authorize: (headers: Headers) => void;
|
|
1034
1037
|
listTenants: (signal?: AbortSignal) => Promise<{
|
|
@@ -1047,9 +1050,6 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
|
1047
1050
|
}, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
|
|
1048
1051
|
};
|
|
1049
1052
|
req: import("frogbot/pieces").FrogBotRequest;
|
|
1050
|
-
options: {
|
|
1051
|
-
webhookKey?: string | undefined;
|
|
1052
|
-
};
|
|
1053
1053
|
}): Promise<import("frogbot/pieces").TriggerEvent<{
|
|
1054
1054
|
[x: string]: import("zod").JSONType;
|
|
1055
1055
|
}>[]>;
|
|
@@ -1075,6 +1075,9 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
|
1075
1075
|
tenantId: string;
|
|
1076
1076
|
fetchFullRecord: boolean;
|
|
1077
1077
|
};
|
|
1078
|
+
options: {
|
|
1079
|
+
webhookKey?: string | undefined;
|
|
1080
|
+
};
|
|
1078
1081
|
client: {
|
|
1079
1082
|
authorize: (headers: Headers) => void;
|
|
1080
1083
|
listTenants: (signal?: AbortSignal) => Promise<{
|
|
@@ -1093,9 +1096,6 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
|
1093
1096
|
}, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
|
|
1094
1097
|
};
|
|
1095
1098
|
req: import("frogbot/pieces").FrogBotRequest;
|
|
1096
|
-
options: {
|
|
1097
|
-
webhookKey?: string | undefined;
|
|
1098
|
-
};
|
|
1099
1099
|
}): Promise<import("frogbot/pieces").TriggerEvent<{
|
|
1100
1100
|
[x: string]: import("zod").JSONType;
|
|
1101
1101
|
}>[]>;
|
|
@@ -1121,6 +1121,9 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
|
1121
1121
|
tenantId: string;
|
|
1122
1122
|
fetchFullRecord: boolean;
|
|
1123
1123
|
};
|
|
1124
|
+
options: {
|
|
1125
|
+
webhookKey?: string | undefined;
|
|
1126
|
+
};
|
|
1124
1127
|
client: {
|
|
1125
1128
|
authorize: (headers: Headers) => void;
|
|
1126
1129
|
listTenants: (signal?: AbortSignal) => Promise<{
|
|
@@ -1139,9 +1142,6 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
|
1139
1142
|
}, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
|
|
1140
1143
|
};
|
|
1141
1144
|
req: import("frogbot/pieces").FrogBotRequest;
|
|
1142
|
-
options: {
|
|
1143
|
-
webhookKey?: string | undefined;
|
|
1144
|
-
};
|
|
1145
1145
|
}): Promise<import("frogbot/pieces").TriggerEvent<{
|
|
1146
1146
|
[x: string]: import("zod").JSONType;
|
|
1147
1147
|
}>[]>;
|
|
@@ -1179,6 +1179,9 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
|
1179
1179
|
dateFrom?: string | undefined;
|
|
1180
1180
|
dateTo?: string | undefined;
|
|
1181
1181
|
};
|
|
1182
|
+
options: {
|
|
1183
|
+
webhookKey?: string | undefined;
|
|
1184
|
+
};
|
|
1182
1185
|
client: {
|
|
1183
1186
|
authorize: (headers: Headers) => void;
|
|
1184
1187
|
listTenants: (signal?: AbortSignal) => Promise<{
|
|
@@ -1197,9 +1200,6 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
|
1197
1200
|
}, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
|
|
1198
1201
|
};
|
|
1199
1202
|
req: import("frogbot/pieces").FrogBotRequest;
|
|
1200
|
-
options: {
|
|
1201
|
-
webhookKey?: string | undefined;
|
|
1202
|
-
};
|
|
1203
1203
|
} & {
|
|
1204
1204
|
cursor?: import("frogbot/pieces").PieceJSON | undefined;
|
|
1205
1205
|
}): Promise<{
|
|
@@ -1242,6 +1242,9 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
|
1242
1242
|
dateFrom?: string | undefined;
|
|
1243
1243
|
dateTo?: string | undefined;
|
|
1244
1244
|
};
|
|
1245
|
+
options: {
|
|
1246
|
+
webhookKey?: string | undefined;
|
|
1247
|
+
};
|
|
1245
1248
|
client: {
|
|
1246
1249
|
authorize: (headers: Headers) => void;
|
|
1247
1250
|
listTenants: (signal?: AbortSignal) => Promise<{
|
|
@@ -1260,9 +1263,6 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
|
1260
1263
|
}, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
|
|
1261
1264
|
};
|
|
1262
1265
|
req: import("frogbot/pieces").FrogBotRequest;
|
|
1263
|
-
options: {
|
|
1264
|
-
webhookKey?: string | undefined;
|
|
1265
|
-
};
|
|
1266
1266
|
} & {
|
|
1267
1267
|
cursor?: import("frogbot/pieces").PieceJSON | undefined;
|
|
1268
1268
|
}): Promise<{
|
|
@@ -1305,6 +1305,9 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
|
1305
1305
|
dateFrom?: string | undefined;
|
|
1306
1306
|
dateTo?: string | undefined;
|
|
1307
1307
|
};
|
|
1308
|
+
options: {
|
|
1309
|
+
webhookKey?: string | undefined;
|
|
1310
|
+
};
|
|
1308
1311
|
client: {
|
|
1309
1312
|
authorize: (headers: Headers) => void;
|
|
1310
1313
|
listTenants: (signal?: AbortSignal) => Promise<{
|
|
@@ -1323,9 +1326,6 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
|
1323
1326
|
}, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
|
|
1324
1327
|
};
|
|
1325
1328
|
req: import("frogbot/pieces").FrogBotRequest;
|
|
1326
|
-
options: {
|
|
1327
|
-
webhookKey?: string | undefined;
|
|
1328
|
-
};
|
|
1329
1329
|
} & {
|
|
1330
1330
|
cursor?: import("frogbot/pieces").PieceJSON | undefined;
|
|
1331
1331
|
}): Promise<{
|
|
@@ -1368,6 +1368,9 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
|
1368
1368
|
dateFrom?: string | undefined;
|
|
1369
1369
|
dateTo?: string | undefined;
|
|
1370
1370
|
};
|
|
1371
|
+
options: {
|
|
1372
|
+
webhookKey?: string | undefined;
|
|
1373
|
+
};
|
|
1371
1374
|
client: {
|
|
1372
1375
|
authorize: (headers: Headers) => void;
|
|
1373
1376
|
listTenants: (signal?: AbortSignal) => Promise<{
|
|
@@ -1386,9 +1389,6 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
|
1386
1389
|
}, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
|
|
1387
1390
|
};
|
|
1388
1391
|
req: import("frogbot/pieces").FrogBotRequest;
|
|
1389
|
-
options: {
|
|
1390
|
-
webhookKey?: string | undefined;
|
|
1391
|
-
};
|
|
1392
1392
|
} & {
|
|
1393
1393
|
cursor?: import("frogbot/pieces").PieceJSON | undefined;
|
|
1394
1394
|
}): Promise<{
|
|
@@ -1431,6 +1431,9 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
|
1431
1431
|
dateFrom?: string | undefined;
|
|
1432
1432
|
dateTo?: string | undefined;
|
|
1433
1433
|
};
|
|
1434
|
+
options: {
|
|
1435
|
+
webhookKey?: string | undefined;
|
|
1436
|
+
};
|
|
1434
1437
|
client: {
|
|
1435
1438
|
authorize: (headers: Headers) => void;
|
|
1436
1439
|
listTenants: (signal?: AbortSignal) => Promise<{
|
|
@@ -1449,9 +1452,6 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
|
1449
1452
|
}, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
|
|
1450
1453
|
};
|
|
1451
1454
|
req: import("frogbot/pieces").FrogBotRequest;
|
|
1452
|
-
options: {
|
|
1453
|
-
webhookKey?: string | undefined;
|
|
1454
|
-
};
|
|
1455
1455
|
} & {
|
|
1456
1456
|
cursor?: import("frogbot/pieces").PieceJSON | undefined;
|
|
1457
1457
|
}): Promise<{
|
|
@@ -1494,6 +1494,9 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
|
1494
1494
|
dateFrom?: string | undefined;
|
|
1495
1495
|
dateTo?: string | undefined;
|
|
1496
1496
|
};
|
|
1497
|
+
options: {
|
|
1498
|
+
webhookKey?: string | undefined;
|
|
1499
|
+
};
|
|
1497
1500
|
client: {
|
|
1498
1501
|
authorize: (headers: Headers) => void;
|
|
1499
1502
|
listTenants: (signal?: AbortSignal) => Promise<{
|
|
@@ -1512,9 +1515,6 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
|
1512
1515
|
}, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
|
|
1513
1516
|
};
|
|
1514
1517
|
req: import("frogbot/pieces").FrogBotRequest;
|
|
1515
|
-
options: {
|
|
1516
|
-
webhookKey?: string | undefined;
|
|
1517
|
-
};
|
|
1518
1518
|
} & {
|
|
1519
1519
|
cursor?: import("frogbot/pieces").PieceJSON | undefined;
|
|
1520
1520
|
}): Promise<{
|
|
@@ -1557,6 +1557,9 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
|
1557
1557
|
dateFrom?: string | undefined;
|
|
1558
1558
|
dateTo?: string | undefined;
|
|
1559
1559
|
};
|
|
1560
|
+
options: {
|
|
1561
|
+
webhookKey?: string | undefined;
|
|
1562
|
+
};
|
|
1560
1563
|
client: {
|
|
1561
1564
|
authorize: (headers: Headers) => void;
|
|
1562
1565
|
listTenants: (signal?: AbortSignal) => Promise<{
|
|
@@ -1575,9 +1578,6 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
|
1575
1578
|
}, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
|
|
1576
1579
|
};
|
|
1577
1580
|
req: import("frogbot/pieces").FrogBotRequest;
|
|
1578
|
-
options: {
|
|
1579
|
-
webhookKey?: string | undefined;
|
|
1580
|
-
};
|
|
1581
1581
|
} & {
|
|
1582
1582
|
cursor?: import("frogbot/pieces").PieceJSON | undefined;
|
|
1583
1583
|
}): Promise<{
|
|
@@ -1620,6 +1620,9 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
|
1620
1620
|
dateFrom?: string | undefined;
|
|
1621
1621
|
dateTo?: string | undefined;
|
|
1622
1622
|
};
|
|
1623
|
+
options: {
|
|
1624
|
+
webhookKey?: string | undefined;
|
|
1625
|
+
};
|
|
1623
1626
|
client: {
|
|
1624
1627
|
authorize: (headers: Headers) => void;
|
|
1625
1628
|
listTenants: (signal?: AbortSignal) => Promise<{
|
|
@@ -1638,9 +1641,6 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
|
1638
1641
|
}, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
|
|
1639
1642
|
};
|
|
1640
1643
|
req: import("frogbot/pieces").FrogBotRequest;
|
|
1641
|
-
options: {
|
|
1642
|
-
webhookKey?: string | undefined;
|
|
1643
|
-
};
|
|
1644
1644
|
} & {
|
|
1645
1645
|
cursor?: import("frogbot/pieces").PieceJSON | undefined;
|
|
1646
1646
|
}): Promise<{
|
|
@@ -1683,6 +1683,9 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
|
1683
1683
|
dateFrom?: string | undefined;
|
|
1684
1684
|
dateTo?: string | undefined;
|
|
1685
1685
|
};
|
|
1686
|
+
options: {
|
|
1687
|
+
webhookKey?: string | undefined;
|
|
1688
|
+
};
|
|
1686
1689
|
client: {
|
|
1687
1690
|
authorize: (headers: Headers) => void;
|
|
1688
1691
|
listTenants: (signal?: AbortSignal) => Promise<{
|
|
@@ -1701,9 +1704,6 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
|
1701
1704
|
}, schema: TSchema) => Promise<import("zod").infer<TSchema>>;
|
|
1702
1705
|
};
|
|
1703
1706
|
req: import("frogbot/pieces").FrogBotRequest;
|
|
1704
|
-
options: {
|
|
1705
|
-
webhookKey?: string | undefined;
|
|
1706
|
-
};
|
|
1707
1707
|
} & {
|
|
1708
1708
|
cursor?: import("frogbot/pieces").PieceJSON | undefined;
|
|
1709
1709
|
}): Promise<{
|
package/dist/triggers.d.ts
CHANGED
|
@@ -20,6 +20,9 @@ export declare const xeroTriggers: (({
|
|
|
20
20
|
tenantId: string;
|
|
21
21
|
fetchFullRecord: boolean;
|
|
22
22
|
};
|
|
23
|
+
options: {
|
|
24
|
+
webhookKey?: string | undefined;
|
|
25
|
+
};
|
|
23
26
|
client: {
|
|
24
27
|
authorize: (headers: Headers) => void;
|
|
25
28
|
listTenants: (signal?: AbortSignal) => Promise<{
|
|
@@ -38,9 +41,6 @@ export declare const xeroTriggers: (({
|
|
|
38
41
|
}, schema: TSchema) => Promise<z.core.output<TSchema>>;
|
|
39
42
|
};
|
|
40
43
|
req: import("frogbot/pieces").FrogBotRequest;
|
|
41
|
-
options: {
|
|
42
|
-
webhookKey?: string | undefined;
|
|
43
|
-
};
|
|
44
44
|
}): Promise<import("frogbot/pieces").TriggerEvent<{
|
|
45
45
|
[x: string]: z.core.util.JSONType;
|
|
46
46
|
}>[]>;
|
|
@@ -66,6 +66,9 @@ export declare const xeroTriggers: (({
|
|
|
66
66
|
tenantId: string;
|
|
67
67
|
fetchFullRecord: boolean;
|
|
68
68
|
};
|
|
69
|
+
options: {
|
|
70
|
+
webhookKey?: string | undefined;
|
|
71
|
+
};
|
|
69
72
|
client: {
|
|
70
73
|
authorize: (headers: Headers) => void;
|
|
71
74
|
listTenants: (signal?: AbortSignal) => Promise<{
|
|
@@ -84,9 +87,6 @@ export declare const xeroTriggers: (({
|
|
|
84
87
|
}, schema: TSchema) => Promise<z.core.output<TSchema>>;
|
|
85
88
|
};
|
|
86
89
|
req: import("frogbot/pieces").FrogBotRequest;
|
|
87
|
-
options: {
|
|
88
|
-
webhookKey?: string | undefined;
|
|
89
|
-
};
|
|
90
90
|
}): Promise<import("frogbot/pieces").TriggerEvent<{
|
|
91
91
|
[x: string]: z.core.util.JSONType;
|
|
92
92
|
}>[]>;
|
|
@@ -112,6 +112,9 @@ export declare const xeroTriggers: (({
|
|
|
112
112
|
tenantId: string;
|
|
113
113
|
fetchFullRecord: boolean;
|
|
114
114
|
};
|
|
115
|
+
options: {
|
|
116
|
+
webhookKey?: string | undefined;
|
|
117
|
+
};
|
|
115
118
|
client: {
|
|
116
119
|
authorize: (headers: Headers) => void;
|
|
117
120
|
listTenants: (signal?: AbortSignal) => Promise<{
|
|
@@ -130,9 +133,6 @@ export declare const xeroTriggers: (({
|
|
|
130
133
|
}, schema: TSchema) => Promise<z.core.output<TSchema>>;
|
|
131
134
|
};
|
|
132
135
|
req: import("frogbot/pieces").FrogBotRequest;
|
|
133
|
-
options: {
|
|
134
|
-
webhookKey?: string | undefined;
|
|
135
|
-
};
|
|
136
136
|
}): Promise<import("frogbot/pieces").TriggerEvent<{
|
|
137
137
|
[x: string]: z.core.util.JSONType;
|
|
138
138
|
}>[]>;
|
|
@@ -158,6 +158,9 @@ export declare const xeroTriggers: (({
|
|
|
158
158
|
tenantId: string;
|
|
159
159
|
fetchFullRecord: boolean;
|
|
160
160
|
};
|
|
161
|
+
options: {
|
|
162
|
+
webhookKey?: string | undefined;
|
|
163
|
+
};
|
|
161
164
|
client: {
|
|
162
165
|
authorize: (headers: Headers) => void;
|
|
163
166
|
listTenants: (signal?: AbortSignal) => Promise<{
|
|
@@ -176,9 +179,6 @@ export declare const xeroTriggers: (({
|
|
|
176
179
|
}, schema: TSchema) => Promise<z.core.output<TSchema>>;
|
|
177
180
|
};
|
|
178
181
|
req: import("frogbot/pieces").FrogBotRequest;
|
|
179
|
-
options: {
|
|
180
|
-
webhookKey?: string | undefined;
|
|
181
|
-
};
|
|
182
182
|
}): Promise<import("frogbot/pieces").TriggerEvent<{
|
|
183
183
|
[x: string]: z.core.util.JSONType;
|
|
184
184
|
}>[]>;
|
|
@@ -216,6 +216,9 @@ export declare const xeroTriggers: (({
|
|
|
216
216
|
dateFrom?: string | undefined;
|
|
217
217
|
dateTo?: string | undefined;
|
|
218
218
|
};
|
|
219
|
+
options: {
|
|
220
|
+
webhookKey?: string | undefined;
|
|
221
|
+
};
|
|
219
222
|
client: {
|
|
220
223
|
authorize: (headers: Headers) => void;
|
|
221
224
|
listTenants: (signal?: AbortSignal) => Promise<{
|
|
@@ -234,9 +237,6 @@ export declare const xeroTriggers: (({
|
|
|
234
237
|
}, schema: TSchema) => Promise<z.core.output<TSchema>>;
|
|
235
238
|
};
|
|
236
239
|
req: import("frogbot/pieces").FrogBotRequest;
|
|
237
|
-
options: {
|
|
238
|
-
webhookKey?: string | undefined;
|
|
239
|
-
};
|
|
240
240
|
} & {
|
|
241
241
|
cursor?: PieceJSON | undefined;
|
|
242
242
|
}): Promise<{
|
|
@@ -279,6 +279,9 @@ export declare const xeroTriggers: (({
|
|
|
279
279
|
dateFrom?: string | undefined;
|
|
280
280
|
dateTo?: string | undefined;
|
|
281
281
|
};
|
|
282
|
+
options: {
|
|
283
|
+
webhookKey?: string | undefined;
|
|
284
|
+
};
|
|
282
285
|
client: {
|
|
283
286
|
authorize: (headers: Headers) => void;
|
|
284
287
|
listTenants: (signal?: AbortSignal) => Promise<{
|
|
@@ -297,9 +300,6 @@ export declare const xeroTriggers: (({
|
|
|
297
300
|
}, schema: TSchema) => Promise<z.core.output<TSchema>>;
|
|
298
301
|
};
|
|
299
302
|
req: import("frogbot/pieces").FrogBotRequest;
|
|
300
|
-
options: {
|
|
301
|
-
webhookKey?: string | undefined;
|
|
302
|
-
};
|
|
303
303
|
} & {
|
|
304
304
|
cursor?: PieceJSON | undefined;
|
|
305
305
|
}): Promise<{
|
|
@@ -342,6 +342,9 @@ export declare const xeroTriggers: (({
|
|
|
342
342
|
dateFrom?: string | undefined;
|
|
343
343
|
dateTo?: string | undefined;
|
|
344
344
|
};
|
|
345
|
+
options: {
|
|
346
|
+
webhookKey?: string | undefined;
|
|
347
|
+
};
|
|
345
348
|
client: {
|
|
346
349
|
authorize: (headers: Headers) => void;
|
|
347
350
|
listTenants: (signal?: AbortSignal) => Promise<{
|
|
@@ -360,9 +363,6 @@ export declare const xeroTriggers: (({
|
|
|
360
363
|
}, schema: TSchema) => Promise<z.core.output<TSchema>>;
|
|
361
364
|
};
|
|
362
365
|
req: import("frogbot/pieces").FrogBotRequest;
|
|
363
|
-
options: {
|
|
364
|
-
webhookKey?: string | undefined;
|
|
365
|
-
};
|
|
366
366
|
} & {
|
|
367
367
|
cursor?: PieceJSON | undefined;
|
|
368
368
|
}): Promise<{
|
|
@@ -405,6 +405,9 @@ export declare const xeroTriggers: (({
|
|
|
405
405
|
dateFrom?: string | undefined;
|
|
406
406
|
dateTo?: string | undefined;
|
|
407
407
|
};
|
|
408
|
+
options: {
|
|
409
|
+
webhookKey?: string | undefined;
|
|
410
|
+
};
|
|
408
411
|
client: {
|
|
409
412
|
authorize: (headers: Headers) => void;
|
|
410
413
|
listTenants: (signal?: AbortSignal) => Promise<{
|
|
@@ -423,9 +426,6 @@ export declare const xeroTriggers: (({
|
|
|
423
426
|
}, schema: TSchema) => Promise<z.core.output<TSchema>>;
|
|
424
427
|
};
|
|
425
428
|
req: import("frogbot/pieces").FrogBotRequest;
|
|
426
|
-
options: {
|
|
427
|
-
webhookKey?: string | undefined;
|
|
428
|
-
};
|
|
429
429
|
} & {
|
|
430
430
|
cursor?: PieceJSON | undefined;
|
|
431
431
|
}): Promise<{
|
|
@@ -468,6 +468,9 @@ export declare const xeroTriggers: (({
|
|
|
468
468
|
dateFrom?: string | undefined;
|
|
469
469
|
dateTo?: string | undefined;
|
|
470
470
|
};
|
|
471
|
+
options: {
|
|
472
|
+
webhookKey?: string | undefined;
|
|
473
|
+
};
|
|
471
474
|
client: {
|
|
472
475
|
authorize: (headers: Headers) => void;
|
|
473
476
|
listTenants: (signal?: AbortSignal) => Promise<{
|
|
@@ -486,9 +489,6 @@ export declare const xeroTriggers: (({
|
|
|
486
489
|
}, schema: TSchema) => Promise<z.core.output<TSchema>>;
|
|
487
490
|
};
|
|
488
491
|
req: import("frogbot/pieces").FrogBotRequest;
|
|
489
|
-
options: {
|
|
490
|
-
webhookKey?: string | undefined;
|
|
491
|
-
};
|
|
492
492
|
} & {
|
|
493
493
|
cursor?: PieceJSON | undefined;
|
|
494
494
|
}): Promise<{
|
|
@@ -531,6 +531,9 @@ export declare const xeroTriggers: (({
|
|
|
531
531
|
dateFrom?: string | undefined;
|
|
532
532
|
dateTo?: string | undefined;
|
|
533
533
|
};
|
|
534
|
+
options: {
|
|
535
|
+
webhookKey?: string | undefined;
|
|
536
|
+
};
|
|
534
537
|
client: {
|
|
535
538
|
authorize: (headers: Headers) => void;
|
|
536
539
|
listTenants: (signal?: AbortSignal) => Promise<{
|
|
@@ -549,9 +552,6 @@ export declare const xeroTriggers: (({
|
|
|
549
552
|
}, schema: TSchema) => Promise<z.core.output<TSchema>>;
|
|
550
553
|
};
|
|
551
554
|
req: import("frogbot/pieces").FrogBotRequest;
|
|
552
|
-
options: {
|
|
553
|
-
webhookKey?: string | undefined;
|
|
554
|
-
};
|
|
555
555
|
} & {
|
|
556
556
|
cursor?: PieceJSON | undefined;
|
|
557
557
|
}): Promise<{
|
|
@@ -594,6 +594,9 @@ export declare const xeroTriggers: (({
|
|
|
594
594
|
dateFrom?: string | undefined;
|
|
595
595
|
dateTo?: string | undefined;
|
|
596
596
|
};
|
|
597
|
+
options: {
|
|
598
|
+
webhookKey?: string | undefined;
|
|
599
|
+
};
|
|
597
600
|
client: {
|
|
598
601
|
authorize: (headers: Headers) => void;
|
|
599
602
|
listTenants: (signal?: AbortSignal) => Promise<{
|
|
@@ -612,9 +615,6 @@ export declare const xeroTriggers: (({
|
|
|
612
615
|
}, schema: TSchema) => Promise<z.core.output<TSchema>>;
|
|
613
616
|
};
|
|
614
617
|
req: import("frogbot/pieces").FrogBotRequest;
|
|
615
|
-
options: {
|
|
616
|
-
webhookKey?: string | undefined;
|
|
617
|
-
};
|
|
618
618
|
} & {
|
|
619
619
|
cursor?: PieceJSON | undefined;
|
|
620
620
|
}): Promise<{
|
|
@@ -657,6 +657,9 @@ export declare const xeroTriggers: (({
|
|
|
657
657
|
dateFrom?: string | undefined;
|
|
658
658
|
dateTo?: string | undefined;
|
|
659
659
|
};
|
|
660
|
+
options: {
|
|
661
|
+
webhookKey?: string | undefined;
|
|
662
|
+
};
|
|
660
663
|
client: {
|
|
661
664
|
authorize: (headers: Headers) => void;
|
|
662
665
|
listTenants: (signal?: AbortSignal) => Promise<{
|
|
@@ -675,9 +678,6 @@ export declare const xeroTriggers: (({
|
|
|
675
678
|
}, schema: TSchema) => Promise<z.core.output<TSchema>>;
|
|
676
679
|
};
|
|
677
680
|
req: import("frogbot/pieces").FrogBotRequest;
|
|
678
|
-
options: {
|
|
679
|
-
webhookKey?: string | undefined;
|
|
680
|
-
};
|
|
681
681
|
} & {
|
|
682
682
|
cursor?: PieceJSON | undefined;
|
|
683
683
|
}): Promise<{
|
|
@@ -720,6 +720,9 @@ export declare const xeroTriggers: (({
|
|
|
720
720
|
dateFrom?: string | undefined;
|
|
721
721
|
dateTo?: string | undefined;
|
|
722
722
|
};
|
|
723
|
+
options: {
|
|
724
|
+
webhookKey?: string | undefined;
|
|
725
|
+
};
|
|
723
726
|
client: {
|
|
724
727
|
authorize: (headers: Headers) => void;
|
|
725
728
|
listTenants: (signal?: AbortSignal) => Promise<{
|
|
@@ -738,9 +741,6 @@ export declare const xeroTriggers: (({
|
|
|
738
741
|
}, schema: TSchema) => Promise<z.core.output<TSchema>>;
|
|
739
742
|
};
|
|
740
743
|
req: import("frogbot/pieces").FrogBotRequest;
|
|
741
|
-
options: {
|
|
742
|
-
webhookKey?: string | undefined;
|
|
743
|
-
};
|
|
744
744
|
} & {
|
|
745
745
|
cursor?: PieceJSON | undefined;
|
|
746
746
|
}): Promise<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frogbotai/piece-xero",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.43.0",
|
|
4
4
|
"description": "xero tools for FrogBot.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Colby Gilbert",
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
],
|
|
20
20
|
"sideEffects": false,
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"frogbot": "0.
|
|
22
|
+
"frogbot": "0.43.0"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"zod": "^4.3.6"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"typescript": "6.0.3",
|
|
29
|
-
"frogbot": "0.
|
|
29
|
+
"frogbot": "0.43.0"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|