qubesync 0.1.0 → 0.2.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/CHANGELOG.md +38 -2
- package/README.md +188 -5
- package/client.js +660 -0
- package/index.d.ts +211 -1
- package/index.js +5 -1
- package/index.mjs +2 -0
- package/operations/account.d.ts +263 -0
- package/operations/account.js +50 -0
- package/operations/account_tax_line_info.d.ts +31 -0
- package/operations/account_tax_line_info.js +26 -0
- package/operations/aging_report.d.ts +100 -0
- package/operations/aging_report.js +26 -0
- package/operations/alert.d.ts +118 -0
- package/operations/alert.js +50 -0
- package/operations/ar_refund_credit_card.d.ts +201 -0
- package/operations/ar_refund_credit_card.js +38 -0
- package/operations/bar_code.d.ts +40 -0
- package/operations/bar_code.js +26 -0
- package/operations/bill.d.ts +612 -0
- package/operations/bill.js +50 -0
- package/operations/bill_payment_check.d.ts +276 -0
- package/operations/bill_payment_check.js +50 -0
- package/operations/bill_payment_credit_card.d.ts +178 -0
- package/operations/bill_payment_credit_card.js +38 -0
- package/operations/bill_to_pay.d.ts +54 -0
- package/operations/bill_to_pay.js +26 -0
- package/operations/billing_rate.d.ts +159 -0
- package/operations/billing_rate.js +38 -0
- package/operations/budget_summary_report.d.ts +71 -0
- package/operations/budget_summary_report.js +26 -0
- package/operations/build_assembly.d.ts +264 -0
- package/operations/build_assembly.js +50 -0
- package/operations/charge.d.ts +330 -0
- package/operations/charge.js +50 -0
- package/operations/check.d.ts +394 -0
- package/operations/check.js +50 -0
- package/operations/class.d.ts +170 -0
- package/operations/class.js +50 -0
- package/operations/cleared_status.d.ts +43 -0
- package/operations/cleared_status.js +26 -0
- package/operations/client.d.ts +254 -0
- package/operations/company.d.ts +36 -0
- package/operations/company.js +26 -0
- package/operations/company_activity.d.ts +32 -0
- package/operations/company_activity.js +26 -0
- package/operations/credit_card_charge.d.ts +280 -0
- package/operations/credit_card_charge.js +50 -0
- package/operations/credit_card_credit.d.ts +280 -0
- package/operations/credit_card_credit.js +50 -0
- package/operations/credit_memo.d.ts +642 -0
- package/operations/credit_memo.js +50 -0
- package/operations/currency.d.ts +195 -0
- package/operations/currency.js +50 -0
- package/operations/custom_detail_report.d.ts +108 -0
- package/operations/custom_detail_report.js +26 -0
- package/operations/custom_summary_report.d.ts +119 -0
- package/operations/custom_summary_report.js +26 -0
- package/operations/customer.d.ts +639 -0
- package/operations/customer.js +50 -0
- package/operations/customer_msg.d.ts +121 -0
- package/operations/customer_msg.js +38 -0
- package/operations/customer_type.d.ts +127 -0
- package/operations/customer_type.js +38 -0
- package/operations/data_event_recovery_info.d.ts +61 -0
- package/operations/data_event_recovery_info.js +38 -0
- package/operations/data_ext.d.ts +197 -0
- package/operations/data_ext.js +50 -0
- package/operations/data_ext_def.d.ts +173 -0
- package/operations/data_ext_def.js +62 -0
- package/operations/date_driven_terms.d.ts +141 -0
- package/operations/date_driven_terms.js +38 -0
- package/operations/deposit.d.ts +402 -0
- package/operations/deposit.js +50 -0
- package/operations/employee.d.ts +683 -0
- package/operations/employee.js +50 -0
- package/operations/employee_default.d.ts +133 -0
- package/operations/employee_default.js +38 -0
- package/operations/entity.d.ts +96 -0
- package/operations/entity.js +26 -0
- package/operations/estimate.d.ts +590 -0
- package/operations/estimate.js +50 -0
- package/operations/form1099_category_account_mapping.d.ts +89 -0
- package/operations/form1099_category_account_mapping.js +38 -0
- package/operations/general_detail_report.d.ts +108 -0
- package/operations/general_detail_report.js +26 -0
- package/operations/general_summary_report.d.ts +115 -0
- package/operations/general_summary_report.js +26 -0
- package/operations/host.d.ts +43 -0
- package/operations/host.js +26 -0
- package/operations/index.js +397 -0
- package/operations/inventory_adjustment.d.ts +389 -0
- package/operations/inventory_adjustment.js +50 -0
- package/operations/inventory_site.d.ts +247 -0
- package/operations/inventory_site.js +50 -0
- package/operations/invoice.d.ts +682 -0
- package/operations/invoice.js +50 -0
- package/operations/item.d.ts +100 -0
- package/operations/item.js +26 -0
- package/operations/item_assemblies_can_build.d.ts +41 -0
- package/operations/item_assemblies_can_build.js +26 -0
- package/operations/item_discount.d.ts +256 -0
- package/operations/item_discount.js +50 -0
- package/operations/item_fixed_asset.d.ts +382 -0
- package/operations/item_fixed_asset.js +50 -0
- package/operations/item_group.d.ts +236 -0
- package/operations/item_group.js +50 -0
- package/operations/item_inventory.d.ts +350 -0
- package/operations/item_inventory.js +50 -0
- package/operations/item_inventory_assembly.d.ts +368 -0
- package/operations/item_inventory_assembly.js +50 -0
- package/operations/item_non_inventory.d.ts +264 -0
- package/operations/item_non_inventory.js +50 -0
- package/operations/item_other_charge.d.ts +244 -0
- package/operations/item_other_charge.js +50 -0
- package/operations/item_payment.d.ts +220 -0
- package/operations/item_payment.js +50 -0
- package/operations/item_receipt.d.ts +362 -0
- package/operations/item_receipt.js +50 -0
- package/operations/item_sales_tax.d.ts +228 -0
- package/operations/item_sales_tax.js +50 -0
- package/operations/item_sales_tax_group.d.ts +192 -0
- package/operations/item_sales_tax_group.js +50 -0
- package/operations/item_service.d.ts +256 -0
- package/operations/item_service.js +50 -0
- package/operations/item_sites.d.ts +81 -0
- package/operations/item_sites.js +26 -0
- package/operations/item_subtotal.d.ts +188 -0
- package/operations/item_subtotal.js +50 -0
- package/operations/job_report.d.ts +99 -0
- package/operations/job_report.js +26 -0
- package/operations/job_type.d.ts +127 -0
- package/operations/job_type.js +38 -0
- package/operations/journal_entry.d.ts +339 -0
- package/operations/journal_entry.js +50 -0
- package/operations/lead.d.ts +291 -0
- package/operations/lead.js +50 -0
- package/operations/list.d.ts +39 -0
- package/operations/list.js +26 -0
- package/operations/list_deleted.d.ts +44 -0
- package/operations/list_deleted.js +26 -0
- package/operations/list_display.d.ts +65 -0
- package/operations/list_display.js +38 -0
- package/operations/list_merge.d.ts +58 -0
- package/operations/list_merge.js +26 -0
- package/operations/other_name.d.ts +280 -0
- package/operations/other_name.js +50 -0
- package/operations/paycheck.d.ts +82 -0
- package/operations/paycheck.js +26 -0
- package/operations/payment_method.d.ts +131 -0
- package/operations/payment_method.js +38 -0
- package/operations/payroll_detail_report.d.ts +97 -0
- package/operations/payroll_detail_report.js +26 -0
- package/operations/payroll_item.d.ts +83 -0
- package/operations/payroll_item.js +26 -0
- package/operations/payroll_item_addition.d.ts +95 -0
- package/operations/payroll_item_addition.js +38 -0
- package/operations/payroll_item_company_contribution.d.ts +105 -0
- package/operations/payroll_item_company_contribution.js +38 -0
- package/operations/payroll_item_deduction.d.ts +101 -0
- package/operations/payroll_item_deduction.js +38 -0
- package/operations/payroll_item_direct_deposit.d.ts +65 -0
- package/operations/payroll_item_direct_deposit.js +38 -0
- package/operations/payroll_item_non_wage.d.ts +92 -0
- package/operations/payroll_item_non_wage.js +26 -0
- package/operations/payroll_item_tax.d.ts +108 -0
- package/operations/payroll_item_tax.js +38 -0
- package/operations/payroll_item_wage.d.ts +169 -0
- package/operations/payroll_item_wage.js +50 -0
- package/operations/payroll_item_workers_compensation.d.ts +77 -0
- package/operations/payroll_item_workers_compensation.js +38 -0
- package/operations/payroll_last_period.d.ts +31 -0
- package/operations/payroll_last_period.js +26 -0
- package/operations/payroll_liability_adjustment.d.ts +137 -0
- package/operations/payroll_liability_adjustment.js +38 -0
- package/operations/payroll_liability_check.d.ts +82 -0
- package/operations/payroll_liability_check.js +26 -0
- package/operations/payroll_prior_payment.d.ts +126 -0
- package/operations/payroll_prior_payment.js +38 -0
- package/operations/payroll_summary_report.d.ts +107 -0
- package/operations/payroll_summary_report.js +26 -0
- package/operations/payroll_year_to_date_adjustment.d.ts +156 -0
- package/operations/payroll_year_to_date_adjustment.js +38 -0
- package/operations/preferences.d.ts +64 -0
- package/operations/preferences.js +38 -0
- package/operations/price_level.d.ts +234 -0
- package/operations/price_level.js +50 -0
- package/operations/purchase_order.d.ts +620 -0
- package/operations/purchase_order.js +50 -0
- package/operations/qb_command_exec.d.ts +49 -0
- package/operations/qb_command_exec.js +26 -0
- package/operations/receive_payment.d.ts +450 -0
- package/operations/receive_payment.js +50 -0
- package/operations/receive_payment_to_deposit.d.ts +36 -0
- package/operations/receive_payment_to_deposit.js +26 -0
- package/operations/sales_order.d.ts +612 -0
- package/operations/sales_order.js +50 -0
- package/operations/sales_receipt.d.ts +650 -0
- package/operations/sales_receipt.js +50 -0
- package/operations/sales_rep.d.ts +170 -0
- package/operations/sales_rep.js +50 -0
- package/operations/sales_tax_code.d.ts +194 -0
- package/operations/sales_tax_code.js +50 -0
- package/operations/sales_tax_payable.d.ts +42 -0
- package/operations/sales_tax_payable.js +26 -0
- package/operations/sales_tax_payment_check.d.ts +254 -0
- package/operations/sales_tax_payment_check.js +50 -0
- package/operations/sales_tax_return.d.ts +35 -0
- package/operations/sales_tax_return.js +26 -0
- package/operations/sales_tax_return_line.d.ts +36 -0
- package/operations/sales_tax_return_line.js +26 -0
- package/operations/ship_method.d.ts +121 -0
- package/operations/ship_method.js +38 -0
- package/operations/special_account.d.ts +40 -0
- package/operations/special_account.js +26 -0
- package/operations/special_item.d.ts +44 -0
- package/operations/special_item.js +26 -0
- package/operations/standard_terms.d.ts +133 -0
- package/operations/standard_terms.js +38 -0
- package/operations/template.d.ts +36 -0
- package/operations/template.js +26 -0
- package/operations/terms.d.ts +90 -0
- package/operations/terms.js +26 -0
- package/operations/time_report.d.ts +84 -0
- package/operations/time_report.js +26 -0
- package/operations/time_tracking.d.ts +214 -0
- package/operations/time_tracking.js +50 -0
- package/operations/to_do.d.ts +254 -0
- package/operations/to_do.js +50 -0
- package/operations/transaction.d.ts +244 -0
- package/operations/transaction.js +26 -0
- package/operations/transfer.d.ts +178 -0
- package/operations/transfer.js +50 -0
- package/operations/transfer_inventory.d.ts +290 -0
- package/operations/transfer_inventory.js +50 -0
- package/operations/txn.d.ts +39 -0
- package/operations/txn.js +26 -0
- package/operations/txn_deleted.d.ts +44 -0
- package/operations/txn_deleted.js +26 -0
- package/operations/txn_display.d.ts +69 -0
- package/operations/txn_display.js +38 -0
- package/operations/txn_void.d.ts +39 -0
- package/operations/txn_void.js +26 -0
- package/operations/types.d.ts +1259 -0
- package/operations/unit_of_measure_set.d.ts +168 -0
- package/operations/unit_of_measure_set.js +38 -0
- package/operations/vehicle.d.ts +168 -0
- package/operations/vehicle.js +50 -0
- package/operations/vehicle_mileage.d.ts +147 -0
- package/operations/vehicle_mileage.js +38 -0
- package/operations/vendor.d.ts +541 -0
- package/operations/vendor.js +50 -0
- package/operations/vendor_credit.d.ts +365 -0
- package/operations/vendor_credit.js +50 -0
- package/operations/vendor_type.d.ts +127 -0
- package/operations/vendor_type.js +38 -0
- package/operations/workers_comp_code.d.ts +199 -0
- package/operations/workers_comp_code.js +50 -0
- package/package.json +14 -4
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Generated from operations.json by scripts/generate-operations.js: don't edit.
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
/** QuickBooks class operations. Types: class.d.ts. */
|
|
5
|
+
class Class {
|
|
6
|
+
#client;
|
|
7
|
+
|
|
8
|
+
/** @param {import("../index").Client} client */
|
|
9
|
+
constructor(client) {
|
|
10
|
+
this.#client = client;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Create class.
|
|
15
|
+
* @param {string} connectionId
|
|
16
|
+
* @param {import("./class").ClassCreateParams} params
|
|
17
|
+
* @param {import("./types").OperationOptions} options
|
|
18
|
+
* @returns {Promise<import("./types").QueuedRequest>}
|
|
19
|
+
* @see https://docs.qubesync.com/api-reference/v2/classes/create-class
|
|
20
|
+
*/
|
|
21
|
+
create(connectionId, params, options) {
|
|
22
|
+
return this.#client.queue("class.create", connectionId, params, options);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* List classes.
|
|
27
|
+
* @param {string} connectionId
|
|
28
|
+
* @param {import("./class").ClassQueryParams} params
|
|
29
|
+
* @param {import("./types").OperationOptions} options
|
|
30
|
+
* @returns {Promise<import("./types").QueuedRequest>}
|
|
31
|
+
* @see https://docs.qubesync.com/api-reference/v2/classes/list-classes
|
|
32
|
+
*/
|
|
33
|
+
query(connectionId, params, options) {
|
|
34
|
+
return this.#client.queue("class.query", connectionId, params, options);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Update class.
|
|
39
|
+
* @param {string} connectionId
|
|
40
|
+
* @param {import("./class").ClassUpdateParams} params
|
|
41
|
+
* @param {import("./types").OperationOptions} options
|
|
42
|
+
* @returns {Promise<import("./types").QueuedRequest>}
|
|
43
|
+
* @see https://docs.qubesync.com/api-reference/v2/classes/update-class
|
|
44
|
+
*/
|
|
45
|
+
update(connectionId, params, options) {
|
|
46
|
+
return this.#client.queue("class.update", connectionId, params, options);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
module.exports = { Class };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// Generated from operations.json by scripts/generate-operations.js: don't edit.
|
|
2
|
+
|
|
3
|
+
import type { Client } from "../index";
|
|
4
|
+
import type { OperationOptions, QueuedRequest } from "./types";
|
|
5
|
+
|
|
6
|
+
/** QuickBooks cleared status operations: `qube.clearedStatus.<action>(connectionId, params, { webhookUrl })`. */
|
|
7
|
+
export declare class ClearedStatus {
|
|
8
|
+
constructor(client: Client);
|
|
9
|
+
/**
|
|
10
|
+
* Update cleared status: `PUT /connections/{connection_id}/cleared-statuses`, queued for QuickBooks.
|
|
11
|
+
*
|
|
12
|
+
* The answer comes to `webhookUrl` as one webhook.
|
|
13
|
+
* Params go in the JSON body.
|
|
14
|
+
*
|
|
15
|
+
* Fields: `cleared_status` (required), `request_id`, `txn_id` (required), `txn_line_id`.
|
|
16
|
+
*
|
|
17
|
+
* Resolves to the queued request.
|
|
18
|
+
* @see https://docs.qubesync.com/api-reference/v2/cleared-statuses/update-cleared-status
|
|
19
|
+
*/
|
|
20
|
+
update(connectionId: string, params: ClearedStatusUpdateParams, options: OperationOptions): Promise<QueuedRequest>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The params of `cleared_status.update`: Update cleared status.
|
|
25
|
+
*/
|
|
26
|
+
export interface ClearedStatusUpdateParams {
|
|
27
|
+
/**
|
|
28
|
+
* Indicates whether a transaction or transaction line has been cleared.
|
|
29
|
+
*/
|
|
30
|
+
cleared_status: "Cleared" | "NotCleared" | "Pending";
|
|
31
|
+
/**
|
|
32
|
+
* Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.
|
|
33
|
+
*/
|
|
34
|
+
request_id?: string;
|
|
35
|
+
/**
|
|
36
|
+
* `txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.
|
|
37
|
+
*/
|
|
38
|
+
txn_id: string;
|
|
39
|
+
/**
|
|
40
|
+
* Identification number of the transaction line. (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always returned as zero.) G/p>If you need to add a new transaction line in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.
|
|
41
|
+
*/
|
|
42
|
+
txn_line_id?: string;
|
|
43
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Generated from operations.json by scripts/generate-operations.js: don't edit.
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
/** QuickBooks cleared status operations. Types: cleared_status.d.ts. */
|
|
5
|
+
class ClearedStatus {
|
|
6
|
+
#client;
|
|
7
|
+
|
|
8
|
+
/** @param {import("../index").Client} client */
|
|
9
|
+
constructor(client) {
|
|
10
|
+
this.#client = client;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Update cleared status.
|
|
15
|
+
* @param {string} connectionId
|
|
16
|
+
* @param {import("./cleared_status").ClearedStatusUpdateParams} params
|
|
17
|
+
* @param {import("./types").OperationOptions} options
|
|
18
|
+
* @returns {Promise<import("./types").QueuedRequest>}
|
|
19
|
+
* @see https://docs.qubesync.com/api-reference/v2/cleared-statuses/update-cleared-status
|
|
20
|
+
*/
|
|
21
|
+
update(connectionId, params, options) {
|
|
22
|
+
return this.#client.queue("cleared_status.update", connectionId, params, options);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
module.exports = { ClearedStatus };
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
// Generated from operations.json by scripts/generate-operations.js: don't edit.
|
|
2
|
+
|
|
3
|
+
import type { Account } from "./account";
|
|
4
|
+
import type { AccountTaxLineInfo } from "./account_tax_line_info";
|
|
5
|
+
import type { AgingReport } from "./aging_report";
|
|
6
|
+
import type { Alert } from "./alert";
|
|
7
|
+
import type { ArRefundCreditCard } from "./ar_refund_credit_card";
|
|
8
|
+
import type { BarCode } from "./bar_code";
|
|
9
|
+
import type { Bill } from "./bill";
|
|
10
|
+
import type { BillPaymentCheck } from "./bill_payment_check";
|
|
11
|
+
import type { BillPaymentCreditCard } from "./bill_payment_credit_card";
|
|
12
|
+
import type { BillToPay } from "./bill_to_pay";
|
|
13
|
+
import type { BillingRate } from "./billing_rate";
|
|
14
|
+
import type { BudgetSummaryReport } from "./budget_summary_report";
|
|
15
|
+
import type { BuildAssembly } from "./build_assembly";
|
|
16
|
+
import type { Charge } from "./charge";
|
|
17
|
+
import type { Check } from "./check";
|
|
18
|
+
import type { Class } from "./class";
|
|
19
|
+
import type { ClearedStatus } from "./cleared_status";
|
|
20
|
+
import type { Company } from "./company";
|
|
21
|
+
import type { CompanyActivity } from "./company_activity";
|
|
22
|
+
import type { CreditCardCharge } from "./credit_card_charge";
|
|
23
|
+
import type { CreditCardCredit } from "./credit_card_credit";
|
|
24
|
+
import type { CreditMemo } from "./credit_memo";
|
|
25
|
+
import type { Currency } from "./currency";
|
|
26
|
+
import type { CustomDetailReport } from "./custom_detail_report";
|
|
27
|
+
import type { CustomSummaryReport } from "./custom_summary_report";
|
|
28
|
+
import type { Customer } from "./customer";
|
|
29
|
+
import type { CustomerMsg } from "./customer_msg";
|
|
30
|
+
import type { CustomerType } from "./customer_type";
|
|
31
|
+
import type { DataEventRecoveryInfo } from "./data_event_recovery_info";
|
|
32
|
+
import type { DataExt } from "./data_ext";
|
|
33
|
+
import type { DataExtDef } from "./data_ext_def";
|
|
34
|
+
import type { DateDrivenTerms } from "./date_driven_terms";
|
|
35
|
+
import type { Deposit } from "./deposit";
|
|
36
|
+
import type { Employee } from "./employee";
|
|
37
|
+
import type { EmployeeDefault } from "./employee_default";
|
|
38
|
+
import type { Entity } from "./entity";
|
|
39
|
+
import type { Estimate } from "./estimate";
|
|
40
|
+
import type { Form1099CategoryAccountMapping } from "./form1099_category_account_mapping";
|
|
41
|
+
import type { GeneralDetailReport } from "./general_detail_report";
|
|
42
|
+
import type { GeneralSummaryReport } from "./general_summary_report";
|
|
43
|
+
import type { Host } from "./host";
|
|
44
|
+
import type { InventoryAdjustment } from "./inventory_adjustment";
|
|
45
|
+
import type { InventorySite } from "./inventory_site";
|
|
46
|
+
import type { Invoice } from "./invoice";
|
|
47
|
+
import type { Item } from "./item";
|
|
48
|
+
import type { ItemAssembliesCanBuild } from "./item_assemblies_can_build";
|
|
49
|
+
import type { ItemDiscount } from "./item_discount";
|
|
50
|
+
import type { ItemFixedAsset } from "./item_fixed_asset";
|
|
51
|
+
import type { ItemGroup } from "./item_group";
|
|
52
|
+
import type { ItemInventory } from "./item_inventory";
|
|
53
|
+
import type { ItemInventoryAssembly } from "./item_inventory_assembly";
|
|
54
|
+
import type { ItemNonInventory } from "./item_non_inventory";
|
|
55
|
+
import type { ItemOtherCharge } from "./item_other_charge";
|
|
56
|
+
import type { ItemPayment } from "./item_payment";
|
|
57
|
+
import type { ItemReceipt } from "./item_receipt";
|
|
58
|
+
import type { ItemSalesTax } from "./item_sales_tax";
|
|
59
|
+
import type { ItemSalesTaxGroup } from "./item_sales_tax_group";
|
|
60
|
+
import type { ItemService } from "./item_service";
|
|
61
|
+
import type { ItemSites } from "./item_sites";
|
|
62
|
+
import type { ItemSubtotal } from "./item_subtotal";
|
|
63
|
+
import type { JobReport } from "./job_report";
|
|
64
|
+
import type { JobType } from "./job_type";
|
|
65
|
+
import type { JournalEntry } from "./journal_entry";
|
|
66
|
+
import type { Lead } from "./lead";
|
|
67
|
+
import type { List } from "./list";
|
|
68
|
+
import type { ListDeleted } from "./list_deleted";
|
|
69
|
+
import type { ListDisplay } from "./list_display";
|
|
70
|
+
import type { ListMerge } from "./list_merge";
|
|
71
|
+
import type { OtherName } from "./other_name";
|
|
72
|
+
import type { Paycheck } from "./paycheck";
|
|
73
|
+
import type { PaymentMethod } from "./payment_method";
|
|
74
|
+
import type { PayrollDetailReport } from "./payroll_detail_report";
|
|
75
|
+
import type { PayrollItem } from "./payroll_item";
|
|
76
|
+
import type { PayrollItemAddition } from "./payroll_item_addition";
|
|
77
|
+
import type { PayrollItemCompanyContribution } from "./payroll_item_company_contribution";
|
|
78
|
+
import type { PayrollItemDeduction } from "./payroll_item_deduction";
|
|
79
|
+
import type { PayrollItemDirectDeposit } from "./payroll_item_direct_deposit";
|
|
80
|
+
import type { PayrollItemNonWage } from "./payroll_item_non_wage";
|
|
81
|
+
import type { PayrollItemTax } from "./payroll_item_tax";
|
|
82
|
+
import type { PayrollItemWage } from "./payroll_item_wage";
|
|
83
|
+
import type { PayrollItemWorkersCompensation } from "./payroll_item_workers_compensation";
|
|
84
|
+
import type { PayrollLastPeriod } from "./payroll_last_period";
|
|
85
|
+
import type { PayrollLiabilityAdjustment } from "./payroll_liability_adjustment";
|
|
86
|
+
import type { PayrollLiabilityCheck } from "./payroll_liability_check";
|
|
87
|
+
import type { PayrollPriorPayment } from "./payroll_prior_payment";
|
|
88
|
+
import type { PayrollSummaryReport } from "./payroll_summary_report";
|
|
89
|
+
import type { PayrollYearToDateAdjustment } from "./payroll_year_to_date_adjustment";
|
|
90
|
+
import type { Preferences } from "./preferences";
|
|
91
|
+
import type { PriceLevel } from "./price_level";
|
|
92
|
+
import type { PurchaseOrder } from "./purchase_order";
|
|
93
|
+
import type { QbCommandExec } from "./qb_command_exec";
|
|
94
|
+
import type { ReceivePayment } from "./receive_payment";
|
|
95
|
+
import type { ReceivePaymentToDeposit } from "./receive_payment_to_deposit";
|
|
96
|
+
import type { SalesOrder } from "./sales_order";
|
|
97
|
+
import type { SalesReceipt } from "./sales_receipt";
|
|
98
|
+
import type { SalesRep } from "./sales_rep";
|
|
99
|
+
import type { SalesTaxCode } from "./sales_tax_code";
|
|
100
|
+
import type { SalesTaxPayable } from "./sales_tax_payable";
|
|
101
|
+
import type { SalesTaxPaymentCheck } from "./sales_tax_payment_check";
|
|
102
|
+
import type { SalesTaxReturn } from "./sales_tax_return";
|
|
103
|
+
import type { SalesTaxReturnLine } from "./sales_tax_return_line";
|
|
104
|
+
import type { ShipMethod } from "./ship_method";
|
|
105
|
+
import type { SpecialAccount } from "./special_account";
|
|
106
|
+
import type { SpecialItem } from "./special_item";
|
|
107
|
+
import type { StandardTerms } from "./standard_terms";
|
|
108
|
+
import type { Template } from "./template";
|
|
109
|
+
import type { Terms } from "./terms";
|
|
110
|
+
import type { TimeReport } from "./time_report";
|
|
111
|
+
import type { TimeTracking } from "./time_tracking";
|
|
112
|
+
import type { ToDo } from "./to_do";
|
|
113
|
+
import type { Transaction } from "./transaction";
|
|
114
|
+
import type { Transfer } from "./transfer";
|
|
115
|
+
import type { TransferInventory } from "./transfer_inventory";
|
|
116
|
+
import type { Txn } from "./txn";
|
|
117
|
+
import type { TxnDeleted } from "./txn_deleted";
|
|
118
|
+
import type { TxnDisplay } from "./txn_display";
|
|
119
|
+
import type { TxnVoid } from "./txn_void";
|
|
120
|
+
import type { UnitOfMeasureSet } from "./unit_of_measure_set";
|
|
121
|
+
import type { Vehicle } from "./vehicle";
|
|
122
|
+
import type { VehicleMileage } from "./vehicle_mileage";
|
|
123
|
+
import type { Vendor } from "./vendor";
|
|
124
|
+
import type { VendorCredit } from "./vendor_credit";
|
|
125
|
+
import type { VendorType } from "./vendor_type";
|
|
126
|
+
import type { WorkersCompCode } from "./workers_comp_code";
|
|
127
|
+
|
|
128
|
+
/** The Client's entity accessors: `qube.customer.create(...)`. Each loads its module on first use. */
|
|
129
|
+
export interface ClientOperations {
|
|
130
|
+
readonly account: Account;
|
|
131
|
+
readonly accountTaxLineInfo: AccountTaxLineInfo;
|
|
132
|
+
readonly agingReport: AgingReport;
|
|
133
|
+
readonly alert: Alert;
|
|
134
|
+
readonly arRefundCreditCard: ArRefundCreditCard;
|
|
135
|
+
readonly barCode: BarCode;
|
|
136
|
+
readonly bill: Bill;
|
|
137
|
+
readonly billPaymentCheck: BillPaymentCheck;
|
|
138
|
+
readonly billPaymentCreditCard: BillPaymentCreditCard;
|
|
139
|
+
readonly billToPay: BillToPay;
|
|
140
|
+
readonly billingRate: BillingRate;
|
|
141
|
+
readonly budgetSummaryReport: BudgetSummaryReport;
|
|
142
|
+
readonly buildAssembly: BuildAssembly;
|
|
143
|
+
readonly charge: Charge;
|
|
144
|
+
readonly check: Check;
|
|
145
|
+
readonly class: Class;
|
|
146
|
+
readonly clearedStatus: ClearedStatus;
|
|
147
|
+
readonly company: Company;
|
|
148
|
+
readonly companyActivity: CompanyActivity;
|
|
149
|
+
readonly creditCardCharge: CreditCardCharge;
|
|
150
|
+
readonly creditCardCredit: CreditCardCredit;
|
|
151
|
+
readonly creditMemo: CreditMemo;
|
|
152
|
+
readonly currency: Currency;
|
|
153
|
+
readonly customDetailReport: CustomDetailReport;
|
|
154
|
+
readonly customSummaryReport: CustomSummaryReport;
|
|
155
|
+
readonly customer: Customer;
|
|
156
|
+
readonly customerMsg: CustomerMsg;
|
|
157
|
+
readonly customerType: CustomerType;
|
|
158
|
+
readonly dataEventRecoveryInfo: DataEventRecoveryInfo;
|
|
159
|
+
readonly dataExt: DataExt;
|
|
160
|
+
readonly dataExtDef: DataExtDef;
|
|
161
|
+
readonly dateDrivenTerms: DateDrivenTerms;
|
|
162
|
+
readonly deposit: Deposit;
|
|
163
|
+
readonly employee: Employee;
|
|
164
|
+
readonly employeeDefault: EmployeeDefault;
|
|
165
|
+
readonly entity: Entity;
|
|
166
|
+
readonly estimate: Estimate;
|
|
167
|
+
readonly form1099CategoryAccountMapping: Form1099CategoryAccountMapping;
|
|
168
|
+
readonly generalDetailReport: GeneralDetailReport;
|
|
169
|
+
readonly generalSummaryReport: GeneralSummaryReport;
|
|
170
|
+
readonly host: Host;
|
|
171
|
+
readonly inventoryAdjustment: InventoryAdjustment;
|
|
172
|
+
readonly inventorySite: InventorySite;
|
|
173
|
+
readonly invoice: Invoice;
|
|
174
|
+
readonly item: Item;
|
|
175
|
+
readonly itemAssembliesCanBuild: ItemAssembliesCanBuild;
|
|
176
|
+
readonly itemDiscount: ItemDiscount;
|
|
177
|
+
readonly itemFixedAsset: ItemFixedAsset;
|
|
178
|
+
readonly itemGroup: ItemGroup;
|
|
179
|
+
readonly itemInventory: ItemInventory;
|
|
180
|
+
readonly itemInventoryAssembly: ItemInventoryAssembly;
|
|
181
|
+
readonly itemNonInventory: ItemNonInventory;
|
|
182
|
+
readonly itemOtherCharge: ItemOtherCharge;
|
|
183
|
+
readonly itemPayment: ItemPayment;
|
|
184
|
+
readonly itemReceipt: ItemReceipt;
|
|
185
|
+
readonly itemSalesTax: ItemSalesTax;
|
|
186
|
+
readonly itemSalesTaxGroup: ItemSalesTaxGroup;
|
|
187
|
+
readonly itemService: ItemService;
|
|
188
|
+
readonly itemSites: ItemSites;
|
|
189
|
+
readonly itemSubtotal: ItemSubtotal;
|
|
190
|
+
readonly jobReport: JobReport;
|
|
191
|
+
readonly jobType: JobType;
|
|
192
|
+
readonly journalEntry: JournalEntry;
|
|
193
|
+
readonly lead: Lead;
|
|
194
|
+
readonly list: List;
|
|
195
|
+
readonly listDeleted: ListDeleted;
|
|
196
|
+
readonly listDisplay: ListDisplay;
|
|
197
|
+
readonly listMerge: ListMerge;
|
|
198
|
+
readonly otherName: OtherName;
|
|
199
|
+
readonly paycheck: Paycheck;
|
|
200
|
+
readonly paymentMethod: PaymentMethod;
|
|
201
|
+
readonly payrollDetailReport: PayrollDetailReport;
|
|
202
|
+
readonly payrollItem: PayrollItem;
|
|
203
|
+
readonly payrollItemAddition: PayrollItemAddition;
|
|
204
|
+
readonly payrollItemCompanyContribution: PayrollItemCompanyContribution;
|
|
205
|
+
readonly payrollItemDeduction: PayrollItemDeduction;
|
|
206
|
+
readonly payrollItemDirectDeposit: PayrollItemDirectDeposit;
|
|
207
|
+
readonly payrollItemNonWage: PayrollItemNonWage;
|
|
208
|
+
readonly payrollItemTax: PayrollItemTax;
|
|
209
|
+
readonly payrollItemWage: PayrollItemWage;
|
|
210
|
+
readonly payrollItemWorkersCompensation: PayrollItemWorkersCompensation;
|
|
211
|
+
readonly payrollLastPeriod: PayrollLastPeriod;
|
|
212
|
+
readonly payrollLiabilityAdjustment: PayrollLiabilityAdjustment;
|
|
213
|
+
readonly payrollLiabilityCheck: PayrollLiabilityCheck;
|
|
214
|
+
readonly payrollPriorPayment: PayrollPriorPayment;
|
|
215
|
+
readonly payrollSummaryReport: PayrollSummaryReport;
|
|
216
|
+
readonly payrollYearToDateAdjustment: PayrollYearToDateAdjustment;
|
|
217
|
+
readonly preferences: Preferences;
|
|
218
|
+
readonly priceLevel: PriceLevel;
|
|
219
|
+
readonly purchaseOrder: PurchaseOrder;
|
|
220
|
+
readonly qbCommandExec: QbCommandExec;
|
|
221
|
+
readonly receivePayment: ReceivePayment;
|
|
222
|
+
readonly receivePaymentToDeposit: ReceivePaymentToDeposit;
|
|
223
|
+
readonly salesOrder: SalesOrder;
|
|
224
|
+
readonly salesReceipt: SalesReceipt;
|
|
225
|
+
readonly salesRep: SalesRep;
|
|
226
|
+
readonly salesTaxCode: SalesTaxCode;
|
|
227
|
+
readonly salesTaxPayable: SalesTaxPayable;
|
|
228
|
+
readonly salesTaxPaymentCheck: SalesTaxPaymentCheck;
|
|
229
|
+
readonly salesTaxReturn: SalesTaxReturn;
|
|
230
|
+
readonly salesTaxReturnLine: SalesTaxReturnLine;
|
|
231
|
+
readonly shipMethod: ShipMethod;
|
|
232
|
+
readonly specialAccount: SpecialAccount;
|
|
233
|
+
readonly specialItem: SpecialItem;
|
|
234
|
+
readonly standardTerms: StandardTerms;
|
|
235
|
+
readonly template: Template;
|
|
236
|
+
readonly terms: Terms;
|
|
237
|
+
readonly timeReport: TimeReport;
|
|
238
|
+
readonly timeTracking: TimeTracking;
|
|
239
|
+
readonly toDo: ToDo;
|
|
240
|
+
readonly transaction: Transaction;
|
|
241
|
+
readonly transfer: Transfer;
|
|
242
|
+
readonly transferInventory: TransferInventory;
|
|
243
|
+
readonly txn: Txn;
|
|
244
|
+
readonly txnDeleted: TxnDeleted;
|
|
245
|
+
readonly txnDisplay: TxnDisplay;
|
|
246
|
+
readonly txnVoid: TxnVoid;
|
|
247
|
+
readonly unitOfMeasureSet: UnitOfMeasureSet;
|
|
248
|
+
readonly vehicle: Vehicle;
|
|
249
|
+
readonly vehicleMileage: VehicleMileage;
|
|
250
|
+
readonly vendor: Vendor;
|
|
251
|
+
readonly vendorCredit: VendorCredit;
|
|
252
|
+
readonly vendorType: VendorType;
|
|
253
|
+
readonly workersCompCode: WorkersCompCode;
|
|
254
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// Generated from operations.json by scripts/generate-operations.js: don't edit.
|
|
2
|
+
|
|
3
|
+
import type { Client } from "../index";
|
|
4
|
+
import type { OperationOptions, QueuedRequest } from "./types";
|
|
5
|
+
|
|
6
|
+
/** QuickBooks company operations: `qube.company.<action>(connectionId, params, { webhookUrl })`. */
|
|
7
|
+
export declare class Company {
|
|
8
|
+
constructor(client: Client);
|
|
9
|
+
/**
|
|
10
|
+
* List companies: `GET /connections/{connection_id}/companies`, queued for QuickBooks.
|
|
11
|
+
*
|
|
12
|
+
* The answer comes to `webhookUrl` as one webhook.
|
|
13
|
+
* Params go in the query string.
|
|
14
|
+
*
|
|
15
|
+
* Fields: `include_ret_element`, `owner_id`, `request_id`.
|
|
16
|
+
*
|
|
17
|
+
* Resolves to the queued request.
|
|
18
|
+
* @see https://docs.qubesync.com/api-reference/v2/companies/list-companies
|
|
19
|
+
*/
|
|
20
|
+
query(connectionId: string, params: CompanyQueryParams | undefined, options: OperationOptions): Promise<QueuedRequest>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The params of `company.query`: List companies.
|
|
25
|
+
*/
|
|
26
|
+
export interface CompanyQueryParams {
|
|
27
|
+
include_ret_element?: Array<"AccountantCopy" | "Address" | "AddressBlock" | "CompanyAddressBlockForCustomer" | "CompanyAddressForCustomer" | "CompanyEmailForCustomer" | "CompanyName" | "CompanyType" | "CompanyWebSite" | "DataExtRet" | "EIN" | "Email" | "Fax" | "FirstMonthFiscalYear" | "FirstMonthIncomeTaxYear" | "IsSampleCompany" | "LegalAddress" | "LegalCompanyName" | "Phone" | "SSN" | "SubscribedServices" | "TaxForm">;
|
|
28
|
+
/**
|
|
29
|
+
* `owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.
|
|
30
|
+
*/
|
|
31
|
+
owner_id?: string[];
|
|
32
|
+
/**
|
|
33
|
+
* Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.
|
|
34
|
+
*/
|
|
35
|
+
request_id?: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Generated from operations.json by scripts/generate-operations.js: don't edit.
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
/** QuickBooks company operations. Types: company.d.ts. */
|
|
5
|
+
class Company {
|
|
6
|
+
#client;
|
|
7
|
+
|
|
8
|
+
/** @param {import("../index").Client} client */
|
|
9
|
+
constructor(client) {
|
|
10
|
+
this.#client = client;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* List companies.
|
|
15
|
+
* @param {string} connectionId
|
|
16
|
+
* @param {import("./company").CompanyQueryParams} params
|
|
17
|
+
* @param {import("./types").OperationOptions} options
|
|
18
|
+
* @returns {Promise<import("./types").QueuedRequest>}
|
|
19
|
+
* @see https://docs.qubesync.com/api-reference/v2/companies/list-companies
|
|
20
|
+
*/
|
|
21
|
+
query(connectionId, params, options) {
|
|
22
|
+
return this.#client.queue("company.query", connectionId, params, options);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
module.exports = { Company };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// Generated from operations.json by scripts/generate-operations.js: don't edit.
|
|
2
|
+
|
|
3
|
+
import type { Client } from "../index";
|
|
4
|
+
import type { OperationOptions, QueuedRequest } from "./types";
|
|
5
|
+
|
|
6
|
+
/** QuickBooks company activity operations: `qube.companyActivity.<action>(connectionId, params, { webhookUrl })`. */
|
|
7
|
+
export declare class CompanyActivity {
|
|
8
|
+
constructor(client: Client);
|
|
9
|
+
/**
|
|
10
|
+
* List company activities: `GET /connections/{connection_id}/company-activities`, queued for QuickBooks.
|
|
11
|
+
*
|
|
12
|
+
* The answer comes to `webhookUrl` as one webhook.
|
|
13
|
+
* Params go in the query string.
|
|
14
|
+
*
|
|
15
|
+
* Fields: `include_ret_element`, `request_id`.
|
|
16
|
+
*
|
|
17
|
+
* Resolves to the queued request.
|
|
18
|
+
* @see https://docs.qubesync.com/api-reference/v2/company-activities/list-company-activities
|
|
19
|
+
*/
|
|
20
|
+
query(connectionId: string, params: CompanyActivityQueryParams | undefined, options: OperationOptions): Promise<QueuedRequest>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The params of `company_activity.query`: List company activities.
|
|
25
|
+
*/
|
|
26
|
+
export interface CompanyActivityQueryParams {
|
|
27
|
+
include_ret_element?: Array<"LastCondenseTime" | "LastRestoreTime">;
|
|
28
|
+
/**
|
|
29
|
+
* Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.
|
|
30
|
+
*/
|
|
31
|
+
request_id?: string;
|
|
32
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Generated from operations.json by scripts/generate-operations.js: don't edit.
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
/** QuickBooks company activity operations. Types: company_activity.d.ts. */
|
|
5
|
+
class CompanyActivity {
|
|
6
|
+
#client;
|
|
7
|
+
|
|
8
|
+
/** @param {import("../index").Client} client */
|
|
9
|
+
constructor(client) {
|
|
10
|
+
this.#client = client;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* List company activities.
|
|
15
|
+
* @param {string} connectionId
|
|
16
|
+
* @param {import("./company_activity").CompanyActivityQueryParams} params
|
|
17
|
+
* @param {import("./types").OperationOptions} options
|
|
18
|
+
* @returns {Promise<import("./types").QueuedRequest>}
|
|
19
|
+
* @see https://docs.qubesync.com/api-reference/v2/company-activities/list-company-activities
|
|
20
|
+
*/
|
|
21
|
+
query(connectionId, params, options) {
|
|
22
|
+
return this.#client.queue("company_activity.query", connectionId, params, options);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
module.exports = { CompanyActivity };
|