@frogbotai/piece-xero 0.15.0 → 0.17.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 +1 -1
- package/dist/index.js +51 -51
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type PieceFactoryConfig } from
|
|
1
|
+
import { type PieceFactoryConfig } from 'frogbot/pieces';
|
|
2
2
|
export declare const xeroActions: readonly ["xero_create_contact", "xero_create_invoice", "xero_create_bill", "xero_create_payment", "xero_create_purchase_order", "xero_update_purchase_order", "xero_find_contact", "xero_find_invoice", "xero_find_item", "xero_find_purchase_order"];
|
|
3
3
|
export declare const xeroScopes: readonly ["openid", "profile", "email", "offline_access", "accounting.contacts", "accounting.transactions", "accounting.reports.read", "accounting.journals.read", "accounting.budgets.read", "accounting.attachments", "accounting.settings", "projects"];
|
|
4
4
|
export declare function createXero(config?: PieceFactoryConfig): import("frogbot/pieces").Piece & {
|
package/dist/index.js
CHANGED
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
import * as module from
|
|
2
|
-
import { createActivepiecesPiece } from
|
|
1
|
+
import * as module from '@activepieces/piece-xero';
|
|
2
|
+
import { createActivepiecesPiece } from 'frogbot/pieces';
|
|
3
3
|
export const xeroActions = [
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
'xero_create_contact',
|
|
5
|
+
'xero_create_invoice',
|
|
6
|
+
'xero_create_bill',
|
|
7
|
+
'xero_create_payment',
|
|
8
|
+
'xero_create_purchase_order',
|
|
9
|
+
'xero_update_purchase_order',
|
|
10
|
+
'xero_find_contact',
|
|
11
|
+
'xero_find_invoice',
|
|
12
|
+
'xero_find_item',
|
|
13
|
+
'xero_find_purchase_order',
|
|
14
14
|
];
|
|
15
15
|
export const xeroScopes = [
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
16
|
+
'openid',
|
|
17
|
+
'profile',
|
|
18
|
+
'email',
|
|
19
|
+
'offline_access',
|
|
20
|
+
'accounting.contacts',
|
|
21
|
+
'accounting.transactions',
|
|
22
|
+
'accounting.reports.read',
|
|
23
|
+
'accounting.journals.read',
|
|
24
|
+
'accounting.budgets.read',
|
|
25
|
+
'accounting.attachments',
|
|
26
|
+
'accounting.settings',
|
|
27
|
+
'projects',
|
|
28
28
|
];
|
|
29
29
|
export function createXero(config) {
|
|
30
30
|
const piece = createActivepiecesPiece({
|
|
31
31
|
module: module,
|
|
32
|
-
service:
|
|
33
|
-
credentialType:
|
|
32
|
+
service: 'xero',
|
|
33
|
+
credentialType: 'oauth2',
|
|
34
34
|
defaultActions: xeroActions,
|
|
35
35
|
scopes: xeroScopes,
|
|
36
36
|
config,
|
|
37
37
|
});
|
|
38
38
|
return Object.assign(piece, {
|
|
39
39
|
/** Create or Update Contact: Create Xero Contact */
|
|
40
|
-
xeroCreateContact: piece.tool(
|
|
40
|
+
xeroCreateContact: piece.tool('xero_create_contact'),
|
|
41
41
|
/** Create or Update Invoice: Create Xero Invoice */
|
|
42
|
-
xeroCreateInvoice: piece.tool(
|
|
42
|
+
xeroCreateInvoice: piece.tool('xero_create_invoice'),
|
|
43
43
|
/** Allocate Credit Note to Invoice: Allocates a credit note to a specific invoice. */
|
|
44
|
-
xeroAllocateCreditNoteToInvoice: piece.tool(
|
|
44
|
+
xeroAllocateCreditNoteToInvoice: piece.tool('xero_allocate_credit_note_to_invoice'),
|
|
45
45
|
/** Create Bank Transfer: Transfers money between two bank accounts in Xero. */
|
|
46
|
-
xeroCreateBankTransfer: piece.tool(
|
|
46
|
+
xeroCreateBankTransfer: piece.tool('xero_create_bank_transfer'),
|
|
47
47
|
/** Create New Quote Draft: Creates a new draft quote. */
|
|
48
|
-
xeroCreateQuoteDraft: piece.tool(
|
|
48
|
+
xeroCreateQuoteDraft: piece.tool('xero_create_quote_draft'),
|
|
49
49
|
/** Send Sales Invoice by Email: Sends a sales invoice via email to a contact. */
|
|
50
|
-
xeroSendInvoiceEmail: piece.tool(
|
|
50
|
+
xeroSendInvoiceEmail: piece.tool('xero_send_invoice_email'),
|
|
51
51
|
/** Create Bill: Creates a new bill (Accounts Payable). */
|
|
52
|
-
xeroCreateBill: piece.tool(
|
|
52
|
+
xeroCreateBill: piece.tool('xero_create_bill'),
|
|
53
53
|
/** Create Payment: Applies a payment to an invoice. */
|
|
54
|
-
xeroCreatePayment: piece.tool(
|
|
54
|
+
xeroCreatePayment: piece.tool('xero_create_payment'),
|
|
55
55
|
/** Create Purchase Order: Creates a new purchase order for a contact. */
|
|
56
|
-
xeroCreatePurchaseOrder: piece.tool(
|
|
56
|
+
xeroCreatePurchaseOrder: piece.tool('xero_create_purchase_order'),
|
|
57
57
|
/** Update Purchase Order: Updates details of an existing purchase order. */
|
|
58
|
-
xeroUpdatePurchaseOrder: piece.tool(
|
|
58
|
+
xeroUpdatePurchaseOrder: piece.tool('xero_update_purchase_order'),
|
|
59
59
|
/** Upload Attachment: Uploads an attachment to a specific Xero resource. */
|
|
60
|
-
xeroUploadAttachment: piece.tool(
|
|
60
|
+
xeroUploadAttachment: piece.tool('xero_upload_attachment'),
|
|
61
61
|
/** Add Items to Existing Sales Invoice: Adds line items to an existing sales invoice (ACCREC). */
|
|
62
|
-
xeroAddItemsToSalesInvoice: piece.tool(
|
|
62
|
+
xeroAddItemsToSalesInvoice: piece.tool('xero_add_items_to_sales_invoice'),
|
|
63
63
|
/** Create Credit Note: Creates a new credit note for a contact. */
|
|
64
|
-
xeroCreateCreditNote: piece.tool(
|
|
64
|
+
xeroCreateCreditNote: piece.tool('xero_create_credit_note'),
|
|
65
65
|
/** Create Inventory Item: Creates a new inventory item in Xero. */
|
|
66
|
-
xeroCreateInventoryItem: piece.tool(
|
|
66
|
+
xeroCreateInventoryItem: piece.tool('xero_create_inventory_item'),
|
|
67
67
|
/** Create Project: Creates a new project for a contact. */
|
|
68
|
-
xeroCreateProject: piece.tool(
|
|
68
|
+
xeroCreateProject: piece.tool('xero_create_project'),
|
|
69
69
|
/** Update Sales Invoice: Updates details of an existing sales invoice (ACCREC). */
|
|
70
|
-
xeroUpdateSalesInvoice: piece.tool(
|
|
70
|
+
xeroUpdateSalesInvoice: piece.tool('xero_update_sales_invoice'),
|
|
71
71
|
/** Create Repeating Sales Invoice: Creates a repeating sales invoice (Accounts Receivable). */
|
|
72
|
-
xeroCreateRepeatingSalesInvoice: piece.tool(
|
|
72
|
+
xeroCreateRepeatingSalesInvoice: piece.tool('xero_create_repeating_sales_invoice'),
|
|
73
73
|
/** Find Contact: Finds a contact by name or account number (or SearchTerm). */
|
|
74
|
-
xeroFindContact: piece.tool(
|
|
74
|
+
xeroFindContact: piece.tool('xero_find_contact'),
|
|
75
75
|
/** Find Invoice: Finds an invoice by number or reference. */
|
|
76
|
-
xeroFindInvoice: piece.tool(
|
|
76
|
+
xeroFindInvoice: piece.tool('xero_find_invoice'),
|
|
77
77
|
/** Find Item: Finds an item by name or code. */
|
|
78
|
-
xeroFindItem: piece.tool(
|
|
78
|
+
xeroFindItem: piece.tool('xero_find_item'),
|
|
79
79
|
/** Find Purchase Order: Finds a purchase order by given parameters. */
|
|
80
|
-
xeroFindPurchaseOrder: piece.tool(
|
|
80
|
+
xeroFindPurchaseOrder: piece.tool('xero_find_purchase_order'),
|
|
81
81
|
/** Get Invoice History: Returns a list of history records for a given invoice ID. */
|
|
82
|
-
xeroGetInvoiceHistory: piece.tool(
|
|
82
|
+
xeroGetInvoiceHistory: piece.tool('xero_get_invoice_history'),
|
|
83
83
|
/** Create Bank Transaction: Creates a new Spend/Receive Money bank transaction. */
|
|
84
|
-
xeroCreateBankTransaction: piece.tool(
|
|
84
|
+
xeroCreateBankTransaction: piece.tool('xero_create_bank_transaction'),
|
|
85
85
|
/** Find or Create Contact: Finds or creates a specific contact. */
|
|
86
|
-
xeroFindOrCreateContact: piece.tool(
|
|
86
|
+
xeroFindOrCreateContact: piece.tool('xero_find_or_create_contact'),
|
|
87
87
|
/** Custom API Call: Make a custom API call to a specific endpoint */
|
|
88
|
-
customApiCall: piece.tool(
|
|
88
|
+
customApiCall: piece.tool('custom_api_call'),
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
91
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frogbotai/piece-xero",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "Xero tools for FrogBot.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Colby Gilbert",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"@activepieces/piece-xero": "0.6.8"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"frogbot": "0.
|
|
30
|
+
"frogbot": "0.17.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"typescript": "5.6.2",
|
|
34
|
-
"frogbot": "0.
|
|
34
|
+
"frogbot": "0.17.0"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|