You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update Xero Accounting API components and actions, including version bumps and new features. Key changes include:
- Bumped version to 0.4.0 for the Xero Accounting API package.
- Added new actions for creating, updating, and deleting tracking categories and options.
- Enhanced existing actions with improved error handling and response formatting.
- Refactored code for better readability and maintainability, including consistent use of the xeroAccountingApi instance.
- Updated utility functions and constants for better modularity.
This update improves the overall functionality and usability of the Xero Accounting API integration.
* pnpm update
* pnpm update
* Refactor Xero Accounting API actions to utilize utility functions for improved data handling. Key changes include:
- Integrated `formatLineItems` in `create-credit-note` and `create-purchase-bill` actions.
- Implemented `parseObject` in `make-an-api-call`, `create-employee`, `create-or-update-contact`, and `update-contact` actions for better object parsing.
- Updated property names for consistency across actions.
These enhancements improve code maintainability and ensure consistent data formatting across API interactions.
* Refactor API request handling in Xero Accounting API. Changed the `make-an-api-call` method to directly return the axios call, simplifying the code and improving readability by removing unnecessary variable assignments.
* remove console.log
* Refactor Xero Accounting API actions for improved error handling and consistency. Key changes include:
- Updated API request methods to use consistent casing for paths (e.g., `/Contacts` and `/Invoices`).
- Enhanced error handling in actions to provide clearer feedback when no results are found.
- Removed deprecated `find-contact` action and streamlined contact-related actions.
- Bumped versions for several actions to reflect updates and improvements.
These changes enhance the reliability and maintainability of the Xero Accounting API integration.
* Refactor Xero Accounting API actions for consistency and clarity. Key changes include:
- Updated `listInvoices`, `listManualJournals`, `listCreditNotes`, and `listContacts` methods to use `modifiedSince` instead of `modifiedAfter` for parameter naming consistency.
- Simplified API request paths for `listInvoices` and `listManualJournals` by removing unnecessary identifiers.
These modifications enhance the clarity and maintainability of the API integration.
* Update components/xero_accounting_api/actions/list-invoices/list-invoices.mjs
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
---------
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
description: "Adds line items to an existing sales invoice. [See the docs here](https://developer.xero.com/documentation/api/accounting/invoices#post-invoices)",
description: "Create a new bank transaction [See the documentation](https://developer.xero.com/documentation/api/accounting/banktransactions#put-banktransactions)",
8
+
version: "0.1.2",
8
9
type: "action",
9
10
props: {
10
-
xero_accounting_api: {
11
-
type: "app",
12
-
app: "xero_accounting_api",
11
+
xeroAccountingApi,
12
+
tenantId: {
13
+
propDefinition: [
14
+
xeroAccountingApi,
15
+
"tenantId",
16
+
],
13
17
},
14
-
bank_account_code: {
18
+
bankAccountCode: {
15
19
type: "string",
20
+
label: "Bank account code",
16
21
description: "The Account Code of the Bank Account of the transaction. If Code is not included then AccountID is required.",
17
22
optional: true,
18
23
},
19
-
bank_account_id: {
24
+
bankAccountId: {
20
25
type: "string",
26
+
label: "Bank account ID",
21
27
description: "The ID of the Bank Account transaction. If AccountID is not included then Code is required.",
22
28
optional: true,
23
29
},
24
-
contact_id: {
30
+
contactId: {
25
31
type: "string",
32
+
label: "Contact ID",
26
33
description: "Id of the contact associated to the bank transaction.",
27
34
optional: true,
28
35
},
29
-
contact_name: {
36
+
contactName: {
30
37
type: "string",
38
+
label: "Contact name",
31
39
description: "Name of the contact associated to the bank transaction. If there is no contact matching this name, a new contact is created.",
32
40
optional: true,
33
41
},
34
-
tenant_id: {
35
-
type: "string",
36
-
description: "Id of the organization tenant to use on the Xero Accounting API. See [Get Tenant Connections](https://pipedream.com/@sergio/xero-accounting-api-get-tenant-connections-p_OKCzOgn/edit) for a workflow example on how to pull this data.",
37
-
},
38
42
type: {
39
43
type: "string",
44
+
label: "Type",
40
45
description: "See [Bank Transaction Types](https://developer.xero.com/documentation/api/types#BankTransactionTypes)",
41
46
options: [
42
47
"RECEIVE",
@@ -47,51 +52,60 @@ export default {
47
52
"SPEND-PREPAYMENT",
48
53
],
49
54
},
50
-
line_items: {
55
+
lineItems: {
51
56
type: "object",
57
+
label: "Line items",
52
58
description: "See [LineItems](https://developer.xero.com/documentation/api/banktransactions#LineItemsPOST). The LineItems element can contain any number of individual LineItem sub-elements. At least **one** is required to create a bank transaction.",
53
59
},
54
-
is_reonciled: {
60
+
isReconciled: {
55
61
type: "boolean",
62
+
label: "Is reconciled",
56
63
description: "Boolean to show if transaction is reconciled. Conversion related apps can set the IsReconciled flag in scenarios when a matching bank statement line is not available. [Learn more](http://help.xero.com/#Q_BankRecNoImport)",
57
64
optional: true,
58
65
},
59
66
date: {
60
67
type: "string",
68
+
label: "Date",
61
69
description: "Date of transaction - YYYY-MM-DD",
62
70
optional: true,
63
71
},
64
72
reference: {
65
73
type: "string",
74
+
label: "Reference",
66
75
description: "Reference for the transaction. Only supported for SPEND and RECEIVE transactions.",
67
76
optional: true,
68
77
},
69
-
currency_code: {
78
+
currencyCode: {
70
79
type: "string",
80
+
label: "Currency code",
71
81
description: "The currency that bank transaction has been raised in (see [Currencies](https://developer.xero.com/documentation/api/currencies)). Setting currency is only supported on overpayments.",
72
82
optional: true,
73
83
},
74
-
currency_rate: {
84
+
currencyRate: {
75
85
type: "string",
86
+
label: "Currency rate",
76
87
description: "Exchange rate to base currency when money is spent or received. e.g. 0.7500 Only used for bank transactions in non base currency. If this isn't specified for non base currency accounts then either the user-defined rate (preference) or the [XE.com day rate](http://help.xero.com/#CurrencySettings$Rates) will be used. Setting currency is only supported on overpayments.",
77
88
optional: true,
78
89
},
79
90
url: {
80
91
type: "string",
92
+
label: "URL",
81
93
description: "URL link to a source document - shown as \"Go to App Name\"",
82
94
optional: true,
83
95
},
84
96
status: {
85
97
type: "string",
98
+
label: "Status",
86
99
description: "See [Bank Transaction Status Codes](https://developer.xero.com/documentation/api/types#BankTransactionStatuses)",
87
100
optional: true,
88
101
options: [
89
102
"AUTHORISED",
90
103
"DELETED",
91
104
],
92
105
},
93
-
line_amount_types: {
106
+
lineAmountTypes: {
94
107
type: "string",
108
+
label: "Line amount types",
95
109
description: "Line amounts are exclusive of tax by default if you don't specify this element. See [Line Amount Types](https://developer.xero.com/documentation/api/types#LineAmountTypes)",
96
110
optional: true,
97
111
options: [
@@ -102,41 +116,39 @@ export default {
102
116
},
103
117
},
104
118
asyncrun({ $ }){
105
-
//See the API docs: https://developer.xero.com/documentation/api/banktransactions#PUT
0 commit comments