@frogbotai/piece-xero 0.32.0 → 0.34.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/actions.d.ts.map +1 -1
- package/dist/index.d.ts +23 -23
- package/dist/triggers.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/actions.d.ts
CHANGED
|
@@ -1,24 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { XeroJSON } from './client.js';
|
|
3
|
-
export declare const xeroActions: (import("frogbot/pieces").
|
|
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<{
|
|
3
|
+
export declare const xeroActions: ((import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
|
|
22
4
|
contactId: z.ZodOptional<z.ZodString>;
|
|
23
5
|
name: z.ZodString;
|
|
24
6
|
email: z.ZodOptional<z.ZodString>;
|
|
@@ -895,9 +877,9 @@ export declare const xeroActions: (import("frogbot/pieces").CustomApiCallAction<
|
|
|
895
877
|
}> & {
|
|
896
878
|
slug: "createBankTransaction";
|
|
897
879
|
}) | (import("frogbot/pieces").PieceActionDefinition<z.ZodObject<{
|
|
898
|
-
email: z.ZodOptional<z.ZodString>;
|
|
899
880
|
tenantId: z.ZodString;
|
|
900
881
|
name: z.ZodString;
|
|
882
|
+
email: z.ZodOptional<z.ZodString>;
|
|
901
883
|
}, z.core.$strip>, z.ZodObject<{}, z.core.$catchall<z.ZodUnion<readonly [z.ZodJSONSchema, z.ZodArray<z.ZodJSONSchema>]>>>, {
|
|
902
884
|
webhookKey?: string | undefined;
|
|
903
885
|
}, {
|
|
@@ -920,5 +902,23 @@ export declare const xeroActions: (import("frogbot/pieces").CustomApiCallAction<
|
|
|
920
902
|
[x: string]: z.core.util.JSONType | z.core.util.JSONType[];
|
|
921
903
|
}> & {
|
|
922
904
|
slug: "findOrCreateContact";
|
|
923
|
-
}))
|
|
905
|
+
}) | import("frogbot/pieces").CustomApiCallAction<{
|
|
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
|
+
}>)[];
|
|
924
924
|
//# sourceMappingURL=actions.d.ts.map
|
package/dist/actions.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"A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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA0BvB,CAAC"}
|
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: ("
|
|
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" | "customApiCall")[];
|
|
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,29 +38,11 @@ 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, "projects" | "email" | "files" | "openid" | "profile" | "offline_access" | "accounting.contacts" | "accounting.transactions" | "accounting.reports.read" | "accounting.journals.read" | "accounting.budgets.read" | "accounting.attachments" | "accounting.settings" | "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.read" | "assets" | "assets.read" | "projects.read">;
|
|
42
42
|
readonly webhook: import("frogbot/pieces").PieceWebhook<{
|
|
43
43
|
webhookKey?: string | undefined;
|
|
44
44
|
}>;
|
|
45
|
-
readonly actions: (import("frogbot/pieces").
|
|
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<{
|
|
45
|
+
readonly actions: ((import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
|
|
64
46
|
contactId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
65
47
|
name: import("zod").ZodString;
|
|
66
48
|
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -937,9 +919,9 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
|
937
919
|
}> & {
|
|
938
920
|
slug: "createBankTransaction";
|
|
939
921
|
}) | (import("frogbot/pieces").PieceActionDefinition<import("zod").ZodObject<{
|
|
940
|
-
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
941
922
|
tenantId: import("zod").ZodString;
|
|
942
923
|
name: import("zod").ZodString;
|
|
924
|
+
email: import("zod").ZodOptional<import("zod").ZodString>;
|
|
943
925
|
}, 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>]>>>, {
|
|
944
926
|
webhookKey?: string | undefined;
|
|
945
927
|
}, {
|
|
@@ -962,7 +944,25 @@ export declare const createXero: import("frogbot/pieces").PieceFactory<{
|
|
|
962
944
|
[x: string]: import("zod").JSONType | import("zod").JSONType[];
|
|
963
945
|
}> & {
|
|
964
946
|
slug: "findOrCreateContact";
|
|
965
|
-
}))
|
|
947
|
+
}) | import("frogbot/pieces").CustomApiCallAction<{
|
|
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
|
+
}>)[];
|
|
966
966
|
readonly triggers: (({
|
|
967
967
|
slug: string;
|
|
968
968
|
label?: string;
|
package/dist/triggers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggers.d.ts","sourceRoot":"","sources":["../src/triggers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkQxB,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"triggers.d.ts","sourceRoot":"","sources":["../src/triggers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkQxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgHxB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frogbotai/piece-xero",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.34.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.34.0"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"zod": "^4.3.6"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"typescript": "
|
|
29
|
-
"frogbot": "0.
|
|
28
|
+
"typescript": "6.0.3",
|
|
29
|
+
"frogbot": "0.34.0"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|