diff --git a/components/quickbooks/actions/create-ap-aging-report/create-ap-aging-report.mjs b/components/quickbooks/actions/create-ap-aging-report/create-ap-aging-report.mjs index 70c3d46e17c5a..21e0082172660 100644 --- a/components/quickbooks/actions/create-ap-aging-report/create-ap-aging-report.mjs +++ b/components/quickbooks/actions/create-ap-aging-report/create-ap-aging-report.mjs @@ -5,7 +5,7 @@ export default { key: "quickbooks-create-ap-aging-report", name: "Create AP Aging Detail Report", description: "Creates an AP aging report in Quickbooks Online. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/apagingdetail#query-a-report)", - version: "0.0.7", + version: "0.0.8", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/actions/create-bill/create-bill.mjs b/components/quickbooks/actions/create-bill/create-bill.mjs index 8b6623474d755..979533da6138d 100644 --- a/components/quickbooks/actions/create-bill/create-bill.mjs +++ b/components/quickbooks/actions/create-bill/create-bill.mjs @@ -6,7 +6,7 @@ export default { key: "quickbooks-create-bill", name: "Create Bill", description: "Creates a bill. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/bill#create-a-bill)", - version: "0.1.12", + version: "0.1.13", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/actions/create-customer/create-customer.mjs b/components/quickbooks/actions/create-customer/create-customer.mjs index 6e66b4c143c62..8001c5d089f50 100644 --- a/components/quickbooks/actions/create-customer/create-customer.mjs +++ b/components/quickbooks/actions/create-customer/create-customer.mjs @@ -5,7 +5,7 @@ export default { key: "quickbooks-create-customer", name: "Create Customer", description: "Creates a customer. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/customer#create-a-customer)", - version: "0.1.12", + version: "0.1.13", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/actions/create-estimate/create-estimate.mjs b/components/quickbooks/actions/create-estimate/create-estimate.mjs index c10afe039b2b7..eae79b7a9651a 100644 --- a/components/quickbooks/actions/create-estimate/create-estimate.mjs +++ b/components/quickbooks/actions/create-estimate/create-estimate.mjs @@ -9,7 +9,7 @@ export default { key: "quickbooks-create-estimate", name: "Create Estimate", description: "Creates an estimate. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/estimate#create-an-estimate)", - version: "0.0.4", + version: "0.0.5", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/actions/create-invoice/create-invoice.mjs b/components/quickbooks/actions/create-invoice/create-invoice.mjs index 7e7b6ea7dd53f..857ead27575b2 100644 --- a/components/quickbooks/actions/create-invoice/create-invoice.mjs +++ b/components/quickbooks/actions/create-invoice/create-invoice.mjs @@ -6,7 +6,7 @@ export default { key: "quickbooks-create-invoice", name: "Create Invoice", description: "Creates an invoice. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/invoice#create-an-invoice)", - version: "0.2.6", + version: "0.2.7", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/actions/create-payment/create-payment.mjs b/components/quickbooks/actions/create-payment/create-payment.mjs index 686739493dfb9..54b6c4e797a06 100644 --- a/components/quickbooks/actions/create-payment/create-payment.mjs +++ b/components/quickbooks/actions/create-payment/create-payment.mjs @@ -4,7 +4,7 @@ export default { key: "quickbooks-create-payment", name: "Create Payment", description: "Creates a payment. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/payment#create-a-payment)", - version: "0.0.11", + version: "0.0.12", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/actions/create-pl-report/create-pl-report.mjs b/components/quickbooks/actions/create-pl-report/create-pl-report.mjs index 3ffe464830c7e..c0656a2d16c54 100644 --- a/components/quickbooks/actions/create-pl-report/create-pl-report.mjs +++ b/components/quickbooks/actions/create-pl-report/create-pl-report.mjs @@ -7,7 +7,7 @@ export default { key: "quickbooks-create-pl-report", name: "Create Profit and Loss Detail Report", description: "Creates a profit and loss report in Quickbooks Online. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/profitandloss#query-a-report)", - version: "0.0.7", + version: "0.0.8", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/actions/create-purchase-order/create-purchase-order.mjs b/components/quickbooks/actions/create-purchase-order/create-purchase-order.mjs index 0347710bed8f5..c5638f068fc3c 100644 --- a/components/quickbooks/actions/create-purchase-order/create-purchase-order.mjs +++ b/components/quickbooks/actions/create-purchase-order/create-purchase-order.mjs @@ -9,7 +9,7 @@ export default { key: "quickbooks-create-purchase-order", name: "Create Purchase Order", description: "Creates a purchase order. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/purchaseorder#create-a-purchaseorder)", - version: "0.0.4", + version: "0.0.5", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/actions/create-purchase/create-purchase.mjs b/components/quickbooks/actions/create-purchase/create-purchase.mjs index 7c09eb8c8f2c1..19070d99e6b93 100644 --- a/components/quickbooks/actions/create-purchase/create-purchase.mjs +++ b/components/quickbooks/actions/create-purchase/create-purchase.mjs @@ -6,7 +6,7 @@ export default { key: "quickbooks-create-purchase", name: "Create Purchase", description: "Creates a new purchase. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/purchase#create-a-purchase)", - version: "0.0.10", + version: "0.0.11", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/actions/create-sales-receipt/create-sales-receipt.mjs b/components/quickbooks/actions/create-sales-receipt/create-sales-receipt.mjs index d2e718ff290fa..6be880b2a50cf 100644 --- a/components/quickbooks/actions/create-sales-receipt/create-sales-receipt.mjs +++ b/components/quickbooks/actions/create-sales-receipt/create-sales-receipt.mjs @@ -6,7 +6,7 @@ export default { key: "quickbooks-create-sales-receipt", name: "Create Sales Receipt", description: "Creates a sales receipt. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/salesreceipt#create-a-salesreceipt)", - version: "0.0.11", + version: "0.0.12", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/actions/delete-purchase/delete-purchase.mjs b/components/quickbooks/actions/delete-purchase/delete-purchase.mjs index d050829c6ac89..38d13c075e946 100644 --- a/components/quickbooks/actions/delete-purchase/delete-purchase.mjs +++ b/components/quickbooks/actions/delete-purchase/delete-purchase.mjs @@ -4,7 +4,7 @@ export default { key: "quickbooks-delete-purchase", name: "Delete Purchase", description: "Delete a specific purchase. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/purchase#delete-a-purchase)", - version: "0.0.10", + version: "0.0.11", annotations: { destructiveHint: true, openWorldHint: true, diff --git a/components/quickbooks/actions/get-balance-sheet-report/get-balance-sheet-report.mjs b/components/quickbooks/actions/get-balance-sheet-report/get-balance-sheet-report.mjs new file mode 100644 index 0000000000000..bd5564b3d2d50 --- /dev/null +++ b/components/quickbooks/actions/get-balance-sheet-report/get-balance-sheet-report.mjs @@ -0,0 +1,166 @@ +import quickbooks from "../../quickbooks.app.mjs"; +import { DATE_MACRO_OPTIONS } from "../../common/constants.mjs"; +import { + commaSeparateArray, + booleanToString, +} from "../../common/utils.mjs"; + +export default { + key: "quickbooks-get-balance-sheet-report", + name: "Get Balance Sheet Report", + description: "Retrieves the balance sheet report from Quickbooks Online. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/balancesheet#query-a-report)", + version: "0.0.1", + type: "action", + annotations: { + destructiveHint: false, + openWorldHint: true, + readOnlyHint: true, + }, + props: { + quickbooks, + customer: { + type: "string[]", + label: "Customer IDs", + description: "Filters report contents to include information for specified customers", + optional: true, + propDefinition: [ + quickbooks, + "customer", + ], + }, + qzurl: { + type: "boolean", + label: "Include Quick Zoom URL", + description: "Specifies whether Quick Zoom URL information should be generated for rows in the report", + optional: true, + }, + accountingMethod: { + propDefinition: [ + quickbooks, + "accountingMethod", + ], + }, + dateMacro: { + type: "string", + label: "Date Macro", + description: "Predefined date range. Use if you want the report to cover a standard report date range; otherwise, use the **Start Date** and **End Date** to cover an explicit report date range", + options: DATE_MACRO_OPTIONS, + optional: true, + }, + startDate: { + type: "string", + label: "Start Date", + description: "The start date of the report, in the format `YYYY-MM-DD`. **Start Date** must be less than **End Date**", + optional: true, + }, + endDate: { + type: "string", + label: "End Date", + description: "The end date of the report, in the format `YYYY-MM-DD`. **Start Date** must be less than **End Date**", + optional: true, + }, + adjustedGainLoss: { + type: "boolean", + label: "Adjusted Gain Loss", + description: "Specifies whether unrealized gain and losses are included in the report", + optional: true, + }, + classIds: { + propDefinition: [ + quickbooks, + "classIds", + ], + }, + item: { + type: "string[]", + label: "Item IDs", + description: "Filters report contents to include information for specified items", + optional: true, + propDefinition: [ + quickbooks, + "itemId", + ], + }, + sortOrder: { + type: "string", + label: "Sort Order", + description: "The sort order for report results", + options: [ + "ascend", + "descend", + ], + optional: true, + }, + summarizeColumnBy: { + type: "string", + label: "Summarize Column By", + description: "The criteria by which to group the report results", + options: [ + "Total", + "Month", + "Week", + "Days", + "Quarter", + "Year", + "Customers", + "Vendors", + "Classes", + "Departments", + "Employees", + "ProductsAndServices", + ], + optional: true, + }, + department: { + propDefinition: [ + quickbooks, + "departmentIds", + ], + }, + vendor: { + propDefinition: [ + quickbooks, + "vendorIds", + ], + }, + }, + async run({ $ }) { + const { + quickbooks, + customer, + qzurl, + accountingMethod, + dateMacro, + startDate, + endDate, + adjustedGainLoss, + classIds, + item, + sortOrder, + summarizeColumnBy, + department, + vendor, + } = this; + + const response = await quickbooks.getBalanceSheetReport({ + $, + params: { + customer: commaSeparateArray(customer), + qzurl: booleanToString(qzurl), + accounting_method: accountingMethod, + date_macro: dateMacro, + start_date: startDate, + end_date: endDate, + adjusted_gain_loss: booleanToString(adjustedGainLoss), + class: commaSeparateArray(classIds), + item: commaSeparateArray(item), + sort_order: sortOrder, + summarize_column_by: summarizeColumnBy, + department: commaSeparateArray(department), + vendor: commaSeparateArray(vendor), + }, + }); + $.export("$summary", "Successfully retrieved Balance Sheet Report"); + return response; + }, +}; diff --git a/components/quickbooks/actions/get-bill/get-bill.mjs b/components/quickbooks/actions/get-bill/get-bill.mjs index 7a076091d876e..219287c324943 100644 --- a/components/quickbooks/actions/get-bill/get-bill.mjs +++ b/components/quickbooks/actions/get-bill/get-bill.mjs @@ -5,7 +5,7 @@ export default { key: "quickbooks-get-bill", name: "Get Bill", description: "Returns info about a bill. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/bill#read-a-bill)", - version: "0.1.12", + version: "0.1.13", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/actions/get-cash-flow-report/get-cash-flow-report.mjs b/components/quickbooks/actions/get-cash-flow-report/get-cash-flow-report.mjs new file mode 100644 index 0000000000000..b9a80688d33a7 --- /dev/null +++ b/components/quickbooks/actions/get-cash-flow-report/get-cash-flow-report.mjs @@ -0,0 +1,139 @@ +import quickbooks from "../../quickbooks.app.mjs"; +import { DATE_MACRO_OPTIONS } from "../../common/constants.mjs"; +import { commaSeparateArray } from "../../common/utils.mjs"; + +export default { + key: "quickbooks-get-cash-flow-report", + name: "Get Cash Flow Report", + description: "Retrieves the cash flow report from Quickbooks Online. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/cashflow#query-a-report)", + version: "0.0.1", + type: "action", + annotations: { + destructiveHint: false, + openWorldHint: true, + readOnlyHint: true, + }, + props: { + quickbooks, + customer: { + type: "string[]", + label: "Customer IDs", + description: "Filters report contents to include information for specified customers", + optional: true, + propDefinition: [ + quickbooks, + "customer", + ], + }, + vendor: { + propDefinition: [ + quickbooks, + "vendorIds", + ], + }, + dateMacro: { + type: "string", + label: "Date Macro", + description: "Predefined date range. Use if you want the report to cover a standard report date range; otherwise, use the **Start Date** and **End Date** to cover an explicit report date range", + options: DATE_MACRO_OPTIONS, + optional: true, + }, + startDate: { + type: "string", + label: "Start Date", + description: "The start date of the report, in the format `YYYY-MM-DD`. **Start Date** must be less than **End Date**", + optional: true, + }, + endDate: { + type: "string", + label: "End Date", + description: "The end date of the report, in the format `YYYY-MM-DD`. **Start Date** must be less than **End Date**", + optional: true, + }, + classIds: { + propDefinition: [ + quickbooks, + "classIds", + ], + }, + item: { + type: "string[]", + label: "Item IDs", + description: "Filters report contents to include information for specified items", + optional: true, + propDefinition: [ + quickbooks, + "itemId", + ], + }, + sortOrder: { + type: "string", + label: "Sort Order", + description: "The sort order for report results", + options: [ + "ascend", + "descend", + ], + optional: true, + }, + summarizeColumnBy: { + type: "string", + label: "Summarize Column By", + description: "The criteria by which to group the report results", + options: [ + "Total", + "Month", + "Week", + "Days", + "Quarter", + "Year", + "Customers", + "Vendors", + "Classes", + "Departments", + "Employees", + "ProductsAndServices", + ], + optional: true, + }, + department: { + propDefinition: [ + quickbooks, + "departmentIds", + ], + }, + }, + async run({ $ }) { + const { + quickbooks, + customer, + vendor, + dateMacro, + startDate, + endDate, + classIds, + item, + sortOrder, + summarizeColumnBy, + department, + } = this; + + const response = await quickbooks.getCashFlowReport({ + $, + params: { + customer: commaSeparateArray(customer), + vendor: commaSeparateArray(vendor), + date_macro: dateMacro, + start_date: startDate, + end_date: endDate, + class: commaSeparateArray(classIds), + item: commaSeparateArray(item), + sort_order: sortOrder, + summarize_column_by: summarizeColumnBy, + department: commaSeparateArray(department), + }, + }); + $.export("$summary", "Successfully retrieved Cash Flow Report"); + return response; + }, +}; diff --git a/components/quickbooks/actions/get-customer/get-customer.mjs b/components/quickbooks/actions/get-customer/get-customer.mjs index d3889d3fc47de..816657e6964a0 100644 --- a/components/quickbooks/actions/get-customer/get-customer.mjs +++ b/components/quickbooks/actions/get-customer/get-customer.mjs @@ -5,7 +5,7 @@ export default { key: "quickbooks-get-customer", name: "Get Customer", description: "Returns info about a customer. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/most-commonly-used/customer#read-a-customer)", - version: "0.3.12", + version: "0.3.13", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/actions/get-invoice/get-invoice.mjs b/components/quickbooks/actions/get-invoice/get-invoice.mjs index 0bb4e8f5c0ac4..602ba4156de98 100644 --- a/components/quickbooks/actions/get-invoice/get-invoice.mjs +++ b/components/quickbooks/actions/get-invoice/get-invoice.mjs @@ -5,7 +5,7 @@ export default { key: "quickbooks-get-invoice", name: "Get Invoice", description: "Returns info about an invoice. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/invoice#read-an-invoice)", - version: "0.2.13", + version: "0.2.14", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/actions/get-my-company/get-my-company.mjs b/components/quickbooks/actions/get-my-company/get-my-company.mjs index 88b6a576c0ff6..12fa47d4d8539 100644 --- a/components/quickbooks/actions/get-my-company/get-my-company.mjs +++ b/components/quickbooks/actions/get-my-company/get-my-company.mjs @@ -4,7 +4,7 @@ export default { key: "quickbooks-get-my-company", name: "Get My Company", description: "Gets info about a company. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/companyinfo)", - version: "0.1.12", + version: "0.1.13", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/actions/get-payment/get-payment.mjs b/components/quickbooks/actions/get-payment/get-payment.mjs index 4f5f65a46b2db..8c894193800de 100644 --- a/components/quickbooks/actions/get-payment/get-payment.mjs +++ b/components/quickbooks/actions/get-payment/get-payment.mjs @@ -5,7 +5,7 @@ export default { key: "quickbooks-get-payment", name: "Get Payment", description: "Returns info about a payment. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/payment#read-a-payment)", - version: "0.0.6", + version: "0.0.7", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/actions/get-purchase-order/get-purchase-order.mjs b/components/quickbooks/actions/get-purchase-order/get-purchase-order.mjs index 5b2fbd6d1ded7..959d1551db5fb 100644 --- a/components/quickbooks/actions/get-purchase-order/get-purchase-order.mjs +++ b/components/quickbooks/actions/get-purchase-order/get-purchase-order.mjs @@ -5,7 +5,7 @@ export default { key: "quickbooks-get-purchase-order", name: "Get Purchase Order", description: "Returns details about a purchase order. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/purchaseorder#read-a-purchase-order)", - version: "0.1.12", + version: "0.1.13", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/actions/get-purchase/get-purchase.mjs b/components/quickbooks/actions/get-purchase/get-purchase.mjs index dfbf897b6d6e0..a27883d078a8e 100644 --- a/components/quickbooks/actions/get-purchase/get-purchase.mjs +++ b/components/quickbooks/actions/get-purchase/get-purchase.mjs @@ -5,7 +5,7 @@ export default { key: "quickbooks-get-purchase", name: "Get Purchase", description: "Returns info about a purchase. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/purchase#read-a-purchase)", - version: "0.1.12", + version: "0.1.13", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/actions/get-sales-receipt/get-sales-receipt.mjs b/components/quickbooks/actions/get-sales-receipt/get-sales-receipt.mjs index 8bb570aa0e0c7..ef8a096750d4b 100644 --- a/components/quickbooks/actions/get-sales-receipt/get-sales-receipt.mjs +++ b/components/quickbooks/actions/get-sales-receipt/get-sales-receipt.mjs @@ -5,7 +5,7 @@ export default { key: "quickbooks-get-sales-receipt", name: "Get Sales Receipt", description: "Returns details about a sales receipt. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/salesreceipt#read-a-salesreceipt)", - version: "0.1.12", + version: "0.1.13", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/actions/get-time-activity/get-time-activity.mjs b/components/quickbooks/actions/get-time-activity/get-time-activity.mjs index 2eebc8d5e663a..b9a87c7ad8968 100644 --- a/components/quickbooks/actions/get-time-activity/get-time-activity.mjs +++ b/components/quickbooks/actions/get-time-activity/get-time-activity.mjs @@ -5,7 +5,7 @@ export default { key: "quickbooks-get-time-activity", name: "Get Time Activity", description: "Returns info about an activity. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/timeactivity#read-a-timeactivity-object)", - version: "0.1.12", + version: "0.1.13", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/actions/search-accounts/search-accounts.mjs b/components/quickbooks/actions/search-accounts/search-accounts.mjs index c9ef54e59beb0..110cb73f64fcc 100644 --- a/components/quickbooks/actions/search-accounts/search-accounts.mjs +++ b/components/quickbooks/actions/search-accounts/search-accounts.mjs @@ -5,7 +5,7 @@ export default { key: "quickbooks-search-accounts", name: "Search Accounts", description: "Search for accounts. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/account#query-an-account)", - version: "0.2.12", + version: "0.2.13", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/actions/search-customers/search-customers.mjs b/components/quickbooks/actions/search-customers/search-customers.mjs index ddc0ed7d8d1b3..e13001427fa7b 100644 --- a/components/quickbooks/actions/search-customers/search-customers.mjs +++ b/components/quickbooks/actions/search-customers/search-customers.mjs @@ -5,7 +5,7 @@ export default { key: "quickbooks-search-customers", name: "Search Customers", description: "Searches for customers. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/customer#query-a-customer)", - version: "0.1.12", + version: "0.1.13", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/actions/search-invoices/search-invoices.mjs b/components/quickbooks/actions/search-invoices/search-invoices.mjs index a24479aecc371..efe25e9a73a4b 100644 --- a/components/quickbooks/actions/search-invoices/search-invoices.mjs +++ b/components/quickbooks/actions/search-invoices/search-invoices.mjs @@ -5,7 +5,7 @@ export default { key: "quickbooks-search-invoices", name: "Search Invoices", description: "Searches for invoices. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/invoice#query-an-invoice)", - version: "0.0.6", + version: "0.0.7", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/actions/search-items/search-items.mjs b/components/quickbooks/actions/search-items/search-items.mjs index 8c9c20c1800d4..f145f2f9a3722 100644 --- a/components/quickbooks/actions/search-items/search-items.mjs +++ b/components/quickbooks/actions/search-items/search-items.mjs @@ -5,7 +5,7 @@ export default { key: "quickbooks-search-items", name: "Search Items", description: "Searches for items. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/item#query-an-item)", - version: "0.1.12", + version: "0.1.13", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/actions/search-products/search-products.mjs b/components/quickbooks/actions/search-products/search-products.mjs index 11a900f7c6d41..0f804ffcb977a 100644 --- a/components/quickbooks/actions/search-products/search-products.mjs +++ b/components/quickbooks/actions/search-products/search-products.mjs @@ -5,7 +5,7 @@ export default { key: "quickbooks-search-products", name: "Search Products", description: "Search for products. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/item#query-an-item)", - version: "0.1.12", + version: "0.1.13", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/actions/search-purchases/search-purchases.mjs b/components/quickbooks/actions/search-purchases/search-purchases.mjs index efcb101444337..6aa4d55458830 100644 --- a/components/quickbooks/actions/search-purchases/search-purchases.mjs +++ b/components/quickbooks/actions/search-purchases/search-purchases.mjs @@ -4,7 +4,7 @@ export default { key: "quickbooks-search-purchases", name: "Search Purchases", description: "Searches for purchases. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/purchase#query-a-purchase)", - version: "0.0.10", + version: "0.0.11", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/actions/search-query/search-query.mjs b/components/quickbooks/actions/search-query/search-query.mjs index 4e03445785a8e..f30f0d8d1e9b8 100644 --- a/components/quickbooks/actions/search-query/search-query.mjs +++ b/components/quickbooks/actions/search-query/search-query.mjs @@ -5,7 +5,7 @@ export default { key: "quickbooks-search-query", name: "Search Query", description: "Performs a search query against a Quickbooks entity. [See the documentation](https://developer.intuit.com/app/develophttps://developer.intuit.com/app/developer/qbo/docs/develop/explore-the-quickbooks-online-api/data-queries)", - version: "0.1.12", + version: "0.1.13", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/actions/search-services/search-services.mjs b/components/quickbooks/actions/search-services/search-services.mjs index 94f9ed7105675..c92000a78f8ec 100644 --- a/components/quickbooks/actions/search-services/search-services.mjs +++ b/components/quickbooks/actions/search-services/search-services.mjs @@ -5,7 +5,7 @@ export default { key: "quickbooks-search-services", name: "Search Services", description: "Search for services. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/item#query-an-item)", - version: "0.0.6", + version: "0.0.7", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/actions/search-time-activities/search-time-activities.mjs b/components/quickbooks/actions/search-time-activities/search-time-activities.mjs index 8fd6b694e591f..4da788c058ebc 100644 --- a/components/quickbooks/actions/search-time-activities/search-time-activities.mjs +++ b/components/quickbooks/actions/search-time-activities/search-time-activities.mjs @@ -5,7 +5,7 @@ export default { key: "quickbooks-search-time-activities", name: "Search Time Activities", description: "Searches for time activities. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/timeactivity#query-a-timeactivity-object)", - version: "0.1.12", + version: "0.1.13", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/actions/search-vendors/search-vendors.mjs b/components/quickbooks/actions/search-vendors/search-vendors.mjs index cefa85f9d563f..3ac2f8b4c46f5 100644 --- a/components/quickbooks/actions/search-vendors/search-vendors.mjs +++ b/components/quickbooks/actions/search-vendors/search-vendors.mjs @@ -5,7 +5,7 @@ export default { key: "quickbooks-search-vendors", name: "Search Vendors", description: "Searches for vendors. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/vendor#query-a-vendor)", - version: "0.1.12", + version: "0.1.13", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/actions/send-estimate/send-estimate.mjs b/components/quickbooks/actions/send-estimate/send-estimate.mjs index 9ee822e66069d..27da2be006881 100644 --- a/components/quickbooks/actions/send-estimate/send-estimate.mjs +++ b/components/quickbooks/actions/send-estimate/send-estimate.mjs @@ -4,7 +4,7 @@ export default { key: "quickbooks-send-estimate", name: "Send Estimate", description: "Sends an estimate by email. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/estimate#send-an-estimate)", - version: "0.0.4", + version: "0.0.5", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/actions/send-invoice/send-invoice.mjs b/components/quickbooks/actions/send-invoice/send-invoice.mjs index 378eede7b410a..97919e741c8d8 100644 --- a/components/quickbooks/actions/send-invoice/send-invoice.mjs +++ b/components/quickbooks/actions/send-invoice/send-invoice.mjs @@ -4,7 +4,7 @@ export default { key: "quickbooks-send-invoice", name: "Send Invoice", description: "Sends an invoice by email. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/invoice#send-an-invoice)", - version: "0.0.4", + version: "0.0.5", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/actions/sparse-update-invoice/sparse-update-invoice.mjs b/components/quickbooks/actions/sparse-update-invoice/sparse-update-invoice.mjs index 3b2a00563424a..2832f4b0fe4b8 100644 --- a/components/quickbooks/actions/sparse-update-invoice/sparse-update-invoice.mjs +++ b/components/quickbooks/actions/sparse-update-invoice/sparse-update-invoice.mjs @@ -6,7 +6,7 @@ export default { key: "quickbooks-sparse-update-invoice", name: "Sparse Update Invoice", description: "Sparse updating provides the ability to update a subset of properties for a given object; only elements specified in the request are updated. Missing elements are left untouched. The ID of the object to update is specified in the request body.​ [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/invoice#sparse-update-an-invoice)", - version: "0.1.10", + version: "0.1.11", annotations: { destructiveHint: true, openWorldHint: true, diff --git a/components/quickbooks/actions/update-customer/update-customer.mjs b/components/quickbooks/actions/update-customer/update-customer.mjs index 872700dfa961e..80d0f16f72404 100644 --- a/components/quickbooks/actions/update-customer/update-customer.mjs +++ b/components/quickbooks/actions/update-customer/update-customer.mjs @@ -5,7 +5,7 @@ export default { key: "quickbooks-update-customer", name: "Update Customer", description: "Updates a customer. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/customer#full-update-a-customer)", - version: "0.1.12", + version: "0.1.13", annotations: { destructiveHint: true, openWorldHint: true, diff --git a/components/quickbooks/actions/update-estimate/update-estimate.mjs b/components/quickbooks/actions/update-estimate/update-estimate.mjs index 691184ca79bd0..b2f77bc9b83e7 100644 --- a/components/quickbooks/actions/update-estimate/update-estimate.mjs +++ b/components/quickbooks/actions/update-estimate/update-estimate.mjs @@ -9,7 +9,7 @@ export default { key: "quickbooks-update-estimate", name: "Update Estimate", description: "Updates an estimate. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/estimate#update-an-estimate)", - version: "0.0.4", + version: "0.0.5", annotations: { destructiveHint: true, openWorldHint: true, diff --git a/components/quickbooks/actions/update-invoice/update-invoice.mjs b/components/quickbooks/actions/update-invoice/update-invoice.mjs index dfc8dcd7f90b6..636e578ddc0ac 100644 --- a/components/quickbooks/actions/update-invoice/update-invoice.mjs +++ b/components/quickbooks/actions/update-invoice/update-invoice.mjs @@ -9,7 +9,7 @@ export default { key: "quickbooks-update-invoice", name: "Update Invoice", description: "Updates an invoice. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/invoice#update-an-invoice)", - version: "0.0.4", + version: "0.0.5", annotations: { destructiveHint: true, openWorldHint: true, diff --git a/components/quickbooks/actions/update-item/update-item.mjs b/components/quickbooks/actions/update-item/update-item.mjs index f853fec4fa7ad..34d6988d4b0e0 100644 --- a/components/quickbooks/actions/update-item/update-item.mjs +++ b/components/quickbooks/actions/update-item/update-item.mjs @@ -5,7 +5,7 @@ export default { key: "quickbooks-update-item", name: "Update Item", description: "Updates an item. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/item#full-update-an-item)", - version: "0.0.6", + version: "0.0.7", annotations: { destructiveHint: true, openWorldHint: true, diff --git a/components/quickbooks/actions/void-invoice/void-invoice.mjs b/components/quickbooks/actions/void-invoice/void-invoice.mjs index c688c806c8585..0acfd3891b9b0 100644 --- a/components/quickbooks/actions/void-invoice/void-invoice.mjs +++ b/components/quickbooks/actions/void-invoice/void-invoice.mjs @@ -5,7 +5,7 @@ export default { key: "quickbooks-void-invoice", name: "Void Invoice", description: "Voids an invoice. [See the documentation](https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/invoice#void-an-invoice)", - version: "0.0.4", + version: "0.0.5", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/quickbooks/common/utils.mjs b/components/quickbooks/common/utils.mjs index 2d548beae6c6a..9b1b9fbaaff42 100644 --- a/components/quickbooks/common/utils.mjs +++ b/components/quickbooks/common/utils.mjs @@ -219,3 +219,16 @@ export function buildPurchaseLineItems(numLineItems, context) { } return lineItems; } + +export function commaSeparateArray(arr) { + if (Array.isArray(arr) && arr.length > 0) { + return arr.join(","); + } + return arr; +} + +export function booleanToString(bool) { + return bool === true || bool === "true" + ? "true" + : "false"; +} diff --git a/components/quickbooks/package.json b/components/quickbooks/package.json index fd459db9ca306..7547d615e6c98 100644 --- a/components/quickbooks/package.json +++ b/components/quickbooks/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/quickbooks", - "version": "0.7.1", + "version": "0.8.0", "description": "Pipedream Quickbooks Components", "main": "quickbooks.app.mjs", "keywords": [ diff --git a/components/quickbooks/quickbooks.app.mjs b/components/quickbooks/quickbooks.app.mjs index 8e750d2affbfb..d212c10ba0c59 100644 --- a/components/quickbooks/quickbooks.app.mjs +++ b/components/quickbooks/quickbooks.app.mjs @@ -834,6 +834,18 @@ export default { ...opts, }); }, + getBalanceSheetReport(opts = {}) { + return this._makeRequest({ + path: `company/${this._companyId()}/reports/BalanceSheet`, + ...opts, + }); + }, + getCashFlowReport(opts = {}) { + return this._makeRequest({ + path: `company/${this._companyId()}/reports/CashFlow`, + ...opts, + }); + }, async *paginate({ fn, params = {}, fieldList, query, maxResults = null, ...opts }) { diff --git a/components/quickbooks/sources/new-customer-created/new-customer-created.mjs b/components/quickbooks/sources/new-customer-created/new-customer-created.mjs index a7efc8fdb842d..90d7f8503f15b 100644 --- a/components/quickbooks/sources/new-customer-created/new-customer-created.mjs +++ b/components/quickbooks/sources/new-customer-created/new-customer-created.mjs @@ -6,7 +6,7 @@ export default { key: "quickbooks-new-customer-created", name: "New Customer Created", description: "Emit new event when a new customer is created.", - version: "0.0.8", + version: "0.0.9", type: "source", dedupe: "unique", methods: { diff --git a/components/quickbooks/sources/new-customer-updated/new-customer-updated.mjs b/components/quickbooks/sources/new-customer-updated/new-customer-updated.mjs index e2164a4e9447c..a1ebf02fe6aa6 100644 --- a/components/quickbooks/sources/new-customer-updated/new-customer-updated.mjs +++ b/components/quickbooks/sources/new-customer-updated/new-customer-updated.mjs @@ -6,7 +6,7 @@ export default { key: "quickbooks-new-customer-updated", name: "New Customer Updated", description: "Emit new event when a customer is updated.", - version: "0.0.8", + version: "0.0.9", type: "source", dedupe: "unique", methods: { diff --git a/components/quickbooks/sources/new-employee-created/new-employee-created.mjs b/components/quickbooks/sources/new-employee-created/new-employee-created.mjs index f1a2a938ab6fa..c457e0efe1d1d 100644 --- a/components/quickbooks/sources/new-employee-created/new-employee-created.mjs +++ b/components/quickbooks/sources/new-employee-created/new-employee-created.mjs @@ -6,7 +6,7 @@ export default { key: "quickbooks-new-employee-created", name: "New Employee Created", description: "Emit new event when a new employee is created.", - version: "0.0.6", + version: "0.0.7", type: "source", dedupe: "unique", methods: { diff --git a/components/quickbooks/sources/new-employee-updated/new-employee-updated.mjs b/components/quickbooks/sources/new-employee-updated/new-employee-updated.mjs index 4113a3ba88066..ba00760037a3d 100644 --- a/components/quickbooks/sources/new-employee-updated/new-employee-updated.mjs +++ b/components/quickbooks/sources/new-employee-updated/new-employee-updated.mjs @@ -6,7 +6,7 @@ export default { key: "quickbooks-new-employee-updated", name: "New Employee Updated", description: "Emit new event when an employee is updated.", - version: "0.0.6", + version: "0.0.7", type: "source", dedupe: "unique", methods: { diff --git a/components/quickbooks/sources/new-invoice-created/new-invoice-created.mjs b/components/quickbooks/sources/new-invoice-created/new-invoice-created.mjs index cf4e690b4c25e..c2bb99b5b77c4 100644 --- a/components/quickbooks/sources/new-invoice-created/new-invoice-created.mjs +++ b/components/quickbooks/sources/new-invoice-created/new-invoice-created.mjs @@ -6,7 +6,7 @@ export default { key: "quickbooks-new-invoice-created", name: "New Invoice Created", description: "Emit new event when a new invoice is created.", - version: "0.0.8", + version: "0.0.9", type: "source", dedupe: "unique", methods: { diff --git a/components/quickbooks/sources/new-invoice-updated/new-invoice-updated.mjs b/components/quickbooks/sources/new-invoice-updated/new-invoice-updated.mjs index 322072abceed4..d9fbc62cc9cc7 100644 --- a/components/quickbooks/sources/new-invoice-updated/new-invoice-updated.mjs +++ b/components/quickbooks/sources/new-invoice-updated/new-invoice-updated.mjs @@ -6,7 +6,7 @@ export default { key: "quickbooks-new-invoice-updated", name: "New Invoice Updated", description: "Emit new event when an invoice is updated.", - version: "0.0.8", + version: "0.0.9", type: "source", dedupe: "unique", methods: { diff --git a/components/quickbooks/sources/new-item-created/new-item-created.mjs b/components/quickbooks/sources/new-item-created/new-item-created.mjs index cd3fc1108679d..f70f9473bd318 100644 --- a/components/quickbooks/sources/new-item-created/new-item-created.mjs +++ b/components/quickbooks/sources/new-item-created/new-item-created.mjs @@ -6,7 +6,7 @@ export default { key: "quickbooks-new-item-created", name: "New Item Created", description: "Emit new event when a new item is created.", - version: "0.0.8", + version: "0.0.9", type: "source", dedupe: "unique", methods: { diff --git a/components/quickbooks/sources/new-item-updated/new-item-updated.mjs b/components/quickbooks/sources/new-item-updated/new-item-updated.mjs index f525d82dba25f..54e971eb5251a 100644 --- a/components/quickbooks/sources/new-item-updated/new-item-updated.mjs +++ b/components/quickbooks/sources/new-item-updated/new-item-updated.mjs @@ -6,7 +6,7 @@ export default { key: "quickbooks-new-item-updated", name: "New Item Updated", description: "Emit new event when an item is updated.", - version: "0.0.8", + version: "0.0.9", type: "source", dedupe: "unique", methods: { diff --git a/components/quickbooks/sources/new-purchase-created/new-purchase-created.mjs b/components/quickbooks/sources/new-purchase-created/new-purchase-created.mjs index 93a881cd6a8ed..84e1a2a482da4 100644 --- a/components/quickbooks/sources/new-purchase-created/new-purchase-created.mjs +++ b/components/quickbooks/sources/new-purchase-created/new-purchase-created.mjs @@ -6,7 +6,7 @@ export default { key: "quickbooks-new-purchase-created", name: "New Purchase Created", description: "Emit new event when a new purchase is created.", - version: "0.0.2", + version: "0.0.3", type: "source", dedupe: "unique", methods: { diff --git a/components/quickbooks/sources/new-purchase-updated/new-purchase-updated.mjs b/components/quickbooks/sources/new-purchase-updated/new-purchase-updated.mjs index e51bf304f788d..b99c0fed11f51 100644 --- a/components/quickbooks/sources/new-purchase-updated/new-purchase-updated.mjs +++ b/components/quickbooks/sources/new-purchase-updated/new-purchase-updated.mjs @@ -6,7 +6,7 @@ export default { key: "quickbooks-new-purchase-updated", name: "New Purchase Updated", description: "Emit new event when a purchase is updated.", - version: "0.0.2", + version: "0.0.3", type: "source", dedupe: "unique", methods: {